@orq-ai/node 4.11.0-rc.3 → 4.11.0-rc.30
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 +55 -36
- package/funcs/agentsInvoke.d.ts +1 -1
- package/funcs/agentsInvoke.d.ts.map +1 -1
- package/funcs/agentsInvoke.js.map +1 -1
- package/funcs/agentsResponsesCreate.d.ts +2 -1
- package/funcs/agentsResponsesCreate.d.ts.map +1 -1
- package/funcs/agentsResponsesCreate.js +7 -5
- package/funcs/agentsResponsesCreate.js.map +1 -1
- package/funcs/agentsStream.d.ts +1 -1
- package/funcs/agentsStream.d.ts.map +1 -1
- package/funcs/agentsStream.js.map +1 -1
- package/funcs/annotationsCreate.d.ts +1 -1
- package/funcs/annotationsCreate.js +1 -1
- package/funcs/annotationsDelete.d.ts +1 -1
- package/funcs/annotationsDelete.js +1 -1
- package/funcs/budgetsCheck.d.ts +17 -0
- package/funcs/budgetsCheck.d.ts.map +1 -0
- package/funcs/budgetsCheck.js +115 -0
- package/funcs/budgetsCheck.js.map +1 -0
- package/funcs/budgetsCreate.d.ts +17 -0
- package/funcs/budgetsCreate.d.ts.map +1 -0
- package/funcs/budgetsCreate.js +115 -0
- package/funcs/budgetsCreate.js.map +1 -0
- package/funcs/budgetsDelete.d.ts +18 -0
- package/funcs/budgetsDelete.d.ts.map +1 -0
- package/funcs/budgetsDelete.js +121 -0
- package/funcs/budgetsDelete.js.map +1 -0
- package/funcs/budgetsGet.d.ts +18 -0
- package/funcs/budgetsGet.d.ts.map +1 -0
- package/funcs/budgetsGet.js +121 -0
- package/funcs/budgetsGet.js.map +1 -0
- package/funcs/budgetsGetConsumption.d.ts +18 -0
- package/funcs/budgetsGetConsumption.d.ts.map +1 -0
- package/funcs/budgetsGetConsumption.js +121 -0
- package/funcs/budgetsGetConsumption.js.map +1 -0
- package/funcs/budgetsList.d.ts +18 -0
- package/funcs/budgetsList.d.ts.map +1 -0
- package/funcs/budgetsList.js +127 -0
- package/funcs/budgetsList.js.map +1 -0
- package/funcs/budgetsResetConsumption.d.ts +18 -0
- package/funcs/budgetsResetConsumption.d.ts.map +1 -0
- package/funcs/budgetsResetConsumption.js +124 -0
- package/funcs/budgetsResetConsumption.js.map +1 -0
- package/funcs/budgetsUpdate.d.ts +18 -0
- package/funcs/budgetsUpdate.d.ts.map +1 -0
- package/funcs/budgetsUpdate.js +124 -0
- package/funcs/budgetsUpdate.js.map +1 -0
- package/funcs/datasetsList.js +2 -0
- package/funcs/datasetsList.js.map +1 -1
- package/funcs/deploymentsInvoke.d.ts +2 -1
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +2 -1
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/evalsAll.js +1 -0
- package/funcs/evalsAll.js.map +1 -1
- package/funcs/knowledgeList.js +3 -0
- package/funcs/knowledgeList.js.map +1 -1
- package/funcs/memoryStoresList.js +2 -0
- package/funcs/memoryStoresList.js.map +1 -1
- package/funcs/promptsCreate.d.ts +1 -1
- package/funcs/promptsCreate.d.ts.map +1 -1
- package/funcs/promptsCreate.js +2 -1
- package/funcs/promptsCreate.js.map +1 -1
- package/hooks/types.d.ts +1 -0
- package/hooks/types.d.ts.map +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/lib/config.js.map +1 -1
- package/lib/encodings.js +12 -12
- package/lib/encodings.js.map +1 -1
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +3 -3
- package/lib/env.js.map +1 -1
- package/lib/event-streams.d.ts.map +1 -1
- package/lib/event-streams.js +28 -13
- package/lib/event-streams.js.map +1 -1
- package/lib/matchers.js +3 -3
- package/lib/matchers.js.map +1 -1
- package/lib/primitives.d.ts +1 -0
- package/lib/primitives.d.ts.map +1 -1
- package/lib/primitives.js +18 -0
- package/lib/primitives.js.map +1 -1
- package/lib/retries.js +7 -0
- package/lib/retries.js.map +1 -1
- package/lib/sdks.d.ts.map +1 -1
- package/lib/sdks.js +50 -16
- package/lib/sdks.js.map +1 -1
- package/models/components/agentresponserequest.d.ts +336 -0
- package/models/components/agentresponserequest.d.ts.map +1 -0
- package/models/components/agentresponserequest.js +210 -0
- package/models/components/agentresponserequest.js.map +1 -0
- package/models/components/agentthoughtstreamingevent.d.ts +12 -12
- package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
- package/models/components/agentthoughtstreamingevent.js +17 -17
- package/models/components/agentthoughtstreamingevent.js.map +1 -1
- package/models/components/apikeybudgetscope.d.ts +23 -0
- package/models/components/apikeybudgetscope.d.ts.map +1 -0
- package/models/components/apikeybudgetscope.js +67 -0
- package/models/components/apikeybudgetscope.js.map +1 -0
- package/models/components/azurefoundrydeployment.d.ts +3 -0
- package/models/components/azurefoundrydeployment.d.ts.map +1 -1
- package/models/components/azurefoundrydeployment.js +4 -0
- package/models/components/azurefoundrydeployment.js.map +1 -1
- package/models/components/budget.d.ts +71 -0
- package/models/components/budget.d.ts.map +1 -0
- package/models/components/budget.js +75 -0
- package/models/components/budget.js.map +1 -0
- package/models/components/budgetlimits.d.ts +37 -0
- package/models/components/budgetlimits.d.ts.map +1 -0
- package/models/components/budgetlimits.js +72 -0
- package/models/components/budgetlimits.js.map +1 -0
- package/models/components/budgetmatch.d.ts +26 -0
- package/models/components/budgetmatch.d.ts.map +1 -0
- package/models/components/budgetmatch.js +58 -0
- package/models/components/budgetmatch.js.map +1 -0
- package/models/components/budgetperiod.d.ts +16 -0
- package/models/components/budgetperiod.d.ts.map +1 -0
- package/models/components/budgetperiod.js +53 -0
- package/models/components/budgetperiod.js.map +1 -0
- package/models/components/budgetrejection.d.ts +17 -0
- package/models/components/budgetrejection.d.ts.map +1 -0
- package/models/components/budgetrejection.js +60 -0
- package/models/components/budgetrejection.js.map +1 -0
- package/models/components/budgetscope.d.ts +71 -0
- package/models/components/budgetscope.d.ts.map +1 -0
- package/models/components/budgetscope.js +83 -0
- package/models/components/budgetscope.js.map +1 -0
- package/models/components/budgetscopekind.d.ts +15 -0
- package/models/components/budgetscopekind.d.ts.map +1 -0
- package/models/components/budgetscopekind.js +52 -0
- package/models/components/budgetscopekind.js.map +1 -0
- package/models/components/budgetsortfield.d.ts +12 -0
- package/models/components/budgetsortfield.d.ts.map +1 -0
- package/models/components/budgetsortfield.js +49 -0
- package/models/components/budgetsortfield.js.map +1 -0
- package/models/components/budgetusage.d.ts +31 -0
- package/models/components/budgetusage.d.ts.map +1 -0
- package/models/components/budgetusage.js +52 -0
- package/models/components/budgetusage.js.map +1 -0
- package/models/components/checkbudgetsrequest.d.ts +72 -0
- package/models/components/checkbudgetsrequest.d.ts.map +1 -0
- package/models/components/checkbudgetsrequest.js +69 -0
- package/models/components/checkbudgetsrequest.js.map +1 -0
- package/models/components/checkbudgetsresponse.d.ts +34 -0
- package/models/components/checkbudgetsresponse.d.ts.map +1 -0
- package/models/components/checkbudgetsresponse.js +56 -0
- package/models/components/checkbudgetsresponse.js.map +1 -0
- package/models/components/createbudgetrequest.d.ts +62 -0
- package/models/components/createbudgetrequest.d.ts.map +1 -0
- package/models/components/createbudgetrequest.js +65 -0
- package/models/components/createbudgetrequest.js.map +1 -0
- package/models/components/createbudgetresponse.d.ts +14 -0
- package/models/components/createbudgetresponse.d.ts.map +1 -0
- package/models/components/createbudgetresponse.js +51 -0
- package/models/components/createbudgetresponse.js.map +1 -0
- package/models/components/deletebudgetresponse.d.ts +8 -0
- package/models/components/deletebudgetresponse.d.ts.map +1 -0
- package/models/components/deletebudgetresponse.js +48 -0
- package/models/components/deletebudgetresponse.js.map +1 -0
- package/models/components/dimensioninfo.d.ts +15 -0
- package/models/components/dimensioninfo.d.ts.map +1 -0
- package/models/components/dimensioninfo.js +57 -0
- package/models/components/dimensioninfo.js.map +1 -0
- package/models/components/getbudgetconsumptionresponse.d.ts +38 -0
- package/models/components/getbudgetconsumptionresponse.d.ts.map +1 -0
- package/models/components/getbudgetconsumptionresponse.js +63 -0
- package/models/components/getbudgetconsumptionresponse.js.map +1 -0
- package/models/components/getbudgetresponse.d.ts +14 -0
- package/models/components/getbudgetresponse.d.ts.map +1 -0
- package/models/components/getbudgetresponse.js +51 -0
- package/models/components/getbudgetresponse.js.map +1 -0
- package/models/components/identity.d.ts +4 -4
- package/models/components/identity.d.ts.map +1 -1
- package/models/components/identity.js +6 -6
- package/models/components/identity.js.map +1 -1
- package/models/components/identitybudgetscope.d.ts +23 -0
- package/models/components/identitybudgetscope.d.ts.map +1 -0
- package/models/components/identitybudgetscope.js +67 -0
- package/models/components/identitybudgetscope.js.map +1 -0
- package/models/components/index.d.ts +79 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +79 -0
- package/models/components/index.js.map +1 -1
- package/models/components/invokedeploymentrequest.d.ts +1573 -0
- package/models/components/invokedeploymentrequest.d.ts.map +1 -0
- package/models/components/invokedeploymentrequest.js +1137 -0
- package/models/components/invokedeploymentrequest.js.map +1 -0
- package/models/components/listbudgetsresponse.d.ts +25 -0
- package/models/components/listbudgetsresponse.d.ts.map +1 -0
- package/models/components/listbudgetsresponse.js +58 -0
- package/models/components/listbudgetsresponse.js.map +1 -0
- package/models/components/modelbudgetscope.d.ts +24 -0
- package/models/components/modelbudgetscope.d.ts.map +1 -0
- package/models/components/modelbudgetscope.js +67 -0
- package/models/components/modelbudgetscope.js.map +1 -0
- package/models/components/modelmetadata.d.ts +6 -0
- package/models/components/modelmetadata.d.ts.map +1 -1
- package/models/components/modelmetadata.js +12 -0
- package/models/components/modelmetadata.js.map +1 -1
- package/models/components/projectbudgetscope.d.ts +20 -0
- package/models/components/projectbudgetscope.d.ts.map +1 -0
- package/models/components/projectbudgetscope.js +67 -0
- package/models/components/projectbudgetscope.js.map +1 -0
- package/models/components/providerbudgetscope.d.ts +23 -0
- package/models/components/providerbudgetscope.d.ts.map +1 -0
- package/models/components/providerbudgetscope.js +58 -0
- package/models/components/providerbudgetscope.js.map +1 -0
- package/models/components/publicresponseresource.d.ts +105 -0
- package/models/components/publicresponseresource.d.ts.map +1 -0
- package/models/components/publicresponseresource.js +138 -0
- package/models/components/publicresponseresource.js.map +1 -0
- package/models/components/ratelimit.d.ts +23 -0
- package/models/components/ratelimit.d.ts.map +1 -0
- package/models/components/ratelimit.js +67 -0
- package/models/components/ratelimit.js.map +1 -0
- package/models/components/reasoning.d.ts +40 -2
- package/models/components/reasoning.d.ts.map +1 -1
- package/models/components/reasoning.js +26 -3
- package/models/components/reasoning.js.map +1 -1
- package/models/components/reasoningparam.d.ts +40 -2
- package/models/components/reasoningparam.d.ts.map +1 -1
- package/models/components/reasoningparam.js +28 -3
- package/models/components/reasoningparam.js.map +1 -1
- package/models/components/reasoningpart.js +1 -1
- package/models/components/resetbudgetconsumptionrequest.d.ts +8 -0
- package/models/components/resetbudgetconsumptionrequest.d.ts.map +1 -0
- package/models/components/resetbudgetconsumptionrequest.js +47 -0
- package/models/components/resetbudgetconsumptionrequest.js.map +1 -0
- package/models/components/resetbudgetconsumptionresponse.d.ts +17 -0
- package/models/components/resetbudgetconsumptionresponse.d.ts.map +1 -0
- package/models/components/resetbudgetconsumptionresponse.js +51 -0
- package/models/components/resetbudgetconsumptionresponse.js.map +1 -0
- package/models/components/responsecodeinterpretercallcodedeltastreamevent.d.ts +35 -0
- package/models/components/responsecodeinterpretercallcodedeltastreamevent.d.ts.map +1 -0
- package/models/components/responsecodeinterpretercallcodedeltastreamevent.js +61 -0
- package/models/components/responsecodeinterpretercallcodedeltastreamevent.js.map +1 -0
- package/models/components/responsecodeinterpretercallcodedonestreamevent.d.ts +35 -0
- package/models/components/responsecodeinterpretercallcodedonestreamevent.d.ts.map +1 -0
- package/models/components/responsecodeinterpretercallcodedonestreamevent.js +61 -0
- package/models/components/responsecodeinterpretercallcodedonestreamevent.js.map +1 -0
- package/models/components/responsecodeinterpretercallcompletedstreamevent.d.ts +31 -0
- package/models/components/responsecodeinterpretercallcompletedstreamevent.d.ts.map +1 -0
- package/models/components/responsecodeinterpretercallcompletedstreamevent.js +60 -0
- package/models/components/responsecodeinterpretercallcompletedstreamevent.js.map +1 -0
- package/models/components/responsecodeinterpretercallinprogressstreamevent.d.ts +31 -0
- package/models/components/responsecodeinterpretercallinprogressstreamevent.d.ts.map +1 -0
- package/models/components/responsecodeinterpretercallinprogressstreamevent.js +60 -0
- package/models/components/responsecodeinterpretercallinprogressstreamevent.js.map +1 -0
- package/models/components/responsecodeinterpretercallinterpretingstreamevent.d.ts +31 -0
- package/models/components/responsecodeinterpretercallinterpretingstreamevent.d.ts.map +1 -0
- package/models/components/responsecodeinterpretercallinterpretingstreamevent.js +60 -0
- package/models/components/responsecodeinterpretercallinterpretingstreamevent.js.map +1 -0
- package/models/components/responsecompletedstreamevent.d.ts +25 -0
- package/models/components/responsecompletedstreamevent.d.ts.map +1 -0
- package/models/components/responsecompletedstreamevent.js +58 -0
- package/models/components/responsecompletedstreamevent.js.map +1 -0
- package/models/components/responsecontentpartaddedstreamevent.d.ts +41 -0
- package/models/components/responsecontentpartaddedstreamevent.d.ts.map +1 -0
- package/models/components/responsecontentpartaddedstreamevent.js +63 -0
- package/models/components/responsecontentpartaddedstreamevent.js.map +1 -0
- package/models/components/responsecontentpartdonestreamevent.d.ts +41 -0
- package/models/components/responsecontentpartdonestreamevent.d.ts.map +1 -0
- package/models/components/responsecontentpartdonestreamevent.js +63 -0
- package/models/components/responsecontentpartdonestreamevent.js.map +1 -0
- package/models/components/responsecreatedstreamevent.d.ts +25 -0
- package/models/components/responsecreatedstreamevent.d.ts.map +1 -0
- package/models/components/responsecreatedstreamevent.js +58 -0
- package/models/components/responsecreatedstreamevent.js.map +1 -0
- package/models/components/responseerrorstreamevent.d.ts +25 -0
- package/models/components/responseerrorstreamevent.d.ts.map +1 -0
- package/models/components/responseerrorstreamevent.js +58 -0
- package/models/components/responseerrorstreamevent.js.map +1 -0
- package/models/components/responsefailedstreamevent.d.ts +25 -0
- package/models/components/responsefailedstreamevent.d.ts.map +1 -0
- package/models/components/responsefailedstreamevent.js +58 -0
- package/models/components/responsefailedstreamevent.js.map +1 -0
- package/models/components/responsefilesearchcallcompletedstreamevent.d.ts +31 -0
- package/models/components/responsefilesearchcallcompletedstreamevent.d.ts.map +1 -0
- package/models/components/responsefilesearchcallcompletedstreamevent.js +60 -0
- package/models/components/responsefilesearchcallcompletedstreamevent.js.map +1 -0
- package/models/components/responsefilesearchcallinprogressstreamevent.d.ts +31 -0
- package/models/components/responsefilesearchcallinprogressstreamevent.d.ts.map +1 -0
- package/models/components/responsefilesearchcallinprogressstreamevent.js +60 -0
- package/models/components/responsefilesearchcallinprogressstreamevent.js.map +1 -0
- package/models/components/responsefilesearchcallsearchingstreamevent.d.ts +31 -0
- package/models/components/responsefilesearchcallsearchingstreamevent.d.ts.map +1 -0
- package/models/components/responsefilesearchcallsearchingstreamevent.js +60 -0
- package/models/components/responsefilesearchcallsearchingstreamevent.js.map +1 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.d.ts +39 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.js +62 -0
- package/models/components/responsefunctioncallargumentsdeltastreamevent.js.map +1 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts +35 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.d.ts.map +1 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.js +61 -0
- package/models/components/responsefunctioncallargumentsdonestreamevent.js.map +1 -0
- package/models/components/responseimagegenerationcallcompletedstreamevent.d.ts +31 -0
- package/models/components/responseimagegenerationcallcompletedstreamevent.d.ts.map +1 -0
- package/models/components/responseimagegenerationcallcompletedstreamevent.js +60 -0
- package/models/components/responseimagegenerationcallcompletedstreamevent.js.map +1 -0
- package/models/components/responseimagegenerationcallgeneratingstreamevent.d.ts +31 -0
- package/models/components/responseimagegenerationcallgeneratingstreamevent.d.ts.map +1 -0
- package/models/components/responseimagegenerationcallgeneratingstreamevent.js +60 -0
- package/models/components/responseimagegenerationcallgeneratingstreamevent.js.map +1 -0
- package/models/components/responseimagegenerationcallinprogressstreamevent.d.ts +31 -0
- package/models/components/responseimagegenerationcallinprogressstreamevent.d.ts.map +1 -0
- package/models/components/responseimagegenerationcallinprogressstreamevent.js +60 -0
- package/models/components/responseimagegenerationcallinprogressstreamevent.js.map +1 -0
- package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts +39 -0
- package/models/components/responseimagegenerationcallpartialimagestreamevent.d.ts.map +1 -0
- package/models/components/responseimagegenerationcallpartialimagestreamevent.js +64 -0
- package/models/components/responseimagegenerationcallpartialimagestreamevent.js.map +1 -0
- package/models/components/responseincompletestreamevent.d.ts +25 -0
- package/models/components/responseincompletestreamevent.d.ts.map +1 -0
- package/models/components/responseincompletestreamevent.js +58 -0
- package/models/components/responseincompletestreamevent.js.map +1 -0
- package/models/components/responseinprogressstreamevent.d.ts +25 -0
- package/models/components/responseinprogressstreamevent.d.ts.map +1 -0
- package/models/components/responseinprogressstreamevent.js +58 -0
- package/models/components/responseinprogressstreamevent.js.map +1 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.d.ts +35 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.js +61 -0
- package/models/components/responsemcpcallargumentsdeltastreamevent.js.map +1 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.d.ts +35 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.d.ts.map +1 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.js +61 -0
- package/models/components/responsemcpcallargumentsdonestreamevent.js.map +1 -0
- package/models/components/responsemcpcallcompletedstreamevent.d.ts +31 -0
- package/models/components/responsemcpcallcompletedstreamevent.d.ts.map +1 -0
- package/models/components/responsemcpcallcompletedstreamevent.js +60 -0
- package/models/components/responsemcpcallcompletedstreamevent.js.map +1 -0
- package/models/components/responsemcpcallfailedstreamevent.d.ts +31 -0
- package/models/components/responsemcpcallfailedstreamevent.d.ts.map +1 -0
- package/models/components/responsemcpcallfailedstreamevent.js +60 -0
- package/models/components/responsemcpcallfailedstreamevent.js.map +1 -0
- package/models/components/responsemcpcallinprogressstreamevent.d.ts +31 -0
- package/models/components/responsemcpcallinprogressstreamevent.d.ts.map +1 -0
- package/models/components/responsemcpcallinprogressstreamevent.js +60 -0
- package/models/components/responsemcpcallinprogressstreamevent.js.map +1 -0
- package/models/components/responseoutputitemaddedstreamevent.d.ts +33 -0
- package/models/components/responseoutputitemaddedstreamevent.d.ts.map +1 -0
- package/models/components/responseoutputitemaddedstreamevent.js +59 -0
- package/models/components/responseoutputitemaddedstreamevent.js.map +1 -0
- package/models/components/responseoutputitemdonestreamevent.d.ts +33 -0
- package/models/components/responseoutputitemdonestreamevent.d.ts.map +1 -0
- package/models/components/responseoutputitemdonestreamevent.js +59 -0
- package/models/components/responseoutputitemdonestreamevent.js.map +1 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.d.ts +45 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.d.ts.map +1 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.js +65 -0
- package/models/components/responseoutputtextannotationaddedstreamevent.js.map +1 -0
- package/models/components/responseoutputtextdeltastreamevent.d.ts +49 -0
- package/models/components/responseoutputtextdeltastreamevent.d.ts.map +1 -0
- package/models/components/responseoutputtextdeltastreamevent.js +65 -0
- package/models/components/responseoutputtextdeltastreamevent.js.map +1 -0
- package/models/components/responseoutputtextdonestreamevent.d.ts +45 -0
- package/models/components/responseoutputtextdonestreamevent.d.ts.map +1 -0
- package/models/components/responseoutputtextdonestreamevent.js +64 -0
- package/models/components/responseoutputtextdonestreamevent.js.map +1 -0
- package/models/components/responsequeuedstreamevent.d.ts +25 -0
- package/models/components/responsequeuedstreamevent.d.ts.map +1 -0
- package/models/components/responsequeuedstreamevent.js +58 -0
- package/models/components/responsequeuedstreamevent.js.map +1 -0
- package/models/components/responsereasoningdeltastreamevent.d.ts +43 -0
- package/models/components/responsereasoningdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningdeltastreamevent.js +64 -0
- package/models/components/responsereasoningdeltastreamevent.js.map +1 -0
- package/models/components/responsereasoningdonestreamevent.d.ts +39 -0
- package/models/components/responsereasoningdonestreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningdonestreamevent.js +63 -0
- package/models/components/responsereasoningdonestreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts +41 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.js +63 -0
- package/models/components/responsereasoningsummarypartaddedstreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.d.ts +41 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.js +63 -0
- package/models/components/responsereasoningsummarypartdonestreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.d.ts +43 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.js +64 -0
- package/models/components/responsereasoningsummarytextdeltastreamevent.js.map +1 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.d.ts +39 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.js +63 -0
- package/models/components/responsereasoningsummarytextdonestreamevent.js.map +1 -0
- package/models/components/responsereasoningtextdeltastreamevent.d.ts +43 -0
- package/models/components/responsereasoningtextdeltastreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningtextdeltastreamevent.js +64 -0
- package/models/components/responsereasoningtextdeltastreamevent.js.map +1 -0
- package/models/components/responsereasoningtextdonestreamevent.d.ts +39 -0
- package/models/components/responsereasoningtextdonestreamevent.d.ts.map +1 -0
- package/models/components/responsereasoningtextdonestreamevent.js +63 -0
- package/models/components/responsereasoningtextdonestreamevent.js.map +1 -0
- package/models/components/responserefusaldeltastreamevent.d.ts +39 -0
- package/models/components/responserefusaldeltastreamevent.d.ts.map +1 -0
- package/models/components/responserefusaldeltastreamevent.js +63 -0
- package/models/components/responserefusaldeltastreamevent.js.map +1 -0
- package/models/components/responserefusaldonestreamevent.d.ts +39 -0
- package/models/components/responserefusaldonestreamevent.d.ts.map +1 -0
- package/models/components/responserefusaldonestreamevent.js +63 -0
- package/models/components/responserefusaldonestreamevent.js.map +1 -0
- package/models/components/responsestreamevent.d.ts +57 -0
- package/models/components/responsestreamevent.d.ts.map +1 -0
- package/models/components/responsestreamevent.js +141 -0
- package/models/components/responsestreamevent.js.map +1 -0
- package/models/components/responsewebsearchcallcompletedstreamevent.d.ts +31 -0
- package/models/components/responsewebsearchcallcompletedstreamevent.d.ts.map +1 -0
- package/models/components/responsewebsearchcallcompletedstreamevent.js +60 -0
- package/models/components/responsewebsearchcallcompletedstreamevent.js.map +1 -0
- package/models/components/responsewebsearchcallinprogressstreamevent.d.ts +31 -0
- package/models/components/responsewebsearchcallinprogressstreamevent.d.ts.map +1 -0
- package/models/components/responsewebsearchcallinprogressstreamevent.js +60 -0
- package/models/components/responsewebsearchcallinprogressstreamevent.js.map +1 -0
- package/models/components/responsewebsearchcallsearchingstreamevent.d.ts +31 -0
- package/models/components/responsewebsearchcallsearchingstreamevent.d.ts.map +1 -0
- package/models/components/responsewebsearchcallsearchingstreamevent.js +60 -0
- package/models/components/responsewebsearchcallsearchingstreamevent.js.map +1 -0
- package/models/components/toolexecutionstartedstreamingevent.d.ts +4 -4
- package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
- package/models/components/toolexecutionstartedstreamingevent.js +7 -7
- package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
- package/models/components/updatebudgetrequest.d.ts +50 -0
- package/models/components/updatebudgetrequest.d.ts.map +1 -0
- package/models/components/updatebudgetrequest.js +65 -0
- package/models/components/updatebudgetrequest.js.map +1 -0
- package/models/components/updatebudgetresponse.d.ts +14 -0
- package/models/components/updatebudgetresponse.d.ts.map +1 -0
- package/models/components/updatebudgetresponse.js +51 -0
- package/models/components/updatebudgetresponse.js.map +1 -0
- package/models/components/workspacebudgetscope.d.ts +16 -0
- package/models/components/workspacebudgetscope.d.ts.map +1 -0
- package/models/components/workspacebudgetscope.js +54 -0
- package/models/components/workspacebudgetscope.js.map +1 -0
- package/models/operations/budgetdelete.d.ts +15 -0
- package/models/operations/budgetdelete.d.ts.map +1 -0
- package/models/operations/budgetdelete.js +54 -0
- package/models/operations/budgetdelete.js.map +1 -0
- package/models/operations/budgetget.d.ts +15 -0
- package/models/operations/budgetget.d.ts.map +1 -0
- package/models/operations/budgetget.js +54 -0
- package/models/operations/budgetget.js.map +1 -0
- package/models/operations/budgetgetconsumption.d.ts +15 -0
- package/models/operations/budgetgetconsumption.d.ts.map +1 -0
- package/models/operations/budgetgetconsumption.js +54 -0
- package/models/operations/budgetgetconsumption.js.map +1 -0
- package/models/operations/budgetlist.d.ts +72 -0
- package/models/operations/budgetlist.d.ts.map +1 -0
- package/models/operations/budgetlist.js +68 -0
- package/models/operations/budgetlist.js.map +1 -0
- package/models/operations/budgetresetconsumption.d.ts +18 -0
- package/models/operations/budgetresetconsumption.d.ts.map +1 -0
- package/models/operations/budgetresetconsumption.js +57 -0
- package/models/operations/budgetresetconsumption.js.map +1 -0
- package/models/operations/budgetupdate.d.ts +18 -0
- package/models/operations/budgetupdate.d.ts.map +1 -0
- package/models/operations/budgetupdate.js +57 -0
- package/models/operations/budgetupdate.js.map +1 -0
- package/models/operations/createagentrequest.d.ts +298 -4
- package/models/operations/createagentrequest.d.ts.map +1 -1
- package/models/operations/createagentrequest.js +163 -9
- package/models/operations/createagentrequest.js.map +1 -1
- package/models/operations/createagentresponserequest.d.ts +2 -329
- package/models/operations/createagentresponserequest.d.ts.map +1 -1
- package/models/operations/createagentresponserequest.js +3 -166
- package/models/operations/createagentresponserequest.js.map +1 -1
- package/models/operations/createannotation.d.ts +48 -10
- package/models/operations/createannotation.d.ts.map +1 -1
- package/models/operations/createannotation.js +37 -5
- package/models/operations/createannotation.js.map +1 -1
- package/models/operations/createchatcompletion.d.ts +85 -8
- package/models/operations/createchatcompletion.d.ts.map +1 -1
- package/models/operations/createchatcompletion.js +49 -11
- package/models/operations/createchatcompletion.js.map +1 -1
- package/models/operations/createdataset.js +1 -1
- package/models/operations/createdatasetitem.d.ts +219 -15
- package/models/operations/createdatasetitem.d.ts.map +1 -1
- package/models/operations/createdatasetitem.js +144 -10
- package/models/operations/createdatasetitem.js.map +1 -1
- package/models/operations/createdatasource.d.ts +3 -0
- package/models/operations/createdatasource.d.ts.map +1 -1
- package/models/operations/createdatasource.js +1 -1
- package/models/operations/createdatasource.js.map +1 -1
- package/models/operations/createeval.js +16 -16
- package/models/operations/createknowledge.d.ts +11 -0
- package/models/operations/createknowledge.d.ts.map +1 -1
- package/models/operations/createknowledge.js +1 -0
- package/models/operations/createknowledge.js.map +1 -1
- package/models/operations/creatememorystore.d.ts +3 -3
- package/models/operations/creatememorystore.d.ts.map +1 -1
- package/models/operations/creatememorystore.js +2 -2
- package/models/operations/creatememorystore.js.map +1 -1
- package/models/operations/createprompt.d.ts +233 -17
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +129 -18
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/createrouterresponse.d.ts +352 -56
- package/models/operations/createrouterresponse.d.ts.map +1 -1
- package/models/operations/createrouterresponse.js +193 -44
- package/models/operations/createrouterresponse.js.map +1 -1
- package/models/operations/createtool.js +6 -6
- package/models/operations/deleteannotation.d.ts +19 -2
- package/models/operations/deleteannotation.d.ts.map +1 -1
- package/models/operations/deleteannotation.js +20 -2
- package/models/operations/deleteannotation.js.map +1 -1
- package/models/operations/deploymentgetconfig.d.ts +511 -445
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +525 -485
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +0 -1560
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +1 -1126
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +75 -9
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +44 -9
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +56 -56
- package/models/operations/deploymentstream.d.ts.map +1 -1
- package/models/operations/deploymentstream.js +73 -72
- package/models/operations/deploymentstream.js.map +1 -1
- package/models/operations/getallmemorystores.d.ts +11 -1
- package/models/operations/getallmemorystores.d.ts.map +1 -1
- package/models/operations/getallmemorystores.js +4 -1
- package/models/operations/getallmemorystores.js.map +1 -1
- package/models/operations/getallprompts.d.ts +141 -5
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +80 -7
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getalltools.js +6 -6
- package/models/operations/getevals.d.ts +2 -0
- package/models/operations/getevals.d.ts.map +1 -1
- package/models/operations/getevals.js +18 -16
- package/models/operations/getevals.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +141 -5
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +80 -7
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +141 -5
- package/models/operations/getpromptversion.d.ts.map +1 -1
- package/models/operations/getpromptversion.js +79 -7
- package/models/operations/getpromptversion.js.map +1 -1
- package/models/operations/getv2humanevalsets.js +2 -2
- package/models/operations/getv2humanevalsetsid.js +2 -2
- package/models/operations/index.d.ts +6 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +6 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/invokeagent.d.ts +51 -48
- package/models/operations/invokeagent.d.ts.map +1 -1
- package/models/operations/invokeagent.js +43 -46
- package/models/operations/invokeagent.js.map +1 -1
- package/models/operations/invokeeval.d.ts +1 -0
- package/models/operations/invokeeval.d.ts.map +1 -1
- package/models/operations/invokeeval.js +2 -0
- package/models/operations/invokeeval.js.map +1 -1
- package/models/operations/listagents.d.ts +140 -0
- package/models/operations/listagents.d.ts.map +1 -1
- package/models/operations/listagents.js +79 -3
- package/models/operations/listagents.js.map +1 -1
- package/models/operations/listdatasetdatapoints.d.ts +210 -12
- package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
- package/models/operations/listdatasetdatapoints.js +138 -9
- package/models/operations/listdatasetdatapoints.js.map +1 -1
- package/models/operations/listdatasets.d.ts +10 -0
- package/models/operations/listdatasets.d.ts.map +1 -1
- package/models/operations/listdatasets.js +4 -1
- package/models/operations/listdatasets.js.map +1 -1
- package/models/operations/listdatasources.js +1 -1
- package/models/operations/listknowledgebases.d.ts +31 -0
- package/models/operations/listknowledgebases.d.ts.map +1 -1
- package/models/operations/listknowledgebases.js +15 -2
- package/models/operations/listknowledgebases.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +141 -5
- package/models/operations/listpromptversions.d.ts.map +1 -1
- package/models/operations/listpromptversions.js +80 -7
- package/models/operations/listpromptversions.js.map +1 -1
- package/models/operations/modelcreateawsbedrock.d.ts +8 -0
- package/models/operations/modelcreateawsbedrock.d.ts.map +1 -1
- package/models/operations/modelcreateawsbedrock.js +8 -0
- package/models/operations/modelcreateawsbedrock.js.map +1 -1
- package/models/operations/modelupdateawsbedrock.d.ts +8 -2
- package/models/operations/modelupdateawsbedrock.d.ts.map +1 -1
- package/models/operations/modelupdateawsbedrock.js +8 -2
- package/models/operations/modelupdateawsbedrock.js.map +1 -1
- package/models/operations/modelvalidateawsbedrock.d.ts +2 -0
- package/models/operations/modelvalidateawsbedrock.d.ts.map +1 -1
- package/models/operations/modelvalidateawsbedrock.js +2 -0
- package/models/operations/modelvalidateawsbedrock.js.map +1 -1
- package/models/operations/patchv2humanevalsetsid.js +2 -2
- package/models/operations/postv2feedbackevaluation.d.ts +33 -12
- package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
- package/models/operations/postv2feedbackevaluation.js +9 -6
- package/models/operations/postv2feedbackevaluation.js.map +1 -1
- package/models/operations/postv2humanevalsets.js +2 -2
- package/models/operations/retrieveagentrequest.d.ts +140 -0
- package/models/operations/retrieveagentrequest.d.ts.map +1 -1
- package/models/operations/retrieveagentrequest.js +81 -2
- package/models/operations/retrieveagentrequest.js.map +1 -1
- package/models/operations/retrievedatapoint.d.ts +210 -12
- package/models/operations/retrievedatapoint.d.ts.map +1 -1
- package/models/operations/retrievedatapoint.js +140 -8
- package/models/operations/retrievedatapoint.js.map +1 -1
- package/models/operations/retrievedataset.js +1 -1
- package/models/operations/retrievedatasource.js +1 -1
- package/models/operations/retrievememorystore.d.ts +1 -1
- package/models/operations/retrievememorystore.d.ts.map +1 -1
- package/models/operations/retrievememorystore.js +1 -1
- package/models/operations/retrievememorystore.js.map +1 -1
- package/models/operations/retrievetool.js +6 -6
- package/models/operations/runagent.d.ts +154 -0
- package/models/operations/runagent.d.ts.map +1 -1
- package/models/operations/runagent.js +80 -5
- package/models/operations/runagent.js.map +1 -1
- package/models/operations/streamagent.d.ts +9 -6
- package/models/operations/streamagent.d.ts.map +1 -1
- package/models/operations/streamagent.js +6 -6
- package/models/operations/streamagent.js.map +1 -1
- package/models/operations/streamrunagent.d.ts +154 -0
- package/models/operations/streamrunagent.d.ts.map +1 -1
- package/models/operations/streamrunagent.js +82 -4
- package/models/operations/streamrunagent.js.map +1 -1
- package/models/operations/updateagent.d.ts +298 -4
- package/models/operations/updateagent.d.ts.map +1 -1
- package/models/operations/updateagent.js +162 -9
- package/models/operations/updateagent.js.map +1 -1
- package/models/operations/updatedatapoint.d.ts +219 -15
- package/models/operations/updatedatapoint.d.ts.map +1 -1
- package/models/operations/updatedatapoint.js +146 -10
- package/models/operations/updatedatapoint.js.map +1 -1
- package/models/operations/updatedataset.js +1 -1
- package/models/operations/updatedatasource.js +1 -1
- package/models/operations/updateeval.js +16 -16
- package/models/operations/updatememorystore.d.ts +3 -3
- package/models/operations/updatememorystore.d.ts.map +1 -1
- package/models/operations/updatememorystore.js +2 -2
- package/models/operations/updatememorystore.js.map +1 -1
- package/models/operations/updateprompt.d.ts +235 -19
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +132 -20
- package/models/operations/updateprompt.js.map +1 -1
- package/models/operations/updatetool.js +7 -7
- package/package.json +8 -8
- package/sdk/agents.d.ts +2 -2
- package/sdk/agents.d.ts.map +1 -1
- package/sdk/agents.js.map +1 -1
- package/sdk/annotations.d.ts +2 -2
- package/sdk/annotations.js +2 -2
- package/sdk/budgets.d.ts +62 -0
- package/sdk/budgets.d.ts.map +1 -0
- package/sdk/budgets.js +92 -0
- package/sdk/budgets.js.map +1 -0
- package/sdk/deployments.d.ts +2 -1
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js.map +1 -1
- package/sdk/feedback.d.ts +2 -2
- package/sdk/feedback.js +2 -2
- package/sdk/orqresponses.d.ts +1 -1
- package/sdk/orqresponses.d.ts.map +1 -1
- package/sdk/orqresponses.js +2 -2
- package/sdk/orqresponses.js.map +1 -1
- package/sdk/prompts.d.ts +1 -1
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js.map +1 -1
- package/sdk/sdk.d.ts +3 -0
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +4 -0
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/agentsInvoke.ts +2 -2
- package/src/funcs/agentsResponsesCreate.ts +8 -5
- package/src/funcs/agentsStream.ts +2 -2
- package/src/funcs/annotationsCreate.ts +1 -1
- package/src/funcs/annotationsDelete.ts +1 -1
- package/src/funcs/budgetsCheck.ts +162 -0
- package/src/funcs/budgetsCreate.ts +162 -0
- package/src/funcs/budgetsDelete.ts +168 -0
- package/src/funcs/budgetsGet.ts +168 -0
- package/src/funcs/budgetsGetConsumption.ts +169 -0
- package/src/funcs/budgetsList.ts +176 -0
- package/src/funcs/budgetsResetConsumption.ts +174 -0
- package/src/funcs/budgetsUpdate.ts +171 -0
- package/src/funcs/datasetsList.ts +2 -0
- package/src/funcs/deploymentsInvoke.ts +4 -4
- package/src/funcs/evalsAll.ts +1 -0
- package/src/funcs/knowledgeList.ts +3 -0
- package/src/funcs/memoryStoresList.ts +2 -0
- package/src/funcs/promptsCreate.ts +4 -3
- package/src/hooks/types.ts +1 -0
- package/src/lib/config.ts +3 -3
- package/src/lib/encodings.ts +1 -1
- package/src/lib/env.ts +7 -3
- package/src/lib/event-streams.ts +31 -13
- package/src/lib/matchers.ts +1 -1
- package/src/lib/primitives.ts +16 -0
- package/src/lib/retries.ts +8 -0
- package/src/lib/sdks.ts +54 -17
- package/src/models/components/agentresponserequest.ts +565 -0
- package/src/models/components/agentthoughtstreamingevent.ts +55 -43
- package/src/models/components/apikeybudgetscope.ts +66 -0
- package/src/models/components/azurefoundrydeployment.ts +7 -0
- package/src/models/components/budget.ts +114 -0
- package/src/models/components/budgetlimits.ts +84 -0
- package/src/models/components/budgetmatch.ts +56 -0
- package/src/models/components/budgetperiod.ts +23 -0
- package/src/models/components/budgetrejection.ts +48 -0
- package/src/models/components/budgetscope.ts +150 -0
- package/src/models/components/budgetscopekind.ts +22 -0
- package/src/models/components/budgetsortfield.ts +19 -0
- package/src/models/components/budgetusage.ts +54 -0
- package/src/models/components/checkbudgetsrequest.ts +111 -0
- package/src/models/components/checkbudgetsresponse.ts +62 -0
- package/src/models/components/createbudgetrequest.ts +109 -0
- package/src/models/components/createbudgetresponse.ts +35 -0
- package/src/models/components/deletebudgetresponse.ts +27 -0
- package/src/models/components/dimensioninfo.ts +43 -0
- package/src/models/components/getbudgetconsumptionresponse.ts +71 -0
- package/src/models/components/getbudgetresponse.ts +35 -0
- package/src/models/components/identity.ts +9 -9
- package/src/models/components/identitybudgetscope.ts +66 -0
- package/src/models/components/index.ts +79 -0
- package/src/models/components/invokedeploymentrequest.ts +3457 -0
- package/src/models/components/listbudgetsresponse.ts +53 -0
- package/src/models/components/modelbudgetscope.ts +67 -0
- package/src/models/components/modelmetadata.ts +18 -0
- package/src/models/components/projectbudgetscope.ts +63 -0
- package/src/models/components/providerbudgetscope.ts +57 -0
- package/src/models/components/publicresponseresource.ts +196 -0
- package/src/models/components/ratelimit.ts +62 -0
- package/src/models/components/reasoning.ts +50 -4
- package/src/models/components/reasoningparam.ts +48 -4
- package/src/models/components/reasoningpart.ts +1 -1
- package/src/models/components/resetbudgetconsumptionrequest.ts +27 -0
- package/src/models/components/resetbudgetconsumptionresponse.ts +38 -0
- package/src/models/components/responsecodeinterpretercallcodedeltastreamevent.ts +79 -0
- package/src/models/components/responsecodeinterpretercallcodedonestreamevent.ts +79 -0
- package/src/models/components/responsecodeinterpretercallcompletedstreamevent.ts +74 -0
- package/src/models/components/responsecodeinterpretercallinprogressstreamevent.ts +74 -0
- package/src/models/components/responsecodeinterpretercallinterpretingstreamevent.ts +74 -0
- package/src/models/components/responsecompletedstreamevent.ts +61 -0
- package/src/models/components/responsecontentpartaddedstreamevent.ts +79 -0
- package/src/models/components/responsecontentpartdonestreamevent.ts +79 -0
- package/src/models/components/responsecreatedstreamevent.ts +61 -0
- package/src/models/components/responseerrorstreamevent.ts +58 -0
- package/src/models/components/responsefailedstreamevent.ts +61 -0
- package/src/models/components/responsefilesearchcallcompletedstreamevent.ts +71 -0
- package/src/models/components/responsefilesearchcallinprogressstreamevent.ts +74 -0
- package/src/models/components/responsefilesearchcallsearchingstreamevent.ts +71 -0
- package/src/models/components/responsefunctioncallargumentsdeltastreamevent.ts +84 -0
- package/src/models/components/responsefunctioncallargumentsdonestreamevent.ts +79 -0
- package/src/models/components/responseimagegenerationcallcompletedstreamevent.ts +74 -0
- package/src/models/components/responseimagegenerationcallgeneratingstreamevent.ts +74 -0
- package/src/models/components/responseimagegenerationcallinprogressstreamevent.ts +74 -0
- package/src/models/components/responseimagegenerationcallpartialimagestreamevent.ts +86 -0
- package/src/models/components/responseincompletestreamevent.ts +61 -0
- package/src/models/components/responseinprogressstreamevent.ts +61 -0
- package/src/models/components/responsemcpcallargumentsdeltastreamevent.ts +78 -0
- package/src/models/components/responsemcpcallargumentsdonestreamevent.ts +78 -0
- package/src/models/components/responsemcpcallcompletedstreamevent.ts +68 -0
- package/src/models/components/responsemcpcallfailedstreamevent.ts +67 -0
- package/src/models/components/responsemcpcallinprogressstreamevent.ts +68 -0
- package/src/models/components/responseoutputitemaddedstreamevent.ts +67 -0
- package/src/models/components/responseoutputitemdonestreamevent.ts +66 -0
- package/src/models/components/responseoutputtextannotationaddedstreamevent.ts +91 -0
- package/src/models/components/responseoutputtextdeltastreamevent.ts +89 -0
- package/src/models/components/responseoutputtextdonestreamevent.ts +83 -0
- package/src/models/components/responsequeuedstreamevent.ts +61 -0
- package/src/models/components/responsereasoningdeltastreamevent.ts +83 -0
- package/src/models/components/responsereasoningdonestreamevent.ts +78 -0
- package/src/models/components/responsereasoningsummarypartaddedstreamevent.ts +85 -0
- package/src/models/components/responsereasoningsummarypartdonestreamevent.ts +85 -0
- package/src/models/components/responsereasoningsummarytextdeltastreamevent.ts +90 -0
- package/src/models/components/responsereasoningsummarytextdonestreamevent.ts +85 -0
- package/src/models/components/responsereasoningtextdeltastreamevent.ts +84 -0
- package/src/models/components/responsereasoningtextdonestreamevent.ts +79 -0
- package/src/models/components/responserefusaldeltastreamevent.ts +78 -0
- package/src/models/components/responserefusaldonestreamevent.ts +78 -0
- package/src/models/components/responsestreamevent.ts +307 -0
- package/src/models/components/responsewebsearchcallcompletedstreamevent.ts +73 -0
- package/src/models/components/responsewebsearchcallinprogressstreamevent.ts +71 -0
- package/src/models/components/responsewebsearchcallsearchingstreamevent.ts +73 -0
- package/src/models/components/toolexecutionstartedstreamingevent.ts +24 -14
- package/src/models/components/updatebudgetrequest.ts +94 -0
- package/src/models/components/updatebudgetresponse.ts +35 -0
- package/src/models/components/workspacebudgetscope.ts +46 -0
- package/src/models/operations/budgetdelete.ts +39 -0
- package/src/models/operations/budgetget.ts +39 -0
- package/src/models/operations/budgetgetconsumption.ts +41 -0
- package/src/models/operations/budgetlist.ts +109 -0
- package/src/models/operations/budgetresetconsumption.ts +48 -0
- package/src/models/operations/budgetupdate.ts +44 -0
- package/src/models/operations/createagentrequest.ts +460 -8
- package/src/models/operations/createagentresponserequest.ts +4 -550
- package/src/models/operations/createannotation.ts +110 -16
- package/src/models/operations/createchatcompletion.ts +142 -17
- package/src/models/operations/createdataset.ts +1 -1
- package/src/models/operations/createdatasetitem.ts +356 -23
- package/src/models/operations/createdatasource.ts +4 -1
- package/src/models/operations/createeval.ts +16 -16
- package/src/models/operations/createknowledge.ts +12 -0
- package/src/models/operations/creatememorystore.ts +5 -5
- package/src/models/operations/createprompt.ts +371 -37
- package/src/models/operations/createrouterresponse.ts +536 -89
- package/src/models/operations/createtool.ts +6 -6
- package/src/models/operations/deleteannotation.ts +46 -3
- package/src/models/operations/deploymentgetconfig.ts +1263 -1616
- package/src/models/operations/deploymentinvoke.ts +222 -3675
- package/src/models/operations/deployments.ts +115 -18
- package/src/models/operations/deploymentstream.ts +244 -285
- package/src/models/operations/getallmemorystores.ts +15 -2
- package/src/models/operations/getallprompts.ts +212 -10
- package/src/models/operations/getalltools.ts +6 -6
- package/src/models/operations/getevals.ts +20 -16
- package/src/models/operations/getoneprompt.ts +210 -10
- package/src/models/operations/getpromptversion.ts +214 -10
- package/src/models/operations/getv2humanevalsets.ts +2 -2
- package/src/models/operations/getv2humanevalsetsid.ts +2 -2
- package/src/models/operations/index.ts +6 -0
- package/src/models/operations/invokeagent.ts +90 -116
- package/src/models/operations/invokeeval.ts +3 -0
- package/src/models/operations/listagents.ts +215 -0
- package/src/models/operations/listdatasetdatapoints.ts +378 -19
- package/src/models/operations/listdatasets.ts +14 -1
- package/src/models/operations/listdatasources.ts +1 -1
- package/src/models/operations/listknowledgebases.ts +42 -1
- package/src/models/operations/listpromptversions.ts +214 -10
- package/src/models/operations/modelcreateawsbedrock.ts +16 -0
- package/src/models/operations/modelupdateawsbedrock.ts +16 -4
- package/src/models/operations/modelvalidateawsbedrock.ts +4 -0
- package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
- package/src/models/operations/postv2feedbackevaluation.ts +42 -18
- package/src/models/operations/postv2humanevalsets.ts +2 -2
- package/src/models/operations/retrieveagentrequest.ts +222 -0
- package/src/models/operations/retrievedatapoint.ts +363 -19
- package/src/models/operations/retrievedataset.ts +1 -1
- package/src/models/operations/retrievedatasource.ts +1 -1
- package/src/models/operations/retrievememorystore.ts +2 -2
- package/src/models/operations/retrievetool.ts +6 -6
- package/src/models/operations/runagent.ts +236 -1
- package/src/models/operations/streamagent.ts +16 -11
- package/src/models/operations/streamrunagent.ts +242 -1
- package/src/models/operations/updateagent.ts +464 -9
- package/src/models/operations/updatedatapoint.ts +391 -23
- package/src/models/operations/updatedataset.ts +1 -1
- package/src/models/operations/updatedatasource.ts +1 -1
- package/src/models/operations/updateeval.ts +16 -16
- package/src/models/operations/updatememorystore.ts +5 -5
- package/src/models/operations/updateprompt.ts +375 -40
- package/src/models/operations/updatetool.ts +7 -7
- package/src/sdk/agents.ts +2 -2
- package/src/sdk/annotations.ts +2 -2
- package/src/sdk/budgets.ts +154 -0
- package/src/sdk/deployments.ts +2 -1
- package/src/sdk/feedback.ts +2 -2
- package/src/sdk/orqresponses.ts +2 -2
- package/src/sdk/prompts.ts +1 -1
- package/src/sdk/sdk.ts +6 -0
- package/lib/dlv.d.ts +0 -14
- package/lib/dlv.d.ts.map +0 -1
- package/lib/dlv.js +0 -49
- package/lib/dlv.js.map +0 -1
- package/lib/is-plain-object.d.ts +0 -2
- package/lib/is-plain-object.d.ts.map +0 -1
- package/lib/is-plain-object.js +0 -41
- package/lib/is-plain-object.js.map +0 -1
- package/src/lib/dlv.ts +0 -53
- package/src/lib/is-plain-object.ts +0 -43
|
@@ -10,27 +10,27 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import * as components from "../components/index.js";
|
|
11
11
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
12
12
|
|
|
13
|
-
export type
|
|
13
|
+
export type DeploymentGetConfigContentDeployments2 =
|
|
14
14
|
components.TextContentPartSchema;
|
|
15
15
|
|
|
16
16
|
/**
|
|
17
17
|
* The contents of the tool message.
|
|
18
18
|
*/
|
|
19
|
-
export type
|
|
19
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent =
|
|
20
20
|
| string
|
|
21
21
|
| Array<components.TextContentPartSchema>;
|
|
22
22
|
|
|
23
23
|
/**
|
|
24
24
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
25
25
|
*/
|
|
26
|
-
export const
|
|
26
|
+
export const DeploymentGetConfigPrefixMessagesType = {
|
|
27
27
|
Ephemeral: "ephemeral",
|
|
28
28
|
} as const;
|
|
29
29
|
/**
|
|
30
30
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
31
31
|
*/
|
|
32
|
-
export type
|
|
33
|
-
typeof
|
|
32
|
+
export type DeploymentGetConfigPrefixMessagesType = ClosedEnum<
|
|
33
|
+
typeof DeploymentGetConfigPrefixMessagesType
|
|
34
34
|
>;
|
|
35
35
|
|
|
36
36
|
/**
|
|
@@ -43,7 +43,7 @@ export type DeploymentGetConfigPrefixMessagesDeploymentsType = ClosedEnum<
|
|
|
43
43
|
*
|
|
44
44
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
45
45
|
*/
|
|
46
|
-
export const
|
|
46
|
+
export const PrefixMessagesTtl = {
|
|
47
47
|
Fivem: "5m",
|
|
48
48
|
Oneh: "1h",
|
|
49
49
|
} as const;
|
|
@@ -57,15 +57,13 @@ export const DeploymentGetConfigPrefixMessagesTtl = {
|
|
|
57
57
|
*
|
|
58
58
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
59
59
|
*/
|
|
60
|
-
export type
|
|
61
|
-
typeof DeploymentGetConfigPrefixMessagesTtl
|
|
62
|
-
>;
|
|
60
|
+
export type PrefixMessagesTtl = ClosedEnum<typeof PrefixMessagesTtl>;
|
|
63
61
|
|
|
64
|
-
export type
|
|
62
|
+
export type PrefixMessagesCacheControl = {
|
|
65
63
|
/**
|
|
66
64
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
67
65
|
*/
|
|
68
|
-
type:
|
|
66
|
+
type: DeploymentGetConfigPrefixMessagesType;
|
|
69
67
|
/**
|
|
70
68
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
71
69
|
*
|
|
@@ -76,10 +74,10 @@ export type DeploymentGetConfigPrefixMessagesCacheControl = {
|
|
|
76
74
|
*
|
|
77
75
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
78
76
|
*/
|
|
79
|
-
ttl?:
|
|
77
|
+
ttl?: PrefixMessagesTtl | undefined;
|
|
80
78
|
};
|
|
81
79
|
|
|
82
|
-
export type
|
|
80
|
+
export type ToolMessage = {
|
|
83
81
|
/**
|
|
84
82
|
* The role of the messages author, in this case tool.
|
|
85
83
|
*/
|
|
@@ -92,10 +90,10 @@ export type PrefixMessagesToolMessage = {
|
|
|
92
90
|
* Tool call that this message is responding to.
|
|
93
91
|
*/
|
|
94
92
|
toolCallId: string | null;
|
|
95
|
-
cacheControl?:
|
|
93
|
+
cacheControl?: PrefixMessagesCacheControl | undefined;
|
|
96
94
|
};
|
|
97
95
|
|
|
98
|
-
export type
|
|
96
|
+
export type DeploymentGetConfigContent2 =
|
|
99
97
|
| (components.TextContentPartSchema & { type: "text" })
|
|
100
98
|
| components.RefusalPartSchema
|
|
101
99
|
| components.ReasoningPartSchema
|
|
@@ -104,7 +102,7 @@ export type DeploymentGetConfigContentDeployments2 =
|
|
|
104
102
|
/**
|
|
105
103
|
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
106
104
|
*/
|
|
107
|
-
export type
|
|
105
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent =
|
|
108
106
|
| string
|
|
109
107
|
| Array<
|
|
110
108
|
| (components.TextContentPartSchema & { type: "text" })
|
|
@@ -116,7 +114,7 @@ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyConten
|
|
|
116
114
|
/**
|
|
117
115
|
* Data about a previous audio response from the model.
|
|
118
116
|
*/
|
|
119
|
-
export type
|
|
117
|
+
export type Audio = {
|
|
120
118
|
/**
|
|
121
119
|
* Unique identifier for a previous audio response from the model.
|
|
122
120
|
*/
|
|
@@ -126,17 +124,15 @@ export type PrefixMessagesAudio = {
|
|
|
126
124
|
/**
|
|
127
125
|
* The type of the tool. Currently, only `function` is supported.
|
|
128
126
|
*/
|
|
129
|
-
export const
|
|
127
|
+
export const PrefixMessagesType = {
|
|
130
128
|
Function: "function",
|
|
131
129
|
} as const;
|
|
132
130
|
/**
|
|
133
131
|
* The type of the tool. Currently, only `function` is supported.
|
|
134
132
|
*/
|
|
135
|
-
export type
|
|
136
|
-
typeof DeploymentGetConfigPrefixMessagesType
|
|
137
|
-
>;
|
|
133
|
+
export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
|
|
138
134
|
|
|
139
|
-
export type
|
|
135
|
+
export type PrefixMessagesFunction = {
|
|
140
136
|
/**
|
|
141
137
|
* The name of the function to call.
|
|
142
138
|
*/
|
|
@@ -147,7 +143,7 @@ export type DeploymentGetConfigPrefixMessagesFunction = {
|
|
|
147
143
|
arguments?: string | undefined;
|
|
148
144
|
};
|
|
149
145
|
|
|
150
|
-
export type
|
|
146
|
+
export type PrefixMessagesToolCalls = {
|
|
151
147
|
/**
|
|
152
148
|
* The ID of the tool call.
|
|
153
149
|
*/
|
|
@@ -155,15 +151,15 @@ export type DeploymentGetConfigPrefixMessagesToolCalls = {
|
|
|
155
151
|
/**
|
|
156
152
|
* The type of the tool. Currently, only `function` is supported.
|
|
157
153
|
*/
|
|
158
|
-
type:
|
|
159
|
-
function:
|
|
154
|
+
type: PrefixMessagesType;
|
|
155
|
+
function: PrefixMessagesFunction;
|
|
160
156
|
/**
|
|
161
157
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
162
158
|
*/
|
|
163
159
|
thoughtSignature?: string | undefined;
|
|
164
160
|
};
|
|
165
161
|
|
|
166
|
-
export type
|
|
162
|
+
export type AssistantMessage = {
|
|
167
163
|
/**
|
|
168
164
|
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
169
165
|
*/
|
|
@@ -192,11 +188,11 @@ export type PrefixMessagesAssistantMessage = {
|
|
|
192
188
|
/**
|
|
193
189
|
* Data about a previous audio response from the model.
|
|
194
190
|
*/
|
|
195
|
-
audio?:
|
|
191
|
+
audio?: Audio | null | undefined;
|
|
196
192
|
/**
|
|
197
193
|
* The tool calls generated by the model, such as function calls.
|
|
198
194
|
*/
|
|
199
|
-
toolCalls?: Array<
|
|
195
|
+
toolCalls?: Array<PrefixMessagesToolCalls> | undefined;
|
|
200
196
|
};
|
|
201
197
|
|
|
202
198
|
/**
|
|
@@ -222,7 +218,7 @@ export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
|
|
|
222
218
|
*
|
|
223
219
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
224
220
|
*/
|
|
225
|
-
export const
|
|
221
|
+
export const Ttl = {
|
|
226
222
|
Fivem: "5m",
|
|
227
223
|
Oneh: "1h",
|
|
228
224
|
} as const;
|
|
@@ -236,11 +232,9 @@ export const DeploymentGetConfig2Ttl = {
|
|
|
236
232
|
*
|
|
237
233
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
238
234
|
*/
|
|
239
|
-
export type
|
|
240
|
-
typeof DeploymentGetConfig2Ttl
|
|
241
|
-
>;
|
|
235
|
+
export type Ttl = ClosedEnum<typeof Ttl>;
|
|
242
236
|
|
|
243
|
-
export type
|
|
237
|
+
export type CacheControl = {
|
|
244
238
|
/**
|
|
245
239
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
246
240
|
*/
|
|
@@ -255,40 +249,40 @@ export type DeploymentGetConfig2CacheControl = {
|
|
|
255
249
|
*
|
|
256
250
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
257
251
|
*/
|
|
258
|
-
ttl?:
|
|
252
|
+
ttl?: Ttl | undefined;
|
|
259
253
|
};
|
|
260
254
|
|
|
261
|
-
export type
|
|
255
|
+
export type Four = {
|
|
262
256
|
/**
|
|
263
257
|
* The type of the content part. Always `file`.
|
|
264
258
|
*/
|
|
265
259
|
type: "file";
|
|
266
|
-
cacheControl?:
|
|
260
|
+
cacheControl?: CacheControl | undefined;
|
|
267
261
|
/**
|
|
268
262
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
269
263
|
*/
|
|
270
264
|
file: components.FileContentPartSchema;
|
|
271
265
|
};
|
|
272
266
|
|
|
273
|
-
export type
|
|
267
|
+
export type Content2 =
|
|
274
268
|
| (components.TextContentPartSchema & { type: "text" })
|
|
275
269
|
| components.ImageContentPartSchema
|
|
276
270
|
| components.AudioContentPartSchema
|
|
277
|
-
|
|
|
271
|
+
| Four;
|
|
278
272
|
|
|
279
273
|
/**
|
|
280
274
|
* The contents of the user message.
|
|
281
275
|
*/
|
|
282
|
-
export type
|
|
276
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsContent =
|
|
283
277
|
| string
|
|
284
278
|
| Array<
|
|
285
279
|
| (components.TextContentPartSchema & { type: "text" })
|
|
286
280
|
| components.ImageContentPartSchema
|
|
287
281
|
| components.AudioContentPartSchema
|
|
288
|
-
|
|
|
282
|
+
| Four
|
|
289
283
|
>;
|
|
290
284
|
|
|
291
|
-
export type
|
|
285
|
+
export type UserMessage = {
|
|
292
286
|
/**
|
|
293
287
|
* The role of the messages author, in this case `user`.
|
|
294
288
|
*/
|
|
@@ -306,18 +300,18 @@ export type PrefixMessagesUserMessage = {
|
|
|
306
300
|
| (components.TextContentPartSchema & { type: "text" })
|
|
307
301
|
| components.ImageContentPartSchema
|
|
308
302
|
| components.AudioContentPartSchema
|
|
309
|
-
|
|
|
303
|
+
| Four
|
|
310
304
|
>;
|
|
311
305
|
};
|
|
312
306
|
|
|
313
307
|
/**
|
|
314
308
|
* The contents of the developer message.
|
|
315
309
|
*/
|
|
316
|
-
export type
|
|
310
|
+
export type DeploymentGetConfigPrefixMessagesContent =
|
|
317
311
|
| string
|
|
318
312
|
| Array<components.TextContentPartSchema>;
|
|
319
313
|
|
|
320
|
-
export type
|
|
314
|
+
export type DeveloperMessage = {
|
|
321
315
|
/**
|
|
322
316
|
* The role of the messages author, in this case `developer`.
|
|
323
317
|
*/
|
|
@@ -335,14 +329,14 @@ export type PrefixMessagesDeveloperMessage = {
|
|
|
335
329
|
/**
|
|
336
330
|
* The contents of the system message.
|
|
337
331
|
*/
|
|
338
|
-
export type
|
|
332
|
+
export type PrefixMessagesContent =
|
|
339
333
|
| string
|
|
340
334
|
| Array<components.TextContentPartSchema>;
|
|
341
335
|
|
|
342
336
|
/**
|
|
343
337
|
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
344
338
|
*/
|
|
345
|
-
export type
|
|
339
|
+
export type SystemMessage = {
|
|
346
340
|
/**
|
|
347
341
|
* The role of the messages author, in this case `system`.
|
|
348
342
|
*/
|
|
@@ -357,34 +351,34 @@ export type PrefixMessagesSystemMessage = {
|
|
|
357
351
|
name?: string | undefined;
|
|
358
352
|
};
|
|
359
353
|
|
|
360
|
-
export type
|
|
361
|
-
|
|
|
362
|
-
|
|
|
363
|
-
|
|
|
364
|
-
|
|
|
365
|
-
|
|
|
354
|
+
export type PrefixMessages =
|
|
355
|
+
| SystemMessage
|
|
356
|
+
| DeveloperMessage
|
|
357
|
+
| UserMessage
|
|
358
|
+
| AssistantMessage
|
|
359
|
+
| ToolMessage;
|
|
366
360
|
|
|
367
|
-
export type
|
|
361
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 =
|
|
368
362
|
components.TextContentPartSchema;
|
|
369
363
|
|
|
370
364
|
/**
|
|
371
365
|
* The contents of the tool message.
|
|
372
366
|
*/
|
|
373
|
-
export type
|
|
367
|
+
export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
|
|
374
368
|
| string
|
|
375
369
|
| Array<components.TextContentPartSchema>;
|
|
376
370
|
|
|
377
371
|
/**
|
|
378
372
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
379
373
|
*/
|
|
380
|
-
export const
|
|
374
|
+
export const DeploymentGetConfigMessagesType = {
|
|
381
375
|
Ephemeral: "ephemeral",
|
|
382
376
|
} as const;
|
|
383
377
|
/**
|
|
384
378
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
385
379
|
*/
|
|
386
|
-
export type
|
|
387
|
-
typeof
|
|
380
|
+
export type DeploymentGetConfigMessagesType = ClosedEnum<
|
|
381
|
+
typeof DeploymentGetConfigMessagesType
|
|
388
382
|
>;
|
|
389
383
|
|
|
390
384
|
/**
|
|
@@ -397,7 +391,7 @@ export type DeploymentGetConfigMessagesDeploymentsType = ClosedEnum<
|
|
|
397
391
|
*
|
|
398
392
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
399
393
|
*/
|
|
400
|
-
export const
|
|
394
|
+
export const MessagesTtl = {
|
|
401
395
|
Fivem: "5m",
|
|
402
396
|
Oneh: "1h",
|
|
403
397
|
} as const;
|
|
@@ -411,15 +405,13 @@ export const DeploymentGetConfigMessagesTtl = {
|
|
|
411
405
|
*
|
|
412
406
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
413
407
|
*/
|
|
414
|
-
export type
|
|
415
|
-
typeof DeploymentGetConfigMessagesTtl
|
|
416
|
-
>;
|
|
408
|
+
export type MessagesTtl = ClosedEnum<typeof MessagesTtl>;
|
|
417
409
|
|
|
418
|
-
export type
|
|
410
|
+
export type MessagesCacheControl = {
|
|
419
411
|
/**
|
|
420
412
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
421
413
|
*/
|
|
422
|
-
type:
|
|
414
|
+
type: DeploymentGetConfigMessagesType;
|
|
423
415
|
/**
|
|
424
416
|
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
425
417
|
*
|
|
@@ -430,10 +422,10 @@ export type DeploymentGetConfigMessagesCacheControl = {
|
|
|
430
422
|
*
|
|
431
423
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
432
424
|
*/
|
|
433
|
-
ttl?:
|
|
425
|
+
ttl?: MessagesTtl | undefined;
|
|
434
426
|
};
|
|
435
427
|
|
|
436
|
-
export type
|
|
428
|
+
export type MessagesToolMessage = {
|
|
437
429
|
/**
|
|
438
430
|
* The role of the messages author, in this case tool.
|
|
439
431
|
*/
|
|
@@ -446,10 +438,10 @@ export type DeploymentGetConfigMessagesToolMessage = {
|
|
|
446
438
|
* Tool call that this message is responding to.
|
|
447
439
|
*/
|
|
448
440
|
toolCallId: string | null;
|
|
449
|
-
cacheControl?:
|
|
441
|
+
cacheControl?: MessagesCacheControl | undefined;
|
|
450
442
|
};
|
|
451
443
|
|
|
452
|
-
export type
|
|
444
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBody2 =
|
|
453
445
|
| (components.TextContentPartSchema & { type: "text" })
|
|
454
446
|
| components.RefusalPartSchema
|
|
455
447
|
| components.ReasoningPartSchema
|
|
@@ -458,7 +450,7 @@ export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 =
|
|
|
458
450
|
/**
|
|
459
451
|
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
460
452
|
*/
|
|
461
|
-
export type
|
|
453
|
+
export type DeploymentGetConfigMessagesDeploymentsRequestContent =
|
|
462
454
|
| string
|
|
463
455
|
| Array<
|
|
464
456
|
| (components.TextContentPartSchema & { type: "text" })
|
|
@@ -470,7 +462,7 @@ export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
|
|
|
470
462
|
/**
|
|
471
463
|
* Data about a previous audio response from the model.
|
|
472
464
|
*/
|
|
473
|
-
export type
|
|
465
|
+
export type MessagesAudio = {
|
|
474
466
|
/**
|
|
475
467
|
* Unique identifier for a previous audio response from the model.
|
|
476
468
|
*/
|
|
@@ -480,17 +472,15 @@ export type DeploymentGetConfigMessagesAudio = {
|
|
|
480
472
|
/**
|
|
481
473
|
* The type of the tool. Currently, only `function` is supported.
|
|
482
474
|
*/
|
|
483
|
-
export const
|
|
475
|
+
export const MessagesType = {
|
|
484
476
|
Function: "function",
|
|
485
477
|
} as const;
|
|
486
478
|
/**
|
|
487
479
|
* The type of the tool. Currently, only `function` is supported.
|
|
488
480
|
*/
|
|
489
|
-
export type
|
|
490
|
-
typeof DeploymentGetConfigMessagesType
|
|
491
|
-
>;
|
|
481
|
+
export type MessagesType = ClosedEnum<typeof MessagesType>;
|
|
492
482
|
|
|
493
|
-
export type
|
|
483
|
+
export type MessagesFunction = {
|
|
494
484
|
/**
|
|
495
485
|
* The name of the function to call.
|
|
496
486
|
*/
|
|
@@ -501,7 +491,7 @@ export type DeploymentGetConfigMessagesFunction = {
|
|
|
501
491
|
arguments?: string | undefined;
|
|
502
492
|
};
|
|
503
493
|
|
|
504
|
-
export type
|
|
494
|
+
export type MessagesToolCalls = {
|
|
505
495
|
/**
|
|
506
496
|
* The ID of the tool call.
|
|
507
497
|
*/
|
|
@@ -509,15 +499,15 @@ export type DeploymentGetConfigMessagesToolCalls = {
|
|
|
509
499
|
/**
|
|
510
500
|
* The type of the tool. Currently, only `function` is supported.
|
|
511
501
|
*/
|
|
512
|
-
type:
|
|
513
|
-
function:
|
|
502
|
+
type: MessagesType;
|
|
503
|
+
function: MessagesFunction;
|
|
514
504
|
/**
|
|
515
505
|
* Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
|
|
516
506
|
*/
|
|
517
507
|
thoughtSignature?: string | undefined;
|
|
518
508
|
};
|
|
519
509
|
|
|
520
|
-
export type
|
|
510
|
+
export type MessagesAssistantMessage = {
|
|
521
511
|
/**
|
|
522
512
|
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
523
513
|
*/
|
|
@@ -546,11 +536,11 @@ export type DeploymentGetConfigMessagesAssistantMessage = {
|
|
|
546
536
|
/**
|
|
547
537
|
* Data about a previous audio response from the model.
|
|
548
538
|
*/
|
|
549
|
-
audio?:
|
|
539
|
+
audio?: MessagesAudio | null | undefined;
|
|
550
540
|
/**
|
|
551
541
|
* The tool calls generated by the model, such as function calls.
|
|
552
542
|
*/
|
|
553
|
-
toolCalls?: Array<
|
|
543
|
+
toolCalls?: Array<MessagesToolCalls> | undefined;
|
|
554
544
|
};
|
|
555
545
|
|
|
556
546
|
/**
|
|
@@ -576,7 +566,7 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
|
|
|
576
566
|
*
|
|
577
567
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
578
568
|
*/
|
|
579
|
-
export const
|
|
569
|
+
export const TwoTtl = {
|
|
580
570
|
Fivem: "5m",
|
|
581
571
|
Oneh: "1h",
|
|
582
572
|
} as const;
|
|
@@ -590,11 +580,9 @@ export const DeploymentGetConfig2DeploymentsTtl = {
|
|
|
590
580
|
*
|
|
591
581
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
592
582
|
*/
|
|
593
|
-
export type
|
|
594
|
-
typeof DeploymentGetConfig2DeploymentsTtl
|
|
595
|
-
>;
|
|
583
|
+
export type TwoTtl = ClosedEnum<typeof TwoTtl>;
|
|
596
584
|
|
|
597
|
-
export type
|
|
585
|
+
export type TwoCacheControl = {
|
|
598
586
|
/**
|
|
599
587
|
* Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
|
|
600
588
|
*/
|
|
@@ -609,40 +597,40 @@ export type DeploymentGetConfig2DeploymentsCacheControl = {
|
|
|
609
597
|
*
|
|
610
598
|
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
611
599
|
*/
|
|
612
|
-
ttl?:
|
|
600
|
+
ttl?: TwoTtl | undefined;
|
|
613
601
|
};
|
|
614
602
|
|
|
615
|
-
export type
|
|
603
|
+
export type Two4 = {
|
|
616
604
|
/**
|
|
617
605
|
* The type of the content part. Always `file`.
|
|
618
606
|
*/
|
|
619
607
|
type: "file";
|
|
620
|
-
cacheControl?:
|
|
608
|
+
cacheControl?: TwoCacheControl | undefined;
|
|
621
609
|
/**
|
|
622
610
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
623
611
|
*/
|
|
624
612
|
file: components.FileContentPartSchema;
|
|
625
613
|
};
|
|
626
614
|
|
|
627
|
-
export type
|
|
615
|
+
export type DeploymentGetConfigContentDeploymentsRequest2 =
|
|
628
616
|
| (components.TextContentPartSchema & { type: "text" })
|
|
629
617
|
| components.ImageContentPartSchema
|
|
630
618
|
| components.AudioContentPartSchema
|
|
631
|
-
|
|
|
619
|
+
| Two4;
|
|
632
620
|
|
|
633
621
|
/**
|
|
634
622
|
* The contents of the user message.
|
|
635
623
|
*/
|
|
636
|
-
export type
|
|
624
|
+
export type DeploymentGetConfigMessagesDeploymentsContent =
|
|
637
625
|
| string
|
|
638
626
|
| Array<
|
|
639
627
|
| (components.TextContentPartSchema & { type: "text" })
|
|
640
628
|
| components.ImageContentPartSchema
|
|
641
629
|
| components.AudioContentPartSchema
|
|
642
|
-
|
|
|
630
|
+
| Two4
|
|
643
631
|
>;
|
|
644
632
|
|
|
645
|
-
export type
|
|
633
|
+
export type MessagesUserMessage = {
|
|
646
634
|
/**
|
|
647
635
|
* The role of the messages author, in this case `user`.
|
|
648
636
|
*/
|
|
@@ -660,18 +648,18 @@ export type DeploymentGetConfigMessagesUserMessage = {
|
|
|
660
648
|
| (components.TextContentPartSchema & { type: "text" })
|
|
661
649
|
| components.ImageContentPartSchema
|
|
662
650
|
| components.AudioContentPartSchema
|
|
663
|
-
|
|
|
651
|
+
| Two4
|
|
664
652
|
>;
|
|
665
653
|
};
|
|
666
654
|
|
|
667
655
|
/**
|
|
668
656
|
* The contents of the developer message.
|
|
669
657
|
*/
|
|
670
|
-
export type
|
|
658
|
+
export type DeploymentGetConfigMessagesContent =
|
|
671
659
|
| string
|
|
672
660
|
| Array<components.TextContentPartSchema>;
|
|
673
661
|
|
|
674
|
-
export type
|
|
662
|
+
export type MessagesDeveloperMessage = {
|
|
675
663
|
/**
|
|
676
664
|
* The role of the messages author, in this case `developer`.
|
|
677
665
|
*/
|
|
@@ -689,14 +677,12 @@ export type DeploymentGetConfigMessagesDeveloperMessage = {
|
|
|
689
677
|
/**
|
|
690
678
|
* The contents of the system message.
|
|
691
679
|
*/
|
|
692
|
-
export type
|
|
693
|
-
| string
|
|
694
|
-
| Array<components.TextContentPartSchema>;
|
|
680
|
+
export type MessagesContent = string | Array<components.TextContentPartSchema>;
|
|
695
681
|
|
|
696
682
|
/**
|
|
697
683
|
* Developer-provided instructions that the model should follow, regardless of messages sent by the user.
|
|
698
684
|
*/
|
|
699
|
-
export type
|
|
685
|
+
export type MessagesSystemMessage = {
|
|
700
686
|
/**
|
|
701
687
|
* The role of the messages author, in this case `system`.
|
|
702
688
|
*/
|
|
@@ -712,16 +698,16 @@ export type DeploymentGetConfigMessagesSystemMessage = {
|
|
|
712
698
|
};
|
|
713
699
|
|
|
714
700
|
export type DeploymentGetConfigMessages =
|
|
715
|
-
|
|
|
716
|
-
|
|
|
717
|
-
|
|
|
718
|
-
|
|
|
719
|
-
|
|
|
701
|
+
| MessagesSystemMessage
|
|
702
|
+
| MessagesDeveloperMessage
|
|
703
|
+
| MessagesUserMessage
|
|
704
|
+
| MessagesAssistantMessage
|
|
705
|
+
| MessagesToolMessage;
|
|
720
706
|
|
|
721
707
|
/**
|
|
722
708
|
* Metadata about the document
|
|
723
709
|
*/
|
|
724
|
-
export type
|
|
710
|
+
export type Metadata = {
|
|
725
711
|
/**
|
|
726
712
|
* Name of the file the text is from.
|
|
727
713
|
*/
|
|
@@ -736,7 +722,7 @@ export type DeploymentGetConfigMetadata = {
|
|
|
736
722
|
pageNumber?: number | undefined;
|
|
737
723
|
};
|
|
738
724
|
|
|
739
|
-
export type
|
|
725
|
+
export type Documents = {
|
|
740
726
|
/**
|
|
741
727
|
* The text content of the document
|
|
742
728
|
*/
|
|
@@ -744,10 +730,10 @@ export type DeploymentGetConfigDocuments = {
|
|
|
744
730
|
/**
|
|
745
731
|
* Metadata about the document
|
|
746
732
|
*/
|
|
747
|
-
metadata?:
|
|
733
|
+
metadata?: Metadata | undefined;
|
|
748
734
|
};
|
|
749
735
|
|
|
750
|
-
export type
|
|
736
|
+
export type InvokeOptions = {
|
|
751
737
|
/**
|
|
752
738
|
* Whether to include the retrieved knowledge chunks in the response.
|
|
753
739
|
*/
|
|
@@ -762,7 +748,7 @@ export type DeploymentGetConfigInvokeOptions = {
|
|
|
762
748
|
mockResponse?: string | undefined;
|
|
763
749
|
};
|
|
764
750
|
|
|
765
|
-
export type
|
|
751
|
+
export type Thread = {
|
|
766
752
|
/**
|
|
767
753
|
* Unique thread identifier to group related invocations.
|
|
768
754
|
*/
|
|
@@ -776,101 +762,101 @@ export type DeploymentGetConfigThread = {
|
|
|
776
762
|
/**
|
|
777
763
|
* Exists
|
|
778
764
|
*/
|
|
779
|
-
export type
|
|
765
|
+
export type OrExists = {
|
|
780
766
|
exists: boolean;
|
|
781
767
|
};
|
|
782
768
|
|
|
783
|
-
export type
|
|
769
|
+
export type DeploymentGetConfigOrNin = string | number | boolean;
|
|
784
770
|
|
|
785
771
|
/**
|
|
786
772
|
* Not in
|
|
787
773
|
*/
|
|
788
|
-
export type
|
|
774
|
+
export type OrNin = {
|
|
789
775
|
nin: Array<string | number | boolean>;
|
|
790
776
|
};
|
|
791
777
|
|
|
792
|
-
export type
|
|
778
|
+
export type DeploymentGetConfigOrIn = string | number | boolean;
|
|
793
779
|
|
|
794
780
|
/**
|
|
795
781
|
* In
|
|
796
782
|
*/
|
|
797
|
-
export type
|
|
783
|
+
export type OrIn = {
|
|
798
784
|
in: Array<string | number | boolean>;
|
|
799
785
|
};
|
|
800
786
|
|
|
801
787
|
/**
|
|
802
788
|
* Less than or equal to
|
|
803
789
|
*/
|
|
804
|
-
export type
|
|
790
|
+
export type OrLte = {
|
|
805
791
|
lte: number;
|
|
806
792
|
};
|
|
807
793
|
|
|
808
794
|
/**
|
|
809
795
|
* Less than
|
|
810
796
|
*/
|
|
811
|
-
export type
|
|
797
|
+
export type OrLt = {
|
|
812
798
|
lt: number;
|
|
813
799
|
};
|
|
814
800
|
|
|
815
801
|
/**
|
|
816
802
|
* Greater than or equal to
|
|
817
803
|
*/
|
|
818
|
-
export type
|
|
804
|
+
export type OrGte = {
|
|
819
805
|
gte: number;
|
|
820
806
|
};
|
|
821
807
|
|
|
822
808
|
/**
|
|
823
809
|
* Greater than
|
|
824
810
|
*/
|
|
825
|
-
export type
|
|
811
|
+
export type OrGt = {
|
|
826
812
|
gt: number;
|
|
827
813
|
};
|
|
828
814
|
|
|
829
|
-
export type
|
|
815
|
+
export type DeploymentGetConfigOrNe = string | number | boolean;
|
|
830
816
|
|
|
831
817
|
/**
|
|
832
818
|
* Not equal to
|
|
833
819
|
*/
|
|
834
|
-
export type
|
|
820
|
+
export type OrNe = {
|
|
835
821
|
ne: string | number | boolean;
|
|
836
822
|
};
|
|
837
823
|
|
|
838
|
-
export type
|
|
824
|
+
export type DeploymentGetConfigOrEq = string | number | boolean;
|
|
839
825
|
|
|
840
826
|
/**
|
|
841
827
|
* Equal to
|
|
842
828
|
*/
|
|
843
|
-
export type
|
|
829
|
+
export type OrEq = {
|
|
844
830
|
eq: string | number | boolean;
|
|
845
831
|
};
|
|
846
832
|
|
|
847
|
-
export type
|
|
848
|
-
|
|
|
849
|
-
|
|
|
850
|
-
|
|
|
851
|
-
|
|
|
852
|
-
|
|
|
853
|
-
|
|
|
854
|
-
|
|
|
855
|
-
|
|
|
856
|
-
|
|
|
833
|
+
export type KnowledgeFilterOr =
|
|
834
|
+
| OrEq
|
|
835
|
+
| OrNe
|
|
836
|
+
| OrGt
|
|
837
|
+
| OrGte
|
|
838
|
+
| OrLt
|
|
839
|
+
| OrLte
|
|
840
|
+
| OrIn
|
|
841
|
+
| OrNin
|
|
842
|
+
| OrExists;
|
|
857
843
|
|
|
858
844
|
/**
|
|
859
845
|
* Or
|
|
860
846
|
*/
|
|
861
|
-
export type
|
|
847
|
+
export type Or = {
|
|
862
848
|
or: Array<
|
|
863
849
|
{
|
|
864
850
|
[k: string]:
|
|
865
|
-
|
|
|
866
|
-
|
|
|
867
|
-
|
|
|
868
|
-
|
|
|
869
|
-
|
|
|
870
|
-
|
|
|
871
|
-
|
|
|
872
|
-
|
|
|
873
|
-
|
|
|
851
|
+
| OrEq
|
|
852
|
+
| OrNe
|
|
853
|
+
| OrGt
|
|
854
|
+
| OrGte
|
|
855
|
+
| OrLt
|
|
856
|
+
| OrLte
|
|
857
|
+
| OrIn
|
|
858
|
+
| OrNin
|
|
859
|
+
| OrExists;
|
|
874
860
|
}
|
|
875
861
|
>;
|
|
876
862
|
};
|
|
@@ -878,101 +864,101 @@ export type DeploymentGetConfigKnowledgeFilterOr = {
|
|
|
878
864
|
/**
|
|
879
865
|
* Exists
|
|
880
866
|
*/
|
|
881
|
-
export type
|
|
867
|
+
export type AndExists = {
|
|
882
868
|
exists: boolean;
|
|
883
869
|
};
|
|
884
870
|
|
|
885
|
-
export type
|
|
871
|
+
export type DeploymentGetConfigAndNin = string | number | boolean;
|
|
886
872
|
|
|
887
873
|
/**
|
|
888
874
|
* Not in
|
|
889
875
|
*/
|
|
890
|
-
export type
|
|
876
|
+
export type AndNin = {
|
|
891
877
|
nin: Array<string | number | boolean>;
|
|
892
878
|
};
|
|
893
879
|
|
|
894
|
-
export type
|
|
880
|
+
export type DeploymentGetConfigAndIn = string | number | boolean;
|
|
895
881
|
|
|
896
882
|
/**
|
|
897
883
|
* In
|
|
898
884
|
*/
|
|
899
|
-
export type
|
|
885
|
+
export type AndIn = {
|
|
900
886
|
in: Array<string | number | boolean>;
|
|
901
887
|
};
|
|
902
888
|
|
|
903
889
|
/**
|
|
904
890
|
* Less than or equal to
|
|
905
891
|
*/
|
|
906
|
-
export type
|
|
892
|
+
export type AndLte = {
|
|
907
893
|
lte: number;
|
|
908
894
|
};
|
|
909
895
|
|
|
910
896
|
/**
|
|
911
897
|
* Less than
|
|
912
898
|
*/
|
|
913
|
-
export type
|
|
899
|
+
export type AndLt = {
|
|
914
900
|
lt: number;
|
|
915
901
|
};
|
|
916
902
|
|
|
917
903
|
/**
|
|
918
904
|
* Greater than or equal to
|
|
919
905
|
*/
|
|
920
|
-
export type
|
|
906
|
+
export type AndGte = {
|
|
921
907
|
gte: number;
|
|
922
908
|
};
|
|
923
909
|
|
|
924
910
|
/**
|
|
925
911
|
* Greater than
|
|
926
912
|
*/
|
|
927
|
-
export type
|
|
913
|
+
export type AndGt = {
|
|
928
914
|
gt: number;
|
|
929
915
|
};
|
|
930
916
|
|
|
931
|
-
export type
|
|
917
|
+
export type DeploymentGetConfigAndNe = string | number | boolean;
|
|
932
918
|
|
|
933
919
|
/**
|
|
934
920
|
* Not equal to
|
|
935
921
|
*/
|
|
936
|
-
export type
|
|
922
|
+
export type AndNe = {
|
|
937
923
|
ne: string | number | boolean;
|
|
938
924
|
};
|
|
939
925
|
|
|
940
|
-
export type
|
|
926
|
+
export type DeploymentGetConfigAndEq = string | number | boolean;
|
|
941
927
|
|
|
942
928
|
/**
|
|
943
929
|
* Equal to
|
|
944
930
|
*/
|
|
945
|
-
export type
|
|
931
|
+
export type AndEq = {
|
|
946
932
|
eq: string | number | boolean;
|
|
947
933
|
};
|
|
948
934
|
|
|
949
|
-
export type
|
|
950
|
-
|
|
|
951
|
-
|
|
|
952
|
-
|
|
|
953
|
-
|
|
|
954
|
-
|
|
|
955
|
-
|
|
|
956
|
-
|
|
|
957
|
-
|
|
|
958
|
-
|
|
|
935
|
+
export type KnowledgeFilterAnd =
|
|
936
|
+
| AndEq
|
|
937
|
+
| AndNe
|
|
938
|
+
| AndGt
|
|
939
|
+
| AndGte
|
|
940
|
+
| AndLt
|
|
941
|
+
| AndLte
|
|
942
|
+
| AndIn
|
|
943
|
+
| AndNin
|
|
944
|
+
| AndExists;
|
|
959
945
|
|
|
960
946
|
/**
|
|
961
947
|
* And
|
|
962
948
|
*/
|
|
963
|
-
export type
|
|
949
|
+
export type And = {
|
|
964
950
|
and: Array<
|
|
965
951
|
{
|
|
966
952
|
[k: string]:
|
|
967
|
-
|
|
|
968
|
-
|
|
|
969
|
-
|
|
|
970
|
-
|
|
|
971
|
-
|
|
|
972
|
-
|
|
|
973
|
-
|
|
|
974
|
-
|
|
|
975
|
-
|
|
|
953
|
+
| AndEq
|
|
954
|
+
| AndNe
|
|
955
|
+
| AndGt
|
|
956
|
+
| AndGte
|
|
957
|
+
| AndLt
|
|
958
|
+
| AndLte
|
|
959
|
+
| AndIn
|
|
960
|
+
| AndNin
|
|
961
|
+
| AndExists;
|
|
976
962
|
}
|
|
977
963
|
>;
|
|
978
964
|
};
|
|
@@ -980,103 +966,91 @@ export type DeploymentGetConfigKnowledgeFilterAnd = {
|
|
|
980
966
|
/**
|
|
981
967
|
* Exists
|
|
982
968
|
*/
|
|
983
|
-
export type
|
|
969
|
+
export type Exists = {
|
|
984
970
|
exists: boolean;
|
|
985
971
|
};
|
|
986
972
|
|
|
987
|
-
export type
|
|
973
|
+
export type OneNin = string | number | boolean;
|
|
988
974
|
|
|
989
975
|
/**
|
|
990
976
|
* Not in
|
|
991
977
|
*/
|
|
992
|
-
export type
|
|
978
|
+
export type Nin = {
|
|
993
979
|
nin: Array<string | number | boolean>;
|
|
994
980
|
};
|
|
995
981
|
|
|
996
|
-
export type
|
|
982
|
+
export type OneIn = string | number | boolean;
|
|
997
983
|
|
|
998
984
|
/**
|
|
999
985
|
* In
|
|
1000
986
|
*/
|
|
1001
|
-
export type
|
|
987
|
+
export type In = {
|
|
1002
988
|
in: Array<string | number | boolean>;
|
|
1003
989
|
};
|
|
1004
990
|
|
|
1005
991
|
/**
|
|
1006
992
|
* Less than or equal to
|
|
1007
993
|
*/
|
|
1008
|
-
export type
|
|
994
|
+
export type Lte = {
|
|
1009
995
|
lte: number;
|
|
1010
996
|
};
|
|
1011
997
|
|
|
1012
998
|
/**
|
|
1013
999
|
* Less than
|
|
1014
1000
|
*/
|
|
1015
|
-
export type
|
|
1001
|
+
export type Lt = {
|
|
1016
1002
|
lt: number;
|
|
1017
1003
|
};
|
|
1018
1004
|
|
|
1019
1005
|
/**
|
|
1020
1006
|
* Greater than or equal to
|
|
1021
1007
|
*/
|
|
1022
|
-
export type
|
|
1008
|
+
export type Gte = {
|
|
1023
1009
|
gte: number;
|
|
1024
1010
|
};
|
|
1025
1011
|
|
|
1026
1012
|
/**
|
|
1027
1013
|
* Greater than
|
|
1028
1014
|
*/
|
|
1029
|
-
export type
|
|
1015
|
+
export type Gt = {
|
|
1030
1016
|
gt: number;
|
|
1031
1017
|
};
|
|
1032
1018
|
|
|
1033
|
-
export type
|
|
1019
|
+
export type OneNe = string | number | boolean;
|
|
1034
1020
|
|
|
1035
1021
|
/**
|
|
1036
1022
|
* Not equal to
|
|
1037
1023
|
*/
|
|
1038
|
-
export type
|
|
1024
|
+
export type Ne = {
|
|
1039
1025
|
ne: string | number | boolean;
|
|
1040
1026
|
};
|
|
1041
1027
|
|
|
1042
|
-
export type
|
|
1028
|
+
export type OneEq = string | number | boolean;
|
|
1043
1029
|
|
|
1044
1030
|
/**
|
|
1045
1031
|
* Equal to
|
|
1046
1032
|
*/
|
|
1047
|
-
export type
|
|
1033
|
+
export type Eq = {
|
|
1048
1034
|
eq: string | number | boolean;
|
|
1049
1035
|
};
|
|
1050
1036
|
|
|
1051
|
-
export type
|
|
1052
|
-
|
|
|
1053
|
-
|
|
|
1054
|
-
|
|
|
1055
|
-
|
|
|
1056
|
-
|
|
|
1057
|
-
|
|
|
1058
|
-
|
|
|
1059
|
-
|
|
|
1060
|
-
|
|
|
1037
|
+
export type KnowledgeFilter1 =
|
|
1038
|
+
| Eq
|
|
1039
|
+
| Ne
|
|
1040
|
+
| Gt
|
|
1041
|
+
| Gte
|
|
1042
|
+
| Lt
|
|
1043
|
+
| Lte
|
|
1044
|
+
| In
|
|
1045
|
+
| Nin
|
|
1046
|
+
| Exists;
|
|
1061
1047
|
|
|
1062
1048
|
/**
|
|
1063
1049
|
* A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
|
|
1064
1050
|
*/
|
|
1065
|
-
export type
|
|
1066
|
-
|
|
|
1067
|
-
|
|
1068
|
-
| {
|
|
1069
|
-
[k: string]:
|
|
1070
|
-
| DeploymentGetConfig1Eq
|
|
1071
|
-
| DeploymentGetConfig1Ne
|
|
1072
|
-
| OneGt
|
|
1073
|
-
| OneGte
|
|
1074
|
-
| OneLt
|
|
1075
|
-
| OneLte
|
|
1076
|
-
| DeploymentGetConfig1In
|
|
1077
|
-
| DeploymentGetConfig1Nin
|
|
1078
|
-
| OneExists;
|
|
1079
|
-
};
|
|
1051
|
+
export type KnowledgeFilter = And | Or | {
|
|
1052
|
+
[k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
|
|
1053
|
+
};
|
|
1080
1054
|
|
|
1081
1055
|
export type DeploymentGetConfigRequestBody = {
|
|
1082
1056
|
/**
|
|
@@ -1096,11 +1070,11 @@ export type DeploymentGetConfigRequestBody = {
|
|
|
1096
1070
|
*/
|
|
1097
1071
|
prefixMessages?:
|
|
1098
1072
|
| Array<
|
|
1099
|
-
|
|
|
1100
|
-
|
|
|
1101
|
-
|
|
|
1102
|
-
|
|
|
1103
|
-
|
|
|
1073
|
+
| SystemMessage
|
|
1074
|
+
| DeveloperMessage
|
|
1075
|
+
| UserMessage
|
|
1076
|
+
| AssistantMessage
|
|
1077
|
+
| ToolMessage
|
|
1104
1078
|
>
|
|
1105
1079
|
| undefined;
|
|
1106
1080
|
/**
|
|
@@ -1108,11 +1082,11 @@ export type DeploymentGetConfigRequestBody = {
|
|
|
1108
1082
|
*/
|
|
1109
1083
|
messages?:
|
|
1110
1084
|
| Array<
|
|
1111
|
-
|
|
|
1112
|
-
|
|
|
1113
|
-
|
|
|
1114
|
-
|
|
|
1115
|
-
|
|
|
1085
|
+
| MessagesSystemMessage
|
|
1086
|
+
| MessagesDeveloperMessage
|
|
1087
|
+
| MessagesUserMessage
|
|
1088
|
+
| MessagesAssistantMessage
|
|
1089
|
+
| MessagesToolMessage
|
|
1116
1090
|
>
|
|
1117
1091
|
| undefined;
|
|
1118
1092
|
/**
|
|
@@ -1134,28 +1108,15 @@ export type DeploymentGetConfigRequestBody = {
|
|
|
1134
1108
|
/**
|
|
1135
1109
|
* A list of documents from your external knowledge base (e.g., chunks retrieved from your own vector database or RAG pipeline) that provide context for the model response. These documents can be used by evaluators and guardrails to assess the relevance and accuracy of the model output against the provided context.
|
|
1136
1110
|
*/
|
|
1137
|
-
documents?: Array<
|
|
1138
|
-
invokeOptions?:
|
|
1139
|
-
thread?:
|
|
1111
|
+
documents?: Array<Documents> | undefined;
|
|
1112
|
+
invokeOptions?: InvokeOptions | undefined;
|
|
1113
|
+
thread?: Thread | undefined;
|
|
1140
1114
|
/**
|
|
1141
1115
|
* A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
|
|
1142
1116
|
*/
|
|
1143
|
-
knowledgeFilter?:
|
|
1144
|
-
|
|
|
1145
|
-
|
|
1146
|
-
| {
|
|
1147
|
-
[k: string]:
|
|
1148
|
-
| DeploymentGetConfig1Eq
|
|
1149
|
-
| DeploymentGetConfig1Ne
|
|
1150
|
-
| OneGt
|
|
1151
|
-
| OneGte
|
|
1152
|
-
| OneLt
|
|
1153
|
-
| OneLte
|
|
1154
|
-
| DeploymentGetConfig1In
|
|
1155
|
-
| DeploymentGetConfig1Nin
|
|
1156
|
-
| OneExists;
|
|
1157
|
-
}
|
|
1158
|
-
| undefined;
|
|
1117
|
+
knowledgeFilter?: And | Or | {
|
|
1118
|
+
[k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
|
|
1119
|
+
} | undefined;
|
|
1159
1120
|
};
|
|
1160
1121
|
|
|
1161
1122
|
/**
|
|
@@ -1271,11 +1232,11 @@ export type DeploymentGetConfigContent =
|
|
|
1271
1232
|
| string
|
|
1272
1233
|
| Array<Two1 | DeploymentGetConfig22 | Two3>;
|
|
1273
1234
|
|
|
1274
|
-
export const
|
|
1235
|
+
export const DeploymentGetConfigDeploymentsResponse200Type = {
|
|
1275
1236
|
Function: "function",
|
|
1276
1237
|
} as const;
|
|
1277
|
-
export type
|
|
1278
|
-
typeof
|
|
1238
|
+
export type DeploymentGetConfigDeploymentsResponse200Type = ClosedEnum<
|
|
1239
|
+
typeof DeploymentGetConfigDeploymentsResponse200Type
|
|
1279
1240
|
>;
|
|
1280
1241
|
|
|
1281
1242
|
export type DeploymentGetConfigDeploymentsFunction = {
|
|
@@ -1289,7 +1250,7 @@ export type DeploymentGetConfigDeploymentsFunction = {
|
|
|
1289
1250
|
export type DeploymentGetConfigToolCalls = {
|
|
1290
1251
|
id?: string | undefined;
|
|
1291
1252
|
index?: number | undefined;
|
|
1292
|
-
type:
|
|
1253
|
+
type: DeploymentGetConfigDeploymentsResponse200Type;
|
|
1293
1254
|
function: DeploymentGetConfigDeploymentsFunction;
|
|
1294
1255
|
};
|
|
1295
1256
|
|
|
@@ -1377,7 +1338,7 @@ export type DeploymentGetConfigResponseFormatDeploymentsResponseType =
|
|
|
1377
1338
|
|
|
1378
1339
|
export type DeploymentGetConfigResponseFormatJsonSchema = {
|
|
1379
1340
|
name: string;
|
|
1380
|
-
description?: string | undefined;
|
|
1341
|
+
description?: string | null | undefined;
|
|
1381
1342
|
strict?: boolean | undefined;
|
|
1382
1343
|
schema: { [k: string]: any };
|
|
1383
1344
|
};
|
|
@@ -1407,6 +1368,66 @@ export type DeploymentGetConfigResponseFormat =
|
|
|
1407
1368
|
| ResponseFormat5
|
|
1408
1369
|
| ResponseFormat6;
|
|
1409
1370
|
|
|
1371
|
+
/**
|
|
1372
|
+
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
1373
|
+
*/
|
|
1374
|
+
export const DeploymentGetConfigDeploymentsResponseType = {
|
|
1375
|
+
Ephemeral: "ephemeral",
|
|
1376
|
+
} as const;
|
|
1377
|
+
/**
|
|
1378
|
+
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
1379
|
+
*/
|
|
1380
|
+
export type DeploymentGetConfigDeploymentsResponseType = ClosedEnum<
|
|
1381
|
+
typeof DeploymentGetConfigDeploymentsResponseType
|
|
1382
|
+
>;
|
|
1383
|
+
|
|
1384
|
+
/**
|
|
1385
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1386
|
+
*
|
|
1387
|
+
* @remarks
|
|
1388
|
+
*
|
|
1389
|
+
* - `5m`: 5 minutes
|
|
1390
|
+
* - `1h`: 1 hour
|
|
1391
|
+
*
|
|
1392
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1393
|
+
*/
|
|
1394
|
+
export const DeploymentGetConfigTtl = {
|
|
1395
|
+
Fivem: "5m",
|
|
1396
|
+
Oneh: "1h",
|
|
1397
|
+
} as const;
|
|
1398
|
+
/**
|
|
1399
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1400
|
+
*
|
|
1401
|
+
* @remarks
|
|
1402
|
+
*
|
|
1403
|
+
* - `5m`: 5 minutes
|
|
1404
|
+
* - `1h`: 1 hour
|
|
1405
|
+
*
|
|
1406
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1407
|
+
*/
|
|
1408
|
+
export type DeploymentGetConfigTtl = ClosedEnum<typeof DeploymentGetConfigTtl>;
|
|
1409
|
+
|
|
1410
|
+
/**
|
|
1411
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
1412
|
+
*/
|
|
1413
|
+
export type DeploymentGetConfigCacheControl = {
|
|
1414
|
+
/**
|
|
1415
|
+
* Create a cache control breakpoint. Accepts only the value "ephemeral".
|
|
1416
|
+
*/
|
|
1417
|
+
type: DeploymentGetConfigDeploymentsResponseType;
|
|
1418
|
+
/**
|
|
1419
|
+
* The time-to-live for the cache control breakpoint. This may be one of the following values:
|
|
1420
|
+
*
|
|
1421
|
+
* @remarks
|
|
1422
|
+
*
|
|
1423
|
+
* - `5m`: 5 minutes
|
|
1424
|
+
* - `1h`: 1 hour
|
|
1425
|
+
*
|
|
1426
|
+
* Defaults to `5m`. Only supported by `Anthropic` Claude models.
|
|
1427
|
+
*/
|
|
1428
|
+
ttl: DeploymentGetConfigTtl;
|
|
1429
|
+
};
|
|
1430
|
+
|
|
1410
1431
|
/**
|
|
1411
1432
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
1412
1433
|
*/
|
|
@@ -1551,6 +1572,10 @@ export type DeploymentGetConfigParameters = {
|
|
|
1551
1572
|
| ResponseFormat6
|
|
1552
1573
|
| null
|
|
1553
1574
|
| undefined;
|
|
1575
|
+
/**
|
|
1576
|
+
* Provider-level prompt caching configuration applied to the request. Creates a cache control breakpoint covering the request content. Only supported by `Anthropic` Claude models.
|
|
1577
|
+
*/
|
|
1578
|
+
cacheControl?: DeploymentGetConfigCacheControl | null | undefined;
|
|
1554
1579
|
/**
|
|
1555
1580
|
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
1556
1581
|
*/
|
|
@@ -1653,110 +1678,103 @@ export type DeploymentGetConfigResponseBody = {
|
|
|
1653
1678
|
};
|
|
1654
1679
|
|
|
1655
1680
|
/** @internal */
|
|
1656
|
-
export type
|
|
1681
|
+
export type DeploymentGetConfigContentDeployments2$Outbound =
|
|
1657
1682
|
components.TextContentPartSchema$Outbound;
|
|
1658
1683
|
|
|
1659
1684
|
/** @internal */
|
|
1660
|
-
export const
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
> = components.TextContentPartSchema$outboundSchema;
|
|
1685
|
+
export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
|
|
1686
|
+
DeploymentGetConfigContentDeployments2$Outbound,
|
|
1687
|
+
z.ZodTypeDef,
|
|
1688
|
+
DeploymentGetConfigContentDeployments2
|
|
1689
|
+
> = components.TextContentPartSchema$outboundSchema;
|
|
1666
1690
|
|
|
1667
|
-
export function
|
|
1668
|
-
|
|
1669
|
-
|
|
1691
|
+
export function deploymentGetConfigContentDeployments2ToJSON(
|
|
1692
|
+
deploymentGetConfigContentDeployments2:
|
|
1693
|
+
DeploymentGetConfigContentDeployments2,
|
|
1670
1694
|
): string {
|
|
1671
1695
|
return JSON.stringify(
|
|
1672
|
-
|
|
1673
|
-
|
|
1696
|
+
DeploymentGetConfigContentDeployments2$outboundSchema.parse(
|
|
1697
|
+
deploymentGetConfigContentDeployments2,
|
|
1674
1698
|
),
|
|
1675
1699
|
);
|
|
1676
1700
|
}
|
|
1677
1701
|
|
|
1678
1702
|
/** @internal */
|
|
1679
|
-
export type
|
|
1703
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound =
|
|
1680
1704
|
| string
|
|
1681
1705
|
| Array<components.TextContentPartSchema$Outbound>;
|
|
1682
1706
|
|
|
1683
1707
|
/** @internal */
|
|
1684
|
-
export const
|
|
1708
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
|
|
1685
1709
|
z.ZodType<
|
|
1686
|
-
|
|
1710
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound,
|
|
1687
1711
|
z.ZodTypeDef,
|
|
1688
|
-
|
|
1712
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent
|
|
1689
1713
|
> = z.union([
|
|
1690
1714
|
z.string(),
|
|
1691
1715
|
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1692
1716
|
]);
|
|
1693
1717
|
|
|
1694
|
-
export function
|
|
1695
|
-
|
|
1696
|
-
|
|
1718
|
+
export function deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentToJSON(
|
|
1719
|
+
deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent:
|
|
1720
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
|
|
1697
1721
|
): string {
|
|
1698
1722
|
return JSON.stringify(
|
|
1699
|
-
|
|
1723
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema
|
|
1700
1724
|
.parse(
|
|
1701
|
-
|
|
1725
|
+
deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
|
|
1702
1726
|
),
|
|
1703
1727
|
);
|
|
1704
1728
|
}
|
|
1705
1729
|
|
|
1706
1730
|
/** @internal */
|
|
1707
|
-
export const
|
|
1708
|
-
z.ZodNativeEnum<typeof
|
|
1709
|
-
|
|
1731
|
+
export const DeploymentGetConfigPrefixMessagesType$outboundSchema:
|
|
1732
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesType> = z.nativeEnum(
|
|
1733
|
+
DeploymentGetConfigPrefixMessagesType,
|
|
1734
|
+
);
|
|
1710
1735
|
|
|
1711
1736
|
/** @internal */
|
|
1712
|
-
export const
|
|
1713
|
-
|
|
1714
|
-
|
|
1715
|
-
);
|
|
1737
|
+
export const PrefixMessagesTtl$outboundSchema: z.ZodNativeEnum<
|
|
1738
|
+
typeof PrefixMessagesTtl
|
|
1739
|
+
> = z.nativeEnum(PrefixMessagesTtl);
|
|
1716
1740
|
|
|
1717
1741
|
/** @internal */
|
|
1718
|
-
export type
|
|
1742
|
+
export type PrefixMessagesCacheControl$Outbound = {
|
|
1719
1743
|
type: string;
|
|
1720
1744
|
ttl: string;
|
|
1721
1745
|
};
|
|
1722
1746
|
|
|
1723
1747
|
/** @internal */
|
|
1724
|
-
export const
|
|
1725
|
-
|
|
1726
|
-
|
|
1727
|
-
|
|
1728
|
-
|
|
1729
|
-
|
|
1730
|
-
|
|
1731
|
-
|
|
1732
|
-
});
|
|
1748
|
+
export const PrefixMessagesCacheControl$outboundSchema: z.ZodType<
|
|
1749
|
+
PrefixMessagesCacheControl$Outbound,
|
|
1750
|
+
z.ZodTypeDef,
|
|
1751
|
+
PrefixMessagesCacheControl
|
|
1752
|
+
> = z.object({
|
|
1753
|
+
type: DeploymentGetConfigPrefixMessagesType$outboundSchema,
|
|
1754
|
+
ttl: PrefixMessagesTtl$outboundSchema.default("5m"),
|
|
1755
|
+
});
|
|
1733
1756
|
|
|
1734
|
-
export function
|
|
1735
|
-
|
|
1736
|
-
DeploymentGetConfigPrefixMessagesCacheControl,
|
|
1757
|
+
export function prefixMessagesCacheControlToJSON(
|
|
1758
|
+
prefixMessagesCacheControl: PrefixMessagesCacheControl,
|
|
1737
1759
|
): string {
|
|
1738
1760
|
return JSON.stringify(
|
|
1739
|
-
|
|
1740
|
-
deploymentGetConfigPrefixMessagesCacheControl,
|
|
1741
|
-
),
|
|
1761
|
+
PrefixMessagesCacheControl$outboundSchema.parse(prefixMessagesCacheControl),
|
|
1742
1762
|
);
|
|
1743
1763
|
}
|
|
1744
1764
|
|
|
1745
1765
|
/** @internal */
|
|
1746
|
-
export type
|
|
1766
|
+
export type ToolMessage$Outbound = {
|
|
1747
1767
|
role: "tool";
|
|
1748
1768
|
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
1749
1769
|
tool_call_id: string | null;
|
|
1750
|
-
cache_control?:
|
|
1751
|
-
| DeploymentGetConfigPrefixMessagesCacheControl$Outbound
|
|
1752
|
-
| undefined;
|
|
1770
|
+
cache_control?: PrefixMessagesCacheControl$Outbound | undefined;
|
|
1753
1771
|
};
|
|
1754
1772
|
|
|
1755
1773
|
/** @internal */
|
|
1756
|
-
export const
|
|
1757
|
-
|
|
1774
|
+
export const ToolMessage$outboundSchema: z.ZodType<
|
|
1775
|
+
ToolMessage$Outbound,
|
|
1758
1776
|
z.ZodTypeDef,
|
|
1759
|
-
|
|
1777
|
+
ToolMessage
|
|
1760
1778
|
> = z.object({
|
|
1761
1779
|
role: z.literal("tool"),
|
|
1762
1780
|
content: z.union([
|
|
@@ -1764,9 +1782,8 @@ export const PrefixMessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
1764
1782
|
z.array(components.TextContentPartSchema$outboundSchema),
|
|
1765
1783
|
]),
|
|
1766
1784
|
toolCallId: z.nullable(z.string()),
|
|
1767
|
-
cacheControl: z.lazy(() =>
|
|
1768
|
-
|
|
1769
|
-
).optional(),
|
|
1785
|
+
cacheControl: z.lazy(() => PrefixMessagesCacheControl$outboundSchema)
|
|
1786
|
+
.optional(),
|
|
1770
1787
|
}).transform((v) => {
|
|
1771
1788
|
return remap$(v, {
|
|
1772
1789
|
toolCallId: "tool_call_id",
|
|
@@ -1774,26 +1791,22 @@ export const PrefixMessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
1774
1791
|
});
|
|
1775
1792
|
});
|
|
1776
1793
|
|
|
1777
|
-
export function
|
|
1778
|
-
|
|
1779
|
-
): string {
|
|
1780
|
-
return JSON.stringify(
|
|
1781
|
-
PrefixMessagesToolMessage$outboundSchema.parse(prefixMessagesToolMessage),
|
|
1782
|
-
);
|
|
1794
|
+
export function toolMessageToJSON(toolMessage: ToolMessage): string {
|
|
1795
|
+
return JSON.stringify(ToolMessage$outboundSchema.parse(toolMessage));
|
|
1783
1796
|
}
|
|
1784
1797
|
|
|
1785
1798
|
/** @internal */
|
|
1786
|
-
export type
|
|
1799
|
+
export type DeploymentGetConfigContent2$Outbound =
|
|
1787
1800
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
1788
1801
|
| components.RefusalPartSchema$Outbound
|
|
1789
1802
|
| components.ReasoningPartSchema$Outbound
|
|
1790
1803
|
| components.RedactedReasoningPartSchema$Outbound;
|
|
1791
1804
|
|
|
1792
1805
|
/** @internal */
|
|
1793
|
-
export const
|
|
1794
|
-
|
|
1806
|
+
export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
|
|
1807
|
+
DeploymentGetConfigContent2$Outbound,
|
|
1795
1808
|
z.ZodTypeDef,
|
|
1796
|
-
|
|
1809
|
+
DeploymentGetConfigContent2
|
|
1797
1810
|
> = z.union([
|
|
1798
1811
|
components.TextContentPartSchema$outboundSchema.and(
|
|
1799
1812
|
z.object({ type: z.literal("text") }),
|
|
@@ -1803,19 +1816,18 @@ export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
|
|
|
1803
1816
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
1804
1817
|
]);
|
|
1805
1818
|
|
|
1806
|
-
export function
|
|
1807
|
-
|
|
1808
|
-
DeploymentGetConfigContentDeployments2,
|
|
1819
|
+
export function deploymentGetConfigContent2ToJSON(
|
|
1820
|
+
deploymentGetConfigContent2: DeploymentGetConfigContent2,
|
|
1809
1821
|
): string {
|
|
1810
1822
|
return JSON.stringify(
|
|
1811
|
-
|
|
1812
|
-
|
|
1823
|
+
DeploymentGetConfigContent2$outboundSchema.parse(
|
|
1824
|
+
deploymentGetConfigContent2,
|
|
1813
1825
|
),
|
|
1814
1826
|
);
|
|
1815
1827
|
}
|
|
1816
1828
|
|
|
1817
1829
|
/** @internal */
|
|
1818
|
-
export type
|
|
1830
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound =
|
|
1819
1831
|
| string
|
|
1820
1832
|
| Array<
|
|
1821
1833
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
@@ -1825,11 +1837,11 @@ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyConten
|
|
|
1825
1837
|
>;
|
|
1826
1838
|
|
|
1827
1839
|
/** @internal */
|
|
1828
|
-
export const
|
|
1840
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema:
|
|
1829
1841
|
z.ZodType<
|
|
1830
|
-
|
|
1842
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound,
|
|
1831
1843
|
z.ZodTypeDef,
|
|
1832
|
-
|
|
1844
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent
|
|
1833
1845
|
> = z.union([
|
|
1834
1846
|
z.string(),
|
|
1835
1847
|
z.array(
|
|
@@ -1844,114 +1856,97 @@ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyConte
|
|
|
1844
1856
|
),
|
|
1845
1857
|
]);
|
|
1846
1858
|
|
|
1847
|
-
export function
|
|
1848
|
-
|
|
1849
|
-
|
|
1859
|
+
export function deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON(
|
|
1860
|
+
deploymentGetConfigPrefixMessagesDeploymentsRequestContent:
|
|
1861
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
|
|
1850
1862
|
): string {
|
|
1851
1863
|
return JSON.stringify(
|
|
1852
|
-
|
|
1853
|
-
.parse(
|
|
1854
|
-
deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
|
|
1855
|
-
),
|
|
1864
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema
|
|
1865
|
+
.parse(deploymentGetConfigPrefixMessagesDeploymentsRequestContent),
|
|
1856
1866
|
);
|
|
1857
1867
|
}
|
|
1858
1868
|
|
|
1859
1869
|
/** @internal */
|
|
1860
|
-
export type
|
|
1870
|
+
export type Audio$Outbound = {
|
|
1861
1871
|
id: string;
|
|
1862
1872
|
};
|
|
1863
1873
|
|
|
1864
1874
|
/** @internal */
|
|
1865
|
-
export const
|
|
1866
|
-
|
|
1875
|
+
export const Audio$outboundSchema: z.ZodType<
|
|
1876
|
+
Audio$Outbound,
|
|
1867
1877
|
z.ZodTypeDef,
|
|
1868
|
-
|
|
1878
|
+
Audio
|
|
1869
1879
|
> = z.object({
|
|
1870
1880
|
id: z.string(),
|
|
1871
1881
|
});
|
|
1872
1882
|
|
|
1873
|
-
export function
|
|
1874
|
-
|
|
1875
|
-
): string {
|
|
1876
|
-
return JSON.stringify(
|
|
1877
|
-
PrefixMessagesAudio$outboundSchema.parse(prefixMessagesAudio),
|
|
1878
|
-
);
|
|
1883
|
+
export function audioToJSON(audio: Audio): string {
|
|
1884
|
+
return JSON.stringify(Audio$outboundSchema.parse(audio));
|
|
1879
1885
|
}
|
|
1880
1886
|
|
|
1881
1887
|
/** @internal */
|
|
1882
|
-
export const
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
);
|
|
1888
|
+
export const PrefixMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
1889
|
+
typeof PrefixMessagesType
|
|
1890
|
+
> = z.nativeEnum(PrefixMessagesType);
|
|
1886
1891
|
|
|
1887
1892
|
/** @internal */
|
|
1888
|
-
export type
|
|
1893
|
+
export type PrefixMessagesFunction$Outbound = {
|
|
1889
1894
|
name?: string | undefined;
|
|
1890
1895
|
arguments?: string | undefined;
|
|
1891
1896
|
};
|
|
1892
1897
|
|
|
1893
1898
|
/** @internal */
|
|
1894
|
-
export const
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
});
|
|
1899
|
+
export const PrefixMessagesFunction$outboundSchema: z.ZodType<
|
|
1900
|
+
PrefixMessagesFunction$Outbound,
|
|
1901
|
+
z.ZodTypeDef,
|
|
1902
|
+
PrefixMessagesFunction
|
|
1903
|
+
> = z.object({
|
|
1904
|
+
name: z.string().optional(),
|
|
1905
|
+
arguments: z.string().optional(),
|
|
1906
|
+
});
|
|
1903
1907
|
|
|
1904
|
-
export function
|
|
1905
|
-
|
|
1906
|
-
DeploymentGetConfigPrefixMessagesFunction,
|
|
1908
|
+
export function prefixMessagesFunctionToJSON(
|
|
1909
|
+
prefixMessagesFunction: PrefixMessagesFunction,
|
|
1907
1910
|
): string {
|
|
1908
1911
|
return JSON.stringify(
|
|
1909
|
-
|
|
1910
|
-
deploymentGetConfigPrefixMessagesFunction,
|
|
1911
|
-
),
|
|
1912
|
+
PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
|
|
1912
1913
|
);
|
|
1913
1914
|
}
|
|
1914
1915
|
|
|
1915
1916
|
/** @internal */
|
|
1916
|
-
export type
|
|
1917
|
+
export type PrefixMessagesToolCalls$Outbound = {
|
|
1917
1918
|
id: string;
|
|
1918
1919
|
type: string;
|
|
1919
|
-
function:
|
|
1920
|
+
function: PrefixMessagesFunction$Outbound;
|
|
1920
1921
|
thought_signature?: string | undefined;
|
|
1921
1922
|
};
|
|
1922
1923
|
|
|
1923
1924
|
/** @internal */
|
|
1924
|
-
export const
|
|
1925
|
-
|
|
1926
|
-
|
|
1927
|
-
|
|
1928
|
-
|
|
1929
|
-
|
|
1930
|
-
|
|
1931
|
-
|
|
1932
|
-
|
|
1933
|
-
|
|
1934
|
-
|
|
1935
|
-
thoughtSignature:
|
|
1936
|
-
}).transform((v) => {
|
|
1937
|
-
return remap$(v, {
|
|
1938
|
-
thoughtSignature: "thought_signature",
|
|
1939
|
-
});
|
|
1925
|
+
export const PrefixMessagesToolCalls$outboundSchema: z.ZodType<
|
|
1926
|
+
PrefixMessagesToolCalls$Outbound,
|
|
1927
|
+
z.ZodTypeDef,
|
|
1928
|
+
PrefixMessagesToolCalls
|
|
1929
|
+
> = z.object({
|
|
1930
|
+
id: z.string(),
|
|
1931
|
+
type: PrefixMessagesType$outboundSchema,
|
|
1932
|
+
function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
|
|
1933
|
+
thoughtSignature: z.string().optional(),
|
|
1934
|
+
}).transform((v) => {
|
|
1935
|
+
return remap$(v, {
|
|
1936
|
+
thoughtSignature: "thought_signature",
|
|
1940
1937
|
});
|
|
1938
|
+
});
|
|
1941
1939
|
|
|
1942
|
-
export function
|
|
1943
|
-
|
|
1944
|
-
DeploymentGetConfigPrefixMessagesToolCalls,
|
|
1940
|
+
export function prefixMessagesToolCallsToJSON(
|
|
1941
|
+
prefixMessagesToolCalls: PrefixMessagesToolCalls,
|
|
1945
1942
|
): string {
|
|
1946
1943
|
return JSON.stringify(
|
|
1947
|
-
|
|
1948
|
-
deploymentGetConfigPrefixMessagesToolCalls,
|
|
1949
|
-
),
|
|
1944
|
+
PrefixMessagesToolCalls$outboundSchema.parse(prefixMessagesToolCalls),
|
|
1950
1945
|
);
|
|
1951
1946
|
}
|
|
1952
1947
|
|
|
1953
1948
|
/** @internal */
|
|
1954
|
-
export type
|
|
1949
|
+
export type AssistantMessage$Outbound = {
|
|
1955
1950
|
content?:
|
|
1956
1951
|
| string
|
|
1957
1952
|
| Array<
|
|
@@ -1965,17 +1960,15 @@ export type PrefixMessagesAssistantMessage$Outbound = {
|
|
|
1965
1960
|
refusal?: string | null | undefined;
|
|
1966
1961
|
role: "assistant";
|
|
1967
1962
|
name?: string | undefined;
|
|
1968
|
-
audio?:
|
|
1969
|
-
tool_calls?:
|
|
1970
|
-
| Array<DeploymentGetConfigPrefixMessagesToolCalls$Outbound>
|
|
1971
|
-
| undefined;
|
|
1963
|
+
audio?: Audio$Outbound | null | undefined;
|
|
1964
|
+
tool_calls?: Array<PrefixMessagesToolCalls$Outbound> | undefined;
|
|
1972
1965
|
};
|
|
1973
1966
|
|
|
1974
1967
|
/** @internal */
|
|
1975
|
-
export const
|
|
1976
|
-
|
|
1968
|
+
export const AssistantMessage$outboundSchema: z.ZodType<
|
|
1969
|
+
AssistantMessage$Outbound,
|
|
1977
1970
|
z.ZodTypeDef,
|
|
1978
|
-
|
|
1971
|
+
AssistantMessage
|
|
1979
1972
|
> = z.object({
|
|
1980
1973
|
content: z.nullable(
|
|
1981
1974
|
z.union([
|
|
@@ -1995,24 +1988,20 @@ export const PrefixMessagesAssistantMessage$outboundSchema: z.ZodType<
|
|
|
1995
1988
|
refusal: z.nullable(z.string()).optional(),
|
|
1996
1989
|
role: z.literal("assistant"),
|
|
1997
1990
|
name: z.string().optional(),
|
|
1998
|
-
audio: z.nullable(z.lazy(() =>
|
|
1991
|
+
audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
|
|
1992
|
+
toolCalls: z.array(z.lazy(() => PrefixMessagesToolCalls$outboundSchema))
|
|
1999
1993
|
.optional(),
|
|
2000
|
-
toolCalls: z.array(
|
|
2001
|
-
z.lazy(() => DeploymentGetConfigPrefixMessagesToolCalls$outboundSchema),
|
|
2002
|
-
).optional(),
|
|
2003
1994
|
}).transform((v) => {
|
|
2004
1995
|
return remap$(v, {
|
|
2005
1996
|
toolCalls: "tool_calls",
|
|
2006
1997
|
});
|
|
2007
1998
|
});
|
|
2008
1999
|
|
|
2009
|
-
export function
|
|
2010
|
-
|
|
2000
|
+
export function assistantMessageToJSON(
|
|
2001
|
+
assistantMessage: AssistantMessage,
|
|
2011
2002
|
): string {
|
|
2012
2003
|
return JSON.stringify(
|
|
2013
|
-
|
|
2014
|
-
prefixMessagesAssistantMessage,
|
|
2015
|
-
),
|
|
2004
|
+
AssistantMessage$outboundSchema.parse(assistantMessage),
|
|
2016
2005
|
);
|
|
2017
2006
|
}
|
|
2018
2007
|
|
|
@@ -2023,114 +2012,94 @@ export const DeploymentGetConfig2DeploymentsType$outboundSchema:
|
|
|
2023
2012
|
);
|
|
2024
2013
|
|
|
2025
2014
|
/** @internal */
|
|
2026
|
-
export const
|
|
2027
|
-
|
|
2028
|
-
|
|
2015
|
+
export const Ttl$outboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(
|
|
2016
|
+
Ttl,
|
|
2017
|
+
);
|
|
2029
2018
|
|
|
2030
2019
|
/** @internal */
|
|
2031
|
-
export type
|
|
2020
|
+
export type CacheControl$Outbound = {
|
|
2032
2021
|
type: string;
|
|
2033
2022
|
ttl: string;
|
|
2034
2023
|
};
|
|
2035
2024
|
|
|
2036
2025
|
/** @internal */
|
|
2037
|
-
export const
|
|
2038
|
-
|
|
2026
|
+
export const CacheControl$outboundSchema: z.ZodType<
|
|
2027
|
+
CacheControl$Outbound,
|
|
2039
2028
|
z.ZodTypeDef,
|
|
2040
|
-
|
|
2029
|
+
CacheControl
|
|
2041
2030
|
> = z.object({
|
|
2042
2031
|
type: DeploymentGetConfig2DeploymentsType$outboundSchema,
|
|
2043
|
-
ttl:
|
|
2032
|
+
ttl: Ttl$outboundSchema.default("5m"),
|
|
2044
2033
|
});
|
|
2045
2034
|
|
|
2046
|
-
export function
|
|
2047
|
-
|
|
2048
|
-
): string {
|
|
2049
|
-
return JSON.stringify(
|
|
2050
|
-
DeploymentGetConfig2CacheControl$outboundSchema.parse(
|
|
2051
|
-
deploymentGetConfig2CacheControl,
|
|
2052
|
-
),
|
|
2053
|
-
);
|
|
2035
|
+
export function cacheControlToJSON(cacheControl: CacheControl): string {
|
|
2036
|
+
return JSON.stringify(CacheControl$outboundSchema.parse(cacheControl));
|
|
2054
2037
|
}
|
|
2055
2038
|
|
|
2056
2039
|
/** @internal */
|
|
2057
|
-
export type
|
|
2040
|
+
export type Four$Outbound = {
|
|
2058
2041
|
type: "file";
|
|
2059
|
-
cache_control?:
|
|
2042
|
+
cache_control?: CacheControl$Outbound | undefined;
|
|
2060
2043
|
file: components.FileContentPartSchema$Outbound;
|
|
2061
2044
|
};
|
|
2062
2045
|
|
|
2063
2046
|
/** @internal */
|
|
2064
|
-
export const
|
|
2065
|
-
|
|
2066
|
-
|
|
2067
|
-
|
|
2068
|
-
|
|
2069
|
-
|
|
2070
|
-
|
|
2071
|
-
|
|
2072
|
-
|
|
2073
|
-
}).transform((v) => {
|
|
2074
|
-
return remap$(v, {
|
|
2075
|
-
cacheControl: "cache_control",
|
|
2047
|
+
export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
|
|
2048
|
+
z.object({
|
|
2049
|
+
type: z.literal("file"),
|
|
2050
|
+
cacheControl: z.lazy(() => CacheControl$outboundSchema).optional(),
|
|
2051
|
+
file: components.FileContentPartSchema$outboundSchema,
|
|
2052
|
+
}).transform((v) => {
|
|
2053
|
+
return remap$(v, {
|
|
2054
|
+
cacheControl: "cache_control",
|
|
2055
|
+
});
|
|
2076
2056
|
});
|
|
2077
|
-
});
|
|
2078
2057
|
|
|
2079
|
-
export function
|
|
2080
|
-
|
|
2081
|
-
): string {
|
|
2082
|
-
return JSON.stringify(
|
|
2083
|
-
DeploymentGetConfig24$outboundSchema.parse(deploymentGetConfig24),
|
|
2084
|
-
);
|
|
2058
|
+
export function fourToJSON(four: Four): string {
|
|
2059
|
+
return JSON.stringify(Four$outboundSchema.parse(four));
|
|
2085
2060
|
}
|
|
2086
2061
|
|
|
2087
2062
|
/** @internal */
|
|
2088
|
-
export type
|
|
2063
|
+
export type Content2$Outbound =
|
|
2089
2064
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2090
2065
|
| components.ImageContentPartSchema$Outbound
|
|
2091
2066
|
| components.AudioContentPartSchema$Outbound
|
|
2092
|
-
|
|
|
2067
|
+
| Four$Outbound;
|
|
2093
2068
|
|
|
2094
2069
|
/** @internal */
|
|
2095
|
-
export const
|
|
2096
|
-
|
|
2070
|
+
export const Content2$outboundSchema: z.ZodType<
|
|
2071
|
+
Content2$Outbound,
|
|
2097
2072
|
z.ZodTypeDef,
|
|
2098
|
-
|
|
2073
|
+
Content2
|
|
2099
2074
|
> = z.union([
|
|
2100
2075
|
components.TextContentPartSchema$outboundSchema.and(
|
|
2101
2076
|
z.object({ type: z.literal("text") }),
|
|
2102
2077
|
),
|
|
2103
2078
|
components.ImageContentPartSchema$outboundSchema,
|
|
2104
2079
|
components.AudioContentPartSchema$outboundSchema,
|
|
2105
|
-
z.lazy(() =>
|
|
2080
|
+
z.lazy(() => Four$outboundSchema),
|
|
2106
2081
|
]);
|
|
2107
2082
|
|
|
2108
|
-
export function
|
|
2109
|
-
|
|
2110
|
-
): string {
|
|
2111
|
-
return JSON.stringify(
|
|
2112
|
-
DeploymentGetConfigContent2$outboundSchema.parse(
|
|
2113
|
-
deploymentGetConfigContent2,
|
|
2114
|
-
),
|
|
2115
|
-
);
|
|
2083
|
+
export function content2ToJSON(content2: Content2): string {
|
|
2084
|
+
return JSON.stringify(Content2$outboundSchema.parse(content2));
|
|
2116
2085
|
}
|
|
2117
2086
|
|
|
2118
2087
|
/** @internal */
|
|
2119
|
-
export type
|
|
2088
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound =
|
|
2120
2089
|
| string
|
|
2121
2090
|
| Array<
|
|
2122
2091
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2123
2092
|
| components.ImageContentPartSchema$Outbound
|
|
2124
2093
|
| components.AudioContentPartSchema$Outbound
|
|
2125
|
-
|
|
|
2094
|
+
| Four$Outbound
|
|
2126
2095
|
>;
|
|
2127
2096
|
|
|
2128
2097
|
/** @internal */
|
|
2129
|
-
export const
|
|
2098
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema:
|
|
2130
2099
|
z.ZodType<
|
|
2131
|
-
|
|
2100
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound,
|
|
2132
2101
|
z.ZodTypeDef,
|
|
2133
|
-
|
|
2102
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent
|
|
2134
2103
|
> = z.union([
|
|
2135
2104
|
z.string(),
|
|
2136
2105
|
z.array(
|
|
@@ -2140,23 +2109,24 @@ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outbound
|
|
|
2140
2109
|
),
|
|
2141
2110
|
components.ImageContentPartSchema$outboundSchema,
|
|
2142
2111
|
components.AudioContentPartSchema$outboundSchema,
|
|
2143
|
-
z.lazy(() =>
|
|
2112
|
+
z.lazy(() => Four$outboundSchema),
|
|
2144
2113
|
]),
|
|
2145
2114
|
),
|
|
2146
2115
|
]);
|
|
2147
2116
|
|
|
2148
|
-
export function
|
|
2149
|
-
|
|
2150
|
-
|
|
2117
|
+
export function deploymentGetConfigPrefixMessagesDeploymentsContentToJSON(
|
|
2118
|
+
deploymentGetConfigPrefixMessagesDeploymentsContent:
|
|
2119
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent,
|
|
2151
2120
|
): string {
|
|
2152
2121
|
return JSON.stringify(
|
|
2153
|
-
|
|
2154
|
-
|
|
2122
|
+
DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema.parse(
|
|
2123
|
+
deploymentGetConfigPrefixMessagesDeploymentsContent,
|
|
2124
|
+
),
|
|
2155
2125
|
);
|
|
2156
2126
|
}
|
|
2157
2127
|
|
|
2158
2128
|
/** @internal */
|
|
2159
|
-
export type
|
|
2129
|
+
export type UserMessage$Outbound = {
|
|
2160
2130
|
role: "user";
|
|
2161
2131
|
name?: string | undefined;
|
|
2162
2132
|
content:
|
|
@@ -2165,15 +2135,15 @@ export type PrefixMessagesUserMessage$Outbound = {
|
|
|
2165
2135
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2166
2136
|
| components.ImageContentPartSchema$Outbound
|
|
2167
2137
|
| components.AudioContentPartSchema$Outbound
|
|
2168
|
-
|
|
|
2138
|
+
| Four$Outbound
|
|
2169
2139
|
>;
|
|
2170
2140
|
};
|
|
2171
2141
|
|
|
2172
2142
|
/** @internal */
|
|
2173
|
-
export const
|
|
2174
|
-
|
|
2143
|
+
export const UserMessage$outboundSchema: z.ZodType<
|
|
2144
|
+
UserMessage$Outbound,
|
|
2175
2145
|
z.ZodTypeDef,
|
|
2176
|
-
|
|
2146
|
+
UserMessage
|
|
2177
2147
|
> = z.object({
|
|
2178
2148
|
role: z.literal("user"),
|
|
2179
2149
|
name: z.string().optional(),
|
|
@@ -2186,59 +2156,54 @@ export const PrefixMessagesUserMessage$outboundSchema: z.ZodType<
|
|
|
2186
2156
|
),
|
|
2187
2157
|
components.ImageContentPartSchema$outboundSchema,
|
|
2188
2158
|
components.AudioContentPartSchema$outboundSchema,
|
|
2189
|
-
z.lazy(() =>
|
|
2159
|
+
z.lazy(() => Four$outboundSchema),
|
|
2190
2160
|
]),
|
|
2191
2161
|
),
|
|
2192
2162
|
]),
|
|
2193
2163
|
});
|
|
2194
2164
|
|
|
2195
|
-
export function
|
|
2196
|
-
|
|
2197
|
-
): string {
|
|
2198
|
-
return JSON.stringify(
|
|
2199
|
-
PrefixMessagesUserMessage$outboundSchema.parse(prefixMessagesUserMessage),
|
|
2200
|
-
);
|
|
2165
|
+
export function userMessageToJSON(userMessage: UserMessage): string {
|
|
2166
|
+
return JSON.stringify(UserMessage$outboundSchema.parse(userMessage));
|
|
2201
2167
|
}
|
|
2202
2168
|
|
|
2203
2169
|
/** @internal */
|
|
2204
|
-
export type
|
|
2170
|
+
export type DeploymentGetConfigPrefixMessagesContent$Outbound =
|
|
2205
2171
|
| string
|
|
2206
2172
|
| Array<components.TextContentPartSchema$Outbound>;
|
|
2207
2173
|
|
|
2208
2174
|
/** @internal */
|
|
2209
|
-
export const
|
|
2210
|
-
|
|
2211
|
-
|
|
2212
|
-
|
|
2213
|
-
|
|
2214
|
-
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
]);
|
|
2175
|
+
export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
|
|
2176
|
+
DeploymentGetConfigPrefixMessagesContent$Outbound,
|
|
2177
|
+
z.ZodTypeDef,
|
|
2178
|
+
DeploymentGetConfigPrefixMessagesContent
|
|
2179
|
+
> = z.union([
|
|
2180
|
+
z.string(),
|
|
2181
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2182
|
+
]);
|
|
2218
2183
|
|
|
2219
|
-
export function
|
|
2220
|
-
|
|
2221
|
-
|
|
2184
|
+
export function deploymentGetConfigPrefixMessagesContentToJSON(
|
|
2185
|
+
deploymentGetConfigPrefixMessagesContent:
|
|
2186
|
+
DeploymentGetConfigPrefixMessagesContent,
|
|
2222
2187
|
): string {
|
|
2223
2188
|
return JSON.stringify(
|
|
2224
|
-
|
|
2225
|
-
|
|
2189
|
+
DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(
|
|
2190
|
+
deploymentGetConfigPrefixMessagesContent,
|
|
2226
2191
|
),
|
|
2227
2192
|
);
|
|
2228
2193
|
}
|
|
2229
2194
|
|
|
2230
2195
|
/** @internal */
|
|
2231
|
-
export type
|
|
2196
|
+
export type DeveloperMessage$Outbound = {
|
|
2232
2197
|
role: "developer";
|
|
2233
2198
|
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
2234
2199
|
name?: string | undefined;
|
|
2235
2200
|
};
|
|
2236
2201
|
|
|
2237
2202
|
/** @internal */
|
|
2238
|
-
export const
|
|
2239
|
-
|
|
2203
|
+
export const DeveloperMessage$outboundSchema: z.ZodType<
|
|
2204
|
+
DeveloperMessage$Outbound,
|
|
2240
2205
|
z.ZodTypeDef,
|
|
2241
|
-
|
|
2206
|
+
DeveloperMessage
|
|
2242
2207
|
> = z.object({
|
|
2243
2208
|
role: z.literal("developer"),
|
|
2244
2209
|
content: z.union([
|
|
@@ -2248,54 +2213,49 @@ export const PrefixMessagesDeveloperMessage$outboundSchema: z.ZodType<
|
|
|
2248
2213
|
name: z.string().optional(),
|
|
2249
2214
|
});
|
|
2250
2215
|
|
|
2251
|
-
export function
|
|
2252
|
-
|
|
2216
|
+
export function developerMessageToJSON(
|
|
2217
|
+
developerMessage: DeveloperMessage,
|
|
2253
2218
|
): string {
|
|
2254
2219
|
return JSON.stringify(
|
|
2255
|
-
|
|
2256
|
-
prefixMessagesDeveloperMessage,
|
|
2257
|
-
),
|
|
2220
|
+
DeveloperMessage$outboundSchema.parse(developerMessage),
|
|
2258
2221
|
);
|
|
2259
2222
|
}
|
|
2260
2223
|
|
|
2261
2224
|
/** @internal */
|
|
2262
|
-
export type
|
|
2225
|
+
export type PrefixMessagesContent$Outbound =
|
|
2263
2226
|
| string
|
|
2264
2227
|
| Array<components.TextContentPartSchema$Outbound>;
|
|
2265
2228
|
|
|
2266
2229
|
/** @internal */
|
|
2267
|
-
export const
|
|
2268
|
-
|
|
2230
|
+
export const PrefixMessagesContent$outboundSchema: z.ZodType<
|
|
2231
|
+
PrefixMessagesContent$Outbound,
|
|
2269
2232
|
z.ZodTypeDef,
|
|
2270
|
-
|
|
2233
|
+
PrefixMessagesContent
|
|
2271
2234
|
> = z.union([
|
|
2272
2235
|
z.string(),
|
|
2273
2236
|
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2274
2237
|
]);
|
|
2275
2238
|
|
|
2276
|
-
export function
|
|
2277
|
-
|
|
2278
|
-
DeploymentGetConfigPrefixMessagesContent,
|
|
2239
|
+
export function prefixMessagesContentToJSON(
|
|
2240
|
+
prefixMessagesContent: PrefixMessagesContent,
|
|
2279
2241
|
): string {
|
|
2280
2242
|
return JSON.stringify(
|
|
2281
|
-
|
|
2282
|
-
deploymentGetConfigPrefixMessagesContent,
|
|
2283
|
-
),
|
|
2243
|
+
PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
|
|
2284
2244
|
);
|
|
2285
2245
|
}
|
|
2286
2246
|
|
|
2287
2247
|
/** @internal */
|
|
2288
|
-
export type
|
|
2248
|
+
export type SystemMessage$Outbound = {
|
|
2289
2249
|
role: "system";
|
|
2290
2250
|
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
2291
2251
|
name?: string | undefined;
|
|
2292
2252
|
};
|
|
2293
2253
|
|
|
2294
2254
|
/** @internal */
|
|
2295
|
-
export const
|
|
2296
|
-
|
|
2255
|
+
export const SystemMessage$outboundSchema: z.ZodType<
|
|
2256
|
+
SystemMessage$Outbound,
|
|
2297
2257
|
z.ZodTypeDef,
|
|
2298
|
-
|
|
2258
|
+
SystemMessage
|
|
2299
2259
|
> = z.object({
|
|
2300
2260
|
role: z.literal("system"),
|
|
2301
2261
|
content: z.union([
|
|
@@ -2305,145 +2265,129 @@ export const PrefixMessagesSystemMessage$outboundSchema: z.ZodType<
|
|
|
2305
2265
|
name: z.string().optional(),
|
|
2306
2266
|
});
|
|
2307
2267
|
|
|
2308
|
-
export function
|
|
2309
|
-
|
|
2310
|
-
): string {
|
|
2311
|
-
return JSON.stringify(
|
|
2312
|
-
PrefixMessagesSystemMessage$outboundSchema.parse(
|
|
2313
|
-
prefixMessagesSystemMessage,
|
|
2314
|
-
),
|
|
2315
|
-
);
|
|
2268
|
+
export function systemMessageToJSON(systemMessage: SystemMessage): string {
|
|
2269
|
+
return JSON.stringify(SystemMessage$outboundSchema.parse(systemMessage));
|
|
2316
2270
|
}
|
|
2317
2271
|
|
|
2318
2272
|
/** @internal */
|
|
2319
|
-
export type
|
|
2320
|
-
|
|
|
2321
|
-
|
|
|
2322
|
-
|
|
|
2323
|
-
|
|
|
2324
|
-
|
|
|
2273
|
+
export type PrefixMessages$Outbound =
|
|
2274
|
+
| SystemMessage$Outbound
|
|
2275
|
+
| DeveloperMessage$Outbound
|
|
2276
|
+
| UserMessage$Outbound
|
|
2277
|
+
| AssistantMessage$Outbound
|
|
2278
|
+
| ToolMessage$Outbound;
|
|
2325
2279
|
|
|
2326
2280
|
/** @internal */
|
|
2327
|
-
export const
|
|
2328
|
-
|
|
2281
|
+
export const PrefixMessages$outboundSchema: z.ZodType<
|
|
2282
|
+
PrefixMessages$Outbound,
|
|
2329
2283
|
z.ZodTypeDef,
|
|
2330
|
-
|
|
2284
|
+
PrefixMessages
|
|
2331
2285
|
> = z.union([
|
|
2332
|
-
z.lazy(() =>
|
|
2333
|
-
z.lazy(() =>
|
|
2334
|
-
z.lazy(() =>
|
|
2335
|
-
z.lazy(() =>
|
|
2336
|
-
z.lazy(() =>
|
|
2286
|
+
z.lazy(() => SystemMessage$outboundSchema),
|
|
2287
|
+
z.lazy(() => DeveloperMessage$outboundSchema),
|
|
2288
|
+
z.lazy(() => UserMessage$outboundSchema),
|
|
2289
|
+
z.lazy(() => AssistantMessage$outboundSchema),
|
|
2290
|
+
z.lazy(() => ToolMessage$outboundSchema),
|
|
2337
2291
|
]);
|
|
2338
2292
|
|
|
2339
|
-
export function
|
|
2340
|
-
|
|
2341
|
-
): string {
|
|
2342
|
-
return JSON.stringify(
|
|
2343
|
-
DeploymentGetConfigPrefixMessages$outboundSchema.parse(
|
|
2344
|
-
deploymentGetConfigPrefixMessages,
|
|
2345
|
-
),
|
|
2346
|
-
);
|
|
2293
|
+
export function prefixMessagesToJSON(prefixMessages: PrefixMessages): string {
|
|
2294
|
+
return JSON.stringify(PrefixMessages$outboundSchema.parse(prefixMessages));
|
|
2347
2295
|
}
|
|
2348
2296
|
|
|
2349
2297
|
/** @internal */
|
|
2350
|
-
export type
|
|
2298
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound =
|
|
2351
2299
|
components.TextContentPartSchema$Outbound;
|
|
2352
2300
|
|
|
2353
2301
|
/** @internal */
|
|
2354
|
-
export const
|
|
2302
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema:
|
|
2355
2303
|
z.ZodType<
|
|
2356
|
-
|
|
2304
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound,
|
|
2357
2305
|
z.ZodTypeDef,
|
|
2358
|
-
|
|
2306
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2
|
|
2359
2307
|
> = components.TextContentPartSchema$outboundSchema;
|
|
2360
2308
|
|
|
2361
|
-
export function
|
|
2362
|
-
|
|
2363
|
-
|
|
2309
|
+
export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON(
|
|
2310
|
+
deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2:
|
|
2311
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
|
|
2364
2312
|
): string {
|
|
2365
2313
|
return JSON.stringify(
|
|
2366
|
-
|
|
2367
|
-
.parse(
|
|
2314
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
|
|
2315
|
+
.parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2),
|
|
2368
2316
|
);
|
|
2369
2317
|
}
|
|
2370
2318
|
|
|
2371
2319
|
/** @internal */
|
|
2372
|
-
export type
|
|
2320
|
+
export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound =
|
|
2373
2321
|
| string
|
|
2374
2322
|
| Array<components.TextContentPartSchema$Outbound>;
|
|
2375
2323
|
|
|
2376
2324
|
/** @internal */
|
|
2377
|
-
export const
|
|
2325
|
+
export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
|
|
2378
2326
|
z.ZodType<
|
|
2379
|
-
|
|
2327
|
+
DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound,
|
|
2380
2328
|
z.ZodTypeDef,
|
|
2381
|
-
|
|
2329
|
+
DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent
|
|
2382
2330
|
> = z.union([
|
|
2383
2331
|
z.string(),
|
|
2384
2332
|
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2385
2333
|
]);
|
|
2386
2334
|
|
|
2387
|
-
export function
|
|
2388
|
-
|
|
2389
|
-
|
|
2335
|
+
export function deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentToJSON(
|
|
2336
|
+
deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent:
|
|
2337
|
+
DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent,
|
|
2390
2338
|
): string {
|
|
2391
2339
|
return JSON.stringify(
|
|
2392
|
-
|
|
2393
|
-
.parse(
|
|
2340
|
+
DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema
|
|
2341
|
+
.parse(deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent),
|
|
2394
2342
|
);
|
|
2395
2343
|
}
|
|
2396
2344
|
|
|
2397
2345
|
/** @internal */
|
|
2398
|
-
export const
|
|
2399
|
-
|
|
2400
|
-
|
|
2346
|
+
export const DeploymentGetConfigMessagesType$outboundSchema: z.ZodNativeEnum<
|
|
2347
|
+
typeof DeploymentGetConfigMessagesType
|
|
2348
|
+
> = z.nativeEnum(DeploymentGetConfigMessagesType);
|
|
2401
2349
|
|
|
2402
2350
|
/** @internal */
|
|
2403
|
-
export const
|
|
2404
|
-
|
|
2405
|
-
> = z.nativeEnum(DeploymentGetConfigMessagesTtl);
|
|
2351
|
+
export const MessagesTtl$outboundSchema: z.ZodNativeEnum<typeof MessagesTtl> = z
|
|
2352
|
+
.nativeEnum(MessagesTtl);
|
|
2406
2353
|
|
|
2407
2354
|
/** @internal */
|
|
2408
|
-
export type
|
|
2355
|
+
export type MessagesCacheControl$Outbound = {
|
|
2409
2356
|
type: string;
|
|
2410
2357
|
ttl: string;
|
|
2411
2358
|
};
|
|
2412
2359
|
|
|
2413
2360
|
/** @internal */
|
|
2414
|
-
export const
|
|
2415
|
-
|
|
2361
|
+
export const MessagesCacheControl$outboundSchema: z.ZodType<
|
|
2362
|
+
MessagesCacheControl$Outbound,
|
|
2416
2363
|
z.ZodTypeDef,
|
|
2417
|
-
|
|
2364
|
+
MessagesCacheControl
|
|
2418
2365
|
> = z.object({
|
|
2419
|
-
type:
|
|
2420
|
-
ttl:
|
|
2366
|
+
type: DeploymentGetConfigMessagesType$outboundSchema,
|
|
2367
|
+
ttl: MessagesTtl$outboundSchema.default("5m"),
|
|
2421
2368
|
});
|
|
2422
2369
|
|
|
2423
|
-
export function
|
|
2424
|
-
|
|
2425
|
-
DeploymentGetConfigMessagesCacheControl,
|
|
2370
|
+
export function messagesCacheControlToJSON(
|
|
2371
|
+
messagesCacheControl: MessagesCacheControl,
|
|
2426
2372
|
): string {
|
|
2427
2373
|
return JSON.stringify(
|
|
2428
|
-
|
|
2429
|
-
deploymentGetConfigMessagesCacheControl,
|
|
2430
|
-
),
|
|
2374
|
+
MessagesCacheControl$outboundSchema.parse(messagesCacheControl),
|
|
2431
2375
|
);
|
|
2432
2376
|
}
|
|
2433
2377
|
|
|
2434
2378
|
/** @internal */
|
|
2435
|
-
export type
|
|
2379
|
+
export type MessagesToolMessage$Outbound = {
|
|
2436
2380
|
role: "tool";
|
|
2437
2381
|
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
2438
2382
|
tool_call_id: string | null;
|
|
2439
|
-
cache_control?:
|
|
2383
|
+
cache_control?: MessagesCacheControl$Outbound | undefined;
|
|
2440
2384
|
};
|
|
2441
2385
|
|
|
2442
2386
|
/** @internal */
|
|
2443
|
-
export const
|
|
2444
|
-
|
|
2387
|
+
export const MessagesToolMessage$outboundSchema: z.ZodType<
|
|
2388
|
+
MessagesToolMessage$Outbound,
|
|
2445
2389
|
z.ZodTypeDef,
|
|
2446
|
-
|
|
2390
|
+
MessagesToolMessage
|
|
2447
2391
|
> = z.object({
|
|
2448
2392
|
role: z.literal("tool"),
|
|
2449
2393
|
content: z.union([
|
|
@@ -2451,9 +2395,7 @@ export const DeploymentGetConfigMessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
2451
2395
|
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2452
2396
|
]),
|
|
2453
2397
|
toolCallId: z.nullable(z.string()),
|
|
2454
|
-
cacheControl: z.lazy(() =>
|
|
2455
|
-
DeploymentGetConfigMessagesCacheControl$outboundSchema
|
|
2456
|
-
).optional(),
|
|
2398
|
+
cacheControl: z.lazy(() => MessagesCacheControl$outboundSchema).optional(),
|
|
2457
2399
|
}).transform((v) => {
|
|
2458
2400
|
return remap$(v, {
|
|
2459
2401
|
toolCallId: "tool_call_id",
|
|
@@ -2461,30 +2403,27 @@ export const DeploymentGetConfigMessagesToolMessage$outboundSchema: z.ZodType<
|
|
|
2461
2403
|
});
|
|
2462
2404
|
});
|
|
2463
2405
|
|
|
2464
|
-
export function
|
|
2465
|
-
|
|
2466
|
-
DeploymentGetConfigMessagesToolMessage,
|
|
2406
|
+
export function messagesToolMessageToJSON(
|
|
2407
|
+
messagesToolMessage: MessagesToolMessage,
|
|
2467
2408
|
): string {
|
|
2468
2409
|
return JSON.stringify(
|
|
2469
|
-
|
|
2470
|
-
deploymentGetConfigMessagesToolMessage,
|
|
2471
|
-
),
|
|
2410
|
+
MessagesToolMessage$outboundSchema.parse(messagesToolMessage),
|
|
2472
2411
|
);
|
|
2473
2412
|
}
|
|
2474
2413
|
|
|
2475
2414
|
/** @internal */
|
|
2476
|
-
export type
|
|
2415
|
+
export type DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound =
|
|
2477
2416
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2478
2417
|
| components.RefusalPartSchema$Outbound
|
|
2479
2418
|
| components.ReasoningPartSchema$Outbound
|
|
2480
2419
|
| components.RedactedReasoningPartSchema$Outbound;
|
|
2481
2420
|
|
|
2482
2421
|
/** @internal */
|
|
2483
|
-
export const
|
|
2422
|
+
export const DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema:
|
|
2484
2423
|
z.ZodType<
|
|
2485
|
-
|
|
2424
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound,
|
|
2486
2425
|
z.ZodTypeDef,
|
|
2487
|
-
|
|
2426
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2
|
|
2488
2427
|
> = z.union([
|
|
2489
2428
|
components.TextContentPartSchema$outboundSchema.and(
|
|
2490
2429
|
z.object({ type: z.literal("text") }),
|
|
@@ -2494,18 +2433,18 @@ export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$ou
|
|
|
2494
2433
|
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2495
2434
|
]);
|
|
2496
2435
|
|
|
2497
|
-
export function
|
|
2498
|
-
|
|
2499
|
-
|
|
2436
|
+
export function deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON(
|
|
2437
|
+
deploymentGetConfigContentDeploymentsRequestRequestBody2:
|
|
2438
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2,
|
|
2500
2439
|
): string {
|
|
2501
2440
|
return JSON.stringify(
|
|
2502
|
-
|
|
2503
|
-
.parse(
|
|
2441
|
+
DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
|
|
2442
|
+
.parse(deploymentGetConfigContentDeploymentsRequestRequestBody2),
|
|
2504
2443
|
);
|
|
2505
2444
|
}
|
|
2506
2445
|
|
|
2507
2446
|
/** @internal */
|
|
2508
|
-
export type
|
|
2447
|
+
export type DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound =
|
|
2509
2448
|
| string
|
|
2510
2449
|
| Array<
|
|
2511
2450
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
@@ -2515,11 +2454,11 @@ export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outb
|
|
|
2515
2454
|
>;
|
|
2516
2455
|
|
|
2517
2456
|
/** @internal */
|
|
2518
|
-
export const
|
|
2457
|
+
export const DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema:
|
|
2519
2458
|
z.ZodType<
|
|
2520
|
-
|
|
2459
|
+
DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound,
|
|
2521
2460
|
z.ZodTypeDef,
|
|
2522
|
-
|
|
2461
|
+
DeploymentGetConfigMessagesDeploymentsRequestContent
|
|
2523
2462
|
> = z.union([
|
|
2524
2463
|
z.string(),
|
|
2525
2464
|
z.array(
|
|
@@ -2534,88 +2473,80 @@ export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$out
|
|
|
2534
2473
|
),
|
|
2535
2474
|
]);
|
|
2536
2475
|
|
|
2537
|
-
export function
|
|
2538
|
-
|
|
2539
|
-
|
|
2476
|
+
export function deploymentGetConfigMessagesDeploymentsRequestContentToJSON(
|
|
2477
|
+
deploymentGetConfigMessagesDeploymentsRequestContent:
|
|
2478
|
+
DeploymentGetConfigMessagesDeploymentsRequestContent,
|
|
2540
2479
|
): string {
|
|
2541
2480
|
return JSON.stringify(
|
|
2542
|
-
|
|
2543
|
-
|
|
2481
|
+
DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema.parse(
|
|
2482
|
+
deploymentGetConfigMessagesDeploymentsRequestContent,
|
|
2483
|
+
),
|
|
2544
2484
|
);
|
|
2545
2485
|
}
|
|
2546
2486
|
|
|
2547
2487
|
/** @internal */
|
|
2548
|
-
export type
|
|
2488
|
+
export type MessagesAudio$Outbound = {
|
|
2549
2489
|
id: string;
|
|
2550
2490
|
};
|
|
2551
2491
|
|
|
2552
2492
|
/** @internal */
|
|
2553
|
-
export const
|
|
2554
|
-
|
|
2493
|
+
export const MessagesAudio$outboundSchema: z.ZodType<
|
|
2494
|
+
MessagesAudio$Outbound,
|
|
2555
2495
|
z.ZodTypeDef,
|
|
2556
|
-
|
|
2496
|
+
MessagesAudio
|
|
2557
2497
|
> = z.object({
|
|
2558
2498
|
id: z.string(),
|
|
2559
2499
|
});
|
|
2560
2500
|
|
|
2561
|
-
export function
|
|
2562
|
-
|
|
2563
|
-
): string {
|
|
2564
|
-
return JSON.stringify(
|
|
2565
|
-
DeploymentGetConfigMessagesAudio$outboundSchema.parse(
|
|
2566
|
-
deploymentGetConfigMessagesAudio,
|
|
2567
|
-
),
|
|
2568
|
-
);
|
|
2501
|
+
export function messagesAudioToJSON(messagesAudio: MessagesAudio): string {
|
|
2502
|
+
return JSON.stringify(MessagesAudio$outboundSchema.parse(messagesAudio));
|
|
2569
2503
|
}
|
|
2570
2504
|
|
|
2571
2505
|
/** @internal */
|
|
2572
|
-
export const
|
|
2573
|
-
|
|
2574
|
-
> = z.nativeEnum(DeploymentGetConfigMessagesType);
|
|
2506
|
+
export const MessagesType$outboundSchema: z.ZodNativeEnum<typeof MessagesType> =
|
|
2507
|
+
z.nativeEnum(MessagesType);
|
|
2575
2508
|
|
|
2576
2509
|
/** @internal */
|
|
2577
|
-
export type
|
|
2510
|
+
export type MessagesFunction$Outbound = {
|
|
2578
2511
|
name?: string | undefined;
|
|
2579
2512
|
arguments?: string | undefined;
|
|
2580
2513
|
};
|
|
2581
2514
|
|
|
2582
2515
|
/** @internal */
|
|
2583
|
-
export const
|
|
2584
|
-
|
|
2516
|
+
export const MessagesFunction$outboundSchema: z.ZodType<
|
|
2517
|
+
MessagesFunction$Outbound,
|
|
2585
2518
|
z.ZodTypeDef,
|
|
2586
|
-
|
|
2519
|
+
MessagesFunction
|
|
2587
2520
|
> = z.object({
|
|
2588
2521
|
name: z.string().optional(),
|
|
2589
2522
|
arguments: z.string().optional(),
|
|
2590
2523
|
});
|
|
2591
2524
|
|
|
2592
|
-
export function
|
|
2593
|
-
|
|
2525
|
+
export function messagesFunctionToJSON(
|
|
2526
|
+
messagesFunction: MessagesFunction,
|
|
2594
2527
|
): string {
|
|
2595
2528
|
return JSON.stringify(
|
|
2596
|
-
|
|
2597
|
-
deploymentGetConfigMessagesFunction,
|
|
2598
|
-
),
|
|
2529
|
+
MessagesFunction$outboundSchema.parse(messagesFunction),
|
|
2599
2530
|
);
|
|
2600
2531
|
}
|
|
2601
2532
|
|
|
2602
2533
|
/** @internal */
|
|
2603
|
-
export type
|
|
2534
|
+
export type MessagesToolCalls$Outbound = {
|
|
2604
2535
|
id: string;
|
|
2605
2536
|
type: string;
|
|
2606
|
-
function:
|
|
2537
|
+
function: MessagesFunction$Outbound;
|
|
2607
2538
|
thought_signature?: string | undefined;
|
|
2608
2539
|
};
|
|
2609
2540
|
|
|
2610
2541
|
/** @internal */
|
|
2611
|
-
export const
|
|
2612
|
-
|
|
2542
|
+
export const MessagesToolCalls$outboundSchema: z.ZodType<
|
|
2543
|
+
MessagesToolCalls$Outbound,
|
|
2613
2544
|
z.ZodTypeDef,
|
|
2614
|
-
|
|
2545
|
+
MessagesToolCalls
|
|
2615
2546
|
> = z.object({
|
|
2616
2547
|
id: z.string(),
|
|
2617
|
-
type:
|
|
2618
|
-
function: z.lazy(() =>
|
|
2548
|
+
type: MessagesType$outboundSchema,
|
|
2549
|
+
function: z.lazy(() => MessagesFunction$outboundSchema),
|
|
2619
2550
|
thoughtSignature: z.string().optional(),
|
|
2620
2551
|
}).transform((v) => {
|
|
2621
2552
|
return remap$(v, {
|
|
@@ -2623,18 +2554,16 @@ export const DeploymentGetConfigMessagesToolCalls$outboundSchema: z.ZodType<
|
|
|
2623
2554
|
});
|
|
2624
2555
|
});
|
|
2625
2556
|
|
|
2626
|
-
export function
|
|
2627
|
-
|
|
2557
|
+
export function messagesToolCallsToJSON(
|
|
2558
|
+
messagesToolCalls: MessagesToolCalls,
|
|
2628
2559
|
): string {
|
|
2629
2560
|
return JSON.stringify(
|
|
2630
|
-
|
|
2631
|
-
deploymentGetConfigMessagesToolCalls,
|
|
2632
|
-
),
|
|
2561
|
+
MessagesToolCalls$outboundSchema.parse(messagesToolCalls),
|
|
2633
2562
|
);
|
|
2634
2563
|
}
|
|
2635
2564
|
|
|
2636
2565
|
/** @internal */
|
|
2637
|
-
export type
|
|
2566
|
+
export type MessagesAssistantMessage$Outbound = {
|
|
2638
2567
|
content?:
|
|
2639
2568
|
| string
|
|
2640
2569
|
| Array<
|
|
@@ -2648,55 +2577,47 @@ export type DeploymentGetConfigMessagesAssistantMessage$Outbound = {
|
|
|
2648
2577
|
refusal?: string | null | undefined;
|
|
2649
2578
|
role: "assistant";
|
|
2650
2579
|
name?: string | undefined;
|
|
2651
|
-
audio?:
|
|
2652
|
-
tool_calls?: Array<
|
|
2580
|
+
audio?: MessagesAudio$Outbound | null | undefined;
|
|
2581
|
+
tool_calls?: Array<MessagesToolCalls$Outbound> | undefined;
|
|
2653
2582
|
};
|
|
2654
2583
|
|
|
2655
2584
|
/** @internal */
|
|
2656
|
-
export const
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
z.
|
|
2664
|
-
|
|
2665
|
-
z.
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2679
|
-
|
|
2680
|
-
|
|
2681
|
-
|
|
2682
|
-
|
|
2683
|
-
toolCalls:
|
|
2684
|
-
z.lazy(() => DeploymentGetConfigMessagesToolCalls$outboundSchema),
|
|
2685
|
-
).optional(),
|
|
2686
|
-
}).transform((v) => {
|
|
2687
|
-
return remap$(v, {
|
|
2688
|
-
toolCalls: "tool_calls",
|
|
2689
|
-
});
|
|
2585
|
+
export const MessagesAssistantMessage$outboundSchema: z.ZodType<
|
|
2586
|
+
MessagesAssistantMessage$Outbound,
|
|
2587
|
+
z.ZodTypeDef,
|
|
2588
|
+
MessagesAssistantMessage
|
|
2589
|
+
> = z.object({
|
|
2590
|
+
content: z.nullable(
|
|
2591
|
+
z.union([
|
|
2592
|
+
z.string(),
|
|
2593
|
+
z.array(
|
|
2594
|
+
z.union([
|
|
2595
|
+
components.TextContentPartSchema$outboundSchema.and(
|
|
2596
|
+
z.object({ type: z.literal("text") }),
|
|
2597
|
+
),
|
|
2598
|
+
components.RefusalPartSchema$outboundSchema,
|
|
2599
|
+
components.ReasoningPartSchema$outboundSchema,
|
|
2600
|
+
components.RedactedReasoningPartSchema$outboundSchema,
|
|
2601
|
+
]),
|
|
2602
|
+
),
|
|
2603
|
+
]),
|
|
2604
|
+
).optional(),
|
|
2605
|
+
refusal: z.nullable(z.string()).optional(),
|
|
2606
|
+
role: z.literal("assistant"),
|
|
2607
|
+
name: z.string().optional(),
|
|
2608
|
+
audio: z.nullable(z.lazy(() => MessagesAudio$outboundSchema)).optional(),
|
|
2609
|
+
toolCalls: z.array(z.lazy(() => MessagesToolCalls$outboundSchema)).optional(),
|
|
2610
|
+
}).transform((v) => {
|
|
2611
|
+
return remap$(v, {
|
|
2612
|
+
toolCalls: "tool_calls",
|
|
2690
2613
|
});
|
|
2614
|
+
});
|
|
2691
2615
|
|
|
2692
|
-
export function
|
|
2693
|
-
|
|
2694
|
-
DeploymentGetConfigMessagesAssistantMessage,
|
|
2616
|
+
export function messagesAssistantMessageToJSON(
|
|
2617
|
+
messagesAssistantMessage: MessagesAssistantMessage,
|
|
2695
2618
|
): string {
|
|
2696
2619
|
return JSON.stringify(
|
|
2697
|
-
|
|
2698
|
-
deploymentGetConfigMessagesAssistantMessage,
|
|
2699
|
-
),
|
|
2620
|
+
MessagesAssistantMessage$outboundSchema.parse(messagesAssistantMessage),
|
|
2700
2621
|
);
|
|
2701
2622
|
}
|
|
2702
2623
|
|
|
@@ -2707,122 +2628,103 @@ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchem
|
|
|
2707
2628
|
> = z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyType);
|
|
2708
2629
|
|
|
2709
2630
|
/** @internal */
|
|
2710
|
-
export const
|
|
2711
|
-
|
|
2712
|
-
> = z.nativeEnum(DeploymentGetConfig2DeploymentsTtl);
|
|
2631
|
+
export const TwoTtl$outboundSchema: z.ZodNativeEnum<typeof TwoTtl> = z
|
|
2632
|
+
.nativeEnum(TwoTtl);
|
|
2713
2633
|
|
|
2714
2634
|
/** @internal */
|
|
2715
|
-
export type
|
|
2635
|
+
export type TwoCacheControl$Outbound = {
|
|
2716
2636
|
type: string;
|
|
2717
2637
|
ttl: string;
|
|
2718
2638
|
};
|
|
2719
2639
|
|
|
2720
2640
|
/** @internal */
|
|
2721
|
-
export const
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2728
|
-
|
|
2729
|
-
});
|
|
2641
|
+
export const TwoCacheControl$outboundSchema: z.ZodType<
|
|
2642
|
+
TwoCacheControl$Outbound,
|
|
2643
|
+
z.ZodTypeDef,
|
|
2644
|
+
TwoCacheControl
|
|
2645
|
+
> = z.object({
|
|
2646
|
+
type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
|
|
2647
|
+
ttl: TwoTtl$outboundSchema.default("5m"),
|
|
2648
|
+
});
|
|
2730
2649
|
|
|
2731
|
-
export function
|
|
2732
|
-
|
|
2733
|
-
DeploymentGetConfig2DeploymentsCacheControl,
|
|
2650
|
+
export function twoCacheControlToJSON(
|
|
2651
|
+
twoCacheControl: TwoCacheControl,
|
|
2734
2652
|
): string {
|
|
2735
|
-
return JSON.stringify(
|
|
2736
|
-
DeploymentGetConfig2DeploymentsCacheControl$outboundSchema.parse(
|
|
2737
|
-
deploymentGetConfig2DeploymentsCacheControl,
|
|
2738
|
-
),
|
|
2739
|
-
);
|
|
2653
|
+
return JSON.stringify(TwoCacheControl$outboundSchema.parse(twoCacheControl));
|
|
2740
2654
|
}
|
|
2741
2655
|
|
|
2742
2656
|
/** @internal */
|
|
2743
|
-
export type
|
|
2657
|
+
export type Two4$Outbound = {
|
|
2744
2658
|
type: "file";
|
|
2745
|
-
cache_control?:
|
|
2746
|
-
| DeploymentGetConfig2DeploymentsCacheControl$Outbound
|
|
2747
|
-
| undefined;
|
|
2659
|
+
cache_control?: TwoCacheControl$Outbound | undefined;
|
|
2748
2660
|
file: components.FileContentPartSchema$Outbound;
|
|
2749
2661
|
};
|
|
2750
2662
|
|
|
2751
2663
|
/** @internal */
|
|
2752
|
-
export const
|
|
2753
|
-
|
|
2754
|
-
|
|
2755
|
-
|
|
2756
|
-
|
|
2757
|
-
|
|
2758
|
-
|
|
2759
|
-
|
|
2760
|
-
|
|
2761
|
-
file: components.FileContentPartSchema$outboundSchema,
|
|
2762
|
-
}).transform((v) => {
|
|
2763
|
-
return remap$(v, {
|
|
2764
|
-
cacheControl: "cache_control",
|
|
2664
|
+
export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
|
|
2665
|
+
z.object({
|
|
2666
|
+
type: z.literal("file"),
|
|
2667
|
+
cacheControl: z.lazy(() => TwoCacheControl$outboundSchema).optional(),
|
|
2668
|
+
file: components.FileContentPartSchema$outboundSchema,
|
|
2669
|
+
}).transform((v) => {
|
|
2670
|
+
return remap$(v, {
|
|
2671
|
+
cacheControl: "cache_control",
|
|
2672
|
+
});
|
|
2765
2673
|
});
|
|
2766
|
-
});
|
|
2767
2674
|
|
|
2768
|
-
export function
|
|
2769
|
-
|
|
2770
|
-
): string {
|
|
2771
|
-
return JSON.stringify(
|
|
2772
|
-
DeploymentGetConfig2Deployments4$outboundSchema.parse(
|
|
2773
|
-
deploymentGetConfig2Deployments4,
|
|
2774
|
-
),
|
|
2775
|
-
);
|
|
2675
|
+
export function two4ToJSON(two4: Two4): string {
|
|
2676
|
+
return JSON.stringify(Two4$outboundSchema.parse(two4));
|
|
2776
2677
|
}
|
|
2777
2678
|
|
|
2778
2679
|
/** @internal */
|
|
2779
|
-
export type
|
|
2680
|
+
export type DeploymentGetConfigContentDeploymentsRequest2$Outbound =
|
|
2780
2681
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2781
2682
|
| components.ImageContentPartSchema$Outbound
|
|
2782
2683
|
| components.AudioContentPartSchema$Outbound
|
|
2783
|
-
|
|
|
2684
|
+
| Two4$Outbound;
|
|
2784
2685
|
|
|
2785
2686
|
/** @internal */
|
|
2786
|
-
export const
|
|
2687
|
+
export const DeploymentGetConfigContentDeploymentsRequest2$outboundSchema:
|
|
2787
2688
|
z.ZodType<
|
|
2788
|
-
|
|
2689
|
+
DeploymentGetConfigContentDeploymentsRequest2$Outbound,
|
|
2789
2690
|
z.ZodTypeDef,
|
|
2790
|
-
|
|
2691
|
+
DeploymentGetConfigContentDeploymentsRequest2
|
|
2791
2692
|
> = z.union([
|
|
2792
2693
|
components.TextContentPartSchema$outboundSchema.and(
|
|
2793
2694
|
z.object({ type: z.literal("text") }),
|
|
2794
2695
|
),
|
|
2795
2696
|
components.ImageContentPartSchema$outboundSchema,
|
|
2796
2697
|
components.AudioContentPartSchema$outboundSchema,
|
|
2797
|
-
z.lazy(() =>
|
|
2698
|
+
z.lazy(() => Two4$outboundSchema),
|
|
2798
2699
|
]);
|
|
2799
2700
|
|
|
2800
|
-
export function
|
|
2801
|
-
|
|
2802
|
-
|
|
2701
|
+
export function deploymentGetConfigContentDeploymentsRequest2ToJSON(
|
|
2702
|
+
deploymentGetConfigContentDeploymentsRequest2:
|
|
2703
|
+
DeploymentGetConfigContentDeploymentsRequest2,
|
|
2803
2704
|
): string {
|
|
2804
2705
|
return JSON.stringify(
|
|
2805
|
-
|
|
2806
|
-
|
|
2706
|
+
DeploymentGetConfigContentDeploymentsRequest2$outboundSchema.parse(
|
|
2707
|
+
deploymentGetConfigContentDeploymentsRequest2,
|
|
2708
|
+
),
|
|
2807
2709
|
);
|
|
2808
2710
|
}
|
|
2809
2711
|
|
|
2810
2712
|
/** @internal */
|
|
2811
|
-
export type
|
|
2713
|
+
export type DeploymentGetConfigMessagesDeploymentsContent$Outbound =
|
|
2812
2714
|
| string
|
|
2813
2715
|
| Array<
|
|
2814
2716
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2815
2717
|
| components.ImageContentPartSchema$Outbound
|
|
2816
2718
|
| components.AudioContentPartSchema$Outbound
|
|
2817
|
-
|
|
|
2719
|
+
| Two4$Outbound
|
|
2818
2720
|
>;
|
|
2819
2721
|
|
|
2820
2722
|
/** @internal */
|
|
2821
|
-
export const
|
|
2723
|
+
export const DeploymentGetConfigMessagesDeploymentsContent$outboundSchema:
|
|
2822
2724
|
z.ZodType<
|
|
2823
|
-
|
|
2725
|
+
DeploymentGetConfigMessagesDeploymentsContent$Outbound,
|
|
2824
2726
|
z.ZodTypeDef,
|
|
2825
|
-
|
|
2727
|
+
DeploymentGetConfigMessagesDeploymentsContent
|
|
2826
2728
|
> = z.union([
|
|
2827
2729
|
z.string(),
|
|
2828
2730
|
z.array(
|
|
@@ -2832,24 +2734,24 @@ export const DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema
|
|
|
2832
2734
|
),
|
|
2833
2735
|
components.ImageContentPartSchema$outboundSchema,
|
|
2834
2736
|
components.AudioContentPartSchema$outboundSchema,
|
|
2835
|
-
z.lazy(() =>
|
|
2737
|
+
z.lazy(() => Two4$outboundSchema),
|
|
2836
2738
|
]),
|
|
2837
2739
|
),
|
|
2838
2740
|
]);
|
|
2839
2741
|
|
|
2840
|
-
export function
|
|
2841
|
-
|
|
2842
|
-
|
|
2742
|
+
export function deploymentGetConfigMessagesDeploymentsContentToJSON(
|
|
2743
|
+
deploymentGetConfigMessagesDeploymentsContent:
|
|
2744
|
+
DeploymentGetConfigMessagesDeploymentsContent,
|
|
2843
2745
|
): string {
|
|
2844
2746
|
return JSON.stringify(
|
|
2845
|
-
|
|
2846
|
-
|
|
2747
|
+
DeploymentGetConfigMessagesDeploymentsContent$outboundSchema.parse(
|
|
2748
|
+
deploymentGetConfigMessagesDeploymentsContent,
|
|
2847
2749
|
),
|
|
2848
2750
|
);
|
|
2849
2751
|
}
|
|
2850
2752
|
|
|
2851
2753
|
/** @internal */
|
|
2852
|
-
export type
|
|
2754
|
+
export type MessagesUserMessage$Outbound = {
|
|
2853
2755
|
role: "user";
|
|
2854
2756
|
name?: string | undefined;
|
|
2855
2757
|
content:
|
|
@@ -2858,15 +2760,15 @@ export type DeploymentGetConfigMessagesUserMessage$Outbound = {
|
|
|
2858
2760
|
| (components.TextContentPartSchema$Outbound & { type: "text" })
|
|
2859
2761
|
| components.ImageContentPartSchema$Outbound
|
|
2860
2762
|
| components.AudioContentPartSchema$Outbound
|
|
2861
|
-
|
|
|
2763
|
+
| Two4$Outbound
|
|
2862
2764
|
>;
|
|
2863
2765
|
};
|
|
2864
2766
|
|
|
2865
2767
|
/** @internal */
|
|
2866
|
-
export const
|
|
2867
|
-
|
|
2768
|
+
export const MessagesUserMessage$outboundSchema: z.ZodType<
|
|
2769
|
+
MessagesUserMessage$Outbound,
|
|
2868
2770
|
z.ZodTypeDef,
|
|
2869
|
-
|
|
2771
|
+
MessagesUserMessage
|
|
2870
2772
|
> = z.object({
|
|
2871
2773
|
role: z.literal("user"),
|
|
2872
2774
|
name: z.string().optional(),
|
|
@@ -2879,120 +2781,107 @@ export const DeploymentGetConfigMessagesUserMessage$outboundSchema: z.ZodType<
|
|
|
2879
2781
|
),
|
|
2880
2782
|
components.ImageContentPartSchema$outboundSchema,
|
|
2881
2783
|
components.AudioContentPartSchema$outboundSchema,
|
|
2882
|
-
z.lazy(() =>
|
|
2784
|
+
z.lazy(() => Two4$outboundSchema),
|
|
2883
2785
|
]),
|
|
2884
2786
|
),
|
|
2885
2787
|
]),
|
|
2886
2788
|
});
|
|
2887
2789
|
|
|
2888
|
-
export function
|
|
2889
|
-
|
|
2890
|
-
DeploymentGetConfigMessagesUserMessage,
|
|
2790
|
+
export function messagesUserMessageToJSON(
|
|
2791
|
+
messagesUserMessage: MessagesUserMessage,
|
|
2891
2792
|
): string {
|
|
2892
2793
|
return JSON.stringify(
|
|
2893
|
-
|
|
2894
|
-
deploymentGetConfigMessagesUserMessage,
|
|
2895
|
-
),
|
|
2794
|
+
MessagesUserMessage$outboundSchema.parse(messagesUserMessage),
|
|
2896
2795
|
);
|
|
2897
2796
|
}
|
|
2898
2797
|
|
|
2899
2798
|
/** @internal */
|
|
2900
|
-
export type
|
|
2799
|
+
export type DeploymentGetConfigMessagesContent$Outbound =
|
|
2901
2800
|
| string
|
|
2902
2801
|
| Array<components.TextContentPartSchema$Outbound>;
|
|
2903
2802
|
|
|
2904
2803
|
/** @internal */
|
|
2905
|
-
export const
|
|
2906
|
-
|
|
2907
|
-
|
|
2908
|
-
|
|
2909
|
-
|
|
2910
|
-
|
|
2911
|
-
|
|
2912
|
-
|
|
2913
|
-
]);
|
|
2804
|
+
export const DeploymentGetConfigMessagesContent$outboundSchema: z.ZodType<
|
|
2805
|
+
DeploymentGetConfigMessagesContent$Outbound,
|
|
2806
|
+
z.ZodTypeDef,
|
|
2807
|
+
DeploymentGetConfigMessagesContent
|
|
2808
|
+
> = z.union([
|
|
2809
|
+
z.string(),
|
|
2810
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2811
|
+
]);
|
|
2914
2812
|
|
|
2915
|
-
export function
|
|
2916
|
-
|
|
2917
|
-
DeploymentGetConfigMessagesDeploymentsContent,
|
|
2813
|
+
export function deploymentGetConfigMessagesContentToJSON(
|
|
2814
|
+
deploymentGetConfigMessagesContent: DeploymentGetConfigMessagesContent,
|
|
2918
2815
|
): string {
|
|
2919
2816
|
return JSON.stringify(
|
|
2920
|
-
|
|
2921
|
-
|
|
2817
|
+
DeploymentGetConfigMessagesContent$outboundSchema.parse(
|
|
2818
|
+
deploymentGetConfigMessagesContent,
|
|
2922
2819
|
),
|
|
2923
2820
|
);
|
|
2924
2821
|
}
|
|
2925
2822
|
|
|
2926
2823
|
/** @internal */
|
|
2927
|
-
export type
|
|
2824
|
+
export type MessagesDeveloperMessage$Outbound = {
|
|
2928
2825
|
role: "developer";
|
|
2929
2826
|
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
2930
2827
|
name?: string | undefined;
|
|
2931
2828
|
};
|
|
2932
2829
|
|
|
2933
2830
|
/** @internal */
|
|
2934
|
-
export const
|
|
2935
|
-
|
|
2936
|
-
|
|
2937
|
-
|
|
2938
|
-
|
|
2939
|
-
|
|
2940
|
-
|
|
2941
|
-
|
|
2942
|
-
|
|
2943
|
-
|
|
2944
|
-
|
|
2945
|
-
|
|
2946
|
-
});
|
|
2831
|
+
export const MessagesDeveloperMessage$outboundSchema: z.ZodType<
|
|
2832
|
+
MessagesDeveloperMessage$Outbound,
|
|
2833
|
+
z.ZodTypeDef,
|
|
2834
|
+
MessagesDeveloperMessage
|
|
2835
|
+
> = z.object({
|
|
2836
|
+
role: z.literal("developer"),
|
|
2837
|
+
content: z.union([
|
|
2838
|
+
z.string(),
|
|
2839
|
+
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2840
|
+
]),
|
|
2841
|
+
name: z.string().optional(),
|
|
2842
|
+
});
|
|
2947
2843
|
|
|
2948
|
-
export function
|
|
2949
|
-
|
|
2950
|
-
DeploymentGetConfigMessagesDeveloperMessage,
|
|
2844
|
+
export function messagesDeveloperMessageToJSON(
|
|
2845
|
+
messagesDeveloperMessage: MessagesDeveloperMessage,
|
|
2951
2846
|
): string {
|
|
2952
2847
|
return JSON.stringify(
|
|
2953
|
-
|
|
2954
|
-
deploymentGetConfigMessagesDeveloperMessage,
|
|
2955
|
-
),
|
|
2848
|
+
MessagesDeveloperMessage$outboundSchema.parse(messagesDeveloperMessage),
|
|
2956
2849
|
);
|
|
2957
2850
|
}
|
|
2958
2851
|
|
|
2959
2852
|
/** @internal */
|
|
2960
|
-
export type
|
|
2853
|
+
export type MessagesContent$Outbound =
|
|
2961
2854
|
| string
|
|
2962
2855
|
| Array<components.TextContentPartSchema$Outbound>;
|
|
2963
2856
|
|
|
2964
2857
|
/** @internal */
|
|
2965
|
-
export const
|
|
2966
|
-
|
|
2858
|
+
export const MessagesContent$outboundSchema: z.ZodType<
|
|
2859
|
+
MessagesContent$Outbound,
|
|
2967
2860
|
z.ZodTypeDef,
|
|
2968
|
-
|
|
2861
|
+
MessagesContent
|
|
2969
2862
|
> = z.union([
|
|
2970
2863
|
z.string(),
|
|
2971
2864
|
z.array(components.TextContentPartSchema$outboundSchema),
|
|
2972
2865
|
]);
|
|
2973
2866
|
|
|
2974
|
-
export function
|
|
2975
|
-
|
|
2867
|
+
export function messagesContentToJSON(
|
|
2868
|
+
messagesContent: MessagesContent,
|
|
2976
2869
|
): string {
|
|
2977
|
-
return JSON.stringify(
|
|
2978
|
-
DeploymentGetConfigMessagesContent$outboundSchema.parse(
|
|
2979
|
-
deploymentGetConfigMessagesContent,
|
|
2980
|
-
),
|
|
2981
|
-
);
|
|
2870
|
+
return JSON.stringify(MessagesContent$outboundSchema.parse(messagesContent));
|
|
2982
2871
|
}
|
|
2983
2872
|
|
|
2984
2873
|
/** @internal */
|
|
2985
|
-
export type
|
|
2874
|
+
export type MessagesSystemMessage$Outbound = {
|
|
2986
2875
|
role: "system";
|
|
2987
2876
|
content: string | Array<components.TextContentPartSchema$Outbound>;
|
|
2988
2877
|
name?: string | undefined;
|
|
2989
2878
|
};
|
|
2990
2879
|
|
|
2991
2880
|
/** @internal */
|
|
2992
|
-
export const
|
|
2993
|
-
|
|
2881
|
+
export const MessagesSystemMessage$outboundSchema: z.ZodType<
|
|
2882
|
+
MessagesSystemMessage$Outbound,
|
|
2994
2883
|
z.ZodTypeDef,
|
|
2995
|
-
|
|
2884
|
+
MessagesSystemMessage
|
|
2996
2885
|
> = z.object({
|
|
2997
2886
|
role: z.literal("system"),
|
|
2998
2887
|
content: z.union([
|
|
@@ -3002,24 +2891,21 @@ export const DeploymentGetConfigMessagesSystemMessage$outboundSchema: z.ZodType<
|
|
|
3002
2891
|
name: z.string().optional(),
|
|
3003
2892
|
});
|
|
3004
2893
|
|
|
3005
|
-
export function
|
|
3006
|
-
|
|
3007
|
-
DeploymentGetConfigMessagesSystemMessage,
|
|
2894
|
+
export function messagesSystemMessageToJSON(
|
|
2895
|
+
messagesSystemMessage: MessagesSystemMessage,
|
|
3008
2896
|
): string {
|
|
3009
2897
|
return JSON.stringify(
|
|
3010
|
-
|
|
3011
|
-
deploymentGetConfigMessagesSystemMessage,
|
|
3012
|
-
),
|
|
2898
|
+
MessagesSystemMessage$outboundSchema.parse(messagesSystemMessage),
|
|
3013
2899
|
);
|
|
3014
2900
|
}
|
|
3015
2901
|
|
|
3016
2902
|
/** @internal */
|
|
3017
2903
|
export type DeploymentGetConfigMessages$Outbound =
|
|
3018
|
-
|
|
|
3019
|
-
|
|
|
3020
|
-
|
|
|
3021
|
-
|
|
|
3022
|
-
|
|
|
2904
|
+
| MessagesSystemMessage$Outbound
|
|
2905
|
+
| MessagesDeveloperMessage$Outbound
|
|
2906
|
+
| MessagesUserMessage$Outbound
|
|
2907
|
+
| MessagesAssistantMessage$Outbound
|
|
2908
|
+
| MessagesToolMessage$Outbound;
|
|
3023
2909
|
|
|
3024
2910
|
/** @internal */
|
|
3025
2911
|
export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
|
|
@@ -3027,11 +2913,11 @@ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
|
|
|
3027
2913
|
z.ZodTypeDef,
|
|
3028
2914
|
DeploymentGetConfigMessages
|
|
3029
2915
|
> = z.union([
|
|
3030
|
-
z.lazy(() =>
|
|
3031
|
-
z.lazy(() =>
|
|
3032
|
-
z.lazy(() =>
|
|
3033
|
-
z.lazy(() =>
|
|
3034
|
-
z.lazy(() =>
|
|
2916
|
+
z.lazy(() => MessagesSystemMessage$outboundSchema),
|
|
2917
|
+
z.lazy(() => MessagesDeveloperMessage$outboundSchema),
|
|
2918
|
+
z.lazy(() => MessagesUserMessage$outboundSchema),
|
|
2919
|
+
z.lazy(() => MessagesAssistantMessage$outboundSchema),
|
|
2920
|
+
z.lazy(() => MessagesToolMessage$outboundSchema),
|
|
3035
2921
|
]);
|
|
3036
2922
|
|
|
3037
2923
|
export function deploymentGetConfigMessagesToJSON(
|
|
@@ -3045,17 +2931,17 @@ export function deploymentGetConfigMessagesToJSON(
|
|
|
3045
2931
|
}
|
|
3046
2932
|
|
|
3047
2933
|
/** @internal */
|
|
3048
|
-
export type
|
|
2934
|
+
export type Metadata$Outbound = {
|
|
3049
2935
|
file_name?: string | undefined;
|
|
3050
2936
|
file_type?: string | undefined;
|
|
3051
2937
|
page_number?: number | undefined;
|
|
3052
2938
|
};
|
|
3053
2939
|
|
|
3054
2940
|
/** @internal */
|
|
3055
|
-
export const
|
|
3056
|
-
|
|
2941
|
+
export const Metadata$outboundSchema: z.ZodType<
|
|
2942
|
+
Metadata$Outbound,
|
|
3057
2943
|
z.ZodTypeDef,
|
|
3058
|
-
|
|
2944
|
+
Metadata
|
|
3059
2945
|
> = z.object({
|
|
3060
2946
|
fileName: z.string().optional(),
|
|
3061
2947
|
fileType: z.string().optional(),
|
|
@@ -3068,54 +2954,42 @@ export const DeploymentGetConfigMetadata$outboundSchema: z.ZodType<
|
|
|
3068
2954
|
});
|
|
3069
2955
|
});
|
|
3070
2956
|
|
|
3071
|
-
export function
|
|
3072
|
-
|
|
3073
|
-
): string {
|
|
3074
|
-
return JSON.stringify(
|
|
3075
|
-
DeploymentGetConfigMetadata$outboundSchema.parse(
|
|
3076
|
-
deploymentGetConfigMetadata,
|
|
3077
|
-
),
|
|
3078
|
-
);
|
|
2957
|
+
export function metadataToJSON(metadata: Metadata): string {
|
|
2958
|
+
return JSON.stringify(Metadata$outboundSchema.parse(metadata));
|
|
3079
2959
|
}
|
|
3080
2960
|
|
|
3081
2961
|
/** @internal */
|
|
3082
|
-
export type
|
|
2962
|
+
export type Documents$Outbound = {
|
|
3083
2963
|
text: string;
|
|
3084
|
-
metadata?:
|
|
2964
|
+
metadata?: Metadata$Outbound | undefined;
|
|
3085
2965
|
};
|
|
3086
2966
|
|
|
3087
2967
|
/** @internal */
|
|
3088
|
-
export const
|
|
3089
|
-
|
|
2968
|
+
export const Documents$outboundSchema: z.ZodType<
|
|
2969
|
+
Documents$Outbound,
|
|
3090
2970
|
z.ZodTypeDef,
|
|
3091
|
-
|
|
2971
|
+
Documents
|
|
3092
2972
|
> = z.object({
|
|
3093
2973
|
text: z.string(),
|
|
3094
|
-
metadata: z.lazy(() =>
|
|
2974
|
+
metadata: z.lazy(() => Metadata$outboundSchema).optional(),
|
|
3095
2975
|
});
|
|
3096
2976
|
|
|
3097
|
-
export function
|
|
3098
|
-
|
|
3099
|
-
): string {
|
|
3100
|
-
return JSON.stringify(
|
|
3101
|
-
DeploymentGetConfigDocuments$outboundSchema.parse(
|
|
3102
|
-
deploymentGetConfigDocuments,
|
|
3103
|
-
),
|
|
3104
|
-
);
|
|
2977
|
+
export function documentsToJSON(documents: Documents): string {
|
|
2978
|
+
return JSON.stringify(Documents$outboundSchema.parse(documents));
|
|
3105
2979
|
}
|
|
3106
2980
|
|
|
3107
2981
|
/** @internal */
|
|
3108
|
-
export type
|
|
2982
|
+
export type InvokeOptions$Outbound = {
|
|
3109
2983
|
include_retrievals: boolean;
|
|
3110
2984
|
include_usage: boolean;
|
|
3111
2985
|
mock_response?: string | undefined;
|
|
3112
2986
|
};
|
|
3113
2987
|
|
|
3114
2988
|
/** @internal */
|
|
3115
|
-
export const
|
|
3116
|
-
|
|
2989
|
+
export const InvokeOptions$outboundSchema: z.ZodType<
|
|
2990
|
+
InvokeOptions$Outbound,
|
|
3117
2991
|
z.ZodTypeDef,
|
|
3118
|
-
|
|
2992
|
+
InvokeOptions
|
|
3119
2993
|
> = z.object({
|
|
3120
2994
|
includeRetrievals: z.boolean().default(false),
|
|
3121
2995
|
includeUsage: z.boolean().default(false),
|
|
@@ -3128,278 +3002,192 @@ export const DeploymentGetConfigInvokeOptions$outboundSchema: z.ZodType<
|
|
|
3128
3002
|
});
|
|
3129
3003
|
});
|
|
3130
3004
|
|
|
3131
|
-
export function
|
|
3132
|
-
|
|
3133
|
-
): string {
|
|
3134
|
-
return JSON.stringify(
|
|
3135
|
-
DeploymentGetConfigInvokeOptions$outboundSchema.parse(
|
|
3136
|
-
deploymentGetConfigInvokeOptions,
|
|
3137
|
-
),
|
|
3138
|
-
);
|
|
3005
|
+
export function invokeOptionsToJSON(invokeOptions: InvokeOptions): string {
|
|
3006
|
+
return JSON.stringify(InvokeOptions$outboundSchema.parse(invokeOptions));
|
|
3139
3007
|
}
|
|
3140
3008
|
|
|
3141
3009
|
/** @internal */
|
|
3142
|
-
export type
|
|
3010
|
+
export type Thread$Outbound = {
|
|
3143
3011
|
id: string;
|
|
3144
3012
|
tags?: Array<string> | undefined;
|
|
3145
3013
|
};
|
|
3146
3014
|
|
|
3147
3015
|
/** @internal */
|
|
3148
|
-
export const
|
|
3149
|
-
|
|
3016
|
+
export const Thread$outboundSchema: z.ZodType<
|
|
3017
|
+
Thread$Outbound,
|
|
3150
3018
|
z.ZodTypeDef,
|
|
3151
|
-
|
|
3019
|
+
Thread
|
|
3152
3020
|
> = z.object({
|
|
3153
3021
|
id: z.string(),
|
|
3154
3022
|
tags: z.array(z.string()).optional(),
|
|
3155
3023
|
});
|
|
3156
3024
|
|
|
3157
|
-
export function
|
|
3158
|
-
|
|
3159
|
-
): string {
|
|
3160
|
-
return JSON.stringify(
|
|
3161
|
-
DeploymentGetConfigThread$outboundSchema.parse(deploymentGetConfigThread),
|
|
3162
|
-
);
|
|
3025
|
+
export function threadToJSON(thread: Thread): string {
|
|
3026
|
+
return JSON.stringify(Thread$outboundSchema.parse(thread));
|
|
3163
3027
|
}
|
|
3164
3028
|
|
|
3165
3029
|
/** @internal */
|
|
3166
|
-
export type
|
|
3030
|
+
export type OrExists$Outbound = {
|
|
3167
3031
|
exists: boolean;
|
|
3168
3032
|
};
|
|
3169
3033
|
|
|
3170
3034
|
/** @internal */
|
|
3171
|
-
export const
|
|
3172
|
-
|
|
3035
|
+
export const OrExists$outboundSchema: z.ZodType<
|
|
3036
|
+
OrExists$Outbound,
|
|
3173
3037
|
z.ZodTypeDef,
|
|
3174
|
-
|
|
3038
|
+
OrExists
|
|
3175
3039
|
> = z.object({
|
|
3176
3040
|
exists: z.boolean(),
|
|
3177
3041
|
});
|
|
3178
3042
|
|
|
3179
|
-
export function
|
|
3180
|
-
|
|
3181
|
-
): string {
|
|
3182
|
-
return JSON.stringify(
|
|
3183
|
-
DeploymentGetConfigOrExists$outboundSchema.parse(
|
|
3184
|
-
deploymentGetConfigOrExists,
|
|
3185
|
-
),
|
|
3186
|
-
);
|
|
3043
|
+
export function orExistsToJSON(orExists: OrExists): string {
|
|
3044
|
+
return JSON.stringify(OrExists$outboundSchema.parse(orExists));
|
|
3187
3045
|
}
|
|
3188
3046
|
|
|
3189
3047
|
/** @internal */
|
|
3190
|
-
export type
|
|
3191
|
-
| string
|
|
3192
|
-
| number
|
|
3193
|
-
| boolean;
|
|
3048
|
+
export type DeploymentGetConfigOrNin$Outbound = string | number | boolean;
|
|
3194
3049
|
|
|
3195
3050
|
/** @internal */
|
|
3196
|
-
export const
|
|
3197
|
-
|
|
3051
|
+
export const DeploymentGetConfigOrNin$outboundSchema: z.ZodType<
|
|
3052
|
+
DeploymentGetConfigOrNin$Outbound,
|
|
3198
3053
|
z.ZodTypeDef,
|
|
3199
|
-
|
|
3054
|
+
DeploymentGetConfigOrNin
|
|
3200
3055
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3201
3056
|
|
|
3202
|
-
export function
|
|
3203
|
-
|
|
3057
|
+
export function deploymentGetConfigOrNinToJSON(
|
|
3058
|
+
deploymentGetConfigOrNin: DeploymentGetConfigOrNin,
|
|
3204
3059
|
): string {
|
|
3205
3060
|
return JSON.stringify(
|
|
3206
|
-
|
|
3207
|
-
deploymentGetConfigOrDeploymentsNin,
|
|
3208
|
-
),
|
|
3061
|
+
DeploymentGetConfigOrNin$outboundSchema.parse(deploymentGetConfigOrNin),
|
|
3209
3062
|
);
|
|
3210
3063
|
}
|
|
3211
3064
|
|
|
3212
3065
|
/** @internal */
|
|
3213
|
-
export type
|
|
3066
|
+
export type OrNin$Outbound = {
|
|
3214
3067
|
nin: Array<string | number | boolean>;
|
|
3215
3068
|
};
|
|
3216
3069
|
|
|
3217
3070
|
/** @internal */
|
|
3218
|
-
export const
|
|
3219
|
-
|
|
3071
|
+
export const OrNin$outboundSchema: z.ZodType<
|
|
3072
|
+
OrNin$Outbound,
|
|
3220
3073
|
z.ZodTypeDef,
|
|
3221
|
-
|
|
3074
|
+
OrNin
|
|
3222
3075
|
> = z.object({
|
|
3223
3076
|
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3224
3077
|
});
|
|
3225
3078
|
|
|
3226
|
-
export function
|
|
3227
|
-
|
|
3228
|
-
): string {
|
|
3229
|
-
return JSON.stringify(
|
|
3230
|
-
DeploymentGetConfigOrNin$outboundSchema.parse(deploymentGetConfigOrNin),
|
|
3231
|
-
);
|
|
3079
|
+
export function orNinToJSON(orNin: OrNin): string {
|
|
3080
|
+
return JSON.stringify(OrNin$outboundSchema.parse(orNin));
|
|
3232
3081
|
}
|
|
3233
3082
|
|
|
3234
3083
|
/** @internal */
|
|
3235
|
-
export type
|
|
3236
|
-
| string
|
|
3237
|
-
| number
|
|
3238
|
-
| boolean;
|
|
3084
|
+
export type DeploymentGetConfigOrIn$Outbound = string | number | boolean;
|
|
3239
3085
|
|
|
3240
3086
|
/** @internal */
|
|
3241
|
-
export const
|
|
3242
|
-
|
|
3087
|
+
export const DeploymentGetConfigOrIn$outboundSchema: z.ZodType<
|
|
3088
|
+
DeploymentGetConfigOrIn$Outbound,
|
|
3243
3089
|
z.ZodTypeDef,
|
|
3244
|
-
|
|
3090
|
+
DeploymentGetConfigOrIn
|
|
3245
3091
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3246
3092
|
|
|
3247
|
-
export function
|
|
3248
|
-
|
|
3093
|
+
export function deploymentGetConfigOrInToJSON(
|
|
3094
|
+
deploymentGetConfigOrIn: DeploymentGetConfigOrIn,
|
|
3249
3095
|
): string {
|
|
3250
3096
|
return JSON.stringify(
|
|
3251
|
-
|
|
3252
|
-
deploymentGetConfigOrDeploymentsIn,
|
|
3253
|
-
),
|
|
3097
|
+
DeploymentGetConfigOrIn$outboundSchema.parse(deploymentGetConfigOrIn),
|
|
3254
3098
|
);
|
|
3255
3099
|
}
|
|
3256
3100
|
|
|
3257
3101
|
/** @internal */
|
|
3258
|
-
export type
|
|
3102
|
+
export type OrIn$Outbound = {
|
|
3259
3103
|
in: Array<string | number | boolean>;
|
|
3260
3104
|
};
|
|
3261
3105
|
|
|
3262
3106
|
/** @internal */
|
|
3263
|
-
export const
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
> = z.object({
|
|
3268
|
-
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3269
|
-
});
|
|
3107
|
+
export const OrIn$outboundSchema: z.ZodType<OrIn$Outbound, z.ZodTypeDef, OrIn> =
|
|
3108
|
+
z.object({
|
|
3109
|
+
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3110
|
+
});
|
|
3270
3111
|
|
|
3271
|
-
export function
|
|
3272
|
-
|
|
3273
|
-
): string {
|
|
3274
|
-
return JSON.stringify(
|
|
3275
|
-
DeploymentGetConfigOrIn$outboundSchema.parse(deploymentGetConfigOrIn),
|
|
3276
|
-
);
|
|
3112
|
+
export function orInToJSON(orIn: OrIn): string {
|
|
3113
|
+
return JSON.stringify(OrIn$outboundSchema.parse(orIn));
|
|
3277
3114
|
}
|
|
3278
3115
|
|
|
3279
3116
|
/** @internal */
|
|
3280
|
-
export type
|
|
3117
|
+
export type OrLte$Outbound = {
|
|
3281
3118
|
lte: number;
|
|
3282
3119
|
};
|
|
3283
3120
|
|
|
3284
3121
|
/** @internal */
|
|
3285
|
-
export const
|
|
3286
|
-
|
|
3122
|
+
export const OrLte$outboundSchema: z.ZodType<
|
|
3123
|
+
OrLte$Outbound,
|
|
3287
3124
|
z.ZodTypeDef,
|
|
3288
|
-
|
|
3125
|
+
OrLte
|
|
3289
3126
|
> = z.object({
|
|
3290
3127
|
lte: z.number(),
|
|
3291
3128
|
});
|
|
3292
3129
|
|
|
3293
|
-
export function
|
|
3294
|
-
|
|
3295
|
-
): string {
|
|
3296
|
-
return JSON.stringify(
|
|
3297
|
-
DeploymentGetConfigOrLte$outboundSchema.parse(deploymentGetConfigOrLte),
|
|
3298
|
-
);
|
|
3130
|
+
export function orLteToJSON(orLte: OrLte): string {
|
|
3131
|
+
return JSON.stringify(OrLte$outboundSchema.parse(orLte));
|
|
3299
3132
|
}
|
|
3300
3133
|
|
|
3301
3134
|
/** @internal */
|
|
3302
|
-
export type
|
|
3135
|
+
export type OrLt$Outbound = {
|
|
3303
3136
|
lt: number;
|
|
3304
3137
|
};
|
|
3305
3138
|
|
|
3306
3139
|
/** @internal */
|
|
3307
|
-
export const
|
|
3308
|
-
|
|
3309
|
-
|
|
3310
|
-
|
|
3311
|
-
> = z.object({
|
|
3312
|
-
lt: z.number(),
|
|
3313
|
-
});
|
|
3140
|
+
export const OrLt$outboundSchema: z.ZodType<OrLt$Outbound, z.ZodTypeDef, OrLt> =
|
|
3141
|
+
z.object({
|
|
3142
|
+
lt: z.number(),
|
|
3143
|
+
});
|
|
3314
3144
|
|
|
3315
|
-
export function
|
|
3316
|
-
|
|
3317
|
-
): string {
|
|
3318
|
-
return JSON.stringify(
|
|
3319
|
-
DeploymentGetConfigOrLt$outboundSchema.parse(deploymentGetConfigOrLt),
|
|
3320
|
-
);
|
|
3145
|
+
export function orLtToJSON(orLt: OrLt): string {
|
|
3146
|
+
return JSON.stringify(OrLt$outboundSchema.parse(orLt));
|
|
3321
3147
|
}
|
|
3322
3148
|
|
|
3323
3149
|
/** @internal */
|
|
3324
|
-
export type
|
|
3150
|
+
export type OrGte$Outbound = {
|
|
3325
3151
|
gte: number;
|
|
3326
3152
|
};
|
|
3327
3153
|
|
|
3328
3154
|
/** @internal */
|
|
3329
|
-
export const
|
|
3330
|
-
|
|
3155
|
+
export const OrGte$outboundSchema: z.ZodType<
|
|
3156
|
+
OrGte$Outbound,
|
|
3331
3157
|
z.ZodTypeDef,
|
|
3332
|
-
|
|
3158
|
+
OrGte
|
|
3333
3159
|
> = z.object({
|
|
3334
3160
|
gte: z.number(),
|
|
3335
3161
|
});
|
|
3336
3162
|
|
|
3337
|
-
export function
|
|
3338
|
-
|
|
3339
|
-
): string {
|
|
3340
|
-
return JSON.stringify(
|
|
3341
|
-
DeploymentGetConfigOrGte$outboundSchema.parse(deploymentGetConfigOrGte),
|
|
3342
|
-
);
|
|
3163
|
+
export function orGteToJSON(orGte: OrGte): string {
|
|
3164
|
+
return JSON.stringify(OrGte$outboundSchema.parse(orGte));
|
|
3343
3165
|
}
|
|
3344
3166
|
|
|
3345
3167
|
/** @internal */
|
|
3346
|
-
export type
|
|
3168
|
+
export type OrGt$Outbound = {
|
|
3347
3169
|
gt: number;
|
|
3348
3170
|
};
|
|
3349
3171
|
|
|
3350
3172
|
/** @internal */
|
|
3351
|
-
export const
|
|
3352
|
-
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
> = z.object({
|
|
3356
|
-
gt: z.number(),
|
|
3357
|
-
});
|
|
3358
|
-
|
|
3359
|
-
export function deploymentGetConfigOrGtToJSON(
|
|
3360
|
-
deploymentGetConfigOrGt: DeploymentGetConfigOrGt,
|
|
3361
|
-
): string {
|
|
3362
|
-
return JSON.stringify(
|
|
3363
|
-
DeploymentGetConfigOrGt$outboundSchema.parse(deploymentGetConfigOrGt),
|
|
3364
|
-
);
|
|
3365
|
-
}
|
|
3366
|
-
|
|
3367
|
-
/** @internal */
|
|
3368
|
-
export type DeploymentGetConfigOrDeploymentsNe$Outbound =
|
|
3369
|
-
| string
|
|
3370
|
-
| number
|
|
3371
|
-
| boolean;
|
|
3372
|
-
|
|
3373
|
-
/** @internal */
|
|
3374
|
-
export const DeploymentGetConfigOrDeploymentsNe$outboundSchema: z.ZodType<
|
|
3375
|
-
DeploymentGetConfigOrDeploymentsNe$Outbound,
|
|
3376
|
-
z.ZodTypeDef,
|
|
3377
|
-
DeploymentGetConfigOrDeploymentsNe
|
|
3378
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3173
|
+
export const OrGt$outboundSchema: z.ZodType<OrGt$Outbound, z.ZodTypeDef, OrGt> =
|
|
3174
|
+
z.object({
|
|
3175
|
+
gt: z.number(),
|
|
3176
|
+
});
|
|
3379
3177
|
|
|
3380
|
-
export function
|
|
3381
|
-
|
|
3382
|
-
): string {
|
|
3383
|
-
return JSON.stringify(
|
|
3384
|
-
DeploymentGetConfigOrDeploymentsNe$outboundSchema.parse(
|
|
3385
|
-
deploymentGetConfigOrDeploymentsNe,
|
|
3386
|
-
),
|
|
3387
|
-
);
|
|
3178
|
+
export function orGtToJSON(orGt: OrGt): string {
|
|
3179
|
+
return JSON.stringify(OrGt$outboundSchema.parse(orGt));
|
|
3388
3180
|
}
|
|
3389
3181
|
|
|
3390
3182
|
/** @internal */
|
|
3391
|
-
export type DeploymentGetConfigOrNe$Outbound =
|
|
3392
|
-
ne: string | number | boolean;
|
|
3393
|
-
};
|
|
3183
|
+
export type DeploymentGetConfigOrNe$Outbound = string | number | boolean;
|
|
3394
3184
|
|
|
3395
3185
|
/** @internal */
|
|
3396
3186
|
export const DeploymentGetConfigOrNe$outboundSchema: z.ZodType<
|
|
3397
3187
|
DeploymentGetConfigOrNe$Outbound,
|
|
3398
3188
|
z.ZodTypeDef,
|
|
3399
3189
|
DeploymentGetConfigOrNe
|
|
3400
|
-
> = z.
|
|
3401
|
-
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
3402
|
-
});
|
|
3190
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3403
3191
|
|
|
3404
3192
|
export function deploymentGetConfigOrNeToJSON(
|
|
3405
3193
|
deploymentGetConfigOrNe: DeploymentGetConfigOrNe,
|
|
@@ -3410,41 +3198,29 @@ export function deploymentGetConfigOrNeToJSON(
|
|
|
3410
3198
|
}
|
|
3411
3199
|
|
|
3412
3200
|
/** @internal */
|
|
3413
|
-
export type
|
|
3414
|
-
|
|
|
3415
|
-
|
|
3416
|
-
| boolean;
|
|
3201
|
+
export type OrNe$Outbound = {
|
|
3202
|
+
ne: string | number | boolean;
|
|
3203
|
+
};
|
|
3417
3204
|
|
|
3418
3205
|
/** @internal */
|
|
3419
|
-
export const
|
|
3420
|
-
|
|
3421
|
-
|
|
3422
|
-
|
|
3423
|
-
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3206
|
+
export const OrNe$outboundSchema: z.ZodType<OrNe$Outbound, z.ZodTypeDef, OrNe> =
|
|
3207
|
+
z.object({
|
|
3208
|
+
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
3209
|
+
});
|
|
3424
3210
|
|
|
3425
|
-
export function
|
|
3426
|
-
|
|
3427
|
-
): string {
|
|
3428
|
-
return JSON.stringify(
|
|
3429
|
-
DeploymentGetConfigOrDeploymentsEq$outboundSchema.parse(
|
|
3430
|
-
deploymentGetConfigOrDeploymentsEq,
|
|
3431
|
-
),
|
|
3432
|
-
);
|
|
3211
|
+
export function orNeToJSON(orNe: OrNe): string {
|
|
3212
|
+
return JSON.stringify(OrNe$outboundSchema.parse(orNe));
|
|
3433
3213
|
}
|
|
3434
3214
|
|
|
3435
3215
|
/** @internal */
|
|
3436
|
-
export type DeploymentGetConfigOrEq$Outbound =
|
|
3437
|
-
eq: string | number | boolean;
|
|
3438
|
-
};
|
|
3216
|
+
export type DeploymentGetConfigOrEq$Outbound = string | number | boolean;
|
|
3439
3217
|
|
|
3440
3218
|
/** @internal */
|
|
3441
3219
|
export const DeploymentGetConfigOrEq$outboundSchema: z.ZodType<
|
|
3442
3220
|
DeploymentGetConfigOrEq$Outbound,
|
|
3443
3221
|
z.ZodTypeDef,
|
|
3444
3222
|
DeploymentGetConfigOrEq
|
|
3445
|
-
> = z.
|
|
3446
|
-
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
3447
|
-
});
|
|
3223
|
+
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3448
3224
|
|
|
3449
3225
|
export function deploymentGetConfigOrEqToJSON(
|
|
3450
3226
|
deploymentGetConfigOrEq: DeploymentGetConfigOrEq,
|
|
@@ -3455,836 +3231,682 @@ export function deploymentGetConfigOrEqToJSON(
|
|
|
3455
3231
|
}
|
|
3456
3232
|
|
|
3457
3233
|
/** @internal */
|
|
3458
|
-
export type
|
|
3459
|
-
|
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3234
|
+
export type OrEq$Outbound = {
|
|
3235
|
+
eq: string | number | boolean;
|
|
3236
|
+
};
|
|
3237
|
+
|
|
3238
|
+
/** @internal */
|
|
3239
|
+
export const OrEq$outboundSchema: z.ZodType<OrEq$Outbound, z.ZodTypeDef, OrEq> =
|
|
3240
|
+
z.object({
|
|
3241
|
+
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
3242
|
+
});
|
|
3243
|
+
|
|
3244
|
+
export function orEqToJSON(orEq: OrEq): string {
|
|
3245
|
+
return JSON.stringify(OrEq$outboundSchema.parse(orEq));
|
|
3246
|
+
}
|
|
3247
|
+
|
|
3248
|
+
/** @internal */
|
|
3249
|
+
export type KnowledgeFilterOr$Outbound =
|
|
3250
|
+
| OrEq$Outbound
|
|
3251
|
+
| OrNe$Outbound
|
|
3252
|
+
| OrGt$Outbound
|
|
3253
|
+
| OrGte$Outbound
|
|
3254
|
+
| OrLt$Outbound
|
|
3255
|
+
| OrLte$Outbound
|
|
3256
|
+
| OrIn$Outbound
|
|
3257
|
+
| OrNin$Outbound
|
|
3258
|
+
| OrExists$Outbound;
|
|
3468
3259
|
|
|
3469
3260
|
/** @internal */
|
|
3470
|
-
export const
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
|
|
3474
|
-
|
|
3475
|
-
|
|
3476
|
-
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
]);
|
|
3261
|
+
export const KnowledgeFilterOr$outboundSchema: z.ZodType<
|
|
3262
|
+
KnowledgeFilterOr$Outbound,
|
|
3263
|
+
z.ZodTypeDef,
|
|
3264
|
+
KnowledgeFilterOr
|
|
3265
|
+
> = z.union([
|
|
3266
|
+
z.lazy(() => OrEq$outboundSchema),
|
|
3267
|
+
z.lazy(() => OrNe$outboundSchema),
|
|
3268
|
+
z.lazy(() => OrGt$outboundSchema),
|
|
3269
|
+
z.lazy(() => OrGte$outboundSchema),
|
|
3270
|
+
z.lazy(() => OrLt$outboundSchema),
|
|
3271
|
+
z.lazy(() => OrLte$outboundSchema),
|
|
3272
|
+
z.lazy(() => OrIn$outboundSchema),
|
|
3273
|
+
z.lazy(() => OrNin$outboundSchema),
|
|
3274
|
+
z.lazy(() => OrExists$outboundSchema),
|
|
3275
|
+
]);
|
|
3486
3276
|
|
|
3487
|
-
export function
|
|
3488
|
-
|
|
3489
|
-
DeploymentGetConfigKnowledgeFilterDeploymentsOr,
|
|
3277
|
+
export function knowledgeFilterOrToJSON(
|
|
3278
|
+
knowledgeFilterOr: KnowledgeFilterOr,
|
|
3490
3279
|
): string {
|
|
3491
3280
|
return JSON.stringify(
|
|
3492
|
-
|
|
3493
|
-
deploymentGetConfigKnowledgeFilterDeploymentsOr,
|
|
3494
|
-
),
|
|
3281
|
+
KnowledgeFilterOr$outboundSchema.parse(knowledgeFilterOr),
|
|
3495
3282
|
);
|
|
3496
3283
|
}
|
|
3497
3284
|
|
|
3498
3285
|
/** @internal */
|
|
3499
|
-
export type
|
|
3286
|
+
export type Or$Outbound = {
|
|
3500
3287
|
or: Array<
|
|
3501
3288
|
{
|
|
3502
3289
|
[k: string]:
|
|
3503
|
-
|
|
|
3504
|
-
|
|
|
3505
|
-
|
|
|
3506
|
-
|
|
|
3507
|
-
|
|
|
3508
|
-
|
|
|
3509
|
-
|
|
|
3510
|
-
|
|
|
3511
|
-
|
|
|
3290
|
+
| OrEq$Outbound
|
|
3291
|
+
| OrNe$Outbound
|
|
3292
|
+
| OrGt$Outbound
|
|
3293
|
+
| OrGte$Outbound
|
|
3294
|
+
| OrLt$Outbound
|
|
3295
|
+
| OrLte$Outbound
|
|
3296
|
+
| OrIn$Outbound
|
|
3297
|
+
| OrNin$Outbound
|
|
3298
|
+
| OrExists$Outbound;
|
|
3512
3299
|
}
|
|
3513
3300
|
>;
|
|
3514
3301
|
};
|
|
3515
3302
|
|
|
3516
3303
|
/** @internal */
|
|
3517
|
-
export const
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
z.lazy(() => DeploymentGetConfigOrNin$outboundSchema),
|
|
3534
|
-
z.lazy(() => DeploymentGetConfigOrExists$outboundSchema),
|
|
3535
|
-
])),
|
|
3536
|
-
),
|
|
3537
|
-
});
|
|
3538
|
-
|
|
3539
|
-
export function deploymentGetConfigKnowledgeFilterOrToJSON(
|
|
3540
|
-
deploymentGetConfigKnowledgeFilterOr: DeploymentGetConfigKnowledgeFilterOr,
|
|
3541
|
-
): string {
|
|
3542
|
-
return JSON.stringify(
|
|
3543
|
-
DeploymentGetConfigKnowledgeFilterOr$outboundSchema.parse(
|
|
3544
|
-
deploymentGetConfigKnowledgeFilterOr,
|
|
3304
|
+
export const Or$outboundSchema: z.ZodType<Or$Outbound, z.ZodTypeDef, Or> = z
|
|
3305
|
+
.object({
|
|
3306
|
+
or: z.array(
|
|
3307
|
+
z.record(z.union([
|
|
3308
|
+
z.lazy(() => OrEq$outboundSchema),
|
|
3309
|
+
z.lazy(() =>
|
|
3310
|
+
OrNe$outboundSchema
|
|
3311
|
+
),
|
|
3312
|
+
z.lazy(() => OrGt$outboundSchema),
|
|
3313
|
+
z.lazy(() => OrGte$outboundSchema),
|
|
3314
|
+
z.lazy(() => OrLt$outboundSchema),
|
|
3315
|
+
z.lazy(() => OrLte$outboundSchema),
|
|
3316
|
+
z.lazy(() => OrIn$outboundSchema),
|
|
3317
|
+
z.lazy(() => OrNin$outboundSchema),
|
|
3318
|
+
z.lazy(() => OrExists$outboundSchema),
|
|
3319
|
+
])),
|
|
3545
3320
|
),
|
|
3546
|
-
);
|
|
3321
|
+
});
|
|
3322
|
+
|
|
3323
|
+
export function orToJSON(or: Or): string {
|
|
3324
|
+
return JSON.stringify(Or$outboundSchema.parse(or));
|
|
3547
3325
|
}
|
|
3548
3326
|
|
|
3549
3327
|
/** @internal */
|
|
3550
|
-
export type
|
|
3328
|
+
export type AndExists$Outbound = {
|
|
3551
3329
|
exists: boolean;
|
|
3552
3330
|
};
|
|
3553
3331
|
|
|
3554
3332
|
/** @internal */
|
|
3555
|
-
export const
|
|
3556
|
-
|
|
3333
|
+
export const AndExists$outboundSchema: z.ZodType<
|
|
3334
|
+
AndExists$Outbound,
|
|
3557
3335
|
z.ZodTypeDef,
|
|
3558
|
-
|
|
3336
|
+
AndExists
|
|
3559
3337
|
> = z.object({
|
|
3560
3338
|
exists: z.boolean(),
|
|
3561
3339
|
});
|
|
3562
3340
|
|
|
3563
|
-
export function
|
|
3564
|
-
|
|
3565
|
-
): string {
|
|
3566
|
-
return JSON.stringify(
|
|
3567
|
-
DeploymentGetConfigAndExists$outboundSchema.parse(
|
|
3568
|
-
deploymentGetConfigAndExists,
|
|
3569
|
-
),
|
|
3570
|
-
);
|
|
3341
|
+
export function andExistsToJSON(andExists: AndExists): string {
|
|
3342
|
+
return JSON.stringify(AndExists$outboundSchema.parse(andExists));
|
|
3571
3343
|
}
|
|
3572
3344
|
|
|
3573
3345
|
/** @internal */
|
|
3574
|
-
export type
|
|
3575
|
-
| string
|
|
3576
|
-
| number
|
|
3577
|
-
| boolean;
|
|
3346
|
+
export type DeploymentGetConfigAndNin$Outbound = string | number | boolean;
|
|
3578
3347
|
|
|
3579
3348
|
/** @internal */
|
|
3580
|
-
export const
|
|
3581
|
-
|
|
3349
|
+
export const DeploymentGetConfigAndNin$outboundSchema: z.ZodType<
|
|
3350
|
+
DeploymentGetConfigAndNin$Outbound,
|
|
3582
3351
|
z.ZodTypeDef,
|
|
3583
|
-
|
|
3352
|
+
DeploymentGetConfigAndNin
|
|
3584
3353
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3585
3354
|
|
|
3586
|
-
export function
|
|
3587
|
-
|
|
3355
|
+
export function deploymentGetConfigAndNinToJSON(
|
|
3356
|
+
deploymentGetConfigAndNin: DeploymentGetConfigAndNin,
|
|
3588
3357
|
): string {
|
|
3589
3358
|
return JSON.stringify(
|
|
3590
|
-
|
|
3591
|
-
deploymentGetConfigAndDeploymentsNin,
|
|
3592
|
-
),
|
|
3359
|
+
DeploymentGetConfigAndNin$outboundSchema.parse(deploymentGetConfigAndNin),
|
|
3593
3360
|
);
|
|
3594
3361
|
}
|
|
3595
3362
|
|
|
3596
3363
|
/** @internal */
|
|
3597
|
-
export type
|
|
3364
|
+
export type AndNin$Outbound = {
|
|
3598
3365
|
nin: Array<string | number | boolean>;
|
|
3599
3366
|
};
|
|
3600
3367
|
|
|
3601
3368
|
/** @internal */
|
|
3602
|
-
export const
|
|
3603
|
-
|
|
3369
|
+
export const AndNin$outboundSchema: z.ZodType<
|
|
3370
|
+
AndNin$Outbound,
|
|
3604
3371
|
z.ZodTypeDef,
|
|
3605
|
-
|
|
3372
|
+
AndNin
|
|
3606
3373
|
> = z.object({
|
|
3607
3374
|
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3608
3375
|
});
|
|
3609
3376
|
|
|
3610
|
-
export function
|
|
3611
|
-
|
|
3612
|
-
): string {
|
|
3613
|
-
return JSON.stringify(
|
|
3614
|
-
DeploymentGetConfigAndNin$outboundSchema.parse(deploymentGetConfigAndNin),
|
|
3615
|
-
);
|
|
3377
|
+
export function andNinToJSON(andNin: AndNin): string {
|
|
3378
|
+
return JSON.stringify(AndNin$outboundSchema.parse(andNin));
|
|
3616
3379
|
}
|
|
3617
3380
|
|
|
3618
3381
|
/** @internal */
|
|
3619
|
-
export type
|
|
3620
|
-
| string
|
|
3621
|
-
| number
|
|
3622
|
-
| boolean;
|
|
3382
|
+
export type DeploymentGetConfigAndIn$Outbound = string | number | boolean;
|
|
3623
3383
|
|
|
3624
3384
|
/** @internal */
|
|
3625
|
-
export const
|
|
3626
|
-
|
|
3385
|
+
export const DeploymentGetConfigAndIn$outboundSchema: z.ZodType<
|
|
3386
|
+
DeploymentGetConfigAndIn$Outbound,
|
|
3627
3387
|
z.ZodTypeDef,
|
|
3628
|
-
|
|
3388
|
+
DeploymentGetConfigAndIn
|
|
3629
3389
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3630
3390
|
|
|
3631
|
-
export function
|
|
3632
|
-
|
|
3391
|
+
export function deploymentGetConfigAndInToJSON(
|
|
3392
|
+
deploymentGetConfigAndIn: DeploymentGetConfigAndIn,
|
|
3633
3393
|
): string {
|
|
3634
3394
|
return JSON.stringify(
|
|
3635
|
-
|
|
3636
|
-
deploymentGetConfigAndDeploymentsIn,
|
|
3637
|
-
),
|
|
3395
|
+
DeploymentGetConfigAndIn$outboundSchema.parse(deploymentGetConfigAndIn),
|
|
3638
3396
|
);
|
|
3639
3397
|
}
|
|
3640
3398
|
|
|
3641
3399
|
/** @internal */
|
|
3642
|
-
export type
|
|
3400
|
+
export type AndIn$Outbound = {
|
|
3643
3401
|
in: Array<string | number | boolean>;
|
|
3644
3402
|
};
|
|
3645
3403
|
|
|
3646
3404
|
/** @internal */
|
|
3647
|
-
export const
|
|
3648
|
-
|
|
3405
|
+
export const AndIn$outboundSchema: z.ZodType<
|
|
3406
|
+
AndIn$Outbound,
|
|
3649
3407
|
z.ZodTypeDef,
|
|
3650
|
-
|
|
3408
|
+
AndIn
|
|
3651
3409
|
> = z.object({
|
|
3652
3410
|
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3653
3411
|
});
|
|
3654
3412
|
|
|
3655
|
-
export function
|
|
3656
|
-
|
|
3657
|
-
): string {
|
|
3658
|
-
return JSON.stringify(
|
|
3659
|
-
DeploymentGetConfigAndIn$outboundSchema.parse(deploymentGetConfigAndIn),
|
|
3660
|
-
);
|
|
3413
|
+
export function andInToJSON(andIn: AndIn): string {
|
|
3414
|
+
return JSON.stringify(AndIn$outboundSchema.parse(andIn));
|
|
3661
3415
|
}
|
|
3662
3416
|
|
|
3663
3417
|
/** @internal */
|
|
3664
|
-
export type
|
|
3418
|
+
export type AndLte$Outbound = {
|
|
3665
3419
|
lte: number;
|
|
3666
3420
|
};
|
|
3667
3421
|
|
|
3668
3422
|
/** @internal */
|
|
3669
|
-
export const
|
|
3670
|
-
|
|
3423
|
+
export const AndLte$outboundSchema: z.ZodType<
|
|
3424
|
+
AndLte$Outbound,
|
|
3671
3425
|
z.ZodTypeDef,
|
|
3672
|
-
|
|
3426
|
+
AndLte
|
|
3673
3427
|
> = z.object({
|
|
3674
3428
|
lte: z.number(),
|
|
3675
3429
|
});
|
|
3676
3430
|
|
|
3677
|
-
export function
|
|
3678
|
-
|
|
3679
|
-
): string {
|
|
3680
|
-
return JSON.stringify(
|
|
3681
|
-
DeploymentGetConfigAndLte$outboundSchema.parse(deploymentGetConfigAndLte),
|
|
3682
|
-
);
|
|
3431
|
+
export function andLteToJSON(andLte: AndLte): string {
|
|
3432
|
+
return JSON.stringify(AndLte$outboundSchema.parse(andLte));
|
|
3683
3433
|
}
|
|
3684
3434
|
|
|
3685
3435
|
/** @internal */
|
|
3686
|
-
export type
|
|
3436
|
+
export type AndLt$Outbound = {
|
|
3687
3437
|
lt: number;
|
|
3688
3438
|
};
|
|
3689
3439
|
|
|
3690
3440
|
/** @internal */
|
|
3691
|
-
export const
|
|
3692
|
-
|
|
3441
|
+
export const AndLt$outboundSchema: z.ZodType<
|
|
3442
|
+
AndLt$Outbound,
|
|
3693
3443
|
z.ZodTypeDef,
|
|
3694
|
-
|
|
3444
|
+
AndLt
|
|
3695
3445
|
> = z.object({
|
|
3696
3446
|
lt: z.number(),
|
|
3697
3447
|
});
|
|
3698
3448
|
|
|
3699
|
-
export function
|
|
3700
|
-
|
|
3701
|
-
): string {
|
|
3702
|
-
return JSON.stringify(
|
|
3703
|
-
DeploymentGetConfigAndLt$outboundSchema.parse(deploymentGetConfigAndLt),
|
|
3704
|
-
);
|
|
3449
|
+
export function andLtToJSON(andLt: AndLt): string {
|
|
3450
|
+
return JSON.stringify(AndLt$outboundSchema.parse(andLt));
|
|
3705
3451
|
}
|
|
3706
3452
|
|
|
3707
3453
|
/** @internal */
|
|
3708
|
-
export type
|
|
3454
|
+
export type AndGte$Outbound = {
|
|
3709
3455
|
gte: number;
|
|
3710
3456
|
};
|
|
3711
3457
|
|
|
3712
3458
|
/** @internal */
|
|
3713
|
-
export const
|
|
3714
|
-
|
|
3459
|
+
export const AndGte$outboundSchema: z.ZodType<
|
|
3460
|
+
AndGte$Outbound,
|
|
3715
3461
|
z.ZodTypeDef,
|
|
3716
|
-
|
|
3462
|
+
AndGte
|
|
3717
3463
|
> = z.object({
|
|
3718
3464
|
gte: z.number(),
|
|
3719
3465
|
});
|
|
3720
3466
|
|
|
3721
|
-
export function
|
|
3722
|
-
|
|
3723
|
-
): string {
|
|
3724
|
-
return JSON.stringify(
|
|
3725
|
-
DeploymentGetConfigAndGte$outboundSchema.parse(deploymentGetConfigAndGte),
|
|
3726
|
-
);
|
|
3467
|
+
export function andGteToJSON(andGte: AndGte): string {
|
|
3468
|
+
return JSON.stringify(AndGte$outboundSchema.parse(andGte));
|
|
3727
3469
|
}
|
|
3728
3470
|
|
|
3729
3471
|
/** @internal */
|
|
3730
|
-
export type
|
|
3472
|
+
export type AndGt$Outbound = {
|
|
3731
3473
|
gt: number;
|
|
3732
3474
|
};
|
|
3733
3475
|
|
|
3734
3476
|
/** @internal */
|
|
3735
|
-
export const
|
|
3736
|
-
|
|
3477
|
+
export const AndGt$outboundSchema: z.ZodType<
|
|
3478
|
+
AndGt$Outbound,
|
|
3737
3479
|
z.ZodTypeDef,
|
|
3738
|
-
|
|
3480
|
+
AndGt
|
|
3739
3481
|
> = z.object({
|
|
3740
3482
|
gt: z.number(),
|
|
3741
3483
|
});
|
|
3742
3484
|
|
|
3743
|
-
export function
|
|
3744
|
-
|
|
3745
|
-
): string {
|
|
3746
|
-
return JSON.stringify(
|
|
3747
|
-
DeploymentGetConfigAndGt$outboundSchema.parse(deploymentGetConfigAndGt),
|
|
3748
|
-
);
|
|
3485
|
+
export function andGtToJSON(andGt: AndGt): string {
|
|
3486
|
+
return JSON.stringify(AndGt$outboundSchema.parse(andGt));
|
|
3749
3487
|
}
|
|
3750
3488
|
|
|
3751
3489
|
/** @internal */
|
|
3752
|
-
export type
|
|
3753
|
-
| string
|
|
3754
|
-
| number
|
|
3755
|
-
| boolean;
|
|
3490
|
+
export type DeploymentGetConfigAndNe$Outbound = string | number | boolean;
|
|
3756
3491
|
|
|
3757
3492
|
/** @internal */
|
|
3758
|
-
export const
|
|
3759
|
-
|
|
3493
|
+
export const DeploymentGetConfigAndNe$outboundSchema: z.ZodType<
|
|
3494
|
+
DeploymentGetConfigAndNe$Outbound,
|
|
3760
3495
|
z.ZodTypeDef,
|
|
3761
|
-
|
|
3496
|
+
DeploymentGetConfigAndNe
|
|
3762
3497
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3763
3498
|
|
|
3764
|
-
export function
|
|
3765
|
-
|
|
3499
|
+
export function deploymentGetConfigAndNeToJSON(
|
|
3500
|
+
deploymentGetConfigAndNe: DeploymentGetConfigAndNe,
|
|
3766
3501
|
): string {
|
|
3767
3502
|
return JSON.stringify(
|
|
3768
|
-
|
|
3769
|
-
deploymentGetConfigAndDeploymentsNe,
|
|
3770
|
-
),
|
|
3503
|
+
DeploymentGetConfigAndNe$outboundSchema.parse(deploymentGetConfigAndNe),
|
|
3771
3504
|
);
|
|
3772
3505
|
}
|
|
3773
3506
|
|
|
3774
3507
|
/** @internal */
|
|
3775
|
-
export type
|
|
3508
|
+
export type AndNe$Outbound = {
|
|
3776
3509
|
ne: string | number | boolean;
|
|
3777
3510
|
};
|
|
3778
3511
|
|
|
3779
3512
|
/** @internal */
|
|
3780
|
-
export const
|
|
3781
|
-
|
|
3513
|
+
export const AndNe$outboundSchema: z.ZodType<
|
|
3514
|
+
AndNe$Outbound,
|
|
3782
3515
|
z.ZodTypeDef,
|
|
3783
|
-
|
|
3516
|
+
AndNe
|
|
3784
3517
|
> = z.object({
|
|
3785
3518
|
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
3786
3519
|
});
|
|
3787
3520
|
|
|
3788
|
-
export function
|
|
3789
|
-
|
|
3790
|
-
): string {
|
|
3791
|
-
return JSON.stringify(
|
|
3792
|
-
DeploymentGetConfigAndNe$outboundSchema.parse(deploymentGetConfigAndNe),
|
|
3793
|
-
);
|
|
3521
|
+
export function andNeToJSON(andNe: AndNe): string {
|
|
3522
|
+
return JSON.stringify(AndNe$outboundSchema.parse(andNe));
|
|
3794
3523
|
}
|
|
3795
3524
|
|
|
3796
3525
|
/** @internal */
|
|
3797
|
-
export type
|
|
3798
|
-
| string
|
|
3799
|
-
| number
|
|
3800
|
-
| boolean;
|
|
3526
|
+
export type DeploymentGetConfigAndEq$Outbound = string | number | boolean;
|
|
3801
3527
|
|
|
3802
3528
|
/** @internal */
|
|
3803
|
-
export const
|
|
3804
|
-
|
|
3529
|
+
export const DeploymentGetConfigAndEq$outboundSchema: z.ZodType<
|
|
3530
|
+
DeploymentGetConfigAndEq$Outbound,
|
|
3805
3531
|
z.ZodTypeDef,
|
|
3806
|
-
|
|
3532
|
+
DeploymentGetConfigAndEq
|
|
3807
3533
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3808
3534
|
|
|
3809
|
-
export function
|
|
3810
|
-
|
|
3535
|
+
export function deploymentGetConfigAndEqToJSON(
|
|
3536
|
+
deploymentGetConfigAndEq: DeploymentGetConfigAndEq,
|
|
3811
3537
|
): string {
|
|
3812
3538
|
return JSON.stringify(
|
|
3813
|
-
|
|
3814
|
-
deploymentGetConfigAndDeploymentsEq,
|
|
3815
|
-
),
|
|
3539
|
+
DeploymentGetConfigAndEq$outboundSchema.parse(deploymentGetConfigAndEq),
|
|
3816
3540
|
);
|
|
3817
3541
|
}
|
|
3818
3542
|
|
|
3819
3543
|
/** @internal */
|
|
3820
|
-
export type
|
|
3544
|
+
export type AndEq$Outbound = {
|
|
3821
3545
|
eq: string | number | boolean;
|
|
3822
3546
|
};
|
|
3823
3547
|
|
|
3824
3548
|
/** @internal */
|
|
3825
|
-
export const
|
|
3826
|
-
|
|
3549
|
+
export const AndEq$outboundSchema: z.ZodType<
|
|
3550
|
+
AndEq$Outbound,
|
|
3827
3551
|
z.ZodTypeDef,
|
|
3828
|
-
|
|
3552
|
+
AndEq
|
|
3829
3553
|
> = z.object({
|
|
3830
3554
|
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
3831
3555
|
});
|
|
3832
3556
|
|
|
3833
|
-
export function
|
|
3834
|
-
|
|
3835
|
-
): string {
|
|
3836
|
-
return JSON.stringify(
|
|
3837
|
-
DeploymentGetConfigAndEq$outboundSchema.parse(deploymentGetConfigAndEq),
|
|
3838
|
-
);
|
|
3557
|
+
export function andEqToJSON(andEq: AndEq): string {
|
|
3558
|
+
return JSON.stringify(AndEq$outboundSchema.parse(andEq));
|
|
3839
3559
|
}
|
|
3840
3560
|
|
|
3841
3561
|
/** @internal */
|
|
3842
|
-
export type
|
|
3843
|
-
|
|
|
3844
|
-
|
|
|
3845
|
-
|
|
|
3846
|
-
|
|
|
3847
|
-
|
|
|
3848
|
-
|
|
|
3849
|
-
|
|
|
3850
|
-
|
|
|
3851
|
-
|
|
|
3562
|
+
export type KnowledgeFilterAnd$Outbound =
|
|
3563
|
+
| AndEq$Outbound
|
|
3564
|
+
| AndNe$Outbound
|
|
3565
|
+
| AndGt$Outbound
|
|
3566
|
+
| AndGte$Outbound
|
|
3567
|
+
| AndLt$Outbound
|
|
3568
|
+
| AndLte$Outbound
|
|
3569
|
+
| AndIn$Outbound
|
|
3570
|
+
| AndNin$Outbound
|
|
3571
|
+
| AndExists$Outbound;
|
|
3852
3572
|
|
|
3853
3573
|
/** @internal */
|
|
3854
|
-
export const
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3864
|
-
|
|
3865
|
-
|
|
3866
|
-
|
|
3867
|
-
|
|
3868
|
-
|
|
3869
|
-
]);
|
|
3574
|
+
export const KnowledgeFilterAnd$outboundSchema: z.ZodType<
|
|
3575
|
+
KnowledgeFilterAnd$Outbound,
|
|
3576
|
+
z.ZodTypeDef,
|
|
3577
|
+
KnowledgeFilterAnd
|
|
3578
|
+
> = z.union([
|
|
3579
|
+
z.lazy(() => AndEq$outboundSchema),
|
|
3580
|
+
z.lazy(() => AndNe$outboundSchema),
|
|
3581
|
+
z.lazy(() => AndGt$outboundSchema),
|
|
3582
|
+
z.lazy(() => AndGte$outboundSchema),
|
|
3583
|
+
z.lazy(() => AndLt$outboundSchema),
|
|
3584
|
+
z.lazy(() => AndLte$outboundSchema),
|
|
3585
|
+
z.lazy(() => AndIn$outboundSchema),
|
|
3586
|
+
z.lazy(() => AndNin$outboundSchema),
|
|
3587
|
+
z.lazy(() => AndExists$outboundSchema),
|
|
3588
|
+
]);
|
|
3870
3589
|
|
|
3871
|
-
export function
|
|
3872
|
-
|
|
3873
|
-
DeploymentGetConfigKnowledgeFilterDeploymentsAnd,
|
|
3590
|
+
export function knowledgeFilterAndToJSON(
|
|
3591
|
+
knowledgeFilterAnd: KnowledgeFilterAnd,
|
|
3874
3592
|
): string {
|
|
3875
3593
|
return JSON.stringify(
|
|
3876
|
-
|
|
3877
|
-
deploymentGetConfigKnowledgeFilterDeploymentsAnd,
|
|
3878
|
-
),
|
|
3594
|
+
KnowledgeFilterAnd$outboundSchema.parse(knowledgeFilterAnd),
|
|
3879
3595
|
);
|
|
3880
3596
|
}
|
|
3881
3597
|
|
|
3882
3598
|
/** @internal */
|
|
3883
|
-
export type
|
|
3599
|
+
export type And$Outbound = {
|
|
3884
3600
|
and: Array<
|
|
3885
3601
|
{
|
|
3886
3602
|
[k: string]:
|
|
3887
|
-
|
|
|
3888
|
-
|
|
|
3889
|
-
|
|
|
3890
|
-
|
|
|
3891
|
-
|
|
|
3892
|
-
|
|
|
3893
|
-
|
|
|
3894
|
-
|
|
|
3895
|
-
|
|
|
3603
|
+
| AndEq$Outbound
|
|
3604
|
+
| AndNe$Outbound
|
|
3605
|
+
| AndGt$Outbound
|
|
3606
|
+
| AndGte$Outbound
|
|
3607
|
+
| AndLt$Outbound
|
|
3608
|
+
| AndLte$Outbound
|
|
3609
|
+
| AndIn$Outbound
|
|
3610
|
+
| AndNin$Outbound
|
|
3611
|
+
| AndExists$Outbound;
|
|
3896
3612
|
}
|
|
3897
3613
|
>;
|
|
3898
3614
|
};
|
|
3899
3615
|
|
|
3900
3616
|
/** @internal */
|
|
3901
|
-
export const
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
z.lazy(() => DeploymentGetConfigAndNin$outboundSchema),
|
|
3918
|
-
z.lazy(() => DeploymentGetConfigAndExists$outboundSchema),
|
|
3919
|
-
])),
|
|
3920
|
-
),
|
|
3921
|
-
});
|
|
3922
|
-
|
|
3923
|
-
export function deploymentGetConfigKnowledgeFilterAndToJSON(
|
|
3924
|
-
deploymentGetConfigKnowledgeFilterAnd: DeploymentGetConfigKnowledgeFilterAnd,
|
|
3925
|
-
): string {
|
|
3926
|
-
return JSON.stringify(
|
|
3927
|
-
DeploymentGetConfigKnowledgeFilterAnd$outboundSchema.parse(
|
|
3928
|
-
deploymentGetConfigKnowledgeFilterAnd,
|
|
3617
|
+
export const And$outboundSchema: z.ZodType<And$Outbound, z.ZodTypeDef, And> = z
|
|
3618
|
+
.object({
|
|
3619
|
+
and: z.array(
|
|
3620
|
+
z.record(z.union([
|
|
3621
|
+
z.lazy(() => AndEq$outboundSchema),
|
|
3622
|
+
z.lazy(() =>
|
|
3623
|
+
AndNe$outboundSchema
|
|
3624
|
+
),
|
|
3625
|
+
z.lazy(() => AndGt$outboundSchema),
|
|
3626
|
+
z.lazy(() => AndGte$outboundSchema),
|
|
3627
|
+
z.lazy(() => AndLt$outboundSchema),
|
|
3628
|
+
z.lazy(() => AndLte$outboundSchema),
|
|
3629
|
+
z.lazy(() => AndIn$outboundSchema),
|
|
3630
|
+
z.lazy(() => AndNin$outboundSchema),
|
|
3631
|
+
z.lazy(() => AndExists$outboundSchema),
|
|
3632
|
+
])),
|
|
3929
3633
|
),
|
|
3930
|
-
);
|
|
3634
|
+
});
|
|
3635
|
+
|
|
3636
|
+
export function andToJSON(and: And): string {
|
|
3637
|
+
return JSON.stringify(And$outboundSchema.parse(and));
|
|
3931
3638
|
}
|
|
3932
3639
|
|
|
3933
3640
|
/** @internal */
|
|
3934
|
-
export type
|
|
3641
|
+
export type Exists$Outbound = {
|
|
3935
3642
|
exists: boolean;
|
|
3936
3643
|
};
|
|
3937
3644
|
|
|
3938
3645
|
/** @internal */
|
|
3939
|
-
export const
|
|
3940
|
-
|
|
3646
|
+
export const Exists$outboundSchema: z.ZodType<
|
|
3647
|
+
Exists$Outbound,
|
|
3941
3648
|
z.ZodTypeDef,
|
|
3942
|
-
|
|
3649
|
+
Exists
|
|
3943
3650
|
> = z.object({
|
|
3944
3651
|
exists: z.boolean(),
|
|
3945
3652
|
});
|
|
3946
3653
|
|
|
3947
|
-
export function
|
|
3948
|
-
return JSON.stringify(
|
|
3654
|
+
export function existsToJSON(exists: Exists): string {
|
|
3655
|
+
return JSON.stringify(Exists$outboundSchema.parse(exists));
|
|
3949
3656
|
}
|
|
3950
3657
|
|
|
3951
3658
|
/** @internal */
|
|
3952
|
-
export type
|
|
3953
|
-
| string
|
|
3954
|
-
| number
|
|
3955
|
-
| boolean;
|
|
3659
|
+
export type OneNin$Outbound = string | number | boolean;
|
|
3956
3660
|
|
|
3957
3661
|
/** @internal */
|
|
3958
|
-
export const
|
|
3959
|
-
|
|
3662
|
+
export const OneNin$outboundSchema: z.ZodType<
|
|
3663
|
+
OneNin$Outbound,
|
|
3960
3664
|
z.ZodTypeDef,
|
|
3961
|
-
|
|
3665
|
+
OneNin
|
|
3962
3666
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
3963
3667
|
|
|
3964
|
-
export function
|
|
3965
|
-
|
|
3966
|
-
): string {
|
|
3967
|
-
return JSON.stringify(
|
|
3968
|
-
DeploymentGetConfig1DeploymentsNin$outboundSchema.parse(
|
|
3969
|
-
deploymentGetConfig1DeploymentsNin,
|
|
3970
|
-
),
|
|
3971
|
-
);
|
|
3668
|
+
export function oneNinToJSON(oneNin: OneNin): string {
|
|
3669
|
+
return JSON.stringify(OneNin$outboundSchema.parse(oneNin));
|
|
3972
3670
|
}
|
|
3973
3671
|
|
|
3974
3672
|
/** @internal */
|
|
3975
|
-
export type
|
|
3673
|
+
export type Nin$Outbound = {
|
|
3976
3674
|
nin: Array<string | number | boolean>;
|
|
3977
3675
|
};
|
|
3978
3676
|
|
|
3979
3677
|
/** @internal */
|
|
3980
|
-
export const
|
|
3981
|
-
|
|
3982
|
-
|
|
3983
|
-
|
|
3984
|
-
> = z.object({
|
|
3985
|
-
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3986
|
-
});
|
|
3678
|
+
export const Nin$outboundSchema: z.ZodType<Nin$Outbound, z.ZodTypeDef, Nin> = z
|
|
3679
|
+
.object({
|
|
3680
|
+
nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3681
|
+
});
|
|
3987
3682
|
|
|
3988
|
-
export function
|
|
3989
|
-
|
|
3990
|
-
): string {
|
|
3991
|
-
return JSON.stringify(
|
|
3992
|
-
DeploymentGetConfig1Nin$outboundSchema.parse(deploymentGetConfig1Nin),
|
|
3993
|
-
);
|
|
3683
|
+
export function ninToJSON(nin: Nin): string {
|
|
3684
|
+
return JSON.stringify(Nin$outboundSchema.parse(nin));
|
|
3994
3685
|
}
|
|
3995
3686
|
|
|
3996
3687
|
/** @internal */
|
|
3997
|
-
export type
|
|
3998
|
-
| string
|
|
3999
|
-
| number
|
|
4000
|
-
| boolean;
|
|
3688
|
+
export type OneIn$Outbound = string | number | boolean;
|
|
4001
3689
|
|
|
4002
3690
|
/** @internal */
|
|
4003
|
-
export const
|
|
4004
|
-
|
|
3691
|
+
export const OneIn$outboundSchema: z.ZodType<
|
|
3692
|
+
OneIn$Outbound,
|
|
4005
3693
|
z.ZodTypeDef,
|
|
4006
|
-
|
|
3694
|
+
OneIn
|
|
4007
3695
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
4008
3696
|
|
|
4009
|
-
export function
|
|
4010
|
-
|
|
4011
|
-
): string {
|
|
4012
|
-
return JSON.stringify(
|
|
4013
|
-
DeploymentGetConfig1DeploymentsIn$outboundSchema.parse(
|
|
4014
|
-
deploymentGetConfig1DeploymentsIn,
|
|
4015
|
-
),
|
|
4016
|
-
);
|
|
3697
|
+
export function oneInToJSON(oneIn: OneIn): string {
|
|
3698
|
+
return JSON.stringify(OneIn$outboundSchema.parse(oneIn));
|
|
4017
3699
|
}
|
|
4018
3700
|
|
|
4019
3701
|
/** @internal */
|
|
4020
|
-
export type
|
|
3702
|
+
export type In$Outbound = {
|
|
4021
3703
|
in: Array<string | number | boolean>;
|
|
4022
3704
|
};
|
|
4023
3705
|
|
|
4024
3706
|
/** @internal */
|
|
4025
|
-
export const
|
|
4026
|
-
|
|
4027
|
-
|
|
4028
|
-
|
|
4029
|
-
> = z.object({
|
|
4030
|
-
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
4031
|
-
});
|
|
3707
|
+
export const In$outboundSchema: z.ZodType<In$Outbound, z.ZodTypeDef, In> = z
|
|
3708
|
+
.object({
|
|
3709
|
+
in: z.array(z.union([z.string(), z.number(), z.boolean()])),
|
|
3710
|
+
});
|
|
4032
3711
|
|
|
4033
|
-
export function
|
|
4034
|
-
|
|
4035
|
-
): string {
|
|
4036
|
-
return JSON.stringify(
|
|
4037
|
-
DeploymentGetConfig1In$outboundSchema.parse(deploymentGetConfig1In),
|
|
4038
|
-
);
|
|
3712
|
+
export function inToJSON(value: In): string {
|
|
3713
|
+
return JSON.stringify(In$outboundSchema.parse(value));
|
|
4039
3714
|
}
|
|
4040
3715
|
|
|
4041
3716
|
/** @internal */
|
|
4042
|
-
export type
|
|
3717
|
+
export type Lte$Outbound = {
|
|
4043
3718
|
lte: number;
|
|
4044
3719
|
};
|
|
4045
3720
|
|
|
4046
3721
|
/** @internal */
|
|
4047
|
-
export const
|
|
4048
|
-
|
|
4049
|
-
|
|
4050
|
-
|
|
4051
|
-
> = z.object({
|
|
4052
|
-
lte: z.number(),
|
|
4053
|
-
});
|
|
3722
|
+
export const Lte$outboundSchema: z.ZodType<Lte$Outbound, z.ZodTypeDef, Lte> = z
|
|
3723
|
+
.object({
|
|
3724
|
+
lte: z.number(),
|
|
3725
|
+
});
|
|
4054
3726
|
|
|
4055
|
-
export function
|
|
4056
|
-
return JSON.stringify(
|
|
3727
|
+
export function lteToJSON(lte: Lte): string {
|
|
3728
|
+
return JSON.stringify(Lte$outboundSchema.parse(lte));
|
|
4057
3729
|
}
|
|
4058
3730
|
|
|
4059
3731
|
/** @internal */
|
|
4060
|
-
export type
|
|
3732
|
+
export type Lt$Outbound = {
|
|
4061
3733
|
lt: number;
|
|
4062
3734
|
};
|
|
4063
3735
|
|
|
4064
3736
|
/** @internal */
|
|
4065
|
-
export const
|
|
4066
|
-
|
|
4067
|
-
|
|
4068
|
-
|
|
4069
|
-
> = z.object({
|
|
4070
|
-
lt: z.number(),
|
|
4071
|
-
});
|
|
3737
|
+
export const Lt$outboundSchema: z.ZodType<Lt$Outbound, z.ZodTypeDef, Lt> = z
|
|
3738
|
+
.object({
|
|
3739
|
+
lt: z.number(),
|
|
3740
|
+
});
|
|
4072
3741
|
|
|
4073
|
-
export function
|
|
4074
|
-
return JSON.stringify(
|
|
3742
|
+
export function ltToJSON(lt: Lt): string {
|
|
3743
|
+
return JSON.stringify(Lt$outboundSchema.parse(lt));
|
|
4075
3744
|
}
|
|
4076
3745
|
|
|
4077
3746
|
/** @internal */
|
|
4078
|
-
export type
|
|
3747
|
+
export type Gte$Outbound = {
|
|
4079
3748
|
gte: number;
|
|
4080
3749
|
};
|
|
4081
3750
|
|
|
4082
3751
|
/** @internal */
|
|
4083
|
-
export const
|
|
4084
|
-
|
|
4085
|
-
|
|
4086
|
-
|
|
4087
|
-
> = z.object({
|
|
4088
|
-
gte: z.number(),
|
|
4089
|
-
});
|
|
3752
|
+
export const Gte$outboundSchema: z.ZodType<Gte$Outbound, z.ZodTypeDef, Gte> = z
|
|
3753
|
+
.object({
|
|
3754
|
+
gte: z.number(),
|
|
3755
|
+
});
|
|
4090
3756
|
|
|
4091
|
-
export function
|
|
4092
|
-
return JSON.stringify(
|
|
3757
|
+
export function gteToJSON(gte: Gte): string {
|
|
3758
|
+
return JSON.stringify(Gte$outboundSchema.parse(gte));
|
|
4093
3759
|
}
|
|
4094
3760
|
|
|
4095
3761
|
/** @internal */
|
|
4096
|
-
export type
|
|
3762
|
+
export type Gt$Outbound = {
|
|
4097
3763
|
gt: number;
|
|
4098
3764
|
};
|
|
4099
3765
|
|
|
4100
3766
|
/** @internal */
|
|
4101
|
-
export const
|
|
4102
|
-
|
|
4103
|
-
|
|
4104
|
-
|
|
4105
|
-
> = z.object({
|
|
4106
|
-
gt: z.number(),
|
|
4107
|
-
});
|
|
3767
|
+
export const Gt$outboundSchema: z.ZodType<Gt$Outbound, z.ZodTypeDef, Gt> = z
|
|
3768
|
+
.object({
|
|
3769
|
+
gt: z.number(),
|
|
3770
|
+
});
|
|
4108
3771
|
|
|
4109
|
-
export function
|
|
4110
|
-
return JSON.stringify(
|
|
3772
|
+
export function gtToJSON(gt: Gt): string {
|
|
3773
|
+
return JSON.stringify(Gt$outboundSchema.parse(gt));
|
|
4111
3774
|
}
|
|
4112
3775
|
|
|
4113
3776
|
/** @internal */
|
|
4114
|
-
export type
|
|
4115
|
-
| string
|
|
4116
|
-
| number
|
|
4117
|
-
| boolean;
|
|
3777
|
+
export type OneNe$Outbound = string | number | boolean;
|
|
4118
3778
|
|
|
4119
3779
|
/** @internal */
|
|
4120
|
-
export const
|
|
4121
|
-
|
|
3780
|
+
export const OneNe$outboundSchema: z.ZodType<
|
|
3781
|
+
OneNe$Outbound,
|
|
4122
3782
|
z.ZodTypeDef,
|
|
4123
|
-
|
|
3783
|
+
OneNe
|
|
4124
3784
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
4125
3785
|
|
|
4126
|
-
export function
|
|
4127
|
-
|
|
4128
|
-
): string {
|
|
4129
|
-
return JSON.stringify(
|
|
4130
|
-
DeploymentGetConfig1DeploymentsNe$outboundSchema.parse(
|
|
4131
|
-
deploymentGetConfig1DeploymentsNe,
|
|
4132
|
-
),
|
|
4133
|
-
);
|
|
3786
|
+
export function oneNeToJSON(oneNe: OneNe): string {
|
|
3787
|
+
return JSON.stringify(OneNe$outboundSchema.parse(oneNe));
|
|
4134
3788
|
}
|
|
4135
3789
|
|
|
4136
3790
|
/** @internal */
|
|
4137
|
-
export type
|
|
3791
|
+
export type Ne$Outbound = {
|
|
4138
3792
|
ne: string | number | boolean;
|
|
4139
3793
|
};
|
|
4140
3794
|
|
|
4141
3795
|
/** @internal */
|
|
4142
|
-
export const
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
|
|
4146
|
-
> = z.object({
|
|
4147
|
-
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
4148
|
-
});
|
|
3796
|
+
export const Ne$outboundSchema: z.ZodType<Ne$Outbound, z.ZodTypeDef, Ne> = z
|
|
3797
|
+
.object({
|
|
3798
|
+
ne: z.union([z.string(), z.number(), z.boolean()]),
|
|
3799
|
+
});
|
|
4149
3800
|
|
|
4150
|
-
export function
|
|
4151
|
-
|
|
4152
|
-
): string {
|
|
4153
|
-
return JSON.stringify(
|
|
4154
|
-
DeploymentGetConfig1Ne$outboundSchema.parse(deploymentGetConfig1Ne),
|
|
4155
|
-
);
|
|
3801
|
+
export function neToJSON(ne: Ne): string {
|
|
3802
|
+
return JSON.stringify(Ne$outboundSchema.parse(ne));
|
|
4156
3803
|
}
|
|
4157
3804
|
|
|
4158
3805
|
/** @internal */
|
|
4159
|
-
export type
|
|
4160
|
-
| string
|
|
4161
|
-
| number
|
|
4162
|
-
| boolean;
|
|
3806
|
+
export type OneEq$Outbound = string | number | boolean;
|
|
4163
3807
|
|
|
4164
3808
|
/** @internal */
|
|
4165
|
-
export const
|
|
4166
|
-
|
|
3809
|
+
export const OneEq$outboundSchema: z.ZodType<
|
|
3810
|
+
OneEq$Outbound,
|
|
4167
3811
|
z.ZodTypeDef,
|
|
4168
|
-
|
|
3812
|
+
OneEq
|
|
4169
3813
|
> = z.union([z.string(), z.number(), z.boolean()]);
|
|
4170
3814
|
|
|
4171
|
-
export function
|
|
4172
|
-
|
|
4173
|
-
): string {
|
|
4174
|
-
return JSON.stringify(
|
|
4175
|
-
DeploymentGetConfig1DeploymentsEq$outboundSchema.parse(
|
|
4176
|
-
deploymentGetConfig1DeploymentsEq,
|
|
4177
|
-
),
|
|
4178
|
-
);
|
|
3815
|
+
export function oneEqToJSON(oneEq: OneEq): string {
|
|
3816
|
+
return JSON.stringify(OneEq$outboundSchema.parse(oneEq));
|
|
4179
3817
|
}
|
|
4180
3818
|
|
|
4181
3819
|
/** @internal */
|
|
4182
|
-
export type
|
|
3820
|
+
export type Eq$Outbound = {
|
|
4183
3821
|
eq: string | number | boolean;
|
|
4184
3822
|
};
|
|
4185
3823
|
|
|
4186
3824
|
/** @internal */
|
|
4187
|
-
export const
|
|
4188
|
-
|
|
4189
|
-
|
|
4190
|
-
|
|
4191
|
-
> = z.object({
|
|
4192
|
-
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
4193
|
-
});
|
|
3825
|
+
export const Eq$outboundSchema: z.ZodType<Eq$Outbound, z.ZodTypeDef, Eq> = z
|
|
3826
|
+
.object({
|
|
3827
|
+
eq: z.union([z.string(), z.number(), z.boolean()]),
|
|
3828
|
+
});
|
|
4194
3829
|
|
|
4195
|
-
export function
|
|
4196
|
-
|
|
4197
|
-
): string {
|
|
4198
|
-
return JSON.stringify(
|
|
4199
|
-
DeploymentGetConfig1Eq$outboundSchema.parse(deploymentGetConfig1Eq),
|
|
4200
|
-
);
|
|
3830
|
+
export function eqToJSON(eq: Eq): string {
|
|
3831
|
+
return JSON.stringify(Eq$outboundSchema.parse(eq));
|
|
4201
3832
|
}
|
|
4202
3833
|
|
|
4203
3834
|
/** @internal */
|
|
4204
|
-
export type
|
|
4205
|
-
|
|
|
4206
|
-
|
|
|
4207
|
-
|
|
|
4208
|
-
|
|
|
4209
|
-
|
|
|
4210
|
-
|
|
|
4211
|
-
|
|
|
4212
|
-
|
|
|
4213
|
-
|
|
|
3835
|
+
export type KnowledgeFilter1$Outbound =
|
|
3836
|
+
| Eq$Outbound
|
|
3837
|
+
| Ne$Outbound
|
|
3838
|
+
| Gt$Outbound
|
|
3839
|
+
| Gte$Outbound
|
|
3840
|
+
| Lt$Outbound
|
|
3841
|
+
| Lte$Outbound
|
|
3842
|
+
| In$Outbound
|
|
3843
|
+
| Nin$Outbound
|
|
3844
|
+
| Exists$Outbound;
|
|
4214
3845
|
|
|
4215
3846
|
/** @internal */
|
|
4216
|
-
export const
|
|
4217
|
-
|
|
3847
|
+
export const KnowledgeFilter1$outboundSchema: z.ZodType<
|
|
3848
|
+
KnowledgeFilter1$Outbound,
|
|
4218
3849
|
z.ZodTypeDef,
|
|
4219
|
-
|
|
3850
|
+
KnowledgeFilter1
|
|
4220
3851
|
> = z.union([
|
|
4221
|
-
z.lazy(() =>
|
|
4222
|
-
z.lazy(() =>
|
|
4223
|
-
z.lazy(() =>
|
|
4224
|
-
z.lazy(() =>
|
|
4225
|
-
z.lazy(() =>
|
|
4226
|
-
z.lazy(() =>
|
|
4227
|
-
z.lazy(() =>
|
|
4228
|
-
z.lazy(() =>
|
|
4229
|
-
z.lazy(() =>
|
|
3852
|
+
z.lazy(() => Eq$outboundSchema),
|
|
3853
|
+
z.lazy(() => Ne$outboundSchema),
|
|
3854
|
+
z.lazy(() => Gt$outboundSchema),
|
|
3855
|
+
z.lazy(() => Gte$outboundSchema),
|
|
3856
|
+
z.lazy(() => Lt$outboundSchema),
|
|
3857
|
+
z.lazy(() => Lte$outboundSchema),
|
|
3858
|
+
z.lazy(() => In$outboundSchema),
|
|
3859
|
+
z.lazy(() => Nin$outboundSchema),
|
|
3860
|
+
z.lazy(() => Exists$outboundSchema),
|
|
4230
3861
|
]);
|
|
4231
3862
|
|
|
4232
|
-
export function
|
|
4233
|
-
|
|
3863
|
+
export function knowledgeFilter1ToJSON(
|
|
3864
|
+
knowledgeFilter1: KnowledgeFilter1,
|
|
4234
3865
|
): string {
|
|
4235
3866
|
return JSON.stringify(
|
|
4236
|
-
|
|
4237
|
-
deploymentGetConfigKnowledgeFilter1,
|
|
4238
|
-
),
|
|
3867
|
+
KnowledgeFilter1$outboundSchema.parse(knowledgeFilter1),
|
|
4239
3868
|
);
|
|
4240
3869
|
}
|
|
4241
3870
|
|
|
4242
3871
|
/** @internal */
|
|
4243
|
-
export type
|
|
4244
|
-
|
|
4245
|
-
|
|
4246
|
-
|
|
4247
|
-
|
|
4248
|
-
|
|
4249
|
-
|
|
4250
|
-
|
|
4251
|
-
|
|
4252
|
-
|
|
4253
|
-
|
|
4254
|
-
|
|
4255
|
-
|
|
4256
|
-
|
|
4257
|
-
|
|
4258
|
-
|
|
4259
|
-
/** @internal */
|
|
4260
|
-
export const DeploymentGetConfigKnowledgeFilter$outboundSchema: z.ZodType<
|
|
4261
|
-
DeploymentGetConfigKnowledgeFilter$Outbound,
|
|
3872
|
+
export type KnowledgeFilter$Outbound = And$Outbound | Or$Outbound | {
|
|
3873
|
+
[k: string]:
|
|
3874
|
+
| Eq$Outbound
|
|
3875
|
+
| Ne$Outbound
|
|
3876
|
+
| Gt$Outbound
|
|
3877
|
+
| Gte$Outbound
|
|
3878
|
+
| Lt$Outbound
|
|
3879
|
+
| Lte$Outbound
|
|
3880
|
+
| In$Outbound
|
|
3881
|
+
| Nin$Outbound
|
|
3882
|
+
| Exists$Outbound;
|
|
3883
|
+
};
|
|
3884
|
+
|
|
3885
|
+
/** @internal */
|
|
3886
|
+
export const KnowledgeFilter$outboundSchema: z.ZodType<
|
|
3887
|
+
KnowledgeFilter$Outbound,
|
|
4262
3888
|
z.ZodTypeDef,
|
|
4263
|
-
|
|
3889
|
+
KnowledgeFilter
|
|
4264
3890
|
> = z.union([
|
|
4265
|
-
z.lazy(() =>
|
|
4266
|
-
z.lazy(() =>
|
|
3891
|
+
z.lazy(() => And$outboundSchema),
|
|
3892
|
+
z.lazy(() => Or$outboundSchema),
|
|
4267
3893
|
z.record(z.union([
|
|
4268
|
-
z.lazy(() =>
|
|
4269
|
-
z.lazy(() =>
|
|
4270
|
-
z.lazy(() =>
|
|
4271
|
-
z.lazy(() =>
|
|
4272
|
-
z.lazy(() =>
|
|
4273
|
-
z.lazy(() =>
|
|
4274
|
-
z.lazy(() =>
|
|
4275
|
-
z.lazy(() =>
|
|
4276
|
-
z.lazy(() =>
|
|
3894
|
+
z.lazy(() => Eq$outboundSchema),
|
|
3895
|
+
z.lazy(() => Ne$outboundSchema),
|
|
3896
|
+
z.lazy(() => Gt$outboundSchema),
|
|
3897
|
+
z.lazy(() => Gte$outboundSchema),
|
|
3898
|
+
z.lazy(() => Lt$outboundSchema),
|
|
3899
|
+
z.lazy(() => Lte$outboundSchema),
|
|
3900
|
+
z.lazy(() => In$outboundSchema),
|
|
3901
|
+
z.lazy(() => Nin$outboundSchema),
|
|
3902
|
+
z.lazy(() => Exists$outboundSchema),
|
|
4277
3903
|
])),
|
|
4278
3904
|
]);
|
|
4279
3905
|
|
|
4280
|
-
export function
|
|
4281
|
-
|
|
3906
|
+
export function knowledgeFilterToJSON(
|
|
3907
|
+
knowledgeFilter: KnowledgeFilter,
|
|
4282
3908
|
): string {
|
|
4283
|
-
return JSON.stringify(
|
|
4284
|
-
DeploymentGetConfigKnowledgeFilter$outboundSchema.parse(
|
|
4285
|
-
deploymentGetConfigKnowledgeFilter,
|
|
4286
|
-
),
|
|
4287
|
-
);
|
|
3909
|
+
return JSON.stringify(KnowledgeFilter$outboundSchema.parse(knowledgeFilter));
|
|
4288
3910
|
}
|
|
4289
3911
|
|
|
4290
3912
|
/** @internal */
|
|
@@ -4294,45 +3916,41 @@ export type DeploymentGetConfigRequestBody$Outbound = {
|
|
|
4294
3916
|
context?: { [k: string]: any } | undefined;
|
|
4295
3917
|
prefix_messages?:
|
|
4296
3918
|
| Array<
|
|
4297
|
-
|
|
|
4298
|
-
|
|
|
4299
|
-
|
|
|
4300
|
-
|
|
|
4301
|
-
|
|
|
3919
|
+
| SystemMessage$Outbound
|
|
3920
|
+
| DeveloperMessage$Outbound
|
|
3921
|
+
| UserMessage$Outbound
|
|
3922
|
+
| AssistantMessage$Outbound
|
|
3923
|
+
| ToolMessage$Outbound
|
|
4302
3924
|
>
|
|
4303
3925
|
| undefined;
|
|
4304
3926
|
messages?:
|
|
4305
3927
|
| Array<
|
|
4306
|
-
|
|
|
4307
|
-
|
|
|
4308
|
-
|
|
|
4309
|
-
|
|
|
4310
|
-
|
|
|
3928
|
+
| MessagesSystemMessage$Outbound
|
|
3929
|
+
| MessagesDeveloperMessage$Outbound
|
|
3930
|
+
| MessagesUserMessage$Outbound
|
|
3931
|
+
| MessagesAssistantMessage$Outbound
|
|
3932
|
+
| MessagesToolMessage$Outbound
|
|
4311
3933
|
>
|
|
4312
3934
|
| undefined;
|
|
4313
3935
|
identity?: components.PublicIdentity$Outbound | undefined;
|
|
4314
3936
|
file_ids?: Array<string> | undefined;
|
|
4315
3937
|
metadata?: { [k: string]: any } | undefined;
|
|
4316
3938
|
extra_params?: { [k: string]: any } | undefined;
|
|
4317
|
-
documents?: Array<
|
|
4318
|
-
invoke_options?:
|
|
4319
|
-
thread?:
|
|
4320
|
-
knowledge_filter?:
|
|
4321
|
-
|
|
4322
|
-
|
|
4323
|
-
|
|
4324
|
-
|
|
4325
|
-
|
|
4326
|
-
|
|
4327
|
-
|
|
4328
|
-
|
|
4329
|
-
|
|
4330
|
-
|
|
4331
|
-
|
|
4332
|
-
| DeploymentGetConfig1Nin$Outbound
|
|
4333
|
-
| OneExists$Outbound;
|
|
4334
|
-
}
|
|
4335
|
-
| undefined;
|
|
3939
|
+
documents?: Array<Documents$Outbound> | undefined;
|
|
3940
|
+
invoke_options?: InvokeOptions$Outbound | undefined;
|
|
3941
|
+
thread?: Thread$Outbound | undefined;
|
|
3942
|
+
knowledge_filter?: And$Outbound | Or$Outbound | {
|
|
3943
|
+
[k: string]:
|
|
3944
|
+
| Eq$Outbound
|
|
3945
|
+
| Ne$Outbound
|
|
3946
|
+
| Gt$Outbound
|
|
3947
|
+
| Gte$Outbound
|
|
3948
|
+
| Lt$Outbound
|
|
3949
|
+
| Lte$Outbound
|
|
3950
|
+
| In$Outbound
|
|
3951
|
+
| Nin$Outbound
|
|
3952
|
+
| Exists$Outbound;
|
|
3953
|
+
} | undefined;
|
|
4336
3954
|
};
|
|
4337
3955
|
|
|
4338
3956
|
/** @internal */
|
|
@@ -4346,47 +3964,43 @@ export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
|
|
|
4346
3964
|
context: z.record(z.any()).optional(),
|
|
4347
3965
|
prefixMessages: z.array(
|
|
4348
3966
|
z.union([
|
|
4349
|
-
z.lazy(() =>
|
|
4350
|
-
z.lazy(() =>
|
|
4351
|
-
z.lazy(() =>
|
|
4352
|
-
z.lazy(() =>
|
|
4353
|
-
z.lazy(() =>
|
|
3967
|
+
z.lazy(() => SystemMessage$outboundSchema),
|
|
3968
|
+
z.lazy(() => DeveloperMessage$outboundSchema),
|
|
3969
|
+
z.lazy(() => UserMessage$outboundSchema),
|
|
3970
|
+
z.lazy(() => AssistantMessage$outboundSchema),
|
|
3971
|
+
z.lazy(() => ToolMessage$outboundSchema),
|
|
4354
3972
|
]),
|
|
4355
3973
|
).optional(),
|
|
4356
3974
|
messages: z.array(
|
|
4357
3975
|
z.union([
|
|
4358
|
-
z.lazy(() =>
|
|
4359
|
-
z.lazy(() =>
|
|
4360
|
-
z.lazy(() =>
|
|
4361
|
-
z.lazy(() =>
|
|
4362
|
-
z.lazy(() =>
|
|
3976
|
+
z.lazy(() => MessagesSystemMessage$outboundSchema),
|
|
3977
|
+
z.lazy(() => MessagesDeveloperMessage$outboundSchema),
|
|
3978
|
+
z.lazy(() => MessagesUserMessage$outboundSchema),
|
|
3979
|
+
z.lazy(() => MessagesAssistantMessage$outboundSchema),
|
|
3980
|
+
z.lazy(() => MessagesToolMessage$outboundSchema),
|
|
4363
3981
|
]),
|
|
4364
3982
|
).optional(),
|
|
4365
3983
|
identity: components.PublicIdentity$outboundSchema.optional(),
|
|
4366
3984
|
fileIds: z.array(z.string()).optional(),
|
|
4367
3985
|
metadata: z.record(z.any()).optional(),
|
|
4368
3986
|
extraParams: z.record(z.any()).optional(),
|
|
4369
|
-
documents: z.array(z.lazy(() =>
|
|
4370
|
-
|
|
4371
|
-
|
|
4372
|
-
.optional(),
|
|
4373
|
-
thread: z.lazy(() => DeploymentGetConfigThread$outboundSchema).optional(),
|
|
3987
|
+
documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
|
|
3988
|
+
invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
|
|
3989
|
+
thread: z.lazy(() => Thread$outboundSchema).optional(),
|
|
4374
3990
|
knowledgeFilter: z.union([
|
|
4375
|
-
z.lazy(() =>
|
|
4376
|
-
z.lazy(() =>
|
|
4377
|
-
z.record(
|
|
4378
|
-
z.
|
|
4379
|
-
|
|
4380
|
-
|
|
4381
|
-
|
|
4382
|
-
|
|
4383
|
-
|
|
4384
|
-
|
|
4385
|
-
|
|
4386
|
-
|
|
4387
|
-
|
|
4388
|
-
]),
|
|
4389
|
-
),
|
|
3991
|
+
z.lazy(() => And$outboundSchema),
|
|
3992
|
+
z.lazy(() => Or$outboundSchema),
|
|
3993
|
+
z.record(z.union([
|
|
3994
|
+
z.lazy(() => Eq$outboundSchema),
|
|
3995
|
+
z.lazy(() => Ne$outboundSchema),
|
|
3996
|
+
z.lazy(() => Gt$outboundSchema),
|
|
3997
|
+
z.lazy(() => Gte$outboundSchema),
|
|
3998
|
+
z.lazy(() => Lt$outboundSchema),
|
|
3999
|
+
z.lazy(() => Lte$outboundSchema),
|
|
4000
|
+
z.lazy(() => In$outboundSchema),
|
|
4001
|
+
z.lazy(() => Nin$outboundSchema),
|
|
4002
|
+
z.lazy(() => Exists$outboundSchema),
|
|
4003
|
+
])),
|
|
4390
4004
|
]).optional(),
|
|
4391
4005
|
}).transform((v) => {
|
|
4392
4006
|
return remap$(v, {
|
|
@@ -4576,9 +4190,9 @@ export function deploymentGetConfigContentFromJSON(
|
|
|
4576
4190
|
}
|
|
4577
4191
|
|
|
4578
4192
|
/** @internal */
|
|
4579
|
-
export const
|
|
4580
|
-
z.ZodNativeEnum<typeof
|
|
4581
|
-
.nativeEnum(
|
|
4193
|
+
export const DeploymentGetConfigDeploymentsResponse200Type$inboundSchema:
|
|
4194
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponse200Type> = z
|
|
4195
|
+
.nativeEnum(DeploymentGetConfigDeploymentsResponse200Type);
|
|
4582
4196
|
|
|
4583
4197
|
/** @internal */
|
|
4584
4198
|
export const DeploymentGetConfigDeploymentsFunction$inboundSchema: z.ZodType<
|
|
@@ -4609,7 +4223,7 @@ export const DeploymentGetConfigToolCalls$inboundSchema: z.ZodType<
|
|
|
4609
4223
|
> = z.object({
|
|
4610
4224
|
id: z.string().optional(),
|
|
4611
4225
|
index: z.number().optional(),
|
|
4612
|
-
type:
|
|
4226
|
+
type: DeploymentGetConfigDeploymentsResponse200Type$inboundSchema,
|
|
4613
4227
|
function: z.lazy(() => DeploymentGetConfigDeploymentsFunction$inboundSchema),
|
|
4614
4228
|
});
|
|
4615
4229
|
|
|
@@ -4744,7 +4358,7 @@ export const DeploymentGetConfigResponseFormatJsonSchema$inboundSchema:
|
|
|
4744
4358
|
unknown
|
|
4745
4359
|
> = z.object({
|
|
4746
4360
|
name: z.string(),
|
|
4747
|
-
description: z.string().optional(),
|
|
4361
|
+
description: z.nullable(z.string()).optional(),
|
|
4748
4362
|
strict: z.boolean().optional(),
|
|
4749
4363
|
schema: z.record(z.any()),
|
|
4750
4364
|
});
|
|
@@ -4817,6 +4431,36 @@ export function deploymentGetConfigResponseFormatFromJSON(
|
|
|
4817
4431
|
);
|
|
4818
4432
|
}
|
|
4819
4433
|
|
|
4434
|
+
/** @internal */
|
|
4435
|
+
export const DeploymentGetConfigDeploymentsResponseType$inboundSchema:
|
|
4436
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigDeploymentsResponseType> = z
|
|
4437
|
+
.nativeEnum(DeploymentGetConfigDeploymentsResponseType);
|
|
4438
|
+
|
|
4439
|
+
/** @internal */
|
|
4440
|
+
export const DeploymentGetConfigTtl$inboundSchema: z.ZodNativeEnum<
|
|
4441
|
+
typeof DeploymentGetConfigTtl
|
|
4442
|
+
> = z.nativeEnum(DeploymentGetConfigTtl);
|
|
4443
|
+
|
|
4444
|
+
/** @internal */
|
|
4445
|
+
export const DeploymentGetConfigCacheControl$inboundSchema: z.ZodType<
|
|
4446
|
+
DeploymentGetConfigCacheControl,
|
|
4447
|
+
z.ZodTypeDef,
|
|
4448
|
+
unknown
|
|
4449
|
+
> = z.object({
|
|
4450
|
+
type: DeploymentGetConfigDeploymentsResponseType$inboundSchema,
|
|
4451
|
+
ttl: DeploymentGetConfigTtl$inboundSchema.default("5m"),
|
|
4452
|
+
});
|
|
4453
|
+
|
|
4454
|
+
export function deploymentGetConfigCacheControlFromJSON(
|
|
4455
|
+
jsonString: string,
|
|
4456
|
+
): SafeParseResult<DeploymentGetConfigCacheControl, SDKValidationError> {
|
|
4457
|
+
return safeParse(
|
|
4458
|
+
jsonString,
|
|
4459
|
+
(x) => DeploymentGetConfigCacheControl$inboundSchema.parse(JSON.parse(x)),
|
|
4460
|
+
`Failed to parse 'DeploymentGetConfigCacheControl' from JSON`,
|
|
4461
|
+
);
|
|
4462
|
+
}
|
|
4463
|
+
|
|
4820
4464
|
/** @internal */
|
|
4821
4465
|
export const PhotoRealVersion$inboundSchema: z.ZodNativeEnum<
|
|
4822
4466
|
typeof PhotoRealVersion
|
|
@@ -4870,6 +4514,9 @@ export const DeploymentGetConfigParameters$inboundSchema: z.ZodType<
|
|
|
4870
4514
|
ResponseFormat6$inboundSchema,
|
|
4871
4515
|
]),
|
|
4872
4516
|
).optional(),
|
|
4517
|
+
cacheControl: z.nullable(
|
|
4518
|
+
z.lazy(() => DeploymentGetConfigCacheControl$inboundSchema),
|
|
4519
|
+
).optional(),
|
|
4873
4520
|
photoRealVersion: PhotoRealVersion$inboundSchema.optional(),
|
|
4874
4521
|
encoding_format: DeploymentGetConfigEncodingFormat$inboundSchema.optional(),
|
|
4875
4522
|
reasoningEffort: DeploymentGetConfigReasoningEffort$inboundSchema.optional(),
|