@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
|
@@ -44,21 +44,90 @@ import {
|
|
|
44
44
|
RefusalPartSchema$Outbound,
|
|
45
45
|
RefusalPartSchema$outboundSchema,
|
|
46
46
|
} from "./refusalpartschema.js";
|
|
47
|
-
import {
|
|
48
|
-
TextContentPartSchema,
|
|
49
|
-
TextContentPartSchema$inboundSchema,
|
|
50
|
-
TextContentPartSchema$Outbound,
|
|
51
|
-
TextContentPartSchema$outboundSchema,
|
|
52
|
-
} from "./textcontentpartschema.js";
|
|
53
47
|
|
|
54
|
-
export
|
|
48
|
+
export const InvokeDeploymentRequest2PrefixMessages5Type = {
|
|
49
|
+
Text: "text",
|
|
50
|
+
} as const;
|
|
51
|
+
export type InvokeDeploymentRequest2PrefixMessages5Type = ClosedEnum<
|
|
52
|
+
typeof InvokeDeploymentRequest2PrefixMessages5Type
|
|
53
|
+
>;
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
57
|
+
*/
|
|
58
|
+
export const InvokeDeploymentRequest2PrefixMessages5ContentType = {
|
|
59
|
+
Ephemeral: "ephemeral",
|
|
60
|
+
} as const;
|
|
61
|
+
/**
|
|
62
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
63
|
+
*/
|
|
64
|
+
export type InvokeDeploymentRequest2PrefixMessages5ContentType = ClosedEnum<
|
|
65
|
+
typeof InvokeDeploymentRequest2PrefixMessages5ContentType
|
|
66
|
+
>;
|
|
67
|
+
|
|
68
|
+
/**
|
|
69
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
70
|
+
*
|
|
71
|
+
* @remarks
|
|
72
|
+
*
|
|
73
|
+
* - `5m`: 5 minutes
|
|
74
|
+
* - `1h`: 1 hour
|
|
75
|
+
*
|
|
76
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
77
|
+
*/
|
|
78
|
+
export const InvokeDeploymentRequest2PrefixMessages5Ttl = {
|
|
79
|
+
Fivem: "5m",
|
|
80
|
+
Oneh: "1h",
|
|
81
|
+
} as const;
|
|
82
|
+
/**
|
|
83
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
84
|
+
*
|
|
85
|
+
* @remarks
|
|
86
|
+
*
|
|
87
|
+
* - `5m`: 5 minutes
|
|
88
|
+
* - `1h`: 1 hour
|
|
89
|
+
*
|
|
90
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
91
|
+
*/
|
|
92
|
+
export type InvokeDeploymentRequest2PrefixMessages5Ttl = ClosedEnum<
|
|
93
|
+
typeof InvokeDeploymentRequest2PrefixMessages5Ttl
|
|
94
|
+
>;
|
|
95
|
+
|
|
96
|
+
export type InvokeDeploymentRequest2PrefixMessages5CacheControl = {
|
|
97
|
+
/**
|
|
98
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
99
|
+
*/
|
|
100
|
+
type: InvokeDeploymentRequest2PrefixMessages5ContentType;
|
|
101
|
+
/**
|
|
102
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
103
|
+
*
|
|
104
|
+
* @remarks
|
|
105
|
+
*
|
|
106
|
+
* - `5m`: 5 minutes
|
|
107
|
+
* - `1h`: 1 hour
|
|
108
|
+
*
|
|
109
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
110
|
+
*/
|
|
111
|
+
ttl?: InvokeDeploymentRequest2PrefixMessages5Ttl | undefined;
|
|
112
|
+
};
|
|
113
|
+
|
|
114
|
+
export type InvokeDeploymentRequest21 = {
|
|
115
|
+
type: InvokeDeploymentRequest2PrefixMessages5Type;
|
|
116
|
+
text: string;
|
|
117
|
+
cacheControl?:
|
|
118
|
+
| InvokeDeploymentRequest2PrefixMessages5CacheControl
|
|
119
|
+
| undefined;
|
|
120
|
+
};
|
|
121
|
+
|
|
122
|
+
export type InvokeDeploymentRequestContentPrefixMessages52 =
|
|
123
|
+
InvokeDeploymentRequest21;
|
|
55
124
|
|
|
56
125
|
/**
|
|
57
126
|
* The contents of the tool message.
|
|
58
127
|
*/
|
|
59
128
|
export type InvokeDeploymentRequestPrefixMessages5Content =
|
|
60
129
|
| string
|
|
61
|
-
| Array<
|
|
130
|
+
| Array<InvokeDeploymentRequest21>;
|
|
62
131
|
|
|
63
132
|
/**
|
|
64
133
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
@@ -125,7 +194,7 @@ export type ToolMessage = {
|
|
|
125
194
|
/**
|
|
126
195
|
* The contents of the tool message.
|
|
127
196
|
*/
|
|
128
|
-
content: string | Array<
|
|
197
|
+
content: string | Array<InvokeDeploymentRequest21>;
|
|
129
198
|
/**
|
|
130
199
|
* Tool call that this message is responding to.
|
|
131
200
|
*/
|
|
@@ -133,8 +202,73 @@ export type ToolMessage = {
|
|
|
133
202
|
cacheControl?: PrefixMessagesCacheControl | undefined;
|
|
134
203
|
};
|
|
135
204
|
|
|
136
|
-
|
|
137
|
-
|
|
205
|
+
/**
|
|
206
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
207
|
+
*/
|
|
208
|
+
export const InvokeDeploymentRequest2PrefixMessages4Type = {
|
|
209
|
+
Ephemeral: "ephemeral",
|
|
210
|
+
} as const;
|
|
211
|
+
/**
|
|
212
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
213
|
+
*/
|
|
214
|
+
export type InvokeDeploymentRequest2PrefixMessages4Type = ClosedEnum<
|
|
215
|
+
typeof InvokeDeploymentRequest2PrefixMessages4Type
|
|
216
|
+
>;
|
|
217
|
+
|
|
218
|
+
/**
|
|
219
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
220
|
+
*
|
|
221
|
+
* @remarks
|
|
222
|
+
*
|
|
223
|
+
* - `5m`: 5 minutes
|
|
224
|
+
* - `1h`: 1 hour
|
|
225
|
+
*
|
|
226
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
227
|
+
*/
|
|
228
|
+
export const InvokeDeploymentRequest2PrefixMessagesTtl = {
|
|
229
|
+
Fivem: "5m",
|
|
230
|
+
Oneh: "1h",
|
|
231
|
+
} as const;
|
|
232
|
+
/**
|
|
233
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
234
|
+
*
|
|
235
|
+
* @remarks
|
|
236
|
+
*
|
|
237
|
+
* - `5m`: 5 minutes
|
|
238
|
+
* - `1h`: 1 hour
|
|
239
|
+
*
|
|
240
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
241
|
+
*/
|
|
242
|
+
export type InvokeDeploymentRequest2PrefixMessagesTtl = ClosedEnum<
|
|
243
|
+
typeof InvokeDeploymentRequest2PrefixMessagesTtl
|
|
244
|
+
>;
|
|
245
|
+
|
|
246
|
+
export type InvokeDeploymentRequest2PrefixMessagesCacheControl = {
|
|
247
|
+
/**
|
|
248
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
249
|
+
*/
|
|
250
|
+
type: InvokeDeploymentRequest2PrefixMessages4Type;
|
|
251
|
+
/**
|
|
252
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
253
|
+
*
|
|
254
|
+
* @remarks
|
|
255
|
+
*
|
|
256
|
+
* - `5m`: 5 minutes
|
|
257
|
+
* - `1h`: 1 hour
|
|
258
|
+
*
|
|
259
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
260
|
+
*/
|
|
261
|
+
ttl?: InvokeDeploymentRequest2PrefixMessagesTtl | undefined;
|
|
262
|
+
};
|
|
263
|
+
|
|
264
|
+
export type Two1 = {
|
|
265
|
+
type: "text";
|
|
266
|
+
text: string;
|
|
267
|
+
cacheControl?: InvokeDeploymentRequest2PrefixMessagesCacheControl | undefined;
|
|
268
|
+
};
|
|
269
|
+
|
|
270
|
+
export type InvokeDeploymentRequestContentPrefixMessages2 =
|
|
271
|
+
| Two1
|
|
138
272
|
| RefusalPartSchema
|
|
139
273
|
| ReasoningPartSchema
|
|
140
274
|
| RedactedReasoningPartSchema;
|
|
@@ -145,10 +279,7 @@ export type Content2 =
|
|
|
145
279
|
export type InvokeDeploymentRequestPrefixMessages4Content =
|
|
146
280
|
| string
|
|
147
281
|
| Array<
|
|
148
|
-
|
|
|
149
|
-
| RefusalPartSchema
|
|
150
|
-
| ReasoningPartSchema
|
|
151
|
-
| RedactedReasoningPartSchema
|
|
282
|
+
Two1 | RefusalPartSchema | ReasoningPartSchema | RedactedReasoningPartSchema
|
|
152
283
|
>;
|
|
153
284
|
|
|
154
285
|
/**
|
|
@@ -206,7 +337,7 @@ export type AssistantMessage = {
|
|
|
206
337
|
content?:
|
|
207
338
|
| string
|
|
208
339
|
| Array<
|
|
209
|
-
|
|
|
340
|
+
| Two1
|
|
210
341
|
| RefusalPartSchema
|
|
211
342
|
| ReasoningPartSchema
|
|
212
343
|
| RedactedReasoningPartSchema
|
|
@@ -238,14 +369,14 @@ export type AssistantMessage = {
|
|
|
238
369
|
/**
|
|
239
370
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
240
371
|
*/
|
|
241
|
-
export const
|
|
372
|
+
export const InvokeDeploymentRequest2PrefixMessages3Type = {
|
|
242
373
|
Ephemeral: "ephemeral",
|
|
243
374
|
} as const;
|
|
244
375
|
/**
|
|
245
376
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
246
377
|
*/
|
|
247
|
-
export type
|
|
248
|
-
typeof
|
|
378
|
+
export type InvokeDeploymentRequest2PrefixMessages3Type = ClosedEnum<
|
|
379
|
+
typeof InvokeDeploymentRequest2PrefixMessages3Type
|
|
249
380
|
>;
|
|
250
381
|
|
|
251
382
|
/**
|
|
@@ -258,7 +389,7 @@ export type InvokeDeploymentRequest2PrefixMessagesType = ClosedEnum<
|
|
|
258
389
|
*
|
|
259
390
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
260
391
|
*/
|
|
261
|
-
export const
|
|
392
|
+
export const InvokeDeploymentRequest2Ttl = {
|
|
262
393
|
Fivem: "5m",
|
|
263
394
|
Oneh: "1h",
|
|
264
395
|
} as const;
|
|
@@ -272,13 +403,15 @@ export const TwoTtl = {
|
|
|
272
403
|
*
|
|
273
404
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
274
405
|
*/
|
|
275
|
-
export type
|
|
406
|
+
export type InvokeDeploymentRequest2Ttl = ClosedEnum<
|
|
407
|
+
typeof InvokeDeploymentRequest2Ttl
|
|
408
|
+
>;
|
|
276
409
|
|
|
277
|
-
export type
|
|
410
|
+
export type InvokeDeploymentRequest2CacheControl = {
|
|
278
411
|
/**
|
|
279
412
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
280
413
|
*/
|
|
281
|
-
type:
|
|
414
|
+
type: InvokeDeploymentRequest2PrefixMessages3Type;
|
|
282
415
|
/**
|
|
283
416
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
284
417
|
*
|
|
@@ -289,7 +422,7 @@ export type TwoCacheControl = {
|
|
|
289
422
|
*
|
|
290
423
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
291
424
|
*/
|
|
292
|
-
ttl?:
|
|
425
|
+
ttl?: InvokeDeploymentRequest2Ttl | undefined;
|
|
293
426
|
};
|
|
294
427
|
|
|
295
428
|
export type Four = {
|
|
@@ -297,15 +430,78 @@ export type Four = {
|
|
|
297
430
|
* The type of the content part. Always `file`.
|
|
298
431
|
*/
|
|
299
432
|
type: "file";
|
|
300
|
-
cacheControl?:
|
|
433
|
+
cacheControl?: InvokeDeploymentRequest2CacheControl | undefined;
|
|
301
434
|
/**
|
|
302
435
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
303
436
|
*/
|
|
304
437
|
file: FileContentPartSchema;
|
|
305
438
|
};
|
|
306
439
|
|
|
307
|
-
|
|
308
|
-
|
|
440
|
+
/**
|
|
441
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
442
|
+
*/
|
|
443
|
+
export const InvokeDeploymentRequest2PrefixMessages3ContentType = {
|
|
444
|
+
Ephemeral: "ephemeral",
|
|
445
|
+
} as const;
|
|
446
|
+
/**
|
|
447
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
448
|
+
*/
|
|
449
|
+
export type InvokeDeploymentRequest2PrefixMessages3ContentType = ClosedEnum<
|
|
450
|
+
typeof InvokeDeploymentRequest2PrefixMessages3ContentType
|
|
451
|
+
>;
|
|
452
|
+
|
|
453
|
+
/**
|
|
454
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
455
|
+
*
|
|
456
|
+
* @remarks
|
|
457
|
+
*
|
|
458
|
+
* - `5m`: 5 minutes
|
|
459
|
+
* - `1h`: 1 hour
|
|
460
|
+
*
|
|
461
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
462
|
+
*/
|
|
463
|
+
export const TwoTtl = {
|
|
464
|
+
Fivem: "5m",
|
|
465
|
+
Oneh: "1h",
|
|
466
|
+
} as const;
|
|
467
|
+
/**
|
|
468
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
469
|
+
*
|
|
470
|
+
* @remarks
|
|
471
|
+
*
|
|
472
|
+
* - `5m`: 5 minutes
|
|
473
|
+
* - `1h`: 1 hour
|
|
474
|
+
*
|
|
475
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
476
|
+
*/
|
|
477
|
+
export type TwoTtl = ClosedEnum<typeof TwoTtl>;
|
|
478
|
+
|
|
479
|
+
export type TwoCacheControl = {
|
|
480
|
+
/**
|
|
481
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
482
|
+
*/
|
|
483
|
+
type: InvokeDeploymentRequest2PrefixMessages3ContentType;
|
|
484
|
+
/**
|
|
485
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
486
|
+
*
|
|
487
|
+
* @remarks
|
|
488
|
+
*
|
|
489
|
+
* - `5m`: 5 minutes
|
|
490
|
+
* - `1h`: 1 hour
|
|
491
|
+
*
|
|
492
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
493
|
+
*/
|
|
494
|
+
ttl?: TwoTtl | undefined;
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
export type InvokeDeploymentRequest2PrefixMessages1 = {
|
|
498
|
+
type: "text";
|
|
499
|
+
text: string;
|
|
500
|
+
cacheControl?: TwoCacheControl | undefined;
|
|
501
|
+
};
|
|
502
|
+
|
|
503
|
+
export type InvokeDeploymentRequestContent2 =
|
|
504
|
+
| InvokeDeploymentRequest2PrefixMessages1
|
|
309
505
|
| ImageContentPartSchema
|
|
310
506
|
| AudioContentPartSchema
|
|
311
507
|
| Four;
|
|
@@ -316,7 +512,7 @@ export type Two =
|
|
|
316
512
|
export type InvokeDeploymentRequestPrefixMessagesContent =
|
|
317
513
|
| string
|
|
318
514
|
| Array<
|
|
319
|
-
|
|
|
515
|
+
| InvokeDeploymentRequest2PrefixMessages1
|
|
320
516
|
| ImageContentPartSchema
|
|
321
517
|
| AudioContentPartSchema
|
|
322
518
|
| Four
|
|
@@ -337,83 +533,29 @@ export type UserMessage = {
|
|
|
337
533
|
content:
|
|
338
534
|
| string
|
|
339
535
|
| Array<
|
|
340
|
-
|
|
|
536
|
+
| InvokeDeploymentRequest2PrefixMessages1
|
|
341
537
|
| ImageContentPartSchema
|
|
342
538
|
| AudioContentPartSchema
|
|
343
539
|
| Four
|
|
344
540
|
>;
|
|
345
541
|
};
|
|
346
542
|
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
export type
|
|
351
|
-
|
|
352
|
-
export type DeveloperMessage = {
|
|
353
|
-
/**
|
|
354
|
-
* The role of the messages author, in this case `developer`.
|
|
355
|
-
*/
|
|
356
|
-
role: "developer";
|
|
357
|
-
/**
|
|
358
|
-
* The contents of the developer message.
|
|
359
|
-
*/
|
|
360
|
-
content: string | Array<TextContentPartSchema>;
|
|
361
|
-
/**
|
|
362
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
363
|
-
*/
|
|
364
|
-
name?: string | undefined;
|
|
365
|
-
};
|
|
366
|
-
|
|
367
|
-
/**
|
|
368
|
-
* The contents of the system message.
|
|
369
|
-
*/
|
|
370
|
-
export type Content = string | Array<TextContentPartSchema>;
|
|
371
|
-
|
|
372
|
-
/**
|
|
373
|
-
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
374
|
-
*/
|
|
375
|
-
export type SystemMessage = {
|
|
376
|
-
/**
|
|
377
|
-
* The role of the messages author, in this case `system`.
|
|
378
|
-
*/
|
|
379
|
-
role: "system";
|
|
380
|
-
/**
|
|
381
|
-
* The contents of the system message.
|
|
382
|
-
*/
|
|
383
|
-
content: string | Array<TextContentPartSchema>;
|
|
384
|
-
/**
|
|
385
|
-
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
386
|
-
*/
|
|
387
|
-
name?: string | undefined;
|
|
388
|
-
};
|
|
389
|
-
|
|
390
|
-
export type PrefixMessages =
|
|
391
|
-
| SystemMessage
|
|
392
|
-
| DeveloperMessage
|
|
393
|
-
| UserMessage
|
|
394
|
-
| AssistantMessage
|
|
395
|
-
| ToolMessage;
|
|
396
|
-
|
|
397
|
-
export type InvokeDeploymentRequestContentMessages52 = TextContentPartSchema;
|
|
398
|
-
|
|
399
|
-
/**
|
|
400
|
-
* The contents of the tool message.
|
|
401
|
-
*/
|
|
402
|
-
export type InvokeDeploymentRequestMessages5Content =
|
|
403
|
-
| string
|
|
404
|
-
| Array<TextContentPartSchema>;
|
|
543
|
+
export const ContentType = {
|
|
544
|
+
Text: "text",
|
|
545
|
+
} as const;
|
|
546
|
+
export type ContentType = ClosedEnum<typeof ContentType>;
|
|
405
547
|
|
|
406
548
|
/**
|
|
407
549
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
408
550
|
*/
|
|
409
|
-
export const
|
|
551
|
+
export const InvokeDeploymentRequestContentPrefixMessagesType = {
|
|
410
552
|
Ephemeral: "ephemeral",
|
|
411
553
|
} as const;
|
|
412
554
|
/**
|
|
413
555
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
414
556
|
*/
|
|
415
|
-
export type
|
|
416
|
-
typeof
|
|
557
|
+
export type InvokeDeploymentRequestContentPrefixMessagesType = ClosedEnum<
|
|
558
|
+
typeof InvokeDeploymentRequestContentPrefixMessagesType
|
|
417
559
|
>;
|
|
418
560
|
|
|
419
561
|
/**
|
|
@@ -426,7 +568,7 @@ export type InvokeDeploymentRequestMessagesType = ClosedEnum<
|
|
|
426
568
|
*
|
|
427
569
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
428
570
|
*/
|
|
429
|
-
export const
|
|
571
|
+
export const ContentTtl = {
|
|
430
572
|
Fivem: "5m",
|
|
431
573
|
Oneh: "1h",
|
|
432
574
|
} as const;
|
|
@@ -440,13 +582,13 @@ export const MessagesTtl = {
|
|
|
440
582
|
*
|
|
441
583
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
442
584
|
*/
|
|
443
|
-
export type
|
|
585
|
+
export type ContentTtl = ClosedEnum<typeof ContentTtl>;
|
|
444
586
|
|
|
445
|
-
export type
|
|
587
|
+
export type ContentCacheControl = {
|
|
446
588
|
/**
|
|
447
589
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
448
590
|
*/
|
|
449
|
-
type:
|
|
591
|
+
type: InvokeDeploymentRequestContentPrefixMessagesType;
|
|
450
592
|
/**
|
|
451
593
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
452
594
|
*
|
|
@@ -457,18 +599,285 @@ export type MessagesCacheControl = {
|
|
|
457
599
|
*
|
|
458
600
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
459
601
|
*/
|
|
460
|
-
ttl?:
|
|
602
|
+
ttl?: ContentTtl | undefined;
|
|
461
603
|
};
|
|
462
604
|
|
|
463
|
-
export type
|
|
605
|
+
export type Content2 = {
|
|
606
|
+
type: ContentType;
|
|
607
|
+
text: string;
|
|
608
|
+
cacheControl?: ContentCacheControl | undefined;
|
|
609
|
+
};
|
|
610
|
+
|
|
611
|
+
/**
|
|
612
|
+
* The contents of the developer message.
|
|
613
|
+
*/
|
|
614
|
+
export type PrefixMessagesContent = string | Array<Content2>;
|
|
615
|
+
|
|
616
|
+
export type DeveloperMessage = {
|
|
464
617
|
/**
|
|
465
|
-
* The role of the messages author, in this case
|
|
618
|
+
* The role of the messages author, in this case `developer`.
|
|
466
619
|
*/
|
|
467
|
-
role: "
|
|
620
|
+
role: "developer";
|
|
621
|
+
/**
|
|
622
|
+
* The contents of the developer message.
|
|
623
|
+
*/
|
|
624
|
+
content: string | Array<Content2>;
|
|
625
|
+
/**
|
|
626
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
627
|
+
*/
|
|
628
|
+
name?: string | undefined;
|
|
629
|
+
};
|
|
630
|
+
|
|
631
|
+
export const InvokeDeploymentRequestContentType = {
|
|
632
|
+
Text: "text",
|
|
633
|
+
} as const;
|
|
634
|
+
export type InvokeDeploymentRequestContentType = ClosedEnum<
|
|
635
|
+
typeof InvokeDeploymentRequestContentType
|
|
636
|
+
>;
|
|
637
|
+
|
|
638
|
+
/**
|
|
639
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
640
|
+
*/
|
|
641
|
+
export const InvokeDeploymentRequestContentPrefixMessages1Type = {
|
|
642
|
+
Ephemeral: "ephemeral",
|
|
643
|
+
} as const;
|
|
644
|
+
/**
|
|
645
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
646
|
+
*/
|
|
647
|
+
export type InvokeDeploymentRequestContentPrefixMessages1Type = ClosedEnum<
|
|
648
|
+
typeof InvokeDeploymentRequestContentPrefixMessages1Type
|
|
649
|
+
>;
|
|
650
|
+
|
|
651
|
+
/**
|
|
652
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
653
|
+
*
|
|
654
|
+
* @remarks
|
|
655
|
+
*
|
|
656
|
+
* - `5m`: 5 minutes
|
|
657
|
+
* - `1h`: 1 hour
|
|
658
|
+
*
|
|
659
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
660
|
+
*/
|
|
661
|
+
export const InvokeDeploymentRequestContentTtl = {
|
|
662
|
+
Fivem: "5m",
|
|
663
|
+
Oneh: "1h",
|
|
664
|
+
} as const;
|
|
665
|
+
/**
|
|
666
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
667
|
+
*
|
|
668
|
+
* @remarks
|
|
669
|
+
*
|
|
670
|
+
* - `5m`: 5 minutes
|
|
671
|
+
* - `1h`: 1 hour
|
|
672
|
+
*
|
|
673
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
674
|
+
*/
|
|
675
|
+
export type InvokeDeploymentRequestContentTtl = ClosedEnum<
|
|
676
|
+
typeof InvokeDeploymentRequestContentTtl
|
|
677
|
+
>;
|
|
678
|
+
|
|
679
|
+
export type InvokeDeploymentRequestContentCacheControl = {
|
|
680
|
+
/**
|
|
681
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
682
|
+
*/
|
|
683
|
+
type: InvokeDeploymentRequestContentPrefixMessages1Type;
|
|
684
|
+
/**
|
|
685
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
686
|
+
*
|
|
687
|
+
* @remarks
|
|
688
|
+
*
|
|
689
|
+
* - `5m`: 5 minutes
|
|
690
|
+
* - `1h`: 1 hour
|
|
691
|
+
*
|
|
692
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
693
|
+
*/
|
|
694
|
+
ttl?: InvokeDeploymentRequestContentTtl | undefined;
|
|
695
|
+
};
|
|
696
|
+
|
|
697
|
+
export type Two = {
|
|
698
|
+
type: InvokeDeploymentRequestContentType;
|
|
699
|
+
text: string;
|
|
700
|
+
cacheControl?: InvokeDeploymentRequestContentCacheControl | undefined;
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
/**
|
|
704
|
+
* The contents of the system message.
|
|
705
|
+
*/
|
|
706
|
+
export type Content = string | Array<Two>;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
710
|
+
*/
|
|
711
|
+
export type SystemMessage = {
|
|
712
|
+
/**
|
|
713
|
+
* The role of the messages author, in this case `system`.
|
|
714
|
+
*/
|
|
715
|
+
role: "system";
|
|
716
|
+
/**
|
|
717
|
+
* The contents of the system message.
|
|
718
|
+
*/
|
|
719
|
+
content: string | Array<Two>;
|
|
720
|
+
/**
|
|
721
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
722
|
+
*/
|
|
723
|
+
name?: string | undefined;
|
|
724
|
+
};
|
|
725
|
+
|
|
726
|
+
export type PrefixMessages =
|
|
727
|
+
| SystemMessage
|
|
728
|
+
| DeveloperMessage
|
|
729
|
+
| UserMessage
|
|
730
|
+
| AssistantMessage
|
|
731
|
+
| ToolMessage;
|
|
732
|
+
|
|
733
|
+
export const InvokeDeploymentRequest2Messages5Type = {
|
|
734
|
+
Text: "text",
|
|
735
|
+
} as const;
|
|
736
|
+
export type InvokeDeploymentRequest2Messages5Type = ClosedEnum<
|
|
737
|
+
typeof InvokeDeploymentRequest2Messages5Type
|
|
738
|
+
>;
|
|
739
|
+
|
|
740
|
+
/**
|
|
741
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
742
|
+
*/
|
|
743
|
+
export const InvokeDeploymentRequest2Messages5ContentType = {
|
|
744
|
+
Ephemeral: "ephemeral",
|
|
745
|
+
} as const;
|
|
746
|
+
/**
|
|
747
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
748
|
+
*/
|
|
749
|
+
export type InvokeDeploymentRequest2Messages5ContentType = ClosedEnum<
|
|
750
|
+
typeof InvokeDeploymentRequest2Messages5ContentType
|
|
751
|
+
>;
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
755
|
+
*
|
|
756
|
+
* @remarks
|
|
757
|
+
*
|
|
758
|
+
* - `5m`: 5 minutes
|
|
759
|
+
* - `1h`: 1 hour
|
|
760
|
+
*
|
|
761
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
762
|
+
*/
|
|
763
|
+
export const InvokeDeploymentRequest2Messages5Ttl = {
|
|
764
|
+
Fivem: "5m",
|
|
765
|
+
Oneh: "1h",
|
|
766
|
+
} as const;
|
|
767
|
+
/**
|
|
768
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
769
|
+
*
|
|
770
|
+
* @remarks
|
|
771
|
+
*
|
|
772
|
+
* - `5m`: 5 minutes
|
|
773
|
+
* - `1h`: 1 hour
|
|
774
|
+
*
|
|
775
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
776
|
+
*/
|
|
777
|
+
export type InvokeDeploymentRequest2Messages5Ttl = ClosedEnum<
|
|
778
|
+
typeof InvokeDeploymentRequest2Messages5Ttl
|
|
779
|
+
>;
|
|
780
|
+
|
|
781
|
+
export type InvokeDeploymentRequest2Messages5CacheControl = {
|
|
782
|
+
/**
|
|
783
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
784
|
+
*/
|
|
785
|
+
type: InvokeDeploymentRequest2Messages5ContentType;
|
|
786
|
+
/**
|
|
787
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
788
|
+
*
|
|
789
|
+
* @remarks
|
|
790
|
+
*
|
|
791
|
+
* - `5m`: 5 minutes
|
|
792
|
+
* - `1h`: 1 hour
|
|
793
|
+
*
|
|
794
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
795
|
+
*/
|
|
796
|
+
ttl?: InvokeDeploymentRequest2Messages5Ttl | undefined;
|
|
797
|
+
};
|
|
798
|
+
|
|
799
|
+
export type InvokeDeploymentRequest2Messages51 = {
|
|
800
|
+
type: InvokeDeploymentRequest2Messages5Type;
|
|
801
|
+
text: string;
|
|
802
|
+
cacheControl?: InvokeDeploymentRequest2Messages5CacheControl | undefined;
|
|
803
|
+
};
|
|
804
|
+
|
|
805
|
+
export type InvokeDeploymentRequestContentMessages52 =
|
|
806
|
+
InvokeDeploymentRequest2Messages51;
|
|
807
|
+
|
|
808
|
+
/**
|
|
809
|
+
* The contents of the tool message.
|
|
810
|
+
*/
|
|
811
|
+
export type InvokeDeploymentRequestMessages5Content =
|
|
812
|
+
| string
|
|
813
|
+
| Array<InvokeDeploymentRequest2Messages51>;
|
|
814
|
+
|
|
815
|
+
/**
|
|
816
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
817
|
+
*/
|
|
818
|
+
export const InvokeDeploymentRequestMessagesType = {
|
|
819
|
+
Ephemeral: "ephemeral",
|
|
820
|
+
} as const;
|
|
821
|
+
/**
|
|
822
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
823
|
+
*/
|
|
824
|
+
export type InvokeDeploymentRequestMessagesType = ClosedEnum<
|
|
825
|
+
typeof InvokeDeploymentRequestMessagesType
|
|
826
|
+
>;
|
|
827
|
+
|
|
828
|
+
/**
|
|
829
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
830
|
+
*
|
|
831
|
+
* @remarks
|
|
832
|
+
*
|
|
833
|
+
* - `5m`: 5 minutes
|
|
834
|
+
* - `1h`: 1 hour
|
|
835
|
+
*
|
|
836
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
837
|
+
*/
|
|
838
|
+
export const MessagesTtl = {
|
|
839
|
+
Fivem: "5m",
|
|
840
|
+
Oneh: "1h",
|
|
841
|
+
} as const;
|
|
842
|
+
/**
|
|
843
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
844
|
+
*
|
|
845
|
+
* @remarks
|
|
846
|
+
*
|
|
847
|
+
* - `5m`: 5 minutes
|
|
848
|
+
* - `1h`: 1 hour
|
|
849
|
+
*
|
|
850
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
851
|
+
*/
|
|
852
|
+
export type MessagesTtl = ClosedEnum<typeof MessagesTtl>;
|
|
853
|
+
|
|
854
|
+
export type MessagesCacheControl = {
|
|
855
|
+
/**
|
|
856
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
857
|
+
*/
|
|
858
|
+
type: InvokeDeploymentRequestMessagesType;
|
|
859
|
+
/**
|
|
860
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
861
|
+
*
|
|
862
|
+
* @remarks
|
|
863
|
+
*
|
|
864
|
+
* - `5m`: 5 minutes
|
|
865
|
+
* - `1h`: 1 hour
|
|
866
|
+
*
|
|
867
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
868
|
+
*/
|
|
869
|
+
ttl?: MessagesTtl | undefined;
|
|
870
|
+
};
|
|
871
|
+
|
|
872
|
+
export type MessagesToolMessage = {
|
|
873
|
+
/**
|
|
874
|
+
* The role of the messages author, in this case tool.
|
|
875
|
+
*/
|
|
876
|
+
role: "tool";
|
|
468
877
|
/**
|
|
469
878
|
* The contents of the tool message.
|
|
470
879
|
*/
|
|
471
|
-
content: string | Array<
|
|
880
|
+
content: string | Array<InvokeDeploymentRequest2Messages51>;
|
|
472
881
|
/**
|
|
473
882
|
* Tool call that this message is responding to.
|
|
474
883
|
*/
|
|
@@ -476,8 +885,73 @@ export type MessagesToolMessage = {
|
|
|
476
885
|
cacheControl?: MessagesCacheControl | undefined;
|
|
477
886
|
};
|
|
478
887
|
|
|
888
|
+
/**
|
|
889
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
890
|
+
*/
|
|
891
|
+
export const InvokeDeploymentRequest2Messages4ContentType = {
|
|
892
|
+
Ephemeral: "ephemeral",
|
|
893
|
+
} as const;
|
|
894
|
+
/**
|
|
895
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
896
|
+
*/
|
|
897
|
+
export type InvokeDeploymentRequest2Messages4ContentType = ClosedEnum<
|
|
898
|
+
typeof InvokeDeploymentRequest2Messages4ContentType
|
|
899
|
+
>;
|
|
900
|
+
|
|
901
|
+
/**
|
|
902
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
903
|
+
*
|
|
904
|
+
* @remarks
|
|
905
|
+
*
|
|
906
|
+
* - `5m`: 5 minutes
|
|
907
|
+
* - `1h`: 1 hour
|
|
908
|
+
*
|
|
909
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
910
|
+
*/
|
|
911
|
+
export const InvokeDeploymentRequest2Messages4Ttl = {
|
|
912
|
+
Fivem: "5m",
|
|
913
|
+
Oneh: "1h",
|
|
914
|
+
} as const;
|
|
915
|
+
/**
|
|
916
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
917
|
+
*
|
|
918
|
+
* @remarks
|
|
919
|
+
*
|
|
920
|
+
* - `5m`: 5 minutes
|
|
921
|
+
* - `1h`: 1 hour
|
|
922
|
+
*
|
|
923
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
924
|
+
*/
|
|
925
|
+
export type InvokeDeploymentRequest2Messages4Ttl = ClosedEnum<
|
|
926
|
+
typeof InvokeDeploymentRequest2Messages4Ttl
|
|
927
|
+
>;
|
|
928
|
+
|
|
929
|
+
export type InvokeDeploymentRequest2Messages4CacheControl = {
|
|
930
|
+
/**
|
|
931
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
932
|
+
*/
|
|
933
|
+
type: InvokeDeploymentRequest2Messages4ContentType;
|
|
934
|
+
/**
|
|
935
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
936
|
+
*
|
|
937
|
+
* @remarks
|
|
938
|
+
*
|
|
939
|
+
* - `5m`: 5 minutes
|
|
940
|
+
* - `1h`: 1 hour
|
|
941
|
+
*
|
|
942
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
943
|
+
*/
|
|
944
|
+
ttl?: InvokeDeploymentRequest2Messages4Ttl | undefined;
|
|
945
|
+
};
|
|
946
|
+
|
|
947
|
+
export type InvokeDeploymentRequest2Messages41 = {
|
|
948
|
+
type: "text";
|
|
949
|
+
text: string;
|
|
950
|
+
cacheControl?: InvokeDeploymentRequest2Messages4CacheControl | undefined;
|
|
951
|
+
};
|
|
952
|
+
|
|
479
953
|
export type InvokeDeploymentRequestContentMessages42 =
|
|
480
|
-
|
|
|
954
|
+
| InvokeDeploymentRequest2Messages41
|
|
481
955
|
| RefusalPartSchema
|
|
482
956
|
| ReasoningPartSchema
|
|
483
957
|
| RedactedReasoningPartSchema;
|
|
@@ -488,7 +962,7 @@ export type InvokeDeploymentRequestContentMessages42 =
|
|
|
488
962
|
export type InvokeDeploymentRequestMessages4Content =
|
|
489
963
|
| string
|
|
490
964
|
| Array<
|
|
491
|
-
|
|
|
965
|
+
| InvokeDeploymentRequest2Messages41
|
|
492
966
|
| RefusalPartSchema
|
|
493
967
|
| ReasoningPartSchema
|
|
494
968
|
| RedactedReasoningPartSchema
|
|
@@ -549,7 +1023,7 @@ export type MessagesAssistantMessage = {
|
|
|
549
1023
|
content?:
|
|
550
1024
|
| string
|
|
551
1025
|
| Array<
|
|
552
|
-
|
|
|
1026
|
+
| InvokeDeploymentRequest2Messages41
|
|
553
1027
|
| RefusalPartSchema
|
|
554
1028
|
| ReasoningPartSchema
|
|
555
1029
|
| RedactedReasoningPartSchema
|
|
@@ -581,14 +1055,14 @@ export type MessagesAssistantMessage = {
|
|
|
581
1055
|
/**
|
|
582
1056
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
583
1057
|
*/
|
|
584
|
-
export const
|
|
1058
|
+
export const InvokeDeploymentRequest2Messages3Content4Type = {
|
|
585
1059
|
Ephemeral: "ephemeral",
|
|
586
1060
|
} as const;
|
|
587
1061
|
/**
|
|
588
1062
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
589
1063
|
*/
|
|
590
|
-
export type
|
|
591
|
-
typeof
|
|
1064
|
+
export type InvokeDeploymentRequest2Messages3Content4Type = ClosedEnum<
|
|
1065
|
+
typeof InvokeDeploymentRequest2Messages3Content4Type
|
|
592
1066
|
>;
|
|
593
1067
|
|
|
594
1068
|
/**
|
|
@@ -601,7 +1075,7 @@ export type InvokeDeploymentRequest2MessagesType = ClosedEnum<
|
|
|
601
1075
|
*
|
|
602
1076
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
603
1077
|
*/
|
|
604
|
-
export const
|
|
1078
|
+
export const InvokeDeploymentRequest2Messages3Ttl = {
|
|
605
1079
|
Fivem: "5m",
|
|
606
1080
|
Oneh: "1h",
|
|
607
1081
|
} as const;
|
|
@@ -615,15 +1089,15 @@ export const InvokeDeploymentRequest2Ttl = {
|
|
|
615
1089
|
*
|
|
616
1090
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
617
1091
|
*/
|
|
618
|
-
export type
|
|
619
|
-
typeof
|
|
1092
|
+
export type InvokeDeploymentRequest2Messages3Ttl = ClosedEnum<
|
|
1093
|
+
typeof InvokeDeploymentRequest2Messages3Ttl
|
|
620
1094
|
>;
|
|
621
1095
|
|
|
622
|
-
export type
|
|
1096
|
+
export type InvokeDeploymentRequest2Messages3CacheControl = {
|
|
623
1097
|
/**
|
|
624
1098
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
625
1099
|
*/
|
|
626
|
-
type:
|
|
1100
|
+
type: InvokeDeploymentRequest2Messages3Content4Type;
|
|
627
1101
|
/**
|
|
628
1102
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
629
1103
|
*
|
|
@@ -634,7 +1108,7 @@ export type InvokeDeploymentRequest2CacheControl = {
|
|
|
634
1108
|
*
|
|
635
1109
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
636
1110
|
*/
|
|
637
|
-
ttl?:
|
|
1111
|
+
ttl?: InvokeDeploymentRequest2Messages3Ttl | undefined;
|
|
638
1112
|
};
|
|
639
1113
|
|
|
640
1114
|
export type Two4 = {
|
|
@@ -642,15 +1116,80 @@ export type Two4 = {
|
|
|
642
1116
|
* The type of the content part. Always `file`.
|
|
643
1117
|
*/
|
|
644
1118
|
type: "file";
|
|
645
|
-
cacheControl?:
|
|
1119
|
+
cacheControl?: InvokeDeploymentRequest2Messages3CacheControl | undefined;
|
|
646
1120
|
/**
|
|
647
1121
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
648
1122
|
*/
|
|
649
1123
|
file: FileContentPartSchema;
|
|
650
1124
|
};
|
|
651
1125
|
|
|
652
|
-
|
|
653
|
-
|
|
1126
|
+
/**
|
|
1127
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1128
|
+
*/
|
|
1129
|
+
export const InvokeDeploymentRequest2Messages3ContentType = {
|
|
1130
|
+
Ephemeral: "ephemeral",
|
|
1131
|
+
} as const;
|
|
1132
|
+
/**
|
|
1133
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1134
|
+
*/
|
|
1135
|
+
export type InvokeDeploymentRequest2Messages3ContentType = ClosedEnum<
|
|
1136
|
+
typeof InvokeDeploymentRequest2Messages3ContentType
|
|
1137
|
+
>;
|
|
1138
|
+
|
|
1139
|
+
/**
|
|
1140
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1141
|
+
*
|
|
1142
|
+
* @remarks
|
|
1143
|
+
*
|
|
1144
|
+
* - `5m`: 5 minutes
|
|
1145
|
+
* - `1h`: 1 hour
|
|
1146
|
+
*
|
|
1147
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1148
|
+
*/
|
|
1149
|
+
export const InvokeDeploymentRequest2MessagesTtl = {
|
|
1150
|
+
Fivem: "5m",
|
|
1151
|
+
Oneh: "1h",
|
|
1152
|
+
} as const;
|
|
1153
|
+
/**
|
|
1154
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1155
|
+
*
|
|
1156
|
+
* @remarks
|
|
1157
|
+
*
|
|
1158
|
+
* - `5m`: 5 minutes
|
|
1159
|
+
* - `1h`: 1 hour
|
|
1160
|
+
*
|
|
1161
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1162
|
+
*/
|
|
1163
|
+
export type InvokeDeploymentRequest2MessagesTtl = ClosedEnum<
|
|
1164
|
+
typeof InvokeDeploymentRequest2MessagesTtl
|
|
1165
|
+
>;
|
|
1166
|
+
|
|
1167
|
+
export type InvokeDeploymentRequest2MessagesCacheControl = {
|
|
1168
|
+
/**
|
|
1169
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1170
|
+
*/
|
|
1171
|
+
type: InvokeDeploymentRequest2Messages3ContentType;
|
|
1172
|
+
/**
|
|
1173
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1174
|
+
*
|
|
1175
|
+
* @remarks
|
|
1176
|
+
*
|
|
1177
|
+
* - `5m`: 5 minutes
|
|
1178
|
+
* - `1h`: 1 hour
|
|
1179
|
+
*
|
|
1180
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1181
|
+
*/
|
|
1182
|
+
ttl?: InvokeDeploymentRequest2MessagesTtl | undefined;
|
|
1183
|
+
};
|
|
1184
|
+
|
|
1185
|
+
export type InvokeDeploymentRequest2Messages1 = {
|
|
1186
|
+
type: "text";
|
|
1187
|
+
text: string;
|
|
1188
|
+
cacheControl?: InvokeDeploymentRequest2MessagesCacheControl | undefined;
|
|
1189
|
+
};
|
|
1190
|
+
|
|
1191
|
+
export type InvokeDeploymentRequestContentMessages32 =
|
|
1192
|
+
| InvokeDeploymentRequest2Messages1
|
|
654
1193
|
| ImageContentPartSchema
|
|
655
1194
|
| AudioContentPartSchema
|
|
656
1195
|
| Two4;
|
|
@@ -661,7 +1200,7 @@ export type InvokeDeploymentRequestContentMessages2 =
|
|
|
661
1200
|
export type InvokeDeploymentRequestMessages3Content =
|
|
662
1201
|
| string
|
|
663
1202
|
| Array<
|
|
664
|
-
|
|
|
1203
|
+
| InvokeDeploymentRequest2Messages1
|
|
665
1204
|
| ImageContentPartSchema
|
|
666
1205
|
| AudioContentPartSchema
|
|
667
1206
|
| Two4
|
|
@@ -682,19 +1221,93 @@ export type MessagesUserMessage = {
|
|
|
682
1221
|
content:
|
|
683
1222
|
| string
|
|
684
1223
|
| Array<
|
|
685
|
-
|
|
|
1224
|
+
| InvokeDeploymentRequest2Messages1
|
|
686
1225
|
| ImageContentPartSchema
|
|
687
1226
|
| AudioContentPartSchema
|
|
688
1227
|
| Two4
|
|
689
1228
|
>;
|
|
690
1229
|
};
|
|
691
1230
|
|
|
1231
|
+
export const InvokeDeploymentRequestContentMessages2Type = {
|
|
1232
|
+
Text: "text",
|
|
1233
|
+
} as const;
|
|
1234
|
+
export type InvokeDeploymentRequestContentMessages2Type = ClosedEnum<
|
|
1235
|
+
typeof InvokeDeploymentRequestContentMessages2Type
|
|
1236
|
+
>;
|
|
1237
|
+
|
|
1238
|
+
/**
|
|
1239
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1240
|
+
*/
|
|
1241
|
+
export const InvokeDeploymentRequestContentMessages22Type = {
|
|
1242
|
+
Ephemeral: "ephemeral",
|
|
1243
|
+
} as const;
|
|
1244
|
+
/**
|
|
1245
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1246
|
+
*/
|
|
1247
|
+
export type InvokeDeploymentRequestContentMessages22Type = ClosedEnum<
|
|
1248
|
+
typeof InvokeDeploymentRequestContentMessages22Type
|
|
1249
|
+
>;
|
|
1250
|
+
|
|
1251
|
+
/**
|
|
1252
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1253
|
+
*
|
|
1254
|
+
* @remarks
|
|
1255
|
+
*
|
|
1256
|
+
* - `5m`: 5 minutes
|
|
1257
|
+
* - `1h`: 1 hour
|
|
1258
|
+
*
|
|
1259
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1260
|
+
*/
|
|
1261
|
+
export const InvokeDeploymentRequestContentMessages2Ttl = {
|
|
1262
|
+
Fivem: "5m",
|
|
1263
|
+
Oneh: "1h",
|
|
1264
|
+
} as const;
|
|
1265
|
+
/**
|
|
1266
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1267
|
+
*
|
|
1268
|
+
* @remarks
|
|
1269
|
+
*
|
|
1270
|
+
* - `5m`: 5 minutes
|
|
1271
|
+
* - `1h`: 1 hour
|
|
1272
|
+
*
|
|
1273
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1274
|
+
*/
|
|
1275
|
+
export type InvokeDeploymentRequestContentMessages2Ttl = ClosedEnum<
|
|
1276
|
+
typeof InvokeDeploymentRequestContentMessages2Ttl
|
|
1277
|
+
>;
|
|
1278
|
+
|
|
1279
|
+
export type InvokeDeploymentRequestContentMessages2CacheControl = {
|
|
1280
|
+
/**
|
|
1281
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1282
|
+
*/
|
|
1283
|
+
type: InvokeDeploymentRequestContentMessages22Type;
|
|
1284
|
+
/**
|
|
1285
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1286
|
+
*
|
|
1287
|
+
* @remarks
|
|
1288
|
+
*
|
|
1289
|
+
* - `5m`: 5 minutes
|
|
1290
|
+
* - `1h`: 1 hour
|
|
1291
|
+
*
|
|
1292
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1293
|
+
*/
|
|
1294
|
+
ttl?: InvokeDeploymentRequestContentMessages2Ttl | undefined;
|
|
1295
|
+
};
|
|
1296
|
+
|
|
1297
|
+
export type InvokeDeploymentRequestContentMessages22 = {
|
|
1298
|
+
type: InvokeDeploymentRequestContentMessages2Type;
|
|
1299
|
+
text: string;
|
|
1300
|
+
cacheControl?:
|
|
1301
|
+
| InvokeDeploymentRequestContentMessages2CacheControl
|
|
1302
|
+
| undefined;
|
|
1303
|
+
};
|
|
1304
|
+
|
|
692
1305
|
/**
|
|
693
1306
|
* The contents of the developer message.
|
|
694
1307
|
*/
|
|
695
1308
|
export type InvokeDeploymentRequestMessagesContent =
|
|
696
1309
|
| string
|
|
697
|
-
| Array<
|
|
1310
|
+
| Array<InvokeDeploymentRequestContentMessages22>;
|
|
698
1311
|
|
|
699
1312
|
export type MessagesDeveloperMessage = {
|
|
700
1313
|
/**
|
|
@@ -704,17 +1317,91 @@ export type MessagesDeveloperMessage = {
|
|
|
704
1317
|
/**
|
|
705
1318
|
* The contents of the developer message.
|
|
706
1319
|
*/
|
|
707
|
-
content: string | Array<
|
|
1320
|
+
content: string | Array<InvokeDeploymentRequestContentMessages22>;
|
|
708
1321
|
/**
|
|
709
1322
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
710
1323
|
*/
|
|
711
1324
|
name?: string | undefined;
|
|
712
1325
|
};
|
|
713
1326
|
|
|
1327
|
+
export const InvokeDeploymentRequestContentMessagesType = {
|
|
1328
|
+
Text: "text",
|
|
1329
|
+
} as const;
|
|
1330
|
+
export type InvokeDeploymentRequestContentMessagesType = ClosedEnum<
|
|
1331
|
+
typeof InvokeDeploymentRequestContentMessagesType
|
|
1332
|
+
>;
|
|
1333
|
+
|
|
1334
|
+
/**
|
|
1335
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1336
|
+
*/
|
|
1337
|
+
export const InvokeDeploymentRequestContentMessages1Type = {
|
|
1338
|
+
Ephemeral: "ephemeral",
|
|
1339
|
+
} as const;
|
|
1340
|
+
/**
|
|
1341
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1342
|
+
*/
|
|
1343
|
+
export type InvokeDeploymentRequestContentMessages1Type = ClosedEnum<
|
|
1344
|
+
typeof InvokeDeploymentRequestContentMessages1Type
|
|
1345
|
+
>;
|
|
1346
|
+
|
|
1347
|
+
/**
|
|
1348
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1349
|
+
*
|
|
1350
|
+
* @remarks
|
|
1351
|
+
*
|
|
1352
|
+
* - `5m`: 5 minutes
|
|
1353
|
+
* - `1h`: 1 hour
|
|
1354
|
+
*
|
|
1355
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1356
|
+
*/
|
|
1357
|
+
export const InvokeDeploymentRequestContentMessagesTtl = {
|
|
1358
|
+
Fivem: "5m",
|
|
1359
|
+
Oneh: "1h",
|
|
1360
|
+
} as const;
|
|
1361
|
+
/**
|
|
1362
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1363
|
+
*
|
|
1364
|
+
* @remarks
|
|
1365
|
+
*
|
|
1366
|
+
* - `5m`: 5 minutes
|
|
1367
|
+
* - `1h`: 1 hour
|
|
1368
|
+
*
|
|
1369
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1370
|
+
*/
|
|
1371
|
+
export type InvokeDeploymentRequestContentMessagesTtl = ClosedEnum<
|
|
1372
|
+
typeof InvokeDeploymentRequestContentMessagesTtl
|
|
1373
|
+
>;
|
|
1374
|
+
|
|
1375
|
+
export type InvokeDeploymentRequestContentMessagesCacheControl = {
|
|
1376
|
+
/**
|
|
1377
|
+
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
1378
|
+
*/
|
|
1379
|
+
type: InvokeDeploymentRequestContentMessages1Type;
|
|
1380
|
+
/**
|
|
1381
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1382
|
+
*
|
|
1383
|
+
* @remarks
|
|
1384
|
+
*
|
|
1385
|
+
* - `5m`: 5 minutes
|
|
1386
|
+
* - `1h`: 1 hour
|
|
1387
|
+
*
|
|
1388
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1389
|
+
*/
|
|
1390
|
+
ttl?: InvokeDeploymentRequestContentMessagesTtl | undefined;
|
|
1391
|
+
};
|
|
1392
|
+
|
|
1393
|
+
export type InvokeDeploymentRequestContentMessages2 = {
|
|
1394
|
+
type: InvokeDeploymentRequestContentMessagesType;
|
|
1395
|
+
text: string;
|
|
1396
|
+
cacheControl?: InvokeDeploymentRequestContentMessagesCacheControl | undefined;
|
|
1397
|
+
};
|
|
1398
|
+
|
|
714
1399
|
/**
|
|
715
1400
|
* The contents of the system message.
|
|
716
1401
|
*/
|
|
717
|
-
export type MessagesContent =
|
|
1402
|
+
export type MessagesContent =
|
|
1403
|
+
| string
|
|
1404
|
+
| Array<InvokeDeploymentRequestContentMessages2>;
|
|
718
1405
|
|
|
719
1406
|
/**
|
|
720
1407
|
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
@@ -727,7 +1414,7 @@ export type MessagesSystemMessage = {
|
|
|
727
1414
|
/**
|
|
728
1415
|
* The contents of the system message.
|
|
729
1416
|
*/
|
|
730
|
-
content: string | Array<
|
|
1417
|
+
content: string | Array<InvokeDeploymentRequestContentMessages2>;
|
|
731
1418
|
/**
|
|
732
1419
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
733
1420
|
*/
|
|
@@ -1151,38 +1838,188 @@ export type InvokeDeploymentRequest = {
|
|
|
1151
1838
|
};
|
|
1152
1839
|
|
|
1153
1840
|
/** @internal */
|
|
1154
|
-
export const
|
|
1155
|
-
|
|
1841
|
+
export const InvokeDeploymentRequest2PrefixMessages5Type$inboundSchema:
|
|
1842
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessages5Type> = z
|
|
1843
|
+
.nativeEnum(InvokeDeploymentRequest2PrefixMessages5Type);
|
|
1844
|
+
/** @internal */
|
|
1845
|
+
export const InvokeDeploymentRequest2PrefixMessages5Type$outboundSchema:
|
|
1846
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessages5Type> =
|
|
1847
|
+
InvokeDeploymentRequest2PrefixMessages5Type$inboundSchema;
|
|
1848
|
+
|
|
1849
|
+
/** @internal */
|
|
1850
|
+
export const InvokeDeploymentRequest2PrefixMessages5ContentType$inboundSchema:
|
|
1851
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessages5ContentType> = z
|
|
1852
|
+
.nativeEnum(InvokeDeploymentRequest2PrefixMessages5ContentType);
|
|
1853
|
+
/** @internal */
|
|
1854
|
+
export const InvokeDeploymentRequest2PrefixMessages5ContentType$outboundSchema:
|
|
1855
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessages5ContentType> =
|
|
1856
|
+
InvokeDeploymentRequest2PrefixMessages5ContentType$inboundSchema;
|
|
1857
|
+
|
|
1858
|
+
/** @internal */
|
|
1859
|
+
export const InvokeDeploymentRequest2PrefixMessages5Ttl$inboundSchema:
|
|
1860
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessages5Ttl> = z
|
|
1861
|
+
.nativeEnum(InvokeDeploymentRequest2PrefixMessages5Ttl);
|
|
1862
|
+
/** @internal */
|
|
1863
|
+
export const InvokeDeploymentRequest2PrefixMessages5Ttl$outboundSchema:
|
|
1864
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessages5Ttl> =
|
|
1865
|
+
InvokeDeploymentRequest2PrefixMessages5Ttl$inboundSchema;
|
|
1866
|
+
|
|
1867
|
+
/** @internal */
|
|
1868
|
+
export const InvokeDeploymentRequest2PrefixMessages5CacheControl$inboundSchema:
|
|
1869
|
+
z.ZodType<
|
|
1870
|
+
InvokeDeploymentRequest2PrefixMessages5CacheControl,
|
|
1871
|
+
z.ZodTypeDef,
|
|
1872
|
+
unknown
|
|
1873
|
+
> = z.object({
|
|
1874
|
+
type: InvokeDeploymentRequest2PrefixMessages5ContentType$inboundSchema,
|
|
1875
|
+
ttl: InvokeDeploymentRequest2PrefixMessages5Ttl$inboundSchema.default("5m"),
|
|
1876
|
+
});
|
|
1877
|
+
/** @internal */
|
|
1878
|
+
export type InvokeDeploymentRequest2PrefixMessages5CacheControl$Outbound = {
|
|
1879
|
+
type: string;
|
|
1880
|
+
ttl: string;
|
|
1881
|
+
};
|
|
1882
|
+
|
|
1883
|
+
/** @internal */
|
|
1884
|
+
export const InvokeDeploymentRequest2PrefixMessages5CacheControl$outboundSchema:
|
|
1885
|
+
z.ZodType<
|
|
1886
|
+
InvokeDeploymentRequest2PrefixMessages5CacheControl$Outbound,
|
|
1887
|
+
z.ZodTypeDef,
|
|
1888
|
+
InvokeDeploymentRequest2PrefixMessages5CacheControl
|
|
1889
|
+
> = z.object({
|
|
1890
|
+
type: InvokeDeploymentRequest2PrefixMessages5ContentType$outboundSchema,
|
|
1891
|
+
ttl: InvokeDeploymentRequest2PrefixMessages5Ttl$outboundSchema.default(
|
|
1892
|
+
"5m",
|
|
1893
|
+
),
|
|
1894
|
+
});
|
|
1895
|
+
|
|
1896
|
+
export function invokeDeploymentRequest2PrefixMessages5CacheControlToJSON(
|
|
1897
|
+
invokeDeploymentRequest2PrefixMessages5CacheControl:
|
|
1898
|
+
InvokeDeploymentRequest2PrefixMessages5CacheControl,
|
|
1899
|
+
): string {
|
|
1900
|
+
return JSON.stringify(
|
|
1901
|
+
InvokeDeploymentRequest2PrefixMessages5CacheControl$outboundSchema.parse(
|
|
1902
|
+
invokeDeploymentRequest2PrefixMessages5CacheControl,
|
|
1903
|
+
),
|
|
1904
|
+
);
|
|
1905
|
+
}
|
|
1906
|
+
export function invokeDeploymentRequest2PrefixMessages5CacheControlFromJSON(
|
|
1907
|
+
jsonString: string,
|
|
1908
|
+
): SafeParseResult<
|
|
1909
|
+
InvokeDeploymentRequest2PrefixMessages5CacheControl,
|
|
1910
|
+
SDKValidationError
|
|
1911
|
+
> {
|
|
1912
|
+
return safeParse(
|
|
1913
|
+
jsonString,
|
|
1914
|
+
(x) =>
|
|
1915
|
+
InvokeDeploymentRequest2PrefixMessages5CacheControl$inboundSchema.parse(
|
|
1916
|
+
JSON.parse(x),
|
|
1917
|
+
),
|
|
1918
|
+
`Failed to parse 'InvokeDeploymentRequest2PrefixMessages5CacheControl' from JSON`,
|
|
1919
|
+
);
|
|
1920
|
+
}
|
|
1921
|
+
|
|
1922
|
+
/** @internal */
|
|
1923
|
+
export const InvokeDeploymentRequest21$inboundSchema: z.ZodType<
|
|
1924
|
+
InvokeDeploymentRequest21,
|
|
1156
1925
|
z.ZodTypeDef,
|
|
1157
1926
|
unknown
|
|
1158
|
-
> =
|
|
1927
|
+
> = z.object({
|
|
1928
|
+
type: InvokeDeploymentRequest2PrefixMessages5Type$inboundSchema,
|
|
1929
|
+
text: z.string(),
|
|
1930
|
+
cache_control: z.lazy(() =>
|
|
1931
|
+
InvokeDeploymentRequest2PrefixMessages5CacheControl$inboundSchema
|
|
1932
|
+
).optional(),
|
|
1933
|
+
}).transform((v) => {
|
|
1934
|
+
return remap$(v, {
|
|
1935
|
+
"cache_control": "cacheControl",
|
|
1936
|
+
});
|
|
1937
|
+
});
|
|
1159
1938
|
/** @internal */
|
|
1160
|
-
export type
|
|
1161
|
-
|
|
1939
|
+
export type InvokeDeploymentRequest21$Outbound = {
|
|
1940
|
+
type: string;
|
|
1941
|
+
text: string;
|
|
1942
|
+
cache_control?:
|
|
1943
|
+
| InvokeDeploymentRequest2PrefixMessages5CacheControl$Outbound
|
|
1944
|
+
| undefined;
|
|
1945
|
+
};
|
|
1162
1946
|
|
|
1163
1947
|
/** @internal */
|
|
1164
|
-
export const
|
|
1165
|
-
|
|
1948
|
+
export const InvokeDeploymentRequest21$outboundSchema: z.ZodType<
|
|
1949
|
+
InvokeDeploymentRequest21$Outbound,
|
|
1166
1950
|
z.ZodTypeDef,
|
|
1167
|
-
|
|
1168
|
-
> =
|
|
1951
|
+
InvokeDeploymentRequest21
|
|
1952
|
+
> = z.object({
|
|
1953
|
+
type: InvokeDeploymentRequest2PrefixMessages5Type$outboundSchema,
|
|
1954
|
+
text: z.string(),
|
|
1955
|
+
cacheControl: z.lazy(() =>
|
|
1956
|
+
InvokeDeploymentRequest2PrefixMessages5CacheControl$outboundSchema
|
|
1957
|
+
).optional(),
|
|
1958
|
+
}).transform((v) => {
|
|
1959
|
+
return remap$(v, {
|
|
1960
|
+
cacheControl: "cache_control",
|
|
1961
|
+
});
|
|
1962
|
+
});
|
|
1169
1963
|
|
|
1170
|
-
export function
|
|
1171
|
-
|
|
1964
|
+
export function invokeDeploymentRequest21ToJSON(
|
|
1965
|
+
invokeDeploymentRequest21: InvokeDeploymentRequest21,
|
|
1172
1966
|
): string {
|
|
1173
1967
|
return JSON.stringify(
|
|
1174
|
-
|
|
1175
|
-
|
|
1968
|
+
InvokeDeploymentRequest21$outboundSchema.parse(invokeDeploymentRequest21),
|
|
1969
|
+
);
|
|
1970
|
+
}
|
|
1971
|
+
export function invokeDeploymentRequest21FromJSON(
|
|
1972
|
+
jsonString: string,
|
|
1973
|
+
): SafeParseResult<InvokeDeploymentRequest21, SDKValidationError> {
|
|
1974
|
+
return safeParse(
|
|
1975
|
+
jsonString,
|
|
1976
|
+
(x) => InvokeDeploymentRequest21$inboundSchema.parse(JSON.parse(x)),
|
|
1977
|
+
`Failed to parse 'InvokeDeploymentRequest21' from JSON`,
|
|
1978
|
+
);
|
|
1979
|
+
}
|
|
1980
|
+
|
|
1981
|
+
/** @internal */
|
|
1982
|
+
export const InvokeDeploymentRequestContentPrefixMessages52$inboundSchema:
|
|
1983
|
+
z.ZodType<
|
|
1984
|
+
InvokeDeploymentRequestContentPrefixMessages52,
|
|
1985
|
+
z.ZodTypeDef,
|
|
1986
|
+
unknown
|
|
1987
|
+
> = z.lazy(() => InvokeDeploymentRequest21$inboundSchema);
|
|
1988
|
+
/** @internal */
|
|
1989
|
+
export type InvokeDeploymentRequestContentPrefixMessages52$Outbound =
|
|
1990
|
+
InvokeDeploymentRequest21$Outbound;
|
|
1991
|
+
|
|
1992
|
+
/** @internal */
|
|
1993
|
+
export const InvokeDeploymentRequestContentPrefixMessages52$outboundSchema:
|
|
1994
|
+
z.ZodType<
|
|
1995
|
+
InvokeDeploymentRequestContentPrefixMessages52$Outbound,
|
|
1996
|
+
z.ZodTypeDef,
|
|
1997
|
+
InvokeDeploymentRequestContentPrefixMessages52
|
|
1998
|
+
> = z.lazy(() => InvokeDeploymentRequest21$outboundSchema);
|
|
1999
|
+
|
|
2000
|
+
export function invokeDeploymentRequestContentPrefixMessages52ToJSON(
|
|
2001
|
+
invokeDeploymentRequestContentPrefixMessages52:
|
|
2002
|
+
InvokeDeploymentRequestContentPrefixMessages52,
|
|
2003
|
+
): string {
|
|
2004
|
+
return JSON.stringify(
|
|
2005
|
+
InvokeDeploymentRequestContentPrefixMessages52$outboundSchema.parse(
|
|
2006
|
+
invokeDeploymentRequestContentPrefixMessages52,
|
|
1176
2007
|
),
|
|
1177
2008
|
);
|
|
1178
2009
|
}
|
|
1179
|
-
export function
|
|
2010
|
+
export function invokeDeploymentRequestContentPrefixMessages52FromJSON(
|
|
1180
2011
|
jsonString: string,
|
|
1181
|
-
): SafeParseResult<
|
|
2012
|
+
): SafeParseResult<
|
|
2013
|
+
InvokeDeploymentRequestContentPrefixMessages52,
|
|
2014
|
+
SDKValidationError
|
|
2015
|
+
> {
|
|
1182
2016
|
return safeParse(
|
|
1183
2017
|
jsonString,
|
|
1184
|
-
(x) =>
|
|
1185
|
-
|
|
2018
|
+
(x) =>
|
|
2019
|
+
InvokeDeploymentRequestContentPrefixMessages52$inboundSchema.parse(
|
|
2020
|
+
JSON.parse(x),
|
|
2021
|
+
),
|
|
2022
|
+
`Failed to parse 'InvokeDeploymentRequestContentPrefixMessages52' from JSON`,
|
|
1186
2023
|
);
|
|
1187
2024
|
}
|
|
1188
2025
|
|
|
@@ -1192,11 +2029,14 @@ export const InvokeDeploymentRequestPrefixMessages5Content$inboundSchema:
|
|
|
1192
2029
|
InvokeDeploymentRequestPrefixMessages5Content,
|
|
1193
2030
|
z.ZodTypeDef,
|
|
1194
2031
|
unknown
|
|
1195
|
-
> = z.union([
|
|
2032
|
+
> = z.union([
|
|
2033
|
+
z.string(),
|
|
2034
|
+
z.array(z.lazy(() => InvokeDeploymentRequest21$inboundSchema)),
|
|
2035
|
+
]);
|
|
1196
2036
|
/** @internal */
|
|
1197
2037
|
export type InvokeDeploymentRequestPrefixMessages5Content$Outbound =
|
|
1198
2038
|
| string
|
|
1199
|
-
| Array<
|
|
2039
|
+
| Array<InvokeDeploymentRequest21$Outbound>;
|
|
1200
2040
|
|
|
1201
2041
|
/** @internal */
|
|
1202
2042
|
export const InvokeDeploymentRequestPrefixMessages5Content$outboundSchema:
|
|
@@ -1204,7 +2044,10 @@ export const InvokeDeploymentRequestPrefixMessages5Content$outboundSchema:
|
|
|
1204
2044
|
InvokeDeploymentRequestPrefixMessages5Content$Outbound,
|
|
1205
2045
|
z.ZodTypeDef,
|
|
1206
2046
|
InvokeDeploymentRequestPrefixMessages5Content
|
|
1207
|
-
> = z.union([
|
|
2047
|
+
> = z.union([
|
|
2048
|
+
z.string(),
|
|
2049
|
+
z.array(z.lazy(() => InvokeDeploymentRequest21$outboundSchema)),
|
|
2050
|
+
]);
|
|
1208
2051
|
|
|
1209
2052
|
export function invokeDeploymentRequestPrefixMessages5ContentToJSON(
|
|
1210
2053
|
invokeDeploymentRequestPrefixMessages5Content:
|
|
@@ -1299,7 +2142,10 @@ export const ToolMessage$inboundSchema: z.ZodType<
|
|
|
1299
2142
|
unknown
|
|
1300
2143
|
> = z.object({
|
|
1301
2144
|
role: z.literal("tool"),
|
|
1302
|
-
content: z.union([
|
|
2145
|
+
content: z.union([
|
|
2146
|
+
z.string(),
|
|
2147
|
+
z.array(z.lazy(() => InvokeDeploymentRequest21$inboundSchema)),
|
|
2148
|
+
]),
|
|
1303
2149
|
tool_call_id: z.string(),
|
|
1304
2150
|
cache_control: z.lazy(() => PrefixMessagesCacheControl$inboundSchema)
|
|
1305
2151
|
.optional(),
|
|
@@ -1312,7 +2158,7 @@ export const ToolMessage$inboundSchema: z.ZodType<
|
|
|
1312
2158
|
/** @internal */
|
|
1313
2159
|
export type ToolMessage$Outbound = {
|
|
1314
2160
|
role: "tool";
|
|
1315
|
-
content: string | Array<
|
|
2161
|
+
content: string | Array<InvokeDeploymentRequest21$Outbound>;
|
|
1316
2162
|
tool_call_id: string;
|
|
1317
2163
|
cache_control?: PrefixMessagesCacheControl$Outbound | undefined;
|
|
1318
2164
|
};
|
|
@@ -1324,7 +2170,10 @@ export const ToolMessage$outboundSchema: z.ZodType<
|
|
|
1324
2170
|
ToolMessage
|
|
1325
2171
|
> = z.object({
|
|
1326
2172
|
role: z.literal("tool"),
|
|
1327
|
-
content: z.union([
|
|
2173
|
+
content: z.union([
|
|
2174
|
+
z.string(),
|
|
2175
|
+
z.array(z.lazy(() => InvokeDeploymentRequest21$outboundSchema)),
|
|
2176
|
+
]),
|
|
1328
2177
|
toolCallId: z.string(),
|
|
1329
2178
|
cacheControl: z.lazy(() => PrefixMessagesCacheControl$outboundSchema)
|
|
1330
2179
|
.optional(),
|
|
@@ -1335,63 +2184,194 @@ export const ToolMessage$outboundSchema: z.ZodType<
|
|
|
1335
2184
|
});
|
|
1336
2185
|
});
|
|
1337
2186
|
|
|
1338
|
-
export function toolMessageToJSON(toolMessage: ToolMessage): string {
|
|
1339
|
-
return JSON.stringify(ToolMessage$outboundSchema.parse(toolMessage));
|
|
2187
|
+
export function toolMessageToJSON(toolMessage: ToolMessage): string {
|
|
2188
|
+
return JSON.stringify(ToolMessage$outboundSchema.parse(toolMessage));
|
|
2189
|
+
}
|
|
2190
|
+
export function toolMessageFromJSON(
|
|
2191
|
+
jsonString: string,
|
|
2192
|
+
): SafeParseResult<ToolMessage, SDKValidationError> {
|
|
2193
|
+
return safeParse(
|
|
2194
|
+
jsonString,
|
|
2195
|
+
(x) => ToolMessage$inboundSchema.parse(JSON.parse(x)),
|
|
2196
|
+
`Failed to parse 'ToolMessage' from JSON`,
|
|
2197
|
+
);
|
|
2198
|
+
}
|
|
2199
|
+
|
|
2200
|
+
/** @internal */
|
|
2201
|
+
export const InvokeDeploymentRequest2PrefixMessages4Type$inboundSchema:
|
|
2202
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessages4Type> = z
|
|
2203
|
+
.nativeEnum(InvokeDeploymentRequest2PrefixMessages4Type);
|
|
2204
|
+
/** @internal */
|
|
2205
|
+
export const InvokeDeploymentRequest2PrefixMessages4Type$outboundSchema:
|
|
2206
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessages4Type> =
|
|
2207
|
+
InvokeDeploymentRequest2PrefixMessages4Type$inboundSchema;
|
|
2208
|
+
|
|
2209
|
+
/** @internal */
|
|
2210
|
+
export const InvokeDeploymentRequest2PrefixMessagesTtl$inboundSchema:
|
|
2211
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessagesTtl> = z
|
|
2212
|
+
.nativeEnum(InvokeDeploymentRequest2PrefixMessagesTtl);
|
|
2213
|
+
/** @internal */
|
|
2214
|
+
export const InvokeDeploymentRequest2PrefixMessagesTtl$outboundSchema:
|
|
2215
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessagesTtl> =
|
|
2216
|
+
InvokeDeploymentRequest2PrefixMessagesTtl$inboundSchema;
|
|
2217
|
+
|
|
2218
|
+
/** @internal */
|
|
2219
|
+
export const InvokeDeploymentRequest2PrefixMessagesCacheControl$inboundSchema:
|
|
2220
|
+
z.ZodType<
|
|
2221
|
+
InvokeDeploymentRequest2PrefixMessagesCacheControl,
|
|
2222
|
+
z.ZodTypeDef,
|
|
2223
|
+
unknown
|
|
2224
|
+
> = z.object({
|
|
2225
|
+
type: InvokeDeploymentRequest2PrefixMessages4Type$inboundSchema,
|
|
2226
|
+
ttl: InvokeDeploymentRequest2PrefixMessagesTtl$inboundSchema.default("5m"),
|
|
2227
|
+
});
|
|
2228
|
+
/** @internal */
|
|
2229
|
+
export type InvokeDeploymentRequest2PrefixMessagesCacheControl$Outbound = {
|
|
2230
|
+
type: string;
|
|
2231
|
+
ttl: string;
|
|
2232
|
+
};
|
|
2233
|
+
|
|
2234
|
+
/** @internal */
|
|
2235
|
+
export const InvokeDeploymentRequest2PrefixMessagesCacheControl$outboundSchema:
|
|
2236
|
+
z.ZodType<
|
|
2237
|
+
InvokeDeploymentRequest2PrefixMessagesCacheControl$Outbound,
|
|
2238
|
+
z.ZodTypeDef,
|
|
2239
|
+
InvokeDeploymentRequest2PrefixMessagesCacheControl
|
|
2240
|
+
> = z.object({
|
|
2241
|
+
type: InvokeDeploymentRequest2PrefixMessages4Type$outboundSchema,
|
|
2242
|
+
ttl: InvokeDeploymentRequest2PrefixMessagesTtl$outboundSchema.default("5m"),
|
|
2243
|
+
});
|
|
2244
|
+
|
|
2245
|
+
export function invokeDeploymentRequest2PrefixMessagesCacheControlToJSON(
|
|
2246
|
+
invokeDeploymentRequest2PrefixMessagesCacheControl:
|
|
2247
|
+
InvokeDeploymentRequest2PrefixMessagesCacheControl,
|
|
2248
|
+
): string {
|
|
2249
|
+
return JSON.stringify(
|
|
2250
|
+
InvokeDeploymentRequest2PrefixMessagesCacheControl$outboundSchema.parse(
|
|
2251
|
+
invokeDeploymentRequest2PrefixMessagesCacheControl,
|
|
2252
|
+
),
|
|
2253
|
+
);
|
|
2254
|
+
}
|
|
2255
|
+
export function invokeDeploymentRequest2PrefixMessagesCacheControlFromJSON(
|
|
2256
|
+
jsonString: string,
|
|
2257
|
+
): SafeParseResult<
|
|
2258
|
+
InvokeDeploymentRequest2PrefixMessagesCacheControl,
|
|
2259
|
+
SDKValidationError
|
|
2260
|
+
> {
|
|
2261
|
+
return safeParse(
|
|
2262
|
+
jsonString,
|
|
2263
|
+
(x) =>
|
|
2264
|
+
InvokeDeploymentRequest2PrefixMessagesCacheControl$inboundSchema.parse(
|
|
2265
|
+
JSON.parse(x),
|
|
2266
|
+
),
|
|
2267
|
+
`Failed to parse 'InvokeDeploymentRequest2PrefixMessagesCacheControl' from JSON`,
|
|
2268
|
+
);
|
|
2269
|
+
}
|
|
2270
|
+
|
|
2271
|
+
/** @internal */
|
|
2272
|
+
export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
|
|
2273
|
+
.object({
|
|
2274
|
+
type: z.literal("text"),
|
|
2275
|
+
text: z.string(),
|
|
2276
|
+
cache_control: z.lazy(() =>
|
|
2277
|
+
InvokeDeploymentRequest2PrefixMessagesCacheControl$inboundSchema
|
|
2278
|
+
).optional(),
|
|
2279
|
+
}).transform((v) => {
|
|
2280
|
+
return remap$(v, {
|
|
2281
|
+
"cache_control": "cacheControl",
|
|
2282
|
+
});
|
|
2283
|
+
});
|
|
2284
|
+
/** @internal */
|
|
2285
|
+
export type Two1$Outbound = {
|
|
2286
|
+
type: "text";
|
|
2287
|
+
text: string;
|
|
2288
|
+
cache_control?:
|
|
2289
|
+
| InvokeDeploymentRequest2PrefixMessagesCacheControl$Outbound
|
|
2290
|
+
| undefined;
|
|
2291
|
+
};
|
|
2292
|
+
|
|
2293
|
+
/** @internal */
|
|
2294
|
+
export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
|
|
2295
|
+
z.object({
|
|
2296
|
+
type: z.literal("text"),
|
|
2297
|
+
text: z.string(),
|
|
2298
|
+
cacheControl: z.lazy(() =>
|
|
2299
|
+
InvokeDeploymentRequest2PrefixMessagesCacheControl$outboundSchema
|
|
2300
|
+
).optional(),
|
|
2301
|
+
}).transform((v) => {
|
|
2302
|
+
return remap$(v, {
|
|
2303
|
+
cacheControl: "cache_control",
|
|
2304
|
+
});
|
|
2305
|
+
});
|
|
2306
|
+
|
|
2307
|
+
export function two1ToJSON(two1: Two1): string {
|
|
2308
|
+
return JSON.stringify(Two1$outboundSchema.parse(two1));
|
|
1340
2309
|
}
|
|
1341
|
-
export function
|
|
2310
|
+
export function two1FromJSON(
|
|
1342
2311
|
jsonString: string,
|
|
1343
|
-
): SafeParseResult<
|
|
2312
|
+
): SafeParseResult<Two1, SDKValidationError> {
|
|
1344
2313
|
return safeParse(
|
|
1345
2314
|
jsonString,
|
|
1346
|
-
(x) =>
|
|
1347
|
-
`Failed to parse '
|
|
2315
|
+
(x) => Two1$inboundSchema.parse(JSON.parse(x)),
|
|
2316
|
+
`Failed to parse 'Two1' from JSON`,
|
|
1348
2317
|
);
|
|
1349
2318
|
}
|
|
1350
2319
|
|
|
1351
2320
|
/** @internal */
|
|
1352
|
-
export const
|
|
1353
|
-
|
|
1354
|
-
|
|
1355
|
-
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
z.
|
|
1359
|
-
|
|
1360
|
-
|
|
1361
|
-
|
|
1362
|
-
|
|
1363
|
-
]);
|
|
2321
|
+
export const InvokeDeploymentRequestContentPrefixMessages2$inboundSchema:
|
|
2322
|
+
z.ZodType<
|
|
2323
|
+
InvokeDeploymentRequestContentPrefixMessages2,
|
|
2324
|
+
z.ZodTypeDef,
|
|
2325
|
+
unknown
|
|
2326
|
+
> = z.union([
|
|
2327
|
+
z.lazy(() => Two1$inboundSchema),
|
|
2328
|
+
RefusalPartSchema$inboundSchema,
|
|
2329
|
+
ReasoningPartSchema$inboundSchema,
|
|
2330
|
+
RedactedReasoningPartSchema$inboundSchema,
|
|
2331
|
+
]);
|
|
1364
2332
|
/** @internal */
|
|
1365
|
-
export type
|
|
1366
|
-
|
|
|
2333
|
+
export type InvokeDeploymentRequestContentPrefixMessages2$Outbound =
|
|
2334
|
+
| Two1$Outbound
|
|
1367
2335
|
| RefusalPartSchema$Outbound
|
|
1368
2336
|
| ReasoningPartSchema$Outbound
|
|
1369
2337
|
| RedactedReasoningPartSchema$Outbound;
|
|
1370
2338
|
|
|
1371
2339
|
/** @internal */
|
|
1372
|
-
export const
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
|
|
1376
|
-
|
|
1377
|
-
|
|
1378
|
-
z.
|
|
1379
|
-
|
|
1380
|
-
|
|
1381
|
-
|
|
1382
|
-
|
|
1383
|
-
]);
|
|
2340
|
+
export const InvokeDeploymentRequestContentPrefixMessages2$outboundSchema:
|
|
2341
|
+
z.ZodType<
|
|
2342
|
+
InvokeDeploymentRequestContentPrefixMessages2$Outbound,
|
|
2343
|
+
z.ZodTypeDef,
|
|
2344
|
+
InvokeDeploymentRequestContentPrefixMessages2
|
|
2345
|
+
> = z.union([
|
|
2346
|
+
z.lazy(() => Two1$outboundSchema),
|
|
2347
|
+
RefusalPartSchema$outboundSchema,
|
|
2348
|
+
ReasoningPartSchema$outboundSchema,
|
|
2349
|
+
RedactedReasoningPartSchema$outboundSchema,
|
|
2350
|
+
]);
|
|
1384
2351
|
|
|
1385
|
-
export function
|
|
1386
|
-
|
|
2352
|
+
export function invokeDeploymentRequestContentPrefixMessages2ToJSON(
|
|
2353
|
+
invokeDeploymentRequestContentPrefixMessages2:
|
|
2354
|
+
InvokeDeploymentRequestContentPrefixMessages2,
|
|
2355
|
+
): string {
|
|
2356
|
+
return JSON.stringify(
|
|
2357
|
+
InvokeDeploymentRequestContentPrefixMessages2$outboundSchema.parse(
|
|
2358
|
+
invokeDeploymentRequestContentPrefixMessages2,
|
|
2359
|
+
),
|
|
2360
|
+
);
|
|
1387
2361
|
}
|
|
1388
|
-
export function
|
|
2362
|
+
export function invokeDeploymentRequestContentPrefixMessages2FromJSON(
|
|
1389
2363
|
jsonString: string,
|
|
1390
|
-
): SafeParseResult<
|
|
2364
|
+
): SafeParseResult<
|
|
2365
|
+
InvokeDeploymentRequestContentPrefixMessages2,
|
|
2366
|
+
SDKValidationError
|
|
2367
|
+
> {
|
|
1391
2368
|
return safeParse(
|
|
1392
2369
|
jsonString,
|
|
1393
|
-
(x) =>
|
|
1394
|
-
|
|
2370
|
+
(x) =>
|
|
2371
|
+
InvokeDeploymentRequestContentPrefixMessages2$inboundSchema.parse(
|
|
2372
|
+
JSON.parse(x),
|
|
2373
|
+
),
|
|
2374
|
+
`Failed to parse 'InvokeDeploymentRequestContentPrefixMessages2' from JSON`,
|
|
1395
2375
|
);
|
|
1396
2376
|
}
|
|
1397
2377
|
|
|
@@ -1403,22 +2383,18 @@ export const InvokeDeploymentRequestPrefixMessages4Content$inboundSchema:
|
|
|
1403
2383
|
unknown
|
|
1404
2384
|
> = z.union([
|
|
1405
2385
|
z.string(),
|
|
1406
|
-
z.array(
|
|
1407
|
-
z.
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
ReasoningPartSchema$inboundSchema,
|
|
1413
|
-
RedactedReasoningPartSchema$inboundSchema,
|
|
1414
|
-
]),
|
|
1415
|
-
),
|
|
2386
|
+
z.array(z.union([
|
|
2387
|
+
z.lazy(() => Two1$inboundSchema),
|
|
2388
|
+
RefusalPartSchema$inboundSchema,
|
|
2389
|
+
ReasoningPartSchema$inboundSchema,
|
|
2390
|
+
RedactedReasoningPartSchema$inboundSchema,
|
|
2391
|
+
])),
|
|
1416
2392
|
]);
|
|
1417
2393
|
/** @internal */
|
|
1418
2394
|
export type InvokeDeploymentRequestPrefixMessages4Content$Outbound =
|
|
1419
2395
|
| string
|
|
1420
2396
|
| Array<
|
|
1421
|
-
|
|
|
2397
|
+
| Two1$Outbound
|
|
1422
2398
|
| RefusalPartSchema$Outbound
|
|
1423
2399
|
| ReasoningPartSchema$Outbound
|
|
1424
2400
|
| RedactedReasoningPartSchema$Outbound
|
|
@@ -1432,16 +2408,12 @@ export const InvokeDeploymentRequestPrefixMessages4Content$outboundSchema:
|
|
|
1432
2408
|
InvokeDeploymentRequestPrefixMessages4Content
|
|
1433
2409
|
> = z.union([
|
|
1434
2410
|
z.string(),
|
|
1435
|
-
z.array(
|
|
1436
|
-
z.
|
|
1437
|
-
|
|
1438
|
-
|
|
1439
|
-
|
|
1440
|
-
|
|
1441
|
-
ReasoningPartSchema$outboundSchema,
|
|
1442
|
-
RedactedReasoningPartSchema$outboundSchema,
|
|
1443
|
-
]),
|
|
1444
|
-
),
|
|
2411
|
+
z.array(z.union([
|
|
2412
|
+
z.lazy(() => Two1$outboundSchema),
|
|
2413
|
+
RefusalPartSchema$outboundSchema,
|
|
2414
|
+
ReasoningPartSchema$outboundSchema,
|
|
2415
|
+
RedactedReasoningPartSchema$outboundSchema,
|
|
2416
|
+
])),
|
|
1445
2417
|
]);
|
|
1446
2418
|
|
|
1447
2419
|
export function invokeDeploymentRequestPrefixMessages4ContentToJSON(
|
|
@@ -1616,9 +2588,7 @@ export const AssistantMessage$inboundSchema: z.ZodType<
|
|
|
1616
2588
|
z.string(),
|
|
1617
2589
|
z.array(
|
|
1618
2590
|
z.union([
|
|
1619
|
-
|
|
1620
|
-
z.object({ type: z.literal("text") }),
|
|
1621
|
-
),
|
|
2591
|
+
z.lazy(() => Two1$inboundSchema),
|
|
1622
2592
|
RefusalPartSchema$inboundSchema,
|
|
1623
2593
|
ReasoningPartSchema$inboundSchema,
|
|
1624
2594
|
RedactedReasoningPartSchema$inboundSchema,
|
|
@@ -1641,7 +2611,7 @@ export type AssistantMessage$Outbound = {
|
|
|
1641
2611
|
content?:
|
|
1642
2612
|
| string
|
|
1643
2613
|
| Array<
|
|
1644
|
-
|
|
|
2614
|
+
| Two1$Outbound
|
|
1645
2615
|
| RefusalPartSchema$Outbound
|
|
1646
2616
|
| ReasoningPartSchema$Outbound
|
|
1647
2617
|
| RedactedReasoningPartSchema$Outbound
|
|
@@ -1666,9 +2636,7 @@ export const AssistantMessage$outboundSchema: z.ZodType<
|
|
|
1666
2636
|
z.string(),
|
|
1667
2637
|
z.array(
|
|
1668
2638
|
z.union([
|
|
1669
|
-
|
|
1670
|
-
z.object({ type: z.literal("text") }),
|
|
1671
|
-
),
|
|
2639
|
+
z.lazy(() => Two1$outboundSchema),
|
|
1672
2640
|
RefusalPartSchema$outboundSchema,
|
|
1673
2641
|
ReasoningPartSchema$outboundSchema,
|
|
1674
2642
|
RedactedReasoningPartSchema$outboundSchema,
|
|
@@ -1705,58 +2673,65 @@ export function assistantMessageFromJSON(
|
|
|
1705
2673
|
}
|
|
1706
2674
|
|
|
1707
2675
|
/** @internal */
|
|
1708
|
-
export const
|
|
1709
|
-
z.ZodNativeEnum<typeof
|
|
1710
|
-
.nativeEnum(
|
|
2676
|
+
export const InvokeDeploymentRequest2PrefixMessages3Type$inboundSchema:
|
|
2677
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessages3Type> = z
|
|
2678
|
+
.nativeEnum(InvokeDeploymentRequest2PrefixMessages3Type);
|
|
1711
2679
|
/** @internal */
|
|
1712
|
-
export const
|
|
1713
|
-
z.ZodNativeEnum<typeof
|
|
1714
|
-
|
|
2680
|
+
export const InvokeDeploymentRequest2PrefixMessages3Type$outboundSchema:
|
|
2681
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessages3Type> =
|
|
2682
|
+
InvokeDeploymentRequest2PrefixMessages3Type$inboundSchema;
|
|
1715
2683
|
|
|
1716
2684
|
/** @internal */
|
|
1717
|
-
export const
|
|
1718
|
-
|
|
2685
|
+
export const InvokeDeploymentRequest2Ttl$inboundSchema: z.ZodNativeEnum<
|
|
2686
|
+
typeof InvokeDeploymentRequest2Ttl
|
|
2687
|
+
> = z.nativeEnum(InvokeDeploymentRequest2Ttl);
|
|
1719
2688
|
/** @internal */
|
|
1720
|
-
export const
|
|
1721
|
-
|
|
2689
|
+
export const InvokeDeploymentRequest2Ttl$outboundSchema: z.ZodNativeEnum<
|
|
2690
|
+
typeof InvokeDeploymentRequest2Ttl
|
|
2691
|
+
> = InvokeDeploymentRequest2Ttl$inboundSchema;
|
|
1722
2692
|
|
|
1723
2693
|
/** @internal */
|
|
1724
|
-
export const
|
|
1725
|
-
|
|
2694
|
+
export const InvokeDeploymentRequest2CacheControl$inboundSchema: z.ZodType<
|
|
2695
|
+
InvokeDeploymentRequest2CacheControl,
|
|
1726
2696
|
z.ZodTypeDef,
|
|
1727
2697
|
unknown
|
|
1728
2698
|
> = z.object({
|
|
1729
|
-
type:
|
|
1730
|
-
ttl:
|
|
2699
|
+
type: InvokeDeploymentRequest2PrefixMessages3Type$inboundSchema,
|
|
2700
|
+
ttl: InvokeDeploymentRequest2Ttl$inboundSchema.default("5m"),
|
|
1731
2701
|
});
|
|
1732
2702
|
/** @internal */
|
|
1733
|
-
export type
|
|
2703
|
+
export type InvokeDeploymentRequest2CacheControl$Outbound = {
|
|
1734
2704
|
type: string;
|
|
1735
2705
|
ttl: string;
|
|
1736
2706
|
};
|
|
1737
2707
|
|
|
1738
2708
|
/** @internal */
|
|
1739
|
-
export const
|
|
1740
|
-
|
|
2709
|
+
export const InvokeDeploymentRequest2CacheControl$outboundSchema: z.ZodType<
|
|
2710
|
+
InvokeDeploymentRequest2CacheControl$Outbound,
|
|
1741
2711
|
z.ZodTypeDef,
|
|
1742
|
-
|
|
2712
|
+
InvokeDeploymentRequest2CacheControl
|
|
1743
2713
|
> = z.object({
|
|
1744
|
-
type:
|
|
1745
|
-
ttl:
|
|
2714
|
+
type: InvokeDeploymentRequest2PrefixMessages3Type$outboundSchema,
|
|
2715
|
+
ttl: InvokeDeploymentRequest2Ttl$outboundSchema.default("5m"),
|
|
1746
2716
|
});
|
|
1747
2717
|
|
|
1748
|
-
export function
|
|
1749
|
-
|
|
2718
|
+
export function invokeDeploymentRequest2CacheControlToJSON(
|
|
2719
|
+
invokeDeploymentRequest2CacheControl: InvokeDeploymentRequest2CacheControl,
|
|
1750
2720
|
): string {
|
|
1751
|
-
return JSON.stringify(
|
|
2721
|
+
return JSON.stringify(
|
|
2722
|
+
InvokeDeploymentRequest2CacheControl$outboundSchema.parse(
|
|
2723
|
+
invokeDeploymentRequest2CacheControl,
|
|
2724
|
+
),
|
|
2725
|
+
);
|
|
1752
2726
|
}
|
|
1753
|
-
export function
|
|
2727
|
+
export function invokeDeploymentRequest2CacheControlFromJSON(
|
|
1754
2728
|
jsonString: string,
|
|
1755
|
-
): SafeParseResult<
|
|
2729
|
+
): SafeParseResult<InvokeDeploymentRequest2CacheControl, SDKValidationError> {
|
|
1756
2730
|
return safeParse(
|
|
1757
2731
|
jsonString,
|
|
1758
|
-
(x) =>
|
|
1759
|
-
|
|
2732
|
+
(x) =>
|
|
2733
|
+
InvokeDeploymentRequest2CacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
2734
|
+
`Failed to parse 'InvokeDeploymentRequest2CacheControl' from JSON`,
|
|
1760
2735
|
);
|
|
1761
2736
|
}
|
|
1762
2737
|
|
|
@@ -1764,7 +2739,9 @@ export function twoCacheControlFromJSON(
|
|
|
1764
2739
|
export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
|
|
1765
2740
|
.object({
|
|
1766
2741
|
type: z.literal("file"),
|
|
1767
|
-
cache_control: z.lazy(() =>
|
|
2742
|
+
cache_control: z.lazy(() =>
|
|
2743
|
+
InvokeDeploymentRequest2CacheControl$inboundSchema
|
|
2744
|
+
).optional(),
|
|
1768
2745
|
file: FileContentPartSchema$inboundSchema,
|
|
1769
2746
|
}).transform((v) => {
|
|
1770
2747
|
return remap$(v, {
|
|
@@ -1774,7 +2751,7 @@ export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
|
|
|
1774
2751
|
/** @internal */
|
|
1775
2752
|
export type Four$Outbound = {
|
|
1776
2753
|
type: "file";
|
|
1777
|
-
cache_control?:
|
|
2754
|
+
cache_control?: InvokeDeploymentRequest2CacheControl$Outbound | undefined;
|
|
1778
2755
|
file: FileContentPartSchema$Outbound;
|
|
1779
2756
|
};
|
|
1780
2757
|
|
|
@@ -1782,7 +2759,9 @@ export type Four$Outbound = {
|
|
|
1782
2759
|
export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
|
|
1783
2760
|
z.object({
|
|
1784
2761
|
type: z.literal("file"),
|
|
1785
|
-
cacheControl: z.lazy(() =>
|
|
2762
|
+
cacheControl: z.lazy(() =>
|
|
2763
|
+
InvokeDeploymentRequest2CacheControl$outboundSchema
|
|
2764
|
+
).optional(),
|
|
1786
2765
|
file: FileContentPartSchema$outboundSchema,
|
|
1787
2766
|
}).transform((v) => {
|
|
1788
2767
|
return remap$(v, {
|
|
@@ -1804,44 +2783,169 @@ export function fourFromJSON(
|
|
|
1804
2783
|
}
|
|
1805
2784
|
|
|
1806
2785
|
/** @internal */
|
|
1807
|
-
export const
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
|
|
2786
|
+
export const InvokeDeploymentRequest2PrefixMessages3ContentType$inboundSchema:
|
|
2787
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessages3ContentType> = z
|
|
2788
|
+
.nativeEnum(InvokeDeploymentRequest2PrefixMessages3ContentType);
|
|
2789
|
+
/** @internal */
|
|
2790
|
+
export const InvokeDeploymentRequest2PrefixMessages3ContentType$outboundSchema:
|
|
2791
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2PrefixMessages3ContentType> =
|
|
2792
|
+
InvokeDeploymentRequest2PrefixMessages3ContentType$inboundSchema;
|
|
2793
|
+
|
|
2794
|
+
/** @internal */
|
|
2795
|
+
export const TwoTtl$inboundSchema: z.ZodNativeEnum<typeof TwoTtl> = z
|
|
2796
|
+
.nativeEnum(TwoTtl);
|
|
2797
|
+
/** @internal */
|
|
2798
|
+
export const TwoTtl$outboundSchema: z.ZodNativeEnum<typeof TwoTtl> =
|
|
2799
|
+
TwoTtl$inboundSchema;
|
|
2800
|
+
|
|
2801
|
+
/** @internal */
|
|
2802
|
+
export const TwoCacheControl$inboundSchema: z.ZodType<
|
|
2803
|
+
TwoCacheControl,
|
|
2804
|
+
z.ZodTypeDef,
|
|
2805
|
+
unknown
|
|
2806
|
+
> = z.object({
|
|
2807
|
+
type: InvokeDeploymentRequest2PrefixMessages3ContentType$inboundSchema,
|
|
2808
|
+
ttl: TwoTtl$inboundSchema.default("5m"),
|
|
2809
|
+
});
|
|
2810
|
+
/** @internal */
|
|
2811
|
+
export type TwoCacheControl$Outbound = {
|
|
2812
|
+
type: string;
|
|
2813
|
+
ttl: string;
|
|
2814
|
+
};
|
|
2815
|
+
|
|
2816
|
+
/** @internal */
|
|
2817
|
+
export const TwoCacheControl$outboundSchema: z.ZodType<
|
|
2818
|
+
TwoCacheControl$Outbound,
|
|
2819
|
+
z.ZodTypeDef,
|
|
2820
|
+
TwoCacheControl
|
|
2821
|
+
> = z.object({
|
|
2822
|
+
type: InvokeDeploymentRequest2PrefixMessages3ContentType$outboundSchema,
|
|
2823
|
+
ttl: TwoTtl$outboundSchema.default("5m"),
|
|
2824
|
+
});
|
|
2825
|
+
|
|
2826
|
+
export function twoCacheControlToJSON(
|
|
2827
|
+
twoCacheControl: TwoCacheControl,
|
|
2828
|
+
): string {
|
|
2829
|
+
return JSON.stringify(TwoCacheControl$outboundSchema.parse(twoCacheControl));
|
|
2830
|
+
}
|
|
2831
|
+
export function twoCacheControlFromJSON(
|
|
2832
|
+
jsonString: string,
|
|
2833
|
+
): SafeParseResult<TwoCacheControl, SDKValidationError> {
|
|
2834
|
+
return safeParse(
|
|
2835
|
+
jsonString,
|
|
2836
|
+
(x) => TwoCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
2837
|
+
`Failed to parse 'TwoCacheControl' from JSON`,
|
|
2838
|
+
);
|
|
2839
|
+
}
|
|
2840
|
+
|
|
2841
|
+
/** @internal */
|
|
2842
|
+
export const InvokeDeploymentRequest2PrefixMessages1$inboundSchema: z.ZodType<
|
|
2843
|
+
InvokeDeploymentRequest2PrefixMessages1,
|
|
2844
|
+
z.ZodTypeDef,
|
|
2845
|
+
unknown
|
|
2846
|
+
> = z.object({
|
|
2847
|
+
type: z.literal("text"),
|
|
2848
|
+
text: z.string(),
|
|
2849
|
+
cache_control: z.lazy(() => TwoCacheControl$inboundSchema).optional(),
|
|
2850
|
+
}).transform((v) => {
|
|
2851
|
+
return remap$(v, {
|
|
2852
|
+
"cache_control": "cacheControl",
|
|
2853
|
+
});
|
|
2854
|
+
});
|
|
2855
|
+
/** @internal */
|
|
2856
|
+
export type InvokeDeploymentRequest2PrefixMessages1$Outbound = {
|
|
2857
|
+
type: "text";
|
|
2858
|
+
text: string;
|
|
2859
|
+
cache_control?: TwoCacheControl$Outbound | undefined;
|
|
2860
|
+
};
|
|
2861
|
+
|
|
2862
|
+
/** @internal */
|
|
2863
|
+
export const InvokeDeploymentRequest2PrefixMessages1$outboundSchema: z.ZodType<
|
|
2864
|
+
InvokeDeploymentRequest2PrefixMessages1$Outbound,
|
|
2865
|
+
z.ZodTypeDef,
|
|
2866
|
+
InvokeDeploymentRequest2PrefixMessages1
|
|
2867
|
+
> = z.object({
|
|
2868
|
+
type: z.literal("text"),
|
|
2869
|
+
text: z.string(),
|
|
2870
|
+
cacheControl: z.lazy(() => TwoCacheControl$outboundSchema).optional(),
|
|
2871
|
+
}).transform((v) => {
|
|
2872
|
+
return remap$(v, {
|
|
2873
|
+
cacheControl: "cache_control",
|
|
2874
|
+
});
|
|
2875
|
+
});
|
|
2876
|
+
|
|
2877
|
+
export function invokeDeploymentRequest2PrefixMessages1ToJSON(
|
|
2878
|
+
invokeDeploymentRequest2PrefixMessages1:
|
|
2879
|
+
InvokeDeploymentRequest2PrefixMessages1,
|
|
2880
|
+
): string {
|
|
2881
|
+
return JSON.stringify(
|
|
2882
|
+
InvokeDeploymentRequest2PrefixMessages1$outboundSchema.parse(
|
|
2883
|
+
invokeDeploymentRequest2PrefixMessages1,
|
|
1811
2884
|
),
|
|
1812
|
-
|
|
1813
|
-
|
|
1814
|
-
|
|
1815
|
-
|
|
1816
|
-
)
|
|
2885
|
+
);
|
|
2886
|
+
}
|
|
2887
|
+
export function invokeDeploymentRequest2PrefixMessages1FromJSON(
|
|
2888
|
+
jsonString: string,
|
|
2889
|
+
): SafeParseResult<
|
|
2890
|
+
InvokeDeploymentRequest2PrefixMessages1,
|
|
2891
|
+
SDKValidationError
|
|
2892
|
+
> {
|
|
2893
|
+
return safeParse(
|
|
2894
|
+
jsonString,
|
|
2895
|
+
(x) =>
|
|
2896
|
+
InvokeDeploymentRequest2PrefixMessages1$inboundSchema.parse(
|
|
2897
|
+
JSON.parse(x),
|
|
2898
|
+
),
|
|
2899
|
+
`Failed to parse 'InvokeDeploymentRequest2PrefixMessages1' from JSON`,
|
|
2900
|
+
);
|
|
2901
|
+
}
|
|
2902
|
+
|
|
2903
|
+
/** @internal */
|
|
2904
|
+
export const InvokeDeploymentRequestContent2$inboundSchema: z.ZodType<
|
|
2905
|
+
InvokeDeploymentRequestContent2,
|
|
2906
|
+
z.ZodTypeDef,
|
|
2907
|
+
unknown
|
|
2908
|
+
> = z.union([
|
|
2909
|
+
z.lazy(() => InvokeDeploymentRequest2PrefixMessages1$inboundSchema),
|
|
2910
|
+
ImageContentPartSchema$inboundSchema,
|
|
2911
|
+
AudioContentPartSchema$inboundSchema,
|
|
2912
|
+
z.lazy(() => Four$inboundSchema),
|
|
2913
|
+
]);
|
|
1817
2914
|
/** @internal */
|
|
1818
|
-
export type
|
|
1819
|
-
|
|
|
2915
|
+
export type InvokeDeploymentRequestContent2$Outbound =
|
|
2916
|
+
| InvokeDeploymentRequest2PrefixMessages1$Outbound
|
|
1820
2917
|
| ImageContentPartSchema$Outbound
|
|
1821
2918
|
| AudioContentPartSchema$Outbound
|
|
1822
2919
|
| Four$Outbound;
|
|
1823
2920
|
|
|
1824
2921
|
/** @internal */
|
|
1825
|
-
export const
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1829
|
-
|
|
1830
|
-
|
|
1831
|
-
|
|
1832
|
-
|
|
1833
|
-
|
|
2922
|
+
export const InvokeDeploymentRequestContent2$outboundSchema: z.ZodType<
|
|
2923
|
+
InvokeDeploymentRequestContent2$Outbound,
|
|
2924
|
+
z.ZodTypeDef,
|
|
2925
|
+
InvokeDeploymentRequestContent2
|
|
2926
|
+
> = z.union([
|
|
2927
|
+
z.lazy(() => InvokeDeploymentRequest2PrefixMessages1$outboundSchema),
|
|
2928
|
+
ImageContentPartSchema$outboundSchema,
|
|
2929
|
+
AudioContentPartSchema$outboundSchema,
|
|
2930
|
+
z.lazy(() => Four$outboundSchema),
|
|
2931
|
+
]);
|
|
1834
2932
|
|
|
1835
|
-
export function
|
|
1836
|
-
|
|
2933
|
+
export function invokeDeploymentRequestContent2ToJSON(
|
|
2934
|
+
invokeDeploymentRequestContent2: InvokeDeploymentRequestContent2,
|
|
2935
|
+
): string {
|
|
2936
|
+
return JSON.stringify(
|
|
2937
|
+
InvokeDeploymentRequestContent2$outboundSchema.parse(
|
|
2938
|
+
invokeDeploymentRequestContent2,
|
|
2939
|
+
),
|
|
2940
|
+
);
|
|
1837
2941
|
}
|
|
1838
|
-
export function
|
|
2942
|
+
export function invokeDeploymentRequestContent2FromJSON(
|
|
1839
2943
|
jsonString: string,
|
|
1840
|
-
): SafeParseResult<
|
|
2944
|
+
): SafeParseResult<InvokeDeploymentRequestContent2, SDKValidationError> {
|
|
1841
2945
|
return safeParse(
|
|
1842
2946
|
jsonString,
|
|
1843
|
-
(x) =>
|
|
1844
|
-
`Failed to parse '
|
|
2947
|
+
(x) => InvokeDeploymentRequestContent2$inboundSchema.parse(JSON.parse(x)),
|
|
2948
|
+
`Failed to parse 'InvokeDeploymentRequestContent2' from JSON`,
|
|
1845
2949
|
);
|
|
1846
2950
|
}
|
|
1847
2951
|
|
|
@@ -1853,22 +2957,18 @@ export const InvokeDeploymentRequestPrefixMessagesContent$inboundSchema:
|
|
|
1853
2957
|
unknown
|
|
1854
2958
|
> = z.union([
|
|
1855
2959
|
z.string(),
|
|
1856
|
-
z.array(
|
|
1857
|
-
z.
|
|
1858
|
-
|
|
1859
|
-
|
|
1860
|
-
|
|
1861
|
-
|
|
1862
|
-
AudioContentPartSchema$inboundSchema,
|
|
1863
|
-
z.lazy(() => Four$inboundSchema),
|
|
1864
|
-
]),
|
|
1865
|
-
),
|
|
2960
|
+
z.array(z.union([
|
|
2961
|
+
z.lazy(() => InvokeDeploymentRequest2PrefixMessages1$inboundSchema),
|
|
2962
|
+
ImageContentPartSchema$inboundSchema,
|
|
2963
|
+
AudioContentPartSchema$inboundSchema,
|
|
2964
|
+
z.lazy(() => Four$inboundSchema),
|
|
2965
|
+
])),
|
|
1866
2966
|
]);
|
|
1867
2967
|
/** @internal */
|
|
1868
2968
|
export type InvokeDeploymentRequestPrefixMessagesContent$Outbound =
|
|
1869
2969
|
| string
|
|
1870
2970
|
| Array<
|
|
1871
|
-
|
|
|
2971
|
+
| InvokeDeploymentRequest2PrefixMessages1$Outbound
|
|
1872
2972
|
| ImageContentPartSchema$Outbound
|
|
1873
2973
|
| AudioContentPartSchema$Outbound
|
|
1874
2974
|
| Four$Outbound
|
|
@@ -1882,16 +2982,12 @@ export const InvokeDeploymentRequestPrefixMessagesContent$outboundSchema:
|
|
|
1882
2982
|
InvokeDeploymentRequestPrefixMessagesContent
|
|
1883
2983
|
> = z.union([
|
|
1884
2984
|
z.string(),
|
|
1885
|
-
z.array(
|
|
1886
|
-
z.
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
AudioContentPartSchema$outboundSchema,
|
|
1892
|
-
z.lazy(() => Four$outboundSchema),
|
|
1893
|
-
]),
|
|
1894
|
-
),
|
|
2985
|
+
z.array(z.union([
|
|
2986
|
+
z.lazy(() => InvokeDeploymentRequest2PrefixMessages1$outboundSchema),
|
|
2987
|
+
ImageContentPartSchema$outboundSchema,
|
|
2988
|
+
AudioContentPartSchema$outboundSchema,
|
|
2989
|
+
z.lazy(() => Four$outboundSchema),
|
|
2990
|
+
])),
|
|
1895
2991
|
]);
|
|
1896
2992
|
|
|
1897
2993
|
export function invokeDeploymentRequestPrefixMessagesContentToJSON(
|
|
@@ -1930,16 +3026,12 @@ export const UserMessage$inboundSchema: z.ZodType<
|
|
|
1930
3026
|
name: z.string().optional(),
|
|
1931
3027
|
content: z.union([
|
|
1932
3028
|
z.string(),
|
|
1933
|
-
z.array(
|
|
1934
|
-
z.
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
AudioContentPartSchema$inboundSchema,
|
|
1940
|
-
z.lazy(() => Four$inboundSchema),
|
|
1941
|
-
]),
|
|
1942
|
-
),
|
|
3029
|
+
z.array(z.union([
|
|
3030
|
+
z.lazy(() => InvokeDeploymentRequest2PrefixMessages1$inboundSchema),
|
|
3031
|
+
ImageContentPartSchema$inboundSchema,
|
|
3032
|
+
AudioContentPartSchema$inboundSchema,
|
|
3033
|
+
z.lazy(() => Four$inboundSchema),
|
|
3034
|
+
])),
|
|
1943
3035
|
]),
|
|
1944
3036
|
});
|
|
1945
3037
|
/** @internal */
|
|
@@ -1949,7 +3041,7 @@ export type UserMessage$Outbound = {
|
|
|
1949
3041
|
content:
|
|
1950
3042
|
| string
|
|
1951
3043
|
| Array<
|
|
1952
|
-
|
|
|
3044
|
+
| InvokeDeploymentRequest2PrefixMessages1$Outbound
|
|
1953
3045
|
| ImageContentPartSchema$Outbound
|
|
1954
3046
|
| AudioContentPartSchema$Outbound
|
|
1955
3047
|
| Four$Outbound
|
|
@@ -1966,16 +3058,12 @@ export const UserMessage$outboundSchema: z.ZodType<
|
|
|
1966
3058
|
name: z.string().optional(),
|
|
1967
3059
|
content: z.union([
|
|
1968
3060
|
z.string(),
|
|
1969
|
-
z.array(
|
|
1970
|
-
z.
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
AudioContentPartSchema$outboundSchema,
|
|
1976
|
-
z.lazy(() => Four$outboundSchema),
|
|
1977
|
-
]),
|
|
1978
|
-
),
|
|
3061
|
+
z.array(z.union([
|
|
3062
|
+
z.lazy(() => InvokeDeploymentRequest2PrefixMessages1$outboundSchema),
|
|
3063
|
+
ImageContentPartSchema$outboundSchema,
|
|
3064
|
+
AudioContentPartSchema$outboundSchema,
|
|
3065
|
+
z.lazy(() => Four$outboundSchema),
|
|
3066
|
+
])),
|
|
1979
3067
|
]),
|
|
1980
3068
|
});
|
|
1981
3069
|
|
|
@@ -1992,23 +3080,135 @@ export function userMessageFromJSON(
|
|
|
1992
3080
|
);
|
|
1993
3081
|
}
|
|
1994
3082
|
|
|
3083
|
+
/** @internal */
|
|
3084
|
+
export const ContentType$inboundSchema: z.ZodNativeEnum<typeof ContentType> = z
|
|
3085
|
+
.nativeEnum(ContentType);
|
|
3086
|
+
/** @internal */
|
|
3087
|
+
export const ContentType$outboundSchema: z.ZodNativeEnum<typeof ContentType> =
|
|
3088
|
+
ContentType$inboundSchema;
|
|
3089
|
+
|
|
3090
|
+
/** @internal */
|
|
3091
|
+
export const InvokeDeploymentRequestContentPrefixMessagesType$inboundSchema:
|
|
3092
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentPrefixMessagesType> = z
|
|
3093
|
+
.nativeEnum(InvokeDeploymentRequestContentPrefixMessagesType);
|
|
3094
|
+
/** @internal */
|
|
3095
|
+
export const InvokeDeploymentRequestContentPrefixMessagesType$outboundSchema:
|
|
3096
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentPrefixMessagesType> =
|
|
3097
|
+
InvokeDeploymentRequestContentPrefixMessagesType$inboundSchema;
|
|
3098
|
+
|
|
3099
|
+
/** @internal */
|
|
3100
|
+
export const ContentTtl$inboundSchema: z.ZodNativeEnum<typeof ContentTtl> = z
|
|
3101
|
+
.nativeEnum(ContentTtl);
|
|
3102
|
+
/** @internal */
|
|
3103
|
+
export const ContentTtl$outboundSchema: z.ZodNativeEnum<typeof ContentTtl> =
|
|
3104
|
+
ContentTtl$inboundSchema;
|
|
3105
|
+
|
|
3106
|
+
/** @internal */
|
|
3107
|
+
export const ContentCacheControl$inboundSchema: z.ZodType<
|
|
3108
|
+
ContentCacheControl,
|
|
3109
|
+
z.ZodTypeDef,
|
|
3110
|
+
unknown
|
|
3111
|
+
> = z.object({
|
|
3112
|
+
type: InvokeDeploymentRequestContentPrefixMessagesType$inboundSchema,
|
|
3113
|
+
ttl: ContentTtl$inboundSchema.default("5m"),
|
|
3114
|
+
});
|
|
3115
|
+
/** @internal */
|
|
3116
|
+
export type ContentCacheControl$Outbound = {
|
|
3117
|
+
type: string;
|
|
3118
|
+
ttl: string;
|
|
3119
|
+
};
|
|
3120
|
+
|
|
3121
|
+
/** @internal */
|
|
3122
|
+
export const ContentCacheControl$outboundSchema: z.ZodType<
|
|
3123
|
+
ContentCacheControl$Outbound,
|
|
3124
|
+
z.ZodTypeDef,
|
|
3125
|
+
ContentCacheControl
|
|
3126
|
+
> = z.object({
|
|
3127
|
+
type: InvokeDeploymentRequestContentPrefixMessagesType$outboundSchema,
|
|
3128
|
+
ttl: ContentTtl$outboundSchema.default("5m"),
|
|
3129
|
+
});
|
|
3130
|
+
|
|
3131
|
+
export function contentCacheControlToJSON(
|
|
3132
|
+
contentCacheControl: ContentCacheControl,
|
|
3133
|
+
): string {
|
|
3134
|
+
return JSON.stringify(
|
|
3135
|
+
ContentCacheControl$outboundSchema.parse(contentCacheControl),
|
|
3136
|
+
);
|
|
3137
|
+
}
|
|
3138
|
+
export function contentCacheControlFromJSON(
|
|
3139
|
+
jsonString: string,
|
|
3140
|
+
): SafeParseResult<ContentCacheControl, SDKValidationError> {
|
|
3141
|
+
return safeParse(
|
|
3142
|
+
jsonString,
|
|
3143
|
+
(x) => ContentCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
3144
|
+
`Failed to parse 'ContentCacheControl' from JSON`,
|
|
3145
|
+
);
|
|
3146
|
+
}
|
|
3147
|
+
|
|
3148
|
+
/** @internal */
|
|
3149
|
+
export const Content2$inboundSchema: z.ZodType<
|
|
3150
|
+
Content2,
|
|
3151
|
+
z.ZodTypeDef,
|
|
3152
|
+
unknown
|
|
3153
|
+
> = z.object({
|
|
3154
|
+
type: ContentType$inboundSchema,
|
|
3155
|
+
text: z.string(),
|
|
3156
|
+
cache_control: z.lazy(() => ContentCacheControl$inboundSchema).optional(),
|
|
3157
|
+
}).transform((v) => {
|
|
3158
|
+
return remap$(v, {
|
|
3159
|
+
"cache_control": "cacheControl",
|
|
3160
|
+
});
|
|
3161
|
+
});
|
|
3162
|
+
/** @internal */
|
|
3163
|
+
export type Content2$Outbound = {
|
|
3164
|
+
type: string;
|
|
3165
|
+
text: string;
|
|
3166
|
+
cache_control?: ContentCacheControl$Outbound | undefined;
|
|
3167
|
+
};
|
|
3168
|
+
|
|
3169
|
+
/** @internal */
|
|
3170
|
+
export const Content2$outboundSchema: z.ZodType<
|
|
3171
|
+
Content2$Outbound,
|
|
3172
|
+
z.ZodTypeDef,
|
|
3173
|
+
Content2
|
|
3174
|
+
> = z.object({
|
|
3175
|
+
type: ContentType$outboundSchema,
|
|
3176
|
+
text: z.string(),
|
|
3177
|
+
cacheControl: z.lazy(() => ContentCacheControl$outboundSchema).optional(),
|
|
3178
|
+
}).transform((v) => {
|
|
3179
|
+
return remap$(v, {
|
|
3180
|
+
cacheControl: "cache_control",
|
|
3181
|
+
});
|
|
3182
|
+
});
|
|
3183
|
+
|
|
3184
|
+
export function content2ToJSON(content2: Content2): string {
|
|
3185
|
+
return JSON.stringify(Content2$outboundSchema.parse(content2));
|
|
3186
|
+
}
|
|
3187
|
+
export function content2FromJSON(
|
|
3188
|
+
jsonString: string,
|
|
3189
|
+
): SafeParseResult<Content2, SDKValidationError> {
|
|
3190
|
+
return safeParse(
|
|
3191
|
+
jsonString,
|
|
3192
|
+
(x) => Content2$inboundSchema.parse(JSON.parse(x)),
|
|
3193
|
+
`Failed to parse 'Content2' from JSON`,
|
|
3194
|
+
);
|
|
3195
|
+
}
|
|
3196
|
+
|
|
1995
3197
|
/** @internal */
|
|
1996
3198
|
export const PrefixMessagesContent$inboundSchema: z.ZodType<
|
|
1997
3199
|
PrefixMessagesContent,
|
|
1998
3200
|
z.ZodTypeDef,
|
|
1999
3201
|
unknown
|
|
2000
|
-
> = z.union([z.string(), z.array(
|
|
3202
|
+
> = z.union([z.string(), z.array(z.lazy(() => Content2$inboundSchema))]);
|
|
2001
3203
|
/** @internal */
|
|
2002
|
-
export type PrefixMessagesContent$Outbound =
|
|
2003
|
-
| string
|
|
2004
|
-
| Array<TextContentPartSchema$Outbound>;
|
|
3204
|
+
export type PrefixMessagesContent$Outbound = string | Array<Content2$Outbound>;
|
|
2005
3205
|
|
|
2006
3206
|
/** @internal */
|
|
2007
3207
|
export const PrefixMessagesContent$outboundSchema: z.ZodType<
|
|
2008
3208
|
PrefixMessagesContent$Outbound,
|
|
2009
3209
|
z.ZodTypeDef,
|
|
2010
3210
|
PrefixMessagesContent
|
|
2011
|
-
> = z.union([z.string(), z.array(
|
|
3211
|
+
> = z.union([z.string(), z.array(z.lazy(() => Content2$outboundSchema))]);
|
|
2012
3212
|
|
|
2013
3213
|
export function prefixMessagesContentToJSON(
|
|
2014
3214
|
prefixMessagesContent: PrefixMessagesContent,
|
|
@@ -2034,13 +3234,13 @@ export const DeveloperMessage$inboundSchema: z.ZodType<
|
|
|
2034
3234
|
unknown
|
|
2035
3235
|
> = z.object({
|
|
2036
3236
|
role: z.literal("developer"),
|
|
2037
|
-
content: z.union([z.string(), z.array(
|
|
3237
|
+
content: z.union([z.string(), z.array(z.lazy(() => Content2$inboundSchema))]),
|
|
2038
3238
|
name: z.string().optional(),
|
|
2039
3239
|
});
|
|
2040
3240
|
/** @internal */
|
|
2041
3241
|
export type DeveloperMessage$Outbound = {
|
|
2042
3242
|
role: "developer";
|
|
2043
|
-
content: string | Array<
|
|
3243
|
+
content: string | Array<Content2$Outbound>;
|
|
2044
3244
|
name?: string | undefined;
|
|
2045
3245
|
};
|
|
2046
3246
|
|
|
@@ -2051,7 +3251,10 @@ export const DeveloperMessage$outboundSchema: z.ZodType<
|
|
|
2051
3251
|
DeveloperMessage
|
|
2052
3252
|
> = z.object({
|
|
2053
3253
|
role: z.literal("developer"),
|
|
2054
|
-
content: z.union([
|
|
3254
|
+
content: z.union([
|
|
3255
|
+
z.string(),
|
|
3256
|
+
z.array(z.lazy(() => Content2$outboundSchema)),
|
|
3257
|
+
]),
|
|
2055
3258
|
name: z.string().optional(),
|
|
2056
3259
|
});
|
|
2057
3260
|
|
|
@@ -2072,18 +3275,144 @@ export function developerMessageFromJSON(
|
|
|
2072
3275
|
);
|
|
2073
3276
|
}
|
|
2074
3277
|
|
|
3278
|
+
/** @internal */
|
|
3279
|
+
export const InvokeDeploymentRequestContentType$inboundSchema: z.ZodNativeEnum<
|
|
3280
|
+
typeof InvokeDeploymentRequestContentType
|
|
3281
|
+
> = z.nativeEnum(InvokeDeploymentRequestContentType);
|
|
3282
|
+
/** @internal */
|
|
3283
|
+
export const InvokeDeploymentRequestContentType$outboundSchema: z.ZodNativeEnum<
|
|
3284
|
+
typeof InvokeDeploymentRequestContentType
|
|
3285
|
+
> = InvokeDeploymentRequestContentType$inboundSchema;
|
|
3286
|
+
|
|
3287
|
+
/** @internal */
|
|
3288
|
+
export const InvokeDeploymentRequestContentPrefixMessages1Type$inboundSchema:
|
|
3289
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentPrefixMessages1Type> = z
|
|
3290
|
+
.nativeEnum(InvokeDeploymentRequestContentPrefixMessages1Type);
|
|
3291
|
+
/** @internal */
|
|
3292
|
+
export const InvokeDeploymentRequestContentPrefixMessages1Type$outboundSchema:
|
|
3293
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentPrefixMessages1Type> =
|
|
3294
|
+
InvokeDeploymentRequestContentPrefixMessages1Type$inboundSchema;
|
|
3295
|
+
|
|
3296
|
+
/** @internal */
|
|
3297
|
+
export const InvokeDeploymentRequestContentTtl$inboundSchema: z.ZodNativeEnum<
|
|
3298
|
+
typeof InvokeDeploymentRequestContentTtl
|
|
3299
|
+
> = z.nativeEnum(InvokeDeploymentRequestContentTtl);
|
|
3300
|
+
/** @internal */
|
|
3301
|
+
export const InvokeDeploymentRequestContentTtl$outboundSchema: z.ZodNativeEnum<
|
|
3302
|
+
typeof InvokeDeploymentRequestContentTtl
|
|
3303
|
+
> = InvokeDeploymentRequestContentTtl$inboundSchema;
|
|
3304
|
+
|
|
3305
|
+
/** @internal */
|
|
3306
|
+
export const InvokeDeploymentRequestContentCacheControl$inboundSchema:
|
|
3307
|
+
z.ZodType<InvokeDeploymentRequestContentCacheControl, z.ZodTypeDef, unknown> =
|
|
3308
|
+
z.object({
|
|
3309
|
+
type: InvokeDeploymentRequestContentPrefixMessages1Type$inboundSchema,
|
|
3310
|
+
ttl: InvokeDeploymentRequestContentTtl$inboundSchema.default("5m"),
|
|
3311
|
+
});
|
|
3312
|
+
/** @internal */
|
|
3313
|
+
export type InvokeDeploymentRequestContentCacheControl$Outbound = {
|
|
3314
|
+
type: string;
|
|
3315
|
+
ttl: string;
|
|
3316
|
+
};
|
|
3317
|
+
|
|
3318
|
+
/** @internal */
|
|
3319
|
+
export const InvokeDeploymentRequestContentCacheControl$outboundSchema:
|
|
3320
|
+
z.ZodType<
|
|
3321
|
+
InvokeDeploymentRequestContentCacheControl$Outbound,
|
|
3322
|
+
z.ZodTypeDef,
|
|
3323
|
+
InvokeDeploymentRequestContentCacheControl
|
|
3324
|
+
> = z.object({
|
|
3325
|
+
type: InvokeDeploymentRequestContentPrefixMessages1Type$outboundSchema,
|
|
3326
|
+
ttl: InvokeDeploymentRequestContentTtl$outboundSchema.default("5m"),
|
|
3327
|
+
});
|
|
3328
|
+
|
|
3329
|
+
export function invokeDeploymentRequestContentCacheControlToJSON(
|
|
3330
|
+
invokeDeploymentRequestContentCacheControl:
|
|
3331
|
+
InvokeDeploymentRequestContentCacheControl,
|
|
3332
|
+
): string {
|
|
3333
|
+
return JSON.stringify(
|
|
3334
|
+
InvokeDeploymentRequestContentCacheControl$outboundSchema.parse(
|
|
3335
|
+
invokeDeploymentRequestContentCacheControl,
|
|
3336
|
+
),
|
|
3337
|
+
);
|
|
3338
|
+
}
|
|
3339
|
+
export function invokeDeploymentRequestContentCacheControlFromJSON(
|
|
3340
|
+
jsonString: string,
|
|
3341
|
+
): SafeParseResult<
|
|
3342
|
+
InvokeDeploymentRequestContentCacheControl,
|
|
3343
|
+
SDKValidationError
|
|
3344
|
+
> {
|
|
3345
|
+
return safeParse(
|
|
3346
|
+
jsonString,
|
|
3347
|
+
(x) =>
|
|
3348
|
+
InvokeDeploymentRequestContentCacheControl$inboundSchema.parse(
|
|
3349
|
+
JSON.parse(x),
|
|
3350
|
+
),
|
|
3351
|
+
`Failed to parse 'InvokeDeploymentRequestContentCacheControl' from JSON`,
|
|
3352
|
+
);
|
|
3353
|
+
}
|
|
3354
|
+
|
|
3355
|
+
/** @internal */
|
|
3356
|
+
export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z
|
|
3357
|
+
.object({
|
|
3358
|
+
type: InvokeDeploymentRequestContentType$inboundSchema,
|
|
3359
|
+
text: z.string(),
|
|
3360
|
+
cache_control: z.lazy(() =>
|
|
3361
|
+
InvokeDeploymentRequestContentCacheControl$inboundSchema
|
|
3362
|
+
).optional(),
|
|
3363
|
+
}).transform((v) => {
|
|
3364
|
+
return remap$(v, {
|
|
3365
|
+
"cache_control": "cacheControl",
|
|
3366
|
+
});
|
|
3367
|
+
});
|
|
3368
|
+
/** @internal */
|
|
3369
|
+
export type Two$Outbound = {
|
|
3370
|
+
type: string;
|
|
3371
|
+
text: string;
|
|
3372
|
+
cache_control?:
|
|
3373
|
+
| InvokeDeploymentRequestContentCacheControl$Outbound
|
|
3374
|
+
| undefined;
|
|
3375
|
+
};
|
|
3376
|
+
|
|
3377
|
+
/** @internal */
|
|
3378
|
+
export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
3379
|
+
.object({
|
|
3380
|
+
type: InvokeDeploymentRequestContentType$outboundSchema,
|
|
3381
|
+
text: z.string(),
|
|
3382
|
+
cacheControl: z.lazy(() =>
|
|
3383
|
+
InvokeDeploymentRequestContentCacheControl$outboundSchema
|
|
3384
|
+
).optional(),
|
|
3385
|
+
}).transform((v) => {
|
|
3386
|
+
return remap$(v, {
|
|
3387
|
+
cacheControl: "cache_control",
|
|
3388
|
+
});
|
|
3389
|
+
});
|
|
3390
|
+
|
|
3391
|
+
export function twoToJSON(two: Two): string {
|
|
3392
|
+
return JSON.stringify(Two$outboundSchema.parse(two));
|
|
3393
|
+
}
|
|
3394
|
+
export function twoFromJSON(
|
|
3395
|
+
jsonString: string,
|
|
3396
|
+
): SafeParseResult<Two, SDKValidationError> {
|
|
3397
|
+
return safeParse(
|
|
3398
|
+
jsonString,
|
|
3399
|
+
(x) => Two$inboundSchema.parse(JSON.parse(x)),
|
|
3400
|
+
`Failed to parse 'Two' from JSON`,
|
|
3401
|
+
);
|
|
3402
|
+
}
|
|
3403
|
+
|
|
2075
3404
|
/** @internal */
|
|
2076
3405
|
export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
|
|
2077
|
-
z.union([z.string(), z.array(
|
|
3406
|
+
z.union([z.string(), z.array(z.lazy(() => Two$inboundSchema))]);
|
|
2078
3407
|
/** @internal */
|
|
2079
|
-
export type Content$Outbound = string | Array<
|
|
3408
|
+
export type Content$Outbound = string | Array<Two$Outbound>;
|
|
2080
3409
|
|
|
2081
3410
|
/** @internal */
|
|
2082
3411
|
export const Content$outboundSchema: z.ZodType<
|
|
2083
3412
|
Content$Outbound,
|
|
2084
3413
|
z.ZodTypeDef,
|
|
2085
3414
|
Content
|
|
2086
|
-
> = z.union([z.string(), z.array(
|
|
3415
|
+
> = z.union([z.string(), z.array(z.lazy(() => Two$outboundSchema))]);
|
|
2087
3416
|
|
|
2088
3417
|
export function contentToJSON(content: Content): string {
|
|
2089
3418
|
return JSON.stringify(Content$outboundSchema.parse(content));
|
|
@@ -2105,13 +3434,13 @@ export const SystemMessage$inboundSchema: z.ZodType<
|
|
|
2105
3434
|
unknown
|
|
2106
3435
|
> = z.object({
|
|
2107
3436
|
role: z.literal("system"),
|
|
2108
|
-
content: z.union([z.string(), z.array(
|
|
3437
|
+
content: z.union([z.string(), z.array(z.lazy(() => Two$inboundSchema))]),
|
|
2109
3438
|
name: z.string().optional(),
|
|
2110
3439
|
});
|
|
2111
3440
|
/** @internal */
|
|
2112
3441
|
export type SystemMessage$Outbound = {
|
|
2113
3442
|
role: "system";
|
|
2114
|
-
content: string | Array<
|
|
3443
|
+
content: string | Array<Two$Outbound>;
|
|
2115
3444
|
name?: string | undefined;
|
|
2116
3445
|
};
|
|
2117
3446
|
|
|
@@ -2122,7 +3451,7 @@ export const SystemMessage$outboundSchema: z.ZodType<
|
|
|
2122
3451
|
SystemMessage
|
|
2123
3452
|
> = z.object({
|
|
2124
3453
|
role: z.literal("system"),
|
|
2125
|
-
content: z.union([z.string(), z.array(
|
|
3454
|
+
content: z.union([z.string(), z.array(z.lazy(() => Two$outboundSchema))]),
|
|
2126
3455
|
name: z.string().optional(),
|
|
2127
3456
|
});
|
|
2128
3457
|
|
|
@@ -2175,13 +3504,157 @@ export const PrefixMessages$outboundSchema: z.ZodType<
|
|
|
2175
3504
|
export function prefixMessagesToJSON(prefixMessages: PrefixMessages): string {
|
|
2176
3505
|
return JSON.stringify(PrefixMessages$outboundSchema.parse(prefixMessages));
|
|
2177
3506
|
}
|
|
2178
|
-
export function prefixMessagesFromJSON(
|
|
3507
|
+
export function prefixMessagesFromJSON(
|
|
3508
|
+
jsonString: string,
|
|
3509
|
+
): SafeParseResult<PrefixMessages, SDKValidationError> {
|
|
3510
|
+
return safeParse(
|
|
3511
|
+
jsonString,
|
|
3512
|
+
(x) => PrefixMessages$inboundSchema.parse(JSON.parse(x)),
|
|
3513
|
+
`Failed to parse 'PrefixMessages' from JSON`,
|
|
3514
|
+
);
|
|
3515
|
+
}
|
|
3516
|
+
|
|
3517
|
+
/** @internal */
|
|
3518
|
+
export const InvokeDeploymentRequest2Messages5Type$inboundSchema:
|
|
3519
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages5Type> = z.nativeEnum(
|
|
3520
|
+
InvokeDeploymentRequest2Messages5Type,
|
|
3521
|
+
);
|
|
3522
|
+
/** @internal */
|
|
3523
|
+
export const InvokeDeploymentRequest2Messages5Type$outboundSchema:
|
|
3524
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages5Type> =
|
|
3525
|
+
InvokeDeploymentRequest2Messages5Type$inboundSchema;
|
|
3526
|
+
|
|
3527
|
+
/** @internal */
|
|
3528
|
+
export const InvokeDeploymentRequest2Messages5ContentType$inboundSchema:
|
|
3529
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages5ContentType> = z
|
|
3530
|
+
.nativeEnum(InvokeDeploymentRequest2Messages5ContentType);
|
|
3531
|
+
/** @internal */
|
|
3532
|
+
export const InvokeDeploymentRequest2Messages5ContentType$outboundSchema:
|
|
3533
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages5ContentType> =
|
|
3534
|
+
InvokeDeploymentRequest2Messages5ContentType$inboundSchema;
|
|
3535
|
+
|
|
3536
|
+
/** @internal */
|
|
3537
|
+
export const InvokeDeploymentRequest2Messages5Ttl$inboundSchema:
|
|
3538
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages5Ttl> = z.nativeEnum(
|
|
3539
|
+
InvokeDeploymentRequest2Messages5Ttl,
|
|
3540
|
+
);
|
|
3541
|
+
/** @internal */
|
|
3542
|
+
export const InvokeDeploymentRequest2Messages5Ttl$outboundSchema:
|
|
3543
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages5Ttl> =
|
|
3544
|
+
InvokeDeploymentRequest2Messages5Ttl$inboundSchema;
|
|
3545
|
+
|
|
3546
|
+
/** @internal */
|
|
3547
|
+
export const InvokeDeploymentRequest2Messages5CacheControl$inboundSchema:
|
|
3548
|
+
z.ZodType<
|
|
3549
|
+
InvokeDeploymentRequest2Messages5CacheControl,
|
|
3550
|
+
z.ZodTypeDef,
|
|
3551
|
+
unknown
|
|
3552
|
+
> = z.object({
|
|
3553
|
+
type: InvokeDeploymentRequest2Messages5ContentType$inboundSchema,
|
|
3554
|
+
ttl: InvokeDeploymentRequest2Messages5Ttl$inboundSchema.default("5m"),
|
|
3555
|
+
});
|
|
3556
|
+
/** @internal */
|
|
3557
|
+
export type InvokeDeploymentRequest2Messages5CacheControl$Outbound = {
|
|
3558
|
+
type: string;
|
|
3559
|
+
ttl: string;
|
|
3560
|
+
};
|
|
3561
|
+
|
|
3562
|
+
/** @internal */
|
|
3563
|
+
export const InvokeDeploymentRequest2Messages5CacheControl$outboundSchema:
|
|
3564
|
+
z.ZodType<
|
|
3565
|
+
InvokeDeploymentRequest2Messages5CacheControl$Outbound,
|
|
3566
|
+
z.ZodTypeDef,
|
|
3567
|
+
InvokeDeploymentRequest2Messages5CacheControl
|
|
3568
|
+
> = z.object({
|
|
3569
|
+
type: InvokeDeploymentRequest2Messages5ContentType$outboundSchema,
|
|
3570
|
+
ttl: InvokeDeploymentRequest2Messages5Ttl$outboundSchema.default("5m"),
|
|
3571
|
+
});
|
|
3572
|
+
|
|
3573
|
+
export function invokeDeploymentRequest2Messages5CacheControlToJSON(
|
|
3574
|
+
invokeDeploymentRequest2Messages5CacheControl:
|
|
3575
|
+
InvokeDeploymentRequest2Messages5CacheControl,
|
|
3576
|
+
): string {
|
|
3577
|
+
return JSON.stringify(
|
|
3578
|
+
InvokeDeploymentRequest2Messages5CacheControl$outboundSchema.parse(
|
|
3579
|
+
invokeDeploymentRequest2Messages5CacheControl,
|
|
3580
|
+
),
|
|
3581
|
+
);
|
|
3582
|
+
}
|
|
3583
|
+
export function invokeDeploymentRequest2Messages5CacheControlFromJSON(
|
|
3584
|
+
jsonString: string,
|
|
3585
|
+
): SafeParseResult<
|
|
3586
|
+
InvokeDeploymentRequest2Messages5CacheControl,
|
|
3587
|
+
SDKValidationError
|
|
3588
|
+
> {
|
|
3589
|
+
return safeParse(
|
|
3590
|
+
jsonString,
|
|
3591
|
+
(x) =>
|
|
3592
|
+
InvokeDeploymentRequest2Messages5CacheControl$inboundSchema.parse(
|
|
3593
|
+
JSON.parse(x),
|
|
3594
|
+
),
|
|
3595
|
+
`Failed to parse 'InvokeDeploymentRequest2Messages5CacheControl' from JSON`,
|
|
3596
|
+
);
|
|
3597
|
+
}
|
|
3598
|
+
|
|
3599
|
+
/** @internal */
|
|
3600
|
+
export const InvokeDeploymentRequest2Messages51$inboundSchema: z.ZodType<
|
|
3601
|
+
InvokeDeploymentRequest2Messages51,
|
|
3602
|
+
z.ZodTypeDef,
|
|
3603
|
+
unknown
|
|
3604
|
+
> = z.object({
|
|
3605
|
+
type: InvokeDeploymentRequest2Messages5Type$inboundSchema,
|
|
3606
|
+
text: z.string(),
|
|
3607
|
+
cache_control: z.lazy(() =>
|
|
3608
|
+
InvokeDeploymentRequest2Messages5CacheControl$inboundSchema
|
|
3609
|
+
).optional(),
|
|
3610
|
+
}).transform((v) => {
|
|
3611
|
+
return remap$(v, {
|
|
3612
|
+
"cache_control": "cacheControl",
|
|
3613
|
+
});
|
|
3614
|
+
});
|
|
3615
|
+
/** @internal */
|
|
3616
|
+
export type InvokeDeploymentRequest2Messages51$Outbound = {
|
|
3617
|
+
type: string;
|
|
3618
|
+
text: string;
|
|
3619
|
+
cache_control?:
|
|
3620
|
+
| InvokeDeploymentRequest2Messages5CacheControl$Outbound
|
|
3621
|
+
| undefined;
|
|
3622
|
+
};
|
|
3623
|
+
|
|
3624
|
+
/** @internal */
|
|
3625
|
+
export const InvokeDeploymentRequest2Messages51$outboundSchema: z.ZodType<
|
|
3626
|
+
InvokeDeploymentRequest2Messages51$Outbound,
|
|
3627
|
+
z.ZodTypeDef,
|
|
3628
|
+
InvokeDeploymentRequest2Messages51
|
|
3629
|
+
> = z.object({
|
|
3630
|
+
type: InvokeDeploymentRequest2Messages5Type$outboundSchema,
|
|
3631
|
+
text: z.string(),
|
|
3632
|
+
cacheControl: z.lazy(() =>
|
|
3633
|
+
InvokeDeploymentRequest2Messages5CacheControl$outboundSchema
|
|
3634
|
+
).optional(),
|
|
3635
|
+
}).transform((v) => {
|
|
3636
|
+
return remap$(v, {
|
|
3637
|
+
cacheControl: "cache_control",
|
|
3638
|
+
});
|
|
3639
|
+
});
|
|
3640
|
+
|
|
3641
|
+
export function invokeDeploymentRequest2Messages51ToJSON(
|
|
3642
|
+
invokeDeploymentRequest2Messages51: InvokeDeploymentRequest2Messages51,
|
|
3643
|
+
): string {
|
|
3644
|
+
return JSON.stringify(
|
|
3645
|
+
InvokeDeploymentRequest2Messages51$outboundSchema.parse(
|
|
3646
|
+
invokeDeploymentRequest2Messages51,
|
|
3647
|
+
),
|
|
3648
|
+
);
|
|
3649
|
+
}
|
|
3650
|
+
export function invokeDeploymentRequest2Messages51FromJSON(
|
|
2179
3651
|
jsonString: string,
|
|
2180
|
-
): SafeParseResult<
|
|
3652
|
+
): SafeParseResult<InvokeDeploymentRequest2Messages51, SDKValidationError> {
|
|
2181
3653
|
return safeParse(
|
|
2182
3654
|
jsonString,
|
|
2183
|
-
(x) =>
|
|
2184
|
-
|
|
3655
|
+
(x) =>
|
|
3656
|
+
InvokeDeploymentRequest2Messages51$inboundSchema.parse(JSON.parse(x)),
|
|
3657
|
+
`Failed to parse 'InvokeDeploymentRequest2Messages51' from JSON`,
|
|
2185
3658
|
);
|
|
2186
3659
|
}
|
|
2187
3660
|
|
|
@@ -2190,17 +3663,17 @@ export const InvokeDeploymentRequestContentMessages52$inboundSchema: z.ZodType<
|
|
|
2190
3663
|
InvokeDeploymentRequestContentMessages52,
|
|
2191
3664
|
z.ZodTypeDef,
|
|
2192
3665
|
unknown
|
|
2193
|
-
> =
|
|
3666
|
+
> = z.lazy(() => InvokeDeploymentRequest2Messages51$inboundSchema);
|
|
2194
3667
|
/** @internal */
|
|
2195
3668
|
export type InvokeDeploymentRequestContentMessages52$Outbound =
|
|
2196
|
-
|
|
3669
|
+
InvokeDeploymentRequest2Messages51$Outbound;
|
|
2197
3670
|
|
|
2198
3671
|
/** @internal */
|
|
2199
3672
|
export const InvokeDeploymentRequestContentMessages52$outboundSchema: z.ZodType<
|
|
2200
3673
|
InvokeDeploymentRequestContentMessages52$Outbound,
|
|
2201
3674
|
z.ZodTypeDef,
|
|
2202
3675
|
InvokeDeploymentRequestContentMessages52
|
|
2203
|
-
> =
|
|
3676
|
+
> = z.lazy(() => InvokeDeploymentRequest2Messages51$outboundSchema);
|
|
2204
3677
|
|
|
2205
3678
|
export function invokeDeploymentRequestContentMessages52ToJSON(
|
|
2206
3679
|
invokeDeploymentRequestContentMessages52:
|
|
@@ -2233,18 +3706,24 @@ export const InvokeDeploymentRequestMessages5Content$inboundSchema: z.ZodType<
|
|
|
2233
3706
|
InvokeDeploymentRequestMessages5Content,
|
|
2234
3707
|
z.ZodTypeDef,
|
|
2235
3708
|
unknown
|
|
2236
|
-
> = z.union([
|
|
3709
|
+
> = z.union([
|
|
3710
|
+
z.string(),
|
|
3711
|
+
z.array(z.lazy(() => InvokeDeploymentRequest2Messages51$inboundSchema)),
|
|
3712
|
+
]);
|
|
2237
3713
|
/** @internal */
|
|
2238
3714
|
export type InvokeDeploymentRequestMessages5Content$Outbound =
|
|
2239
3715
|
| string
|
|
2240
|
-
| Array<
|
|
3716
|
+
| Array<InvokeDeploymentRequest2Messages51$Outbound>;
|
|
2241
3717
|
|
|
2242
3718
|
/** @internal */
|
|
2243
3719
|
export const InvokeDeploymentRequestMessages5Content$outboundSchema: z.ZodType<
|
|
2244
3720
|
InvokeDeploymentRequestMessages5Content$Outbound,
|
|
2245
3721
|
z.ZodTypeDef,
|
|
2246
3722
|
InvokeDeploymentRequestMessages5Content
|
|
2247
|
-
> = z.union([
|
|
3723
|
+
> = z.union([
|
|
3724
|
+
z.string(),
|
|
3725
|
+
z.array(z.lazy(() => InvokeDeploymentRequest2Messages51$outboundSchema)),
|
|
3726
|
+
]);
|
|
2248
3727
|
|
|
2249
3728
|
export function invokeDeploymentRequestMessages5ContentToJSON(
|
|
2250
3729
|
invokeDeploymentRequestMessages5Content:
|
|
@@ -2337,7 +3816,10 @@ export const MessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
2337
3816
|
unknown
|
|
2338
3817
|
> = z.object({
|
|
2339
3818
|
role: z.literal("tool"),
|
|
2340
|
-
content: z.union([
|
|
3819
|
+
content: z.union([
|
|
3820
|
+
z.string(),
|
|
3821
|
+
z.array(z.lazy(() => InvokeDeploymentRequest2Messages51$inboundSchema)),
|
|
3822
|
+
]),
|
|
2341
3823
|
tool_call_id: z.string(),
|
|
2342
3824
|
cache_control: z.lazy(() => MessagesCacheControl$inboundSchema).optional(),
|
|
2343
3825
|
}).transform((v) => {
|
|
@@ -2349,7 +3831,7 @@ export const MessagesToolMessage$inboundSchema: z.ZodType<
|
|
|
2349
3831
|
/** @internal */
|
|
2350
3832
|
export type MessagesToolMessage$Outbound = {
|
|
2351
3833
|
role: "tool";
|
|
2352
|
-
content: string | Array<
|
|
3834
|
+
content: string | Array<InvokeDeploymentRequest2Messages51$Outbound>;
|
|
2353
3835
|
tool_call_id: string;
|
|
2354
3836
|
cache_control?: MessagesCacheControl$Outbound | undefined;
|
|
2355
3837
|
};
|
|
@@ -2361,7 +3843,10 @@ export const MessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
2361
3843
|
MessagesToolMessage
|
|
2362
3844
|
> = z.object({
|
|
2363
3845
|
role: z.literal("tool"),
|
|
2364
|
-
content: z.union([
|
|
3846
|
+
content: z.union([
|
|
3847
|
+
z.string(),
|
|
3848
|
+
z.array(z.lazy(() => InvokeDeploymentRequest2Messages51$outboundSchema)),
|
|
3849
|
+
]),
|
|
2365
3850
|
toolCallId: z.string(),
|
|
2366
3851
|
cacheControl: z.lazy(() => MessagesCacheControl$outboundSchema).optional(),
|
|
2367
3852
|
}).transform((v) => {
|
|
@@ -2388,22 +3873,154 @@ export function messagesToolMessageFromJSON(
|
|
|
2388
3873
|
);
|
|
2389
3874
|
}
|
|
2390
3875
|
|
|
3876
|
+
/** @internal */
|
|
3877
|
+
export const InvokeDeploymentRequest2Messages4ContentType$inboundSchema:
|
|
3878
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages4ContentType> = z
|
|
3879
|
+
.nativeEnum(InvokeDeploymentRequest2Messages4ContentType);
|
|
3880
|
+
/** @internal */
|
|
3881
|
+
export const InvokeDeploymentRequest2Messages4ContentType$outboundSchema:
|
|
3882
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages4ContentType> =
|
|
3883
|
+
InvokeDeploymentRequest2Messages4ContentType$inboundSchema;
|
|
3884
|
+
|
|
3885
|
+
/** @internal */
|
|
3886
|
+
export const InvokeDeploymentRequest2Messages4Ttl$inboundSchema:
|
|
3887
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages4Ttl> = z.nativeEnum(
|
|
3888
|
+
InvokeDeploymentRequest2Messages4Ttl,
|
|
3889
|
+
);
|
|
3890
|
+
/** @internal */
|
|
3891
|
+
export const InvokeDeploymentRequest2Messages4Ttl$outboundSchema:
|
|
3892
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages4Ttl> =
|
|
3893
|
+
InvokeDeploymentRequest2Messages4Ttl$inboundSchema;
|
|
3894
|
+
|
|
3895
|
+
/** @internal */
|
|
3896
|
+
export const InvokeDeploymentRequest2Messages4CacheControl$inboundSchema:
|
|
3897
|
+
z.ZodType<
|
|
3898
|
+
InvokeDeploymentRequest2Messages4CacheControl,
|
|
3899
|
+
z.ZodTypeDef,
|
|
3900
|
+
unknown
|
|
3901
|
+
> = z.object({
|
|
3902
|
+
type: InvokeDeploymentRequest2Messages4ContentType$inboundSchema,
|
|
3903
|
+
ttl: InvokeDeploymentRequest2Messages4Ttl$inboundSchema.default("5m"),
|
|
3904
|
+
});
|
|
3905
|
+
/** @internal */
|
|
3906
|
+
export type InvokeDeploymentRequest2Messages4CacheControl$Outbound = {
|
|
3907
|
+
type: string;
|
|
3908
|
+
ttl: string;
|
|
3909
|
+
};
|
|
3910
|
+
|
|
3911
|
+
/** @internal */
|
|
3912
|
+
export const InvokeDeploymentRequest2Messages4CacheControl$outboundSchema:
|
|
3913
|
+
z.ZodType<
|
|
3914
|
+
InvokeDeploymentRequest2Messages4CacheControl$Outbound,
|
|
3915
|
+
z.ZodTypeDef,
|
|
3916
|
+
InvokeDeploymentRequest2Messages4CacheControl
|
|
3917
|
+
> = z.object({
|
|
3918
|
+
type: InvokeDeploymentRequest2Messages4ContentType$outboundSchema,
|
|
3919
|
+
ttl: InvokeDeploymentRequest2Messages4Ttl$outboundSchema.default("5m"),
|
|
3920
|
+
});
|
|
3921
|
+
|
|
3922
|
+
export function invokeDeploymentRequest2Messages4CacheControlToJSON(
|
|
3923
|
+
invokeDeploymentRequest2Messages4CacheControl:
|
|
3924
|
+
InvokeDeploymentRequest2Messages4CacheControl,
|
|
3925
|
+
): string {
|
|
3926
|
+
return JSON.stringify(
|
|
3927
|
+
InvokeDeploymentRequest2Messages4CacheControl$outboundSchema.parse(
|
|
3928
|
+
invokeDeploymentRequest2Messages4CacheControl,
|
|
3929
|
+
),
|
|
3930
|
+
);
|
|
3931
|
+
}
|
|
3932
|
+
export function invokeDeploymentRequest2Messages4CacheControlFromJSON(
|
|
3933
|
+
jsonString: string,
|
|
3934
|
+
): SafeParseResult<
|
|
3935
|
+
InvokeDeploymentRequest2Messages4CacheControl,
|
|
3936
|
+
SDKValidationError
|
|
3937
|
+
> {
|
|
3938
|
+
return safeParse(
|
|
3939
|
+
jsonString,
|
|
3940
|
+
(x) =>
|
|
3941
|
+
InvokeDeploymentRequest2Messages4CacheControl$inboundSchema.parse(
|
|
3942
|
+
JSON.parse(x),
|
|
3943
|
+
),
|
|
3944
|
+
`Failed to parse 'InvokeDeploymentRequest2Messages4CacheControl' from JSON`,
|
|
3945
|
+
);
|
|
3946
|
+
}
|
|
3947
|
+
|
|
3948
|
+
/** @internal */
|
|
3949
|
+
export const InvokeDeploymentRequest2Messages41$inboundSchema: z.ZodType<
|
|
3950
|
+
InvokeDeploymentRequest2Messages41,
|
|
3951
|
+
z.ZodTypeDef,
|
|
3952
|
+
unknown
|
|
3953
|
+
> = z.object({
|
|
3954
|
+
type: z.literal("text"),
|
|
3955
|
+
text: z.string(),
|
|
3956
|
+
cache_control: z.lazy(() =>
|
|
3957
|
+
InvokeDeploymentRequest2Messages4CacheControl$inboundSchema
|
|
3958
|
+
).optional(),
|
|
3959
|
+
}).transform((v) => {
|
|
3960
|
+
return remap$(v, {
|
|
3961
|
+
"cache_control": "cacheControl",
|
|
3962
|
+
});
|
|
3963
|
+
});
|
|
3964
|
+
/** @internal */
|
|
3965
|
+
export type InvokeDeploymentRequest2Messages41$Outbound = {
|
|
3966
|
+
type: "text";
|
|
3967
|
+
text: string;
|
|
3968
|
+
cache_control?:
|
|
3969
|
+
| InvokeDeploymentRequest2Messages4CacheControl$Outbound
|
|
3970
|
+
| undefined;
|
|
3971
|
+
};
|
|
3972
|
+
|
|
3973
|
+
/** @internal */
|
|
3974
|
+
export const InvokeDeploymentRequest2Messages41$outboundSchema: z.ZodType<
|
|
3975
|
+
InvokeDeploymentRequest2Messages41$Outbound,
|
|
3976
|
+
z.ZodTypeDef,
|
|
3977
|
+
InvokeDeploymentRequest2Messages41
|
|
3978
|
+
> = z.object({
|
|
3979
|
+
type: z.literal("text"),
|
|
3980
|
+
text: z.string(),
|
|
3981
|
+
cacheControl: z.lazy(() =>
|
|
3982
|
+
InvokeDeploymentRequest2Messages4CacheControl$outboundSchema
|
|
3983
|
+
).optional(),
|
|
3984
|
+
}).transform((v) => {
|
|
3985
|
+
return remap$(v, {
|
|
3986
|
+
cacheControl: "cache_control",
|
|
3987
|
+
});
|
|
3988
|
+
});
|
|
3989
|
+
|
|
3990
|
+
export function invokeDeploymentRequest2Messages41ToJSON(
|
|
3991
|
+
invokeDeploymentRequest2Messages41: InvokeDeploymentRequest2Messages41,
|
|
3992
|
+
): string {
|
|
3993
|
+
return JSON.stringify(
|
|
3994
|
+
InvokeDeploymentRequest2Messages41$outboundSchema.parse(
|
|
3995
|
+
invokeDeploymentRequest2Messages41,
|
|
3996
|
+
),
|
|
3997
|
+
);
|
|
3998
|
+
}
|
|
3999
|
+
export function invokeDeploymentRequest2Messages41FromJSON(
|
|
4000
|
+
jsonString: string,
|
|
4001
|
+
): SafeParseResult<InvokeDeploymentRequest2Messages41, SDKValidationError> {
|
|
4002
|
+
return safeParse(
|
|
4003
|
+
jsonString,
|
|
4004
|
+
(x) =>
|
|
4005
|
+
InvokeDeploymentRequest2Messages41$inboundSchema.parse(JSON.parse(x)),
|
|
4006
|
+
`Failed to parse 'InvokeDeploymentRequest2Messages41' from JSON`,
|
|
4007
|
+
);
|
|
4008
|
+
}
|
|
4009
|
+
|
|
2391
4010
|
/** @internal */
|
|
2392
4011
|
export const InvokeDeploymentRequestContentMessages42$inboundSchema: z.ZodType<
|
|
2393
4012
|
InvokeDeploymentRequestContentMessages42,
|
|
2394
4013
|
z.ZodTypeDef,
|
|
2395
4014
|
unknown
|
|
2396
4015
|
> = z.union([
|
|
2397
|
-
|
|
2398
|
-
z.object({ type: z.literal("text") }),
|
|
2399
|
-
),
|
|
4016
|
+
z.lazy(() => InvokeDeploymentRequest2Messages41$inboundSchema),
|
|
2400
4017
|
RefusalPartSchema$inboundSchema,
|
|
2401
4018
|
ReasoningPartSchema$inboundSchema,
|
|
2402
4019
|
RedactedReasoningPartSchema$inboundSchema,
|
|
2403
4020
|
]);
|
|
2404
4021
|
/** @internal */
|
|
2405
4022
|
export type InvokeDeploymentRequestContentMessages42$Outbound =
|
|
2406
|
-
|
|
|
4023
|
+
| InvokeDeploymentRequest2Messages41$Outbound
|
|
2407
4024
|
| RefusalPartSchema$Outbound
|
|
2408
4025
|
| ReasoningPartSchema$Outbound
|
|
2409
4026
|
| RedactedReasoningPartSchema$Outbound;
|
|
@@ -2414,9 +4031,7 @@ export const InvokeDeploymentRequestContentMessages42$outboundSchema: z.ZodType<
|
|
|
2414
4031
|
z.ZodTypeDef,
|
|
2415
4032
|
InvokeDeploymentRequestContentMessages42
|
|
2416
4033
|
> = z.union([
|
|
2417
|
-
|
|
2418
|
-
z.object({ type: z.literal("text") }),
|
|
2419
|
-
),
|
|
4034
|
+
z.lazy(() => InvokeDeploymentRequest2Messages41$outboundSchema),
|
|
2420
4035
|
RefusalPartSchema$outboundSchema,
|
|
2421
4036
|
ReasoningPartSchema$outboundSchema,
|
|
2422
4037
|
RedactedReasoningPartSchema$outboundSchema,
|
|
@@ -2455,22 +4070,18 @@ export const InvokeDeploymentRequestMessages4Content$inboundSchema: z.ZodType<
|
|
|
2455
4070
|
unknown
|
|
2456
4071
|
> = z.union([
|
|
2457
4072
|
z.string(),
|
|
2458
|
-
z.array(
|
|
2459
|
-
z.
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
ReasoningPartSchema$inboundSchema,
|
|
2465
|
-
RedactedReasoningPartSchema$inboundSchema,
|
|
2466
|
-
]),
|
|
2467
|
-
),
|
|
4073
|
+
z.array(z.union([
|
|
4074
|
+
z.lazy(() => InvokeDeploymentRequest2Messages41$inboundSchema),
|
|
4075
|
+
RefusalPartSchema$inboundSchema,
|
|
4076
|
+
ReasoningPartSchema$inboundSchema,
|
|
4077
|
+
RedactedReasoningPartSchema$inboundSchema,
|
|
4078
|
+
])),
|
|
2468
4079
|
]);
|
|
2469
4080
|
/** @internal */
|
|
2470
4081
|
export type InvokeDeploymentRequestMessages4Content$Outbound =
|
|
2471
4082
|
| string
|
|
2472
4083
|
| Array<
|
|
2473
|
-
|
|
|
4084
|
+
| InvokeDeploymentRequest2Messages41$Outbound
|
|
2474
4085
|
| RefusalPartSchema$Outbound
|
|
2475
4086
|
| ReasoningPartSchema$Outbound
|
|
2476
4087
|
| RedactedReasoningPartSchema$Outbound
|
|
@@ -2483,16 +4094,12 @@ export const InvokeDeploymentRequestMessages4Content$outboundSchema: z.ZodType<
|
|
|
2483
4094
|
InvokeDeploymentRequestMessages4Content
|
|
2484
4095
|
> = z.union([
|
|
2485
4096
|
z.string(),
|
|
2486
|
-
z.array(
|
|
2487
|
-
z.
|
|
2488
|
-
|
|
2489
|
-
|
|
2490
|
-
|
|
2491
|
-
|
|
2492
|
-
ReasoningPartSchema$outboundSchema,
|
|
2493
|
-
RedactedReasoningPartSchema$outboundSchema,
|
|
2494
|
-
]),
|
|
2495
|
-
),
|
|
4097
|
+
z.array(z.union([
|
|
4098
|
+
z.lazy(() => InvokeDeploymentRequest2Messages41$outboundSchema),
|
|
4099
|
+
RefusalPartSchema$outboundSchema,
|
|
4100
|
+
ReasoningPartSchema$outboundSchema,
|
|
4101
|
+
RedactedReasoningPartSchema$outboundSchema,
|
|
4102
|
+
])),
|
|
2496
4103
|
]);
|
|
2497
4104
|
|
|
2498
4105
|
export function invokeDeploymentRequestMessages4ContentToJSON(
|
|
@@ -2672,9 +4279,7 @@ export const MessagesAssistantMessage$inboundSchema: z.ZodType<
|
|
|
2672
4279
|
z.string(),
|
|
2673
4280
|
z.array(
|
|
2674
4281
|
z.union([
|
|
2675
|
-
|
|
2676
|
-
z.object({ type: z.literal("text") }),
|
|
2677
|
-
),
|
|
4282
|
+
z.lazy(() => InvokeDeploymentRequest2Messages41$inboundSchema),
|
|
2678
4283
|
RefusalPartSchema$inboundSchema,
|
|
2679
4284
|
ReasoningPartSchema$inboundSchema,
|
|
2680
4285
|
RedactedReasoningPartSchema$inboundSchema,
|
|
@@ -2697,7 +4302,7 @@ export type MessagesAssistantMessage$Outbound = {
|
|
|
2697
4302
|
content?:
|
|
2698
4303
|
| string
|
|
2699
4304
|
| Array<
|
|
2700
|
-
|
|
|
4305
|
+
| InvokeDeploymentRequest2Messages41$Outbound
|
|
2701
4306
|
| RefusalPartSchema$Outbound
|
|
2702
4307
|
| ReasoningPartSchema$Outbound
|
|
2703
4308
|
| RedactedReasoningPartSchema$Outbound
|
|
@@ -2722,9 +4327,7 @@ export const MessagesAssistantMessage$outboundSchema: z.ZodType<
|
|
|
2722
4327
|
z.string(),
|
|
2723
4328
|
z.array(
|
|
2724
4329
|
z.union([
|
|
2725
|
-
|
|
2726
|
-
z.object({ type: z.literal("text") }),
|
|
2727
|
-
),
|
|
4330
|
+
z.lazy(() => InvokeDeploymentRequest2Messages41$outboundSchema),
|
|
2728
4331
|
RefusalPartSchema$outboundSchema,
|
|
2729
4332
|
ReasoningPartSchema$outboundSchema,
|
|
2730
4333
|
RedactedReasoningPartSchema$outboundSchema,
|
|
@@ -2761,66 +4364,74 @@ export function messagesAssistantMessageFromJSON(
|
|
|
2761
4364
|
}
|
|
2762
4365
|
|
|
2763
4366
|
/** @internal */
|
|
2764
|
-
export const
|
|
2765
|
-
z.ZodNativeEnum<typeof
|
|
2766
|
-
|
|
2767
|
-
);
|
|
4367
|
+
export const InvokeDeploymentRequest2Messages3Content4Type$inboundSchema:
|
|
4368
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages3Content4Type> = z
|
|
4369
|
+
.nativeEnum(InvokeDeploymentRequest2Messages3Content4Type);
|
|
2768
4370
|
/** @internal */
|
|
2769
|
-
export const
|
|
2770
|
-
z.ZodNativeEnum<typeof
|
|
2771
|
-
|
|
4371
|
+
export const InvokeDeploymentRequest2Messages3Content4Type$outboundSchema:
|
|
4372
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages3Content4Type> =
|
|
4373
|
+
InvokeDeploymentRequest2Messages3Content4Type$inboundSchema;
|
|
2772
4374
|
|
|
2773
4375
|
/** @internal */
|
|
2774
|
-
export const
|
|
2775
|
-
typeof
|
|
2776
|
-
|
|
4376
|
+
export const InvokeDeploymentRequest2Messages3Ttl$inboundSchema:
|
|
4377
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages3Ttl> = z.nativeEnum(
|
|
4378
|
+
InvokeDeploymentRequest2Messages3Ttl,
|
|
4379
|
+
);
|
|
2777
4380
|
/** @internal */
|
|
2778
|
-
export const
|
|
2779
|
-
typeof
|
|
2780
|
-
|
|
4381
|
+
export const InvokeDeploymentRequest2Messages3Ttl$outboundSchema:
|
|
4382
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages3Ttl> =
|
|
4383
|
+
InvokeDeploymentRequest2Messages3Ttl$inboundSchema;
|
|
2781
4384
|
|
|
2782
4385
|
/** @internal */
|
|
2783
|
-
export const
|
|
2784
|
-
|
|
2785
|
-
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
|
|
2790
|
-
|
|
4386
|
+
export const InvokeDeploymentRequest2Messages3CacheControl$inboundSchema:
|
|
4387
|
+
z.ZodType<
|
|
4388
|
+
InvokeDeploymentRequest2Messages3CacheControl,
|
|
4389
|
+
z.ZodTypeDef,
|
|
4390
|
+
unknown
|
|
4391
|
+
> = z.object({
|
|
4392
|
+
type: InvokeDeploymentRequest2Messages3Content4Type$inboundSchema,
|
|
4393
|
+
ttl: InvokeDeploymentRequest2Messages3Ttl$inboundSchema.default("5m"),
|
|
4394
|
+
});
|
|
2791
4395
|
/** @internal */
|
|
2792
|
-
export type
|
|
4396
|
+
export type InvokeDeploymentRequest2Messages3CacheControl$Outbound = {
|
|
2793
4397
|
type: string;
|
|
2794
4398
|
ttl: string;
|
|
2795
4399
|
};
|
|
2796
4400
|
|
|
2797
4401
|
/** @internal */
|
|
2798
|
-
export const
|
|
2799
|
-
|
|
2800
|
-
|
|
2801
|
-
|
|
2802
|
-
|
|
2803
|
-
|
|
2804
|
-
|
|
2805
|
-
|
|
4402
|
+
export const InvokeDeploymentRequest2Messages3CacheControl$outboundSchema:
|
|
4403
|
+
z.ZodType<
|
|
4404
|
+
InvokeDeploymentRequest2Messages3CacheControl$Outbound,
|
|
4405
|
+
z.ZodTypeDef,
|
|
4406
|
+
InvokeDeploymentRequest2Messages3CacheControl
|
|
4407
|
+
> = z.object({
|
|
4408
|
+
type: InvokeDeploymentRequest2Messages3Content4Type$outboundSchema,
|
|
4409
|
+
ttl: InvokeDeploymentRequest2Messages3Ttl$outboundSchema.default("5m"),
|
|
4410
|
+
});
|
|
2806
4411
|
|
|
2807
|
-
export function
|
|
2808
|
-
|
|
4412
|
+
export function invokeDeploymentRequest2Messages3CacheControlToJSON(
|
|
4413
|
+
invokeDeploymentRequest2Messages3CacheControl:
|
|
4414
|
+
InvokeDeploymentRequest2Messages3CacheControl,
|
|
2809
4415
|
): string {
|
|
2810
4416
|
return JSON.stringify(
|
|
2811
|
-
|
|
2812
|
-
|
|
4417
|
+
InvokeDeploymentRequest2Messages3CacheControl$outboundSchema.parse(
|
|
4418
|
+
invokeDeploymentRequest2Messages3CacheControl,
|
|
2813
4419
|
),
|
|
2814
4420
|
);
|
|
2815
4421
|
}
|
|
2816
|
-
export function
|
|
4422
|
+
export function invokeDeploymentRequest2Messages3CacheControlFromJSON(
|
|
2817
4423
|
jsonString: string,
|
|
2818
|
-
): SafeParseResult<
|
|
4424
|
+
): SafeParseResult<
|
|
4425
|
+
InvokeDeploymentRequest2Messages3CacheControl,
|
|
4426
|
+
SDKValidationError
|
|
4427
|
+
> {
|
|
2819
4428
|
return safeParse(
|
|
2820
4429
|
jsonString,
|
|
2821
4430
|
(x) =>
|
|
2822
|
-
|
|
2823
|
-
|
|
4431
|
+
InvokeDeploymentRequest2Messages3CacheControl$inboundSchema.parse(
|
|
4432
|
+
JSON.parse(x),
|
|
4433
|
+
),
|
|
4434
|
+
`Failed to parse 'InvokeDeploymentRequest2Messages3CacheControl' from JSON`,
|
|
2824
4435
|
);
|
|
2825
4436
|
}
|
|
2826
4437
|
|
|
@@ -2829,7 +4440,7 @@ export const Two4$inboundSchema: z.ZodType<Two4, z.ZodTypeDef, unknown> = z
|
|
|
2829
4440
|
.object({
|
|
2830
4441
|
type: z.literal("file"),
|
|
2831
4442
|
cache_control: z.lazy(() =>
|
|
2832
|
-
|
|
4443
|
+
InvokeDeploymentRequest2Messages3CacheControl$inboundSchema
|
|
2833
4444
|
).optional(),
|
|
2834
4445
|
file: FileContentPartSchema$inboundSchema,
|
|
2835
4446
|
}).transform((v) => {
|
|
@@ -2840,7 +4451,9 @@ export const Two4$inboundSchema: z.ZodType<Two4, z.ZodTypeDef, unknown> = z
|
|
|
2840
4451
|
/** @internal */
|
|
2841
4452
|
export type Two4$Outbound = {
|
|
2842
4453
|
type: "file";
|
|
2843
|
-
cache_control?:
|
|
4454
|
+
cache_control?:
|
|
4455
|
+
| InvokeDeploymentRequest2Messages3CacheControl$Outbound
|
|
4456
|
+
| undefined;
|
|
2844
4457
|
file: FileContentPartSchema$Outbound;
|
|
2845
4458
|
};
|
|
2846
4459
|
|
|
@@ -2849,7 +4462,7 @@ export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
|
|
|
2849
4462
|
z.object({
|
|
2850
4463
|
type: z.literal("file"),
|
|
2851
4464
|
cacheControl: z.lazy(() =>
|
|
2852
|
-
|
|
4465
|
+
InvokeDeploymentRequest2Messages3CacheControl$outboundSchema
|
|
2853
4466
|
).optional(),
|
|
2854
4467
|
file: FileContentPartSchema$outboundSchema,
|
|
2855
4468
|
}).transform((v) => {
|
|
@@ -2872,62 +4485,190 @@ export function two4FromJSON(
|
|
|
2872
4485
|
}
|
|
2873
4486
|
|
|
2874
4487
|
/** @internal */
|
|
2875
|
-
export const
|
|
2876
|
-
|
|
4488
|
+
export const InvokeDeploymentRequest2Messages3ContentType$inboundSchema:
|
|
4489
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages3ContentType> = z
|
|
4490
|
+
.nativeEnum(InvokeDeploymentRequest2Messages3ContentType);
|
|
4491
|
+
/** @internal */
|
|
4492
|
+
export const InvokeDeploymentRequest2Messages3ContentType$outboundSchema:
|
|
4493
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2Messages3ContentType> =
|
|
4494
|
+
InvokeDeploymentRequest2Messages3ContentType$inboundSchema;
|
|
4495
|
+
|
|
4496
|
+
/** @internal */
|
|
4497
|
+
export const InvokeDeploymentRequest2MessagesTtl$inboundSchema: z.ZodNativeEnum<
|
|
4498
|
+
typeof InvokeDeploymentRequest2MessagesTtl
|
|
4499
|
+
> = z.nativeEnum(InvokeDeploymentRequest2MessagesTtl);
|
|
4500
|
+
/** @internal */
|
|
4501
|
+
export const InvokeDeploymentRequest2MessagesTtl$outboundSchema:
|
|
4502
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequest2MessagesTtl> =
|
|
4503
|
+
InvokeDeploymentRequest2MessagesTtl$inboundSchema;
|
|
4504
|
+
|
|
4505
|
+
/** @internal */
|
|
4506
|
+
export const InvokeDeploymentRequest2MessagesCacheControl$inboundSchema:
|
|
4507
|
+
z.ZodType<
|
|
4508
|
+
InvokeDeploymentRequest2MessagesCacheControl,
|
|
4509
|
+
z.ZodTypeDef,
|
|
4510
|
+
unknown
|
|
4511
|
+
> = z.object({
|
|
4512
|
+
type: InvokeDeploymentRequest2Messages3ContentType$inboundSchema,
|
|
4513
|
+
ttl: InvokeDeploymentRequest2MessagesTtl$inboundSchema.default("5m"),
|
|
4514
|
+
});
|
|
4515
|
+
/** @internal */
|
|
4516
|
+
export type InvokeDeploymentRequest2MessagesCacheControl$Outbound = {
|
|
4517
|
+
type: string;
|
|
4518
|
+
ttl: string;
|
|
4519
|
+
};
|
|
4520
|
+
|
|
4521
|
+
/** @internal */
|
|
4522
|
+
export const InvokeDeploymentRequest2MessagesCacheControl$outboundSchema:
|
|
4523
|
+
z.ZodType<
|
|
4524
|
+
InvokeDeploymentRequest2MessagesCacheControl$Outbound,
|
|
4525
|
+
z.ZodTypeDef,
|
|
4526
|
+
InvokeDeploymentRequest2MessagesCacheControl
|
|
4527
|
+
> = z.object({
|
|
4528
|
+
type: InvokeDeploymentRequest2Messages3ContentType$outboundSchema,
|
|
4529
|
+
ttl: InvokeDeploymentRequest2MessagesTtl$outboundSchema.default("5m"),
|
|
4530
|
+
});
|
|
4531
|
+
|
|
4532
|
+
export function invokeDeploymentRequest2MessagesCacheControlToJSON(
|
|
4533
|
+
invokeDeploymentRequest2MessagesCacheControl:
|
|
4534
|
+
InvokeDeploymentRequest2MessagesCacheControl,
|
|
4535
|
+
): string {
|
|
4536
|
+
return JSON.stringify(
|
|
4537
|
+
InvokeDeploymentRequest2MessagesCacheControl$outboundSchema.parse(
|
|
4538
|
+
invokeDeploymentRequest2MessagesCacheControl,
|
|
4539
|
+
),
|
|
4540
|
+
);
|
|
4541
|
+
}
|
|
4542
|
+
export function invokeDeploymentRequest2MessagesCacheControlFromJSON(
|
|
4543
|
+
jsonString: string,
|
|
4544
|
+
): SafeParseResult<
|
|
4545
|
+
InvokeDeploymentRequest2MessagesCacheControl,
|
|
4546
|
+
SDKValidationError
|
|
4547
|
+
> {
|
|
4548
|
+
return safeParse(
|
|
4549
|
+
jsonString,
|
|
4550
|
+
(x) =>
|
|
4551
|
+
InvokeDeploymentRequest2MessagesCacheControl$inboundSchema.parse(
|
|
4552
|
+
JSON.parse(x),
|
|
4553
|
+
),
|
|
4554
|
+
`Failed to parse 'InvokeDeploymentRequest2MessagesCacheControl' from JSON`,
|
|
4555
|
+
);
|
|
4556
|
+
}
|
|
4557
|
+
|
|
4558
|
+
/** @internal */
|
|
4559
|
+
export const InvokeDeploymentRequest2Messages1$inboundSchema: z.ZodType<
|
|
4560
|
+
InvokeDeploymentRequest2Messages1,
|
|
4561
|
+
z.ZodTypeDef,
|
|
4562
|
+
unknown
|
|
4563
|
+
> = z.object({
|
|
4564
|
+
type: z.literal("text"),
|
|
4565
|
+
text: z.string(),
|
|
4566
|
+
cache_control: z.lazy(() =>
|
|
4567
|
+
InvokeDeploymentRequest2MessagesCacheControl$inboundSchema
|
|
4568
|
+
).optional(),
|
|
4569
|
+
}).transform((v) => {
|
|
4570
|
+
return remap$(v, {
|
|
4571
|
+
"cache_control": "cacheControl",
|
|
4572
|
+
});
|
|
4573
|
+
});
|
|
4574
|
+
/** @internal */
|
|
4575
|
+
export type InvokeDeploymentRequest2Messages1$Outbound = {
|
|
4576
|
+
type: "text";
|
|
4577
|
+
text: string;
|
|
4578
|
+
cache_control?:
|
|
4579
|
+
| InvokeDeploymentRequest2MessagesCacheControl$Outbound
|
|
4580
|
+
| undefined;
|
|
4581
|
+
};
|
|
4582
|
+
|
|
4583
|
+
/** @internal */
|
|
4584
|
+
export const InvokeDeploymentRequest2Messages1$outboundSchema: z.ZodType<
|
|
4585
|
+
InvokeDeploymentRequest2Messages1$Outbound,
|
|
4586
|
+
z.ZodTypeDef,
|
|
4587
|
+
InvokeDeploymentRequest2Messages1
|
|
4588
|
+
> = z.object({
|
|
4589
|
+
type: z.literal("text"),
|
|
4590
|
+
text: z.string(),
|
|
4591
|
+
cacheControl: z.lazy(() =>
|
|
4592
|
+
InvokeDeploymentRequest2MessagesCacheControl$outboundSchema
|
|
4593
|
+
).optional(),
|
|
4594
|
+
}).transform((v) => {
|
|
4595
|
+
return remap$(v, {
|
|
4596
|
+
cacheControl: "cache_control",
|
|
4597
|
+
});
|
|
4598
|
+
});
|
|
4599
|
+
|
|
4600
|
+
export function invokeDeploymentRequest2Messages1ToJSON(
|
|
4601
|
+
invokeDeploymentRequest2Messages1: InvokeDeploymentRequest2Messages1,
|
|
4602
|
+
): string {
|
|
4603
|
+
return JSON.stringify(
|
|
4604
|
+
InvokeDeploymentRequest2Messages1$outboundSchema.parse(
|
|
4605
|
+
invokeDeploymentRequest2Messages1,
|
|
4606
|
+
),
|
|
4607
|
+
);
|
|
4608
|
+
}
|
|
4609
|
+
export function invokeDeploymentRequest2Messages1FromJSON(
|
|
4610
|
+
jsonString: string,
|
|
4611
|
+
): SafeParseResult<InvokeDeploymentRequest2Messages1, SDKValidationError> {
|
|
4612
|
+
return safeParse(
|
|
4613
|
+
jsonString,
|
|
4614
|
+
(x) => InvokeDeploymentRequest2Messages1$inboundSchema.parse(JSON.parse(x)),
|
|
4615
|
+
`Failed to parse 'InvokeDeploymentRequest2Messages1' from JSON`,
|
|
4616
|
+
);
|
|
4617
|
+
}
|
|
4618
|
+
|
|
4619
|
+
/** @internal */
|
|
4620
|
+
export const InvokeDeploymentRequestContentMessages32$inboundSchema: z.ZodType<
|
|
4621
|
+
InvokeDeploymentRequestContentMessages32,
|
|
2877
4622
|
z.ZodTypeDef,
|
|
2878
4623
|
unknown
|
|
2879
4624
|
> = z.union([
|
|
2880
|
-
|
|
2881
|
-
z.object({ type: z.literal("text") }),
|
|
2882
|
-
),
|
|
4625
|
+
z.lazy(() => InvokeDeploymentRequest2Messages1$inboundSchema),
|
|
2883
4626
|
ImageContentPartSchema$inboundSchema,
|
|
2884
4627
|
AudioContentPartSchema$inboundSchema,
|
|
2885
4628
|
z.lazy(() => Two4$inboundSchema),
|
|
2886
4629
|
]);
|
|
2887
4630
|
/** @internal */
|
|
2888
|
-
export type
|
|
2889
|
-
|
|
|
4631
|
+
export type InvokeDeploymentRequestContentMessages32$Outbound =
|
|
4632
|
+
| InvokeDeploymentRequest2Messages1$Outbound
|
|
2890
4633
|
| ImageContentPartSchema$Outbound
|
|
2891
4634
|
| AudioContentPartSchema$Outbound
|
|
2892
4635
|
| Two4$Outbound;
|
|
2893
4636
|
|
|
2894
4637
|
/** @internal */
|
|
2895
|
-
export const
|
|
2896
|
-
|
|
4638
|
+
export const InvokeDeploymentRequestContentMessages32$outboundSchema: z.ZodType<
|
|
4639
|
+
InvokeDeploymentRequestContentMessages32$Outbound,
|
|
2897
4640
|
z.ZodTypeDef,
|
|
2898
|
-
|
|
4641
|
+
InvokeDeploymentRequestContentMessages32
|
|
2899
4642
|
> = z.union([
|
|
2900
|
-
|
|
2901
|
-
z.object({ type: z.literal("text") }),
|
|
2902
|
-
),
|
|
4643
|
+
z.lazy(() => InvokeDeploymentRequest2Messages1$outboundSchema),
|
|
2903
4644
|
ImageContentPartSchema$outboundSchema,
|
|
2904
4645
|
AudioContentPartSchema$outboundSchema,
|
|
2905
4646
|
z.lazy(() => Two4$outboundSchema),
|
|
2906
4647
|
]);
|
|
2907
4648
|
|
|
2908
|
-
export function
|
|
2909
|
-
|
|
2910
|
-
|
|
4649
|
+
export function invokeDeploymentRequestContentMessages32ToJSON(
|
|
4650
|
+
invokeDeploymentRequestContentMessages32:
|
|
4651
|
+
InvokeDeploymentRequestContentMessages32,
|
|
2911
4652
|
): string {
|
|
2912
4653
|
return JSON.stringify(
|
|
2913
|
-
|
|
2914
|
-
|
|
4654
|
+
InvokeDeploymentRequestContentMessages32$outboundSchema.parse(
|
|
4655
|
+
invokeDeploymentRequestContentMessages32,
|
|
2915
4656
|
),
|
|
2916
4657
|
);
|
|
2917
4658
|
}
|
|
2918
|
-
export function
|
|
4659
|
+
export function invokeDeploymentRequestContentMessages32FromJSON(
|
|
2919
4660
|
jsonString: string,
|
|
2920
4661
|
): SafeParseResult<
|
|
2921
|
-
|
|
4662
|
+
InvokeDeploymentRequestContentMessages32,
|
|
2922
4663
|
SDKValidationError
|
|
2923
4664
|
> {
|
|
2924
4665
|
return safeParse(
|
|
2925
4666
|
jsonString,
|
|
2926
4667
|
(x) =>
|
|
2927
|
-
|
|
4668
|
+
InvokeDeploymentRequestContentMessages32$inboundSchema.parse(
|
|
2928
4669
|
JSON.parse(x),
|
|
2929
4670
|
),
|
|
2930
|
-
`Failed to parse '
|
|
4671
|
+
`Failed to parse 'InvokeDeploymentRequestContentMessages32' from JSON`,
|
|
2931
4672
|
);
|
|
2932
4673
|
}
|
|
2933
4674
|
|
|
@@ -2938,22 +4679,18 @@ export const InvokeDeploymentRequestMessages3Content$inboundSchema: z.ZodType<
|
|
|
2938
4679
|
unknown
|
|
2939
4680
|
> = z.union([
|
|
2940
4681
|
z.string(),
|
|
2941
|
-
z.array(
|
|
2942
|
-
z.
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
|
|
2947
|
-
AudioContentPartSchema$inboundSchema,
|
|
2948
|
-
z.lazy(() => Two4$inboundSchema),
|
|
2949
|
-
]),
|
|
2950
|
-
),
|
|
4682
|
+
z.array(z.union([
|
|
4683
|
+
z.lazy(() => InvokeDeploymentRequest2Messages1$inboundSchema),
|
|
4684
|
+
ImageContentPartSchema$inboundSchema,
|
|
4685
|
+
AudioContentPartSchema$inboundSchema,
|
|
4686
|
+
z.lazy(() => Two4$inboundSchema),
|
|
4687
|
+
])),
|
|
2951
4688
|
]);
|
|
2952
4689
|
/** @internal */
|
|
2953
4690
|
export type InvokeDeploymentRequestMessages3Content$Outbound =
|
|
2954
4691
|
| string
|
|
2955
4692
|
| Array<
|
|
2956
|
-
|
|
|
4693
|
+
| InvokeDeploymentRequest2Messages1$Outbound
|
|
2957
4694
|
| ImageContentPartSchema$Outbound
|
|
2958
4695
|
| AudioContentPartSchema$Outbound
|
|
2959
4696
|
| Two4$Outbound
|
|
@@ -2966,16 +4703,12 @@ export const InvokeDeploymentRequestMessages3Content$outboundSchema: z.ZodType<
|
|
|
2966
4703
|
InvokeDeploymentRequestMessages3Content
|
|
2967
4704
|
> = z.union([
|
|
2968
4705
|
z.string(),
|
|
2969
|
-
z.array(
|
|
2970
|
-
z.
|
|
2971
|
-
|
|
2972
|
-
|
|
2973
|
-
|
|
2974
|
-
|
|
2975
|
-
AudioContentPartSchema$outboundSchema,
|
|
2976
|
-
z.lazy(() => Two4$outboundSchema),
|
|
2977
|
-
]),
|
|
2978
|
-
),
|
|
4706
|
+
z.array(z.union([
|
|
4707
|
+
z.lazy(() => InvokeDeploymentRequest2Messages1$outboundSchema),
|
|
4708
|
+
ImageContentPartSchema$outboundSchema,
|
|
4709
|
+
AudioContentPartSchema$outboundSchema,
|
|
4710
|
+
z.lazy(() => Two4$outboundSchema),
|
|
4711
|
+
])),
|
|
2979
4712
|
]);
|
|
2980
4713
|
|
|
2981
4714
|
export function invokeDeploymentRequestMessages3ContentToJSON(
|
|
@@ -3014,16 +4747,12 @@ export const MessagesUserMessage$inboundSchema: z.ZodType<
|
|
|
3014
4747
|
name: z.string().optional(),
|
|
3015
4748
|
content: z.union([
|
|
3016
4749
|
z.string(),
|
|
3017
|
-
z.array(
|
|
3018
|
-
z.
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
AudioContentPartSchema$inboundSchema,
|
|
3024
|
-
z.lazy(() => Two4$inboundSchema),
|
|
3025
|
-
]),
|
|
3026
|
-
),
|
|
4750
|
+
z.array(z.union([
|
|
4751
|
+
z.lazy(() => InvokeDeploymentRequest2Messages1$inboundSchema),
|
|
4752
|
+
ImageContentPartSchema$inboundSchema,
|
|
4753
|
+
AudioContentPartSchema$inboundSchema,
|
|
4754
|
+
z.lazy(() => Two4$inboundSchema),
|
|
4755
|
+
])),
|
|
3027
4756
|
]),
|
|
3028
4757
|
});
|
|
3029
4758
|
/** @internal */
|
|
@@ -3033,7 +4762,7 @@ export type MessagesUserMessage$Outbound = {
|
|
|
3033
4762
|
content:
|
|
3034
4763
|
| string
|
|
3035
4764
|
| Array<
|
|
3036
|
-
|
|
|
4765
|
+
| InvokeDeploymentRequest2Messages1$Outbound
|
|
3037
4766
|
| ImageContentPartSchema$Outbound
|
|
3038
4767
|
| AudioContentPartSchema$Outbound
|
|
3039
4768
|
| Two4$Outbound
|
|
@@ -3050,16 +4779,12 @@ export const MessagesUserMessage$outboundSchema: z.ZodType<
|
|
|
3050
4779
|
name: z.string().optional(),
|
|
3051
4780
|
content: z.union([
|
|
3052
4781
|
z.string(),
|
|
3053
|
-
z.array(
|
|
3054
|
-
z.
|
|
3055
|
-
|
|
3056
|
-
|
|
3057
|
-
|
|
3058
|
-
|
|
3059
|
-
AudioContentPartSchema$outboundSchema,
|
|
3060
|
-
z.lazy(() => Two4$outboundSchema),
|
|
3061
|
-
]),
|
|
3062
|
-
),
|
|
4782
|
+
z.array(z.union([
|
|
4783
|
+
z.lazy(() => InvokeDeploymentRequest2Messages1$outboundSchema),
|
|
4784
|
+
ImageContentPartSchema$outboundSchema,
|
|
4785
|
+
AudioContentPartSchema$outboundSchema,
|
|
4786
|
+
z.lazy(() => Two4$outboundSchema),
|
|
4787
|
+
])),
|
|
3063
4788
|
]),
|
|
3064
4789
|
});
|
|
3065
4790
|
|
|
@@ -3080,23 +4805,181 @@ export function messagesUserMessageFromJSON(
|
|
|
3080
4805
|
);
|
|
3081
4806
|
}
|
|
3082
4807
|
|
|
4808
|
+
/** @internal */
|
|
4809
|
+
export const InvokeDeploymentRequestContentMessages2Type$inboundSchema:
|
|
4810
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentMessages2Type> = z
|
|
4811
|
+
.nativeEnum(InvokeDeploymentRequestContentMessages2Type);
|
|
4812
|
+
/** @internal */
|
|
4813
|
+
export const InvokeDeploymentRequestContentMessages2Type$outboundSchema:
|
|
4814
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentMessages2Type> =
|
|
4815
|
+
InvokeDeploymentRequestContentMessages2Type$inboundSchema;
|
|
4816
|
+
|
|
4817
|
+
/** @internal */
|
|
4818
|
+
export const InvokeDeploymentRequestContentMessages22Type$inboundSchema:
|
|
4819
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentMessages22Type> = z
|
|
4820
|
+
.nativeEnum(InvokeDeploymentRequestContentMessages22Type);
|
|
4821
|
+
/** @internal */
|
|
4822
|
+
export const InvokeDeploymentRequestContentMessages22Type$outboundSchema:
|
|
4823
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentMessages22Type> =
|
|
4824
|
+
InvokeDeploymentRequestContentMessages22Type$inboundSchema;
|
|
4825
|
+
|
|
4826
|
+
/** @internal */
|
|
4827
|
+
export const InvokeDeploymentRequestContentMessages2Ttl$inboundSchema:
|
|
4828
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentMessages2Ttl> = z
|
|
4829
|
+
.nativeEnum(InvokeDeploymentRequestContentMessages2Ttl);
|
|
4830
|
+
/** @internal */
|
|
4831
|
+
export const InvokeDeploymentRequestContentMessages2Ttl$outboundSchema:
|
|
4832
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentMessages2Ttl> =
|
|
4833
|
+
InvokeDeploymentRequestContentMessages2Ttl$inboundSchema;
|
|
4834
|
+
|
|
4835
|
+
/** @internal */
|
|
4836
|
+
export const InvokeDeploymentRequestContentMessages2CacheControl$inboundSchema:
|
|
4837
|
+
z.ZodType<
|
|
4838
|
+
InvokeDeploymentRequestContentMessages2CacheControl,
|
|
4839
|
+
z.ZodTypeDef,
|
|
4840
|
+
unknown
|
|
4841
|
+
> = z.object({
|
|
4842
|
+
type: InvokeDeploymentRequestContentMessages22Type$inboundSchema,
|
|
4843
|
+
ttl: InvokeDeploymentRequestContentMessages2Ttl$inboundSchema.default("5m"),
|
|
4844
|
+
});
|
|
4845
|
+
/** @internal */
|
|
4846
|
+
export type InvokeDeploymentRequestContentMessages2CacheControl$Outbound = {
|
|
4847
|
+
type: string;
|
|
4848
|
+
ttl: string;
|
|
4849
|
+
};
|
|
4850
|
+
|
|
4851
|
+
/** @internal */
|
|
4852
|
+
export const InvokeDeploymentRequestContentMessages2CacheControl$outboundSchema:
|
|
4853
|
+
z.ZodType<
|
|
4854
|
+
InvokeDeploymentRequestContentMessages2CacheControl$Outbound,
|
|
4855
|
+
z.ZodTypeDef,
|
|
4856
|
+
InvokeDeploymentRequestContentMessages2CacheControl
|
|
4857
|
+
> = z.object({
|
|
4858
|
+
type: InvokeDeploymentRequestContentMessages22Type$outboundSchema,
|
|
4859
|
+
ttl: InvokeDeploymentRequestContentMessages2Ttl$outboundSchema.default(
|
|
4860
|
+
"5m",
|
|
4861
|
+
),
|
|
4862
|
+
});
|
|
4863
|
+
|
|
4864
|
+
export function invokeDeploymentRequestContentMessages2CacheControlToJSON(
|
|
4865
|
+
invokeDeploymentRequestContentMessages2CacheControl:
|
|
4866
|
+
InvokeDeploymentRequestContentMessages2CacheControl,
|
|
4867
|
+
): string {
|
|
4868
|
+
return JSON.stringify(
|
|
4869
|
+
InvokeDeploymentRequestContentMessages2CacheControl$outboundSchema.parse(
|
|
4870
|
+
invokeDeploymentRequestContentMessages2CacheControl,
|
|
4871
|
+
),
|
|
4872
|
+
);
|
|
4873
|
+
}
|
|
4874
|
+
export function invokeDeploymentRequestContentMessages2CacheControlFromJSON(
|
|
4875
|
+
jsonString: string,
|
|
4876
|
+
): SafeParseResult<
|
|
4877
|
+
InvokeDeploymentRequestContentMessages2CacheControl,
|
|
4878
|
+
SDKValidationError
|
|
4879
|
+
> {
|
|
4880
|
+
return safeParse(
|
|
4881
|
+
jsonString,
|
|
4882
|
+
(x) =>
|
|
4883
|
+
InvokeDeploymentRequestContentMessages2CacheControl$inboundSchema.parse(
|
|
4884
|
+
JSON.parse(x),
|
|
4885
|
+
),
|
|
4886
|
+
`Failed to parse 'InvokeDeploymentRequestContentMessages2CacheControl' from JSON`,
|
|
4887
|
+
);
|
|
4888
|
+
}
|
|
4889
|
+
|
|
4890
|
+
/** @internal */
|
|
4891
|
+
export const InvokeDeploymentRequestContentMessages22$inboundSchema: z.ZodType<
|
|
4892
|
+
InvokeDeploymentRequestContentMessages22,
|
|
4893
|
+
z.ZodTypeDef,
|
|
4894
|
+
unknown
|
|
4895
|
+
> = z.object({
|
|
4896
|
+
type: InvokeDeploymentRequestContentMessages2Type$inboundSchema,
|
|
4897
|
+
text: z.string(),
|
|
4898
|
+
cache_control: z.lazy(() =>
|
|
4899
|
+
InvokeDeploymentRequestContentMessages2CacheControl$inboundSchema
|
|
4900
|
+
).optional(),
|
|
4901
|
+
}).transform((v) => {
|
|
4902
|
+
return remap$(v, {
|
|
4903
|
+
"cache_control": "cacheControl",
|
|
4904
|
+
});
|
|
4905
|
+
});
|
|
4906
|
+
/** @internal */
|
|
4907
|
+
export type InvokeDeploymentRequestContentMessages22$Outbound = {
|
|
4908
|
+
type: string;
|
|
4909
|
+
text: string;
|
|
4910
|
+
cache_control?:
|
|
4911
|
+
| InvokeDeploymentRequestContentMessages2CacheControl$Outbound
|
|
4912
|
+
| undefined;
|
|
4913
|
+
};
|
|
4914
|
+
|
|
4915
|
+
/** @internal */
|
|
4916
|
+
export const InvokeDeploymentRequestContentMessages22$outboundSchema: z.ZodType<
|
|
4917
|
+
InvokeDeploymentRequestContentMessages22$Outbound,
|
|
4918
|
+
z.ZodTypeDef,
|
|
4919
|
+
InvokeDeploymentRequestContentMessages22
|
|
4920
|
+
> = z.object({
|
|
4921
|
+
type: InvokeDeploymentRequestContentMessages2Type$outboundSchema,
|
|
4922
|
+
text: z.string(),
|
|
4923
|
+
cacheControl: z.lazy(() =>
|
|
4924
|
+
InvokeDeploymentRequestContentMessages2CacheControl$outboundSchema
|
|
4925
|
+
).optional(),
|
|
4926
|
+
}).transform((v) => {
|
|
4927
|
+
return remap$(v, {
|
|
4928
|
+
cacheControl: "cache_control",
|
|
4929
|
+
});
|
|
4930
|
+
});
|
|
4931
|
+
|
|
4932
|
+
export function invokeDeploymentRequestContentMessages22ToJSON(
|
|
4933
|
+
invokeDeploymentRequestContentMessages22:
|
|
4934
|
+
InvokeDeploymentRequestContentMessages22,
|
|
4935
|
+
): string {
|
|
4936
|
+
return JSON.stringify(
|
|
4937
|
+
InvokeDeploymentRequestContentMessages22$outboundSchema.parse(
|
|
4938
|
+
invokeDeploymentRequestContentMessages22,
|
|
4939
|
+
),
|
|
4940
|
+
);
|
|
4941
|
+
}
|
|
4942
|
+
export function invokeDeploymentRequestContentMessages22FromJSON(
|
|
4943
|
+
jsonString: string,
|
|
4944
|
+
): SafeParseResult<
|
|
4945
|
+
InvokeDeploymentRequestContentMessages22,
|
|
4946
|
+
SDKValidationError
|
|
4947
|
+
> {
|
|
4948
|
+
return safeParse(
|
|
4949
|
+
jsonString,
|
|
4950
|
+
(x) =>
|
|
4951
|
+
InvokeDeploymentRequestContentMessages22$inboundSchema.parse(
|
|
4952
|
+
JSON.parse(x),
|
|
4953
|
+
),
|
|
4954
|
+
`Failed to parse 'InvokeDeploymentRequestContentMessages22' from JSON`,
|
|
4955
|
+
);
|
|
4956
|
+
}
|
|
4957
|
+
|
|
3083
4958
|
/** @internal */
|
|
3084
4959
|
export const InvokeDeploymentRequestMessagesContent$inboundSchema: z.ZodType<
|
|
3085
4960
|
InvokeDeploymentRequestMessagesContent,
|
|
3086
4961
|
z.ZodTypeDef,
|
|
3087
4962
|
unknown
|
|
3088
|
-
> = z.union([
|
|
4963
|
+
> = z.union([
|
|
4964
|
+
z.string(),
|
|
4965
|
+
z.array(z.lazy(() => InvokeDeploymentRequestContentMessages22$inboundSchema)),
|
|
4966
|
+
]);
|
|
3089
4967
|
/** @internal */
|
|
3090
4968
|
export type InvokeDeploymentRequestMessagesContent$Outbound =
|
|
3091
4969
|
| string
|
|
3092
|
-
| Array<
|
|
4970
|
+
| Array<InvokeDeploymentRequestContentMessages22$Outbound>;
|
|
3093
4971
|
|
|
3094
4972
|
/** @internal */
|
|
3095
4973
|
export const InvokeDeploymentRequestMessagesContent$outboundSchema: z.ZodType<
|
|
3096
4974
|
InvokeDeploymentRequestMessagesContent$Outbound,
|
|
3097
4975
|
z.ZodTypeDef,
|
|
3098
4976
|
InvokeDeploymentRequestMessagesContent
|
|
3099
|
-
> = z.union([
|
|
4977
|
+
> = z.union([
|
|
4978
|
+
z.string(),
|
|
4979
|
+
z.array(
|
|
4980
|
+
z.lazy(() => InvokeDeploymentRequestContentMessages22$outboundSchema),
|
|
4981
|
+
),
|
|
4982
|
+
]);
|
|
3100
4983
|
|
|
3101
4984
|
export function invokeDeploymentRequestMessagesContentToJSON(
|
|
3102
4985
|
invokeDeploymentRequestMessagesContent:
|
|
@@ -3126,13 +5009,18 @@ export const MessagesDeveloperMessage$inboundSchema: z.ZodType<
|
|
|
3126
5009
|
unknown
|
|
3127
5010
|
> = z.object({
|
|
3128
5011
|
role: z.literal("developer"),
|
|
3129
|
-
content: z.union([
|
|
5012
|
+
content: z.union([
|
|
5013
|
+
z.string(),
|
|
5014
|
+
z.array(
|
|
5015
|
+
z.lazy(() => InvokeDeploymentRequestContentMessages22$inboundSchema),
|
|
5016
|
+
),
|
|
5017
|
+
]),
|
|
3130
5018
|
name: z.string().optional(),
|
|
3131
5019
|
});
|
|
3132
5020
|
/** @internal */
|
|
3133
5021
|
export type MessagesDeveloperMessage$Outbound = {
|
|
3134
5022
|
role: "developer";
|
|
3135
|
-
content: string | Array<
|
|
5023
|
+
content: string | Array<InvokeDeploymentRequestContentMessages22$Outbound>;
|
|
3136
5024
|
name?: string | undefined;
|
|
3137
5025
|
};
|
|
3138
5026
|
|
|
@@ -3143,7 +5031,12 @@ export const MessagesDeveloperMessage$outboundSchema: z.ZodType<
|
|
|
3143
5031
|
MessagesDeveloperMessage
|
|
3144
5032
|
> = z.object({
|
|
3145
5033
|
role: z.literal("developer"),
|
|
3146
|
-
content: z.union([
|
|
5034
|
+
content: z.union([
|
|
5035
|
+
z.string(),
|
|
5036
|
+
z.array(
|
|
5037
|
+
z.lazy(() => InvokeDeploymentRequestContentMessages22$outboundSchema),
|
|
5038
|
+
),
|
|
5039
|
+
]),
|
|
3147
5040
|
name: z.string().optional(),
|
|
3148
5041
|
});
|
|
3149
5042
|
|
|
@@ -3164,23 +5057,177 @@ export function messagesDeveloperMessageFromJSON(
|
|
|
3164
5057
|
);
|
|
3165
5058
|
}
|
|
3166
5059
|
|
|
5060
|
+
/** @internal */
|
|
5061
|
+
export const InvokeDeploymentRequestContentMessagesType$inboundSchema:
|
|
5062
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentMessagesType> = z
|
|
5063
|
+
.nativeEnum(InvokeDeploymentRequestContentMessagesType);
|
|
5064
|
+
/** @internal */
|
|
5065
|
+
export const InvokeDeploymentRequestContentMessagesType$outboundSchema:
|
|
5066
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentMessagesType> =
|
|
5067
|
+
InvokeDeploymentRequestContentMessagesType$inboundSchema;
|
|
5068
|
+
|
|
5069
|
+
/** @internal */
|
|
5070
|
+
export const InvokeDeploymentRequestContentMessages1Type$inboundSchema:
|
|
5071
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentMessages1Type> = z
|
|
5072
|
+
.nativeEnum(InvokeDeploymentRequestContentMessages1Type);
|
|
5073
|
+
/** @internal */
|
|
5074
|
+
export const InvokeDeploymentRequestContentMessages1Type$outboundSchema:
|
|
5075
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentMessages1Type> =
|
|
5076
|
+
InvokeDeploymentRequestContentMessages1Type$inboundSchema;
|
|
5077
|
+
|
|
5078
|
+
/** @internal */
|
|
5079
|
+
export const InvokeDeploymentRequestContentMessagesTtl$inboundSchema:
|
|
5080
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentMessagesTtl> = z
|
|
5081
|
+
.nativeEnum(InvokeDeploymentRequestContentMessagesTtl);
|
|
5082
|
+
/** @internal */
|
|
5083
|
+
export const InvokeDeploymentRequestContentMessagesTtl$outboundSchema:
|
|
5084
|
+
z.ZodNativeEnum<typeof InvokeDeploymentRequestContentMessagesTtl> =
|
|
5085
|
+
InvokeDeploymentRequestContentMessagesTtl$inboundSchema;
|
|
5086
|
+
|
|
5087
|
+
/** @internal */
|
|
5088
|
+
export const InvokeDeploymentRequestContentMessagesCacheControl$inboundSchema:
|
|
5089
|
+
z.ZodType<
|
|
5090
|
+
InvokeDeploymentRequestContentMessagesCacheControl,
|
|
5091
|
+
z.ZodTypeDef,
|
|
5092
|
+
unknown
|
|
5093
|
+
> = z.object({
|
|
5094
|
+
type: InvokeDeploymentRequestContentMessages1Type$inboundSchema,
|
|
5095
|
+
ttl: InvokeDeploymentRequestContentMessagesTtl$inboundSchema.default("5m"),
|
|
5096
|
+
});
|
|
5097
|
+
/** @internal */
|
|
5098
|
+
export type InvokeDeploymentRequestContentMessagesCacheControl$Outbound = {
|
|
5099
|
+
type: string;
|
|
5100
|
+
ttl: string;
|
|
5101
|
+
};
|
|
5102
|
+
|
|
5103
|
+
/** @internal */
|
|
5104
|
+
export const InvokeDeploymentRequestContentMessagesCacheControl$outboundSchema:
|
|
5105
|
+
z.ZodType<
|
|
5106
|
+
InvokeDeploymentRequestContentMessagesCacheControl$Outbound,
|
|
5107
|
+
z.ZodTypeDef,
|
|
5108
|
+
InvokeDeploymentRequestContentMessagesCacheControl
|
|
5109
|
+
> = z.object({
|
|
5110
|
+
type: InvokeDeploymentRequestContentMessages1Type$outboundSchema,
|
|
5111
|
+
ttl: InvokeDeploymentRequestContentMessagesTtl$outboundSchema.default("5m"),
|
|
5112
|
+
});
|
|
5113
|
+
|
|
5114
|
+
export function invokeDeploymentRequestContentMessagesCacheControlToJSON(
|
|
5115
|
+
invokeDeploymentRequestContentMessagesCacheControl:
|
|
5116
|
+
InvokeDeploymentRequestContentMessagesCacheControl,
|
|
5117
|
+
): string {
|
|
5118
|
+
return JSON.stringify(
|
|
5119
|
+
InvokeDeploymentRequestContentMessagesCacheControl$outboundSchema.parse(
|
|
5120
|
+
invokeDeploymentRequestContentMessagesCacheControl,
|
|
5121
|
+
),
|
|
5122
|
+
);
|
|
5123
|
+
}
|
|
5124
|
+
export function invokeDeploymentRequestContentMessagesCacheControlFromJSON(
|
|
5125
|
+
jsonString: string,
|
|
5126
|
+
): SafeParseResult<
|
|
5127
|
+
InvokeDeploymentRequestContentMessagesCacheControl,
|
|
5128
|
+
SDKValidationError
|
|
5129
|
+
> {
|
|
5130
|
+
return safeParse(
|
|
5131
|
+
jsonString,
|
|
5132
|
+
(x) =>
|
|
5133
|
+
InvokeDeploymentRequestContentMessagesCacheControl$inboundSchema.parse(
|
|
5134
|
+
JSON.parse(x),
|
|
5135
|
+
),
|
|
5136
|
+
`Failed to parse 'InvokeDeploymentRequestContentMessagesCacheControl' from JSON`,
|
|
5137
|
+
);
|
|
5138
|
+
}
|
|
5139
|
+
|
|
5140
|
+
/** @internal */
|
|
5141
|
+
export const InvokeDeploymentRequestContentMessages2$inboundSchema: z.ZodType<
|
|
5142
|
+
InvokeDeploymentRequestContentMessages2,
|
|
5143
|
+
z.ZodTypeDef,
|
|
5144
|
+
unknown
|
|
5145
|
+
> = z.object({
|
|
5146
|
+
type: InvokeDeploymentRequestContentMessagesType$inboundSchema,
|
|
5147
|
+
text: z.string(),
|
|
5148
|
+
cache_control: z.lazy(() =>
|
|
5149
|
+
InvokeDeploymentRequestContentMessagesCacheControl$inboundSchema
|
|
5150
|
+
).optional(),
|
|
5151
|
+
}).transform((v) => {
|
|
5152
|
+
return remap$(v, {
|
|
5153
|
+
"cache_control": "cacheControl",
|
|
5154
|
+
});
|
|
5155
|
+
});
|
|
5156
|
+
/** @internal */
|
|
5157
|
+
export type InvokeDeploymentRequestContentMessages2$Outbound = {
|
|
5158
|
+
type: string;
|
|
5159
|
+
text: string;
|
|
5160
|
+
cache_control?:
|
|
5161
|
+
| InvokeDeploymentRequestContentMessagesCacheControl$Outbound
|
|
5162
|
+
| undefined;
|
|
5163
|
+
};
|
|
5164
|
+
|
|
5165
|
+
/** @internal */
|
|
5166
|
+
export const InvokeDeploymentRequestContentMessages2$outboundSchema: z.ZodType<
|
|
5167
|
+
InvokeDeploymentRequestContentMessages2$Outbound,
|
|
5168
|
+
z.ZodTypeDef,
|
|
5169
|
+
InvokeDeploymentRequestContentMessages2
|
|
5170
|
+
> = z.object({
|
|
5171
|
+
type: InvokeDeploymentRequestContentMessagesType$outboundSchema,
|
|
5172
|
+
text: z.string(),
|
|
5173
|
+
cacheControl: z.lazy(() =>
|
|
5174
|
+
InvokeDeploymentRequestContentMessagesCacheControl$outboundSchema
|
|
5175
|
+
).optional(),
|
|
5176
|
+
}).transform((v) => {
|
|
5177
|
+
return remap$(v, {
|
|
5178
|
+
cacheControl: "cache_control",
|
|
5179
|
+
});
|
|
5180
|
+
});
|
|
5181
|
+
|
|
5182
|
+
export function invokeDeploymentRequestContentMessages2ToJSON(
|
|
5183
|
+
invokeDeploymentRequestContentMessages2:
|
|
5184
|
+
InvokeDeploymentRequestContentMessages2,
|
|
5185
|
+
): string {
|
|
5186
|
+
return JSON.stringify(
|
|
5187
|
+
InvokeDeploymentRequestContentMessages2$outboundSchema.parse(
|
|
5188
|
+
invokeDeploymentRequestContentMessages2,
|
|
5189
|
+
),
|
|
5190
|
+
);
|
|
5191
|
+
}
|
|
5192
|
+
export function invokeDeploymentRequestContentMessages2FromJSON(
|
|
5193
|
+
jsonString: string,
|
|
5194
|
+
): SafeParseResult<
|
|
5195
|
+
InvokeDeploymentRequestContentMessages2,
|
|
5196
|
+
SDKValidationError
|
|
5197
|
+
> {
|
|
5198
|
+
return safeParse(
|
|
5199
|
+
jsonString,
|
|
5200
|
+
(x) =>
|
|
5201
|
+
InvokeDeploymentRequestContentMessages2$inboundSchema.parse(
|
|
5202
|
+
JSON.parse(x),
|
|
5203
|
+
),
|
|
5204
|
+
`Failed to parse 'InvokeDeploymentRequestContentMessages2' from JSON`,
|
|
5205
|
+
);
|
|
5206
|
+
}
|
|
5207
|
+
|
|
3167
5208
|
/** @internal */
|
|
3168
5209
|
export const MessagesContent$inboundSchema: z.ZodType<
|
|
3169
5210
|
MessagesContent,
|
|
3170
5211
|
z.ZodTypeDef,
|
|
3171
5212
|
unknown
|
|
3172
|
-
> = z.union([
|
|
5213
|
+
> = z.union([
|
|
5214
|
+
z.string(),
|
|
5215
|
+
z.array(z.lazy(() => InvokeDeploymentRequestContentMessages2$inboundSchema)),
|
|
5216
|
+
]);
|
|
3173
5217
|
/** @internal */
|
|
3174
5218
|
export type MessagesContent$Outbound =
|
|
3175
5219
|
| string
|
|
3176
|
-
| Array<
|
|
5220
|
+
| Array<InvokeDeploymentRequestContentMessages2$Outbound>;
|
|
3177
5221
|
|
|
3178
5222
|
/** @internal */
|
|
3179
5223
|
export const MessagesContent$outboundSchema: z.ZodType<
|
|
3180
5224
|
MessagesContent$Outbound,
|
|
3181
5225
|
z.ZodTypeDef,
|
|
3182
5226
|
MessagesContent
|
|
3183
|
-
> = z.union([
|
|
5227
|
+
> = z.union([
|
|
5228
|
+
z.string(),
|
|
5229
|
+
z.array(z.lazy(() => InvokeDeploymentRequestContentMessages2$outboundSchema)),
|
|
5230
|
+
]);
|
|
3184
5231
|
|
|
3185
5232
|
export function messagesContentToJSON(
|
|
3186
5233
|
messagesContent: MessagesContent,
|
|
@@ -3204,13 +5251,18 @@ export const MessagesSystemMessage$inboundSchema: z.ZodType<
|
|
|
3204
5251
|
unknown
|
|
3205
5252
|
> = z.object({
|
|
3206
5253
|
role: z.literal("system"),
|
|
3207
|
-
content: z.union([
|
|
5254
|
+
content: z.union([
|
|
5255
|
+
z.string(),
|
|
5256
|
+
z.array(
|
|
5257
|
+
z.lazy(() => InvokeDeploymentRequestContentMessages2$inboundSchema),
|
|
5258
|
+
),
|
|
5259
|
+
]),
|
|
3208
5260
|
name: z.string().optional(),
|
|
3209
5261
|
});
|
|
3210
5262
|
/** @internal */
|
|
3211
5263
|
export type MessagesSystemMessage$Outbound = {
|
|
3212
5264
|
role: "system";
|
|
3213
|
-
content: string | Array<
|
|
5265
|
+
content: string | Array<InvokeDeploymentRequestContentMessages2$Outbound>;
|
|
3214
5266
|
name?: string | undefined;
|
|
3215
5267
|
};
|
|
3216
5268
|
|
|
@@ -3221,7 +5273,12 @@ export const MessagesSystemMessage$outboundSchema: z.ZodType<
|
|
|
3221
5273
|
MessagesSystemMessage
|
|
3222
5274
|
> = z.object({
|
|
3223
5275
|
role: z.literal("system"),
|
|
3224
|
-
content: z.union([
|
|
5276
|
+
content: z.union([
|
|
5277
|
+
z.string(),
|
|
5278
|
+
z.array(
|
|
5279
|
+
z.lazy(() => InvokeDeploymentRequestContentMessages2$outboundSchema),
|
|
5280
|
+
),
|
|
5281
|
+
]),
|
|
3225
5282
|
name: z.string().optional(),
|
|
3226
5283
|
});
|
|
3227
5284
|
|