@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
|
@@ -10,15 +10,92 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import * as components from "../components/index.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
-
export
|
|
14
|
-
|
|
13
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type =
|
|
14
|
+
{
|
|
15
|
+
Text: "text",
|
|
16
|
+
} as const;
|
|
17
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type =
|
|
18
|
+
ClosedEnum<
|
|
19
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type
|
|
20
|
+
>;
|
|
21
|
+
|
|
22
|
+
/**
|
|
23
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
24
|
+
*/
|
|
25
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType =
|
|
26
|
+
{
|
|
27
|
+
Ephemeral: "ephemeral",
|
|
28
|
+
} as const;
|
|
29
|
+
/**
|
|
30
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
31
|
+
*/
|
|
32
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType =
|
|
33
|
+
ClosedEnum<
|
|
34
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType
|
|
35
|
+
>;
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
39
|
+
*
|
|
40
|
+
* @remarks
|
|
41
|
+
*
|
|
42
|
+
* - `5m`: 5 minutes
|
|
43
|
+
* - `1h`: 1 hour
|
|
44
|
+
*
|
|
45
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
46
|
+
*/
|
|
47
|
+
export const DeploymentGetConfig2DeploymentsRequestTtl = {
|
|
48
|
+
Fivem: "5m",
|
|
49
|
+
Oneh: "1h",
|
|
50
|
+
} as const;
|
|
51
|
+
/**
|
|
52
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
53
|
+
*
|
|
54
|
+
* @remarks
|
|
55
|
+
*
|
|
56
|
+
* - `5m`: 5 minutes
|
|
57
|
+
* - `1h`: 1 hour
|
|
58
|
+
*
|
|
59
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
60
|
+
*/
|
|
61
|
+
export type DeploymentGetConfig2DeploymentsRequestTtl = ClosedEnum<
|
|
62
|
+
typeof DeploymentGetConfig2DeploymentsRequestTtl
|
|
63
|
+
>;
|
|
64
|
+
|
|
65
|
+
export type DeploymentGetConfig2DeploymentsRequestCacheControl = {
|
|
66
|
+
/**
|
|
67
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
68
|
+
*/
|
|
69
|
+
type:
|
|
70
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType;
|
|
71
|
+
/**
|
|
72
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
73
|
+
*
|
|
74
|
+
* @remarks
|
|
75
|
+
*
|
|
76
|
+
* - `5m`: 5 minutes
|
|
77
|
+
* - `1h`: 1 hour
|
|
78
|
+
*
|
|
79
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
80
|
+
*/
|
|
81
|
+
ttl?: DeploymentGetConfig2DeploymentsRequestTtl | undefined;
|
|
82
|
+
};
|
|
83
|
+
|
|
84
|
+
export type DeploymentGetConfig21 = {
|
|
85
|
+
type: DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type;
|
|
86
|
+
text: string;
|
|
87
|
+
cacheControl?: DeploymentGetConfig2DeploymentsRequestCacheControl | undefined;
|
|
88
|
+
};
|
|
89
|
+
|
|
90
|
+
export type DeploymentGetConfigContentDeploymentsRequest2 =
|
|
91
|
+
DeploymentGetConfig21;
|
|
15
92
|
|
|
16
93
|
/**
|
|
17
94
|
* The contents of the tool message.
|
|
18
95
|
*/
|
|
19
|
-
export type
|
|
96
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent =
|
|
20
97
|
| string
|
|
21
|
-
| Array<
|
|
98
|
+
| Array<DeploymentGetConfig21>;
|
|
22
99
|
|
|
23
100
|
/**
|
|
24
101
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
@@ -85,7 +162,7 @@ export type ToolMessage = {
|
|
|
85
162
|
/**
|
|
86
163
|
* The contents of the tool message.
|
|
87
164
|
*/
|
|
88
|
-
content: string | Array<
|
|
165
|
+
content: string | Array<DeploymentGetConfig21>;
|
|
89
166
|
/**
|
|
90
167
|
* Tool call that this message is responding to.
|
|
91
168
|
*/
|
|
@@ -93,8 +170,75 @@ export type ToolMessage = {
|
|
|
93
170
|
cacheControl?: PrefixMessagesCacheControl | undefined;
|
|
94
171
|
};
|
|
95
172
|
|
|
96
|
-
|
|
97
|
-
|
|
173
|
+
/**
|
|
174
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
175
|
+
*/
|
|
176
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType =
|
|
177
|
+
{
|
|
178
|
+
Ephemeral: "ephemeral",
|
|
179
|
+
} as const;
|
|
180
|
+
/**
|
|
181
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
182
|
+
*/
|
|
183
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType =
|
|
184
|
+
ClosedEnum<
|
|
185
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType
|
|
186
|
+
>;
|
|
187
|
+
|
|
188
|
+
/**
|
|
189
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
190
|
+
*
|
|
191
|
+
* @remarks
|
|
192
|
+
*
|
|
193
|
+
* - `5m`: 5 minutes
|
|
194
|
+
* - `1h`: 1 hour
|
|
195
|
+
*
|
|
196
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
197
|
+
*/
|
|
198
|
+
export const DeploymentGetConfig2DeploymentsTtl = {
|
|
199
|
+
Fivem: "5m",
|
|
200
|
+
Oneh: "1h",
|
|
201
|
+
} as const;
|
|
202
|
+
/**
|
|
203
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
204
|
+
*
|
|
205
|
+
* @remarks
|
|
206
|
+
*
|
|
207
|
+
* - `5m`: 5 minutes
|
|
208
|
+
* - `1h`: 1 hour
|
|
209
|
+
*
|
|
210
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
211
|
+
*/
|
|
212
|
+
export type DeploymentGetConfig2DeploymentsTtl = ClosedEnum<
|
|
213
|
+
typeof DeploymentGetConfig2DeploymentsTtl
|
|
214
|
+
>;
|
|
215
|
+
|
|
216
|
+
export type DeploymentGetConfig2DeploymentsCacheControl = {
|
|
217
|
+
/**
|
|
218
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
219
|
+
*/
|
|
220
|
+
type: DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType;
|
|
221
|
+
/**
|
|
222
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
223
|
+
*
|
|
224
|
+
* @remarks
|
|
225
|
+
*
|
|
226
|
+
* - `5m`: 5 minutes
|
|
227
|
+
* - `1h`: 1 hour
|
|
228
|
+
*
|
|
229
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
230
|
+
*/
|
|
231
|
+
ttl?: DeploymentGetConfig2DeploymentsTtl | undefined;
|
|
232
|
+
};
|
|
233
|
+
|
|
234
|
+
export type Two1 = {
|
|
235
|
+
type: "text";
|
|
236
|
+
text: string;
|
|
237
|
+
cacheControl?: DeploymentGetConfig2DeploymentsCacheControl | undefined;
|
|
238
|
+
};
|
|
239
|
+
|
|
240
|
+
export type DeploymentGetConfigContentDeployments2 =
|
|
241
|
+
| Two1
|
|
98
242
|
| components.RefusalPartSchema
|
|
99
243
|
| components.ReasoningPartSchema
|
|
100
244
|
| components.RedactedReasoningPartSchema;
|
|
@@ -102,10 +246,10 @@ export type DeploymentGetConfigContent2 =
|
|
|
102
246
|
/**
|
|
103
247
|
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
104
248
|
*/
|
|
105
|
-
export type
|
|
249
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsContent =
|
|
106
250
|
| string
|
|
107
251
|
| Array<
|
|
108
|
-
|
|
|
252
|
+
| Two1
|
|
109
253
|
| components.RefusalPartSchema
|
|
110
254
|
| components.ReasoningPartSchema
|
|
111
255
|
| components.RedactedReasoningPartSchema
|
|
@@ -132,7 +276,7 @@ export const PrefixMessagesType = {
|
|
|
132
276
|
*/
|
|
133
277
|
export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
|
|
134
278
|
|
|
135
|
-
export type
|
|
279
|
+
export type FunctionT = {
|
|
136
280
|
/**
|
|
137
281
|
* The name of the function to call.
|
|
138
282
|
*/
|
|
@@ -143,7 +287,7 @@ export type PrefixMessagesFunction = {
|
|
|
143
287
|
arguments?: string | undefined;
|
|
144
288
|
};
|
|
145
289
|
|
|
146
|
-
export type
|
|
290
|
+
export type ToolCalls = {
|
|
147
291
|
/**
|
|
148
292
|
* The ID of the tool call.
|
|
149
293
|
*/
|
|
@@ -152,7 +296,7 @@ export type PrefixMessagesToolCalls = {
|
|
|
152
296
|
* The type of the tool. Currently, only `function` is supported.
|
|
153
297
|
*/
|
|
154
298
|
type: PrefixMessagesType;
|
|
155
|
-
function:
|
|
299
|
+
function: FunctionT;
|
|
156
300
|
/**
|
|
157
301
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
158
302
|
*/
|
|
@@ -166,7 +310,7 @@ export type AssistantMessage = {
|
|
|
166
310
|
content?:
|
|
167
311
|
| string
|
|
168
312
|
| Array<
|
|
169
|
-
|
|
|
313
|
+
| Two1
|
|
170
314
|
| components.RefusalPartSchema
|
|
171
315
|
| components.ReasoningPartSchema
|
|
172
316
|
| components.RedactedReasoningPartSchema
|
|
@@ -192,20 +336,20 @@ export type AssistantMessage = {
|
|
|
192
336
|
/**
|
|
193
337
|
* The tool calls generated by the model, such as function calls.
|
|
194
338
|
*/
|
|
195
|
-
toolCalls?: Array<
|
|
339
|
+
toolCalls?: Array<ToolCalls> | undefined;
|
|
196
340
|
};
|
|
197
341
|
|
|
198
342
|
/**
|
|
199
343
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
200
344
|
*/
|
|
201
|
-
export const
|
|
345
|
+
export const DeploymentGetConfig2DeploymentsRequestType = {
|
|
202
346
|
Ephemeral: "ephemeral",
|
|
203
347
|
} as const;
|
|
204
348
|
/**
|
|
205
349
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
206
350
|
*/
|
|
207
|
-
export type
|
|
208
|
-
typeof
|
|
351
|
+
export type DeploymentGetConfig2DeploymentsRequestType = ClosedEnum<
|
|
352
|
+
typeof DeploymentGetConfig2DeploymentsRequestType
|
|
209
353
|
>;
|
|
210
354
|
|
|
211
355
|
/**
|
|
@@ -218,7 +362,7 @@ export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
|
|
|
218
362
|
*
|
|
219
363
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
220
364
|
*/
|
|
221
|
-
export const
|
|
365
|
+
export const DeploymentGetConfig2Ttl = {
|
|
222
366
|
Fivem: "5m",
|
|
223
367
|
Oneh: "1h",
|
|
224
368
|
} as const;
|
|
@@ -232,13 +376,15 @@ export const Ttl = {
|
|
|
232
376
|
*
|
|
233
377
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
234
378
|
*/
|
|
235
|
-
export type
|
|
379
|
+
export type DeploymentGetConfig2Ttl = ClosedEnum<
|
|
380
|
+
typeof DeploymentGetConfig2Ttl
|
|
381
|
+
>;
|
|
236
382
|
|
|
237
|
-
export type
|
|
383
|
+
export type DeploymentGetConfig2CacheControl = {
|
|
238
384
|
/**
|
|
239
385
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
240
386
|
*/
|
|
241
|
-
type:
|
|
387
|
+
type: DeploymentGetConfig2DeploymentsRequestType;
|
|
242
388
|
/**
|
|
243
389
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
244
390
|
*
|
|
@@ -249,7 +395,7 @@ export type CacheControl = {
|
|
|
249
395
|
*
|
|
250
396
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
251
397
|
*/
|
|
252
|
-
ttl?:
|
|
398
|
+
ttl?: DeploymentGetConfig2Ttl | undefined;
|
|
253
399
|
};
|
|
254
400
|
|
|
255
401
|
export type Four = {
|
|
@@ -257,15 +403,78 @@ export type Four = {
|
|
|
257
403
|
* The type of the content part. Always `file`.
|
|
258
404
|
*/
|
|
259
405
|
type: "file";
|
|
260
|
-
cacheControl?:
|
|
406
|
+
cacheControl?: DeploymentGetConfig2CacheControl | undefined;
|
|
261
407
|
/**
|
|
262
408
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
263
409
|
*/
|
|
264
410
|
file: components.FileContentPartSchema;
|
|
265
411
|
};
|
|
266
412
|
|
|
267
|
-
|
|
268
|
-
|
|
413
|
+
/**
|
|
414
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
415
|
+
*/
|
|
416
|
+
export const DeploymentGetConfig2Type = {
|
|
417
|
+
Ephemeral: "ephemeral",
|
|
418
|
+
} as const;
|
|
419
|
+
/**
|
|
420
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
421
|
+
*/
|
|
422
|
+
export type DeploymentGetConfig2Type = ClosedEnum<
|
|
423
|
+
typeof DeploymentGetConfig2Type
|
|
424
|
+
>;
|
|
425
|
+
|
|
426
|
+
/**
|
|
427
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
428
|
+
*
|
|
429
|
+
* @remarks
|
|
430
|
+
*
|
|
431
|
+
* - `5m`: 5 minutes
|
|
432
|
+
* - `1h`: 1 hour
|
|
433
|
+
*
|
|
434
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
435
|
+
*/
|
|
436
|
+
export const TwoTtl = {
|
|
437
|
+
Fivem: "5m",
|
|
438
|
+
Oneh: "1h",
|
|
439
|
+
} as const;
|
|
440
|
+
/**
|
|
441
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
442
|
+
*
|
|
443
|
+
* @remarks
|
|
444
|
+
*
|
|
445
|
+
* - `5m`: 5 minutes
|
|
446
|
+
* - `1h`: 1 hour
|
|
447
|
+
*
|
|
448
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
449
|
+
*/
|
|
450
|
+
export type TwoTtl = ClosedEnum<typeof TwoTtl>;
|
|
451
|
+
|
|
452
|
+
export type TwoCacheControl = {
|
|
453
|
+
/**
|
|
454
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
455
|
+
*/
|
|
456
|
+
type: DeploymentGetConfig2Type;
|
|
457
|
+
/**
|
|
458
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
459
|
+
*
|
|
460
|
+
* @remarks
|
|
461
|
+
*
|
|
462
|
+
* - `5m`: 5 minutes
|
|
463
|
+
* - `1h`: 1 hour
|
|
464
|
+
*
|
|
465
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
466
|
+
*/
|
|
467
|
+
ttl?: TwoTtl | undefined;
|
|
468
|
+
};
|
|
469
|
+
|
|
470
|
+
export type One = {
|
|
471
|
+
type: "text";
|
|
472
|
+
text: string;
|
|
473
|
+
cacheControl?: TwoCacheControl | undefined;
|
|
474
|
+
};
|
|
475
|
+
|
|
476
|
+
export type DeploymentGetConfigContent2 =
|
|
477
|
+
| One
|
|
269
478
|
| components.ImageContentPartSchema
|
|
270
479
|
| components.AudioContentPartSchema
|
|
271
480
|
| Four;
|
|
@@ -273,10 +482,10 @@ export type Content2 =
|
|
|
273
482
|
/**
|
|
274
483
|
* The contents of the user message.
|
|
275
484
|
*/
|
|
276
|
-
export type
|
|
485
|
+
export type DeploymentGetConfigPrefixMessagesContent =
|
|
277
486
|
| string
|
|
278
487
|
| Array<
|
|
279
|
-
|
|
|
488
|
+
| One
|
|
280
489
|
| components.ImageContentPartSchema
|
|
281
490
|
| components.AudioContentPartSchema
|
|
282
491
|
| Four
|
|
@@ -297,88 +506,31 @@ export type UserMessage = {
|
|
|
297
506
|
content:
|
|
298
507
|
| string
|
|
299
508
|
| Array<
|
|
300
|
-
|
|
|
509
|
+
| One
|
|
301
510
|
| components.ImageContentPartSchema
|
|
302
511
|
| components.AudioContentPartSchema
|
|
303
512
|
| Four
|
|
304
513
|
>;
|
|
305
514
|
};
|
|
306
515
|
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
export type
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
export type DeveloperMessage = {
|
|
315
|
-
/**
|
|
316
|
-
* The role of the messages author, in this case `developer`.
|
|
317
|
-
*/
|
|
318
|
-
role: "developer";
|
|
319
|
-
/**
|
|
320
|
-
* The contents of the developer message.
|
|
321
|
-
*/
|
|
322
|
-
content: string | Array<components.TextContentPartSchema>;
|
|
323
|
-
/**
|
|
324
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
325
|
-
*/
|
|
326
|
-
name?: string | undefined;
|
|
327
|
-
};
|
|
328
|
-
|
|
329
|
-
/**
|
|
330
|
-
* The contents of the system message.
|
|
331
|
-
*/
|
|
332
|
-
export type PrefixMessagesContent =
|
|
333
|
-
| string
|
|
334
|
-
| Array<components.TextContentPartSchema>;
|
|
335
|
-
|
|
336
|
-
/**
|
|
337
|
-
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
338
|
-
*/
|
|
339
|
-
export type SystemMessage = {
|
|
340
|
-
/**
|
|
341
|
-
* The role of the messages author, in this case `system`.
|
|
342
|
-
*/
|
|
343
|
-
role: "system";
|
|
344
|
-
/**
|
|
345
|
-
* The contents of the system message.
|
|
346
|
-
*/
|
|
347
|
-
content: string | Array<components.TextContentPartSchema>;
|
|
348
|
-
/**
|
|
349
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
350
|
-
*/
|
|
351
|
-
name?: string | undefined;
|
|
352
|
-
};
|
|
353
|
-
|
|
354
|
-
export type PrefixMessages =
|
|
355
|
-
| SystemMessage
|
|
356
|
-
| DeveloperMessage
|
|
357
|
-
| UserMessage
|
|
358
|
-
| AssistantMessage
|
|
359
|
-
| ToolMessage;
|
|
360
|
-
|
|
361
|
-
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 =
|
|
362
|
-
components.TextContentPartSchema;
|
|
363
|
-
|
|
364
|
-
/**
|
|
365
|
-
* The contents of the tool message.
|
|
366
|
-
*/
|
|
367
|
-
export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
|
|
368
|
-
| string
|
|
369
|
-
| Array<components.TextContentPartSchema>;
|
|
516
|
+
export const DeploymentGetConfigContentType = {
|
|
517
|
+
Text: "text",
|
|
518
|
+
} as const;
|
|
519
|
+
export type DeploymentGetConfigContentType = ClosedEnum<
|
|
520
|
+
typeof DeploymentGetConfigContentType
|
|
521
|
+
>;
|
|
370
522
|
|
|
371
523
|
/**
|
|
372
524
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
373
525
|
*/
|
|
374
|
-
export const
|
|
526
|
+
export const DeploymentGetConfigContentDeploymentsType = {
|
|
375
527
|
Ephemeral: "ephemeral",
|
|
376
528
|
} as const;
|
|
377
529
|
/**
|
|
378
530
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
379
531
|
*/
|
|
380
|
-
export type
|
|
381
|
-
typeof
|
|
532
|
+
export type DeploymentGetConfigContentDeploymentsType = ClosedEnum<
|
|
533
|
+
typeof DeploymentGetConfigContentDeploymentsType
|
|
382
534
|
>;
|
|
383
535
|
|
|
384
536
|
/**
|
|
@@ -391,7 +543,7 @@ export type DeploymentGetConfigMessagesType = ClosedEnum<
|
|
|
391
543
|
*
|
|
392
544
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
393
545
|
*/
|
|
394
|
-
export const
|
|
546
|
+
export const ContentTtl = {
|
|
395
547
|
Fivem: "5m",
|
|
396
548
|
Oneh: "1h",
|
|
397
549
|
} as const;
|
|
@@ -405,13 +557,13 @@ export const MessagesTtl = {
|
|
|
405
557
|
*
|
|
406
558
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
407
559
|
*/
|
|
408
|
-
export type
|
|
560
|
+
export type ContentTtl = ClosedEnum<typeof ContentTtl>;
|
|
409
561
|
|
|
410
|
-
export type
|
|
562
|
+
export type ContentCacheControl = {
|
|
411
563
|
/**
|
|
412
564
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
413
565
|
*/
|
|
414
|
-
type:
|
|
566
|
+
type: DeploymentGetConfigContentDeploymentsType;
|
|
415
567
|
/**
|
|
416
568
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
417
569
|
*
|
|
@@ -422,18 +574,288 @@ export type MessagesCacheControl = {
|
|
|
422
574
|
*
|
|
423
575
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
424
576
|
*/
|
|
425
|
-
ttl?:
|
|
577
|
+
ttl?: ContentTtl | undefined;
|
|
426
578
|
};
|
|
427
579
|
|
|
428
|
-
export type
|
|
580
|
+
export type Content2 = {
|
|
581
|
+
type: DeploymentGetConfigContentType;
|
|
582
|
+
text: string;
|
|
583
|
+
cacheControl?: ContentCacheControl | undefined;
|
|
584
|
+
};
|
|
585
|
+
|
|
586
|
+
/**
|
|
587
|
+
* The contents of the developer message.
|
|
588
|
+
*/
|
|
589
|
+
export type PrefixMessagesContent = string | Array<Content2>;
|
|
590
|
+
|
|
591
|
+
export type DeveloperMessage = {
|
|
429
592
|
/**
|
|
430
|
-
* The role of the messages author, in this case
|
|
593
|
+
* The role of the messages author, in this case `developer`.
|
|
594
|
+
*/
|
|
595
|
+
role: "developer";
|
|
596
|
+
/**
|
|
597
|
+
* The contents of the developer message.
|
|
598
|
+
*/
|
|
599
|
+
content: string | Array<Content2>;
|
|
600
|
+
/**
|
|
601
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
602
|
+
*/
|
|
603
|
+
name?: string | undefined;
|
|
604
|
+
};
|
|
605
|
+
|
|
606
|
+
export const Type = {
|
|
607
|
+
Text: "text",
|
|
608
|
+
} as const;
|
|
609
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
613
|
+
*/
|
|
614
|
+
export const ContentType = {
|
|
615
|
+
Ephemeral: "ephemeral",
|
|
616
|
+
} as const;
|
|
617
|
+
/**
|
|
618
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
619
|
+
*/
|
|
620
|
+
export type ContentType = ClosedEnum<typeof ContentType>;
|
|
621
|
+
|
|
622
|
+
/**
|
|
623
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
624
|
+
*
|
|
625
|
+
* @remarks
|
|
626
|
+
*
|
|
627
|
+
* - `5m`: 5 minutes
|
|
628
|
+
* - `1h`: 1 hour
|
|
629
|
+
*
|
|
630
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
631
|
+
*/
|
|
632
|
+
export const Ttl = {
|
|
633
|
+
Fivem: "5m",
|
|
634
|
+
Oneh: "1h",
|
|
635
|
+
} as const;
|
|
636
|
+
/**
|
|
637
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
638
|
+
*
|
|
639
|
+
* @remarks
|
|
640
|
+
*
|
|
641
|
+
* - `5m`: 5 minutes
|
|
642
|
+
* - `1h`: 1 hour
|
|
643
|
+
*
|
|
644
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
645
|
+
*/
|
|
646
|
+
export type Ttl = ClosedEnum<typeof Ttl>;
|
|
647
|
+
|
|
648
|
+
export type CacheControl = {
|
|
649
|
+
/**
|
|
650
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
651
|
+
*/
|
|
652
|
+
type: ContentType;
|
|
653
|
+
/**
|
|
654
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
655
|
+
*
|
|
656
|
+
* @remarks
|
|
657
|
+
*
|
|
658
|
+
* - `5m`: 5 minutes
|
|
659
|
+
* - `1h`: 1 hour
|
|
660
|
+
*
|
|
661
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
662
|
+
*/
|
|
663
|
+
ttl?: Ttl | undefined;
|
|
664
|
+
};
|
|
665
|
+
|
|
666
|
+
export type Two = {
|
|
667
|
+
type: Type;
|
|
668
|
+
text: string;
|
|
669
|
+
cacheControl?: CacheControl | undefined;
|
|
670
|
+
};
|
|
671
|
+
|
|
672
|
+
/**
|
|
673
|
+
* The contents of the system message.
|
|
674
|
+
*/
|
|
675
|
+
export type Content = string | Array<Two>;
|
|
676
|
+
|
|
677
|
+
/**
|
|
678
|
+
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
679
|
+
*/
|
|
680
|
+
export type SystemMessage = {
|
|
681
|
+
/**
|
|
682
|
+
* The role of the messages author, in this case `system`.
|
|
683
|
+
*/
|
|
684
|
+
role: "system";
|
|
685
|
+
/**
|
|
686
|
+
* The contents of the system message.
|
|
687
|
+
*/
|
|
688
|
+
content: string | Array<Two>;
|
|
689
|
+
/**
|
|
690
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
691
|
+
*/
|
|
692
|
+
name?: string | undefined;
|
|
693
|
+
};
|
|
694
|
+
|
|
695
|
+
export type PrefixMessages =
|
|
696
|
+
| SystemMessage
|
|
697
|
+
| DeveloperMessage
|
|
698
|
+
| UserMessage
|
|
699
|
+
| AssistantMessage
|
|
700
|
+
| ToolMessage;
|
|
701
|
+
|
|
702
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type = {
|
|
703
|
+
Text: "text",
|
|
704
|
+
} as const;
|
|
705
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type =
|
|
706
|
+
ClosedEnum<
|
|
707
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type
|
|
708
|
+
>;
|
|
709
|
+
|
|
710
|
+
/**
|
|
711
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
712
|
+
*/
|
|
713
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType =
|
|
714
|
+
{
|
|
715
|
+
Ephemeral: "ephemeral",
|
|
716
|
+
} as const;
|
|
717
|
+
/**
|
|
718
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
719
|
+
*/
|
|
720
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType =
|
|
721
|
+
ClosedEnum<
|
|
722
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType
|
|
723
|
+
>;
|
|
724
|
+
|
|
725
|
+
/**
|
|
726
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
727
|
+
*
|
|
728
|
+
* @remarks
|
|
729
|
+
*
|
|
730
|
+
* - `5m`: 5 minutes
|
|
731
|
+
* - `1h`: 1 hour
|
|
732
|
+
*
|
|
733
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
734
|
+
*/
|
|
735
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl = {
|
|
736
|
+
Fivem: "5m",
|
|
737
|
+
Oneh: "1h",
|
|
738
|
+
} as const;
|
|
739
|
+
/**
|
|
740
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
741
|
+
*
|
|
742
|
+
* @remarks
|
|
743
|
+
*
|
|
744
|
+
* - `5m`: 5 minutes
|
|
745
|
+
* - `1h`: 1 hour
|
|
746
|
+
*
|
|
747
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
748
|
+
*/
|
|
749
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl =
|
|
750
|
+
ClosedEnum<
|
|
751
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl
|
|
752
|
+
>;
|
|
753
|
+
|
|
754
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl =
|
|
755
|
+
{
|
|
756
|
+
/**
|
|
757
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
758
|
+
*/
|
|
759
|
+
type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType;
|
|
760
|
+
/**
|
|
761
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
762
|
+
*
|
|
763
|
+
* @remarks
|
|
764
|
+
*
|
|
765
|
+
* - `5m`: 5 minutes
|
|
766
|
+
* - `1h`: 1 hour
|
|
767
|
+
*
|
|
768
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
769
|
+
*/
|
|
770
|
+
ttl?:
|
|
771
|
+
| DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl
|
|
772
|
+
| undefined;
|
|
773
|
+
};
|
|
774
|
+
|
|
775
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBody1 = {
|
|
776
|
+
type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type;
|
|
777
|
+
text: string;
|
|
778
|
+
cacheControl?:
|
|
779
|
+
| DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl
|
|
780
|
+
| undefined;
|
|
781
|
+
};
|
|
782
|
+
|
|
783
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52 =
|
|
784
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* The contents of the tool message.
|
|
788
|
+
*/
|
|
789
|
+
export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
|
|
790
|
+
| string
|
|
791
|
+
| Array<DeploymentGetConfig2DeploymentsRequestRequestBody1>;
|
|
792
|
+
|
|
793
|
+
/**
|
|
794
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
795
|
+
*/
|
|
796
|
+
export const DeploymentGetConfigMessagesType = {
|
|
797
|
+
Ephemeral: "ephemeral",
|
|
798
|
+
} as const;
|
|
799
|
+
/**
|
|
800
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
801
|
+
*/
|
|
802
|
+
export type DeploymentGetConfigMessagesType = ClosedEnum<
|
|
803
|
+
typeof DeploymentGetConfigMessagesType
|
|
804
|
+
>;
|
|
805
|
+
|
|
806
|
+
/**
|
|
807
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
808
|
+
*
|
|
809
|
+
* @remarks
|
|
810
|
+
*
|
|
811
|
+
* - `5m`: 5 minutes
|
|
812
|
+
* - `1h`: 1 hour
|
|
813
|
+
*
|
|
814
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
815
|
+
*/
|
|
816
|
+
export const MessagesTtl = {
|
|
817
|
+
Fivem: "5m",
|
|
818
|
+
Oneh: "1h",
|
|
819
|
+
} as const;
|
|
820
|
+
/**
|
|
821
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
822
|
+
*
|
|
823
|
+
* @remarks
|
|
824
|
+
*
|
|
825
|
+
* - `5m`: 5 minutes
|
|
826
|
+
* - `1h`: 1 hour
|
|
827
|
+
*
|
|
828
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
829
|
+
*/
|
|
830
|
+
export type MessagesTtl = ClosedEnum<typeof MessagesTtl>;
|
|
831
|
+
|
|
832
|
+
export type MessagesCacheControl = {
|
|
833
|
+
/**
|
|
834
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
835
|
+
*/
|
|
836
|
+
type: DeploymentGetConfigMessagesType;
|
|
837
|
+
/**
|
|
838
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
839
|
+
*
|
|
840
|
+
* @remarks
|
|
841
|
+
*
|
|
842
|
+
* - `5m`: 5 minutes
|
|
843
|
+
* - `1h`: 1 hour
|
|
844
|
+
*
|
|
845
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
846
|
+
*/
|
|
847
|
+
ttl?: MessagesTtl | undefined;
|
|
848
|
+
};
|
|
849
|
+
|
|
850
|
+
export type MessagesToolMessage = {
|
|
851
|
+
/**
|
|
852
|
+
* The role of the messages author, in this case tool.
|
|
431
853
|
*/
|
|
432
854
|
role: "tool";
|
|
433
855
|
/**
|
|
434
856
|
* The contents of the tool message.
|
|
435
857
|
*/
|
|
436
|
-
content: string | Array<
|
|
858
|
+
content: string | Array<DeploymentGetConfig2DeploymentsRequestRequestBody1>;
|
|
437
859
|
/**
|
|
438
860
|
* Tool call that this message is responding to.
|
|
439
861
|
*/
|
|
@@ -441,8 +863,81 @@ export type MessagesToolMessage = {
|
|
|
441
863
|
cacheControl?: MessagesCacheControl | undefined;
|
|
442
864
|
};
|
|
443
865
|
|
|
444
|
-
|
|
445
|
-
|
|
866
|
+
/**
|
|
867
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
868
|
+
*/
|
|
869
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType =
|
|
870
|
+
{
|
|
871
|
+
Ephemeral: "ephemeral",
|
|
872
|
+
} as const;
|
|
873
|
+
/**
|
|
874
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
875
|
+
*/
|
|
876
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType =
|
|
877
|
+
ClosedEnum<
|
|
878
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType
|
|
879
|
+
>;
|
|
880
|
+
|
|
881
|
+
/**
|
|
882
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
883
|
+
*
|
|
884
|
+
* @remarks
|
|
885
|
+
*
|
|
886
|
+
* - `5m`: 5 minutes
|
|
887
|
+
* - `1h`: 1 hour
|
|
888
|
+
*
|
|
889
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
890
|
+
*/
|
|
891
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl = {
|
|
892
|
+
Fivem: "5m",
|
|
893
|
+
Oneh: "1h",
|
|
894
|
+
} as const;
|
|
895
|
+
/**
|
|
896
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
897
|
+
*
|
|
898
|
+
* @remarks
|
|
899
|
+
*
|
|
900
|
+
* - `5m`: 5 minutes
|
|
901
|
+
* - `1h`: 1 hour
|
|
902
|
+
*
|
|
903
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
904
|
+
*/
|
|
905
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl =
|
|
906
|
+
ClosedEnum<
|
|
907
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl
|
|
908
|
+
>;
|
|
909
|
+
|
|
910
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl =
|
|
911
|
+
{
|
|
912
|
+
/**
|
|
913
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
914
|
+
*/
|
|
915
|
+
type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType;
|
|
916
|
+
/**
|
|
917
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
918
|
+
*
|
|
919
|
+
* @remarks
|
|
920
|
+
*
|
|
921
|
+
* - `5m`: 5 minutes
|
|
922
|
+
* - `1h`: 1 hour
|
|
923
|
+
*
|
|
924
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
925
|
+
*/
|
|
926
|
+
ttl?:
|
|
927
|
+
| DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl
|
|
928
|
+
| undefined;
|
|
929
|
+
};
|
|
930
|
+
|
|
931
|
+
export type DeploymentGetConfig2DeploymentsRequest1 = {
|
|
932
|
+
type: "text";
|
|
933
|
+
text: string;
|
|
934
|
+
cacheControl?:
|
|
935
|
+
| DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl
|
|
936
|
+
| undefined;
|
|
937
|
+
};
|
|
938
|
+
|
|
939
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42 =
|
|
940
|
+
| DeploymentGetConfig2DeploymentsRequest1
|
|
446
941
|
| components.RefusalPartSchema
|
|
447
942
|
| components.ReasoningPartSchema
|
|
448
943
|
| components.RedactedReasoningPartSchema;
|
|
@@ -453,7 +948,7 @@ export type DeploymentGetConfigContentDeploymentsRequestRequestBody2 =
|
|
|
453
948
|
export type DeploymentGetConfigMessagesDeploymentsRequestContent =
|
|
454
949
|
| string
|
|
455
950
|
| Array<
|
|
456
|
-
|
|
|
951
|
+
| DeploymentGetConfig2DeploymentsRequest1
|
|
457
952
|
| components.RefusalPartSchema
|
|
458
953
|
| components.ReasoningPartSchema
|
|
459
954
|
| components.RedactedReasoningPartSchema
|
|
@@ -514,7 +1009,7 @@ export type MessagesAssistantMessage = {
|
|
|
514
1009
|
content?:
|
|
515
1010
|
| string
|
|
516
1011
|
| Array<
|
|
517
|
-
|
|
|
1012
|
+
| DeploymentGetConfig2DeploymentsRequest1
|
|
518
1013
|
| components.RefusalPartSchema
|
|
519
1014
|
| components.ReasoningPartSchema
|
|
520
1015
|
| components.RedactedReasoningPartSchema
|
|
@@ -546,15 +1041,17 @@ export type MessagesAssistantMessage = {
|
|
|
546
1041
|
/**
|
|
547
1042
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
548
1043
|
*/
|
|
549
|
-
export const
|
|
550
|
-
|
|
551
|
-
|
|
1044
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type =
|
|
1045
|
+
{
|
|
1046
|
+
Ephemeral: "ephemeral",
|
|
1047
|
+
} as const;
|
|
552
1048
|
/**
|
|
553
1049
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
554
1050
|
*/
|
|
555
|
-
export type
|
|
556
|
-
|
|
557
|
-
|
|
1051
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type =
|
|
1052
|
+
ClosedEnum<
|
|
1053
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type
|
|
1054
|
+
>;
|
|
558
1055
|
|
|
559
1056
|
/**
|
|
560
1057
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
@@ -566,7 +1063,7 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
|
|
|
566
1063
|
*
|
|
567
1064
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
568
1065
|
*/
|
|
569
|
-
export const
|
|
1066
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl = {
|
|
570
1067
|
Fivem: "5m",
|
|
571
1068
|
Oneh: "1h",
|
|
572
1069
|
} as const;
|
|
@@ -580,13 +1077,94 @@ export const TwoTtl = {
|
|
|
580
1077
|
*
|
|
581
1078
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
582
1079
|
*/
|
|
583
|
-
export type
|
|
1080
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl =
|
|
1081
|
+
ClosedEnum<
|
|
1082
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl
|
|
1083
|
+
>;
|
|
584
1084
|
|
|
585
|
-
export type
|
|
1085
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl =
|
|
1086
|
+
{
|
|
1087
|
+
/**
|
|
1088
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1089
|
+
*/
|
|
1090
|
+
type:
|
|
1091
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type;
|
|
1092
|
+
/**
|
|
1093
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1094
|
+
*
|
|
1095
|
+
* @remarks
|
|
1096
|
+
*
|
|
1097
|
+
* - `5m`: 5 minutes
|
|
1098
|
+
* - `1h`: 1 hour
|
|
1099
|
+
*
|
|
1100
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1101
|
+
*/
|
|
1102
|
+
ttl?:
|
|
1103
|
+
| DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl
|
|
1104
|
+
| undefined;
|
|
1105
|
+
};
|
|
1106
|
+
|
|
1107
|
+
export type Two4 = {
|
|
586
1108
|
/**
|
|
587
|
-
*
|
|
1109
|
+
* The type of the content part. Always `file`.
|
|
1110
|
+
*/
|
|
1111
|
+
type: "file";
|
|
1112
|
+
cacheControl?:
|
|
1113
|
+
| DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl
|
|
1114
|
+
| undefined;
|
|
1115
|
+
/**
|
|
1116
|
+
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
1117
|
+
*/
|
|
1118
|
+
file: components.FileContentPartSchema;
|
|
1119
|
+
};
|
|
1120
|
+
|
|
1121
|
+
/**
|
|
1122
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1123
|
+
*/
|
|
1124
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type = {
|
|
1125
|
+
Ephemeral: "ephemeral",
|
|
1126
|
+
} as const;
|
|
1127
|
+
/**
|
|
1128
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1129
|
+
*/
|
|
1130
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type =
|
|
1131
|
+
ClosedEnum<
|
|
1132
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type
|
|
1133
|
+
>;
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1137
|
+
*
|
|
1138
|
+
* @remarks
|
|
1139
|
+
*
|
|
1140
|
+
* - `5m`: 5 minutes
|
|
1141
|
+
* - `1h`: 1 hour
|
|
1142
|
+
*
|
|
1143
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1144
|
+
*/
|
|
1145
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyTtl = {
|
|
1146
|
+
Fivem: "5m",
|
|
1147
|
+
Oneh: "1h",
|
|
1148
|
+
} as const;
|
|
1149
|
+
/**
|
|
1150
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1151
|
+
*
|
|
1152
|
+
* @remarks
|
|
1153
|
+
*
|
|
1154
|
+
* - `5m`: 5 minutes
|
|
1155
|
+
* - `1h`: 1 hour
|
|
1156
|
+
*
|
|
1157
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1158
|
+
*/
|
|
1159
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyTtl = ClosedEnum<
|
|
1160
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyTtl
|
|
1161
|
+
>;
|
|
1162
|
+
|
|
1163
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl = {
|
|
1164
|
+
/**
|
|
1165
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
588
1166
|
*/
|
|
589
|
-
type:
|
|
1167
|
+
type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type;
|
|
590
1168
|
/**
|
|
591
1169
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
592
1170
|
*
|
|
@@ -597,23 +1175,19 @@ export type TwoCacheControl = {
|
|
|
597
1175
|
*
|
|
598
1176
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
599
1177
|
*/
|
|
600
|
-
ttl?:
|
|
1178
|
+
ttl?: DeploymentGetConfig2DeploymentsRequestRequestBodyTtl | undefined;
|
|
601
1179
|
};
|
|
602
1180
|
|
|
603
|
-
export type
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
/**
|
|
610
|
-
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
611
|
-
*/
|
|
612
|
-
file: components.FileContentPartSchema;
|
|
1181
|
+
export type DeploymentGetConfig2Deployments1 = {
|
|
1182
|
+
type: "text";
|
|
1183
|
+
text: string;
|
|
1184
|
+
cacheControl?:
|
|
1185
|
+
| DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl
|
|
1186
|
+
| undefined;
|
|
613
1187
|
};
|
|
614
1188
|
|
|
615
|
-
export type
|
|
616
|
-
|
|
|
1189
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32 =
|
|
1190
|
+
| DeploymentGetConfig2Deployments1
|
|
617
1191
|
| components.ImageContentPartSchema
|
|
618
1192
|
| components.AudioContentPartSchema
|
|
619
1193
|
| Two4;
|
|
@@ -624,7 +1198,7 @@ export type DeploymentGetConfigContentDeploymentsRequest2 =
|
|
|
624
1198
|
export type DeploymentGetConfigMessagesDeploymentsContent =
|
|
625
1199
|
| string
|
|
626
1200
|
| Array<
|
|
627
|
-
|
|
|
1201
|
+
| DeploymentGetConfig2Deployments1
|
|
628
1202
|
| components.ImageContentPartSchema
|
|
629
1203
|
| components.AudioContentPartSchema
|
|
630
1204
|
| Two4
|
|
@@ -645,19 +1219,95 @@ export type MessagesUserMessage = {
|
|
|
645
1219
|
content:
|
|
646
1220
|
| string
|
|
647
1221
|
| Array<
|
|
648
|
-
|
|
|
1222
|
+
| DeploymentGetConfig2Deployments1
|
|
649
1223
|
| components.ImageContentPartSchema
|
|
650
1224
|
| components.AudioContentPartSchema
|
|
651
1225
|
| Two4
|
|
652
1226
|
>;
|
|
653
1227
|
};
|
|
654
1228
|
|
|
1229
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType =
|
|
1230
|
+
{
|
|
1231
|
+
Text: "text",
|
|
1232
|
+
} as const;
|
|
1233
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType =
|
|
1234
|
+
ClosedEnum<
|
|
1235
|
+
typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType
|
|
1236
|
+
>;
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1240
|
+
*/
|
|
1241
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type =
|
|
1242
|
+
{
|
|
1243
|
+
Ephemeral: "ephemeral",
|
|
1244
|
+
} as const;
|
|
1245
|
+
/**
|
|
1246
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1247
|
+
*/
|
|
1248
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type =
|
|
1249
|
+
ClosedEnum<
|
|
1250
|
+
typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type
|
|
1251
|
+
>;
|
|
1252
|
+
|
|
1253
|
+
/**
|
|
1254
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1255
|
+
*
|
|
1256
|
+
* @remarks
|
|
1257
|
+
*
|
|
1258
|
+
* - `5m`: 5 minutes
|
|
1259
|
+
* - `1h`: 1 hour
|
|
1260
|
+
*
|
|
1261
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1262
|
+
*/
|
|
1263
|
+
export const DeploymentGetConfigContentDeploymentsTtl = {
|
|
1264
|
+
Fivem: "5m",
|
|
1265
|
+
Oneh: "1h",
|
|
1266
|
+
} as const;
|
|
1267
|
+
/**
|
|
1268
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1269
|
+
*
|
|
1270
|
+
* @remarks
|
|
1271
|
+
*
|
|
1272
|
+
* - `5m`: 5 minutes
|
|
1273
|
+
* - `1h`: 1 hour
|
|
1274
|
+
*
|
|
1275
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1276
|
+
*/
|
|
1277
|
+
export type DeploymentGetConfigContentDeploymentsTtl = ClosedEnum<
|
|
1278
|
+
typeof DeploymentGetConfigContentDeploymentsTtl
|
|
1279
|
+
>;
|
|
1280
|
+
|
|
1281
|
+
export type DeploymentGetConfigContentDeploymentsCacheControl = {
|
|
1282
|
+
/**
|
|
1283
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1284
|
+
*/
|
|
1285
|
+
type: DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type;
|
|
1286
|
+
/**
|
|
1287
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1288
|
+
*
|
|
1289
|
+
* @remarks
|
|
1290
|
+
*
|
|
1291
|
+
* - `5m`: 5 minutes
|
|
1292
|
+
* - `1h`: 1 hour
|
|
1293
|
+
*
|
|
1294
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1295
|
+
*/
|
|
1296
|
+
ttl?: DeploymentGetConfigContentDeploymentsTtl | undefined;
|
|
1297
|
+
};
|
|
1298
|
+
|
|
1299
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 = {
|
|
1300
|
+
type: DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType;
|
|
1301
|
+
text: string;
|
|
1302
|
+
cacheControl?: DeploymentGetConfigContentDeploymentsCacheControl | undefined;
|
|
1303
|
+
};
|
|
1304
|
+
|
|
655
1305
|
/**
|
|
656
1306
|
* The contents of the developer message.
|
|
657
1307
|
*/
|
|
658
1308
|
export type DeploymentGetConfigMessagesContent =
|
|
659
1309
|
| string
|
|
660
|
-
| Array<
|
|
1310
|
+
| Array<DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2>;
|
|
661
1311
|
|
|
662
1312
|
export type MessagesDeveloperMessage = {
|
|
663
1313
|
/**
|
|
@@ -667,17 +1317,94 @@ export type MessagesDeveloperMessage = {
|
|
|
667
1317
|
/**
|
|
668
1318
|
* The contents of the developer message.
|
|
669
1319
|
*/
|
|
670
|
-
content:
|
|
1320
|
+
content:
|
|
1321
|
+
| string
|
|
1322
|
+
| Array<DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2>;
|
|
671
1323
|
/**
|
|
672
1324
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
673
1325
|
*/
|
|
674
1326
|
name?: string | undefined;
|
|
675
1327
|
};
|
|
676
1328
|
|
|
1329
|
+
export const DeploymentGetConfigContentDeploymentsRequestType = {
|
|
1330
|
+
Text: "text",
|
|
1331
|
+
} as const;
|
|
1332
|
+
export type DeploymentGetConfigContentDeploymentsRequestType = ClosedEnum<
|
|
1333
|
+
typeof DeploymentGetConfigContentDeploymentsRequestType
|
|
1334
|
+
>;
|
|
1335
|
+
|
|
1336
|
+
/**
|
|
1337
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1338
|
+
*/
|
|
1339
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyType = {
|
|
1340
|
+
Ephemeral: "ephemeral",
|
|
1341
|
+
} as const;
|
|
1342
|
+
/**
|
|
1343
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1344
|
+
*/
|
|
1345
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyType =
|
|
1346
|
+
ClosedEnum<
|
|
1347
|
+
typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyType
|
|
1348
|
+
>;
|
|
1349
|
+
|
|
1350
|
+
/**
|
|
1351
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1352
|
+
*
|
|
1353
|
+
* @remarks
|
|
1354
|
+
*
|
|
1355
|
+
* - `5m`: 5 minutes
|
|
1356
|
+
* - `1h`: 1 hour
|
|
1357
|
+
*
|
|
1358
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1359
|
+
*/
|
|
1360
|
+
export const DeploymentGetConfigContentTtl = {
|
|
1361
|
+
Fivem: "5m",
|
|
1362
|
+
Oneh: "1h",
|
|
1363
|
+
} as const;
|
|
1364
|
+
/**
|
|
1365
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1366
|
+
*
|
|
1367
|
+
* @remarks
|
|
1368
|
+
*
|
|
1369
|
+
* - `5m`: 5 minutes
|
|
1370
|
+
* - `1h`: 1 hour
|
|
1371
|
+
*
|
|
1372
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1373
|
+
*/
|
|
1374
|
+
export type DeploymentGetConfigContentTtl = ClosedEnum<
|
|
1375
|
+
typeof DeploymentGetConfigContentTtl
|
|
1376
|
+
>;
|
|
1377
|
+
|
|
1378
|
+
export type DeploymentGetConfigContentCacheControl = {
|
|
1379
|
+
/**
|
|
1380
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1381
|
+
*/
|
|
1382
|
+
type: DeploymentGetConfigContentDeploymentsRequestRequestBodyType;
|
|
1383
|
+
/**
|
|
1384
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1385
|
+
*
|
|
1386
|
+
* @remarks
|
|
1387
|
+
*
|
|
1388
|
+
* - `5m`: 5 minutes
|
|
1389
|
+
* - `1h`: 1 hour
|
|
1390
|
+
*
|
|
1391
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1392
|
+
*/
|
|
1393
|
+
ttl?: DeploymentGetConfigContentTtl | undefined;
|
|
1394
|
+
};
|
|
1395
|
+
|
|
1396
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBody2 = {
|
|
1397
|
+
type: DeploymentGetConfigContentDeploymentsRequestType;
|
|
1398
|
+
text: string;
|
|
1399
|
+
cacheControl?: DeploymentGetConfigContentCacheControl | undefined;
|
|
1400
|
+
};
|
|
1401
|
+
|
|
677
1402
|
/**
|
|
678
1403
|
* The contents of the system message.
|
|
679
1404
|
*/
|
|
680
|
-
export type MessagesContent =
|
|
1405
|
+
export type MessagesContent =
|
|
1406
|
+
| string
|
|
1407
|
+
| Array<DeploymentGetConfigContentDeploymentsRequestRequestBody2>;
|
|
681
1408
|
|
|
682
1409
|
/**
|
|
683
1410
|
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
@@ -690,14 +1417,16 @@ export type MessagesSystemMessage = {
|
|
|
690
1417
|
/**
|
|
691
1418
|
* The contents of the system message.
|
|
692
1419
|
*/
|
|
693
|
-
content:
|
|
1420
|
+
content:
|
|
1421
|
+
| string
|
|
1422
|
+
| Array<DeploymentGetConfigContentDeploymentsRequestRequestBody2>;
|
|
694
1423
|
/**
|
|
695
1424
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
696
1425
|
*/
|
|
697
1426
|
name?: string | undefined;
|
|
698
1427
|
};
|
|
699
1428
|
|
|
700
|
-
export type
|
|
1429
|
+
export type Messages =
|
|
701
1430
|
| MessagesSystemMessage
|
|
702
1431
|
| MessagesDeveloperMessage
|
|
703
1432
|
| MessagesUserMessage
|
|
@@ -1209,13 +1938,13 @@ export type DeploymentGetConfig22 = {
|
|
|
1209
1938
|
/**
|
|
1210
1939
|
* Text content part of a prompt message
|
|
1211
1940
|
*/
|
|
1212
|
-
export type
|
|
1941
|
+
export type DeploymentGetConfig2DeploymentsResponse1 = {
|
|
1213
1942
|
type: "text";
|
|
1214
1943
|
text: string;
|
|
1215
1944
|
};
|
|
1216
1945
|
|
|
1217
1946
|
export type DeploymentGetConfigContentDeploymentsResponse2 =
|
|
1218
|
-
|
|
|
1947
|
+
| DeploymentGetConfig2DeploymentsResponse1
|
|
1219
1948
|
| DeploymentGetConfig22
|
|
1220
1949
|
| DeploymentGetConfig23;
|
|
1221
1950
|
|
|
@@ -1225,7 +1954,9 @@ export type DeploymentGetConfigContentDeploymentsResponse2 =
|
|
|
1225
1954
|
export type DeploymentGetConfigContent =
|
|
1226
1955
|
| string
|
|
1227
1956
|
| Array<
|
|
1228
|
-
|
|
1957
|
+
| DeploymentGetConfig2DeploymentsResponse1
|
|
1958
|
+
| DeploymentGetConfig22
|
|
1959
|
+
| DeploymentGetConfig23
|
|
1229
1960
|
>;
|
|
1230
1961
|
|
|
1231
1962
|
export const DeploymentGetConfigDeploymentsResponseType = {
|
|
@@ -1250,7 +1981,7 @@ export type DeploymentGetConfigToolCalls = {
|
|
|
1250
1981
|
function: DeploymentGetConfigDeploymentsFunction;
|
|
1251
1982
|
};
|
|
1252
1983
|
|
|
1253
|
-
export type
|
|
1984
|
+
export type DeploymentGetConfigMessages = {
|
|
1254
1985
|
/**
|
|
1255
1986
|
* The role of the prompt message
|
|
1256
1987
|
*/
|
|
@@ -1261,11 +1992,13 @@ export type DeploymentGetConfigDeploymentsMessages = {
|
|
|
1261
1992
|
content:
|
|
1262
1993
|
| string
|
|
1263
1994
|
| Array<
|
|
1264
|
-
|
|
1995
|
+
| DeploymentGetConfig2DeploymentsResponse1
|
|
1996
|
+
| DeploymentGetConfig22
|
|
1997
|
+
| DeploymentGetConfig23
|
|
1265
1998
|
>
|
|
1266
1999
|
| null;
|
|
1267
2000
|
toolCalls?: Array<DeploymentGetConfigToolCalls> | undefined;
|
|
1268
|
-
toolCallId?: string |
|
|
2001
|
+
toolCallId?: string | undefined;
|
|
1269
2002
|
};
|
|
1270
2003
|
|
|
1271
2004
|
/**
|
|
@@ -1612,7 +2345,7 @@ export type DeploymentGetConfigResponseBody = {
|
|
|
1612
2345
|
* The current version of the deployment
|
|
1613
2346
|
*/
|
|
1614
2347
|
version: string;
|
|
1615
|
-
messages: Array<
|
|
2348
|
+
messages: Array<DeploymentGetConfigMessages>;
|
|
1616
2349
|
/**
|
|
1617
2350
|
* Model Parameters: Not all parameters apply to every model
|
|
1618
2351
|
*/
|
|
@@ -1624,105 +2357,263 @@ export type DeploymentGetConfigResponseBody = {
|
|
|
1624
2357
|
};
|
|
1625
2358
|
|
|
1626
2359
|
/** @internal */
|
|
1627
|
-
export const
|
|
1628
|
-
|
|
1629
|
-
|
|
1630
|
-
|
|
1631
|
-
|
|
2360
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type$inboundSchema:
|
|
2361
|
+
z.ZodNativeEnum<
|
|
2362
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type
|
|
2363
|
+
> = z.nativeEnum(
|
|
2364
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type,
|
|
2365
|
+
);
|
|
1632
2366
|
/** @internal */
|
|
1633
|
-
export
|
|
1634
|
-
|
|
2367
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type$outboundSchema:
|
|
2368
|
+
z.ZodNativeEnum<
|
|
2369
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type
|
|
2370
|
+
> =
|
|
2371
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type$inboundSchema;
|
|
1635
2372
|
|
|
1636
2373
|
/** @internal */
|
|
1637
|
-
export const
|
|
1638
|
-
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1643
|
-
export function deploymentGetConfigContentDeployments2ToJSON(
|
|
1644
|
-
deploymentGetConfigContentDeployments2:
|
|
1645
|
-
DeploymentGetConfigContentDeployments2,
|
|
1646
|
-
): string {
|
|
1647
|
-
return JSON.stringify(
|
|
1648
|
-
DeploymentGetConfigContentDeployments2$outboundSchema.parse(
|
|
1649
|
-
deploymentGetConfigContentDeployments2,
|
|
1650
|
-
),
|
|
1651
|
-
);
|
|
1652
|
-
}
|
|
1653
|
-
export function deploymentGetConfigContentDeployments2FromJSON(
|
|
1654
|
-
jsonString: string,
|
|
1655
|
-
): SafeParseResult<DeploymentGetConfigContentDeployments2, SDKValidationError> {
|
|
1656
|
-
return safeParse(
|
|
1657
|
-
jsonString,
|
|
1658
|
-
(x) =>
|
|
1659
|
-
DeploymentGetConfigContentDeployments2$inboundSchema.parse(JSON.parse(x)),
|
|
1660
|
-
`Failed to parse 'DeploymentGetConfigContentDeployments2' from JSON`,
|
|
2374
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$inboundSchema:
|
|
2375
|
+
z.ZodNativeEnum<
|
|
2376
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType
|
|
2377
|
+
> = z.nativeEnum(
|
|
2378
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType,
|
|
1661
2379
|
);
|
|
1662
|
-
|
|
2380
|
+
/** @internal */
|
|
2381
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$outboundSchema:
|
|
2382
|
+
z.ZodNativeEnum<
|
|
2383
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType
|
|
2384
|
+
> =
|
|
2385
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$inboundSchema;
|
|
2386
|
+
|
|
2387
|
+
/** @internal */
|
|
2388
|
+
export const DeploymentGetConfig2DeploymentsRequestTtl$inboundSchema:
|
|
2389
|
+
z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestTtl> = z
|
|
2390
|
+
.nativeEnum(DeploymentGetConfig2DeploymentsRequestTtl);
|
|
2391
|
+
/** @internal */
|
|
2392
|
+
export const DeploymentGetConfig2DeploymentsRequestTtl$outboundSchema:
|
|
2393
|
+
z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestTtl> =
|
|
2394
|
+
DeploymentGetConfig2DeploymentsRequestTtl$inboundSchema;
|
|
1663
2395
|
|
|
1664
2396
|
/** @internal */
|
|
1665
|
-
export const
|
|
2397
|
+
export const DeploymentGetConfig2DeploymentsRequestCacheControl$inboundSchema:
|
|
1666
2398
|
z.ZodType<
|
|
1667
|
-
|
|
2399
|
+
DeploymentGetConfig2DeploymentsRequestCacheControl,
|
|
1668
2400
|
z.ZodTypeDef,
|
|
1669
2401
|
unknown
|
|
1670
|
-
> = z.
|
|
1671
|
-
|
|
1672
|
-
|
|
1673
|
-
|
|
2402
|
+
> = z.object({
|
|
2403
|
+
type:
|
|
2404
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$inboundSchema,
|
|
2405
|
+
ttl: DeploymentGetConfig2DeploymentsRequestTtl$inboundSchema.default("5m"),
|
|
2406
|
+
});
|
|
1674
2407
|
/** @internal */
|
|
1675
|
-
export type
|
|
1676
|
-
|
|
1677
|
-
|
|
2408
|
+
export type DeploymentGetConfig2DeploymentsRequestCacheControl$Outbound = {
|
|
2409
|
+
type: string;
|
|
2410
|
+
ttl: string;
|
|
2411
|
+
};
|
|
1678
2412
|
|
|
1679
2413
|
/** @internal */
|
|
1680
|
-
export const
|
|
2414
|
+
export const DeploymentGetConfig2DeploymentsRequestCacheControl$outboundSchema:
|
|
1681
2415
|
z.ZodType<
|
|
1682
|
-
|
|
2416
|
+
DeploymentGetConfig2DeploymentsRequestCacheControl$Outbound,
|
|
1683
2417
|
z.ZodTypeDef,
|
|
1684
|
-
|
|
1685
|
-
> = z.
|
|
1686
|
-
|
|
1687
|
-
|
|
1688
|
-
|
|
2418
|
+
DeploymentGetConfig2DeploymentsRequestCacheControl
|
|
2419
|
+
> = z.object({
|
|
2420
|
+
type:
|
|
2421
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5ContentType$outboundSchema,
|
|
2422
|
+
ttl: DeploymentGetConfig2DeploymentsRequestTtl$outboundSchema.default("5m"),
|
|
2423
|
+
});
|
|
1689
2424
|
|
|
1690
|
-
export function
|
|
1691
|
-
|
|
1692
|
-
|
|
2425
|
+
export function deploymentGetConfig2DeploymentsRequestCacheControlToJSON(
|
|
2426
|
+
deploymentGetConfig2DeploymentsRequestCacheControl:
|
|
2427
|
+
DeploymentGetConfig2DeploymentsRequestCacheControl,
|
|
1693
2428
|
): string {
|
|
1694
2429
|
return JSON.stringify(
|
|
1695
|
-
|
|
1696
|
-
|
|
1697
|
-
|
|
1698
|
-
),
|
|
2430
|
+
DeploymentGetConfig2DeploymentsRequestCacheControl$outboundSchema.parse(
|
|
2431
|
+
deploymentGetConfig2DeploymentsRequestCacheControl,
|
|
2432
|
+
),
|
|
1699
2433
|
);
|
|
1700
2434
|
}
|
|
1701
|
-
export function
|
|
2435
|
+
export function deploymentGetConfig2DeploymentsRequestCacheControlFromJSON(
|
|
1702
2436
|
jsonString: string,
|
|
1703
2437
|
): SafeParseResult<
|
|
1704
|
-
|
|
2438
|
+
DeploymentGetConfig2DeploymentsRequestCacheControl,
|
|
1705
2439
|
SDKValidationError
|
|
1706
2440
|
> {
|
|
1707
2441
|
return safeParse(
|
|
1708
2442
|
jsonString,
|
|
1709
2443
|
(x) =>
|
|
1710
|
-
|
|
1711
|
-
|
|
1712
|
-
|
|
2444
|
+
DeploymentGetConfig2DeploymentsRequestCacheControl$inboundSchema.parse(
|
|
2445
|
+
JSON.parse(x),
|
|
2446
|
+
),
|
|
2447
|
+
`Failed to parse 'DeploymentGetConfig2DeploymentsRequestCacheControl' from JSON`,
|
|
1713
2448
|
);
|
|
1714
2449
|
}
|
|
1715
2450
|
|
|
1716
2451
|
/** @internal */
|
|
1717
|
-
export const
|
|
1718
|
-
|
|
1719
|
-
|
|
1720
|
-
|
|
2452
|
+
export const DeploymentGetConfig21$inboundSchema: z.ZodType<
|
|
2453
|
+
DeploymentGetConfig21,
|
|
2454
|
+
z.ZodTypeDef,
|
|
2455
|
+
unknown
|
|
2456
|
+
> = z.object({
|
|
2457
|
+
type:
|
|
2458
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type$inboundSchema,
|
|
2459
|
+
text: z.string(),
|
|
2460
|
+
cache_control: z.lazy(() =>
|
|
2461
|
+
DeploymentGetConfig2DeploymentsRequestCacheControl$inboundSchema
|
|
2462
|
+
).optional(),
|
|
2463
|
+
}).transform((v) => {
|
|
2464
|
+
return remap$(v, {
|
|
2465
|
+
"cache_control": "cacheControl",
|
|
2466
|
+
});
|
|
2467
|
+
});
|
|
1721
2468
|
/** @internal */
|
|
1722
|
-
export
|
|
1723
|
-
|
|
1724
|
-
|
|
1725
|
-
|
|
2469
|
+
export type DeploymentGetConfig21$Outbound = {
|
|
2470
|
+
type: string;
|
|
2471
|
+
text: string;
|
|
2472
|
+
cache_control?:
|
|
2473
|
+
| DeploymentGetConfig2DeploymentsRequestCacheControl$Outbound
|
|
2474
|
+
| undefined;
|
|
2475
|
+
};
|
|
2476
|
+
|
|
2477
|
+
/** @internal */
|
|
2478
|
+
export const DeploymentGetConfig21$outboundSchema: z.ZodType<
|
|
2479
|
+
DeploymentGetConfig21$Outbound,
|
|
2480
|
+
z.ZodTypeDef,
|
|
2481
|
+
DeploymentGetConfig21
|
|
2482
|
+
> = z.object({
|
|
2483
|
+
type:
|
|
2484
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages5Type$outboundSchema,
|
|
2485
|
+
text: z.string(),
|
|
2486
|
+
cacheControl: z.lazy(() =>
|
|
2487
|
+
DeploymentGetConfig2DeploymentsRequestCacheControl$outboundSchema
|
|
2488
|
+
).optional(),
|
|
2489
|
+
}).transform((v) => {
|
|
2490
|
+
return remap$(v, {
|
|
2491
|
+
cacheControl: "cache_control",
|
|
2492
|
+
});
|
|
2493
|
+
});
|
|
2494
|
+
|
|
2495
|
+
export function deploymentGetConfig21ToJSON(
|
|
2496
|
+
deploymentGetConfig21: DeploymentGetConfig21,
|
|
2497
|
+
): string {
|
|
2498
|
+
return JSON.stringify(
|
|
2499
|
+
DeploymentGetConfig21$outboundSchema.parse(deploymentGetConfig21),
|
|
2500
|
+
);
|
|
2501
|
+
}
|
|
2502
|
+
export function deploymentGetConfig21FromJSON(
|
|
2503
|
+
jsonString: string,
|
|
2504
|
+
): SafeParseResult<DeploymentGetConfig21, SDKValidationError> {
|
|
2505
|
+
return safeParse(
|
|
2506
|
+
jsonString,
|
|
2507
|
+
(x) => DeploymentGetConfig21$inboundSchema.parse(JSON.parse(x)),
|
|
2508
|
+
`Failed to parse 'DeploymentGetConfig21' from JSON`,
|
|
2509
|
+
);
|
|
2510
|
+
}
|
|
2511
|
+
|
|
2512
|
+
/** @internal */
|
|
2513
|
+
export const DeploymentGetConfigContentDeploymentsRequest2$inboundSchema:
|
|
2514
|
+
z.ZodType<
|
|
2515
|
+
DeploymentGetConfigContentDeploymentsRequest2,
|
|
2516
|
+
z.ZodTypeDef,
|
|
2517
|
+
unknown
|
|
2518
|
+
> = z.lazy(() => DeploymentGetConfig21$inboundSchema);
|
|
2519
|
+
/** @internal */
|
|
2520
|
+
export type DeploymentGetConfigContentDeploymentsRequest2$Outbound =
|
|
2521
|
+
DeploymentGetConfig21$Outbound;
|
|
2522
|
+
|
|
2523
|
+
/** @internal */
|
|
2524
|
+
export const DeploymentGetConfigContentDeploymentsRequest2$outboundSchema:
|
|
2525
|
+
z.ZodType<
|
|
2526
|
+
DeploymentGetConfigContentDeploymentsRequest2$Outbound,
|
|
2527
|
+
z.ZodTypeDef,
|
|
2528
|
+
DeploymentGetConfigContentDeploymentsRequest2
|
|
2529
|
+
> = z.lazy(() => DeploymentGetConfig21$outboundSchema);
|
|
2530
|
+
|
|
2531
|
+
export function deploymentGetConfigContentDeploymentsRequest2ToJSON(
|
|
2532
|
+
deploymentGetConfigContentDeploymentsRequest2:
|
|
2533
|
+
DeploymentGetConfigContentDeploymentsRequest2,
|
|
2534
|
+
): string {
|
|
2535
|
+
return JSON.stringify(
|
|
2536
|
+
DeploymentGetConfigContentDeploymentsRequest2$outboundSchema.parse(
|
|
2537
|
+
deploymentGetConfigContentDeploymentsRequest2,
|
|
2538
|
+
),
|
|
2539
|
+
);
|
|
2540
|
+
}
|
|
2541
|
+
export function deploymentGetConfigContentDeploymentsRequest2FromJSON(
|
|
2542
|
+
jsonString: string,
|
|
2543
|
+
): SafeParseResult<
|
|
2544
|
+
DeploymentGetConfigContentDeploymentsRequest2,
|
|
2545
|
+
SDKValidationError
|
|
2546
|
+
> {
|
|
2547
|
+
return safeParse(
|
|
2548
|
+
jsonString,
|
|
2549
|
+
(x) =>
|
|
2550
|
+
DeploymentGetConfigContentDeploymentsRequest2$inboundSchema.parse(
|
|
2551
|
+
JSON.parse(x),
|
|
2552
|
+
),
|
|
2553
|
+
`Failed to parse 'DeploymentGetConfigContentDeploymentsRequest2' from JSON`,
|
|
2554
|
+
);
|
|
2555
|
+
}
|
|
2556
|
+
|
|
2557
|
+
/** @internal */
|
|
2558
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$inboundSchema:
|
|
2559
|
+
z.ZodType<
|
|
2560
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
|
|
2561
|
+
z.ZodTypeDef,
|
|
2562
|
+
unknown
|
|
2563
|
+
> = z.union([
|
|
2564
|
+
z.string(),
|
|
2565
|
+
z.array(z.lazy(() => DeploymentGetConfig21$inboundSchema)),
|
|
2566
|
+
]);
|
|
2567
|
+
/** @internal */
|
|
2568
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound =
|
|
2569
|
+
| string
|
|
2570
|
+
| Array<DeploymentGetConfig21$Outbound>;
|
|
2571
|
+
|
|
2572
|
+
/** @internal */
|
|
2573
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema:
|
|
2574
|
+
z.ZodType<
|
|
2575
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound,
|
|
2576
|
+
z.ZodTypeDef,
|
|
2577
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent
|
|
2578
|
+
> = z.union([
|
|
2579
|
+
z.string(),
|
|
2580
|
+
z.array(z.lazy(() => DeploymentGetConfig21$outboundSchema)),
|
|
2581
|
+
]);
|
|
2582
|
+
|
|
2583
|
+
export function deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON(
|
|
2584
|
+
deploymentGetConfigPrefixMessagesDeploymentsRequestContent:
|
|
2585
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
|
|
2586
|
+
): string {
|
|
2587
|
+
return JSON.stringify(
|
|
2588
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema
|
|
2589
|
+
.parse(deploymentGetConfigPrefixMessagesDeploymentsRequestContent),
|
|
2590
|
+
);
|
|
2591
|
+
}
|
|
2592
|
+
export function deploymentGetConfigPrefixMessagesDeploymentsRequestContentFromJSON(
|
|
2593
|
+
jsonString: string,
|
|
2594
|
+
): SafeParseResult<
|
|
2595
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
|
|
2596
|
+
SDKValidationError
|
|
2597
|
+
> {
|
|
2598
|
+
return safeParse(
|
|
2599
|
+
jsonString,
|
|
2600
|
+
(x) =>
|
|
2601
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$inboundSchema
|
|
2602
|
+
.parse(JSON.parse(x)),
|
|
2603
|
+
`Failed to parse 'DeploymentGetConfigPrefixMessagesDeploymentsRequestContent' from JSON`,
|
|
2604
|
+
);
|
|
2605
|
+
}
|
|
2606
|
+
|
|
2607
|
+
/** @internal */
|
|
2608
|
+
export const DeploymentGetConfigPrefixMessagesType$inboundSchema:
|
|
2609
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesType> = z.nativeEnum(
|
|
2610
|
+
DeploymentGetConfigPrefixMessagesType,
|
|
2611
|
+
);
|
|
2612
|
+
/** @internal */
|
|
2613
|
+
export const DeploymentGetConfigPrefixMessagesType$outboundSchema:
|
|
2614
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesType> =
|
|
2615
|
+
DeploymentGetConfigPrefixMessagesType$inboundSchema;
|
|
2616
|
+
|
|
1726
2617
|
/** @internal */
|
|
1727
2618
|
export const PrefixMessagesTtl$inboundSchema: z.ZodNativeEnum<
|
|
1728
2619
|
typeof PrefixMessagesTtl
|
|
@@ -1783,7 +2674,7 @@ export const ToolMessage$inboundSchema: z.ZodType<
|
|
|
1783
2674
|
role: z.literal("tool"),
|
|
1784
2675
|
content: z.union([
|
|
1785
2676
|
z.string(),
|
|
1786
|
-
z.array(
|
|
2677
|
+
z.array(z.lazy(() => DeploymentGetConfig21$inboundSchema)),
|
|
1787
2678
|
]),
|
|
1788
2679
|
tool_call_id: z.string(),
|
|
1789
2680
|
cache_control: z.lazy(() => PrefixMessagesCacheControl$inboundSchema)
|
|
@@ -1797,7 +2688,7 @@ export const ToolMessage$inboundSchema: z.ZodType<
|
|
|
1797
2688
|
/** @internal */
|
|
1798
2689
|
export type ToolMessage$Outbound = {
|
|
1799
2690
|
role: "tool";
|
|
1800
|
-
content: string | Array<
|
|
2691
|
+
content: string | Array<DeploymentGetConfig21$Outbound>;
|
|
1801
2692
|
tool_call_id: string;
|
|
1802
2693
|
cache_control?: PrefixMessagesCacheControl$Outbound | undefined;
|
|
1803
2694
|
};
|
|
@@ -1811,7 +2702,7 @@ export const ToolMessage$outboundSchema: z.ZodType<
|
|
|
1811
2702
|
role: z.literal("tool"),
|
|
1812
2703
|
content: z.union([
|
|
1813
2704
|
z.string(),
|
|
1814
|
-
z.array(
|
|
2705
|
+
z.array(z.lazy(() => DeploymentGetConfig21$outboundSchema)),
|
|
1815
2706
|
]),
|
|
1816
2707
|
toolCallId: z.string(),
|
|
1817
2708
|
cacheControl: z.lazy(() => PrefixMessagesCacheControl$outboundSchema)
|
|
@@ -1837,128 +2728,247 @@ export function toolMessageFromJSON(
|
|
|
1837
2728
|
}
|
|
1838
2729
|
|
|
1839
2730
|
/** @internal */
|
|
1840
|
-
export const
|
|
1841
|
-
|
|
2731
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema:
|
|
2732
|
+
z.ZodNativeEnum<
|
|
2733
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType
|
|
2734
|
+
> = z.nativeEnum(
|
|
2735
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType,
|
|
2736
|
+
);
|
|
2737
|
+
/** @internal */
|
|
2738
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema:
|
|
2739
|
+
z.ZodNativeEnum<
|
|
2740
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType
|
|
2741
|
+
> =
|
|
2742
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema;
|
|
2743
|
+
|
|
2744
|
+
/** @internal */
|
|
2745
|
+
export const DeploymentGetConfig2DeploymentsTtl$inboundSchema: z.ZodNativeEnum<
|
|
2746
|
+
typeof DeploymentGetConfig2DeploymentsTtl
|
|
2747
|
+
> = z.nativeEnum(DeploymentGetConfig2DeploymentsTtl);
|
|
2748
|
+
/** @internal */
|
|
2749
|
+
export const DeploymentGetConfig2DeploymentsTtl$outboundSchema: z.ZodNativeEnum<
|
|
2750
|
+
typeof DeploymentGetConfig2DeploymentsTtl
|
|
2751
|
+
> = DeploymentGetConfig2DeploymentsTtl$inboundSchema;
|
|
2752
|
+
|
|
2753
|
+
/** @internal */
|
|
2754
|
+
export const DeploymentGetConfig2DeploymentsCacheControl$inboundSchema:
|
|
2755
|
+
z.ZodType<
|
|
2756
|
+
DeploymentGetConfig2DeploymentsCacheControl,
|
|
2757
|
+
z.ZodTypeDef,
|
|
2758
|
+
unknown
|
|
2759
|
+
> = z.object({
|
|
2760
|
+
type:
|
|
2761
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema,
|
|
2762
|
+
ttl: DeploymentGetConfig2DeploymentsTtl$inboundSchema.default("5m"),
|
|
2763
|
+
});
|
|
2764
|
+
/** @internal */
|
|
2765
|
+
export type DeploymentGetConfig2DeploymentsCacheControl$Outbound = {
|
|
2766
|
+
type: string;
|
|
2767
|
+
ttl: string;
|
|
2768
|
+
};
|
|
2769
|
+
|
|
2770
|
+
/** @internal */
|
|
2771
|
+
export const DeploymentGetConfig2DeploymentsCacheControl$outboundSchema:
|
|
2772
|
+
z.ZodType<
|
|
2773
|
+
DeploymentGetConfig2DeploymentsCacheControl$Outbound,
|
|
2774
|
+
z.ZodTypeDef,
|
|
2775
|
+
DeploymentGetConfig2DeploymentsCacheControl
|
|
2776
|
+
> = z.object({
|
|
2777
|
+
type:
|
|
2778
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema,
|
|
2779
|
+
ttl: DeploymentGetConfig2DeploymentsTtl$outboundSchema.default("5m"),
|
|
2780
|
+
});
|
|
2781
|
+
|
|
2782
|
+
export function deploymentGetConfig2DeploymentsCacheControlToJSON(
|
|
2783
|
+
deploymentGetConfig2DeploymentsCacheControl:
|
|
2784
|
+
DeploymentGetConfig2DeploymentsCacheControl,
|
|
2785
|
+
): string {
|
|
2786
|
+
return JSON.stringify(
|
|
2787
|
+
DeploymentGetConfig2DeploymentsCacheControl$outboundSchema.parse(
|
|
2788
|
+
deploymentGetConfig2DeploymentsCacheControl,
|
|
2789
|
+
),
|
|
2790
|
+
);
|
|
2791
|
+
}
|
|
2792
|
+
export function deploymentGetConfig2DeploymentsCacheControlFromJSON(
|
|
2793
|
+
jsonString: string,
|
|
2794
|
+
): SafeParseResult<
|
|
2795
|
+
DeploymentGetConfig2DeploymentsCacheControl,
|
|
2796
|
+
SDKValidationError
|
|
2797
|
+
> {
|
|
2798
|
+
return safeParse(
|
|
2799
|
+
jsonString,
|
|
2800
|
+
(x) =>
|
|
2801
|
+
DeploymentGetConfig2DeploymentsCacheControl$inboundSchema.parse(
|
|
2802
|
+
JSON.parse(x),
|
|
2803
|
+
),
|
|
2804
|
+
`Failed to parse 'DeploymentGetConfig2DeploymentsCacheControl' from JSON`,
|
|
2805
|
+
);
|
|
2806
|
+
}
|
|
2807
|
+
|
|
2808
|
+
/** @internal */
|
|
2809
|
+
export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
|
|
2810
|
+
.object({
|
|
2811
|
+
type: z.literal("text"),
|
|
2812
|
+
text: z.string(),
|
|
2813
|
+
cache_control: z.lazy(() =>
|
|
2814
|
+
DeploymentGetConfig2DeploymentsCacheControl$inboundSchema
|
|
2815
|
+
).optional(),
|
|
2816
|
+
}).transform((v) => {
|
|
2817
|
+
return remap$(v, {
|
|
2818
|
+
"cache_control": "cacheControl",
|
|
2819
|
+
});
|
|
2820
|
+
});
|
|
2821
|
+
/** @internal */
|
|
2822
|
+
export type Two1$Outbound = {
|
|
2823
|
+
type: "text";
|
|
2824
|
+
text: string;
|
|
2825
|
+
cache_control?:
|
|
2826
|
+
| DeploymentGetConfig2DeploymentsCacheControl$Outbound
|
|
2827
|
+
| undefined;
|
|
2828
|
+
};
|
|
2829
|
+
|
|
2830
|
+
/** @internal */
|
|
2831
|
+
export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
|
|
2832
|
+
z.object({
|
|
2833
|
+
type: z.literal("text"),
|
|
2834
|
+
text: z.string(),
|
|
2835
|
+
cacheControl: z.lazy(() =>
|
|
2836
|
+
DeploymentGetConfig2DeploymentsCacheControl$outboundSchema
|
|
2837
|
+
).optional(),
|
|
2838
|
+
}).transform((v) => {
|
|
2839
|
+
return remap$(v, {
|
|
2840
|
+
cacheControl: "cache_control",
|
|
2841
|
+
});
|
|
2842
|
+
});
|
|
2843
|
+
|
|
2844
|
+
export function two1ToJSON(two1: Two1): string {
|
|
2845
|
+
return JSON.stringify(Two1$outboundSchema.parse(two1));
|
|
2846
|
+
}
|
|
2847
|
+
export function two1FromJSON(
|
|
2848
|
+
jsonString: string,
|
|
2849
|
+
): SafeParseResult<Two1, SDKValidationError> {
|
|
2850
|
+
return safeParse(
|
|
2851
|
+
jsonString,
|
|
2852
|
+
(x) => Two1$inboundSchema.parse(JSON.parse(x)),
|
|
2853
|
+
`Failed to parse 'Two1' from JSON`,
|
|
2854
|
+
);
|
|
2855
|
+
}
|
|
2856
|
+
|
|
2857
|
+
/** @internal */
|
|
2858
|
+
export const DeploymentGetConfigContentDeployments2$inboundSchema: z.ZodType<
|
|
2859
|
+
DeploymentGetConfigContentDeployments2,
|
|
1842
2860
|
z.ZodTypeDef,
|
|
1843
2861
|
unknown
|
|
1844
2862
|
> = z.union([
|
|
1845
|
-
|
|
1846
|
-
z.object({ type: z.literal("text") }),
|
|
1847
|
-
),
|
|
2863
|
+
z.lazy(() => Two1$inboundSchema),
|
|
1848
2864
|
components.RefusalPartSchema$inboundSchema,
|
|
1849
2865
|
components.ReasoningPartSchema$inboundSchema,
|
|
1850
2866
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1851
2867
|
]);
|
|
1852
2868
|
/** @internal */
|
|
1853
|
-
export type
|
|
1854
|
-
|
|
|
2869
|
+
export type DeploymentGetConfigContentDeployments2$Outbound =
|
|
2870
|
+
| Two1$Outbound
|
|
1855
2871
|
| components.RefusalPartSchema$Outbound
|
|
1856
2872
|
| components.ReasoningPartSchema$Outbound
|
|
1857
2873
|
| components.RedactedReasoningPartSchema$Outbound;
|
|
1858
2874
|
|
|
1859
2875
|
/** @internal */
|
|
1860
|
-
export const
|
|
1861
|
-
|
|
2876
|
+
export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
|
|
2877
|
+
DeploymentGetConfigContentDeployments2$Outbound,
|
|
1862
2878
|
z.ZodTypeDef,
|
|
1863
|
-
|
|
2879
|
+
DeploymentGetConfigContentDeployments2
|
|
1864
2880
|
> = z.union([
|
|
1865
|
-
|
|
1866
|
-
z.object({ type: z.literal("text") }),
|
|
1867
|
-
),
|
|
2881
|
+
z.lazy(() => Two1$outboundSchema),
|
|
1868
2882
|
components.RefusalPartSchema$outboundSchema,
|
|
1869
2883
|
components.ReasoningPartSchema$outboundSchema,
|
|
1870
2884
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1871
2885
|
]);
|
|
1872
2886
|
|
|
1873
|
-
export function
|
|
1874
|
-
|
|
2887
|
+
export function deploymentGetConfigContentDeployments2ToJSON(
|
|
2888
|
+
deploymentGetConfigContentDeployments2:
|
|
2889
|
+
DeploymentGetConfigContentDeployments2,
|
|
1875
2890
|
): string {
|
|
1876
2891
|
return JSON.stringify(
|
|
1877
|
-
|
|
1878
|
-
|
|
2892
|
+
DeploymentGetConfigContentDeployments2$outboundSchema.parse(
|
|
2893
|
+
deploymentGetConfigContentDeployments2,
|
|
1879
2894
|
),
|
|
1880
2895
|
);
|
|
1881
2896
|
}
|
|
1882
|
-
export function
|
|
2897
|
+
export function deploymentGetConfigContentDeployments2FromJSON(
|
|
1883
2898
|
jsonString: string,
|
|
1884
|
-
): SafeParseResult<
|
|
2899
|
+
): SafeParseResult<DeploymentGetConfigContentDeployments2, SDKValidationError> {
|
|
1885
2900
|
return safeParse(
|
|
1886
2901
|
jsonString,
|
|
1887
|
-
(x) =>
|
|
1888
|
-
|
|
2902
|
+
(x) =>
|
|
2903
|
+
DeploymentGetConfigContentDeployments2$inboundSchema.parse(JSON.parse(x)),
|
|
2904
|
+
`Failed to parse 'DeploymentGetConfigContentDeployments2' from JSON`,
|
|
1889
2905
|
);
|
|
1890
2906
|
}
|
|
1891
2907
|
|
|
1892
2908
|
/** @internal */
|
|
1893
|
-
export const
|
|
2909
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsContent$inboundSchema:
|
|
1894
2910
|
z.ZodType<
|
|
1895
|
-
|
|
2911
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent,
|
|
1896
2912
|
z.ZodTypeDef,
|
|
1897
2913
|
unknown
|
|
1898
2914
|
> = z.union([
|
|
1899
2915
|
z.string(),
|
|
1900
|
-
z.array(
|
|
1901
|
-
z.
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
1906
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
1907
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
1908
|
-
]),
|
|
1909
|
-
),
|
|
2916
|
+
z.array(z.union([
|
|
2917
|
+
z.lazy(() => Two1$inboundSchema),
|
|
2918
|
+
components.RefusalPartSchema$inboundSchema,
|
|
2919
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
2920
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
2921
|
+
])),
|
|
1910
2922
|
]);
|
|
1911
2923
|
/** @internal */
|
|
1912
|
-
export type
|
|
2924
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound =
|
|
1913
2925
|
| string
|
|
1914
2926
|
| Array<
|
|
1915
|
-
|
|
|
2927
|
+
| Two1$Outbound
|
|
1916
2928
|
| components.RefusalPartSchema$Outbound
|
|
1917
2929
|
| components.ReasoningPartSchema$Outbound
|
|
1918
2930
|
| components.RedactedReasoningPartSchema$Outbound
|
|
1919
2931
|
>;
|
|
1920
2932
|
|
|
1921
2933
|
/** @internal */
|
|
1922
|
-
export const
|
|
2934
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema:
|
|
1923
2935
|
z.ZodType<
|
|
1924
|
-
|
|
2936
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound,
|
|
1925
2937
|
z.ZodTypeDef,
|
|
1926
|
-
|
|
2938
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent
|
|
1927
2939
|
> = z.union([
|
|
1928
2940
|
z.string(),
|
|
1929
|
-
z.array(
|
|
1930
|
-
z.
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
components.ReasoningPartSchema$outboundSchema,
|
|
1936
|
-
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1937
|
-
]),
|
|
1938
|
-
),
|
|
2941
|
+
z.array(z.union([
|
|
2942
|
+
z.lazy(() => Two1$outboundSchema),
|
|
2943
|
+
components.RefusalPartSchema$outboundSchema,
|
|
2944
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
2945
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2946
|
+
])),
|
|
1939
2947
|
]);
|
|
1940
2948
|
|
|
1941
|
-
export function
|
|
1942
|
-
|
|
1943
|
-
|
|
2949
|
+
export function deploymentGetConfigPrefixMessagesDeploymentsContentToJSON(
|
|
2950
|
+
deploymentGetConfigPrefixMessagesDeploymentsContent:
|
|
2951
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent,
|
|
1944
2952
|
): string {
|
|
1945
2953
|
return JSON.stringify(
|
|
1946
|
-
|
|
1947
|
-
|
|
2954
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema.parse(
|
|
2955
|
+
deploymentGetConfigPrefixMessagesDeploymentsContent,
|
|
2956
|
+
),
|
|
1948
2957
|
);
|
|
1949
2958
|
}
|
|
1950
|
-
export function
|
|
2959
|
+
export function deploymentGetConfigPrefixMessagesDeploymentsContentFromJSON(
|
|
1951
2960
|
jsonString: string,
|
|
1952
2961
|
): SafeParseResult<
|
|
1953
|
-
|
|
2962
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent,
|
|
1954
2963
|
SDKValidationError
|
|
1955
2964
|
> {
|
|
1956
2965
|
return safeParse(
|
|
1957
2966
|
jsonString,
|
|
1958
2967
|
(x) =>
|
|
1959
|
-
|
|
1960
|
-
|
|
1961
|
-
|
|
2968
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent$inboundSchema.parse(
|
|
2969
|
+
JSON.parse(x),
|
|
2970
|
+
),
|
|
2971
|
+
`Failed to parse 'DeploymentGetConfigPrefixMessagesDeploymentsContent' from JSON`,
|
|
1962
2972
|
);
|
|
1963
2973
|
}
|
|
1964
2974
|
|
|
@@ -2004,8 +3014,8 @@ export const PrefixMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
|
2004
3014
|
> = PrefixMessagesType$inboundSchema;
|
|
2005
3015
|
|
|
2006
3016
|
/** @internal */
|
|
2007
|
-
export const
|
|
2008
|
-
|
|
3017
|
+
export const FunctionT$inboundSchema: z.ZodType<
|
|
3018
|
+
FunctionT,
|
|
2009
3019
|
z.ZodTypeDef,
|
|
2010
3020
|
unknown
|
|
2011
3021
|
> = z.object({
|
|
@@ -2013,47 +3023,43 @@ export const PrefixMessagesFunction$inboundSchema: z.ZodType<
|
|
|
2013
3023
|
arguments: z.string().optional(),
|
|
2014
3024
|
});
|
|
2015
3025
|
/** @internal */
|
|
2016
|
-
export type
|
|
3026
|
+
export type FunctionT$Outbound = {
|
|
2017
3027
|
name?: string | undefined;
|
|
2018
3028
|
arguments?: string | undefined;
|
|
2019
3029
|
};
|
|
2020
3030
|
|
|
2021
3031
|
/** @internal */
|
|
2022
|
-
export const
|
|
2023
|
-
|
|
3032
|
+
export const FunctionT$outboundSchema: z.ZodType<
|
|
3033
|
+
FunctionT$Outbound,
|
|
2024
3034
|
z.ZodTypeDef,
|
|
2025
|
-
|
|
3035
|
+
FunctionT
|
|
2026
3036
|
> = z.object({
|
|
2027
3037
|
name: z.string().optional(),
|
|
2028
3038
|
arguments: z.string().optional(),
|
|
2029
3039
|
});
|
|
2030
3040
|
|
|
2031
|
-
export function
|
|
2032
|
-
|
|
2033
|
-
): string {
|
|
2034
|
-
return JSON.stringify(
|
|
2035
|
-
PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
|
|
2036
|
-
);
|
|
3041
|
+
export function functionToJSON(functionT: FunctionT): string {
|
|
3042
|
+
return JSON.stringify(FunctionT$outboundSchema.parse(functionT));
|
|
2037
3043
|
}
|
|
2038
|
-
export function
|
|
3044
|
+
export function functionFromJSON(
|
|
2039
3045
|
jsonString: string,
|
|
2040
|
-
): SafeParseResult<
|
|
3046
|
+
): SafeParseResult<FunctionT, SDKValidationError> {
|
|
2041
3047
|
return safeParse(
|
|
2042
3048
|
jsonString,
|
|
2043
|
-
(x) =>
|
|
2044
|
-
`Failed to parse '
|
|
3049
|
+
(x) => FunctionT$inboundSchema.parse(JSON.parse(x)),
|
|
3050
|
+
`Failed to parse 'FunctionT' from JSON`,
|
|
2045
3051
|
);
|
|
2046
3052
|
}
|
|
2047
3053
|
|
|
2048
3054
|
/** @internal */
|
|
2049
|
-
export const
|
|
2050
|
-
|
|
3055
|
+
export const ToolCalls$inboundSchema: z.ZodType<
|
|
3056
|
+
ToolCalls,
|
|
2051
3057
|
z.ZodTypeDef,
|
|
2052
3058
|
unknown
|
|
2053
3059
|
> = z.object({
|
|
2054
3060
|
id: z.string(),
|
|
2055
3061
|
type: PrefixMessagesType$inboundSchema,
|
|
2056
|
-
function: z.lazy(() =>
|
|
3062
|
+
function: z.lazy(() => FunctionT$inboundSchema),
|
|
2057
3063
|
thought_signature: z.string().optional(),
|
|
2058
3064
|
}).transform((v) => {
|
|
2059
3065
|
return remap$(v, {
|
|
@@ -2061,22 +3067,22 @@ export const PrefixMessagesToolCalls$inboundSchema: z.ZodType<
|
|
|
2061
3067
|
});
|
|
2062
3068
|
});
|
|
2063
3069
|
/** @internal */
|
|
2064
|
-
export type
|
|
3070
|
+
export type ToolCalls$Outbound = {
|
|
2065
3071
|
id: string;
|
|
2066
3072
|
type: string;
|
|
2067
|
-
function:
|
|
3073
|
+
function: FunctionT$Outbound;
|
|
2068
3074
|
thought_signature?: string | undefined;
|
|
2069
3075
|
};
|
|
2070
3076
|
|
|
2071
3077
|
/** @internal */
|
|
2072
|
-
export const
|
|
2073
|
-
|
|
3078
|
+
export const ToolCalls$outboundSchema: z.ZodType<
|
|
3079
|
+
ToolCalls$Outbound,
|
|
2074
3080
|
z.ZodTypeDef,
|
|
2075
|
-
|
|
3081
|
+
ToolCalls
|
|
2076
3082
|
> = z.object({
|
|
2077
3083
|
id: z.string(),
|
|
2078
3084
|
type: PrefixMessagesType$outboundSchema,
|
|
2079
|
-
function: z.lazy(() =>
|
|
3085
|
+
function: z.lazy(() => FunctionT$outboundSchema),
|
|
2080
3086
|
thoughtSignature: z.string().optional(),
|
|
2081
3087
|
}).transform((v) => {
|
|
2082
3088
|
return remap$(v, {
|
|
@@ -2084,20 +3090,16 @@ export const PrefixMessagesToolCalls$outboundSchema: z.ZodType<
|
|
|
2084
3090
|
});
|
|
2085
3091
|
});
|
|
2086
3092
|
|
|
2087
|
-
export function
|
|
2088
|
-
|
|
2089
|
-
): string {
|
|
2090
|
-
return JSON.stringify(
|
|
2091
|
-
PrefixMessagesToolCalls$outboundSchema.parse(prefixMessagesToolCalls),
|
|
2092
|
-
);
|
|
3093
|
+
export function toolCallsToJSON(toolCalls: ToolCalls): string {
|
|
3094
|
+
return JSON.stringify(ToolCalls$outboundSchema.parse(toolCalls));
|
|
2093
3095
|
}
|
|
2094
|
-
export function
|
|
3096
|
+
export function toolCallsFromJSON(
|
|
2095
3097
|
jsonString: string,
|
|
2096
|
-
): SafeParseResult<
|
|
3098
|
+
): SafeParseResult<ToolCalls, SDKValidationError> {
|
|
2097
3099
|
return safeParse(
|
|
2098
3100
|
jsonString,
|
|
2099
|
-
(x) =>
|
|
2100
|
-
`Failed to parse '
|
|
3101
|
+
(x) => ToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
3102
|
+
`Failed to parse 'ToolCalls' from JSON`,
|
|
2101
3103
|
);
|
|
2102
3104
|
}
|
|
2103
3105
|
|
|
@@ -2112,9 +3114,7 @@ export const AssistantMessage$inboundSchema: z.ZodType<
|
|
|
2112
3114
|
z.string(),
|
|
2113
3115
|
z.array(
|
|
2114
3116
|
z.union([
|
|
2115
|
-
|
|
2116
|
-
z.object({ type: z.literal("text") }),
|
|
2117
|
-
),
|
|
3117
|
+
z.lazy(() => Two1$inboundSchema),
|
|
2118
3118
|
components.RefusalPartSchema$inboundSchema,
|
|
2119
3119
|
components.ReasoningPartSchema$inboundSchema,
|
|
2120
3120
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
@@ -2126,8 +3126,7 @@ export const AssistantMessage$inboundSchema: z.ZodType<
|
|
|
2126
3126
|
role: z.literal("assistant"),
|
|
2127
3127
|
name: z.string().optional(),
|
|
2128
3128
|
audio: z.nullable(z.lazy(() => Audio$inboundSchema)).optional(),
|
|
2129
|
-
tool_calls: z.array(z.lazy(() =>
|
|
2130
|
-
.optional(),
|
|
3129
|
+
tool_calls: z.array(z.lazy(() => ToolCalls$inboundSchema)).optional(),
|
|
2131
3130
|
}).transform((v) => {
|
|
2132
3131
|
return remap$(v, {
|
|
2133
3132
|
"tool_calls": "toolCalls",
|
|
@@ -2138,7 +3137,7 @@ export type AssistantMessage$Outbound = {
|
|
|
2138
3137
|
content?:
|
|
2139
3138
|
| string
|
|
2140
3139
|
| Array<
|
|
2141
|
-
|
|
|
3140
|
+
| Two1$Outbound
|
|
2142
3141
|
| components.RefusalPartSchema$Outbound
|
|
2143
3142
|
| components.ReasoningPartSchema$Outbound
|
|
2144
3143
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -2149,7 +3148,7 @@ export type AssistantMessage$Outbound = {
|
|
|
2149
3148
|
role: "assistant";
|
|
2150
3149
|
name?: string | undefined;
|
|
2151
3150
|
audio?: Audio$Outbound | null | undefined;
|
|
2152
|
-
tool_calls?: Array<
|
|
3151
|
+
tool_calls?: Array<ToolCalls$Outbound> | undefined;
|
|
2153
3152
|
};
|
|
2154
3153
|
|
|
2155
3154
|
/** @internal */
|
|
@@ -2163,9 +3162,7 @@ export const AssistantMessage$outboundSchema: z.ZodType<
|
|
|
2163
3162
|
z.string(),
|
|
2164
3163
|
z.array(
|
|
2165
3164
|
z.union([
|
|
2166
|
-
|
|
2167
|
-
z.object({ type: z.literal("text") }),
|
|
2168
|
-
),
|
|
3165
|
+
z.lazy(() => Two1$outboundSchema),
|
|
2169
3166
|
components.RefusalPartSchema$outboundSchema,
|
|
2170
3167
|
components.ReasoningPartSchema$outboundSchema,
|
|
2171
3168
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
@@ -2177,8 +3174,7 @@ export const AssistantMessage$outboundSchema: z.ZodType<
|
|
|
2177
3174
|
role: z.literal("assistant"),
|
|
2178
3175
|
name: z.string().optional(),
|
|
2179
3176
|
audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
|
|
2180
|
-
toolCalls: z.array(z.lazy(() =>
|
|
2181
|
-
.optional(),
|
|
3177
|
+
toolCalls: z.array(z.lazy(() => ToolCalls$outboundSchema)).optional(),
|
|
2182
3178
|
}).transform((v) => {
|
|
2183
3179
|
return remap$(v, {
|
|
2184
3180
|
toolCalls: "tool_calls",
|
|
@@ -2203,55 +3199,64 @@ export function assistantMessageFromJSON(
|
|
|
2203
3199
|
}
|
|
2204
3200
|
|
|
2205
3201
|
/** @internal */
|
|
2206
|
-
export const
|
|
2207
|
-
typeof
|
|
2208
|
-
|
|
3202
|
+
export const DeploymentGetConfig2DeploymentsRequestType$inboundSchema:
|
|
3203
|
+
z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestType> = z
|
|
3204
|
+
.nativeEnum(DeploymentGetConfig2DeploymentsRequestType);
|
|
2209
3205
|
/** @internal */
|
|
2210
|
-
export const
|
|
2211
|
-
z.ZodNativeEnum<typeof
|
|
2212
|
-
|
|
3206
|
+
export const DeploymentGetConfig2DeploymentsRequestType$outboundSchema:
|
|
3207
|
+
z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestType> =
|
|
3208
|
+
DeploymentGetConfig2DeploymentsRequestType$inboundSchema;
|
|
2213
3209
|
|
|
2214
3210
|
/** @internal */
|
|
2215
|
-
export const
|
|
3211
|
+
export const DeploymentGetConfig2Ttl$inboundSchema: z.ZodNativeEnum<
|
|
3212
|
+
typeof DeploymentGetConfig2Ttl
|
|
3213
|
+
> = z.nativeEnum(DeploymentGetConfig2Ttl);
|
|
2216
3214
|
/** @internal */
|
|
2217
|
-
export const
|
|
2218
|
-
|
|
3215
|
+
export const DeploymentGetConfig2Ttl$outboundSchema: z.ZodNativeEnum<
|
|
3216
|
+
typeof DeploymentGetConfig2Ttl
|
|
3217
|
+
> = DeploymentGetConfig2Ttl$inboundSchema;
|
|
2219
3218
|
|
|
2220
3219
|
/** @internal */
|
|
2221
|
-
export const
|
|
2222
|
-
|
|
3220
|
+
export const DeploymentGetConfig2CacheControl$inboundSchema: z.ZodType<
|
|
3221
|
+
DeploymentGetConfig2CacheControl,
|
|
2223
3222
|
z.ZodTypeDef,
|
|
2224
3223
|
unknown
|
|
2225
3224
|
> = z.object({
|
|
2226
|
-
type:
|
|
2227
|
-
ttl:
|
|
3225
|
+
type: DeploymentGetConfig2DeploymentsRequestType$inboundSchema,
|
|
3226
|
+
ttl: DeploymentGetConfig2Ttl$inboundSchema.default("5m"),
|
|
2228
3227
|
});
|
|
2229
3228
|
/** @internal */
|
|
2230
|
-
export type
|
|
3229
|
+
export type DeploymentGetConfig2CacheControl$Outbound = {
|
|
2231
3230
|
type: string;
|
|
2232
3231
|
ttl: string;
|
|
2233
3232
|
};
|
|
2234
3233
|
|
|
2235
3234
|
/** @internal */
|
|
2236
|
-
export const
|
|
2237
|
-
|
|
3235
|
+
export const DeploymentGetConfig2CacheControl$outboundSchema: z.ZodType<
|
|
3236
|
+
DeploymentGetConfig2CacheControl$Outbound,
|
|
2238
3237
|
z.ZodTypeDef,
|
|
2239
|
-
|
|
3238
|
+
DeploymentGetConfig2CacheControl
|
|
2240
3239
|
> = z.object({
|
|
2241
|
-
type:
|
|
2242
|
-
ttl:
|
|
3240
|
+
type: DeploymentGetConfig2DeploymentsRequestType$outboundSchema,
|
|
3241
|
+
ttl: DeploymentGetConfig2Ttl$outboundSchema.default("5m"),
|
|
2243
3242
|
});
|
|
2244
3243
|
|
|
2245
|
-
export function
|
|
2246
|
-
|
|
3244
|
+
export function deploymentGetConfig2CacheControlToJSON(
|
|
3245
|
+
deploymentGetConfig2CacheControl: DeploymentGetConfig2CacheControl,
|
|
3246
|
+
): string {
|
|
3247
|
+
return JSON.stringify(
|
|
3248
|
+
DeploymentGetConfig2CacheControl$outboundSchema.parse(
|
|
3249
|
+
deploymentGetConfig2CacheControl,
|
|
3250
|
+
),
|
|
3251
|
+
);
|
|
2247
3252
|
}
|
|
2248
|
-
export function
|
|
3253
|
+
export function deploymentGetConfig2CacheControlFromJSON(
|
|
2249
3254
|
jsonString: string,
|
|
2250
|
-
): SafeParseResult<
|
|
3255
|
+
): SafeParseResult<DeploymentGetConfig2CacheControl, SDKValidationError> {
|
|
2251
3256
|
return safeParse(
|
|
2252
3257
|
jsonString,
|
|
2253
|
-
(x) =>
|
|
2254
|
-
`Failed to parse '
|
|
3258
|
+
(x) => DeploymentGetConfig2CacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
3259
|
+
`Failed to parse 'DeploymentGetConfig2CacheControl' from JSON`,
|
|
2255
3260
|
);
|
|
2256
3261
|
}
|
|
2257
3262
|
|
|
@@ -2259,7 +3264,8 @@ export function cacheControlFromJSON(
|
|
|
2259
3264
|
export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
|
|
2260
3265
|
.object({
|
|
2261
3266
|
type: z.literal("file"),
|
|
2262
|
-
cache_control: z.lazy(() =>
|
|
3267
|
+
cache_control: z.lazy(() => DeploymentGetConfig2CacheControl$inboundSchema)
|
|
3268
|
+
.optional(),
|
|
2263
3269
|
file: components.FileContentPartSchema$inboundSchema,
|
|
2264
3270
|
}).transform((v) => {
|
|
2265
3271
|
return remap$(v, {
|
|
@@ -2269,7 +3275,7 @@ export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
|
|
|
2269
3275
|
/** @internal */
|
|
2270
3276
|
export type Four$Outbound = {
|
|
2271
3277
|
type: "file";
|
|
2272
|
-
cache_control?:
|
|
3278
|
+
cache_control?: DeploymentGetConfig2CacheControl$Outbound | undefined;
|
|
2273
3279
|
file: components.FileContentPartSchema$Outbound;
|
|
2274
3280
|
};
|
|
2275
3281
|
|
|
@@ -2277,7 +3283,8 @@ export type Four$Outbound = {
|
|
|
2277
3283
|
export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
|
|
2278
3284
|
z.object({
|
|
2279
3285
|
type: z.literal("file"),
|
|
2280
|
-
cacheControl: z.lazy(() =>
|
|
3286
|
+
cacheControl: z.lazy(() => DeploymentGetConfig2CacheControl$outboundSchema)
|
|
3287
|
+
.optional(),
|
|
2281
3288
|
file: components.FileContentPartSchema$outboundSchema,
|
|
2282
3289
|
}).transform((v) => {
|
|
2283
3290
|
return remap$(v, {
|
|
@@ -2299,124 +3306,215 @@ export function fourFromJSON(
|
|
|
2299
3306
|
}
|
|
2300
3307
|
|
|
2301
3308
|
/** @internal */
|
|
2302
|
-
export const
|
|
2303
|
-
|
|
3309
|
+
export const DeploymentGetConfig2Type$inboundSchema: z.ZodNativeEnum<
|
|
3310
|
+
typeof DeploymentGetConfig2Type
|
|
3311
|
+
> = z.nativeEnum(DeploymentGetConfig2Type);
|
|
3312
|
+
/** @internal */
|
|
3313
|
+
export const DeploymentGetConfig2Type$outboundSchema: z.ZodNativeEnum<
|
|
3314
|
+
typeof DeploymentGetConfig2Type
|
|
3315
|
+
> = DeploymentGetConfig2Type$inboundSchema;
|
|
3316
|
+
|
|
3317
|
+
/** @internal */
|
|
3318
|
+
export const TwoTtl$inboundSchema: z.ZodNativeEnum<typeof TwoTtl> = z
|
|
3319
|
+
.nativeEnum(TwoTtl);
|
|
3320
|
+
/** @internal */
|
|
3321
|
+
export const TwoTtl$outboundSchema: z.ZodNativeEnum<typeof TwoTtl> =
|
|
3322
|
+
TwoTtl$inboundSchema;
|
|
3323
|
+
|
|
3324
|
+
/** @internal */
|
|
3325
|
+
export const TwoCacheControl$inboundSchema: z.ZodType<
|
|
3326
|
+
TwoCacheControl,
|
|
3327
|
+
z.ZodTypeDef,
|
|
3328
|
+
unknown
|
|
3329
|
+
> = z.object({
|
|
3330
|
+
type: DeploymentGetConfig2Type$inboundSchema,
|
|
3331
|
+
ttl: TwoTtl$inboundSchema.default("5m"),
|
|
3332
|
+
});
|
|
3333
|
+
/** @internal */
|
|
3334
|
+
export type TwoCacheControl$Outbound = {
|
|
3335
|
+
type: string;
|
|
3336
|
+
ttl: string;
|
|
3337
|
+
};
|
|
3338
|
+
|
|
3339
|
+
/** @internal */
|
|
3340
|
+
export const TwoCacheControl$outboundSchema: z.ZodType<
|
|
3341
|
+
TwoCacheControl$Outbound,
|
|
3342
|
+
z.ZodTypeDef,
|
|
3343
|
+
TwoCacheControl
|
|
3344
|
+
> = z.object({
|
|
3345
|
+
type: DeploymentGetConfig2Type$outboundSchema,
|
|
3346
|
+
ttl: TwoTtl$outboundSchema.default("5m"),
|
|
3347
|
+
});
|
|
3348
|
+
|
|
3349
|
+
export function twoCacheControlToJSON(
|
|
3350
|
+
twoCacheControl: TwoCacheControl,
|
|
3351
|
+
): string {
|
|
3352
|
+
return JSON.stringify(TwoCacheControl$outboundSchema.parse(twoCacheControl));
|
|
3353
|
+
}
|
|
3354
|
+
export function twoCacheControlFromJSON(
|
|
3355
|
+
jsonString: string,
|
|
3356
|
+
): SafeParseResult<TwoCacheControl, SDKValidationError> {
|
|
3357
|
+
return safeParse(
|
|
3358
|
+
jsonString,
|
|
3359
|
+
(x) => TwoCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
3360
|
+
`Failed to parse 'TwoCacheControl' from JSON`,
|
|
3361
|
+
);
|
|
3362
|
+
}
|
|
3363
|
+
|
|
3364
|
+
/** @internal */
|
|
3365
|
+
export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
|
|
3366
|
+
.object({
|
|
3367
|
+
type: z.literal("text"),
|
|
3368
|
+
text: z.string(),
|
|
3369
|
+
cache_control: z.lazy(() => TwoCacheControl$inboundSchema).optional(),
|
|
3370
|
+
}).transform((v) => {
|
|
3371
|
+
return remap$(v, {
|
|
3372
|
+
"cache_control": "cacheControl",
|
|
3373
|
+
});
|
|
3374
|
+
});
|
|
3375
|
+
/** @internal */
|
|
3376
|
+
export type One$Outbound = {
|
|
3377
|
+
type: "text";
|
|
3378
|
+
text: string;
|
|
3379
|
+
cache_control?: TwoCacheControl$Outbound | undefined;
|
|
3380
|
+
};
|
|
3381
|
+
|
|
3382
|
+
/** @internal */
|
|
3383
|
+
export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
|
|
3384
|
+
.object({
|
|
3385
|
+
type: z.literal("text"),
|
|
3386
|
+
text: z.string(),
|
|
3387
|
+
cacheControl: z.lazy(() => TwoCacheControl$outboundSchema).optional(),
|
|
3388
|
+
}).transform((v) => {
|
|
3389
|
+
return remap$(v, {
|
|
3390
|
+
cacheControl: "cache_control",
|
|
3391
|
+
});
|
|
3392
|
+
});
|
|
3393
|
+
|
|
3394
|
+
export function oneToJSON(one: One): string {
|
|
3395
|
+
return JSON.stringify(One$outboundSchema.parse(one));
|
|
3396
|
+
}
|
|
3397
|
+
export function oneFromJSON(
|
|
3398
|
+
jsonString: string,
|
|
3399
|
+
): SafeParseResult<One, SDKValidationError> {
|
|
3400
|
+
return safeParse(
|
|
3401
|
+
jsonString,
|
|
3402
|
+
(x) => One$inboundSchema.parse(JSON.parse(x)),
|
|
3403
|
+
`Failed to parse 'One' from JSON`,
|
|
3404
|
+
);
|
|
3405
|
+
}
|
|
3406
|
+
|
|
3407
|
+
/** @internal */
|
|
3408
|
+
export const DeploymentGetConfigContent2$inboundSchema: z.ZodType<
|
|
3409
|
+
DeploymentGetConfigContent2,
|
|
2304
3410
|
z.ZodTypeDef,
|
|
2305
3411
|
unknown
|
|
2306
3412
|
> = z.union([
|
|
2307
|
-
|
|
2308
|
-
z.object({ type: z.literal("text") }),
|
|
2309
|
-
),
|
|
3413
|
+
z.lazy(() => One$inboundSchema),
|
|
2310
3414
|
components.ImageContentPartSchema$inboundSchema,
|
|
2311
3415
|
components.AudioContentPartSchema$inboundSchema,
|
|
2312
3416
|
z.lazy(() => Four$inboundSchema),
|
|
2313
3417
|
]);
|
|
2314
3418
|
/** @internal */
|
|
2315
|
-
export type
|
|
2316
|
-
|
|
|
3419
|
+
export type DeploymentGetConfigContent2$Outbound =
|
|
3420
|
+
| One$Outbound
|
|
2317
3421
|
| components.ImageContentPartSchema$Outbound
|
|
2318
3422
|
| components.AudioContentPartSchema$Outbound
|
|
2319
3423
|
| Four$Outbound;
|
|
2320
3424
|
|
|
2321
3425
|
/** @internal */
|
|
2322
|
-
export const
|
|
2323
|
-
|
|
3426
|
+
export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
|
|
3427
|
+
DeploymentGetConfigContent2$Outbound,
|
|
2324
3428
|
z.ZodTypeDef,
|
|
2325
|
-
|
|
3429
|
+
DeploymentGetConfigContent2
|
|
2326
3430
|
> = z.union([
|
|
2327
|
-
|
|
2328
|
-
z.object({ type: z.literal("text") }),
|
|
2329
|
-
),
|
|
3431
|
+
z.lazy(() => One$outboundSchema),
|
|
2330
3432
|
components.ImageContentPartSchema$outboundSchema,
|
|
2331
3433
|
components.AudioContentPartSchema$outboundSchema,
|
|
2332
3434
|
z.lazy(() => Four$outboundSchema),
|
|
2333
3435
|
]);
|
|
2334
3436
|
|
|
2335
|
-
export function
|
|
2336
|
-
|
|
3437
|
+
export function deploymentGetConfigContent2ToJSON(
|
|
3438
|
+
deploymentGetConfigContent2: DeploymentGetConfigContent2,
|
|
3439
|
+
): string {
|
|
3440
|
+
return JSON.stringify(
|
|
3441
|
+
DeploymentGetConfigContent2$outboundSchema.parse(
|
|
3442
|
+
deploymentGetConfigContent2,
|
|
3443
|
+
),
|
|
3444
|
+
);
|
|
2337
3445
|
}
|
|
2338
|
-
export function
|
|
3446
|
+
export function deploymentGetConfigContent2FromJSON(
|
|
2339
3447
|
jsonString: string,
|
|
2340
|
-
): SafeParseResult<
|
|
3448
|
+
): SafeParseResult<DeploymentGetConfigContent2, SDKValidationError> {
|
|
2341
3449
|
return safeParse(
|
|
2342
3450
|
jsonString,
|
|
2343
|
-
(x) =>
|
|
2344
|
-
`Failed to parse '
|
|
3451
|
+
(x) => DeploymentGetConfigContent2$inboundSchema.parse(JSON.parse(x)),
|
|
3452
|
+
`Failed to parse 'DeploymentGetConfigContent2' from JSON`,
|
|
2345
3453
|
);
|
|
2346
3454
|
}
|
|
2347
3455
|
|
|
2348
3456
|
/** @internal */
|
|
2349
|
-
export const
|
|
2350
|
-
|
|
2351
|
-
|
|
2352
|
-
|
|
2353
|
-
|
|
2354
|
-
|
|
2355
|
-
|
|
2356
|
-
z.
|
|
2357
|
-
|
|
2358
|
-
|
|
2359
|
-
|
|
2360
|
-
|
|
2361
|
-
|
|
2362
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
2363
|
-
z.lazy(() => Four$inboundSchema),
|
|
2364
|
-
]),
|
|
2365
|
-
),
|
|
2366
|
-
]);
|
|
3457
|
+
export const DeploymentGetConfigPrefixMessagesContent$inboundSchema: z.ZodType<
|
|
3458
|
+
DeploymentGetConfigPrefixMessagesContent,
|
|
3459
|
+
z.ZodTypeDef,
|
|
3460
|
+
unknown
|
|
3461
|
+
> = z.union([
|
|
3462
|
+
z.string(),
|
|
3463
|
+
z.array(z.union([
|
|
3464
|
+
z.lazy(() => One$inboundSchema),
|
|
3465
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
3466
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
3467
|
+
z.lazy(() => Four$inboundSchema),
|
|
3468
|
+
])),
|
|
3469
|
+
]);
|
|
2367
3470
|
/** @internal */
|
|
2368
|
-
export type
|
|
3471
|
+
export type DeploymentGetConfigPrefixMessagesContent$Outbound =
|
|
2369
3472
|
| string
|
|
2370
3473
|
| Array<
|
|
2371
|
-
|
|
|
3474
|
+
| One$Outbound
|
|
2372
3475
|
| components.ImageContentPartSchema$Outbound
|
|
2373
3476
|
| components.AudioContentPartSchema$Outbound
|
|
2374
3477
|
| Four$Outbound
|
|
2375
3478
|
>;
|
|
2376
3479
|
|
|
2377
3480
|
/** @internal */
|
|
2378
|
-
export const
|
|
2379
|
-
|
|
2380
|
-
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
z.
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2389
|
-
|
|
2390
|
-
|
|
2391
|
-
components.AudioContentPartSchema$outboundSchema,
|
|
2392
|
-
z.lazy(() => Four$outboundSchema),
|
|
2393
|
-
]),
|
|
2394
|
-
),
|
|
2395
|
-
]);
|
|
3481
|
+
export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
|
|
3482
|
+
DeploymentGetConfigPrefixMessagesContent$Outbound,
|
|
3483
|
+
z.ZodTypeDef,
|
|
3484
|
+
DeploymentGetConfigPrefixMessagesContent
|
|
3485
|
+
> = z.union([
|
|
3486
|
+
z.string(),
|
|
3487
|
+
z.array(z.union([
|
|
3488
|
+
z.lazy(() => One$outboundSchema),
|
|
3489
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
3490
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
3491
|
+
z.lazy(() => Four$outboundSchema),
|
|
3492
|
+
])),
|
|
3493
|
+
]);
|
|
2396
3494
|
|
|
2397
|
-
export function
|
|
2398
|
-
|
|
2399
|
-
|
|
3495
|
+
export function deploymentGetConfigPrefixMessagesContentToJSON(
|
|
3496
|
+
deploymentGetConfigPrefixMessagesContent:
|
|
3497
|
+
DeploymentGetConfigPrefixMessagesContent,
|
|
2400
3498
|
): string {
|
|
2401
3499
|
return JSON.stringify(
|
|
2402
|
-
|
|
2403
|
-
|
|
3500
|
+
DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(
|
|
3501
|
+
deploymentGetConfigPrefixMessagesContent,
|
|
2404
3502
|
),
|
|
2405
3503
|
);
|
|
2406
3504
|
}
|
|
2407
|
-
export function
|
|
3505
|
+
export function deploymentGetConfigPrefixMessagesContentFromJSON(
|
|
2408
3506
|
jsonString: string,
|
|
2409
3507
|
): SafeParseResult<
|
|
2410
|
-
|
|
3508
|
+
DeploymentGetConfigPrefixMessagesContent,
|
|
2411
3509
|
SDKValidationError
|
|
2412
3510
|
> {
|
|
2413
3511
|
return safeParse(
|
|
2414
3512
|
jsonString,
|
|
2415
3513
|
(x) =>
|
|
2416
|
-
|
|
3514
|
+
DeploymentGetConfigPrefixMessagesContent$inboundSchema.parse(
|
|
2417
3515
|
JSON.parse(x),
|
|
2418
3516
|
),
|
|
2419
|
-
`Failed to parse '
|
|
3517
|
+
`Failed to parse 'DeploymentGetConfigPrefixMessagesContent' from JSON`,
|
|
2420
3518
|
);
|
|
2421
3519
|
}
|
|
2422
3520
|
|
|
@@ -2430,16 +3528,12 @@ export const UserMessage$inboundSchema: z.ZodType<
|
|
|
2430
3528
|
name: z.string().optional(),
|
|
2431
3529
|
content: z.union([
|
|
2432
3530
|
z.string(),
|
|
2433
|
-
z.array(
|
|
2434
|
-
z.
|
|
2435
|
-
|
|
2436
|
-
|
|
2437
|
-
|
|
2438
|
-
|
|
2439
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
2440
|
-
z.lazy(() => Four$inboundSchema),
|
|
2441
|
-
]),
|
|
2442
|
-
),
|
|
3531
|
+
z.array(z.union([
|
|
3532
|
+
z.lazy(() => One$inboundSchema),
|
|
3533
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
3534
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
3535
|
+
z.lazy(() => Four$inboundSchema),
|
|
3536
|
+
])),
|
|
2443
3537
|
]),
|
|
2444
3538
|
});
|
|
2445
3539
|
/** @internal */
|
|
@@ -2449,7 +3543,7 @@ export type UserMessage$Outbound = {
|
|
|
2449
3543
|
content:
|
|
2450
3544
|
| string
|
|
2451
3545
|
| Array<
|
|
2452
|
-
|
|
|
3546
|
+
| One$Outbound
|
|
2453
3547
|
| components.ImageContentPartSchema$Outbound
|
|
2454
3548
|
| components.AudioContentPartSchema$Outbound
|
|
2455
3549
|
| Four$Outbound
|
|
@@ -2466,16 +3560,12 @@ export const UserMessage$outboundSchema: z.ZodType<
|
|
|
2466
3560
|
name: z.string().optional(),
|
|
2467
3561
|
content: z.union([
|
|
2468
3562
|
z.string(),
|
|
2469
|
-
z.array(
|
|
2470
|
-
z.
|
|
2471
|
-
|
|
2472
|
-
|
|
2473
|
-
|
|
2474
|
-
|
|
2475
|
-
components.AudioContentPartSchema$outboundSchema,
|
|
2476
|
-
z.lazy(() => Four$outboundSchema),
|
|
2477
|
-
]),
|
|
2478
|
-
),
|
|
3563
|
+
z.array(z.union([
|
|
3564
|
+
z.lazy(() => One$outboundSchema),
|
|
3565
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
3566
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
3567
|
+
z.lazy(() => Four$outboundSchema),
|
|
3568
|
+
])),
|
|
2479
3569
|
]),
|
|
2480
3570
|
});
|
|
2481
3571
|
|
|
@@ -2493,52 +3583,151 @@ export function userMessageFromJSON(
|
|
|
2493
3583
|
}
|
|
2494
3584
|
|
|
2495
3585
|
/** @internal */
|
|
2496
|
-
export const
|
|
2497
|
-
|
|
3586
|
+
export const DeploymentGetConfigContentType$inboundSchema: z.ZodNativeEnum<
|
|
3587
|
+
typeof DeploymentGetConfigContentType
|
|
3588
|
+
> = z.nativeEnum(DeploymentGetConfigContentType);
|
|
3589
|
+
/** @internal */
|
|
3590
|
+
export const DeploymentGetConfigContentType$outboundSchema: z.ZodNativeEnum<
|
|
3591
|
+
typeof DeploymentGetConfigContentType
|
|
3592
|
+
> = DeploymentGetConfigContentType$inboundSchema;
|
|
3593
|
+
|
|
3594
|
+
/** @internal */
|
|
3595
|
+
export const DeploymentGetConfigContentDeploymentsType$inboundSchema:
|
|
3596
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigContentDeploymentsType> = z
|
|
3597
|
+
.nativeEnum(DeploymentGetConfigContentDeploymentsType);
|
|
3598
|
+
/** @internal */
|
|
3599
|
+
export const DeploymentGetConfigContentDeploymentsType$outboundSchema:
|
|
3600
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigContentDeploymentsType> =
|
|
3601
|
+
DeploymentGetConfigContentDeploymentsType$inboundSchema;
|
|
3602
|
+
|
|
3603
|
+
/** @internal */
|
|
3604
|
+
export const ContentTtl$inboundSchema: z.ZodNativeEnum<typeof ContentTtl> = z
|
|
3605
|
+
.nativeEnum(ContentTtl);
|
|
3606
|
+
/** @internal */
|
|
3607
|
+
export const ContentTtl$outboundSchema: z.ZodNativeEnum<typeof ContentTtl> =
|
|
3608
|
+
ContentTtl$inboundSchema;
|
|
3609
|
+
|
|
3610
|
+
/** @internal */
|
|
3611
|
+
export const ContentCacheControl$inboundSchema: z.ZodType<
|
|
3612
|
+
ContentCacheControl,
|
|
2498
3613
|
z.ZodTypeDef,
|
|
2499
3614
|
unknown
|
|
2500
|
-
> = z.
|
|
2501
|
-
|
|
2502
|
-
|
|
2503
|
-
|
|
3615
|
+
> = z.object({
|
|
3616
|
+
type: DeploymentGetConfigContentDeploymentsType$inboundSchema,
|
|
3617
|
+
ttl: ContentTtl$inboundSchema.default("5m"),
|
|
3618
|
+
});
|
|
2504
3619
|
/** @internal */
|
|
2505
|
-
export type
|
|
2506
|
-
|
|
2507
|
-
|
|
3620
|
+
export type ContentCacheControl$Outbound = {
|
|
3621
|
+
type: string;
|
|
3622
|
+
ttl: string;
|
|
3623
|
+
};
|
|
2508
3624
|
|
|
2509
3625
|
/** @internal */
|
|
2510
|
-
export const
|
|
2511
|
-
|
|
3626
|
+
export const ContentCacheControl$outboundSchema: z.ZodType<
|
|
3627
|
+
ContentCacheControl$Outbound,
|
|
2512
3628
|
z.ZodTypeDef,
|
|
2513
|
-
|
|
2514
|
-
> = z.
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
3629
|
+
ContentCacheControl
|
|
3630
|
+
> = z.object({
|
|
3631
|
+
type: DeploymentGetConfigContentDeploymentsType$outboundSchema,
|
|
3632
|
+
ttl: ContentTtl$outboundSchema.default("5m"),
|
|
3633
|
+
});
|
|
2518
3634
|
|
|
2519
|
-
export function
|
|
2520
|
-
|
|
2521
|
-
DeploymentGetConfigPrefixMessagesContent,
|
|
3635
|
+
export function contentCacheControlToJSON(
|
|
3636
|
+
contentCacheControl: ContentCacheControl,
|
|
2522
3637
|
): string {
|
|
2523
3638
|
return JSON.stringify(
|
|
2524
|
-
|
|
2525
|
-
deploymentGetConfigPrefixMessagesContent,
|
|
2526
|
-
),
|
|
3639
|
+
ContentCacheControl$outboundSchema.parse(contentCacheControl),
|
|
2527
3640
|
);
|
|
2528
3641
|
}
|
|
2529
|
-
export function
|
|
3642
|
+
export function contentCacheControlFromJSON(
|
|
2530
3643
|
jsonString: string,
|
|
2531
|
-
): SafeParseResult<
|
|
2532
|
-
DeploymentGetConfigPrefixMessagesContent,
|
|
2533
|
-
SDKValidationError
|
|
2534
|
-
> {
|
|
3644
|
+
): SafeParseResult<ContentCacheControl, SDKValidationError> {
|
|
2535
3645
|
return safeParse(
|
|
2536
3646
|
jsonString,
|
|
2537
|
-
(x) =>
|
|
2538
|
-
|
|
2539
|
-
|
|
2540
|
-
|
|
2541
|
-
|
|
3647
|
+
(x) => ContentCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
3648
|
+
`Failed to parse 'ContentCacheControl' from JSON`,
|
|
3649
|
+
);
|
|
3650
|
+
}
|
|
3651
|
+
|
|
3652
|
+
/** @internal */
|
|
3653
|
+
export const Content2$inboundSchema: z.ZodType<
|
|
3654
|
+
Content2,
|
|
3655
|
+
z.ZodTypeDef,
|
|
3656
|
+
unknown
|
|
3657
|
+
> = z.object({
|
|
3658
|
+
type: DeploymentGetConfigContentType$inboundSchema,
|
|
3659
|
+
text: z.string(),
|
|
3660
|
+
cache_control: z.lazy(() => ContentCacheControl$inboundSchema).optional(),
|
|
3661
|
+
}).transform((v) => {
|
|
3662
|
+
return remap$(v, {
|
|
3663
|
+
"cache_control": "cacheControl",
|
|
3664
|
+
});
|
|
3665
|
+
});
|
|
3666
|
+
/** @internal */
|
|
3667
|
+
export type Content2$Outbound = {
|
|
3668
|
+
type: string;
|
|
3669
|
+
text: string;
|
|
3670
|
+
cache_control?: ContentCacheControl$Outbound | undefined;
|
|
3671
|
+
};
|
|
3672
|
+
|
|
3673
|
+
/** @internal */
|
|
3674
|
+
export const Content2$outboundSchema: z.ZodType<
|
|
3675
|
+
Content2$Outbound,
|
|
3676
|
+
z.ZodTypeDef,
|
|
3677
|
+
Content2
|
|
3678
|
+
> = z.object({
|
|
3679
|
+
type: DeploymentGetConfigContentType$outboundSchema,
|
|
3680
|
+
text: z.string(),
|
|
3681
|
+
cacheControl: z.lazy(() => ContentCacheControl$outboundSchema).optional(),
|
|
3682
|
+
}).transform((v) => {
|
|
3683
|
+
return remap$(v, {
|
|
3684
|
+
cacheControl: "cache_control",
|
|
3685
|
+
});
|
|
3686
|
+
});
|
|
3687
|
+
|
|
3688
|
+
export function content2ToJSON(content2: Content2): string {
|
|
3689
|
+
return JSON.stringify(Content2$outboundSchema.parse(content2));
|
|
3690
|
+
}
|
|
3691
|
+
export function content2FromJSON(
|
|
3692
|
+
jsonString: string,
|
|
3693
|
+
): SafeParseResult<Content2, SDKValidationError> {
|
|
3694
|
+
return safeParse(
|
|
3695
|
+
jsonString,
|
|
3696
|
+
(x) => Content2$inboundSchema.parse(JSON.parse(x)),
|
|
3697
|
+
`Failed to parse 'Content2' from JSON`,
|
|
3698
|
+
);
|
|
3699
|
+
}
|
|
3700
|
+
|
|
3701
|
+
/** @internal */
|
|
3702
|
+
export const PrefixMessagesContent$inboundSchema: z.ZodType<
|
|
3703
|
+
PrefixMessagesContent,
|
|
3704
|
+
z.ZodTypeDef,
|
|
3705
|
+
unknown
|
|
3706
|
+
> = z.union([z.string(), z.array(z.lazy(() => Content2$inboundSchema))]);
|
|
3707
|
+
/** @internal */
|
|
3708
|
+
export type PrefixMessagesContent$Outbound = string | Array<Content2$Outbound>;
|
|
3709
|
+
|
|
3710
|
+
/** @internal */
|
|
3711
|
+
export const PrefixMessagesContent$outboundSchema: z.ZodType<
|
|
3712
|
+
PrefixMessagesContent$Outbound,
|
|
3713
|
+
z.ZodTypeDef,
|
|
3714
|
+
PrefixMessagesContent
|
|
3715
|
+
> = z.union([z.string(), z.array(z.lazy(() => Content2$outboundSchema))]);
|
|
3716
|
+
|
|
3717
|
+
export function prefixMessagesContentToJSON(
|
|
3718
|
+
prefixMessagesContent: PrefixMessagesContent,
|
|
3719
|
+
): string {
|
|
3720
|
+
return JSON.stringify(
|
|
3721
|
+
PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
|
|
3722
|
+
);
|
|
3723
|
+
}
|
|
3724
|
+
export function prefixMessagesContentFromJSON(
|
|
3725
|
+
jsonString: string,
|
|
3726
|
+
): SafeParseResult<PrefixMessagesContent, SDKValidationError> {
|
|
3727
|
+
return safeParse(
|
|
3728
|
+
jsonString,
|
|
3729
|
+
(x) => PrefixMessagesContent$inboundSchema.parse(JSON.parse(x)),
|
|
3730
|
+
`Failed to parse 'PrefixMessagesContent' from JSON`,
|
|
2542
3731
|
);
|
|
2543
3732
|
}
|
|
2544
3733
|
|
|
@@ -2549,16 +3738,13 @@ export const DeveloperMessage$inboundSchema: z.ZodType<
|
|
|
2549
3738
|
unknown
|
|
2550
3739
|
> = z.object({
|
|
2551
3740
|
role: z.literal("developer"),
|
|
2552
|
-
content: z.union([
|
|
2553
|
-
z.string(),
|
|
2554
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2555
|
-
]),
|
|
3741
|
+
content: z.union([z.string(), z.array(z.lazy(() => Content2$inboundSchema))]),
|
|
2556
3742
|
name: z.string().optional(),
|
|
2557
3743
|
});
|
|
2558
3744
|
/** @internal */
|
|
2559
3745
|
export type DeveloperMessage$Outbound = {
|
|
2560
3746
|
role: "developer";
|
|
2561
|
-
content: string | Array<
|
|
3747
|
+
content: string | Array<Content2$Outbound>;
|
|
2562
3748
|
name?: string | undefined;
|
|
2563
3749
|
};
|
|
2564
3750
|
|
|
@@ -2571,7 +3757,7 @@ export const DeveloperMessage$outboundSchema: z.ZodType<
|
|
|
2571
3757
|
role: z.literal("developer"),
|
|
2572
3758
|
content: z.union([
|
|
2573
3759
|
z.string(),
|
|
2574
|
-
z.array(
|
|
3760
|
+
z.array(z.lazy(() => Content2$outboundSchema)),
|
|
2575
3761
|
]),
|
|
2576
3762
|
name: z.string().optional(),
|
|
2577
3763
|
});
|
|
@@ -2594,43 +3780,130 @@ export function developerMessageFromJSON(
|
|
|
2594
3780
|
}
|
|
2595
3781
|
|
|
2596
3782
|
/** @internal */
|
|
2597
|
-
export const
|
|
2598
|
-
|
|
3783
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
3784
|
+
Type,
|
|
3785
|
+
);
|
|
3786
|
+
/** @internal */
|
|
3787
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
3788
|
+
Type$inboundSchema;
|
|
3789
|
+
|
|
3790
|
+
/** @internal */
|
|
3791
|
+
export const ContentType$inboundSchema: z.ZodNativeEnum<typeof ContentType> = z
|
|
3792
|
+
.nativeEnum(ContentType);
|
|
3793
|
+
/** @internal */
|
|
3794
|
+
export const ContentType$outboundSchema: z.ZodNativeEnum<typeof ContentType> =
|
|
3795
|
+
ContentType$inboundSchema;
|
|
3796
|
+
|
|
3797
|
+
/** @internal */
|
|
3798
|
+
export const Ttl$inboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(Ttl);
|
|
3799
|
+
/** @internal */
|
|
3800
|
+
export const Ttl$outboundSchema: z.ZodNativeEnum<typeof Ttl> =
|
|
3801
|
+
Ttl$inboundSchema;
|
|
3802
|
+
|
|
3803
|
+
/** @internal */
|
|
3804
|
+
export const CacheControl$inboundSchema: z.ZodType<
|
|
3805
|
+
CacheControl,
|
|
2599
3806
|
z.ZodTypeDef,
|
|
2600
3807
|
unknown
|
|
2601
|
-
> = z.
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
3808
|
+
> = z.object({
|
|
3809
|
+
type: ContentType$inboundSchema,
|
|
3810
|
+
ttl: Ttl$inboundSchema.default("5m"),
|
|
3811
|
+
});
|
|
2605
3812
|
/** @internal */
|
|
2606
|
-
export type
|
|
2607
|
-
|
|
2608
|
-
|
|
3813
|
+
export type CacheControl$Outbound = {
|
|
3814
|
+
type: string;
|
|
3815
|
+
ttl: string;
|
|
3816
|
+
};
|
|
2609
3817
|
|
|
2610
3818
|
/** @internal */
|
|
2611
|
-
export const
|
|
2612
|
-
|
|
3819
|
+
export const CacheControl$outboundSchema: z.ZodType<
|
|
3820
|
+
CacheControl$Outbound,
|
|
2613
3821
|
z.ZodTypeDef,
|
|
2614
|
-
|
|
2615
|
-
> = z.
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
3822
|
+
CacheControl
|
|
3823
|
+
> = z.object({
|
|
3824
|
+
type: ContentType$outboundSchema,
|
|
3825
|
+
ttl: Ttl$outboundSchema.default("5m"),
|
|
3826
|
+
});
|
|
2619
3827
|
|
|
2620
|
-
export function
|
|
2621
|
-
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
3828
|
+
export function cacheControlToJSON(cacheControl: CacheControl): string {
|
|
3829
|
+
return JSON.stringify(CacheControl$outboundSchema.parse(cacheControl));
|
|
3830
|
+
}
|
|
3831
|
+
export function cacheControlFromJSON(
|
|
3832
|
+
jsonString: string,
|
|
3833
|
+
): SafeParseResult<CacheControl, SDKValidationError> {
|
|
3834
|
+
return safeParse(
|
|
3835
|
+
jsonString,
|
|
3836
|
+
(x) => CacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
3837
|
+
`Failed to parse 'CacheControl' from JSON`,
|
|
2625
3838
|
);
|
|
2626
3839
|
}
|
|
2627
|
-
|
|
3840
|
+
|
|
3841
|
+
/** @internal */
|
|
3842
|
+
export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
|
|
3843
|
+
.object({
|
|
3844
|
+
type: Type$inboundSchema,
|
|
3845
|
+
text: z.string(),
|
|
3846
|
+
cache_control: z.lazy(() => CacheControl$inboundSchema).optional(),
|
|
3847
|
+
}).transform((v) => {
|
|
3848
|
+
return remap$(v, {
|
|
3849
|
+
"cache_control": "cacheControl",
|
|
3850
|
+
});
|
|
3851
|
+
});
|
|
3852
|
+
/** @internal */
|
|
3853
|
+
export type Two$Outbound = {
|
|
3854
|
+
type: string;
|
|
3855
|
+
text: string;
|
|
3856
|
+
cache_control?: CacheControl$Outbound | undefined;
|
|
3857
|
+
};
|
|
3858
|
+
|
|
3859
|
+
/** @internal */
|
|
3860
|
+
export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
3861
|
+
.object({
|
|
3862
|
+
type: Type$outboundSchema,
|
|
3863
|
+
text: z.string(),
|
|
3864
|
+
cacheControl: z.lazy(() => CacheControl$outboundSchema).optional(),
|
|
3865
|
+
}).transform((v) => {
|
|
3866
|
+
return remap$(v, {
|
|
3867
|
+
cacheControl: "cache_control",
|
|
3868
|
+
});
|
|
3869
|
+
});
|
|
3870
|
+
|
|
3871
|
+
export function twoToJSON(two: Two): string {
|
|
3872
|
+
return JSON.stringify(Two$outboundSchema.parse(two));
|
|
3873
|
+
}
|
|
3874
|
+
export function twoFromJSON(
|
|
2628
3875
|
jsonString: string,
|
|
2629
|
-
): SafeParseResult<
|
|
3876
|
+
): SafeParseResult<Two, SDKValidationError> {
|
|
2630
3877
|
return safeParse(
|
|
2631
3878
|
jsonString,
|
|
2632
|
-
(x) =>
|
|
2633
|
-
`Failed to parse '
|
|
3879
|
+
(x) => Two$inboundSchema.parse(JSON.parse(x)),
|
|
3880
|
+
`Failed to parse 'Two' from JSON`,
|
|
3881
|
+
);
|
|
3882
|
+
}
|
|
3883
|
+
|
|
3884
|
+
/** @internal */
|
|
3885
|
+
export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
|
|
3886
|
+
z.union([z.string(), z.array(z.lazy(() => Two$inboundSchema))]);
|
|
3887
|
+
/** @internal */
|
|
3888
|
+
export type Content$Outbound = string | Array<Two$Outbound>;
|
|
3889
|
+
|
|
3890
|
+
/** @internal */
|
|
3891
|
+
export const Content$outboundSchema: z.ZodType<
|
|
3892
|
+
Content$Outbound,
|
|
3893
|
+
z.ZodTypeDef,
|
|
3894
|
+
Content
|
|
3895
|
+
> = z.union([z.string(), z.array(z.lazy(() => Two$outboundSchema))]);
|
|
3896
|
+
|
|
3897
|
+
export function contentToJSON(content: Content): string {
|
|
3898
|
+
return JSON.stringify(Content$outboundSchema.parse(content));
|
|
3899
|
+
}
|
|
3900
|
+
export function contentFromJSON(
|
|
3901
|
+
jsonString: string,
|
|
3902
|
+
): SafeParseResult<Content, SDKValidationError> {
|
|
3903
|
+
return safeParse(
|
|
3904
|
+
jsonString,
|
|
3905
|
+
(x) => Content$inboundSchema.parse(JSON.parse(x)),
|
|
3906
|
+
`Failed to parse 'Content' from JSON`,
|
|
2634
3907
|
);
|
|
2635
3908
|
}
|
|
2636
3909
|
|
|
@@ -2641,16 +3914,13 @@ export const SystemMessage$inboundSchema: z.ZodType<
|
|
|
2641
3914
|
unknown
|
|
2642
3915
|
> = z.object({
|
|
2643
3916
|
role: z.literal("system"),
|
|
2644
|
-
content: z.union([
|
|
2645
|
-
z.string(),
|
|
2646
|
-
z.array(components.TextContentPartSchema$inboundSchema),
|
|
2647
|
-
]),
|
|
3917
|
+
content: z.union([z.string(), z.array(z.lazy(() => Two$inboundSchema))]),
|
|
2648
3918
|
name: z.string().optional(),
|
|
2649
3919
|
});
|
|
2650
3920
|
/** @internal */
|
|
2651
3921
|
export type SystemMessage$Outbound = {
|
|
2652
3922
|
role: "system";
|
|
2653
|
-
content: string | Array<
|
|
3923
|
+
content: string | Array<Two$Outbound>;
|
|
2654
3924
|
name?: string | undefined;
|
|
2655
3925
|
};
|
|
2656
3926
|
|
|
@@ -2661,10 +3931,7 @@ export const SystemMessage$outboundSchema: z.ZodType<
|
|
|
2661
3931
|
SystemMessage
|
|
2662
3932
|
> = z.object({
|
|
2663
3933
|
role: z.literal("system"),
|
|
2664
|
-
content: z.union([
|
|
2665
|
-
z.string(),
|
|
2666
|
-
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2667
|
-
]),
|
|
3934
|
+
content: z.union([z.string(), z.array(z.lazy(() => Two$outboundSchema))]),
|
|
2668
3935
|
name: z.string().optional(),
|
|
2669
3936
|
});
|
|
2670
3937
|
|
|
@@ -2728,72 +3995,254 @@ export function prefixMessagesFromJSON(
|
|
|
2728
3995
|
}
|
|
2729
3996
|
|
|
2730
3997
|
/** @internal */
|
|
2731
|
-
export const
|
|
3998
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type$inboundSchema:
|
|
3999
|
+
z.ZodNativeEnum<
|
|
4000
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type
|
|
4001
|
+
> = z.nativeEnum(
|
|
4002
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type,
|
|
4003
|
+
);
|
|
4004
|
+
/** @internal */
|
|
4005
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type$outboundSchema:
|
|
4006
|
+
z.ZodNativeEnum<
|
|
4007
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type
|
|
4008
|
+
> =
|
|
4009
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type$inboundSchema;
|
|
4010
|
+
|
|
4011
|
+
/** @internal */
|
|
4012
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$inboundSchema:
|
|
4013
|
+
z.ZodNativeEnum<
|
|
4014
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType
|
|
4015
|
+
> = z.nativeEnum(
|
|
4016
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType,
|
|
4017
|
+
);
|
|
4018
|
+
/** @internal */
|
|
4019
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$outboundSchema:
|
|
4020
|
+
z.ZodNativeEnum<
|
|
4021
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType
|
|
4022
|
+
> =
|
|
4023
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$inboundSchema;
|
|
4024
|
+
|
|
4025
|
+
/** @internal */
|
|
4026
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$inboundSchema:
|
|
4027
|
+
z.ZodNativeEnum<
|
|
4028
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl
|
|
4029
|
+
> = z.nativeEnum(
|
|
4030
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl,
|
|
4031
|
+
);
|
|
4032
|
+
/** @internal */
|
|
4033
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$outboundSchema:
|
|
4034
|
+
z.ZodNativeEnum<
|
|
4035
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl
|
|
4036
|
+
> =
|
|
4037
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$inboundSchema;
|
|
4038
|
+
|
|
4039
|
+
/** @internal */
|
|
4040
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$inboundSchema:
|
|
2732
4041
|
z.ZodType<
|
|
2733
|
-
|
|
4042
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl,
|
|
2734
4043
|
z.ZodTypeDef,
|
|
2735
4044
|
unknown
|
|
2736
|
-
> =
|
|
4045
|
+
> = z.object({
|
|
4046
|
+
type:
|
|
4047
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$inboundSchema,
|
|
4048
|
+
ttl:
|
|
4049
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$inboundSchema
|
|
4050
|
+
.default("5m"),
|
|
4051
|
+
});
|
|
2737
4052
|
/** @internal */
|
|
2738
|
-
export type
|
|
2739
|
-
|
|
4053
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$Outbound =
|
|
4054
|
+
{
|
|
4055
|
+
type: string;
|
|
4056
|
+
ttl: string;
|
|
4057
|
+
};
|
|
2740
4058
|
|
|
2741
4059
|
/** @internal */
|
|
2742
|
-
export const
|
|
4060
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$outboundSchema:
|
|
2743
4061
|
z.ZodType<
|
|
2744
|
-
|
|
4062
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$Outbound,
|
|
2745
4063
|
z.ZodTypeDef,
|
|
2746
|
-
|
|
2747
|
-
> =
|
|
4064
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl
|
|
4065
|
+
> = z.object({
|
|
4066
|
+
type:
|
|
4067
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5ContentType$outboundSchema,
|
|
4068
|
+
ttl:
|
|
4069
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Ttl$outboundSchema
|
|
4070
|
+
.default("5m"),
|
|
4071
|
+
});
|
|
2748
4072
|
|
|
2749
|
-
export function
|
|
2750
|
-
|
|
2751
|
-
|
|
4073
|
+
export function deploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControlToJSON(
|
|
4074
|
+
deploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl:
|
|
4075
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl,
|
|
2752
4076
|
): string {
|
|
2753
4077
|
return JSON.stringify(
|
|
2754
|
-
|
|
2755
|
-
.parse(
|
|
4078
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$outboundSchema
|
|
4079
|
+
.parse(
|
|
4080
|
+
deploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl,
|
|
4081
|
+
),
|
|
2756
4082
|
);
|
|
2757
4083
|
}
|
|
2758
|
-
export function
|
|
4084
|
+
export function deploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControlFromJSON(
|
|
2759
4085
|
jsonString: string,
|
|
2760
4086
|
): SafeParseResult<
|
|
2761
|
-
|
|
4087
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl,
|
|
2762
4088
|
SDKValidationError
|
|
2763
4089
|
> {
|
|
2764
4090
|
return safeParse(
|
|
2765
4091
|
jsonString,
|
|
2766
4092
|
(x) =>
|
|
2767
|
-
|
|
4093
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$inboundSchema
|
|
2768
4094
|
.parse(JSON.parse(x)),
|
|
2769
|
-
`Failed to parse '
|
|
4095
|
+
`Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl' from JSON`,
|
|
2770
4096
|
);
|
|
2771
4097
|
}
|
|
2772
4098
|
|
|
2773
4099
|
/** @internal */
|
|
2774
|
-
export const
|
|
4100
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBody1$inboundSchema:
|
|
2775
4101
|
z.ZodType<
|
|
2776
|
-
|
|
4102
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1,
|
|
2777
4103
|
z.ZodTypeDef,
|
|
2778
4104
|
unknown
|
|
2779
|
-
> = z.
|
|
2780
|
-
|
|
2781
|
-
|
|
2782
|
-
|
|
4105
|
+
> = z.object({
|
|
4106
|
+
type:
|
|
4107
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type$inboundSchema,
|
|
4108
|
+
text: z.string(),
|
|
4109
|
+
cache_control: z.lazy(() =>
|
|
4110
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$inboundSchema
|
|
4111
|
+
).optional(),
|
|
4112
|
+
}).transform((v) => {
|
|
4113
|
+
return remap$(v, {
|
|
4114
|
+
"cache_control": "cacheControl",
|
|
4115
|
+
});
|
|
4116
|
+
});
|
|
2783
4117
|
/** @internal */
|
|
2784
|
-
export type
|
|
2785
|
-
|
|
2786
|
-
|
|
4118
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBody1$Outbound = {
|
|
4119
|
+
type: string;
|
|
4120
|
+
text: string;
|
|
4121
|
+
cache_control?:
|
|
4122
|
+
| DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$Outbound
|
|
4123
|
+
| undefined;
|
|
4124
|
+
};
|
|
2787
4125
|
|
|
2788
4126
|
/** @internal */
|
|
2789
|
-
export const
|
|
4127
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBody1$outboundSchema:
|
|
4128
|
+
z.ZodType<
|
|
4129
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1$Outbound,
|
|
4130
|
+
z.ZodTypeDef,
|
|
4131
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1
|
|
4132
|
+
> = z.object({
|
|
4133
|
+
type:
|
|
4134
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5Type$outboundSchema,
|
|
4135
|
+
text: z.string(),
|
|
4136
|
+
cacheControl: z.lazy(() =>
|
|
4137
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages5CacheControl$outboundSchema
|
|
4138
|
+
).optional(),
|
|
4139
|
+
}).transform((v) => {
|
|
4140
|
+
return remap$(v, {
|
|
4141
|
+
cacheControl: "cache_control",
|
|
4142
|
+
});
|
|
4143
|
+
});
|
|
4144
|
+
|
|
4145
|
+
export function deploymentGetConfig2DeploymentsRequestRequestBody1ToJSON(
|
|
4146
|
+
deploymentGetConfig2DeploymentsRequestRequestBody1:
|
|
4147
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1,
|
|
4148
|
+
): string {
|
|
4149
|
+
return JSON.stringify(
|
|
4150
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1$outboundSchema.parse(
|
|
4151
|
+
deploymentGetConfig2DeploymentsRequestRequestBody1,
|
|
4152
|
+
),
|
|
4153
|
+
);
|
|
4154
|
+
}
|
|
4155
|
+
export function deploymentGetConfig2DeploymentsRequestRequestBody1FromJSON(
|
|
4156
|
+
jsonString: string,
|
|
4157
|
+
): SafeParseResult<
|
|
4158
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1,
|
|
4159
|
+
SDKValidationError
|
|
4160
|
+
> {
|
|
4161
|
+
return safeParse(
|
|
4162
|
+
jsonString,
|
|
4163
|
+
(x) =>
|
|
4164
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1$inboundSchema.parse(
|
|
4165
|
+
JSON.parse(x),
|
|
4166
|
+
),
|
|
4167
|
+
`Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBody1' from JSON`,
|
|
4168
|
+
);
|
|
4169
|
+
}
|
|
4170
|
+
|
|
4171
|
+
/** @internal */
|
|
4172
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$inboundSchema:
|
|
4173
|
+
z.ZodType<
|
|
4174
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52,
|
|
4175
|
+
z.ZodTypeDef,
|
|
4176
|
+
unknown
|
|
4177
|
+
> = z.lazy(() =>
|
|
4178
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1$inboundSchema
|
|
4179
|
+
);
|
|
4180
|
+
/** @internal */
|
|
4181
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$Outbound =
|
|
4182
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1$Outbound;
|
|
4183
|
+
|
|
4184
|
+
/** @internal */
|
|
4185
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$outboundSchema:
|
|
4186
|
+
z.ZodType<
|
|
4187
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$Outbound,
|
|
4188
|
+
z.ZodTypeDef,
|
|
4189
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52
|
|
4190
|
+
> = z.lazy(() =>
|
|
4191
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1$outboundSchema
|
|
4192
|
+
);
|
|
4193
|
+
|
|
4194
|
+
export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52ToJSON(
|
|
4195
|
+
deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52:
|
|
4196
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52,
|
|
4197
|
+
): string {
|
|
4198
|
+
return JSON.stringify(
|
|
4199
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$outboundSchema
|
|
4200
|
+
.parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52),
|
|
4201
|
+
);
|
|
4202
|
+
}
|
|
4203
|
+
export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52FromJSON(
|
|
4204
|
+
jsonString: string,
|
|
4205
|
+
): SafeParseResult<
|
|
4206
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52,
|
|
4207
|
+
SDKValidationError
|
|
4208
|
+
> {
|
|
4209
|
+
return safeParse(
|
|
4210
|
+
jsonString,
|
|
4211
|
+
(x) =>
|
|
4212
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$inboundSchema
|
|
4213
|
+
.parse(JSON.parse(x)),
|
|
4214
|
+
`Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52' from JSON`,
|
|
4215
|
+
);
|
|
4216
|
+
}
|
|
4217
|
+
|
|
4218
|
+
/** @internal */
|
|
4219
|
+
export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$inboundSchema:
|
|
4220
|
+
z.ZodType<
|
|
4221
|
+
DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent,
|
|
4222
|
+
z.ZodTypeDef,
|
|
4223
|
+
unknown
|
|
4224
|
+
> = z.union([
|
|
4225
|
+
z.string(),
|
|
4226
|
+
z.array(z.lazy(() =>
|
|
4227
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1$inboundSchema
|
|
4228
|
+
)),
|
|
4229
|
+
]);
|
|
4230
|
+
/** @internal */
|
|
4231
|
+
export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound =
|
|
4232
|
+
| string
|
|
4233
|
+
| Array<DeploymentGetConfig2DeploymentsRequestRequestBody1$Outbound>;
|
|
4234
|
+
|
|
4235
|
+
/** @internal */
|
|
4236
|
+
export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
|
|
2790
4237
|
z.ZodType<
|
|
2791
4238
|
DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound,
|
|
2792
4239
|
z.ZodTypeDef,
|
|
2793
4240
|
DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent
|
|
2794
4241
|
> = z.union([
|
|
2795
4242
|
z.string(),
|
|
2796
|
-
z.array(
|
|
4243
|
+
z.array(z.lazy(() =>
|
|
4244
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1$outboundSchema
|
|
4245
|
+
)),
|
|
2797
4246
|
]);
|
|
2798
4247
|
|
|
2799
4248
|
export function deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentToJSON(
|
|
@@ -2887,7 +4336,9 @@ export const MessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
2887
4336
|
role: z.literal("tool"),
|
|
2888
4337
|
content: z.union([
|
|
2889
4338
|
z.string(),
|
|
2890
|
-
z.array(
|
|
4339
|
+
z.array(z.lazy(() =>
|
|
4340
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1$inboundSchema
|
|
4341
|
+
)),
|
|
2891
4342
|
]),
|
|
2892
4343
|
tool_call_id: z.string(),
|
|
2893
4344
|
cache_control: z.lazy(() => MessagesCacheControl$inboundSchema).optional(),
|
|
@@ -2900,7 +4351,9 @@ export const MessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
2900
4351
|
/** @internal */
|
|
2901
4352
|
export type MessagesToolMessage$Outbound = {
|
|
2902
4353
|
role: "tool";
|
|
2903
|
-
content:
|
|
4354
|
+
content:
|
|
4355
|
+
| string
|
|
4356
|
+
| Array<DeploymentGetConfig2DeploymentsRequestRequestBody1$Outbound>;
|
|
2904
4357
|
tool_call_id: string;
|
|
2905
4358
|
cache_control?: MessagesCacheControl$Outbound | undefined;
|
|
2906
4359
|
};
|
|
@@ -2914,7 +4367,9 @@ export const MessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
2914
4367
|
role: z.literal("tool"),
|
|
2915
4368
|
content: z.union([
|
|
2916
4369
|
z.string(),
|
|
2917
|
-
z.array(
|
|
4370
|
+
z.array(z.lazy(() =>
|
|
4371
|
+
DeploymentGetConfig2DeploymentsRequestRequestBody1$outboundSchema
|
|
4372
|
+
)),
|
|
2918
4373
|
]),
|
|
2919
4374
|
toolCallId: z.string(),
|
|
2920
4375
|
cacheControl: z.lazy(() => MessagesCacheControl$outboundSchema).optional(),
|
|
@@ -2943,62 +4398,214 @@ export function messagesToolMessageFromJSON(
|
|
|
2943
4398
|
}
|
|
2944
4399
|
|
|
2945
4400
|
/** @internal */
|
|
2946
|
-
export const
|
|
4401
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema:
|
|
4402
|
+
z.ZodNativeEnum<
|
|
4403
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType
|
|
4404
|
+
> = z.nativeEnum(
|
|
4405
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType,
|
|
4406
|
+
);
|
|
4407
|
+
/** @internal */
|
|
4408
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema:
|
|
4409
|
+
z.ZodNativeEnum<
|
|
4410
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType
|
|
4411
|
+
> =
|
|
4412
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema;
|
|
4413
|
+
|
|
4414
|
+
/** @internal */
|
|
4415
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$inboundSchema:
|
|
4416
|
+
z.ZodNativeEnum<
|
|
4417
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl
|
|
4418
|
+
> = z.nativeEnum(
|
|
4419
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl,
|
|
4420
|
+
);
|
|
4421
|
+
/** @internal */
|
|
4422
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$outboundSchema:
|
|
4423
|
+
z.ZodNativeEnum<
|
|
4424
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl
|
|
4425
|
+
> =
|
|
4426
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$inboundSchema;
|
|
4427
|
+
|
|
4428
|
+
/** @internal */
|
|
4429
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$inboundSchema:
|
|
2947
4430
|
z.ZodType<
|
|
2948
|
-
|
|
4431
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl,
|
|
2949
4432
|
z.ZodTypeDef,
|
|
2950
4433
|
unknown
|
|
2951
|
-
> = z.
|
|
2952
|
-
|
|
2953
|
-
|
|
4434
|
+
> = z.object({
|
|
4435
|
+
type:
|
|
4436
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema,
|
|
4437
|
+
ttl:
|
|
4438
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$inboundSchema
|
|
4439
|
+
.default("5m"),
|
|
4440
|
+
});
|
|
4441
|
+
/** @internal */
|
|
4442
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$Outbound =
|
|
4443
|
+
{
|
|
4444
|
+
type: string;
|
|
4445
|
+
ttl: string;
|
|
4446
|
+
};
|
|
4447
|
+
|
|
4448
|
+
/** @internal */
|
|
4449
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$outboundSchema:
|
|
4450
|
+
z.ZodType<
|
|
4451
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$Outbound,
|
|
4452
|
+
z.ZodTypeDef,
|
|
4453
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl
|
|
4454
|
+
> = z.object({
|
|
4455
|
+
type:
|
|
4456
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema,
|
|
4457
|
+
ttl:
|
|
4458
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4Ttl$outboundSchema
|
|
4459
|
+
.default("5m"),
|
|
4460
|
+
});
|
|
4461
|
+
|
|
4462
|
+
export function deploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControlToJSON(
|
|
4463
|
+
deploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl:
|
|
4464
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl,
|
|
4465
|
+
): string {
|
|
4466
|
+
return JSON.stringify(
|
|
4467
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$outboundSchema
|
|
4468
|
+
.parse(
|
|
4469
|
+
deploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl,
|
|
4470
|
+
),
|
|
4471
|
+
);
|
|
4472
|
+
}
|
|
4473
|
+
export function deploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControlFromJSON(
|
|
4474
|
+
jsonString: string,
|
|
4475
|
+
): SafeParseResult<
|
|
4476
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl,
|
|
4477
|
+
SDKValidationError
|
|
4478
|
+
> {
|
|
4479
|
+
return safeParse(
|
|
4480
|
+
jsonString,
|
|
4481
|
+
(x) =>
|
|
4482
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$inboundSchema
|
|
4483
|
+
.parse(JSON.parse(x)),
|
|
4484
|
+
`Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl' from JSON`,
|
|
4485
|
+
);
|
|
4486
|
+
}
|
|
4487
|
+
|
|
4488
|
+
/** @internal */
|
|
4489
|
+
export const DeploymentGetConfig2DeploymentsRequest1$inboundSchema: z.ZodType<
|
|
4490
|
+
DeploymentGetConfig2DeploymentsRequest1,
|
|
4491
|
+
z.ZodTypeDef,
|
|
4492
|
+
unknown
|
|
4493
|
+
> = z.object({
|
|
4494
|
+
type: z.literal("text"),
|
|
4495
|
+
text: z.string(),
|
|
4496
|
+
cache_control: z.lazy(() =>
|
|
4497
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$inboundSchema
|
|
4498
|
+
).optional(),
|
|
4499
|
+
}).transform((v) => {
|
|
4500
|
+
return remap$(v, {
|
|
4501
|
+
"cache_control": "cacheControl",
|
|
4502
|
+
});
|
|
4503
|
+
});
|
|
4504
|
+
/** @internal */
|
|
4505
|
+
export type DeploymentGetConfig2DeploymentsRequest1$Outbound = {
|
|
4506
|
+
type: "text";
|
|
4507
|
+
text: string;
|
|
4508
|
+
cache_control?:
|
|
4509
|
+
| DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$Outbound
|
|
4510
|
+
| undefined;
|
|
4511
|
+
};
|
|
4512
|
+
|
|
4513
|
+
/** @internal */
|
|
4514
|
+
export const DeploymentGetConfig2DeploymentsRequest1$outboundSchema: z.ZodType<
|
|
4515
|
+
DeploymentGetConfig2DeploymentsRequest1$Outbound,
|
|
4516
|
+
z.ZodTypeDef,
|
|
4517
|
+
DeploymentGetConfig2DeploymentsRequest1
|
|
4518
|
+
> = z.object({
|
|
4519
|
+
type: z.literal("text"),
|
|
4520
|
+
text: z.string(),
|
|
4521
|
+
cacheControl: z.lazy(() =>
|
|
4522
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages4CacheControl$outboundSchema
|
|
4523
|
+
).optional(),
|
|
4524
|
+
}).transform((v) => {
|
|
4525
|
+
return remap$(v, {
|
|
4526
|
+
cacheControl: "cache_control",
|
|
4527
|
+
});
|
|
4528
|
+
});
|
|
4529
|
+
|
|
4530
|
+
export function deploymentGetConfig2DeploymentsRequest1ToJSON(
|
|
4531
|
+
deploymentGetConfig2DeploymentsRequest1:
|
|
4532
|
+
DeploymentGetConfig2DeploymentsRequest1,
|
|
4533
|
+
): string {
|
|
4534
|
+
return JSON.stringify(
|
|
4535
|
+
DeploymentGetConfig2DeploymentsRequest1$outboundSchema.parse(
|
|
4536
|
+
deploymentGetConfig2DeploymentsRequest1,
|
|
2954
4537
|
),
|
|
4538
|
+
);
|
|
4539
|
+
}
|
|
4540
|
+
export function deploymentGetConfig2DeploymentsRequest1FromJSON(
|
|
4541
|
+
jsonString: string,
|
|
4542
|
+
): SafeParseResult<
|
|
4543
|
+
DeploymentGetConfig2DeploymentsRequest1,
|
|
4544
|
+
SDKValidationError
|
|
4545
|
+
> {
|
|
4546
|
+
return safeParse(
|
|
4547
|
+
jsonString,
|
|
4548
|
+
(x) =>
|
|
4549
|
+
DeploymentGetConfig2DeploymentsRequest1$inboundSchema.parse(
|
|
4550
|
+
JSON.parse(x),
|
|
4551
|
+
),
|
|
4552
|
+
`Failed to parse 'DeploymentGetConfig2DeploymentsRequest1' from JSON`,
|
|
4553
|
+
);
|
|
4554
|
+
}
|
|
4555
|
+
|
|
4556
|
+
/** @internal */
|
|
4557
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42$inboundSchema:
|
|
4558
|
+
z.ZodType<
|
|
4559
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42,
|
|
4560
|
+
z.ZodTypeDef,
|
|
4561
|
+
unknown
|
|
4562
|
+
> = z.union([
|
|
4563
|
+
z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$inboundSchema),
|
|
2955
4564
|
components.RefusalPartSchema$inboundSchema,
|
|
2956
4565
|
components.ReasoningPartSchema$inboundSchema,
|
|
2957
4566
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
2958
4567
|
]);
|
|
2959
4568
|
/** @internal */
|
|
2960
|
-
export type
|
|
2961
|
-
|
|
|
4569
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42$Outbound =
|
|
4570
|
+
| DeploymentGetConfig2DeploymentsRequest1$Outbound
|
|
2962
4571
|
| components.RefusalPartSchema$Outbound
|
|
2963
4572
|
| components.ReasoningPartSchema$Outbound
|
|
2964
4573
|
| components.RedactedReasoningPartSchema$Outbound;
|
|
2965
4574
|
|
|
2966
4575
|
/** @internal */
|
|
2967
|
-
export const
|
|
4576
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42$outboundSchema:
|
|
2968
4577
|
z.ZodType<
|
|
2969
|
-
|
|
4578
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42$Outbound,
|
|
2970
4579
|
z.ZodTypeDef,
|
|
2971
|
-
|
|
4580
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42
|
|
2972
4581
|
> = z.union([
|
|
2973
|
-
|
|
2974
|
-
z.object({ type: z.literal("text") }),
|
|
2975
|
-
),
|
|
4582
|
+
z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$outboundSchema),
|
|
2976
4583
|
components.RefusalPartSchema$outboundSchema,
|
|
2977
4584
|
components.ReasoningPartSchema$outboundSchema,
|
|
2978
4585
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2979
4586
|
]);
|
|
2980
4587
|
|
|
2981
|
-
export function
|
|
2982
|
-
|
|
2983
|
-
|
|
4588
|
+
export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages42ToJSON(
|
|
4589
|
+
deploymentGetConfigContentDeploymentsRequestRequestBodyMessages42:
|
|
4590
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42,
|
|
2984
4591
|
): string {
|
|
2985
4592
|
return JSON.stringify(
|
|
2986
|
-
|
|
2987
|
-
.parse(
|
|
4593
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42$outboundSchema
|
|
4594
|
+
.parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages42),
|
|
2988
4595
|
);
|
|
2989
4596
|
}
|
|
2990
|
-
export function
|
|
4597
|
+
export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages42FromJSON(
|
|
2991
4598
|
jsonString: string,
|
|
2992
4599
|
): SafeParseResult<
|
|
2993
|
-
|
|
4600
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42,
|
|
2994
4601
|
SDKValidationError
|
|
2995
4602
|
> {
|
|
2996
4603
|
return safeParse(
|
|
2997
4604
|
jsonString,
|
|
2998
4605
|
(x) =>
|
|
2999
|
-
|
|
4606
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42$inboundSchema
|
|
3000
4607
|
.parse(JSON.parse(x)),
|
|
3001
|
-
`Failed to parse '
|
|
4608
|
+
`Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages42' from JSON`,
|
|
3002
4609
|
);
|
|
3003
4610
|
}
|
|
3004
4611
|
|
|
@@ -3010,22 +4617,18 @@ export const DeploymentGetConfigMessagesDeploymentsRequestContent$inboundSchema:
|
|
|
3010
4617
|
unknown
|
|
3011
4618
|
> = z.union([
|
|
3012
4619
|
z.string(),
|
|
3013
|
-
z.array(
|
|
3014
|
-
z.
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
components.ReasoningPartSchema$inboundSchema,
|
|
3020
|
-
components.RedactedReasoningPartSchema$inboundSchema,
|
|
3021
|
-
]),
|
|
3022
|
-
),
|
|
4620
|
+
z.array(z.union([
|
|
4621
|
+
z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$inboundSchema),
|
|
4622
|
+
components.RefusalPartSchema$inboundSchema,
|
|
4623
|
+
components.ReasoningPartSchema$inboundSchema,
|
|
4624
|
+
components.RedactedReasoningPartSchema$inboundSchema,
|
|
4625
|
+
])),
|
|
3023
4626
|
]);
|
|
3024
4627
|
/** @internal */
|
|
3025
4628
|
export type DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound =
|
|
3026
4629
|
| string
|
|
3027
4630
|
| Array<
|
|
3028
|
-
|
|
|
4631
|
+
| DeploymentGetConfig2DeploymentsRequest1$Outbound
|
|
3029
4632
|
| components.RefusalPartSchema$Outbound
|
|
3030
4633
|
| components.ReasoningPartSchema$Outbound
|
|
3031
4634
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -3039,16 +4642,12 @@ export const DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema
|
|
|
3039
4642
|
DeploymentGetConfigMessagesDeploymentsRequestContent
|
|
3040
4643
|
> = z.union([
|
|
3041
4644
|
z.string(),
|
|
3042
|
-
z.array(
|
|
3043
|
-
z.
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
|
|
3047
|
-
|
|
3048
|
-
components.ReasoningPartSchema$outboundSchema,
|
|
3049
|
-
components.RedactedReasoningPartSchema$outboundSchema,
|
|
3050
|
-
]),
|
|
3051
|
-
),
|
|
4645
|
+
z.array(z.union([
|
|
4646
|
+
z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$outboundSchema),
|
|
4647
|
+
components.RefusalPartSchema$outboundSchema,
|
|
4648
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
4649
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
4650
|
+
])),
|
|
3052
4651
|
]);
|
|
3053
4652
|
|
|
3054
4653
|
export function deploymentGetConfigMessagesDeploymentsRequestContentToJSON(
|
|
@@ -3228,9 +4827,7 @@ export const MessagesAssistantMessage$inboundSchema: z.ZodType<
|
|
|
3228
4827
|
z.string(),
|
|
3229
4828
|
z.array(
|
|
3230
4829
|
z.union([
|
|
3231
|
-
|
|
3232
|
-
z.object({ type: z.literal("text") }),
|
|
3233
|
-
),
|
|
4830
|
+
z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$inboundSchema),
|
|
3234
4831
|
components.RefusalPartSchema$inboundSchema,
|
|
3235
4832
|
components.ReasoningPartSchema$inboundSchema,
|
|
3236
4833
|
components.RedactedReasoningPartSchema$inboundSchema,
|
|
@@ -3253,7 +4850,7 @@ export type MessagesAssistantMessage$Outbound = {
|
|
|
3253
4850
|
content?:
|
|
3254
4851
|
| string
|
|
3255
4852
|
| Array<
|
|
3256
|
-
|
|
|
4853
|
+
| DeploymentGetConfig2DeploymentsRequest1$Outbound
|
|
3257
4854
|
| components.RefusalPartSchema$Outbound
|
|
3258
4855
|
| components.ReasoningPartSchema$Outbound
|
|
3259
4856
|
| components.RedactedReasoningPartSchema$Outbound
|
|
@@ -3278,9 +4875,7 @@ export const MessagesAssistantMessage$outboundSchema: z.ZodType<
|
|
|
3278
4875
|
z.string(),
|
|
3279
4876
|
z.array(
|
|
3280
4877
|
z.union([
|
|
3281
|
-
|
|
3282
|
-
z.object({ type: z.literal("text") }),
|
|
3283
|
-
),
|
|
4878
|
+
z.lazy(() => DeploymentGetConfig2DeploymentsRequest1$outboundSchema),
|
|
3284
4879
|
components.RefusalPartSchema$outboundSchema,
|
|
3285
4880
|
components.ReasoningPartSchema$outboundSchema,
|
|
3286
4881
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
@@ -3317,60 +4912,90 @@ export function messagesAssistantMessageFromJSON(
|
|
|
3317
4912
|
}
|
|
3318
4913
|
|
|
3319
4914
|
/** @internal */
|
|
3320
|
-
export const
|
|
4915
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema:
|
|
3321
4916
|
z.ZodNativeEnum<
|
|
3322
|
-
typeof
|
|
3323
|
-
> = z.nativeEnum(
|
|
4917
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type
|
|
4918
|
+
> = z.nativeEnum(
|
|
4919
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type,
|
|
4920
|
+
);
|
|
3324
4921
|
/** @internal */
|
|
3325
|
-
export const
|
|
4922
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$outboundSchema:
|
|
3326
4923
|
z.ZodNativeEnum<
|
|
3327
|
-
typeof
|
|
3328
|
-
> =
|
|
4924
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type
|
|
4925
|
+
> =
|
|
4926
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema;
|
|
3329
4927
|
|
|
3330
4928
|
/** @internal */
|
|
3331
|
-
export const
|
|
3332
|
-
.
|
|
4929
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl$inboundSchema:
|
|
4930
|
+
z.ZodNativeEnum<
|
|
4931
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl
|
|
4932
|
+
> = z.nativeEnum(
|
|
4933
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl,
|
|
4934
|
+
);
|
|
3333
4935
|
/** @internal */
|
|
3334
|
-
export const
|
|
3335
|
-
|
|
4936
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl$outboundSchema:
|
|
4937
|
+
z.ZodNativeEnum<
|
|
4938
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl
|
|
4939
|
+
> =
|
|
4940
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl$inboundSchema;
|
|
3336
4941
|
|
|
3337
4942
|
/** @internal */
|
|
3338
|
-
export const
|
|
3339
|
-
|
|
3340
|
-
|
|
3341
|
-
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
4943
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$inboundSchema:
|
|
4944
|
+
z.ZodType<
|
|
4945
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl,
|
|
4946
|
+
z.ZodTypeDef,
|
|
4947
|
+
unknown
|
|
4948
|
+
> = z.object({
|
|
4949
|
+
type:
|
|
4950
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema,
|
|
4951
|
+
ttl:
|
|
4952
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl$inboundSchema
|
|
4953
|
+
.default("5m"),
|
|
4954
|
+
});
|
|
3346
4955
|
/** @internal */
|
|
3347
|
-
export type
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
4956
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$Outbound =
|
|
4957
|
+
{
|
|
4958
|
+
type: string;
|
|
4959
|
+
ttl: string;
|
|
4960
|
+
};
|
|
3351
4961
|
|
|
3352
4962
|
/** @internal */
|
|
3353
|
-
export const
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
4963
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$outboundSchema:
|
|
4964
|
+
z.ZodType<
|
|
4965
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$Outbound,
|
|
4966
|
+
z.ZodTypeDef,
|
|
4967
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl
|
|
4968
|
+
> = z.object({
|
|
4969
|
+
type:
|
|
4970
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$outboundSchema,
|
|
4971
|
+
ttl:
|
|
4972
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesTtl$outboundSchema
|
|
4973
|
+
.default("5m"),
|
|
4974
|
+
});
|
|
3361
4975
|
|
|
3362
|
-
export function
|
|
3363
|
-
|
|
4976
|
+
export function deploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControlToJSON(
|
|
4977
|
+
deploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl:
|
|
4978
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl,
|
|
3364
4979
|
): string {
|
|
3365
|
-
return JSON.stringify(
|
|
4980
|
+
return JSON.stringify(
|
|
4981
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$outboundSchema
|
|
4982
|
+
.parse(
|
|
4983
|
+
deploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl,
|
|
4984
|
+
),
|
|
4985
|
+
);
|
|
3366
4986
|
}
|
|
3367
|
-
export function
|
|
4987
|
+
export function deploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControlFromJSON(
|
|
3368
4988
|
jsonString: string,
|
|
3369
|
-
): SafeParseResult<
|
|
4989
|
+
): SafeParseResult<
|
|
4990
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl,
|
|
4991
|
+
SDKValidationError
|
|
4992
|
+
> {
|
|
3370
4993
|
return safeParse(
|
|
3371
4994
|
jsonString,
|
|
3372
|
-
(x) =>
|
|
3373
|
-
|
|
4995
|
+
(x) =>
|
|
4996
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$inboundSchema
|
|
4997
|
+
.parse(JSON.parse(x)),
|
|
4998
|
+
`Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl' from JSON`,
|
|
3374
4999
|
);
|
|
3375
5000
|
}
|
|
3376
5001
|
|
|
@@ -3378,7 +5003,9 @@ export function twoCacheControlFromJSON(
|
|
|
3378
5003
|
export const Two4$inboundSchema: z.ZodType<Two4, z.ZodTypeDef, unknown> = z
|
|
3379
5004
|
.object({
|
|
3380
5005
|
type: z.literal("file"),
|
|
3381
|
-
cache_control: z.lazy(() =>
|
|
5006
|
+
cache_control: z.lazy(() =>
|
|
5007
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$inboundSchema
|
|
5008
|
+
).optional(),
|
|
3382
5009
|
file: components.FileContentPartSchema$inboundSchema,
|
|
3383
5010
|
}).transform((v) => {
|
|
3384
5011
|
return remap$(v, {
|
|
@@ -3388,7 +5015,9 @@ export const Two4$inboundSchema: z.ZodType<Two4, z.ZodTypeDef, unknown> = z
|
|
|
3388
5015
|
/** @internal */
|
|
3389
5016
|
export type Two4$Outbound = {
|
|
3390
5017
|
type: "file";
|
|
3391
|
-
cache_control?:
|
|
5018
|
+
cache_control?:
|
|
5019
|
+
| DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$Outbound
|
|
5020
|
+
| undefined;
|
|
3392
5021
|
file: components.FileContentPartSchema$Outbound;
|
|
3393
5022
|
};
|
|
3394
5023
|
|
|
@@ -3396,7 +5025,9 @@ export type Two4$Outbound = {
|
|
|
3396
5025
|
export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
|
|
3397
5026
|
z.object({
|
|
3398
5027
|
type: z.literal("file"),
|
|
3399
|
-
cacheControl: z.lazy(() =>
|
|
5028
|
+
cacheControl: z.lazy(() =>
|
|
5029
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesCacheControl$outboundSchema
|
|
5030
|
+
).optional(),
|
|
3400
5031
|
file: components.FileContentPartSchema$outboundSchema,
|
|
3401
5032
|
}).transform((v) => {
|
|
3402
5033
|
return remap$(v, {
|
|
@@ -3418,64 +5049,198 @@ export function two4FromJSON(
|
|
|
3418
5049
|
}
|
|
3419
5050
|
|
|
3420
5051
|
/** @internal */
|
|
3421
|
-
export const
|
|
5052
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema:
|
|
5053
|
+
z.ZodNativeEnum<
|
|
5054
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type
|
|
5055
|
+
> = z.nativeEnum(
|
|
5056
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type,
|
|
5057
|
+
);
|
|
5058
|
+
/** @internal */
|
|
5059
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema:
|
|
5060
|
+
z.ZodNativeEnum<
|
|
5061
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type
|
|
5062
|
+
> =
|
|
5063
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema;
|
|
5064
|
+
|
|
5065
|
+
/** @internal */
|
|
5066
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$inboundSchema:
|
|
5067
|
+
z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestRequestBodyTtl> =
|
|
5068
|
+
z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyTtl);
|
|
5069
|
+
/** @internal */
|
|
5070
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$outboundSchema:
|
|
5071
|
+
z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestRequestBodyTtl> =
|
|
5072
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$inboundSchema;
|
|
5073
|
+
|
|
5074
|
+
/** @internal */
|
|
5075
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$inboundSchema:
|
|
3422
5076
|
z.ZodType<
|
|
3423
|
-
|
|
5077
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl,
|
|
3424
5078
|
z.ZodTypeDef,
|
|
3425
5079
|
unknown
|
|
3426
|
-
> = z.
|
|
3427
|
-
|
|
3428
|
-
|
|
5080
|
+
> = z.object({
|
|
5081
|
+
type:
|
|
5082
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema,
|
|
5083
|
+
ttl: DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$inboundSchema
|
|
5084
|
+
.default("5m"),
|
|
5085
|
+
});
|
|
5086
|
+
/** @internal */
|
|
5087
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$Outbound =
|
|
5088
|
+
{
|
|
5089
|
+
type: string;
|
|
5090
|
+
ttl: string;
|
|
5091
|
+
};
|
|
5092
|
+
|
|
5093
|
+
/** @internal */
|
|
5094
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$outboundSchema:
|
|
5095
|
+
z.ZodType<
|
|
5096
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$Outbound,
|
|
5097
|
+
z.ZodTypeDef,
|
|
5098
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl
|
|
5099
|
+
> = z.object({
|
|
5100
|
+
type:
|
|
5101
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema,
|
|
5102
|
+
ttl: DeploymentGetConfig2DeploymentsRequestRequestBodyTtl$outboundSchema
|
|
5103
|
+
.default("5m"),
|
|
5104
|
+
});
|
|
5105
|
+
|
|
5106
|
+
export function deploymentGetConfig2DeploymentsRequestRequestBodyCacheControlToJSON(
|
|
5107
|
+
deploymentGetConfig2DeploymentsRequestRequestBodyCacheControl:
|
|
5108
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl,
|
|
5109
|
+
): string {
|
|
5110
|
+
return JSON.stringify(
|
|
5111
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$outboundSchema
|
|
5112
|
+
.parse(deploymentGetConfig2DeploymentsRequestRequestBodyCacheControl),
|
|
5113
|
+
);
|
|
5114
|
+
}
|
|
5115
|
+
export function deploymentGetConfig2DeploymentsRequestRequestBodyCacheControlFromJSON(
|
|
5116
|
+
jsonString: string,
|
|
5117
|
+
): SafeParseResult<
|
|
5118
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl,
|
|
5119
|
+
SDKValidationError
|
|
5120
|
+
> {
|
|
5121
|
+
return safeParse(
|
|
5122
|
+
jsonString,
|
|
5123
|
+
(x) =>
|
|
5124
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$inboundSchema
|
|
5125
|
+
.parse(JSON.parse(x)),
|
|
5126
|
+
`Failed to parse 'DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl' from JSON`,
|
|
5127
|
+
);
|
|
5128
|
+
}
|
|
5129
|
+
|
|
5130
|
+
/** @internal */
|
|
5131
|
+
export const DeploymentGetConfig2Deployments1$inboundSchema: z.ZodType<
|
|
5132
|
+
DeploymentGetConfig2Deployments1,
|
|
5133
|
+
z.ZodTypeDef,
|
|
5134
|
+
unknown
|
|
5135
|
+
> = z.object({
|
|
5136
|
+
type: z.literal("text"),
|
|
5137
|
+
text: z.string(),
|
|
5138
|
+
cache_control: z.lazy(() =>
|
|
5139
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$inboundSchema
|
|
5140
|
+
).optional(),
|
|
5141
|
+
}).transform((v) => {
|
|
5142
|
+
return remap$(v, {
|
|
5143
|
+
"cache_control": "cacheControl",
|
|
5144
|
+
});
|
|
5145
|
+
});
|
|
5146
|
+
/** @internal */
|
|
5147
|
+
export type DeploymentGetConfig2Deployments1$Outbound = {
|
|
5148
|
+
type: "text";
|
|
5149
|
+
text: string;
|
|
5150
|
+
cache_control?:
|
|
5151
|
+
| DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$Outbound
|
|
5152
|
+
| undefined;
|
|
5153
|
+
};
|
|
5154
|
+
|
|
5155
|
+
/** @internal */
|
|
5156
|
+
export const DeploymentGetConfig2Deployments1$outboundSchema: z.ZodType<
|
|
5157
|
+
DeploymentGetConfig2Deployments1$Outbound,
|
|
5158
|
+
z.ZodTypeDef,
|
|
5159
|
+
DeploymentGetConfig2Deployments1
|
|
5160
|
+
> = z.object({
|
|
5161
|
+
type: z.literal("text"),
|
|
5162
|
+
text: z.string(),
|
|
5163
|
+
cacheControl: z.lazy(() =>
|
|
5164
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyCacheControl$outboundSchema
|
|
5165
|
+
).optional(),
|
|
5166
|
+
}).transform((v) => {
|
|
5167
|
+
return remap$(v, {
|
|
5168
|
+
cacheControl: "cache_control",
|
|
5169
|
+
});
|
|
5170
|
+
});
|
|
5171
|
+
|
|
5172
|
+
export function deploymentGetConfig2Deployments1ToJSON(
|
|
5173
|
+
deploymentGetConfig2Deployments1: DeploymentGetConfig2Deployments1,
|
|
5174
|
+
): string {
|
|
5175
|
+
return JSON.stringify(
|
|
5176
|
+
DeploymentGetConfig2Deployments1$outboundSchema.parse(
|
|
5177
|
+
deploymentGetConfig2Deployments1,
|
|
3429
5178
|
),
|
|
5179
|
+
);
|
|
5180
|
+
}
|
|
5181
|
+
export function deploymentGetConfig2Deployments1FromJSON(
|
|
5182
|
+
jsonString: string,
|
|
5183
|
+
): SafeParseResult<DeploymentGetConfig2Deployments1, SDKValidationError> {
|
|
5184
|
+
return safeParse(
|
|
5185
|
+
jsonString,
|
|
5186
|
+
(x) => DeploymentGetConfig2Deployments1$inboundSchema.parse(JSON.parse(x)),
|
|
5187
|
+
`Failed to parse 'DeploymentGetConfig2Deployments1' from JSON`,
|
|
5188
|
+
);
|
|
5189
|
+
}
|
|
5190
|
+
|
|
5191
|
+
/** @internal */
|
|
5192
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32$inboundSchema:
|
|
5193
|
+
z.ZodType<
|
|
5194
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32,
|
|
5195
|
+
z.ZodTypeDef,
|
|
5196
|
+
unknown
|
|
5197
|
+
> = z.union([
|
|
5198
|
+
z.lazy(() => DeploymentGetConfig2Deployments1$inboundSchema),
|
|
3430
5199
|
components.ImageContentPartSchema$inboundSchema,
|
|
3431
5200
|
components.AudioContentPartSchema$inboundSchema,
|
|
3432
5201
|
z.lazy(() => Two4$inboundSchema),
|
|
3433
5202
|
]);
|
|
3434
5203
|
/** @internal */
|
|
3435
|
-
export type
|
|
3436
|
-
|
|
|
5204
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32$Outbound =
|
|
5205
|
+
| DeploymentGetConfig2Deployments1$Outbound
|
|
3437
5206
|
| components.ImageContentPartSchema$Outbound
|
|
3438
5207
|
| components.AudioContentPartSchema$Outbound
|
|
3439
5208
|
| Two4$Outbound;
|
|
3440
5209
|
|
|
3441
5210
|
/** @internal */
|
|
3442
|
-
export const
|
|
5211
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32$outboundSchema:
|
|
3443
5212
|
z.ZodType<
|
|
3444
|
-
|
|
5213
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32$Outbound,
|
|
3445
5214
|
z.ZodTypeDef,
|
|
3446
|
-
|
|
5215
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32
|
|
3447
5216
|
> = z.union([
|
|
3448
|
-
|
|
3449
|
-
z.object({ type: z.literal("text") }),
|
|
3450
|
-
),
|
|
5217
|
+
z.lazy(() => DeploymentGetConfig2Deployments1$outboundSchema),
|
|
3451
5218
|
components.ImageContentPartSchema$outboundSchema,
|
|
3452
5219
|
components.AudioContentPartSchema$outboundSchema,
|
|
3453
5220
|
z.lazy(() => Two4$outboundSchema),
|
|
3454
5221
|
]);
|
|
3455
5222
|
|
|
3456
|
-
export function
|
|
3457
|
-
|
|
3458
|
-
|
|
5223
|
+
export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages32ToJSON(
|
|
5224
|
+
deploymentGetConfigContentDeploymentsRequestRequestBodyMessages32:
|
|
5225
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32,
|
|
3459
5226
|
): string {
|
|
3460
5227
|
return JSON.stringify(
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
),
|
|
5228
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32$outboundSchema
|
|
5229
|
+
.parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages32),
|
|
3464
5230
|
);
|
|
3465
5231
|
}
|
|
3466
|
-
export function
|
|
5232
|
+
export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages32FromJSON(
|
|
3467
5233
|
jsonString: string,
|
|
3468
5234
|
): SafeParseResult<
|
|
3469
|
-
|
|
5235
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32,
|
|
3470
5236
|
SDKValidationError
|
|
3471
5237
|
> {
|
|
3472
5238
|
return safeParse(
|
|
3473
5239
|
jsonString,
|
|
3474
5240
|
(x) =>
|
|
3475
|
-
|
|
3476
|
-
JSON.parse(x),
|
|
3477
|
-
|
|
3478
|
-
`Failed to parse 'DeploymentGetConfigContentDeploymentsRequest2' from JSON`,
|
|
5241
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32$inboundSchema
|
|
5242
|
+
.parse(JSON.parse(x)),
|
|
5243
|
+
`Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages32' from JSON`,
|
|
3479
5244
|
);
|
|
3480
5245
|
}
|
|
3481
5246
|
|
|
@@ -3487,22 +5252,18 @@ export const DeploymentGetConfigMessagesDeploymentsContent$inboundSchema:
|
|
|
3487
5252
|
unknown
|
|
3488
5253
|
> = z.union([
|
|
3489
5254
|
z.string(),
|
|
3490
|
-
z.array(
|
|
3491
|
-
z.
|
|
3492
|
-
|
|
3493
|
-
|
|
3494
|
-
|
|
3495
|
-
|
|
3496
|
-
components.AudioContentPartSchema$inboundSchema,
|
|
3497
|
-
z.lazy(() => Two4$inboundSchema),
|
|
3498
|
-
]),
|
|
3499
|
-
),
|
|
5255
|
+
z.array(z.union([
|
|
5256
|
+
z.lazy(() => DeploymentGetConfig2Deployments1$inboundSchema),
|
|
5257
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
5258
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
5259
|
+
z.lazy(() => Two4$inboundSchema),
|
|
5260
|
+
])),
|
|
3500
5261
|
]);
|
|
3501
5262
|
/** @internal */
|
|
3502
5263
|
export type DeploymentGetConfigMessagesDeploymentsContent$Outbound =
|
|
3503
5264
|
| string
|
|
3504
5265
|
| Array<
|
|
3505
|
-
|
|
|
5266
|
+
| DeploymentGetConfig2Deployments1$Outbound
|
|
3506
5267
|
| components.ImageContentPartSchema$Outbound
|
|
3507
5268
|
| components.AudioContentPartSchema$Outbound
|
|
3508
5269
|
| Two4$Outbound
|
|
@@ -3511,122 +5272,273 @@ export type DeploymentGetConfigMessagesDeploymentsContent$Outbound =
|
|
|
3511
5272
|
/** @internal */
|
|
3512
5273
|
export const DeploymentGetConfigMessagesDeploymentsContent$outboundSchema:
|
|
3513
5274
|
z.ZodType<
|
|
3514
|
-
DeploymentGetConfigMessagesDeploymentsContent$Outbound,
|
|
5275
|
+
DeploymentGetConfigMessagesDeploymentsContent$Outbound,
|
|
5276
|
+
z.ZodTypeDef,
|
|
5277
|
+
DeploymentGetConfigMessagesDeploymentsContent
|
|
5278
|
+
> = z.union([
|
|
5279
|
+
z.string(),
|
|
5280
|
+
z.array(z.union([
|
|
5281
|
+
z.lazy(() => DeploymentGetConfig2Deployments1$outboundSchema),
|
|
5282
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
5283
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
5284
|
+
z.lazy(() => Two4$outboundSchema),
|
|
5285
|
+
])),
|
|
5286
|
+
]);
|
|
5287
|
+
|
|
5288
|
+
export function deploymentGetConfigMessagesDeploymentsContentToJSON(
|
|
5289
|
+
deploymentGetConfigMessagesDeploymentsContent:
|
|
5290
|
+
DeploymentGetConfigMessagesDeploymentsContent,
|
|
5291
|
+
): string {
|
|
5292
|
+
return JSON.stringify(
|
|
5293
|
+
DeploymentGetConfigMessagesDeploymentsContent$outboundSchema.parse(
|
|
5294
|
+
deploymentGetConfigMessagesDeploymentsContent,
|
|
5295
|
+
),
|
|
5296
|
+
);
|
|
5297
|
+
}
|
|
5298
|
+
export function deploymentGetConfigMessagesDeploymentsContentFromJSON(
|
|
5299
|
+
jsonString: string,
|
|
5300
|
+
): SafeParseResult<
|
|
5301
|
+
DeploymentGetConfigMessagesDeploymentsContent,
|
|
5302
|
+
SDKValidationError
|
|
5303
|
+
> {
|
|
5304
|
+
return safeParse(
|
|
5305
|
+
jsonString,
|
|
5306
|
+
(x) =>
|
|
5307
|
+
DeploymentGetConfigMessagesDeploymentsContent$inboundSchema.parse(
|
|
5308
|
+
JSON.parse(x),
|
|
5309
|
+
),
|
|
5310
|
+
`Failed to parse 'DeploymentGetConfigMessagesDeploymentsContent' from JSON`,
|
|
5311
|
+
);
|
|
5312
|
+
}
|
|
5313
|
+
|
|
5314
|
+
/** @internal */
|
|
5315
|
+
export const MessagesUserMessage$inboundSchema: z.ZodType<
|
|
5316
|
+
MessagesUserMessage,
|
|
5317
|
+
z.ZodTypeDef,
|
|
5318
|
+
unknown
|
|
5319
|
+
> = z.object({
|
|
5320
|
+
role: z.literal("user"),
|
|
5321
|
+
name: z.string().optional(),
|
|
5322
|
+
content: z.union([
|
|
5323
|
+
z.string(),
|
|
5324
|
+
z.array(z.union([
|
|
5325
|
+
z.lazy(() => DeploymentGetConfig2Deployments1$inboundSchema),
|
|
5326
|
+
components.ImageContentPartSchema$inboundSchema,
|
|
5327
|
+
components.AudioContentPartSchema$inboundSchema,
|
|
5328
|
+
z.lazy(() => Two4$inboundSchema),
|
|
5329
|
+
])),
|
|
5330
|
+
]),
|
|
5331
|
+
});
|
|
5332
|
+
/** @internal */
|
|
5333
|
+
export type MessagesUserMessage$Outbound = {
|
|
5334
|
+
role: "user";
|
|
5335
|
+
name?: string | undefined;
|
|
5336
|
+
content:
|
|
5337
|
+
| string
|
|
5338
|
+
| Array<
|
|
5339
|
+
| DeploymentGetConfig2Deployments1$Outbound
|
|
5340
|
+
| components.ImageContentPartSchema$Outbound
|
|
5341
|
+
| components.AudioContentPartSchema$Outbound
|
|
5342
|
+
| Two4$Outbound
|
|
5343
|
+
>;
|
|
5344
|
+
};
|
|
5345
|
+
|
|
5346
|
+
/** @internal */
|
|
5347
|
+
export const MessagesUserMessage$outboundSchema: z.ZodType<
|
|
5348
|
+
MessagesUserMessage$Outbound,
|
|
5349
|
+
z.ZodTypeDef,
|
|
5350
|
+
MessagesUserMessage
|
|
5351
|
+
> = z.object({
|
|
5352
|
+
role: z.literal("user"),
|
|
5353
|
+
name: z.string().optional(),
|
|
5354
|
+
content: z.union([
|
|
5355
|
+
z.string(),
|
|
5356
|
+
z.array(z.union([
|
|
5357
|
+
z.lazy(() => DeploymentGetConfig2Deployments1$outboundSchema),
|
|
5358
|
+
components.ImageContentPartSchema$outboundSchema,
|
|
5359
|
+
components.AudioContentPartSchema$outboundSchema,
|
|
5360
|
+
z.lazy(() => Two4$outboundSchema),
|
|
5361
|
+
])),
|
|
5362
|
+
]),
|
|
5363
|
+
});
|
|
5364
|
+
|
|
5365
|
+
export function messagesUserMessageToJSON(
|
|
5366
|
+
messagesUserMessage: MessagesUserMessage,
|
|
5367
|
+
): string {
|
|
5368
|
+
return JSON.stringify(
|
|
5369
|
+
MessagesUserMessage$outboundSchema.parse(messagesUserMessage),
|
|
5370
|
+
);
|
|
5371
|
+
}
|
|
5372
|
+
export function messagesUserMessageFromJSON(
|
|
5373
|
+
jsonString: string,
|
|
5374
|
+
): SafeParseResult<MessagesUserMessage, SDKValidationError> {
|
|
5375
|
+
return safeParse(
|
|
5376
|
+
jsonString,
|
|
5377
|
+
(x) => MessagesUserMessage$inboundSchema.parse(JSON.parse(x)),
|
|
5378
|
+
`Failed to parse 'MessagesUserMessage' from JSON`,
|
|
5379
|
+
);
|
|
5380
|
+
}
|
|
5381
|
+
|
|
5382
|
+
/** @internal */
|
|
5383
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$inboundSchema:
|
|
5384
|
+
z.ZodNativeEnum<
|
|
5385
|
+
typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType
|
|
5386
|
+
> = z.nativeEnum(
|
|
5387
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType,
|
|
5388
|
+
);
|
|
5389
|
+
/** @internal */
|
|
5390
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$outboundSchema:
|
|
5391
|
+
z.ZodNativeEnum<
|
|
5392
|
+
typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType
|
|
5393
|
+
> =
|
|
5394
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$inboundSchema;
|
|
5395
|
+
|
|
5396
|
+
/** @internal */
|
|
5397
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$inboundSchema:
|
|
5398
|
+
z.ZodNativeEnum<
|
|
5399
|
+
typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type
|
|
5400
|
+
> = z.nativeEnum(
|
|
5401
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type,
|
|
5402
|
+
);
|
|
5403
|
+
/** @internal */
|
|
5404
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$outboundSchema:
|
|
5405
|
+
z.ZodNativeEnum<
|
|
5406
|
+
typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type
|
|
5407
|
+
> =
|
|
5408
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$inboundSchema;
|
|
5409
|
+
|
|
5410
|
+
/** @internal */
|
|
5411
|
+
export const DeploymentGetConfigContentDeploymentsTtl$inboundSchema:
|
|
5412
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigContentDeploymentsTtl> = z
|
|
5413
|
+
.nativeEnum(DeploymentGetConfigContentDeploymentsTtl);
|
|
5414
|
+
/** @internal */
|
|
5415
|
+
export const DeploymentGetConfigContentDeploymentsTtl$outboundSchema:
|
|
5416
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigContentDeploymentsTtl> =
|
|
5417
|
+
DeploymentGetConfigContentDeploymentsTtl$inboundSchema;
|
|
5418
|
+
|
|
5419
|
+
/** @internal */
|
|
5420
|
+
export const DeploymentGetConfigContentDeploymentsCacheControl$inboundSchema:
|
|
5421
|
+
z.ZodType<
|
|
5422
|
+
DeploymentGetConfigContentDeploymentsCacheControl,
|
|
5423
|
+
z.ZodTypeDef,
|
|
5424
|
+
unknown
|
|
5425
|
+
> = z.object({
|
|
5426
|
+
type:
|
|
5427
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$inboundSchema,
|
|
5428
|
+
ttl: DeploymentGetConfigContentDeploymentsTtl$inboundSchema.default("5m"),
|
|
5429
|
+
});
|
|
5430
|
+
/** @internal */
|
|
5431
|
+
export type DeploymentGetConfigContentDeploymentsCacheControl$Outbound = {
|
|
5432
|
+
type: string;
|
|
5433
|
+
ttl: string;
|
|
5434
|
+
};
|
|
5435
|
+
|
|
5436
|
+
/** @internal */
|
|
5437
|
+
export const DeploymentGetConfigContentDeploymentsCacheControl$outboundSchema:
|
|
5438
|
+
z.ZodType<
|
|
5439
|
+
DeploymentGetConfigContentDeploymentsCacheControl$Outbound,
|
|
3515
5440
|
z.ZodTypeDef,
|
|
3516
|
-
|
|
3517
|
-
> = z.
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
z.object({ type: z.literal("text") }),
|
|
3523
|
-
),
|
|
3524
|
-
components.ImageContentPartSchema$outboundSchema,
|
|
3525
|
-
components.AudioContentPartSchema$outboundSchema,
|
|
3526
|
-
z.lazy(() => Two4$outboundSchema),
|
|
3527
|
-
]),
|
|
3528
|
-
),
|
|
3529
|
-
]);
|
|
5441
|
+
DeploymentGetConfigContentDeploymentsCacheControl
|
|
5442
|
+
> = z.object({
|
|
5443
|
+
type:
|
|
5444
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2Type$outboundSchema,
|
|
5445
|
+
ttl: DeploymentGetConfigContentDeploymentsTtl$outboundSchema.default("5m"),
|
|
5446
|
+
});
|
|
3530
5447
|
|
|
3531
|
-
export function
|
|
3532
|
-
|
|
3533
|
-
|
|
5448
|
+
export function deploymentGetConfigContentDeploymentsCacheControlToJSON(
|
|
5449
|
+
deploymentGetConfigContentDeploymentsCacheControl:
|
|
5450
|
+
DeploymentGetConfigContentDeploymentsCacheControl,
|
|
3534
5451
|
): string {
|
|
3535
5452
|
return JSON.stringify(
|
|
3536
|
-
|
|
3537
|
-
|
|
5453
|
+
DeploymentGetConfigContentDeploymentsCacheControl$outboundSchema.parse(
|
|
5454
|
+
deploymentGetConfigContentDeploymentsCacheControl,
|
|
3538
5455
|
),
|
|
3539
5456
|
);
|
|
3540
5457
|
}
|
|
3541
|
-
export function
|
|
5458
|
+
export function deploymentGetConfigContentDeploymentsCacheControlFromJSON(
|
|
3542
5459
|
jsonString: string,
|
|
3543
5460
|
): SafeParseResult<
|
|
3544
|
-
|
|
5461
|
+
DeploymentGetConfigContentDeploymentsCacheControl,
|
|
3545
5462
|
SDKValidationError
|
|
3546
5463
|
> {
|
|
3547
5464
|
return safeParse(
|
|
3548
5465
|
jsonString,
|
|
3549
5466
|
(x) =>
|
|
3550
|
-
|
|
5467
|
+
DeploymentGetConfigContentDeploymentsCacheControl$inboundSchema.parse(
|
|
3551
5468
|
JSON.parse(x),
|
|
3552
5469
|
),
|
|
3553
|
-
`Failed to parse '
|
|
5470
|
+
`Failed to parse 'DeploymentGetConfigContentDeploymentsCacheControl' from JSON`,
|
|
3554
5471
|
);
|
|
3555
5472
|
}
|
|
3556
5473
|
|
|
3557
5474
|
/** @internal */
|
|
3558
|
-
export const
|
|
3559
|
-
|
|
3560
|
-
|
|
3561
|
-
|
|
3562
|
-
|
|
3563
|
-
|
|
3564
|
-
|
|
3565
|
-
|
|
3566
|
-
z.string(),
|
|
3567
|
-
z.
|
|
3568
|
-
|
|
3569
|
-
|
|
3570
|
-
|
|
3571
|
-
|
|
3572
|
-
|
|
3573
|
-
|
|
3574
|
-
|
|
3575
|
-
]),
|
|
3576
|
-
),
|
|
3577
|
-
]),
|
|
3578
|
-
});
|
|
5475
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema:
|
|
5476
|
+
z.ZodType<
|
|
5477
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
|
|
5478
|
+
z.ZodTypeDef,
|
|
5479
|
+
unknown
|
|
5480
|
+
> = z.object({
|
|
5481
|
+
type:
|
|
5482
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$inboundSchema,
|
|
5483
|
+
text: z.string(),
|
|
5484
|
+
cache_control: z.lazy(() =>
|
|
5485
|
+
DeploymentGetConfigContentDeploymentsCacheControl$inboundSchema
|
|
5486
|
+
).optional(),
|
|
5487
|
+
}).transform((v) => {
|
|
5488
|
+
return remap$(v, {
|
|
5489
|
+
"cache_control": "cacheControl",
|
|
5490
|
+
});
|
|
5491
|
+
});
|
|
3579
5492
|
/** @internal */
|
|
3580
|
-
export type
|
|
3581
|
-
|
|
3582
|
-
|
|
3583
|
-
|
|
3584
|
-
|
|
3585
|
-
|
|
3586
|
-
|
|
|
3587
|
-
|
|
3588
|
-
| components.AudioContentPartSchema$Outbound
|
|
3589
|
-
| Two4$Outbound
|
|
3590
|
-
>;
|
|
3591
|
-
};
|
|
5493
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound =
|
|
5494
|
+
{
|
|
5495
|
+
type: string;
|
|
5496
|
+
text: string;
|
|
5497
|
+
cache_control?:
|
|
5498
|
+
| DeploymentGetConfigContentDeploymentsCacheControl$Outbound
|
|
5499
|
+
| undefined;
|
|
5500
|
+
};
|
|
3592
5501
|
|
|
3593
5502
|
/** @internal */
|
|
3594
|
-
export const
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
|
|
3601
|
-
|
|
3602
|
-
z.string(),
|
|
3603
|
-
z.
|
|
3604
|
-
|
|
3605
|
-
|
|
3606
|
-
|
|
3607
|
-
|
|
3608
|
-
|
|
3609
|
-
|
|
3610
|
-
|
|
3611
|
-
]),
|
|
3612
|
-
),
|
|
3613
|
-
]),
|
|
3614
|
-
});
|
|
5503
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema:
|
|
5504
|
+
z.ZodType<
|
|
5505
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound,
|
|
5506
|
+
z.ZodTypeDef,
|
|
5507
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2
|
|
5508
|
+
> = z.object({
|
|
5509
|
+
type:
|
|
5510
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessagesType$outboundSchema,
|
|
5511
|
+
text: z.string(),
|
|
5512
|
+
cacheControl: z.lazy(() =>
|
|
5513
|
+
DeploymentGetConfigContentDeploymentsCacheControl$outboundSchema
|
|
5514
|
+
).optional(),
|
|
5515
|
+
}).transform((v) => {
|
|
5516
|
+
return remap$(v, {
|
|
5517
|
+
cacheControl: "cache_control",
|
|
5518
|
+
});
|
|
5519
|
+
});
|
|
3615
5520
|
|
|
3616
|
-
export function
|
|
3617
|
-
|
|
5521
|
+
export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON(
|
|
5522
|
+
deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2:
|
|
5523
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
|
|
3618
5524
|
): string {
|
|
3619
5525
|
return JSON.stringify(
|
|
3620
|
-
|
|
5526
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
|
|
5527
|
+
.parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2),
|
|
3621
5528
|
);
|
|
3622
5529
|
}
|
|
3623
|
-
export function
|
|
5530
|
+
export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2FromJSON(
|
|
3624
5531
|
jsonString: string,
|
|
3625
|
-
): SafeParseResult<
|
|
5532
|
+
): SafeParseResult<
|
|
5533
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
|
|
5534
|
+
SDKValidationError
|
|
5535
|
+
> {
|
|
3626
5536
|
return safeParse(
|
|
3627
5537
|
jsonString,
|
|
3628
|
-
(x) =>
|
|
3629
|
-
|
|
5538
|
+
(x) =>
|
|
5539
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema
|
|
5540
|
+
.parse(JSON.parse(x)),
|
|
5541
|
+
`Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2' from JSON`,
|
|
3630
5542
|
);
|
|
3631
5543
|
}
|
|
3632
5544
|
|
|
@@ -3637,12 +5549,16 @@ export const DeploymentGetConfigMessagesContent$inboundSchema: z.ZodType<
|
|
|
3637
5549
|
unknown
|
|
3638
5550
|
> = z.union([
|
|
3639
5551
|
z.string(),
|
|
3640
|
-
z.array(
|
|
5552
|
+
z.array(z.lazy(() =>
|
|
5553
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema
|
|
5554
|
+
)),
|
|
3641
5555
|
]);
|
|
3642
5556
|
/** @internal */
|
|
3643
5557
|
export type DeploymentGetConfigMessagesContent$Outbound =
|
|
3644
5558
|
| string
|
|
3645
|
-
| Array<
|
|
5559
|
+
| Array<
|
|
5560
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound
|
|
5561
|
+
>;
|
|
3646
5562
|
|
|
3647
5563
|
/** @internal */
|
|
3648
5564
|
export const DeploymentGetConfigMessagesContent$outboundSchema: z.ZodType<
|
|
@@ -3651,7 +5567,9 @@ export const DeploymentGetConfigMessagesContent$outboundSchema: z.ZodType<
|
|
|
3651
5567
|
DeploymentGetConfigMessagesContent
|
|
3652
5568
|
> = z.union([
|
|
3653
5569
|
z.string(),
|
|
3654
|
-
z.array(
|
|
5570
|
+
z.array(z.lazy(() =>
|
|
5571
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
|
|
5572
|
+
)),
|
|
3655
5573
|
]);
|
|
3656
5574
|
|
|
3657
5575
|
export function deploymentGetConfigMessagesContentToJSON(
|
|
@@ -3683,14 +5601,20 @@ export const MessagesDeveloperMessage$inboundSchema: z.ZodType<
|
|
|
3683
5601
|
role: z.literal("developer"),
|
|
3684
5602
|
content: z.union([
|
|
3685
5603
|
z.string(),
|
|
3686
|
-
z.array(
|
|
5604
|
+
z.array(z.lazy(() =>
|
|
5605
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$inboundSchema
|
|
5606
|
+
)),
|
|
3687
5607
|
]),
|
|
3688
5608
|
name: z.string().optional(),
|
|
3689
5609
|
});
|
|
3690
5610
|
/** @internal */
|
|
3691
5611
|
export type MessagesDeveloperMessage$Outbound = {
|
|
3692
5612
|
role: "developer";
|
|
3693
|
-
content:
|
|
5613
|
+
content:
|
|
5614
|
+
| string
|
|
5615
|
+
| Array<
|
|
5616
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound
|
|
5617
|
+
>;
|
|
3694
5618
|
name?: string | undefined;
|
|
3695
5619
|
};
|
|
3696
5620
|
|
|
@@ -3703,7 +5627,9 @@ export const MessagesDeveloperMessage$outboundSchema: z.ZodType<
|
|
|
3703
5627
|
role: z.literal("developer"),
|
|
3704
5628
|
content: z.union([
|
|
3705
5629
|
z.string(),
|
|
3706
|
-
z.array(
|
|
5630
|
+
z.array(z.lazy(() =>
|
|
5631
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
|
|
5632
|
+
)),
|
|
3707
5633
|
]),
|
|
3708
5634
|
name: z.string().optional(),
|
|
3709
5635
|
});
|
|
@@ -3725,6 +5651,150 @@ export function messagesDeveloperMessageFromJSON(
|
|
|
3725
5651
|
);
|
|
3726
5652
|
}
|
|
3727
5653
|
|
|
5654
|
+
/** @internal */
|
|
5655
|
+
export const DeploymentGetConfigContentDeploymentsRequestType$inboundSchema:
|
|
5656
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigContentDeploymentsRequestType> = z
|
|
5657
|
+
.nativeEnum(DeploymentGetConfigContentDeploymentsRequestType);
|
|
5658
|
+
/** @internal */
|
|
5659
|
+
export const DeploymentGetConfigContentDeploymentsRequestType$outboundSchema:
|
|
5660
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigContentDeploymentsRequestType> =
|
|
5661
|
+
DeploymentGetConfigContentDeploymentsRequestType$inboundSchema;
|
|
5662
|
+
|
|
5663
|
+
/** @internal */
|
|
5664
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyType$inboundSchema:
|
|
5665
|
+
z.ZodNativeEnum<
|
|
5666
|
+
typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyType
|
|
5667
|
+
> = z.nativeEnum(DeploymentGetConfigContentDeploymentsRequestRequestBodyType);
|
|
5668
|
+
/** @internal */
|
|
5669
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyType$outboundSchema:
|
|
5670
|
+
z.ZodNativeEnum<
|
|
5671
|
+
typeof DeploymentGetConfigContentDeploymentsRequestRequestBodyType
|
|
5672
|
+
> = DeploymentGetConfigContentDeploymentsRequestRequestBodyType$inboundSchema;
|
|
5673
|
+
|
|
5674
|
+
/** @internal */
|
|
5675
|
+
export const DeploymentGetConfigContentTtl$inboundSchema: z.ZodNativeEnum<
|
|
5676
|
+
typeof DeploymentGetConfigContentTtl
|
|
5677
|
+
> = z.nativeEnum(DeploymentGetConfigContentTtl);
|
|
5678
|
+
/** @internal */
|
|
5679
|
+
export const DeploymentGetConfigContentTtl$outboundSchema: z.ZodNativeEnum<
|
|
5680
|
+
typeof DeploymentGetConfigContentTtl
|
|
5681
|
+
> = DeploymentGetConfigContentTtl$inboundSchema;
|
|
5682
|
+
|
|
5683
|
+
/** @internal */
|
|
5684
|
+
export const DeploymentGetConfigContentCacheControl$inboundSchema: z.ZodType<
|
|
5685
|
+
DeploymentGetConfigContentCacheControl,
|
|
5686
|
+
z.ZodTypeDef,
|
|
5687
|
+
unknown
|
|
5688
|
+
> = z.object({
|
|
5689
|
+
type:
|
|
5690
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyType$inboundSchema,
|
|
5691
|
+
ttl: DeploymentGetConfigContentTtl$inboundSchema.default("5m"),
|
|
5692
|
+
});
|
|
5693
|
+
/** @internal */
|
|
5694
|
+
export type DeploymentGetConfigContentCacheControl$Outbound = {
|
|
5695
|
+
type: string;
|
|
5696
|
+
ttl: string;
|
|
5697
|
+
};
|
|
5698
|
+
|
|
5699
|
+
/** @internal */
|
|
5700
|
+
export const DeploymentGetConfigContentCacheControl$outboundSchema: z.ZodType<
|
|
5701
|
+
DeploymentGetConfigContentCacheControl$Outbound,
|
|
5702
|
+
z.ZodTypeDef,
|
|
5703
|
+
DeploymentGetConfigContentCacheControl
|
|
5704
|
+
> = z.object({
|
|
5705
|
+
type:
|
|
5706
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyType$outboundSchema,
|
|
5707
|
+
ttl: DeploymentGetConfigContentTtl$outboundSchema.default("5m"),
|
|
5708
|
+
});
|
|
5709
|
+
|
|
5710
|
+
export function deploymentGetConfigContentCacheControlToJSON(
|
|
5711
|
+
deploymentGetConfigContentCacheControl:
|
|
5712
|
+
DeploymentGetConfigContentCacheControl,
|
|
5713
|
+
): string {
|
|
5714
|
+
return JSON.stringify(
|
|
5715
|
+
DeploymentGetConfigContentCacheControl$outboundSchema.parse(
|
|
5716
|
+
deploymentGetConfigContentCacheControl,
|
|
5717
|
+
),
|
|
5718
|
+
);
|
|
5719
|
+
}
|
|
5720
|
+
export function deploymentGetConfigContentCacheControlFromJSON(
|
|
5721
|
+
jsonString: string,
|
|
5722
|
+
): SafeParseResult<DeploymentGetConfigContentCacheControl, SDKValidationError> {
|
|
5723
|
+
return safeParse(
|
|
5724
|
+
jsonString,
|
|
5725
|
+
(x) =>
|
|
5726
|
+
DeploymentGetConfigContentCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
5727
|
+
`Failed to parse 'DeploymentGetConfigContentCacheControl' from JSON`,
|
|
5728
|
+
);
|
|
5729
|
+
}
|
|
5730
|
+
|
|
5731
|
+
/** @internal */
|
|
5732
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema:
|
|
5733
|
+
z.ZodType<
|
|
5734
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2,
|
|
5735
|
+
z.ZodTypeDef,
|
|
5736
|
+
unknown
|
|
5737
|
+
> = z.object({
|
|
5738
|
+
type: DeploymentGetConfigContentDeploymentsRequestType$inboundSchema,
|
|
5739
|
+
text: z.string(),
|
|
5740
|
+
cache_control: z.lazy(() =>
|
|
5741
|
+
DeploymentGetConfigContentCacheControl$inboundSchema
|
|
5742
|
+
).optional(),
|
|
5743
|
+
}).transform((v) => {
|
|
5744
|
+
return remap$(v, {
|
|
5745
|
+
"cache_control": "cacheControl",
|
|
5746
|
+
});
|
|
5747
|
+
});
|
|
5748
|
+
/** @internal */
|
|
5749
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound =
|
|
5750
|
+
{
|
|
5751
|
+
type: string;
|
|
5752
|
+
text: string;
|
|
5753
|
+
cache_control?: DeploymentGetConfigContentCacheControl$Outbound | undefined;
|
|
5754
|
+
};
|
|
5755
|
+
|
|
5756
|
+
/** @internal */
|
|
5757
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema:
|
|
5758
|
+
z.ZodType<
|
|
5759
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound,
|
|
5760
|
+
z.ZodTypeDef,
|
|
5761
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2
|
|
5762
|
+
> = z.object({
|
|
5763
|
+
type: DeploymentGetConfigContentDeploymentsRequestType$outboundSchema,
|
|
5764
|
+
text: z.string(),
|
|
5765
|
+
cacheControl: z.lazy(() =>
|
|
5766
|
+
DeploymentGetConfigContentCacheControl$outboundSchema
|
|
5767
|
+
).optional(),
|
|
5768
|
+
}).transform((v) => {
|
|
5769
|
+
return remap$(v, {
|
|
5770
|
+
cacheControl: "cache_control",
|
|
5771
|
+
});
|
|
5772
|
+
});
|
|
5773
|
+
|
|
5774
|
+
export function deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON(
|
|
5775
|
+
deploymentGetConfigContentDeploymentsRequestRequestBody2:
|
|
5776
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2,
|
|
5777
|
+
): string {
|
|
5778
|
+
return JSON.stringify(
|
|
5779
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
|
|
5780
|
+
.parse(deploymentGetConfigContentDeploymentsRequestRequestBody2),
|
|
5781
|
+
);
|
|
5782
|
+
}
|
|
5783
|
+
export function deploymentGetConfigContentDeploymentsRequestRequestBody2FromJSON(
|
|
5784
|
+
jsonString: string,
|
|
5785
|
+
): SafeParseResult<
|
|
5786
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2,
|
|
5787
|
+
SDKValidationError
|
|
5788
|
+
> {
|
|
5789
|
+
return safeParse(
|
|
5790
|
+
jsonString,
|
|
5791
|
+
(x) =>
|
|
5792
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema
|
|
5793
|
+
.parse(JSON.parse(x)),
|
|
5794
|
+
`Failed to parse 'DeploymentGetConfigContentDeploymentsRequestRequestBody2' from JSON`,
|
|
5795
|
+
);
|
|
5796
|
+
}
|
|
5797
|
+
|
|
3728
5798
|
/** @internal */
|
|
3729
5799
|
export const MessagesContent$inboundSchema: z.ZodType<
|
|
3730
5800
|
MessagesContent,
|
|
@@ -3732,12 +5802,14 @@ export const MessagesContent$inboundSchema: z.ZodType<
|
|
|
3732
5802
|
unknown
|
|
3733
5803
|
> = z.union([
|
|
3734
5804
|
z.string(),
|
|
3735
|
-
z.array(
|
|
5805
|
+
z.array(z.lazy(() =>
|
|
5806
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema
|
|
5807
|
+
)),
|
|
3736
5808
|
]);
|
|
3737
5809
|
/** @internal */
|
|
3738
5810
|
export type MessagesContent$Outbound =
|
|
3739
5811
|
| string
|
|
3740
|
-
| Array<
|
|
5812
|
+
| Array<DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound>;
|
|
3741
5813
|
|
|
3742
5814
|
/** @internal */
|
|
3743
5815
|
export const MessagesContent$outboundSchema: z.ZodType<
|
|
@@ -3746,7 +5818,9 @@ export const MessagesContent$outboundSchema: z.ZodType<
|
|
|
3746
5818
|
MessagesContent
|
|
3747
5819
|
> = z.union([
|
|
3748
5820
|
z.string(),
|
|
3749
|
-
z.array(
|
|
5821
|
+
z.array(z.lazy(() =>
|
|
5822
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
|
|
5823
|
+
)),
|
|
3750
5824
|
]);
|
|
3751
5825
|
|
|
3752
5826
|
export function messagesContentToJSON(
|
|
@@ -3773,14 +5847,18 @@ export const MessagesSystemMessage$inboundSchema: z.ZodType<
|
|
|
3773
5847
|
role: z.literal("system"),
|
|
3774
5848
|
content: z.union([
|
|
3775
5849
|
z.string(),
|
|
3776
|
-
z.array(
|
|
5850
|
+
z.array(z.lazy(() =>
|
|
5851
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2$inboundSchema
|
|
5852
|
+
)),
|
|
3777
5853
|
]),
|
|
3778
5854
|
name: z.string().optional(),
|
|
3779
5855
|
});
|
|
3780
5856
|
/** @internal */
|
|
3781
5857
|
export type MessagesSystemMessage$Outbound = {
|
|
3782
5858
|
role: "system";
|
|
3783
|
-
content:
|
|
5859
|
+
content:
|
|
5860
|
+
| string
|
|
5861
|
+
| Array<DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound>;
|
|
3784
5862
|
name?: string | undefined;
|
|
3785
5863
|
};
|
|
3786
5864
|
|
|
@@ -3793,7 +5871,9 @@ export const MessagesSystemMessage$outboundSchema: z.ZodType<
|
|
|
3793
5871
|
role: z.literal("system"),
|
|
3794
5872
|
content: z.union([
|
|
3795
5873
|
z.string(),
|
|
3796
|
-
z.array(
|
|
5874
|
+
z.array(z.lazy(() =>
|
|
5875
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
|
|
5876
|
+
)),
|
|
3797
5877
|
]),
|
|
3798
5878
|
name: z.string().optional(),
|
|
3799
5879
|
});
|
|
@@ -3816,8 +5896,8 @@ export function messagesSystemMessageFromJSON(
|
|
|
3816
5896
|
}
|
|
3817
5897
|
|
|
3818
5898
|
/** @internal */
|
|
3819
|
-
export const
|
|
3820
|
-
|
|
5899
|
+
export const Messages$inboundSchema: z.ZodType<
|
|
5900
|
+
Messages,
|
|
3821
5901
|
z.ZodTypeDef,
|
|
3822
5902
|
unknown
|
|
3823
5903
|
> = z.union([
|
|
@@ -3828,7 +5908,7 @@ export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
|
|
|
3828
5908
|
z.lazy(() => MessagesToolMessage$inboundSchema),
|
|
3829
5909
|
]);
|
|
3830
5910
|
/** @internal */
|
|
3831
|
-
export type
|
|
5911
|
+
export type Messages$Outbound =
|
|
3832
5912
|
| MessagesSystemMessage$Outbound
|
|
3833
5913
|
| MessagesDeveloperMessage$Outbound
|
|
3834
5914
|
| MessagesUserMessage$Outbound
|
|
@@ -3836,10 +5916,10 @@ export type DeploymentGetConfigMessages$Outbound =
|
|
|
3836
5916
|
| MessagesToolMessage$Outbound;
|
|
3837
5917
|
|
|
3838
5918
|
/** @internal */
|
|
3839
|
-
export const
|
|
3840
|
-
|
|
5919
|
+
export const Messages$outboundSchema: z.ZodType<
|
|
5920
|
+
Messages$Outbound,
|
|
3841
5921
|
z.ZodTypeDef,
|
|
3842
|
-
|
|
5922
|
+
Messages
|
|
3843
5923
|
> = z.union([
|
|
3844
5924
|
z.lazy(() => MessagesSystemMessage$outboundSchema),
|
|
3845
5925
|
z.lazy(() => MessagesDeveloperMessage$outboundSchema),
|
|
@@ -3848,22 +5928,16 @@ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
|
|
|
3848
5928
|
z.lazy(() => MessagesToolMessage$outboundSchema),
|
|
3849
5929
|
]);
|
|
3850
5930
|
|
|
3851
|
-
export function
|
|
3852
|
-
|
|
3853
|
-
): string {
|
|
3854
|
-
return JSON.stringify(
|
|
3855
|
-
DeploymentGetConfigMessages$outboundSchema.parse(
|
|
3856
|
-
deploymentGetConfigMessages,
|
|
3857
|
-
),
|
|
3858
|
-
);
|
|
5931
|
+
export function messagesToJSON(messages: Messages): string {
|
|
5932
|
+
return JSON.stringify(Messages$outboundSchema.parse(messages));
|
|
3859
5933
|
}
|
|
3860
|
-
export function
|
|
5934
|
+
export function messagesFromJSON(
|
|
3861
5935
|
jsonString: string,
|
|
3862
|
-
): SafeParseResult<
|
|
5936
|
+
): SafeParseResult<Messages, SDKValidationError> {
|
|
3863
5937
|
return safeParse(
|
|
3864
5938
|
jsonString,
|
|
3865
|
-
(x) =>
|
|
3866
|
-
`Failed to parse '
|
|
5939
|
+
(x) => Messages$inboundSchema.parse(JSON.parse(x)),
|
|
5940
|
+
`Failed to parse 'Messages' from JSON`,
|
|
3867
5941
|
);
|
|
3868
5942
|
}
|
|
3869
5943
|
|
|
@@ -6026,8 +8100,8 @@ export function deploymentGetConfig22FromJSON(
|
|
|
6026
8100
|
}
|
|
6027
8101
|
|
|
6028
8102
|
/** @internal */
|
|
6029
|
-
export const
|
|
6030
|
-
|
|
8103
|
+
export const DeploymentGetConfig2DeploymentsResponse1$inboundSchema: z.ZodType<
|
|
8104
|
+
DeploymentGetConfig2DeploymentsResponse1,
|
|
6031
8105
|
z.ZodTypeDef,
|
|
6032
8106
|
unknown
|
|
6033
8107
|
> = z.object({
|
|
@@ -6035,35 +8109,44 @@ export const DeploymentGetConfig21$inboundSchema: z.ZodType<
|
|
|
6035
8109
|
text: z.string(),
|
|
6036
8110
|
});
|
|
6037
8111
|
/** @internal */
|
|
6038
|
-
export type
|
|
8112
|
+
export type DeploymentGetConfig2DeploymentsResponse1$Outbound = {
|
|
6039
8113
|
type: "text";
|
|
6040
8114
|
text: string;
|
|
6041
8115
|
};
|
|
6042
8116
|
|
|
6043
8117
|
/** @internal */
|
|
6044
|
-
export const
|
|
6045
|
-
|
|
8118
|
+
export const DeploymentGetConfig2DeploymentsResponse1$outboundSchema: z.ZodType<
|
|
8119
|
+
DeploymentGetConfig2DeploymentsResponse1$Outbound,
|
|
6046
8120
|
z.ZodTypeDef,
|
|
6047
|
-
|
|
8121
|
+
DeploymentGetConfig2DeploymentsResponse1
|
|
6048
8122
|
> = z.object({
|
|
6049
8123
|
type: z.literal("text"),
|
|
6050
8124
|
text: z.string(),
|
|
6051
8125
|
});
|
|
6052
8126
|
|
|
6053
|
-
export function
|
|
6054
|
-
|
|
8127
|
+
export function deploymentGetConfig2DeploymentsResponse1ToJSON(
|
|
8128
|
+
deploymentGetConfig2DeploymentsResponse1:
|
|
8129
|
+
DeploymentGetConfig2DeploymentsResponse1,
|
|
6055
8130
|
): string {
|
|
6056
8131
|
return JSON.stringify(
|
|
6057
|
-
|
|
8132
|
+
DeploymentGetConfig2DeploymentsResponse1$outboundSchema.parse(
|
|
8133
|
+
deploymentGetConfig2DeploymentsResponse1,
|
|
8134
|
+
),
|
|
6058
8135
|
);
|
|
6059
8136
|
}
|
|
6060
|
-
export function
|
|
8137
|
+
export function deploymentGetConfig2DeploymentsResponse1FromJSON(
|
|
6061
8138
|
jsonString: string,
|
|
6062
|
-
): SafeParseResult<
|
|
8139
|
+
): SafeParseResult<
|
|
8140
|
+
DeploymentGetConfig2DeploymentsResponse1,
|
|
8141
|
+
SDKValidationError
|
|
8142
|
+
> {
|
|
6063
8143
|
return safeParse(
|
|
6064
8144
|
jsonString,
|
|
6065
|
-
(x) =>
|
|
6066
|
-
|
|
8145
|
+
(x) =>
|
|
8146
|
+
DeploymentGetConfig2DeploymentsResponse1$inboundSchema.parse(
|
|
8147
|
+
JSON.parse(x),
|
|
8148
|
+
),
|
|
8149
|
+
`Failed to parse 'DeploymentGetConfig2DeploymentsResponse1' from JSON`,
|
|
6067
8150
|
);
|
|
6068
8151
|
}
|
|
6069
8152
|
|
|
@@ -6074,13 +8157,13 @@ export const DeploymentGetConfigContentDeploymentsResponse2$inboundSchema:
|
|
|
6074
8157
|
z.ZodTypeDef,
|
|
6075
8158
|
unknown
|
|
6076
8159
|
> = z.union([
|
|
6077
|
-
z.lazy(() =>
|
|
8160
|
+
z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$inboundSchema),
|
|
6078
8161
|
z.lazy(() => DeploymentGetConfig22$inboundSchema),
|
|
6079
8162
|
z.lazy(() => DeploymentGetConfig23$inboundSchema),
|
|
6080
8163
|
]);
|
|
6081
8164
|
/** @internal */
|
|
6082
8165
|
export type DeploymentGetConfigContentDeploymentsResponse2$Outbound =
|
|
6083
|
-
|
|
|
8166
|
+
| DeploymentGetConfig2DeploymentsResponse1$Outbound
|
|
6084
8167
|
| DeploymentGetConfig22$Outbound
|
|
6085
8168
|
| DeploymentGetConfig23$Outbound;
|
|
6086
8169
|
|
|
@@ -6091,7 +8174,7 @@ export const DeploymentGetConfigContentDeploymentsResponse2$outboundSchema:
|
|
|
6091
8174
|
z.ZodTypeDef,
|
|
6092
8175
|
DeploymentGetConfigContentDeploymentsResponse2
|
|
6093
8176
|
> = z.union([
|
|
6094
|
-
z.lazy(() =>
|
|
8177
|
+
z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$outboundSchema),
|
|
6095
8178
|
z.lazy(() => DeploymentGetConfig22$outboundSchema),
|
|
6096
8179
|
z.lazy(() => DeploymentGetConfig23$outboundSchema),
|
|
6097
8180
|
]);
|
|
@@ -6130,7 +8213,7 @@ export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
|
|
|
6130
8213
|
> = z.union([
|
|
6131
8214
|
z.string(),
|
|
6132
8215
|
z.array(z.union([
|
|
6133
|
-
z.lazy(() =>
|
|
8216
|
+
z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$inboundSchema),
|
|
6134
8217
|
z.lazy(() => DeploymentGetConfig22$inboundSchema),
|
|
6135
8218
|
z.lazy(() => DeploymentGetConfig23$inboundSchema),
|
|
6136
8219
|
])),
|
|
@@ -6139,7 +8222,7 @@ export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
|
|
|
6139
8222
|
export type DeploymentGetConfigContent$Outbound =
|
|
6140
8223
|
| string
|
|
6141
8224
|
| Array<
|
|
6142
|
-
|
|
|
8225
|
+
| DeploymentGetConfig2DeploymentsResponse1$Outbound
|
|
6143
8226
|
| DeploymentGetConfig22$Outbound
|
|
6144
8227
|
| DeploymentGetConfig23$Outbound
|
|
6145
8228
|
>;
|
|
@@ -6152,7 +8235,7 @@ export const DeploymentGetConfigContent$outboundSchema: z.ZodType<
|
|
|
6152
8235
|
> = z.union([
|
|
6153
8236
|
z.string(),
|
|
6154
8237
|
z.array(z.union([
|
|
6155
|
-
z.lazy(() =>
|
|
8238
|
+
z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$outboundSchema),
|
|
6156
8239
|
z.lazy(() => DeploymentGetConfig22$outboundSchema),
|
|
6157
8240
|
z.lazy(() => DeploymentGetConfig23$outboundSchema),
|
|
6158
8241
|
])),
|
|
@@ -6281,8 +8364,8 @@ export function deploymentGetConfigToolCallsFromJSON(
|
|
|
6281
8364
|
}
|
|
6282
8365
|
|
|
6283
8366
|
/** @internal */
|
|
6284
|
-
export const
|
|
6285
|
-
|
|
8367
|
+
export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
|
|
8368
|
+
DeploymentGetConfigMessages,
|
|
6286
8369
|
z.ZodTypeDef,
|
|
6287
8370
|
unknown
|
|
6288
8371
|
> = z.object({
|
|
@@ -6292,7 +8375,7 @@ export const DeploymentGetConfigDeploymentsMessages$inboundSchema: z.ZodType<
|
|
|
6292
8375
|
z.string(),
|
|
6293
8376
|
z.array(
|
|
6294
8377
|
z.union([
|
|
6295
|
-
z.lazy(() =>
|
|
8378
|
+
z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$inboundSchema),
|
|
6296
8379
|
z.lazy(() => DeploymentGetConfig22$inboundSchema),
|
|
6297
8380
|
z.lazy(() => DeploymentGetConfig23$inboundSchema),
|
|
6298
8381
|
]),
|
|
@@ -6301,7 +8384,7 @@ export const DeploymentGetConfigDeploymentsMessages$inboundSchema: z.ZodType<
|
|
|
6301
8384
|
),
|
|
6302
8385
|
tool_calls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$inboundSchema))
|
|
6303
8386
|
.optional(),
|
|
6304
|
-
tool_call_id: z.
|
|
8387
|
+
tool_call_id: z.string().optional(),
|
|
6305
8388
|
}).transform((v) => {
|
|
6306
8389
|
return remap$(v, {
|
|
6307
8390
|
"tool_calls": "toolCalls",
|
|
@@ -6309,25 +8392,25 @@ export const DeploymentGetConfigDeploymentsMessages$inboundSchema: z.ZodType<
|
|
|
6309
8392
|
});
|
|
6310
8393
|
});
|
|
6311
8394
|
/** @internal */
|
|
6312
|
-
export type
|
|
8395
|
+
export type DeploymentGetConfigMessages$Outbound = {
|
|
6313
8396
|
role: string;
|
|
6314
8397
|
content:
|
|
6315
8398
|
| string
|
|
6316
8399
|
| Array<
|
|
6317
|
-
|
|
|
8400
|
+
| DeploymentGetConfig2DeploymentsResponse1$Outbound
|
|
6318
8401
|
| DeploymentGetConfig22$Outbound
|
|
6319
8402
|
| DeploymentGetConfig23$Outbound
|
|
6320
8403
|
>
|
|
6321
8404
|
| null;
|
|
6322
8405
|
tool_calls?: Array<DeploymentGetConfigToolCalls$Outbound> | undefined;
|
|
6323
|
-
tool_call_id?: string |
|
|
8406
|
+
tool_call_id?: string | undefined;
|
|
6324
8407
|
};
|
|
6325
8408
|
|
|
6326
8409
|
/** @internal */
|
|
6327
|
-
export const
|
|
6328
|
-
|
|
8410
|
+
export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
|
|
8411
|
+
DeploymentGetConfigMessages$Outbound,
|
|
6329
8412
|
z.ZodTypeDef,
|
|
6330
|
-
|
|
8413
|
+
DeploymentGetConfigMessages
|
|
6331
8414
|
> = z.object({
|
|
6332
8415
|
role: DeploymentGetConfigRole$outboundSchema,
|
|
6333
8416
|
content: z.nullable(
|
|
@@ -6335,7 +8418,7 @@ export const DeploymentGetConfigDeploymentsMessages$outboundSchema: z.ZodType<
|
|
|
6335
8418
|
z.string(),
|
|
6336
8419
|
z.array(
|
|
6337
8420
|
z.union([
|
|
6338
|
-
z.lazy(() =>
|
|
8421
|
+
z.lazy(() => DeploymentGetConfig2DeploymentsResponse1$outboundSchema),
|
|
6339
8422
|
z.lazy(() => DeploymentGetConfig22$outboundSchema),
|
|
6340
8423
|
z.lazy(() => DeploymentGetConfig23$outboundSchema),
|
|
6341
8424
|
]),
|
|
@@ -6344,7 +8427,7 @@ export const DeploymentGetConfigDeploymentsMessages$outboundSchema: z.ZodType<
|
|
|
6344
8427
|
),
|
|
6345
8428
|
toolCalls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$outboundSchema))
|
|
6346
8429
|
.optional(),
|
|
6347
|
-
toolCallId: z.
|
|
8430
|
+
toolCallId: z.string().optional(),
|
|
6348
8431
|
}).transform((v) => {
|
|
6349
8432
|
return remap$(v, {
|
|
6350
8433
|
toolCalls: "tool_calls",
|
|
@@ -6352,24 +8435,22 @@ export const DeploymentGetConfigDeploymentsMessages$outboundSchema: z.ZodType<
|
|
|
6352
8435
|
});
|
|
6353
8436
|
});
|
|
6354
8437
|
|
|
6355
|
-
export function
|
|
6356
|
-
|
|
6357
|
-
DeploymentGetConfigDeploymentsMessages,
|
|
8438
|
+
export function deploymentGetConfigMessagesToJSON(
|
|
8439
|
+
deploymentGetConfigMessages: DeploymentGetConfigMessages,
|
|
6358
8440
|
): string {
|
|
6359
8441
|
return JSON.stringify(
|
|
6360
|
-
|
|
6361
|
-
|
|
8442
|
+
DeploymentGetConfigMessages$outboundSchema.parse(
|
|
8443
|
+
deploymentGetConfigMessages,
|
|
6362
8444
|
),
|
|
6363
8445
|
);
|
|
6364
8446
|
}
|
|
6365
|
-
export function
|
|
8447
|
+
export function deploymentGetConfigMessagesFromJSON(
|
|
6366
8448
|
jsonString: string,
|
|
6367
|
-
): SafeParseResult<
|
|
8449
|
+
): SafeParseResult<DeploymentGetConfigMessages, SDKValidationError> {
|
|
6368
8450
|
return safeParse(
|
|
6369
8451
|
jsonString,
|
|
6370
|
-
(x) =>
|
|
6371
|
-
|
|
6372
|
-
`Failed to parse 'DeploymentGetConfigDeploymentsMessages' from JSON`,
|
|
8452
|
+
(x) => DeploymentGetConfigMessages$inboundSchema.parse(JSON.parse(x)),
|
|
8453
|
+
`Failed to parse 'DeploymentGetConfigMessages' from JSON`,
|
|
6373
8454
|
);
|
|
6374
8455
|
}
|
|
6375
8456
|
|
|
@@ -6984,9 +9065,7 @@ export const DeploymentGetConfigResponseBody$inboundSchema: z.ZodType<
|
|
|
6984
9065
|
model: z.string(),
|
|
6985
9066
|
type: DeploymentGetConfigType$inboundSchema.optional(),
|
|
6986
9067
|
version: z.string(),
|
|
6987
|
-
messages: z.array(
|
|
6988
|
-
z.lazy(() => DeploymentGetConfigDeploymentsMessages$inboundSchema),
|
|
6989
|
-
),
|
|
9068
|
+
messages: z.array(z.lazy(() => DeploymentGetConfigMessages$inboundSchema)),
|
|
6990
9069
|
parameters: z.lazy(() => DeploymentGetConfigParameters$inboundSchema),
|
|
6991
9070
|
tools: z.array(z.lazy(() => DeploymentGetConfigTools$inboundSchema))
|
|
6992
9071
|
.optional(),
|
|
@@ -6998,7 +9077,7 @@ export type DeploymentGetConfigResponseBody$Outbound = {
|
|
|
6998
9077
|
model: string;
|
|
6999
9078
|
type?: string | undefined;
|
|
7000
9079
|
version: string;
|
|
7001
|
-
messages: Array<
|
|
9080
|
+
messages: Array<DeploymentGetConfigMessages$Outbound>;
|
|
7002
9081
|
parameters: DeploymentGetConfigParameters$Outbound;
|
|
7003
9082
|
tools?: Array<DeploymentGetConfigTools$Outbound> | undefined;
|
|
7004
9083
|
};
|
|
@@ -7014,9 +9093,7 @@ export const DeploymentGetConfigResponseBody$outboundSchema: z.ZodType<
|
|
|
7014
9093
|
model: z.string(),
|
|
7015
9094
|
type: DeploymentGetConfigType$outboundSchema.optional(),
|
|
7016
9095
|
version: z.string(),
|
|
7017
|
-
messages: z.array(
|
|
7018
|
-
z.lazy(() => DeploymentGetConfigDeploymentsMessages$outboundSchema),
|
|
7019
|
-
),
|
|
9096
|
+
messages: z.array(z.lazy(() => DeploymentGetConfigMessages$outboundSchema)),
|
|
7020
9097
|
parameters: z.lazy(() => DeploymentGetConfigParameters$outboundSchema),
|
|
7021
9098
|
tools: z.array(z.lazy(() => DeploymentGetConfigTools$outboundSchema))
|
|
7022
9099
|
.optional(),
|