@orq-ai/node 3.14.4 → 3.14.5
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/bin/mcp-server.js +209 -209
- package/bin/mcp-server.js.map +35 -35
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.js +1 -1
- package/models/operations/createbudget.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +8 -8
- package/models/operations/createdatasource.js +2 -2
- package/models/operations/createeval.js +28 -28
- package/models/operations/createtool.js +10 -10
- package/models/operations/duplicatetool.js +10 -10
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getalltools.js +10 -10
- package/models/operations/getbudget.js +2 -2
- package/models/operations/getevals.js +28 -28
- package/models/operations/listbudgets.js +2 -2
- package/models/operations/listcontacts.js +2 -2
- package/models/operations/listdatasetdatapoints.js +8 -8
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/listdatasources.js +2 -2
- package/models/operations/retrievecontact.js +2 -2
- package/models/operations/retrievedatapoint.js +8 -8
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/retrievedatasource.js +2 -2
- package/models/operations/retrievetool.js +10 -10
- package/models/operations/updatebudget.js +2 -2
- package/models/operations/updatecontact.js +2 -2
- package/models/operations/updatedatapoint.js +8 -8
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updatedatasource.js +2 -2
- package/models/operations/updateeval.js +28 -28
- package/models/operations/updatetool.js +10 -10
- package/package.json +1 -1
- package/packages/orq-rc/README.md +21 -173
- package/packages/orq-rc/docs/sdks/evals/README.md +1 -2767
- package/packages/orq-rc/examples/package-lock.json +1 -1
- package/packages/orq-rc/jsr.json +1 -1
- package/packages/orq-rc/package-lock.json +2 -2
- package/packages/orq-rc/package.json +1 -1
- package/packages/orq-rc/src/lib/config.ts +3 -3
- package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
- package/packages/orq-rc/src/mcp-server/server.ts +1 -77
- package/packages/orq-rc/src/models/errors/index.ts +0 -38
- package/packages/orq-rc/src/models/operations/createagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/createbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/createdatasetitem.ts +8 -8
- package/packages/orq-rc/src/models/operations/createdatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/createeval.ts +48 -57
- package/packages/orq-rc/src/models/operations/createknowledge.ts +47 -61
- package/packages/orq-rc/src/models/operations/createprompt.ts +4 -4
- package/packages/orq-rc/src/models/operations/createtool.ts +172 -144
- package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +920 -1129
- package/packages/orq-rc/src/models/operations/deployments.ts +53 -53
- package/packages/orq-rc/src/models/operations/deploymentstream.ts +52 -73
- package/packages/orq-rc/src/models/operations/duplicatetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/fileget.ts +2 -2
- package/packages/orq-rc/src/models/operations/filelist.ts +2 -2
- package/packages/orq-rc/src/models/operations/fileupload.ts +2 -2
- package/packages/orq-rc/src/models/operations/getalltools.ts +10 -10
- package/packages/orq-rc/src/models/operations/getbudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/getevals.ts +28 -28
- package/packages/orq-rc/src/models/operations/index.ts +0 -38
- package/packages/orq-rc/src/models/operations/listbudgets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listcontacts.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
- package/packages/orq-rc/src/models/operations/listdatasources.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/retrievetool.ts +10 -10
- package/packages/orq-rc/src/models/operations/runagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/streamrunagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updateagent.ts +1 -1
- package/packages/orq-rc/src/models/operations/updatebudget.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatecontact.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatapoint.ts +8 -8
- package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
- package/packages/orq-rc/src/models/operations/updatedatasource.ts +2 -2
- package/packages/orq-rc/src/models/operations/updateeval.ts +28 -28
- package/packages/orq-rc/src/models/operations/updateprompt.ts +4 -4
- package/packages/orq-rc/src/models/operations/updatetool.ts +168 -161
- package/packages/orq-rc/src/sdk/evals.ts +0 -570
- package/src/lib/config.ts +2 -2
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/operations/createbudget.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +8 -8
- package/src/models/operations/createdatasource.ts +2 -2
- package/src/models/operations/createeval.ts +28 -28
- package/src/models/operations/createtool.ts +10 -10
- package/src/models/operations/duplicatetool.ts +10 -10
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getalltools.ts +10 -10
- package/src/models/operations/getbudget.ts +2 -2
- package/src/models/operations/getevals.ts +28 -28
- package/src/models/operations/listbudgets.ts +2 -2
- package/src/models/operations/listcontacts.ts +2 -2
- package/src/models/operations/listdatasetdatapoints.ts +8 -8
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/listdatasources.ts +2 -2
- package/src/models/operations/retrievecontact.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +8 -8
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/retrievedatasource.ts +2 -2
- package/src/models/operations/retrievetool.ts +10 -10
- package/src/models/operations/updatebudget.ts +2 -2
- package/src/models/operations/updatecontact.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +8 -8
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updatedatasource.ts +2 -2
- package/src/models/operations/updateeval.ts +28 -28
- package/src/models/operations/updatetool.ts +10 -10
- package/packages/orq-rc/src/funcs/evalsAgeAppropriate.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsBertScore.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsBleuScore.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsBotDetection.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContains.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsAll.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsAny.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsEmail.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsNone.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsUrl.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsContainsValidLink.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsEndsWith.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsExactMatch.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsFactCheckingKnowledgeBase.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsGrammar.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsInvoke.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsLengthBetween.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsLengthGreaterThan.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsLengthLessThan.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsLocalization.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsPii.ts +0 -173
- package/packages/orq-rc/src/funcs/evalsRagasCoherence.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsRagasConciseness.ts +0 -174
- package/packages/orq-rc/src/funcs/evalsRagasContextEntitiesRecall.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsRagasContextPrecision.ts +0 -180
- package/packages/orq-rc/src/funcs/evalsRagasContextRecall.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsRagasCorrectness.ts +0 -174
- package/packages/orq-rc/src/funcs/evalsRagasFaithfulness.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsRagasHarmfulness.ts +0 -174
- package/packages/orq-rc/src/funcs/evalsRagasMaliciousness.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsRagasNoiseSensitivity.ts +0 -180
- package/packages/orq-rc/src/funcs/evalsRagasResponseRelevancy.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsRagasSummarization.ts +0 -177
- package/packages/orq-rc/src/funcs/evalsSentimentClassification.ts +0 -183
- package/packages/orq-rc/src/funcs/evalsSummarization.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsToneOfVoice.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsTranslation.ts +0 -175
- package/packages/orq-rc/src/funcs/evalsValidJson.ts +0 -175
- package/packages/orq-rc/src/mcp-server/tools/evalsAgeAppropriate.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsBertScore.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsBleuScore.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsBotDetection.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContains.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsAll.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsAny.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsEmail.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsNone.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsUrl.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsContainsValidLink.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsEndsWith.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsExactMatch.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsFactCheckingKnowledgeBase.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/evalsGrammar.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsInvoke.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsLengthBetween.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsLengthGreaterThan.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsLengthLessThan.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsLocalization.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsPii.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasCoherence.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasConciseness.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextEntitiesRecall.ts +0 -37
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextPrecision.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasContextRecall.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasCorrectness.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasFaithfulness.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasHarmfulness.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasMaliciousness.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasNoiseSensitivity.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasResponseRelevancy.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsRagasSummarization.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsSentimentClassification.ts +0 -36
- package/packages/orq-rc/src/mcp-server/tools/evalsSummarization.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsToneOfVoice.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsTranslation.ts +0 -35
- package/packages/orq-rc/src/mcp-server/tools/evalsValidJson.ts +0 -35
- package/packages/orq-rc/src/models/errors/evalsageappropriate.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalsbertscore.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsbleuscore.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsbotdetection.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontains.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalscontainsall.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontainsany.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontainsemail.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalscontainsnone.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontainsurl.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalscontainsvalidlink.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsendswith.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsexactmatch.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsfactcheckingknowledgebase.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalsgrammar.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalslengthbetween.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalslengthgreaterthan.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalslengthlessthan.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalslocalization.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalspii.ts +0 -154
- package/packages/orq-rc/src/models/errors/evalsragascoherence.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalsragasconciseness.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsragascontextentitiesrecall.ts +0 -163
- package/packages/orq-rc/src/models/errors/evalsragascontextprecision.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalsragascontextrecall.ts +0 -158
- package/packages/orq-rc/src/models/errors/evalsragascorrectness.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsragasfaithfulness.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsragasharmfulness.ts +0 -157
- package/packages/orq-rc/src/models/errors/evalsragasmaliciousness.ts +0 -158
- package/packages/orq-rc/src/models/errors/evalsragasnoisesensitivity.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalsragasresponserelevancy.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalsragassummarization.ts +0 -158
- package/packages/orq-rc/src/models/errors/evalssentimentclassification.ts +0 -160
- package/packages/orq-rc/src/models/errors/evalssummarization.ts +0 -156
- package/packages/orq-rc/src/models/errors/evalstoneofvoice.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalstranslation.ts +0 -155
- package/packages/orq-rc/src/models/errors/evalsvalidjson.ts +0 -154
- package/packages/orq-rc/src/models/errors/invokeeval.ts +0 -154
- package/packages/orq-rc/src/models/operations/evalsageappropriate.ts +0 -320
- package/packages/orq-rc/src/models/operations/evalsbertscore.ts +0 -197
- package/packages/orq-rc/src/models/operations/evalsbleuscore.ts +0 -131
- package/packages/orq-rc/src/models/operations/evalsbotdetection.ts +0 -322
- package/packages/orq-rc/src/models/operations/evalscontains.ts +0 -250
- package/packages/orq-rc/src/models/operations/evalscontainsall.ts +0 -248
- package/packages/orq-rc/src/models/operations/evalscontainsany.ts +0 -254
- package/packages/orq-rc/src/models/operations/evalscontainsemail.ts +0 -181
- package/packages/orq-rc/src/models/operations/evalscontainsnone.ts +0 -254
- package/packages/orq-rc/src/models/operations/evalscontainsurl.ts +0 -181
- package/packages/orq-rc/src/models/operations/evalscontainsvalidlink.ts +0 -186
- package/packages/orq-rc/src/models/operations/evalsendswith.ts +0 -250
- package/packages/orq-rc/src/models/operations/evalsexactmatch.ts +0 -183
- package/packages/orq-rc/src/models/operations/evalsfactcheckingknowledgebase.ts +0 -389
- package/packages/orq-rc/src/models/operations/evalsgrammar.ts +0 -314
- package/packages/orq-rc/src/models/operations/evalslengthbetween.ts +0 -268
- package/packages/orq-rc/src/models/operations/evalslengthgreaterthan.ts +0 -266
- package/packages/orq-rc/src/models/operations/evalslengthlessthan.ts +0 -259
- package/packages/orq-rc/src/models/operations/evalslocalization.ts +0 -326
- package/packages/orq-rc/src/models/operations/evalspii.ts +0 -314
- package/packages/orq-rc/src/models/operations/evalsragascoherence.ts +0 -152
- package/packages/orq-rc/src/models/operations/evalsragasconciseness.ts +0 -153
- package/packages/orq-rc/src/models/operations/evalsragascontextentitiesrecall.ts +0 -164
- package/packages/orq-rc/src/models/operations/evalsragascontextprecision.ts +0 -166
- package/packages/orq-rc/src/models/operations/evalsragascontextrecall.ts +0 -164
- package/packages/orq-rc/src/models/operations/evalsragascorrectness.ts +0 -153
- package/packages/orq-rc/src/models/operations/evalsragasfaithfulness.ts +0 -155
- package/packages/orq-rc/src/models/operations/evalsragasharmfulness.ts +0 -146
- package/packages/orq-rc/src/models/operations/evalsragasmaliciousness.ts +0 -157
- package/packages/orq-rc/src/models/operations/evalsragasnoisesensitivity.ts +0 -166
- package/packages/orq-rc/src/models/operations/evalsragasresponserelevancy.ts +0 -165
- package/packages/orq-rc/src/models/operations/evalsragassummarization.ts +0 -150
- package/packages/orq-rc/src/models/operations/evalssentimentclassification.ts +0 -374
- package/packages/orq-rc/src/models/operations/evalssummarization.ts +0 -329
- package/packages/orq-rc/src/models/operations/evalstoneofvoice.ts +0 -324
- package/packages/orq-rc/src/models/operations/evalstranslation.ts +0 -324
- package/packages/orq-rc/src/models/operations/evalsvalidjson.ts +0 -177
- package/packages/orq-rc/src/models/operations/invokeeval.ts +0 -2551
|
@@ -12,30 +12,25 @@ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
|
12
12
|
/**
|
|
13
13
|
* The role of the messages author, in this case tool.
|
|
14
14
|
*/
|
|
15
|
-
export const
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
} as const;
|
|
15
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRole = {
|
|
16
|
+
Tool: "tool",
|
|
17
|
+
} as const;
|
|
19
18
|
/**
|
|
20
19
|
* The role of the messages author, in this case tool.
|
|
21
20
|
*/
|
|
22
|
-
export type
|
|
23
|
-
ClosedEnum<
|
|
24
|
-
typeof DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole
|
|
25
|
-
>;
|
|
21
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRole =
|
|
22
|
+
ClosedEnum<typeof DeploymentGetConfigPrefixMessagesDeploymentsRequestRole>;
|
|
26
23
|
|
|
27
24
|
/**
|
|
28
25
|
* The contents of the tool message.
|
|
29
26
|
*/
|
|
30
|
-
export type
|
|
31
|
-
| string
|
|
32
|
-
| Array<string>;
|
|
27
|
+
export type DeploymentGetConfigPrefixMessagesContent = string | Array<string>;
|
|
33
28
|
|
|
34
29
|
export type ToolMessage = {
|
|
35
30
|
/**
|
|
36
31
|
* The role of the messages author, in this case tool.
|
|
37
32
|
*/
|
|
38
|
-
role:
|
|
33
|
+
role: DeploymentGetConfigPrefixMessagesDeploymentsRequestRole;
|
|
39
34
|
/**
|
|
40
35
|
* The contents of the tool message.
|
|
41
36
|
*/
|
|
@@ -49,23 +44,21 @@ export type ToolMessage = {
|
|
|
49
44
|
/**
|
|
50
45
|
* The type of the content part.
|
|
51
46
|
*/
|
|
52
|
-
export const
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
} as const;
|
|
47
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyType = {
|
|
48
|
+
Refusal: "refusal",
|
|
49
|
+
} as const;
|
|
56
50
|
/**
|
|
57
51
|
* The type of the content part.
|
|
58
52
|
*/
|
|
59
|
-
export type
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
>;
|
|
53
|
+
export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
|
|
54
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
|
|
55
|
+
>;
|
|
63
56
|
|
|
64
57
|
export type RefusalContentPart = {
|
|
65
58
|
/**
|
|
66
59
|
* The type of the content part.
|
|
67
60
|
*/
|
|
68
|
-
type:
|
|
61
|
+
type: DeploymentGetConfig2DeploymentsRequestRequestBodyType;
|
|
69
62
|
/**
|
|
70
63
|
* The refusal message generated by the model.
|
|
71
64
|
*/
|
|
@@ -75,17 +68,15 @@ export type RefusalContentPart = {
|
|
|
75
68
|
/**
|
|
76
69
|
* The type of the content part.
|
|
77
70
|
*/
|
|
78
|
-
export const
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
} as const;
|
|
71
|
+
export const DeploymentGetConfig2DeploymentsRequestType = {
|
|
72
|
+
Text: "text",
|
|
73
|
+
} as const;
|
|
82
74
|
/**
|
|
83
75
|
* The type of the content part.
|
|
84
76
|
*/
|
|
85
|
-
export type
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
>;
|
|
77
|
+
export type DeploymentGetConfig2DeploymentsRequestType = ClosedEnum<
|
|
78
|
+
typeof DeploymentGetConfig2DeploymentsRequestType
|
|
79
|
+
>;
|
|
89
80
|
|
|
90
81
|
export const DeploymentGetConfigAnnotationsType = {
|
|
91
82
|
FilePath: "file_path",
|
|
@@ -130,7 +121,7 @@ export type TextContentPart = {
|
|
|
130
121
|
/**
|
|
131
122
|
* The type of the content part.
|
|
132
123
|
*/
|
|
133
|
-
type:
|
|
124
|
+
type: DeploymentGetConfig2DeploymentsRequestType;
|
|
134
125
|
/**
|
|
135
126
|
* The text content.
|
|
136
127
|
*/
|
|
@@ -141,26 +132,27 @@ export type TextContentPart = {
|
|
|
141
132
|
annotations?: Array<Annotations1 | Annotations2> | undefined;
|
|
142
133
|
};
|
|
143
134
|
|
|
144
|
-
export type
|
|
135
|
+
export type Content2 = TextContentPart | RefusalContentPart;
|
|
145
136
|
|
|
146
137
|
/**
|
|
147
138
|
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
148
139
|
*/
|
|
149
|
-
export type
|
|
140
|
+
export type PrefixMessagesContent =
|
|
150
141
|
| string
|
|
151
142
|
| Array<TextContentPart | RefusalContentPart>;
|
|
152
143
|
|
|
153
144
|
/**
|
|
154
145
|
* The role of the messages author, in this case `assistant`.
|
|
155
146
|
*/
|
|
156
|
-
export const
|
|
147
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsRole = {
|
|
157
148
|
Assistant: "assistant",
|
|
158
149
|
} as const;
|
|
159
150
|
/**
|
|
160
151
|
* The role of the messages author, in this case `assistant`.
|
|
161
152
|
*/
|
|
162
|
-
export type
|
|
163
|
-
|
|
153
|
+
export type DeploymentGetConfigPrefixMessagesDeploymentsRole = ClosedEnum<
|
|
154
|
+
typeof DeploymentGetConfigPrefixMessagesDeploymentsRole
|
|
155
|
+
>;
|
|
164
156
|
|
|
165
157
|
/**
|
|
166
158
|
* Data about a previous audio response from the model.
|
|
@@ -183,7 +175,7 @@ export const PrefixMessagesType = {
|
|
|
183
175
|
*/
|
|
184
176
|
export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
|
|
185
177
|
|
|
186
|
-
export type
|
|
178
|
+
export type FunctionT = {
|
|
187
179
|
/**
|
|
188
180
|
* The name of the function to call.
|
|
189
181
|
*/
|
|
@@ -194,7 +186,7 @@ export type PrefixMessagesFunction = {
|
|
|
194
186
|
arguments?: string | undefined;
|
|
195
187
|
};
|
|
196
188
|
|
|
197
|
-
export type
|
|
189
|
+
export type ToolCalls = {
|
|
198
190
|
/**
|
|
199
191
|
* The ID of the tool call.
|
|
200
192
|
*/
|
|
@@ -203,7 +195,7 @@ export type PrefixMessagesToolCalls = {
|
|
|
203
195
|
* The type of the tool. Currently, only `function` is supported.
|
|
204
196
|
*/
|
|
205
197
|
type: PrefixMessagesType;
|
|
206
|
-
function:
|
|
198
|
+
function: FunctionT;
|
|
207
199
|
};
|
|
208
200
|
|
|
209
201
|
export type AssistantMessage = {
|
|
@@ -222,7 +214,7 @@ export type AssistantMessage = {
|
|
|
222
214
|
/**
|
|
223
215
|
* The role of the messages author, in this case `assistant`.
|
|
224
216
|
*/
|
|
225
|
-
role:
|
|
217
|
+
role: DeploymentGetConfigPrefixMessagesDeploymentsRole;
|
|
226
218
|
/**
|
|
227
219
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
228
220
|
*/
|
|
@@ -234,7 +226,7 @@ export type AssistantMessage = {
|
|
|
234
226
|
/**
|
|
235
227
|
* The tool calls generated by the model, such as function calls.
|
|
236
228
|
*/
|
|
237
|
-
toolCalls?: Array<
|
|
229
|
+
toolCalls?: Array<ToolCalls> | undefined;
|
|
238
230
|
/**
|
|
239
231
|
* Internal thought process of the model
|
|
240
232
|
*/
|
|
@@ -252,33 +244,33 @@ export type AssistantMessage = {
|
|
|
252
244
|
/**
|
|
253
245
|
* The role of the messages author, in this case `user`.
|
|
254
246
|
*/
|
|
255
|
-
export const
|
|
247
|
+
export const DeploymentGetConfigPrefixMessagesRole = {
|
|
256
248
|
User: "user",
|
|
257
249
|
} as const;
|
|
258
250
|
/**
|
|
259
251
|
* The role of the messages author, in this case `user`.
|
|
260
252
|
*/
|
|
261
|
-
export type
|
|
262
|
-
typeof
|
|
253
|
+
export type DeploymentGetConfigPrefixMessagesRole = ClosedEnum<
|
|
254
|
+
typeof DeploymentGetConfigPrefixMessagesRole
|
|
263
255
|
>;
|
|
264
256
|
|
|
265
257
|
/**
|
|
266
258
|
* The type of the content part. Always `file`.
|
|
267
259
|
*/
|
|
268
|
-
export const
|
|
260
|
+
export const DeploymentGetConfig2DeploymentsType = {
|
|
269
261
|
File: "file",
|
|
270
262
|
} as const;
|
|
271
263
|
/**
|
|
272
264
|
* The type of the content part. Always `file`.
|
|
273
265
|
*/
|
|
274
|
-
export type
|
|
275
|
-
typeof
|
|
266
|
+
export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
|
|
267
|
+
typeof DeploymentGetConfig2DeploymentsType
|
|
276
268
|
>;
|
|
277
269
|
|
|
278
270
|
/**
|
|
279
271
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
280
272
|
*/
|
|
281
|
-
export type
|
|
273
|
+
export type FileT = {
|
|
282
274
|
/**
|
|
283
275
|
* The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
|
|
284
276
|
*/
|
|
@@ -301,18 +293,18 @@ export type Four = {
|
|
|
301
293
|
/**
|
|
302
294
|
* The type of the content part. Always `file`.
|
|
303
295
|
*/
|
|
304
|
-
type:
|
|
296
|
+
type: DeploymentGetConfig2DeploymentsType;
|
|
305
297
|
/**
|
|
306
298
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
307
299
|
*/
|
|
308
|
-
file:
|
|
300
|
+
file: FileT;
|
|
309
301
|
};
|
|
310
302
|
|
|
311
|
-
export const
|
|
303
|
+
export const DeploymentGetConfig2Type = {
|
|
312
304
|
InputAudio: "input_audio",
|
|
313
305
|
} as const;
|
|
314
|
-
export type
|
|
315
|
-
typeof
|
|
306
|
+
export type DeploymentGetConfig2Type = ClosedEnum<
|
|
307
|
+
typeof DeploymentGetConfig2Type
|
|
316
308
|
>;
|
|
317
309
|
|
|
318
310
|
/**
|
|
@@ -338,17 +330,15 @@ export type InputAudio = {
|
|
|
338
330
|
format: Format;
|
|
339
331
|
};
|
|
340
332
|
|
|
341
|
-
export type
|
|
342
|
-
type:
|
|
333
|
+
export type Three = {
|
|
334
|
+
type: DeploymentGetConfig2Type;
|
|
343
335
|
inputAudio: InputAudio;
|
|
344
336
|
};
|
|
345
337
|
|
|
346
|
-
export const
|
|
338
|
+
export const TwoType = {
|
|
347
339
|
ImageUrl: "image_url",
|
|
348
340
|
} as const;
|
|
349
|
-
export type
|
|
350
|
-
typeof DeploymentGetConfig2DeploymentsType
|
|
351
|
-
>;
|
|
341
|
+
export type TwoType = ClosedEnum<typeof TwoType>;
|
|
352
342
|
|
|
353
343
|
/**
|
|
354
344
|
* Specifies the detail level of the image.
|
|
@@ -363,7 +353,7 @@ export const Detail = {
|
|
|
363
353
|
*/
|
|
364
354
|
export type Detail = ClosedEnum<typeof Detail>;
|
|
365
355
|
|
|
366
|
-
export type
|
|
356
|
+
export type ImageUrl = {
|
|
367
357
|
/**
|
|
368
358
|
* Either a URL of the image or the base64 encoded image data.
|
|
369
359
|
*/
|
|
@@ -374,37 +364,33 @@ export type TwoImageUrl = {
|
|
|
374
364
|
detail?: Detail | undefined;
|
|
375
365
|
};
|
|
376
366
|
|
|
377
|
-
export type
|
|
378
|
-
type:
|
|
379
|
-
imageUrl:
|
|
367
|
+
export type Two2 = {
|
|
368
|
+
type: TwoType;
|
|
369
|
+
imageUrl: ImageUrl;
|
|
380
370
|
};
|
|
381
371
|
|
|
382
|
-
export const
|
|
372
|
+
export const Type = {
|
|
383
373
|
Text: "text",
|
|
384
374
|
} as const;
|
|
385
|
-
export type
|
|
386
|
-
typeof DeploymentGetConfig2Type
|
|
387
|
-
>;
|
|
375
|
+
export type Type = ClosedEnum<typeof Type>;
|
|
388
376
|
|
|
389
|
-
export type
|
|
390
|
-
type:
|
|
377
|
+
export type One = {
|
|
378
|
+
type: Type;
|
|
391
379
|
text: string;
|
|
392
380
|
};
|
|
393
381
|
|
|
394
|
-
export type
|
|
382
|
+
export type Two = One | Two2 | Three | Four;
|
|
395
383
|
|
|
396
384
|
/**
|
|
397
385
|
* The contents of the user message.
|
|
398
386
|
*/
|
|
399
|
-
export type
|
|
400
|
-
| string
|
|
401
|
-
| Array<Two1 | DeploymentGetConfig22 | Two3 | Four>;
|
|
387
|
+
export type Content = string | Array<One | Two2 | Three | Four>;
|
|
402
388
|
|
|
403
389
|
export type UserMessage = {
|
|
404
390
|
/**
|
|
405
391
|
* The role of the messages author, in this case `user`.
|
|
406
392
|
*/
|
|
407
|
-
role:
|
|
393
|
+
role: DeploymentGetConfigPrefixMessagesRole;
|
|
408
394
|
/**
|
|
409
395
|
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
410
396
|
*/
|
|
@@ -412,27 +398,25 @@ export type UserMessage = {
|
|
|
412
398
|
/**
|
|
413
399
|
* The contents of the user message.
|
|
414
400
|
*/
|
|
415
|
-
content: string | Array<
|
|
401
|
+
content: string | Array<One | Two2 | Three | Four>;
|
|
416
402
|
};
|
|
417
403
|
|
|
418
404
|
/**
|
|
419
405
|
* The role of the messages author, in this case `system`.
|
|
420
406
|
*/
|
|
421
|
-
export const
|
|
407
|
+
export const PrefixMessagesRole = {
|
|
422
408
|
System: "system",
|
|
423
409
|
} as const;
|
|
424
410
|
/**
|
|
425
411
|
* The role of the messages author, in this case `system`.
|
|
426
412
|
*/
|
|
427
|
-
export type
|
|
428
|
-
typeof DeploymentGetConfigPrefixMessagesRole
|
|
429
|
-
>;
|
|
413
|
+
export type PrefixMessagesRole = ClosedEnum<typeof PrefixMessagesRole>;
|
|
430
414
|
|
|
431
415
|
export type SystemMessage = {
|
|
432
416
|
/**
|
|
433
417
|
* The role of the messages author, in this case `system`.
|
|
434
418
|
*/
|
|
435
|
-
role:
|
|
419
|
+
role: PrefixMessagesRole;
|
|
436
420
|
/**
|
|
437
421
|
* The contents of the system message.
|
|
438
422
|
*/
|
|
@@ -446,19 +430,19 @@ export type SystemMessage = {
|
|
|
446
430
|
/**
|
|
447
431
|
* The role of the messages author, in this case `developer`.
|
|
448
432
|
*/
|
|
449
|
-
export const
|
|
433
|
+
export const Role = {
|
|
450
434
|
Developer: "developer",
|
|
451
435
|
} as const;
|
|
452
436
|
/**
|
|
453
437
|
* The role of the messages author, in this case `developer`.
|
|
454
438
|
*/
|
|
455
|
-
export type
|
|
439
|
+
export type Role = ClosedEnum<typeof Role>;
|
|
456
440
|
|
|
457
441
|
export type DeveloperMessage = {
|
|
458
442
|
/**
|
|
459
443
|
* The role of the messages author, in this case `developer`.
|
|
460
444
|
*/
|
|
461
|
-
role:
|
|
445
|
+
role: Role;
|
|
462
446
|
/**
|
|
463
447
|
* The contents of the developer message.
|
|
464
448
|
*/
|
|
@@ -612,7 +596,7 @@ export type TwoTextContentPart = {
|
|
|
612
596
|
| undefined;
|
|
613
597
|
};
|
|
614
598
|
|
|
615
|
-
export type
|
|
599
|
+
export type DeploymentGetConfigContentDeployments2 =
|
|
616
600
|
| TwoTextContentPart
|
|
617
601
|
| TwoRefusalContentPart;
|
|
618
602
|
|
|
@@ -754,7 +738,7 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Ty
|
|
|
754
738
|
/**
|
|
755
739
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
756
740
|
*/
|
|
757
|
-
export type
|
|
741
|
+
export type TwoFile = {
|
|
758
742
|
/**
|
|
759
743
|
* The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
|
|
760
744
|
*/
|
|
@@ -781,7 +765,7 @@ export type Two4 = {
|
|
|
781
765
|
/**
|
|
782
766
|
* File data for the content part. Must contain either file_data or uri, but not both.
|
|
783
767
|
*/
|
|
784
|
-
file:
|
|
768
|
+
file: TwoFile;
|
|
785
769
|
};
|
|
786
770
|
|
|
787
771
|
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType =
|
|
@@ -816,7 +800,7 @@ export type TwoInputAudio = {
|
|
|
816
800
|
format: TwoFormat;
|
|
817
801
|
};
|
|
818
802
|
|
|
819
|
-
export type
|
|
803
|
+
export type Two3 = {
|
|
820
804
|
type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType;
|
|
821
805
|
inputAudio: TwoInputAudio;
|
|
822
806
|
};
|
|
@@ -842,7 +826,7 @@ export const TwoDetail = {
|
|
|
842
826
|
*/
|
|
843
827
|
export type TwoDetail = ClosedEnum<typeof TwoDetail>;
|
|
844
828
|
|
|
845
|
-
export type
|
|
829
|
+
export type TwoImageUrl = {
|
|
846
830
|
/**
|
|
847
831
|
* Either a URL of the image or the base64 encoded image data.
|
|
848
832
|
*/
|
|
@@ -853,9 +837,9 @@ export type DeploymentGetConfig2ImageUrl = {
|
|
|
853
837
|
detail?: TwoDetail | undefined;
|
|
854
838
|
};
|
|
855
839
|
|
|
856
|
-
export type
|
|
840
|
+
export type DeploymentGetConfig22 = {
|
|
857
841
|
type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type;
|
|
858
|
-
imageUrl:
|
|
842
|
+
imageUrl: TwoImageUrl;
|
|
859
843
|
};
|
|
860
844
|
|
|
861
845
|
export const DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType = {
|
|
@@ -866,15 +850,15 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType =
|
|
|
866
850
|
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType
|
|
867
851
|
>;
|
|
868
852
|
|
|
869
|
-
export type
|
|
853
|
+
export type Two1 = {
|
|
870
854
|
type: DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType;
|
|
871
855
|
text: string;
|
|
872
856
|
};
|
|
873
857
|
|
|
874
|
-
export type
|
|
875
|
-
|
|
|
876
|
-
|
|
|
877
|
-
|
|
|
858
|
+
export type DeploymentGetConfigContent2 =
|
|
859
|
+
| Two1
|
|
860
|
+
| DeploymentGetConfig22
|
|
861
|
+
| Two3
|
|
878
862
|
| Two4;
|
|
879
863
|
|
|
880
864
|
/**
|
|
@@ -882,12 +866,7 @@ export type DeploymentGetConfigContentDeployments2 =
|
|
|
882
866
|
*/
|
|
883
867
|
export type MessagesContent =
|
|
884
868
|
| string
|
|
885
|
-
| Array<
|
|
886
|
-
| DeploymentGetConfig21
|
|
887
|
-
| DeploymentGetConfig2Deployments2
|
|
888
|
-
| DeploymentGetConfig23
|
|
889
|
-
| Two4
|
|
890
|
-
>;
|
|
869
|
+
| Array<Two1 | DeploymentGetConfig22 | Two3 | Two4>;
|
|
891
870
|
|
|
892
871
|
export type MessagesUserMessage = {
|
|
893
872
|
/**
|
|
@@ -901,14 +880,7 @@ export type MessagesUserMessage = {
|
|
|
901
880
|
/**
|
|
902
881
|
* The contents of the user message.
|
|
903
882
|
*/
|
|
904
|
-
content:
|
|
905
|
-
| string
|
|
906
|
-
| Array<
|
|
907
|
-
| DeploymentGetConfig21
|
|
908
|
-
| DeploymentGetConfig2Deployments2
|
|
909
|
-
| DeploymentGetConfig23
|
|
910
|
-
| Two4
|
|
911
|
-
>;
|
|
883
|
+
content: string | Array<Two1 | DeploymentGetConfig22 | Two3 | Two4>;
|
|
912
884
|
};
|
|
913
885
|
|
|
914
886
|
/**
|
|
@@ -965,7 +937,7 @@ export type MessagesDeveloperMessage = {
|
|
|
965
937
|
name?: string | undefined;
|
|
966
938
|
};
|
|
967
939
|
|
|
968
|
-
export type
|
|
940
|
+
export type Messages =
|
|
969
941
|
| MessagesToolMessage
|
|
970
942
|
| MessagesDeveloperMessage
|
|
971
943
|
| MessagesSystemMessage
|
|
@@ -1425,7 +1397,7 @@ export type DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType =
|
|
|
1425
1397
|
typeof DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType
|
|
1426
1398
|
>;
|
|
1427
1399
|
|
|
1428
|
-
export type
|
|
1400
|
+
export type DeploymentGetConfig2File = {
|
|
1429
1401
|
/**
|
|
1430
1402
|
* The file data as a data URI string in the format 'data:<mime-type>;base64,<base64-encoded-data>'. Example: 'data:image/png;base64,iVBORw0KGgoAAAANS...'
|
|
1431
1403
|
*/
|
|
@@ -1444,12 +1416,12 @@ export type DeploymentGetConfig2DeploymentsFile = {
|
|
|
1444
1416
|
filename?: string | undefined;
|
|
1445
1417
|
};
|
|
1446
1418
|
|
|
1447
|
-
export type
|
|
1419
|
+
export type DeploymentGetConfig23 = {
|
|
1448
1420
|
/**
|
|
1449
1421
|
* The type of the content part. Always `file`.
|
|
1450
1422
|
*/
|
|
1451
1423
|
type: DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType;
|
|
1452
|
-
file:
|
|
1424
|
+
file: DeploymentGetConfig2File;
|
|
1453
1425
|
};
|
|
1454
1426
|
|
|
1455
1427
|
export const DeploymentGetConfig2DeploymentsResponse200Type = {
|
|
@@ -1459,7 +1431,7 @@ export type DeploymentGetConfig2DeploymentsResponse200Type = ClosedEnum<
|
|
|
1459
1431
|
typeof DeploymentGetConfig2DeploymentsResponse200Type
|
|
1460
1432
|
>;
|
|
1461
1433
|
|
|
1462
|
-
export type
|
|
1434
|
+
export type DeploymentGetConfig2ImageUrl = {
|
|
1463
1435
|
/**
|
|
1464
1436
|
* The orq.ai id of the image
|
|
1465
1437
|
*/
|
|
@@ -1477,9 +1449,9 @@ export type DeploymentGetConfig2DeploymentsImageUrl = {
|
|
|
1477
1449
|
/**
|
|
1478
1450
|
* The image part of the prompt message. Only supported with vision models.
|
|
1479
1451
|
*/
|
|
1480
|
-
export type
|
|
1452
|
+
export type DeploymentGetConfig2Deployments2 = {
|
|
1481
1453
|
type: DeploymentGetConfig2DeploymentsResponse200Type;
|
|
1482
|
-
imageUrl:
|
|
1454
|
+
imageUrl: DeploymentGetConfig2ImageUrl;
|
|
1483
1455
|
};
|
|
1484
1456
|
|
|
1485
1457
|
export const DeploymentGetConfig2DeploymentsResponseType = {
|
|
@@ -1492,15 +1464,15 @@ export type DeploymentGetConfig2DeploymentsResponseType = ClosedEnum<
|
|
|
1492
1464
|
/**
|
|
1493
1465
|
* Text content part of a prompt message
|
|
1494
1466
|
*/
|
|
1495
|
-
export type
|
|
1467
|
+
export type DeploymentGetConfig21 = {
|
|
1496
1468
|
type: DeploymentGetConfig2DeploymentsResponseType;
|
|
1497
1469
|
text: string;
|
|
1498
1470
|
};
|
|
1499
1471
|
|
|
1500
1472
|
export type DeploymentGetConfigContentDeploymentsResponse2 =
|
|
1501
|
-
|
|
|
1502
|
-
|
|
|
1503
|
-
|
|
|
1473
|
+
| DeploymentGetConfig21
|
|
1474
|
+
| DeploymentGetConfig2Deployments2
|
|
1475
|
+
| DeploymentGetConfig23;
|
|
1504
1476
|
|
|
1505
1477
|
/**
|
|
1506
1478
|
* The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
|
|
@@ -1508,9 +1480,9 @@ export type DeploymentGetConfigContentDeploymentsResponse2 =
|
|
|
1508
1480
|
export type DeploymentGetConfigContent =
|
|
1509
1481
|
| string
|
|
1510
1482
|
| Array<
|
|
1511
|
-
|
|
|
1512
|
-
|
|
|
1513
|
-
|
|
|
1483
|
+
| DeploymentGetConfig21
|
|
1484
|
+
| DeploymentGetConfig2Deployments2
|
|
1485
|
+
| DeploymentGetConfig23
|
|
1514
1486
|
>;
|
|
1515
1487
|
|
|
1516
1488
|
export const DeploymentGetConfigDeploymentsResponseType = {
|
|
@@ -1535,7 +1507,7 @@ export type DeploymentGetConfigToolCalls = {
|
|
|
1535
1507
|
function: DeploymentGetConfigDeploymentsFunction;
|
|
1536
1508
|
};
|
|
1537
1509
|
|
|
1538
|
-
export type
|
|
1510
|
+
export type DeploymentGetConfigMessages = {
|
|
1539
1511
|
/**
|
|
1540
1512
|
* The role of the prompt message
|
|
1541
1513
|
*/
|
|
@@ -1546,9 +1518,9 @@ export type DeploymentGetConfigDeploymentsMessages = {
|
|
|
1546
1518
|
content:
|
|
1547
1519
|
| string
|
|
1548
1520
|
| Array<
|
|
1549
|
-
|
|
|
1550
|
-
|
|
|
1551
|
-
|
|
|
1521
|
+
| DeploymentGetConfig21
|
|
1522
|
+
| DeploymentGetConfig2Deployments2
|
|
1523
|
+
| DeploymentGetConfig23
|
|
1552
1524
|
>;
|
|
1553
1525
|
toolCalls?: Array<DeploymentGetConfigToolCalls> | undefined;
|
|
1554
1526
|
toolCallId?: string | undefined;
|
|
@@ -1878,7 +1850,7 @@ export type DeploymentGetConfigResponseBody = {
|
|
|
1878
1850
|
* The current version of the deployment
|
|
1879
1851
|
*/
|
|
1880
1852
|
version: string;
|
|
1881
|
-
messages: Array<
|
|
1853
|
+
messages: Array<DeploymentGetConfigMessages>;
|
|
1882
1854
|
/**
|
|
1883
1855
|
* Model Parameters: Not all parameters apply to every model
|
|
1884
1856
|
*/
|
|
@@ -1890,94 +1862,88 @@ export type DeploymentGetConfigResponseBody = {
|
|
|
1890
1862
|
};
|
|
1891
1863
|
|
|
1892
1864
|
/** @internal */
|
|
1893
|
-
export const
|
|
1865
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema:
|
|
1894
1866
|
z.ZodNativeEnum<
|
|
1895
|
-
typeof
|
|
1896
|
-
> = z.nativeEnum(
|
|
1897
|
-
DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole,
|
|
1898
|
-
);
|
|
1867
|
+
typeof DeploymentGetConfigPrefixMessagesDeploymentsRequestRole
|
|
1868
|
+
> = z.nativeEnum(DeploymentGetConfigPrefixMessagesDeploymentsRequestRole);
|
|
1899
1869
|
|
|
1900
1870
|
/** @internal */
|
|
1901
|
-
export const
|
|
1871
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$outboundSchema:
|
|
1902
1872
|
z.ZodNativeEnum<
|
|
1903
|
-
typeof
|
|
1904
|
-
> =
|
|
1905
|
-
DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema;
|
|
1873
|
+
typeof DeploymentGetConfigPrefixMessagesDeploymentsRequestRole
|
|
1874
|
+
> = DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema;
|
|
1906
1875
|
|
|
1907
1876
|
/**
|
|
1908
1877
|
* @internal
|
|
1909
1878
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1910
1879
|
*/
|
|
1911
|
-
export namespace
|
|
1912
|
-
/** @deprecated use `
|
|
1880
|
+
export namespace DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$ {
|
|
1881
|
+
/** @deprecated use `DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema` instead. */
|
|
1913
1882
|
export const inboundSchema =
|
|
1914
|
-
|
|
1915
|
-
/** @deprecated use `
|
|
1883
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema;
|
|
1884
|
+
/** @deprecated use `DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$outboundSchema` instead. */
|
|
1916
1885
|
export const outboundSchema =
|
|
1917
|
-
|
|
1886
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$outboundSchema;
|
|
1918
1887
|
}
|
|
1919
1888
|
|
|
1920
1889
|
/** @internal */
|
|
1921
|
-
export const
|
|
1922
|
-
|
|
1923
|
-
|
|
1924
|
-
|
|
1925
|
-
|
|
1926
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
1890
|
+
export const DeploymentGetConfigPrefixMessagesContent$inboundSchema: z.ZodType<
|
|
1891
|
+
DeploymentGetConfigPrefixMessagesContent,
|
|
1892
|
+
z.ZodTypeDef,
|
|
1893
|
+
unknown
|
|
1894
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
1927
1895
|
|
|
1928
1896
|
/** @internal */
|
|
1929
|
-
export type
|
|
1897
|
+
export type DeploymentGetConfigPrefixMessagesContent$Outbound =
|
|
1930
1898
|
| string
|
|
1931
1899
|
| Array<string>;
|
|
1932
1900
|
|
|
1933
1901
|
/** @internal */
|
|
1934
|
-
export const
|
|
1935
|
-
|
|
1936
|
-
|
|
1937
|
-
|
|
1938
|
-
|
|
1939
|
-
> = z.union([z.string(), z.array(z.string())]);
|
|
1902
|
+
export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
|
|
1903
|
+
DeploymentGetConfigPrefixMessagesContent$Outbound,
|
|
1904
|
+
z.ZodTypeDef,
|
|
1905
|
+
DeploymentGetConfigPrefixMessagesContent
|
|
1906
|
+
> = z.union([z.string(), z.array(z.string())]);
|
|
1940
1907
|
|
|
1941
1908
|
/**
|
|
1942
1909
|
* @internal
|
|
1943
1910
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1944
1911
|
*/
|
|
1945
|
-
export namespace
|
|
1946
|
-
/** @deprecated use `
|
|
1912
|
+
export namespace DeploymentGetConfigPrefixMessagesContent$ {
|
|
1913
|
+
/** @deprecated use `DeploymentGetConfigPrefixMessagesContent$inboundSchema` instead. */
|
|
1947
1914
|
export const inboundSchema =
|
|
1948
|
-
|
|
1949
|
-
/** @deprecated use `
|
|
1915
|
+
DeploymentGetConfigPrefixMessagesContent$inboundSchema;
|
|
1916
|
+
/** @deprecated use `DeploymentGetConfigPrefixMessagesContent$outboundSchema` instead. */
|
|
1950
1917
|
export const outboundSchema =
|
|
1951
|
-
|
|
1952
|
-
/** @deprecated use `
|
|
1953
|
-
export type Outbound =
|
|
1954
|
-
DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound;
|
|
1918
|
+
DeploymentGetConfigPrefixMessagesContent$outboundSchema;
|
|
1919
|
+
/** @deprecated use `DeploymentGetConfigPrefixMessagesContent$Outbound` instead. */
|
|
1920
|
+
export type Outbound = DeploymentGetConfigPrefixMessagesContent$Outbound;
|
|
1955
1921
|
}
|
|
1956
1922
|
|
|
1957
|
-
export function
|
|
1958
|
-
|
|
1959
|
-
|
|
1923
|
+
export function deploymentGetConfigPrefixMessagesContentToJSON(
|
|
1924
|
+
deploymentGetConfigPrefixMessagesContent:
|
|
1925
|
+
DeploymentGetConfigPrefixMessagesContent,
|
|
1960
1926
|
): string {
|
|
1961
1927
|
return JSON.stringify(
|
|
1962
|
-
|
|
1963
|
-
|
|
1928
|
+
DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(
|
|
1929
|
+
deploymentGetConfigPrefixMessagesContent,
|
|
1964
1930
|
),
|
|
1965
1931
|
);
|
|
1966
1932
|
}
|
|
1967
1933
|
|
|
1968
|
-
export function
|
|
1934
|
+
export function deploymentGetConfigPrefixMessagesContentFromJSON(
|
|
1969
1935
|
jsonString: string,
|
|
1970
1936
|
): SafeParseResult<
|
|
1971
|
-
|
|
1937
|
+
DeploymentGetConfigPrefixMessagesContent,
|
|
1972
1938
|
SDKValidationError
|
|
1973
1939
|
> {
|
|
1974
1940
|
return safeParse(
|
|
1975
1941
|
jsonString,
|
|
1976
1942
|
(x) =>
|
|
1977
|
-
|
|
1943
|
+
DeploymentGetConfigPrefixMessagesContent$inboundSchema.parse(
|
|
1978
1944
|
JSON.parse(x),
|
|
1979
1945
|
),
|
|
1980
|
-
`Failed to parse '
|
|
1946
|
+
`Failed to parse 'DeploymentGetConfigPrefixMessagesContent' from JSON`,
|
|
1981
1947
|
);
|
|
1982
1948
|
}
|
|
1983
1949
|
|
|
@@ -1987,8 +1953,7 @@ export const ToolMessage$inboundSchema: z.ZodType<
|
|
|
1987
1953
|
z.ZodTypeDef,
|
|
1988
1954
|
unknown
|
|
1989
1955
|
> = z.object({
|
|
1990
|
-
role:
|
|
1991
|
-
DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema,
|
|
1956
|
+
role: DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema,
|
|
1992
1957
|
content: z.union([z.string(), z.array(z.string())]),
|
|
1993
1958
|
tool_call_id: z.string(),
|
|
1994
1959
|
}).transform((v) => {
|
|
@@ -2010,8 +1975,7 @@ export const ToolMessage$outboundSchema: z.ZodType<
|
|
|
2010
1975
|
z.ZodTypeDef,
|
|
2011
1976
|
ToolMessage
|
|
2012
1977
|
> = z.object({
|
|
2013
|
-
role:
|
|
2014
|
-
DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyRole$outboundSchema,
|
|
1978
|
+
role: DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$outboundSchema,
|
|
2015
1979
|
content: z.union([z.string(), z.array(z.string())]),
|
|
2016
1980
|
toolCallId: z.string(),
|
|
2017
1981
|
}).transform((v) => {
|
|
@@ -2048,31 +2012,28 @@ export function toolMessageFromJSON(
|
|
|
2048
2012
|
}
|
|
2049
2013
|
|
|
2050
2014
|
/** @internal */
|
|
2051
|
-
export const
|
|
2015
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema:
|
|
2052
2016
|
z.ZodNativeEnum<
|
|
2053
|
-
typeof
|
|
2054
|
-
> = z.nativeEnum(
|
|
2055
|
-
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type,
|
|
2056
|
-
);
|
|
2017
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
|
|
2018
|
+
> = z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyType);
|
|
2057
2019
|
|
|
2058
2020
|
/** @internal */
|
|
2059
|
-
export const
|
|
2021
|
+
export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema:
|
|
2060
2022
|
z.ZodNativeEnum<
|
|
2061
|
-
typeof
|
|
2062
|
-
> =
|
|
2063
|
-
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type$inboundSchema;
|
|
2023
|
+
typeof DeploymentGetConfig2DeploymentsRequestRequestBodyType
|
|
2024
|
+
> = DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema;
|
|
2064
2025
|
|
|
2065
2026
|
/**
|
|
2066
2027
|
* @internal
|
|
2067
2028
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2068
2029
|
*/
|
|
2069
|
-
export namespace
|
|
2070
|
-
/** @deprecated use `
|
|
2030
|
+
export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyType$ {
|
|
2031
|
+
/** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema` instead. */
|
|
2071
2032
|
export const inboundSchema =
|
|
2072
|
-
|
|
2073
|
-
/** @deprecated use `
|
|
2033
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema;
|
|
2034
|
+
/** @deprecated use `DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema` instead. */
|
|
2074
2035
|
export const outboundSchema =
|
|
2075
|
-
|
|
2036
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema;
|
|
2076
2037
|
}
|
|
2077
2038
|
|
|
2078
2039
|
/** @internal */
|
|
@@ -2081,8 +2042,7 @@ export const RefusalContentPart$inboundSchema: z.ZodType<
|
|
|
2081
2042
|
z.ZodTypeDef,
|
|
2082
2043
|
unknown
|
|
2083
2044
|
> = z.object({
|
|
2084
|
-
type:
|
|
2085
|
-
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type$inboundSchema,
|
|
2045
|
+
type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema,
|
|
2086
2046
|
refusal: z.string(),
|
|
2087
2047
|
});
|
|
2088
2048
|
|
|
@@ -2098,8 +2058,7 @@ export const RefusalContentPart$outboundSchema: z.ZodType<
|
|
|
2098
2058
|
z.ZodTypeDef,
|
|
2099
2059
|
RefusalContentPart
|
|
2100
2060
|
> = z.object({
|
|
2101
|
-
type:
|
|
2102
|
-
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessages4Type$outboundSchema,
|
|
2061
|
+
type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
|
|
2103
2062
|
refusal: z.string(),
|
|
2104
2063
|
});
|
|
2105
2064
|
|
|
@@ -2135,31 +2094,26 @@ export function refusalContentPartFromJSON(
|
|
|
2135
2094
|
}
|
|
2136
2095
|
|
|
2137
2096
|
/** @internal */
|
|
2138
|
-
export const
|
|
2139
|
-
z.ZodNativeEnum<
|
|
2140
|
-
|
|
2141
|
-
> = z.nativeEnum(
|
|
2142
|
-
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType,
|
|
2143
|
-
);
|
|
2097
|
+
export const DeploymentGetConfig2DeploymentsRequestType$inboundSchema:
|
|
2098
|
+
z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestType> = z
|
|
2099
|
+
.nativeEnum(DeploymentGetConfig2DeploymentsRequestType);
|
|
2144
2100
|
|
|
2145
2101
|
/** @internal */
|
|
2146
|
-
export const
|
|
2147
|
-
z.ZodNativeEnum<
|
|
2148
|
-
|
|
2149
|
-
> =
|
|
2150
|
-
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema;
|
|
2102
|
+
export const DeploymentGetConfig2DeploymentsRequestType$outboundSchema:
|
|
2103
|
+
z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsRequestType> =
|
|
2104
|
+
DeploymentGetConfig2DeploymentsRequestType$inboundSchema;
|
|
2151
2105
|
|
|
2152
2106
|
/**
|
|
2153
2107
|
* @internal
|
|
2154
2108
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2155
2109
|
*/
|
|
2156
|
-
export namespace
|
|
2157
|
-
/** @deprecated use `
|
|
2110
|
+
export namespace DeploymentGetConfig2DeploymentsRequestType$ {
|
|
2111
|
+
/** @deprecated use `DeploymentGetConfig2DeploymentsRequestType$inboundSchema` instead. */
|
|
2158
2112
|
export const inboundSchema =
|
|
2159
|
-
|
|
2160
|
-
/** @deprecated use `
|
|
2113
|
+
DeploymentGetConfig2DeploymentsRequestType$inboundSchema;
|
|
2114
|
+
/** @deprecated use `DeploymentGetConfig2DeploymentsRequestType$outboundSchema` instead. */
|
|
2161
2115
|
export const outboundSchema =
|
|
2162
|
-
|
|
2116
|
+
DeploymentGetConfig2DeploymentsRequestType$outboundSchema;
|
|
2163
2117
|
}
|
|
2164
2118
|
|
|
2165
2119
|
/** @internal */
|
|
@@ -2530,8 +2484,7 @@ export const TextContentPart$inboundSchema: z.ZodType<
|
|
|
2530
2484
|
z.ZodTypeDef,
|
|
2531
2485
|
unknown
|
|
2532
2486
|
> = z.object({
|
|
2533
|
-
type:
|
|
2534
|
-
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema,
|
|
2487
|
+
type: DeploymentGetConfig2DeploymentsRequestType$inboundSchema,
|
|
2535
2488
|
text: z.string(),
|
|
2536
2489
|
annotations: z.array(
|
|
2537
2490
|
z.union([
|
|
@@ -2556,8 +2509,7 @@ export const TextContentPart$outboundSchema: z.ZodType<
|
|
|
2556
2509
|
z.ZodTypeDef,
|
|
2557
2510
|
TextContentPart
|
|
2558
2511
|
> = z.object({
|
|
2559
|
-
type:
|
|
2560
|
-
DeploymentGetConfig2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema,
|
|
2512
|
+
type: DeploymentGetConfig2DeploymentsRequestType$outboundSchema,
|
|
2561
2513
|
text: z.string(),
|
|
2562
2514
|
annotations: z.array(
|
|
2563
2515
|
z.union([
|
|
@@ -2597,8 +2549,8 @@ export function textContentPartFromJSON(
|
|
|
2597
2549
|
}
|
|
2598
2550
|
|
|
2599
2551
|
/** @internal */
|
|
2600
|
-
export const
|
|
2601
|
-
|
|
2552
|
+
export const Content2$inboundSchema: z.ZodType<
|
|
2553
|
+
Content2,
|
|
2602
2554
|
z.ZodTypeDef,
|
|
2603
2555
|
unknown
|
|
2604
2556
|
> = z.union([
|
|
@@ -2607,15 +2559,15 @@ export const DeploymentGetConfigContent2$inboundSchema: z.ZodType<
|
|
|
2607
2559
|
]);
|
|
2608
2560
|
|
|
2609
2561
|
/** @internal */
|
|
2610
|
-
export type
|
|
2562
|
+
export type Content2$Outbound =
|
|
2611
2563
|
| TextContentPart$Outbound
|
|
2612
2564
|
| RefusalContentPart$Outbound;
|
|
2613
2565
|
|
|
2614
2566
|
/** @internal */
|
|
2615
|
-
export const
|
|
2616
|
-
|
|
2567
|
+
export const Content2$outboundSchema: z.ZodType<
|
|
2568
|
+
Content2$Outbound,
|
|
2617
2569
|
z.ZodTypeDef,
|
|
2618
|
-
|
|
2570
|
+
Content2
|
|
2619
2571
|
> = z.union([
|
|
2620
2572
|
z.lazy(() => TextContentPart$outboundSchema),
|
|
2621
2573
|
z.lazy(() => RefusalContentPart$outboundSchema),
|
|
@@ -2625,38 +2577,32 @@ export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
|
|
|
2625
2577
|
* @internal
|
|
2626
2578
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2627
2579
|
*/
|
|
2628
|
-
export namespace
|
|
2629
|
-
/** @deprecated use `
|
|
2630
|
-
export const inboundSchema =
|
|
2631
|
-
/** @deprecated use `
|
|
2632
|
-
export const outboundSchema =
|
|
2633
|
-
/** @deprecated use `
|
|
2634
|
-
export type Outbound =
|
|
2580
|
+
export namespace Content2$ {
|
|
2581
|
+
/** @deprecated use `Content2$inboundSchema` instead. */
|
|
2582
|
+
export const inboundSchema = Content2$inboundSchema;
|
|
2583
|
+
/** @deprecated use `Content2$outboundSchema` instead. */
|
|
2584
|
+
export const outboundSchema = Content2$outboundSchema;
|
|
2585
|
+
/** @deprecated use `Content2$Outbound` instead. */
|
|
2586
|
+
export type Outbound = Content2$Outbound;
|
|
2635
2587
|
}
|
|
2636
2588
|
|
|
2637
|
-
export function
|
|
2638
|
-
|
|
2639
|
-
): string {
|
|
2640
|
-
return JSON.stringify(
|
|
2641
|
-
DeploymentGetConfigContent2$outboundSchema.parse(
|
|
2642
|
-
deploymentGetConfigContent2,
|
|
2643
|
-
),
|
|
2644
|
-
);
|
|
2589
|
+
export function content2ToJSON(content2: Content2): string {
|
|
2590
|
+
return JSON.stringify(Content2$outboundSchema.parse(content2));
|
|
2645
2591
|
}
|
|
2646
2592
|
|
|
2647
|
-
export function
|
|
2593
|
+
export function content2FromJSON(
|
|
2648
2594
|
jsonString: string,
|
|
2649
|
-
): SafeParseResult<
|
|
2595
|
+
): SafeParseResult<Content2, SDKValidationError> {
|
|
2650
2596
|
return safeParse(
|
|
2651
2597
|
jsonString,
|
|
2652
|
-
(x) =>
|
|
2653
|
-
`Failed to parse '
|
|
2598
|
+
(x) => Content2$inboundSchema.parse(JSON.parse(x)),
|
|
2599
|
+
`Failed to parse 'Content2' from JSON`,
|
|
2654
2600
|
);
|
|
2655
2601
|
}
|
|
2656
2602
|
|
|
2657
2603
|
/** @internal */
|
|
2658
|
-
export const
|
|
2659
|
-
|
|
2604
|
+
export const PrefixMessagesContent$inboundSchema: z.ZodType<
|
|
2605
|
+
PrefixMessagesContent,
|
|
2660
2606
|
z.ZodTypeDef,
|
|
2661
2607
|
unknown
|
|
2662
2608
|
> = z.union([
|
|
@@ -2668,15 +2614,15 @@ export const DeploymentGetConfigPrefixMessagesContent$inboundSchema: z.ZodType<
|
|
|
2668
2614
|
]);
|
|
2669
2615
|
|
|
2670
2616
|
/** @internal */
|
|
2671
|
-
export type
|
|
2617
|
+
export type PrefixMessagesContent$Outbound =
|
|
2672
2618
|
| string
|
|
2673
2619
|
| Array<TextContentPart$Outbound | RefusalContentPart$Outbound>;
|
|
2674
2620
|
|
|
2675
2621
|
/** @internal */
|
|
2676
|
-
export const
|
|
2677
|
-
|
|
2622
|
+
export const PrefixMessagesContent$outboundSchema: z.ZodType<
|
|
2623
|
+
PrefixMessagesContent$Outbound,
|
|
2678
2624
|
z.ZodTypeDef,
|
|
2679
|
-
|
|
2625
|
+
PrefixMessagesContent
|
|
2680
2626
|
> = z.union([
|
|
2681
2627
|
z.string(),
|
|
2682
2628
|
z.array(z.union([
|
|
@@ -2689,67 +2635,54 @@ export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
|
|
|
2689
2635
|
* @internal
|
|
2690
2636
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2691
2637
|
*/
|
|
2692
|
-
export namespace
|
|
2693
|
-
/** @deprecated use `
|
|
2694
|
-
export const inboundSchema =
|
|
2695
|
-
|
|
2696
|
-
|
|
2697
|
-
|
|
2698
|
-
|
|
2699
|
-
/** @deprecated use `DeploymentGetConfigPrefixMessagesContent$Outbound` instead. */
|
|
2700
|
-
export type Outbound = DeploymentGetConfigPrefixMessagesContent$Outbound;
|
|
2638
|
+
export namespace PrefixMessagesContent$ {
|
|
2639
|
+
/** @deprecated use `PrefixMessagesContent$inboundSchema` instead. */
|
|
2640
|
+
export const inboundSchema = PrefixMessagesContent$inboundSchema;
|
|
2641
|
+
/** @deprecated use `PrefixMessagesContent$outboundSchema` instead. */
|
|
2642
|
+
export const outboundSchema = PrefixMessagesContent$outboundSchema;
|
|
2643
|
+
/** @deprecated use `PrefixMessagesContent$Outbound` instead. */
|
|
2644
|
+
export type Outbound = PrefixMessagesContent$Outbound;
|
|
2701
2645
|
}
|
|
2702
2646
|
|
|
2703
|
-
export function
|
|
2704
|
-
|
|
2705
|
-
DeploymentGetConfigPrefixMessagesContent,
|
|
2647
|
+
export function prefixMessagesContentToJSON(
|
|
2648
|
+
prefixMessagesContent: PrefixMessagesContent,
|
|
2706
2649
|
): string {
|
|
2707
2650
|
return JSON.stringify(
|
|
2708
|
-
|
|
2709
|
-
deploymentGetConfigPrefixMessagesContent,
|
|
2710
|
-
),
|
|
2651
|
+
PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
|
|
2711
2652
|
);
|
|
2712
2653
|
}
|
|
2713
2654
|
|
|
2714
|
-
export function
|
|
2655
|
+
export function prefixMessagesContentFromJSON(
|
|
2715
2656
|
jsonString: string,
|
|
2716
|
-
): SafeParseResult<
|
|
2717
|
-
DeploymentGetConfigPrefixMessagesContent,
|
|
2718
|
-
SDKValidationError
|
|
2719
|
-
> {
|
|
2657
|
+
): SafeParseResult<PrefixMessagesContent, SDKValidationError> {
|
|
2720
2658
|
return safeParse(
|
|
2721
2659
|
jsonString,
|
|
2722
|
-
(x) =>
|
|
2723
|
-
|
|
2724
|
-
JSON.parse(x),
|
|
2725
|
-
),
|
|
2726
|
-
`Failed to parse 'DeploymentGetConfigPrefixMessagesContent' from JSON`,
|
|
2660
|
+
(x) => PrefixMessagesContent$inboundSchema.parse(JSON.parse(x)),
|
|
2661
|
+
`Failed to parse 'PrefixMessagesContent' from JSON`,
|
|
2727
2662
|
);
|
|
2728
2663
|
}
|
|
2729
2664
|
|
|
2730
2665
|
/** @internal */
|
|
2731
|
-
export const
|
|
2732
|
-
z.ZodNativeEnum<
|
|
2733
|
-
|
|
2734
|
-
> = z.nativeEnum(DeploymentGetConfigPrefixMessagesDeploymentsRequestRole);
|
|
2666
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsRole$inboundSchema:
|
|
2667
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesDeploymentsRole> = z
|
|
2668
|
+
.nativeEnum(DeploymentGetConfigPrefixMessagesDeploymentsRole);
|
|
2735
2669
|
|
|
2736
2670
|
/** @internal */
|
|
2737
|
-
export const
|
|
2738
|
-
z.ZodNativeEnum<
|
|
2739
|
-
|
|
2740
|
-
> = DeploymentGetConfigPrefixMessagesDeploymentsRequestRole$inboundSchema;
|
|
2671
|
+
export const DeploymentGetConfigPrefixMessagesDeploymentsRole$outboundSchema:
|
|
2672
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesDeploymentsRole> =
|
|
2673
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRole$inboundSchema;
|
|
2741
2674
|
|
|
2742
2675
|
/**
|
|
2743
2676
|
* @internal
|
|
2744
2677
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2745
2678
|
*/
|
|
2746
|
-
export namespace
|
|
2747
|
-
/** @deprecated use `
|
|
2679
|
+
export namespace DeploymentGetConfigPrefixMessagesDeploymentsRole$ {
|
|
2680
|
+
/** @deprecated use `DeploymentGetConfigPrefixMessagesDeploymentsRole$inboundSchema` instead. */
|
|
2748
2681
|
export const inboundSchema =
|
|
2749
|
-
|
|
2750
|
-
/** @deprecated use `
|
|
2682
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRole$inboundSchema;
|
|
2683
|
+
/** @deprecated use `DeploymentGetConfigPrefixMessagesDeploymentsRole$outboundSchema` instead. */
|
|
2751
2684
|
export const outboundSchema =
|
|
2752
|
-
|
|
2685
|
+
DeploymentGetConfigPrefixMessagesDeploymentsRole$outboundSchema;
|
|
2753
2686
|
}
|
|
2754
2687
|
|
|
2755
2688
|
/** @internal */
|
|
@@ -2821,8 +2754,8 @@ export namespace PrefixMessagesType$ {
|
|
|
2821
2754
|
}
|
|
2822
2755
|
|
|
2823
2756
|
/** @internal */
|
|
2824
|
-
export const
|
|
2825
|
-
|
|
2757
|
+
export const FunctionT$inboundSchema: z.ZodType<
|
|
2758
|
+
FunctionT,
|
|
2826
2759
|
z.ZodTypeDef,
|
|
2827
2760
|
unknown
|
|
2828
2761
|
> = z.object({
|
|
@@ -2831,16 +2764,16 @@ export const PrefixMessagesFunction$inboundSchema: z.ZodType<
|
|
|
2831
2764
|
});
|
|
2832
2765
|
|
|
2833
2766
|
/** @internal */
|
|
2834
|
-
export type
|
|
2767
|
+
export type FunctionT$Outbound = {
|
|
2835
2768
|
name?: string | undefined;
|
|
2836
2769
|
arguments?: string | undefined;
|
|
2837
2770
|
};
|
|
2838
2771
|
|
|
2839
2772
|
/** @internal */
|
|
2840
|
-
export const
|
|
2841
|
-
|
|
2773
|
+
export const FunctionT$outboundSchema: z.ZodType<
|
|
2774
|
+
FunctionT$Outbound,
|
|
2842
2775
|
z.ZodTypeDef,
|
|
2843
|
-
|
|
2776
|
+
FunctionT
|
|
2844
2777
|
> = z.object({
|
|
2845
2778
|
name: z.string().optional(),
|
|
2846
2779
|
arguments: z.string().optional(),
|
|
@@ -2850,90 +2783,82 @@ export const PrefixMessagesFunction$outboundSchema: z.ZodType<
|
|
|
2850
2783
|
* @internal
|
|
2851
2784
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2852
2785
|
*/
|
|
2853
|
-
export namespace
|
|
2854
|
-
/** @deprecated use `
|
|
2855
|
-
export const inboundSchema =
|
|
2856
|
-
/** @deprecated use `
|
|
2857
|
-
export const outboundSchema =
|
|
2858
|
-
/** @deprecated use `
|
|
2859
|
-
export type Outbound =
|
|
2786
|
+
export namespace FunctionT$ {
|
|
2787
|
+
/** @deprecated use `FunctionT$inboundSchema` instead. */
|
|
2788
|
+
export const inboundSchema = FunctionT$inboundSchema;
|
|
2789
|
+
/** @deprecated use `FunctionT$outboundSchema` instead. */
|
|
2790
|
+
export const outboundSchema = FunctionT$outboundSchema;
|
|
2791
|
+
/** @deprecated use `FunctionT$Outbound` instead. */
|
|
2792
|
+
export type Outbound = FunctionT$Outbound;
|
|
2860
2793
|
}
|
|
2861
2794
|
|
|
2862
|
-
export function
|
|
2863
|
-
|
|
2864
|
-
): string {
|
|
2865
|
-
return JSON.stringify(
|
|
2866
|
-
PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
|
|
2867
|
-
);
|
|
2795
|
+
export function functionToJSON(functionT: FunctionT): string {
|
|
2796
|
+
return JSON.stringify(FunctionT$outboundSchema.parse(functionT));
|
|
2868
2797
|
}
|
|
2869
2798
|
|
|
2870
|
-
export function
|
|
2799
|
+
export function functionFromJSON(
|
|
2871
2800
|
jsonString: string,
|
|
2872
|
-
): SafeParseResult<
|
|
2801
|
+
): SafeParseResult<FunctionT, SDKValidationError> {
|
|
2873
2802
|
return safeParse(
|
|
2874
2803
|
jsonString,
|
|
2875
|
-
(x) =>
|
|
2876
|
-
`Failed to parse '
|
|
2804
|
+
(x) => FunctionT$inboundSchema.parse(JSON.parse(x)),
|
|
2805
|
+
`Failed to parse 'FunctionT' from JSON`,
|
|
2877
2806
|
);
|
|
2878
2807
|
}
|
|
2879
2808
|
|
|
2880
2809
|
/** @internal */
|
|
2881
|
-
export const
|
|
2882
|
-
|
|
2810
|
+
export const ToolCalls$inboundSchema: z.ZodType<
|
|
2811
|
+
ToolCalls,
|
|
2883
2812
|
z.ZodTypeDef,
|
|
2884
2813
|
unknown
|
|
2885
2814
|
> = z.object({
|
|
2886
2815
|
id: z.string(),
|
|
2887
2816
|
type: PrefixMessagesType$inboundSchema,
|
|
2888
|
-
function: z.lazy(() =>
|
|
2817
|
+
function: z.lazy(() => FunctionT$inboundSchema),
|
|
2889
2818
|
});
|
|
2890
2819
|
|
|
2891
2820
|
/** @internal */
|
|
2892
|
-
export type
|
|
2821
|
+
export type ToolCalls$Outbound = {
|
|
2893
2822
|
id: string;
|
|
2894
2823
|
type: string;
|
|
2895
|
-
function:
|
|
2824
|
+
function: FunctionT$Outbound;
|
|
2896
2825
|
};
|
|
2897
2826
|
|
|
2898
2827
|
/** @internal */
|
|
2899
|
-
export const
|
|
2900
|
-
|
|
2828
|
+
export const ToolCalls$outboundSchema: z.ZodType<
|
|
2829
|
+
ToolCalls$Outbound,
|
|
2901
2830
|
z.ZodTypeDef,
|
|
2902
|
-
|
|
2831
|
+
ToolCalls
|
|
2903
2832
|
> = z.object({
|
|
2904
2833
|
id: z.string(),
|
|
2905
2834
|
type: PrefixMessagesType$outboundSchema,
|
|
2906
|
-
function: z.lazy(() =>
|
|
2835
|
+
function: z.lazy(() => FunctionT$outboundSchema),
|
|
2907
2836
|
});
|
|
2908
2837
|
|
|
2909
2838
|
/**
|
|
2910
2839
|
* @internal
|
|
2911
2840
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2912
2841
|
*/
|
|
2913
|
-
export namespace
|
|
2914
|
-
/** @deprecated use `
|
|
2915
|
-
export const inboundSchema =
|
|
2916
|
-
/** @deprecated use `
|
|
2917
|
-
export const outboundSchema =
|
|
2918
|
-
/** @deprecated use `
|
|
2919
|
-
export type Outbound =
|
|
2842
|
+
export namespace ToolCalls$ {
|
|
2843
|
+
/** @deprecated use `ToolCalls$inboundSchema` instead. */
|
|
2844
|
+
export const inboundSchema = ToolCalls$inboundSchema;
|
|
2845
|
+
/** @deprecated use `ToolCalls$outboundSchema` instead. */
|
|
2846
|
+
export const outboundSchema = ToolCalls$outboundSchema;
|
|
2847
|
+
/** @deprecated use `ToolCalls$Outbound` instead. */
|
|
2848
|
+
export type Outbound = ToolCalls$Outbound;
|
|
2920
2849
|
}
|
|
2921
2850
|
|
|
2922
|
-
export function
|
|
2923
|
-
|
|
2924
|
-
): string {
|
|
2925
|
-
return JSON.stringify(
|
|
2926
|
-
PrefixMessagesToolCalls$outboundSchema.parse(prefixMessagesToolCalls),
|
|
2927
|
-
);
|
|
2851
|
+
export function toolCallsToJSON(toolCalls: ToolCalls): string {
|
|
2852
|
+
return JSON.stringify(ToolCalls$outboundSchema.parse(toolCalls));
|
|
2928
2853
|
}
|
|
2929
2854
|
|
|
2930
|
-
export function
|
|
2855
|
+
export function toolCallsFromJSON(
|
|
2931
2856
|
jsonString: string,
|
|
2932
|
-
): SafeParseResult<
|
|
2857
|
+
): SafeParseResult<ToolCalls, SDKValidationError> {
|
|
2933
2858
|
return safeParse(
|
|
2934
2859
|
jsonString,
|
|
2935
|
-
(x) =>
|
|
2936
|
-
`Failed to parse '
|
|
2860
|
+
(x) => ToolCalls$inboundSchema.parse(JSON.parse(x)),
|
|
2861
|
+
`Failed to parse 'ToolCalls' from JSON`,
|
|
2937
2862
|
);
|
|
2938
2863
|
}
|
|
2939
2864
|
|
|
@@ -2953,11 +2878,10 @@ export const AssistantMessage$inboundSchema: z.ZodType<
|
|
|
2953
2878
|
]),
|
|
2954
2879
|
).optional(),
|
|
2955
2880
|
refusal: z.nullable(z.string()).optional(),
|
|
2956
|
-
role:
|
|
2881
|
+
role: DeploymentGetConfigPrefixMessagesDeploymentsRole$inboundSchema,
|
|
2957
2882
|
name: z.string().optional(),
|
|
2958
2883
|
audio: z.nullable(z.lazy(() => Audio$inboundSchema)).optional(),
|
|
2959
|
-
tool_calls: z.array(z.lazy(() =>
|
|
2960
|
-
.optional(),
|
|
2884
|
+
tool_calls: z.array(z.lazy(() => ToolCalls$inboundSchema)).optional(),
|
|
2961
2885
|
reasoning: z.string().optional(),
|
|
2962
2886
|
reasoning_signature: z.string().optional(),
|
|
2963
2887
|
redacted_reasoning: z.string().optional(),
|
|
@@ -2980,7 +2904,7 @@ export type AssistantMessage$Outbound = {
|
|
|
2980
2904
|
role: string;
|
|
2981
2905
|
name?: string | undefined;
|
|
2982
2906
|
audio?: Audio$Outbound | null | undefined;
|
|
2983
|
-
tool_calls?: Array<
|
|
2907
|
+
tool_calls?: Array<ToolCalls$Outbound> | undefined;
|
|
2984
2908
|
reasoning?: string | undefined;
|
|
2985
2909
|
reasoning_signature?: string | undefined;
|
|
2986
2910
|
redacted_reasoning?: string | undefined;
|
|
@@ -3004,11 +2928,10 @@ export const AssistantMessage$outboundSchema: z.ZodType<
|
|
|
3004
2928
|
]),
|
|
3005
2929
|
).optional(),
|
|
3006
2930
|
refusal: z.nullable(z.string()).optional(),
|
|
3007
|
-
role:
|
|
2931
|
+
role: DeploymentGetConfigPrefixMessagesDeploymentsRole$outboundSchema,
|
|
3008
2932
|
name: z.string().optional(),
|
|
3009
2933
|
audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
|
|
3010
|
-
toolCalls: z.array(z.lazy(() =>
|
|
3011
|
-
.optional(),
|
|
2934
|
+
toolCalls: z.array(z.lazy(() => ToolCalls$outboundSchema)).optional(),
|
|
3012
2935
|
reasoning: z.string().optional(),
|
|
3013
2936
|
reasoningSignature: z.string().optional(),
|
|
3014
2937
|
redactedReasoning: z.string().optional(),
|
|
@@ -3052,56 +2975,55 @@ export function assistantMessageFromJSON(
|
|
|
3052
2975
|
}
|
|
3053
2976
|
|
|
3054
2977
|
/** @internal */
|
|
3055
|
-
export const
|
|
3056
|
-
z.ZodNativeEnum<typeof
|
|
3057
|
-
|
|
2978
|
+
export const DeploymentGetConfigPrefixMessagesRole$inboundSchema:
|
|
2979
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesRole> = z.nativeEnum(
|
|
2980
|
+
DeploymentGetConfigPrefixMessagesRole,
|
|
2981
|
+
);
|
|
3058
2982
|
|
|
3059
2983
|
/** @internal */
|
|
3060
|
-
export const
|
|
3061
|
-
z.ZodNativeEnum<typeof
|
|
3062
|
-
|
|
2984
|
+
export const DeploymentGetConfigPrefixMessagesRole$outboundSchema:
|
|
2985
|
+
z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesRole> =
|
|
2986
|
+
DeploymentGetConfigPrefixMessagesRole$inboundSchema;
|
|
3063
2987
|
|
|
3064
2988
|
/**
|
|
3065
2989
|
* @internal
|
|
3066
2990
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3067
2991
|
*/
|
|
3068
|
-
export namespace
|
|
3069
|
-
/** @deprecated use `
|
|
2992
|
+
export namespace DeploymentGetConfigPrefixMessagesRole$ {
|
|
2993
|
+
/** @deprecated use `DeploymentGetConfigPrefixMessagesRole$inboundSchema` instead. */
|
|
3070
2994
|
export const inboundSchema =
|
|
3071
|
-
|
|
3072
|
-
/** @deprecated use `
|
|
2995
|
+
DeploymentGetConfigPrefixMessagesRole$inboundSchema;
|
|
2996
|
+
/** @deprecated use `DeploymentGetConfigPrefixMessagesRole$outboundSchema` instead. */
|
|
3073
2997
|
export const outboundSchema =
|
|
3074
|
-
|
|
2998
|
+
DeploymentGetConfigPrefixMessagesRole$outboundSchema;
|
|
3075
2999
|
}
|
|
3076
3000
|
|
|
3077
3001
|
/** @internal */
|
|
3078
|
-
export const
|
|
3079
|
-
|
|
3080
|
-
|
|
3081
|
-
> = z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyType);
|
|
3002
|
+
export const DeploymentGetConfig2DeploymentsType$inboundSchema: z.ZodNativeEnum<
|
|
3003
|
+
typeof DeploymentGetConfig2DeploymentsType
|
|
3004
|
+
> = z.nativeEnum(DeploymentGetConfig2DeploymentsType);
|
|
3082
3005
|
|
|
3083
3006
|
/** @internal */
|
|
3084
|
-
export const
|
|
3085
|
-
z.ZodNativeEnum<
|
|
3086
|
-
|
|
3087
|
-
> = DeploymentGetConfig2DeploymentsRequestRequestBodyType$inboundSchema;
|
|
3007
|
+
export const DeploymentGetConfig2DeploymentsType$outboundSchema:
|
|
3008
|
+
z.ZodNativeEnum<typeof DeploymentGetConfig2DeploymentsType> =
|
|
3009
|
+
DeploymentGetConfig2DeploymentsType$inboundSchema;
|
|
3088
3010
|
|
|
3089
3011
|
/**
|
|
3090
3012
|
* @internal
|
|
3091
3013
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3092
3014
|
*/
|
|
3093
|
-
export namespace
|
|
3094
|
-
/** @deprecated use `
|
|
3015
|
+
export namespace DeploymentGetConfig2DeploymentsType$ {
|
|
3016
|
+
/** @deprecated use `DeploymentGetConfig2DeploymentsType$inboundSchema` instead. */
|
|
3095
3017
|
export const inboundSchema =
|
|
3096
|
-
|
|
3097
|
-
/** @deprecated use `
|
|
3018
|
+
DeploymentGetConfig2DeploymentsType$inboundSchema;
|
|
3019
|
+
/** @deprecated use `DeploymentGetConfig2DeploymentsType$outboundSchema` instead. */
|
|
3098
3020
|
export const outboundSchema =
|
|
3099
|
-
|
|
3021
|
+
DeploymentGetConfig2DeploymentsType$outboundSchema;
|
|
3100
3022
|
}
|
|
3101
3023
|
|
|
3102
3024
|
/** @internal */
|
|
3103
|
-
export const
|
|
3104
|
-
|
|
3025
|
+
export const FileT$inboundSchema: z.ZodType<FileT, z.ZodTypeDef, unknown> = z
|
|
3026
|
+
.object({
|
|
3105
3027
|
file_data: z.string().optional(),
|
|
3106
3028
|
uri: z.string().optional(),
|
|
3107
3029
|
mimeType: z.string().optional(),
|
|
@@ -3113,7 +3035,7 @@ export const TwoFile$inboundSchema: z.ZodType<TwoFile, z.ZodTypeDef, unknown> =
|
|
|
3113
3035
|
});
|
|
3114
3036
|
|
|
3115
3037
|
/** @internal */
|
|
3116
|
-
export type
|
|
3038
|
+
export type FileT$Outbound = {
|
|
3117
3039
|
file_data?: string | undefined;
|
|
3118
3040
|
uri?: string | undefined;
|
|
3119
3041
|
mimeType?: string | undefined;
|
|
@@ -3121,10 +3043,10 @@ export type TwoFile$Outbound = {
|
|
|
3121
3043
|
};
|
|
3122
3044
|
|
|
3123
3045
|
/** @internal */
|
|
3124
|
-
export const
|
|
3125
|
-
|
|
3046
|
+
export const FileT$outboundSchema: z.ZodType<
|
|
3047
|
+
FileT$Outbound,
|
|
3126
3048
|
z.ZodTypeDef,
|
|
3127
|
-
|
|
3049
|
+
FileT
|
|
3128
3050
|
> = z.object({
|
|
3129
3051
|
fileData: z.string().optional(),
|
|
3130
3052
|
uri: z.string().optional(),
|
|
@@ -3140,47 +3062,47 @@ export const TwoFile$outboundSchema: z.ZodType<
|
|
|
3140
3062
|
* @internal
|
|
3141
3063
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3142
3064
|
*/
|
|
3143
|
-
export namespace
|
|
3144
|
-
/** @deprecated use `
|
|
3145
|
-
export const inboundSchema =
|
|
3146
|
-
/** @deprecated use `
|
|
3147
|
-
export const outboundSchema =
|
|
3148
|
-
/** @deprecated use `
|
|
3149
|
-
export type Outbound =
|
|
3065
|
+
export namespace FileT$ {
|
|
3066
|
+
/** @deprecated use `FileT$inboundSchema` instead. */
|
|
3067
|
+
export const inboundSchema = FileT$inboundSchema;
|
|
3068
|
+
/** @deprecated use `FileT$outboundSchema` instead. */
|
|
3069
|
+
export const outboundSchema = FileT$outboundSchema;
|
|
3070
|
+
/** @deprecated use `FileT$Outbound` instead. */
|
|
3071
|
+
export type Outbound = FileT$Outbound;
|
|
3150
3072
|
}
|
|
3151
3073
|
|
|
3152
|
-
export function
|
|
3153
|
-
return JSON.stringify(
|
|
3074
|
+
export function fileToJSON(fileT: FileT): string {
|
|
3075
|
+
return JSON.stringify(FileT$outboundSchema.parse(fileT));
|
|
3154
3076
|
}
|
|
3155
3077
|
|
|
3156
|
-
export function
|
|
3078
|
+
export function fileFromJSON(
|
|
3157
3079
|
jsonString: string,
|
|
3158
|
-
): SafeParseResult<
|
|
3080
|
+
): SafeParseResult<FileT, SDKValidationError> {
|
|
3159
3081
|
return safeParse(
|
|
3160
3082
|
jsonString,
|
|
3161
|
-
(x) =>
|
|
3162
|
-
`Failed to parse '
|
|
3083
|
+
(x) => FileT$inboundSchema.parse(JSON.parse(x)),
|
|
3084
|
+
`Failed to parse 'FileT' from JSON`,
|
|
3163
3085
|
);
|
|
3164
3086
|
}
|
|
3165
3087
|
|
|
3166
3088
|
/** @internal */
|
|
3167
3089
|
export const Four$inboundSchema: z.ZodType<Four, z.ZodTypeDef, unknown> = z
|
|
3168
3090
|
.object({
|
|
3169
|
-
type:
|
|
3170
|
-
file: z.lazy(() =>
|
|
3091
|
+
type: DeploymentGetConfig2DeploymentsType$inboundSchema,
|
|
3092
|
+
file: z.lazy(() => FileT$inboundSchema),
|
|
3171
3093
|
});
|
|
3172
3094
|
|
|
3173
3095
|
/** @internal */
|
|
3174
3096
|
export type Four$Outbound = {
|
|
3175
3097
|
type: string;
|
|
3176
|
-
file:
|
|
3098
|
+
file: FileT$Outbound;
|
|
3177
3099
|
};
|
|
3178
3100
|
|
|
3179
3101
|
/** @internal */
|
|
3180
3102
|
export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
|
|
3181
3103
|
z.object({
|
|
3182
|
-
type:
|
|
3183
|
-
file: z.lazy(() =>
|
|
3104
|
+
type: DeploymentGetConfig2DeploymentsType$outboundSchema,
|
|
3105
|
+
file: z.lazy(() => FileT$outboundSchema),
|
|
3184
3106
|
});
|
|
3185
3107
|
|
|
3186
3108
|
/**
|
|
@@ -3211,26 +3133,24 @@ export function fourFromJSON(
|
|
|
3211
3133
|
}
|
|
3212
3134
|
|
|
3213
3135
|
/** @internal */
|
|
3214
|
-
export const
|
|
3215
|
-
|
|
3216
|
-
|
|
3136
|
+
export const DeploymentGetConfig2Type$inboundSchema: z.ZodNativeEnum<
|
|
3137
|
+
typeof DeploymentGetConfig2Type
|
|
3138
|
+
> = z.nativeEnum(DeploymentGetConfig2Type);
|
|
3217
3139
|
|
|
3218
3140
|
/** @internal */
|
|
3219
|
-
export const
|
|
3220
|
-
|
|
3221
|
-
|
|
3141
|
+
export const DeploymentGetConfig2Type$outboundSchema: z.ZodNativeEnum<
|
|
3142
|
+
typeof DeploymentGetConfig2Type
|
|
3143
|
+
> = DeploymentGetConfig2Type$inboundSchema;
|
|
3222
3144
|
|
|
3223
3145
|
/**
|
|
3224
3146
|
* @internal
|
|
3225
3147
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3226
3148
|
*/
|
|
3227
|
-
export namespace
|
|
3228
|
-
/** @deprecated use `
|
|
3229
|
-
export const inboundSchema =
|
|
3230
|
-
|
|
3231
|
-
|
|
3232
|
-
export const outboundSchema =
|
|
3233
|
-
DeploymentGetConfig2DeploymentsRequestType$outboundSchema;
|
|
3149
|
+
export namespace DeploymentGetConfig2Type$ {
|
|
3150
|
+
/** @deprecated use `DeploymentGetConfig2Type$inboundSchema` instead. */
|
|
3151
|
+
export const inboundSchema = DeploymentGetConfig2Type$inboundSchema;
|
|
3152
|
+
/** @deprecated use `DeploymentGetConfig2Type$outboundSchema` instead. */
|
|
3153
|
+
export const outboundSchema = DeploymentGetConfig2Type$outboundSchema;
|
|
3234
3154
|
}
|
|
3235
3155
|
|
|
3236
3156
|
/** @internal */
|
|
@@ -3306,9 +3226,9 @@ export function inputAudioFromJSON(
|
|
|
3306
3226
|
}
|
|
3307
3227
|
|
|
3308
3228
|
/** @internal */
|
|
3309
|
-
export const
|
|
3229
|
+
export const Three$inboundSchema: z.ZodType<Three, z.ZodTypeDef, unknown> = z
|
|
3310
3230
|
.object({
|
|
3311
|
-
type:
|
|
3231
|
+
type: DeploymentGetConfig2Type$inboundSchema,
|
|
3312
3232
|
input_audio: z.lazy(() => InputAudio$inboundSchema),
|
|
3313
3233
|
}).transform((v) => {
|
|
3314
3234
|
return remap$(v, {
|
|
@@ -3317,70 +3237,69 @@ export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
|
|
|
3317
3237
|
});
|
|
3318
3238
|
|
|
3319
3239
|
/** @internal */
|
|
3320
|
-
export type
|
|
3240
|
+
export type Three$Outbound = {
|
|
3321
3241
|
type: string;
|
|
3322
3242
|
input_audio: InputAudio$Outbound;
|
|
3323
3243
|
};
|
|
3324
3244
|
|
|
3325
3245
|
/** @internal */
|
|
3326
|
-
export const
|
|
3327
|
-
|
|
3328
|
-
|
|
3329
|
-
|
|
3330
|
-
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3246
|
+
export const Three$outboundSchema: z.ZodType<
|
|
3247
|
+
Three$Outbound,
|
|
3248
|
+
z.ZodTypeDef,
|
|
3249
|
+
Three
|
|
3250
|
+
> = z.object({
|
|
3251
|
+
type: DeploymentGetConfig2Type$outboundSchema,
|
|
3252
|
+
inputAudio: z.lazy(() => InputAudio$outboundSchema),
|
|
3253
|
+
}).transform((v) => {
|
|
3254
|
+
return remap$(v, {
|
|
3255
|
+
inputAudio: "input_audio",
|
|
3334
3256
|
});
|
|
3257
|
+
});
|
|
3335
3258
|
|
|
3336
3259
|
/**
|
|
3337
3260
|
* @internal
|
|
3338
3261
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3339
3262
|
*/
|
|
3340
|
-
export namespace
|
|
3341
|
-
/** @deprecated use `
|
|
3342
|
-
export const inboundSchema =
|
|
3343
|
-
/** @deprecated use `
|
|
3344
|
-
export const outboundSchema =
|
|
3345
|
-
/** @deprecated use `
|
|
3346
|
-
export type Outbound =
|
|
3263
|
+
export namespace Three$ {
|
|
3264
|
+
/** @deprecated use `Three$inboundSchema` instead. */
|
|
3265
|
+
export const inboundSchema = Three$inboundSchema;
|
|
3266
|
+
/** @deprecated use `Three$outboundSchema` instead. */
|
|
3267
|
+
export const outboundSchema = Three$outboundSchema;
|
|
3268
|
+
/** @deprecated use `Three$Outbound` instead. */
|
|
3269
|
+
export type Outbound = Three$Outbound;
|
|
3347
3270
|
}
|
|
3348
3271
|
|
|
3349
|
-
export function
|
|
3350
|
-
return JSON.stringify(
|
|
3272
|
+
export function threeToJSON(three: Three): string {
|
|
3273
|
+
return JSON.stringify(Three$outboundSchema.parse(three));
|
|
3351
3274
|
}
|
|
3352
3275
|
|
|
3353
|
-
export function
|
|
3276
|
+
export function threeFromJSON(
|
|
3354
3277
|
jsonString: string,
|
|
3355
|
-
): SafeParseResult<
|
|
3278
|
+
): SafeParseResult<Three, SDKValidationError> {
|
|
3356
3279
|
return safeParse(
|
|
3357
3280
|
jsonString,
|
|
3358
|
-
(x) =>
|
|
3359
|
-
`Failed to parse '
|
|
3281
|
+
(x) => Three$inboundSchema.parse(JSON.parse(x)),
|
|
3282
|
+
`Failed to parse 'Three' from JSON`,
|
|
3360
3283
|
);
|
|
3361
3284
|
}
|
|
3362
3285
|
|
|
3363
3286
|
/** @internal */
|
|
3364
|
-
export const
|
|
3365
|
-
|
|
3366
|
-
> = z.nativeEnum(DeploymentGetConfig2DeploymentsType);
|
|
3287
|
+
export const TwoType$inboundSchema: z.ZodNativeEnum<typeof TwoType> = z
|
|
3288
|
+
.nativeEnum(TwoType);
|
|
3367
3289
|
|
|
3368
3290
|
/** @internal */
|
|
3369
|
-
export const
|
|
3370
|
-
|
|
3371
|
-
DeploymentGetConfig2DeploymentsType$inboundSchema;
|
|
3291
|
+
export const TwoType$outboundSchema: z.ZodNativeEnum<typeof TwoType> =
|
|
3292
|
+
TwoType$inboundSchema;
|
|
3372
3293
|
|
|
3373
3294
|
/**
|
|
3374
3295
|
* @internal
|
|
3375
3296
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3376
3297
|
*/
|
|
3377
|
-
export namespace
|
|
3378
|
-
/** @deprecated use `
|
|
3379
|
-
export const inboundSchema =
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
export const outboundSchema =
|
|
3383
|
-
DeploymentGetConfig2DeploymentsType$outboundSchema;
|
|
3298
|
+
export namespace TwoType$ {
|
|
3299
|
+
/** @deprecated use `TwoType$inboundSchema` instead. */
|
|
3300
|
+
export const inboundSchema = TwoType$inboundSchema;
|
|
3301
|
+
/** @deprecated use `TwoType$outboundSchema` instead. */
|
|
3302
|
+
export const outboundSchema = TwoType$outboundSchema;
|
|
3384
3303
|
}
|
|
3385
3304
|
|
|
3386
3305
|
/** @internal */
|
|
@@ -3403,8 +3322,8 @@ export namespace Detail$ {
|
|
|
3403
3322
|
}
|
|
3404
3323
|
|
|
3405
3324
|
/** @internal */
|
|
3406
|
-
export const
|
|
3407
|
-
|
|
3325
|
+
export const ImageUrl$inboundSchema: z.ZodType<
|
|
3326
|
+
ImageUrl,
|
|
3408
3327
|
z.ZodTypeDef,
|
|
3409
3328
|
unknown
|
|
3410
3329
|
> = z.object({
|
|
@@ -3413,16 +3332,16 @@ export const TwoImageUrl$inboundSchema: z.ZodType<
|
|
|
3413
3332
|
});
|
|
3414
3333
|
|
|
3415
3334
|
/** @internal */
|
|
3416
|
-
export type
|
|
3335
|
+
export type ImageUrl$Outbound = {
|
|
3417
3336
|
url: string;
|
|
3418
3337
|
detail?: string | undefined;
|
|
3419
3338
|
};
|
|
3420
3339
|
|
|
3421
3340
|
/** @internal */
|
|
3422
|
-
export const
|
|
3423
|
-
|
|
3341
|
+
export const ImageUrl$outboundSchema: z.ZodType<
|
|
3342
|
+
ImageUrl$Outbound,
|
|
3424
3343
|
z.ZodTypeDef,
|
|
3425
|
-
|
|
3344
|
+
ImageUrl
|
|
3426
3345
|
> = z.object({
|
|
3427
3346
|
url: z.string(),
|
|
3428
3347
|
detail: Detail$outboundSchema.optional(),
|
|
@@ -3432,132 +3351,121 @@ export const TwoImageUrl$outboundSchema: z.ZodType<
|
|
|
3432
3351
|
* @internal
|
|
3433
3352
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3434
3353
|
*/
|
|
3435
|
-
export namespace
|
|
3436
|
-
/** @deprecated use `
|
|
3437
|
-
export const inboundSchema =
|
|
3438
|
-
/** @deprecated use `
|
|
3439
|
-
export const outboundSchema =
|
|
3440
|
-
/** @deprecated use `
|
|
3441
|
-
export type Outbound =
|
|
3354
|
+
export namespace ImageUrl$ {
|
|
3355
|
+
/** @deprecated use `ImageUrl$inboundSchema` instead. */
|
|
3356
|
+
export const inboundSchema = ImageUrl$inboundSchema;
|
|
3357
|
+
/** @deprecated use `ImageUrl$outboundSchema` instead. */
|
|
3358
|
+
export const outboundSchema = ImageUrl$outboundSchema;
|
|
3359
|
+
/** @deprecated use `ImageUrl$Outbound` instead. */
|
|
3360
|
+
export type Outbound = ImageUrl$Outbound;
|
|
3442
3361
|
}
|
|
3443
3362
|
|
|
3444
|
-
export function
|
|
3445
|
-
return JSON.stringify(
|
|
3363
|
+
export function imageUrlToJSON(imageUrl: ImageUrl): string {
|
|
3364
|
+
return JSON.stringify(ImageUrl$outboundSchema.parse(imageUrl));
|
|
3446
3365
|
}
|
|
3447
3366
|
|
|
3448
|
-
export function
|
|
3367
|
+
export function imageUrlFromJSON(
|
|
3449
3368
|
jsonString: string,
|
|
3450
|
-
): SafeParseResult<
|
|
3369
|
+
): SafeParseResult<ImageUrl, SDKValidationError> {
|
|
3451
3370
|
return safeParse(
|
|
3452
3371
|
jsonString,
|
|
3453
|
-
(x) =>
|
|
3454
|
-
`Failed to parse '
|
|
3372
|
+
(x) => ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
3373
|
+
`Failed to parse 'ImageUrl' from JSON`,
|
|
3455
3374
|
);
|
|
3456
3375
|
}
|
|
3457
3376
|
|
|
3458
3377
|
/** @internal */
|
|
3459
|
-
export const
|
|
3460
|
-
|
|
3461
|
-
|
|
3462
|
-
|
|
3463
|
-
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
})
|
|
3467
|
-
return remap$(v, {
|
|
3468
|
-
"image_url": "imageUrl",
|
|
3378
|
+
export const Two2$inboundSchema: z.ZodType<Two2, z.ZodTypeDef, unknown> = z
|
|
3379
|
+
.object({
|
|
3380
|
+
type: TwoType$inboundSchema,
|
|
3381
|
+
image_url: z.lazy(() => ImageUrl$inboundSchema),
|
|
3382
|
+
}).transform((v) => {
|
|
3383
|
+
return remap$(v, {
|
|
3384
|
+
"image_url": "imageUrl",
|
|
3385
|
+
});
|
|
3469
3386
|
});
|
|
3470
|
-
});
|
|
3471
3387
|
|
|
3472
3388
|
/** @internal */
|
|
3473
|
-
export type
|
|
3389
|
+
export type Two2$Outbound = {
|
|
3474
3390
|
type: string;
|
|
3475
|
-
image_url:
|
|
3391
|
+
image_url: ImageUrl$Outbound;
|
|
3476
3392
|
};
|
|
3477
3393
|
|
|
3478
3394
|
/** @internal */
|
|
3479
|
-
export const
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
})
|
|
3487
|
-
return remap$(v, {
|
|
3488
|
-
imageUrl: "image_url",
|
|
3395
|
+
export const Two2$outboundSchema: z.ZodType<Two2$Outbound, z.ZodTypeDef, Two2> =
|
|
3396
|
+
z.object({
|
|
3397
|
+
type: TwoType$outboundSchema,
|
|
3398
|
+
imageUrl: z.lazy(() => ImageUrl$outboundSchema),
|
|
3399
|
+
}).transform((v) => {
|
|
3400
|
+
return remap$(v, {
|
|
3401
|
+
imageUrl: "image_url",
|
|
3402
|
+
});
|
|
3489
3403
|
});
|
|
3490
|
-
});
|
|
3491
3404
|
|
|
3492
3405
|
/**
|
|
3493
3406
|
* @internal
|
|
3494
3407
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3495
3408
|
*/
|
|
3496
|
-
export namespace
|
|
3497
|
-
/** @deprecated use `
|
|
3498
|
-
export const inboundSchema =
|
|
3499
|
-
/** @deprecated use `
|
|
3500
|
-
export const outboundSchema =
|
|
3501
|
-
/** @deprecated use `
|
|
3502
|
-
export type Outbound =
|
|
3409
|
+
export namespace Two2$ {
|
|
3410
|
+
/** @deprecated use `Two2$inboundSchema` instead. */
|
|
3411
|
+
export const inboundSchema = Two2$inboundSchema;
|
|
3412
|
+
/** @deprecated use `Two2$outboundSchema` instead. */
|
|
3413
|
+
export const outboundSchema = Two2$outboundSchema;
|
|
3414
|
+
/** @deprecated use `Two2$Outbound` instead. */
|
|
3415
|
+
export type Outbound = Two2$Outbound;
|
|
3503
3416
|
}
|
|
3504
3417
|
|
|
3505
|
-
export function
|
|
3506
|
-
|
|
3507
|
-
): string {
|
|
3508
|
-
return JSON.stringify(
|
|
3509
|
-
DeploymentGetConfig22$outboundSchema.parse(deploymentGetConfig22),
|
|
3510
|
-
);
|
|
3418
|
+
export function two2ToJSON(two2: Two2): string {
|
|
3419
|
+
return JSON.stringify(Two2$outboundSchema.parse(two2));
|
|
3511
3420
|
}
|
|
3512
3421
|
|
|
3513
|
-
export function
|
|
3422
|
+
export function two2FromJSON(
|
|
3514
3423
|
jsonString: string,
|
|
3515
|
-
): SafeParseResult<
|
|
3424
|
+
): SafeParseResult<Two2, SDKValidationError> {
|
|
3516
3425
|
return safeParse(
|
|
3517
3426
|
jsonString,
|
|
3518
|
-
(x) =>
|
|
3519
|
-
`Failed to parse '
|
|
3427
|
+
(x) => Two2$inboundSchema.parse(JSON.parse(x)),
|
|
3428
|
+
`Failed to parse 'Two2' from JSON`,
|
|
3520
3429
|
);
|
|
3521
3430
|
}
|
|
3522
3431
|
|
|
3523
3432
|
/** @internal */
|
|
3524
|
-
export const
|
|
3525
|
-
|
|
3526
|
-
|
|
3433
|
+
export const Type$inboundSchema: z.ZodNativeEnum<typeof Type> = z.nativeEnum(
|
|
3434
|
+
Type,
|
|
3435
|
+
);
|
|
3527
3436
|
|
|
3528
3437
|
/** @internal */
|
|
3529
|
-
export const
|
|
3530
|
-
|
|
3531
|
-
> = DeploymentGetConfig2Type$inboundSchema;
|
|
3438
|
+
export const Type$outboundSchema: z.ZodNativeEnum<typeof Type> =
|
|
3439
|
+
Type$inboundSchema;
|
|
3532
3440
|
|
|
3533
3441
|
/**
|
|
3534
3442
|
* @internal
|
|
3535
3443
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3536
3444
|
*/
|
|
3537
|
-
export namespace
|
|
3538
|
-
/** @deprecated use `
|
|
3539
|
-
export const inboundSchema =
|
|
3540
|
-
/** @deprecated use `
|
|
3541
|
-
export const outboundSchema =
|
|
3445
|
+
export namespace Type$ {
|
|
3446
|
+
/** @deprecated use `Type$inboundSchema` instead. */
|
|
3447
|
+
export const inboundSchema = Type$inboundSchema;
|
|
3448
|
+
/** @deprecated use `Type$outboundSchema` instead. */
|
|
3449
|
+
export const outboundSchema = Type$outboundSchema;
|
|
3542
3450
|
}
|
|
3543
3451
|
|
|
3544
3452
|
/** @internal */
|
|
3545
|
-
export const
|
|
3453
|
+
export const One$inboundSchema: z.ZodType<One, z.ZodTypeDef, unknown> = z
|
|
3546
3454
|
.object({
|
|
3547
|
-
type:
|
|
3455
|
+
type: Type$inboundSchema,
|
|
3548
3456
|
text: z.string(),
|
|
3549
3457
|
});
|
|
3550
3458
|
|
|
3551
3459
|
/** @internal */
|
|
3552
|
-
export type
|
|
3460
|
+
export type One$Outbound = {
|
|
3553
3461
|
type: string;
|
|
3554
3462
|
text: string;
|
|
3555
3463
|
};
|
|
3556
3464
|
|
|
3557
3465
|
/** @internal */
|
|
3558
|
-
export const
|
|
3559
|
-
|
|
3560
|
-
type:
|
|
3466
|
+
export const One$outboundSchema: z.ZodType<One$Outbound, z.ZodTypeDef, One> = z
|
|
3467
|
+
.object({
|
|
3468
|
+
type: Type$outboundSchema,
|
|
3561
3469
|
text: z.string(),
|
|
3562
3470
|
});
|
|
3563
3471
|
|
|
@@ -3565,123 +3473,110 @@ export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
|
|
|
3565
3473
|
* @internal
|
|
3566
3474
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3567
3475
|
*/
|
|
3568
|
-
export namespace
|
|
3569
|
-
/** @deprecated use `
|
|
3570
|
-
export const inboundSchema =
|
|
3571
|
-
/** @deprecated use `
|
|
3572
|
-
export const outboundSchema =
|
|
3573
|
-
/** @deprecated use `
|
|
3574
|
-
export type Outbound =
|
|
3476
|
+
export namespace One$ {
|
|
3477
|
+
/** @deprecated use `One$inboundSchema` instead. */
|
|
3478
|
+
export const inboundSchema = One$inboundSchema;
|
|
3479
|
+
/** @deprecated use `One$outboundSchema` instead. */
|
|
3480
|
+
export const outboundSchema = One$outboundSchema;
|
|
3481
|
+
/** @deprecated use `One$Outbound` instead. */
|
|
3482
|
+
export type Outbound = One$Outbound;
|
|
3575
3483
|
}
|
|
3576
3484
|
|
|
3577
|
-
export function
|
|
3578
|
-
return JSON.stringify(
|
|
3485
|
+
export function oneToJSON(one: One): string {
|
|
3486
|
+
return JSON.stringify(One$outboundSchema.parse(one));
|
|
3579
3487
|
}
|
|
3580
3488
|
|
|
3581
|
-
export function
|
|
3489
|
+
export function oneFromJSON(
|
|
3582
3490
|
jsonString: string,
|
|
3583
|
-
): SafeParseResult<
|
|
3491
|
+
): SafeParseResult<One, SDKValidationError> {
|
|
3584
3492
|
return safeParse(
|
|
3585
3493
|
jsonString,
|
|
3586
|
-
(x) =>
|
|
3587
|
-
`Failed to parse '
|
|
3494
|
+
(x) => One$inboundSchema.parse(JSON.parse(x)),
|
|
3495
|
+
`Failed to parse 'One' from JSON`,
|
|
3588
3496
|
);
|
|
3589
3497
|
}
|
|
3590
3498
|
|
|
3591
3499
|
/** @internal */
|
|
3592
|
-
export const
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3598
|
-
|
|
3599
|
-
|
|
3600
|
-
z.lazy(() => Four$inboundSchema),
|
|
3601
|
-
]);
|
|
3500
|
+
export const Two$inboundSchema: z.ZodType<Two, z.ZodTypeDef, unknown> = z.union(
|
|
3501
|
+
[
|
|
3502
|
+
z.lazy(() => One$inboundSchema),
|
|
3503
|
+
z.lazy(() => Two2$inboundSchema),
|
|
3504
|
+
z.lazy(() => Three$inboundSchema),
|
|
3505
|
+
z.lazy(() => Four$inboundSchema),
|
|
3506
|
+
],
|
|
3507
|
+
);
|
|
3602
3508
|
|
|
3603
3509
|
/** @internal */
|
|
3604
|
-
export type
|
|
3605
|
-
|
|
|
3606
|
-
|
|
|
3607
|
-
|
|
|
3510
|
+
export type Two$Outbound =
|
|
3511
|
+
| One$Outbound
|
|
3512
|
+
| Two2$Outbound
|
|
3513
|
+
| Three$Outbound
|
|
3608
3514
|
| Four$Outbound;
|
|
3609
3515
|
|
|
3610
3516
|
/** @internal */
|
|
3611
|
-
export const
|
|
3612
|
-
|
|
3613
|
-
|
|
3614
|
-
|
|
3615
|
-
|
|
3616
|
-
|
|
3617
|
-
|
|
3618
|
-
z.lazy(() => Two3$outboundSchema),
|
|
3619
|
-
z.lazy(() => Four$outboundSchema),
|
|
3620
|
-
]);
|
|
3517
|
+
export const Two$outboundSchema: z.ZodType<Two$Outbound, z.ZodTypeDef, Two> = z
|
|
3518
|
+
.union([
|
|
3519
|
+
z.lazy(() => One$outboundSchema),
|
|
3520
|
+
z.lazy(() => Two2$outboundSchema),
|
|
3521
|
+
z.lazy(() => Three$outboundSchema),
|
|
3522
|
+
z.lazy(() => Four$outboundSchema),
|
|
3523
|
+
]);
|
|
3621
3524
|
|
|
3622
3525
|
/**
|
|
3623
3526
|
* @internal
|
|
3624
3527
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3625
3528
|
*/
|
|
3626
|
-
export namespace
|
|
3627
|
-
/** @deprecated use `
|
|
3628
|
-
export const inboundSchema =
|
|
3629
|
-
/** @deprecated use `
|
|
3630
|
-
export const outboundSchema =
|
|
3631
|
-
/** @deprecated use `
|
|
3632
|
-
export type Outbound =
|
|
3529
|
+
export namespace Two$ {
|
|
3530
|
+
/** @deprecated use `Two$inboundSchema` instead. */
|
|
3531
|
+
export const inboundSchema = Two$inboundSchema;
|
|
3532
|
+
/** @deprecated use `Two$outboundSchema` instead. */
|
|
3533
|
+
export const outboundSchema = Two$outboundSchema;
|
|
3534
|
+
/** @deprecated use `Two$Outbound` instead. */
|
|
3535
|
+
export type Outbound = Two$Outbound;
|
|
3633
3536
|
}
|
|
3634
3537
|
|
|
3635
|
-
export function
|
|
3636
|
-
return JSON.stringify(
|
|
3538
|
+
export function twoToJSON(two: Two): string {
|
|
3539
|
+
return JSON.stringify(Two$outboundSchema.parse(two));
|
|
3637
3540
|
}
|
|
3638
3541
|
|
|
3639
|
-
export function
|
|
3542
|
+
export function twoFromJSON(
|
|
3640
3543
|
jsonString: string,
|
|
3641
|
-
): SafeParseResult<
|
|
3544
|
+
): SafeParseResult<Two, SDKValidationError> {
|
|
3642
3545
|
return safeParse(
|
|
3643
3546
|
jsonString,
|
|
3644
|
-
(x) =>
|
|
3645
|
-
`Failed to parse '
|
|
3547
|
+
(x) => Two$inboundSchema.parse(JSON.parse(x)),
|
|
3548
|
+
`Failed to parse 'Two' from JSON`,
|
|
3646
3549
|
);
|
|
3647
3550
|
}
|
|
3648
3551
|
|
|
3649
3552
|
/** @internal */
|
|
3650
|
-
export const
|
|
3651
|
-
|
|
3652
|
-
|
|
3653
|
-
|
|
3654
|
-
|
|
3655
|
-
|
|
3656
|
-
|
|
3657
|
-
|
|
3658
|
-
|
|
3659
|
-
|
|
3660
|
-
z.lazy(() => Four$inboundSchema),
|
|
3661
|
-
])),
|
|
3662
|
-
]);
|
|
3553
|
+
export const Content$inboundSchema: z.ZodType<Content, z.ZodTypeDef, unknown> =
|
|
3554
|
+
z.union([
|
|
3555
|
+
z.string(),
|
|
3556
|
+
z.array(z.union([
|
|
3557
|
+
z.lazy(() => One$inboundSchema),
|
|
3558
|
+
z.lazy(() => Two2$inboundSchema),
|
|
3559
|
+
z.lazy(() => Three$inboundSchema),
|
|
3560
|
+
z.lazy(() => Four$inboundSchema),
|
|
3561
|
+
])),
|
|
3562
|
+
]);
|
|
3663
3563
|
|
|
3664
3564
|
/** @internal */
|
|
3665
|
-
export type
|
|
3565
|
+
export type Content$Outbound =
|
|
3666
3566
|
| string
|
|
3667
|
-
| Array<
|
|
3668
|
-
| Two1$Outbound
|
|
3669
|
-
| DeploymentGetConfig22$Outbound
|
|
3670
|
-
| Two3$Outbound
|
|
3671
|
-
| Four$Outbound
|
|
3672
|
-
>;
|
|
3567
|
+
| Array<One$Outbound | Two2$Outbound | Three$Outbound | Four$Outbound>;
|
|
3673
3568
|
|
|
3674
3569
|
/** @internal */
|
|
3675
|
-
export const
|
|
3676
|
-
|
|
3570
|
+
export const Content$outboundSchema: z.ZodType<
|
|
3571
|
+
Content$Outbound,
|
|
3677
3572
|
z.ZodTypeDef,
|
|
3678
|
-
|
|
3573
|
+
Content
|
|
3679
3574
|
> = z.union([
|
|
3680
3575
|
z.string(),
|
|
3681
3576
|
z.array(z.union([
|
|
3682
|
-
z.lazy(() =>
|
|
3683
|
-
z.lazy(() =>
|
|
3684
|
-
z.lazy(() =>
|
|
3577
|
+
z.lazy(() => One$outboundSchema),
|
|
3578
|
+
z.lazy(() => Two2$outboundSchema),
|
|
3579
|
+
z.lazy(() => Three$outboundSchema),
|
|
3685
3580
|
z.lazy(() => Four$outboundSchema),
|
|
3686
3581
|
])),
|
|
3687
3582
|
]);
|
|
@@ -3690,30 +3585,26 @@ export const PrefixMessagesContent$outboundSchema: z.ZodType<
|
|
|
3690
3585
|
* @internal
|
|
3691
3586
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3692
3587
|
*/
|
|
3693
|
-
export namespace
|
|
3694
|
-
/** @deprecated use `
|
|
3695
|
-
export const inboundSchema =
|
|
3696
|
-
/** @deprecated use `
|
|
3697
|
-
export const outboundSchema =
|
|
3698
|
-
/** @deprecated use `
|
|
3699
|
-
export type Outbound =
|
|
3588
|
+
export namespace Content$ {
|
|
3589
|
+
/** @deprecated use `Content$inboundSchema` instead. */
|
|
3590
|
+
export const inboundSchema = Content$inboundSchema;
|
|
3591
|
+
/** @deprecated use `Content$outboundSchema` instead. */
|
|
3592
|
+
export const outboundSchema = Content$outboundSchema;
|
|
3593
|
+
/** @deprecated use `Content$Outbound` instead. */
|
|
3594
|
+
export type Outbound = Content$Outbound;
|
|
3700
3595
|
}
|
|
3701
3596
|
|
|
3702
|
-
export function
|
|
3703
|
-
|
|
3704
|
-
): string {
|
|
3705
|
-
return JSON.stringify(
|
|
3706
|
-
PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
|
|
3707
|
-
);
|
|
3597
|
+
export function contentToJSON(content: Content): string {
|
|
3598
|
+
return JSON.stringify(Content$outboundSchema.parse(content));
|
|
3708
3599
|
}
|
|
3709
3600
|
|
|
3710
|
-
export function
|
|
3601
|
+
export function contentFromJSON(
|
|
3711
3602
|
jsonString: string,
|
|
3712
|
-
): SafeParseResult<
|
|
3603
|
+
): SafeParseResult<Content, SDKValidationError> {
|
|
3713
3604
|
return safeParse(
|
|
3714
3605
|
jsonString,
|
|
3715
|
-
(x) =>
|
|
3716
|
-
`Failed to parse '
|
|
3606
|
+
(x) => Content$inboundSchema.parse(JSON.parse(x)),
|
|
3607
|
+
`Failed to parse 'Content' from JSON`,
|
|
3717
3608
|
);
|
|
3718
3609
|
}
|
|
3719
3610
|
|
|
@@ -3723,14 +3614,14 @@ export const UserMessage$inboundSchema: z.ZodType<
|
|
|
3723
3614
|
z.ZodTypeDef,
|
|
3724
3615
|
unknown
|
|
3725
3616
|
> = z.object({
|
|
3726
|
-
role:
|
|
3617
|
+
role: DeploymentGetConfigPrefixMessagesRole$inboundSchema,
|
|
3727
3618
|
name: z.string().optional(),
|
|
3728
3619
|
content: z.union([
|
|
3729
3620
|
z.string(),
|
|
3730
3621
|
z.array(z.union([
|
|
3731
|
-
z.lazy(() =>
|
|
3732
|
-
z.lazy(() =>
|
|
3733
|
-
z.lazy(() =>
|
|
3622
|
+
z.lazy(() => One$inboundSchema),
|
|
3623
|
+
z.lazy(() => Two2$inboundSchema),
|
|
3624
|
+
z.lazy(() => Three$inboundSchema),
|
|
3734
3625
|
z.lazy(() => Four$inboundSchema),
|
|
3735
3626
|
])),
|
|
3736
3627
|
]),
|
|
@@ -3742,12 +3633,7 @@ export type UserMessage$Outbound = {
|
|
|
3742
3633
|
name?: string | undefined;
|
|
3743
3634
|
content:
|
|
3744
3635
|
| string
|
|
3745
|
-
| Array<
|
|
3746
|
-
| Two1$Outbound
|
|
3747
|
-
| DeploymentGetConfig22$Outbound
|
|
3748
|
-
| Two3$Outbound
|
|
3749
|
-
| Four$Outbound
|
|
3750
|
-
>;
|
|
3636
|
+
| Array<One$Outbound | Two2$Outbound | Three$Outbound | Four$Outbound>;
|
|
3751
3637
|
};
|
|
3752
3638
|
|
|
3753
3639
|
/** @internal */
|
|
@@ -3756,14 +3642,14 @@ export const UserMessage$outboundSchema: z.ZodType<
|
|
|
3756
3642
|
z.ZodTypeDef,
|
|
3757
3643
|
UserMessage
|
|
3758
3644
|
> = z.object({
|
|
3759
|
-
role:
|
|
3645
|
+
role: DeploymentGetConfigPrefixMessagesRole$outboundSchema,
|
|
3760
3646
|
name: z.string().optional(),
|
|
3761
3647
|
content: z.union([
|
|
3762
3648
|
z.string(),
|
|
3763
3649
|
z.array(z.union([
|
|
3764
|
-
z.lazy(() =>
|
|
3765
|
-
z.lazy(() =>
|
|
3766
|
-
z.lazy(() =>
|
|
3650
|
+
z.lazy(() => One$outboundSchema),
|
|
3651
|
+
z.lazy(() => Two2$outboundSchema),
|
|
3652
|
+
z.lazy(() => Three$outboundSchema),
|
|
3767
3653
|
z.lazy(() => Four$outboundSchema),
|
|
3768
3654
|
])),
|
|
3769
3655
|
]),
|
|
@@ -3797,27 +3683,24 @@ export function userMessageFromJSON(
|
|
|
3797
3683
|
}
|
|
3798
3684
|
|
|
3799
3685
|
/** @internal */
|
|
3800
|
-
export const
|
|
3801
|
-
|
|
3802
|
-
|
|
3803
|
-
);
|
|
3686
|
+
export const PrefixMessagesRole$inboundSchema: z.ZodNativeEnum<
|
|
3687
|
+
typeof PrefixMessagesRole
|
|
3688
|
+
> = z.nativeEnum(PrefixMessagesRole);
|
|
3804
3689
|
|
|
3805
3690
|
/** @internal */
|
|
3806
|
-
export const
|
|
3807
|
-
|
|
3808
|
-
|
|
3691
|
+
export const PrefixMessagesRole$outboundSchema: z.ZodNativeEnum<
|
|
3692
|
+
typeof PrefixMessagesRole
|
|
3693
|
+
> = PrefixMessagesRole$inboundSchema;
|
|
3809
3694
|
|
|
3810
3695
|
/**
|
|
3811
3696
|
* @internal
|
|
3812
3697
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3813
3698
|
*/
|
|
3814
|
-
export namespace
|
|
3815
|
-
/** @deprecated use `
|
|
3816
|
-
export const inboundSchema =
|
|
3817
|
-
|
|
3818
|
-
|
|
3819
|
-
export const outboundSchema =
|
|
3820
|
-
DeploymentGetConfigPrefixMessagesRole$outboundSchema;
|
|
3699
|
+
export namespace PrefixMessagesRole$ {
|
|
3700
|
+
/** @deprecated use `PrefixMessagesRole$inboundSchema` instead. */
|
|
3701
|
+
export const inboundSchema = PrefixMessagesRole$inboundSchema;
|
|
3702
|
+
/** @deprecated use `PrefixMessagesRole$outboundSchema` instead. */
|
|
3703
|
+
export const outboundSchema = PrefixMessagesRole$outboundSchema;
|
|
3821
3704
|
}
|
|
3822
3705
|
|
|
3823
3706
|
/** @internal */
|
|
@@ -3826,7 +3709,7 @@ export const SystemMessage$inboundSchema: z.ZodType<
|
|
|
3826
3709
|
z.ZodTypeDef,
|
|
3827
3710
|
unknown
|
|
3828
3711
|
> = z.object({
|
|
3829
|
-
role:
|
|
3712
|
+
role: PrefixMessagesRole$inboundSchema,
|
|
3830
3713
|
content: z.string(),
|
|
3831
3714
|
name: z.string().optional(),
|
|
3832
3715
|
});
|
|
@@ -3844,7 +3727,7 @@ export const SystemMessage$outboundSchema: z.ZodType<
|
|
|
3844
3727
|
z.ZodTypeDef,
|
|
3845
3728
|
SystemMessage
|
|
3846
3729
|
> = z.object({
|
|
3847
|
-
role:
|
|
3730
|
+
role: PrefixMessagesRole$outboundSchema,
|
|
3848
3731
|
content: z.string(),
|
|
3849
3732
|
name: z.string().optional(),
|
|
3850
3733
|
});
|
|
@@ -3877,24 +3760,23 @@ export function systemMessageFromJSON(
|
|
|
3877
3760
|
}
|
|
3878
3761
|
|
|
3879
3762
|
/** @internal */
|
|
3880
|
-
export const
|
|
3881
|
-
|
|
3882
|
-
|
|
3763
|
+
export const Role$inboundSchema: z.ZodNativeEnum<typeof Role> = z.nativeEnum(
|
|
3764
|
+
Role,
|
|
3765
|
+
);
|
|
3883
3766
|
|
|
3884
3767
|
/** @internal */
|
|
3885
|
-
export const
|
|
3886
|
-
|
|
3887
|
-
> = PrefixMessagesRole$inboundSchema;
|
|
3768
|
+
export const Role$outboundSchema: z.ZodNativeEnum<typeof Role> =
|
|
3769
|
+
Role$inboundSchema;
|
|
3888
3770
|
|
|
3889
3771
|
/**
|
|
3890
3772
|
* @internal
|
|
3891
3773
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
3892
3774
|
*/
|
|
3893
|
-
export namespace
|
|
3894
|
-
/** @deprecated use `
|
|
3895
|
-
export const inboundSchema =
|
|
3896
|
-
/** @deprecated use `
|
|
3897
|
-
export const outboundSchema =
|
|
3775
|
+
export namespace Role$ {
|
|
3776
|
+
/** @deprecated use `Role$inboundSchema` instead. */
|
|
3777
|
+
export const inboundSchema = Role$inboundSchema;
|
|
3778
|
+
/** @deprecated use `Role$outboundSchema` instead. */
|
|
3779
|
+
export const outboundSchema = Role$outboundSchema;
|
|
3898
3780
|
}
|
|
3899
3781
|
|
|
3900
3782
|
/** @internal */
|
|
@@ -3903,7 +3785,7 @@ export const DeveloperMessage$inboundSchema: z.ZodType<
|
|
|
3903
3785
|
z.ZodTypeDef,
|
|
3904
3786
|
unknown
|
|
3905
3787
|
> = z.object({
|
|
3906
|
-
role:
|
|
3788
|
+
role: Role$inboundSchema,
|
|
3907
3789
|
content: z.string(),
|
|
3908
3790
|
name: z.string().optional(),
|
|
3909
3791
|
});
|
|
@@ -3921,7 +3803,7 @@ export const DeveloperMessage$outboundSchema: z.ZodType<
|
|
|
3921
3803
|
z.ZodTypeDef,
|
|
3922
3804
|
DeveloperMessage
|
|
3923
3805
|
> = z.object({
|
|
3924
|
-
role:
|
|
3806
|
+
role: Role$outboundSchema,
|
|
3925
3807
|
content: z.string(),
|
|
3926
3808
|
name: z.string().optional(),
|
|
3927
3809
|
});
|
|
@@ -4757,71 +4639,64 @@ export function twoTextContentPartFromJSON(
|
|
|
4757
4639
|
}
|
|
4758
4640
|
|
|
4759
4641
|
/** @internal */
|
|
4760
|
-
export const
|
|
4761
|
-
|
|
4762
|
-
|
|
4763
|
-
|
|
4764
|
-
|
|
4765
|
-
|
|
4766
|
-
|
|
4767
|
-
|
|
4768
|
-
]);
|
|
4642
|
+
export const DeploymentGetConfigContentDeployments2$inboundSchema: z.ZodType<
|
|
4643
|
+
DeploymentGetConfigContentDeployments2,
|
|
4644
|
+
z.ZodTypeDef,
|
|
4645
|
+
unknown
|
|
4646
|
+
> = z.union([
|
|
4647
|
+
z.lazy(() => TwoTextContentPart$inboundSchema),
|
|
4648
|
+
z.lazy(() => TwoRefusalContentPart$inboundSchema),
|
|
4649
|
+
]);
|
|
4769
4650
|
|
|
4770
4651
|
/** @internal */
|
|
4771
|
-
export type
|
|
4652
|
+
export type DeploymentGetConfigContentDeployments2$Outbound =
|
|
4772
4653
|
| TwoTextContentPart$Outbound
|
|
4773
4654
|
| TwoRefusalContentPart$Outbound;
|
|
4774
4655
|
|
|
4775
4656
|
/** @internal */
|
|
4776
|
-
export const
|
|
4777
|
-
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
|
|
4781
|
-
|
|
4782
|
-
|
|
4783
|
-
|
|
4784
|
-
]);
|
|
4657
|
+
export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
|
|
4658
|
+
DeploymentGetConfigContentDeployments2$Outbound,
|
|
4659
|
+
z.ZodTypeDef,
|
|
4660
|
+
DeploymentGetConfigContentDeployments2
|
|
4661
|
+
> = z.union([
|
|
4662
|
+
z.lazy(() => TwoTextContentPart$outboundSchema),
|
|
4663
|
+
z.lazy(() => TwoRefusalContentPart$outboundSchema),
|
|
4664
|
+
]);
|
|
4785
4665
|
|
|
4786
4666
|
/**
|
|
4787
4667
|
* @internal
|
|
4788
4668
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
4789
4669
|
*/
|
|
4790
|
-
export namespace
|
|
4791
|
-
/** @deprecated use `
|
|
4670
|
+
export namespace DeploymentGetConfigContentDeployments2$ {
|
|
4671
|
+
/** @deprecated use `DeploymentGetConfigContentDeployments2$inboundSchema` instead. */
|
|
4792
4672
|
export const inboundSchema =
|
|
4793
|
-
|
|
4794
|
-
/** @deprecated use `
|
|
4673
|
+
DeploymentGetConfigContentDeployments2$inboundSchema;
|
|
4674
|
+
/** @deprecated use `DeploymentGetConfigContentDeployments2$outboundSchema` instead. */
|
|
4795
4675
|
export const outboundSchema =
|
|
4796
|
-
|
|
4797
|
-
/** @deprecated use `
|
|
4798
|
-
export type Outbound =
|
|
4676
|
+
DeploymentGetConfigContentDeployments2$outboundSchema;
|
|
4677
|
+
/** @deprecated use `DeploymentGetConfigContentDeployments2$Outbound` instead. */
|
|
4678
|
+
export type Outbound = DeploymentGetConfigContentDeployments2$Outbound;
|
|
4799
4679
|
}
|
|
4800
4680
|
|
|
4801
|
-
export function
|
|
4802
|
-
|
|
4803
|
-
|
|
4681
|
+
export function deploymentGetConfigContentDeployments2ToJSON(
|
|
4682
|
+
deploymentGetConfigContentDeployments2:
|
|
4683
|
+
DeploymentGetConfigContentDeployments2,
|
|
4804
4684
|
): string {
|
|
4805
4685
|
return JSON.stringify(
|
|
4806
|
-
|
|
4807
|
-
|
|
4686
|
+
DeploymentGetConfigContentDeployments2$outboundSchema.parse(
|
|
4687
|
+
deploymentGetConfigContentDeployments2,
|
|
4808
4688
|
),
|
|
4809
4689
|
);
|
|
4810
4690
|
}
|
|
4811
4691
|
|
|
4812
|
-
export function
|
|
4692
|
+
export function deploymentGetConfigContentDeployments2FromJSON(
|
|
4813
4693
|
jsonString: string,
|
|
4814
|
-
): SafeParseResult<
|
|
4815
|
-
DeploymentGetConfigContentDeploymentsRequest2,
|
|
4816
|
-
SDKValidationError
|
|
4817
|
-
> {
|
|
4694
|
+
): SafeParseResult<DeploymentGetConfigContentDeployments2, SDKValidationError> {
|
|
4818
4695
|
return safeParse(
|
|
4819
4696
|
jsonString,
|
|
4820
4697
|
(x) =>
|
|
4821
|
-
|
|
4822
|
-
|
|
4823
|
-
),
|
|
4824
|
-
`Failed to parse 'DeploymentGetConfigContentDeploymentsRequest2' from JSON`,
|
|
4698
|
+
DeploymentGetConfigContentDeployments2$inboundSchema.parse(JSON.parse(x)),
|
|
4699
|
+
`Failed to parse 'DeploymentGetConfigContentDeployments2' from JSON`,
|
|
4825
4700
|
);
|
|
4826
4701
|
}
|
|
4827
4702
|
|
|
@@ -5266,23 +5141,20 @@ export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Conte
|
|
|
5266
5141
|
}
|
|
5267
5142
|
|
|
5268
5143
|
/** @internal */
|
|
5269
|
-
export const
|
|
5270
|
-
|
|
5271
|
-
|
|
5272
|
-
|
|
5273
|
-
|
|
5274
|
-
|
|
5275
|
-
|
|
5276
|
-
|
|
5277
|
-
|
|
5278
|
-
})
|
|
5279
|
-
return remap$(v, {
|
|
5280
|
-
"file_data": "fileData",
|
|
5144
|
+
export const TwoFile$inboundSchema: z.ZodType<TwoFile, z.ZodTypeDef, unknown> =
|
|
5145
|
+
z.object({
|
|
5146
|
+
file_data: z.string().optional(),
|
|
5147
|
+
uri: z.string().optional(),
|
|
5148
|
+
mimeType: z.string().optional(),
|
|
5149
|
+
filename: z.string().optional(),
|
|
5150
|
+
}).transform((v) => {
|
|
5151
|
+
return remap$(v, {
|
|
5152
|
+
"file_data": "fileData",
|
|
5153
|
+
});
|
|
5281
5154
|
});
|
|
5282
|
-
});
|
|
5283
5155
|
|
|
5284
5156
|
/** @internal */
|
|
5285
|
-
export type
|
|
5157
|
+
export type TwoFile$Outbound = {
|
|
5286
5158
|
file_data?: string | undefined;
|
|
5287
5159
|
uri?: string | undefined;
|
|
5288
5160
|
mimeType?: string | undefined;
|
|
@@ -5290,10 +5162,10 @@ export type DeploymentGetConfig2File$Outbound = {
|
|
|
5290
5162
|
};
|
|
5291
5163
|
|
|
5292
5164
|
/** @internal */
|
|
5293
|
-
export const
|
|
5294
|
-
|
|
5165
|
+
export const TwoFile$outboundSchema: z.ZodType<
|
|
5166
|
+
TwoFile$Outbound,
|
|
5295
5167
|
z.ZodTypeDef,
|
|
5296
|
-
|
|
5168
|
+
TwoFile
|
|
5297
5169
|
> = z.object({
|
|
5298
5170
|
fileData: z.string().optional(),
|
|
5299
5171
|
uri: z.string().optional(),
|
|
@@ -5309,30 +5181,26 @@ export const DeploymentGetConfig2File$outboundSchema: z.ZodType<
|
|
|
5309
5181
|
* @internal
|
|
5310
5182
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5311
5183
|
*/
|
|
5312
|
-
export namespace
|
|
5313
|
-
/** @deprecated use `
|
|
5314
|
-
export const inboundSchema =
|
|
5315
|
-
/** @deprecated use `
|
|
5316
|
-
export const outboundSchema =
|
|
5317
|
-
/** @deprecated use `
|
|
5318
|
-
export type Outbound =
|
|
5184
|
+
export namespace TwoFile$ {
|
|
5185
|
+
/** @deprecated use `TwoFile$inboundSchema` instead. */
|
|
5186
|
+
export const inboundSchema = TwoFile$inboundSchema;
|
|
5187
|
+
/** @deprecated use `TwoFile$outboundSchema` instead. */
|
|
5188
|
+
export const outboundSchema = TwoFile$outboundSchema;
|
|
5189
|
+
/** @deprecated use `TwoFile$Outbound` instead. */
|
|
5190
|
+
export type Outbound = TwoFile$Outbound;
|
|
5319
5191
|
}
|
|
5320
5192
|
|
|
5321
|
-
export function
|
|
5322
|
-
|
|
5323
|
-
): string {
|
|
5324
|
-
return JSON.stringify(
|
|
5325
|
-
DeploymentGetConfig2File$outboundSchema.parse(deploymentGetConfig2File),
|
|
5326
|
-
);
|
|
5193
|
+
export function twoFileToJSON(twoFile: TwoFile): string {
|
|
5194
|
+
return JSON.stringify(TwoFile$outboundSchema.parse(twoFile));
|
|
5327
5195
|
}
|
|
5328
5196
|
|
|
5329
|
-
export function
|
|
5197
|
+
export function twoFileFromJSON(
|
|
5330
5198
|
jsonString: string,
|
|
5331
|
-
): SafeParseResult<
|
|
5199
|
+
): SafeParseResult<TwoFile, SDKValidationError> {
|
|
5332
5200
|
return safeParse(
|
|
5333
5201
|
jsonString,
|
|
5334
|
-
(x) =>
|
|
5335
|
-
`Failed to parse '
|
|
5202
|
+
(x) => TwoFile$inboundSchema.parse(JSON.parse(x)),
|
|
5203
|
+
`Failed to parse 'TwoFile' from JSON`,
|
|
5336
5204
|
);
|
|
5337
5205
|
}
|
|
5338
5206
|
|
|
@@ -5341,13 +5209,13 @@ export const Two4$inboundSchema: z.ZodType<Two4, z.ZodTypeDef, unknown> = z
|
|
|
5341
5209
|
.object({
|
|
5342
5210
|
type:
|
|
5343
5211
|
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$inboundSchema,
|
|
5344
|
-
file: z.lazy(() =>
|
|
5212
|
+
file: z.lazy(() => TwoFile$inboundSchema),
|
|
5345
5213
|
});
|
|
5346
5214
|
|
|
5347
5215
|
/** @internal */
|
|
5348
5216
|
export type Two4$Outbound = {
|
|
5349
5217
|
type: string;
|
|
5350
|
-
file:
|
|
5218
|
+
file: TwoFile$Outbound;
|
|
5351
5219
|
};
|
|
5352
5220
|
|
|
5353
5221
|
/** @internal */
|
|
@@ -5355,7 +5223,7 @@ export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
|
|
|
5355
5223
|
z.object({
|
|
5356
5224
|
type:
|
|
5357
5225
|
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Content4Type$outboundSchema,
|
|
5358
|
-
file: z.lazy(() =>
|
|
5226
|
+
file: z.lazy(() => TwoFile$outboundSchema),
|
|
5359
5227
|
});
|
|
5360
5228
|
|
|
5361
5229
|
/**
|
|
@@ -5486,69 +5354,59 @@ export function twoInputAudioFromJSON(
|
|
|
5486
5354
|
}
|
|
5487
5355
|
|
|
5488
5356
|
/** @internal */
|
|
5489
|
-
export const
|
|
5490
|
-
|
|
5491
|
-
|
|
5492
|
-
|
|
5493
|
-
|
|
5494
|
-
|
|
5495
|
-
|
|
5496
|
-
|
|
5497
|
-
})
|
|
5498
|
-
return remap$(v, {
|
|
5499
|
-
"input_audio": "inputAudio",
|
|
5357
|
+
export const Two3$inboundSchema: z.ZodType<Two3, z.ZodTypeDef, unknown> = z
|
|
5358
|
+
.object({
|
|
5359
|
+
type:
|
|
5360
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema,
|
|
5361
|
+
input_audio: z.lazy(() => TwoInputAudio$inboundSchema),
|
|
5362
|
+
}).transform((v) => {
|
|
5363
|
+
return remap$(v, {
|
|
5364
|
+
"input_audio": "inputAudio",
|
|
5365
|
+
});
|
|
5500
5366
|
});
|
|
5501
|
-
});
|
|
5502
5367
|
|
|
5503
5368
|
/** @internal */
|
|
5504
|
-
export type
|
|
5369
|
+
export type Two3$Outbound = {
|
|
5505
5370
|
type: string;
|
|
5506
5371
|
input_audio: TwoInputAudio$Outbound;
|
|
5507
5372
|
};
|
|
5508
5373
|
|
|
5509
5374
|
/** @internal */
|
|
5510
|
-
export const
|
|
5511
|
-
|
|
5512
|
-
|
|
5513
|
-
|
|
5514
|
-
|
|
5515
|
-
|
|
5516
|
-
|
|
5517
|
-
|
|
5518
|
-
})
|
|
5519
|
-
return remap$(v, {
|
|
5520
|
-
inputAudio: "input_audio",
|
|
5375
|
+
export const Two3$outboundSchema: z.ZodType<Two3$Outbound, z.ZodTypeDef, Two3> =
|
|
5376
|
+
z.object({
|
|
5377
|
+
type:
|
|
5378
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema,
|
|
5379
|
+
inputAudio: z.lazy(() => TwoInputAudio$outboundSchema),
|
|
5380
|
+
}).transform((v) => {
|
|
5381
|
+
return remap$(v, {
|
|
5382
|
+
inputAudio: "input_audio",
|
|
5383
|
+
});
|
|
5521
5384
|
});
|
|
5522
|
-
});
|
|
5523
5385
|
|
|
5524
5386
|
/**
|
|
5525
5387
|
* @internal
|
|
5526
5388
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5527
5389
|
*/
|
|
5528
|
-
export namespace
|
|
5529
|
-
/** @deprecated use `
|
|
5530
|
-
export const inboundSchema =
|
|
5531
|
-
/** @deprecated use `
|
|
5532
|
-
export const outboundSchema =
|
|
5533
|
-
/** @deprecated use `
|
|
5534
|
-
export type Outbound =
|
|
5390
|
+
export namespace Two3$ {
|
|
5391
|
+
/** @deprecated use `Two3$inboundSchema` instead. */
|
|
5392
|
+
export const inboundSchema = Two3$inboundSchema;
|
|
5393
|
+
/** @deprecated use `Two3$outboundSchema` instead. */
|
|
5394
|
+
export const outboundSchema = Two3$outboundSchema;
|
|
5395
|
+
/** @deprecated use `Two3$Outbound` instead. */
|
|
5396
|
+
export type Outbound = Two3$Outbound;
|
|
5535
5397
|
}
|
|
5536
5398
|
|
|
5537
|
-
export function
|
|
5538
|
-
|
|
5539
|
-
): string {
|
|
5540
|
-
return JSON.stringify(
|
|
5541
|
-
DeploymentGetConfig23$outboundSchema.parse(deploymentGetConfig23),
|
|
5542
|
-
);
|
|
5399
|
+
export function two3ToJSON(two3: Two3): string {
|
|
5400
|
+
return JSON.stringify(Two3$outboundSchema.parse(two3));
|
|
5543
5401
|
}
|
|
5544
5402
|
|
|
5545
|
-
export function
|
|
5403
|
+
export function two3FromJSON(
|
|
5546
5404
|
jsonString: string,
|
|
5547
|
-
): SafeParseResult<
|
|
5405
|
+
): SafeParseResult<Two3, SDKValidationError> {
|
|
5548
5406
|
return safeParse(
|
|
5549
5407
|
jsonString,
|
|
5550
|
-
(x) =>
|
|
5551
|
-
`Failed to parse '
|
|
5408
|
+
(x) => Two3$inboundSchema.parse(JSON.parse(x)),
|
|
5409
|
+
`Failed to parse 'Two3' from JSON`,
|
|
5552
5410
|
);
|
|
5553
5411
|
}
|
|
5554
5412
|
|
|
@@ -5600,8 +5458,8 @@ export namespace TwoDetail$ {
|
|
|
5600
5458
|
}
|
|
5601
5459
|
|
|
5602
5460
|
/** @internal */
|
|
5603
|
-
export const
|
|
5604
|
-
|
|
5461
|
+
export const TwoImageUrl$inboundSchema: z.ZodType<
|
|
5462
|
+
TwoImageUrl,
|
|
5605
5463
|
z.ZodTypeDef,
|
|
5606
5464
|
unknown
|
|
5607
5465
|
> = z.object({
|
|
@@ -5610,16 +5468,16 @@ export const DeploymentGetConfig2ImageUrl$inboundSchema: z.ZodType<
|
|
|
5610
5468
|
});
|
|
5611
5469
|
|
|
5612
5470
|
/** @internal */
|
|
5613
|
-
export type
|
|
5471
|
+
export type TwoImageUrl$Outbound = {
|
|
5614
5472
|
url: string;
|
|
5615
5473
|
detail?: string | undefined;
|
|
5616
5474
|
};
|
|
5617
5475
|
|
|
5618
5476
|
/** @internal */
|
|
5619
|
-
export const
|
|
5620
|
-
|
|
5477
|
+
export const TwoImageUrl$outboundSchema: z.ZodType<
|
|
5478
|
+
TwoImageUrl$Outbound,
|
|
5621
5479
|
z.ZodTypeDef,
|
|
5622
|
-
|
|
5480
|
+
TwoImageUrl
|
|
5623
5481
|
> = z.object({
|
|
5624
5482
|
url: z.string(),
|
|
5625
5483
|
detail: TwoDetail$outboundSchema.optional(),
|
|
@@ -5629,44 +5487,38 @@ export const DeploymentGetConfig2ImageUrl$outboundSchema: z.ZodType<
|
|
|
5629
5487
|
* @internal
|
|
5630
5488
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5631
5489
|
*/
|
|
5632
|
-
export namespace
|
|
5633
|
-
/** @deprecated use `
|
|
5634
|
-
export const inboundSchema =
|
|
5635
|
-
/** @deprecated use `
|
|
5636
|
-
export const outboundSchema =
|
|
5637
|
-
/** @deprecated use `
|
|
5638
|
-
export type Outbound =
|
|
5490
|
+
export namespace TwoImageUrl$ {
|
|
5491
|
+
/** @deprecated use `TwoImageUrl$inboundSchema` instead. */
|
|
5492
|
+
export const inboundSchema = TwoImageUrl$inboundSchema;
|
|
5493
|
+
/** @deprecated use `TwoImageUrl$outboundSchema` instead. */
|
|
5494
|
+
export const outboundSchema = TwoImageUrl$outboundSchema;
|
|
5495
|
+
/** @deprecated use `TwoImageUrl$Outbound` instead. */
|
|
5496
|
+
export type Outbound = TwoImageUrl$Outbound;
|
|
5639
5497
|
}
|
|
5640
5498
|
|
|
5641
|
-
export function
|
|
5642
|
-
|
|
5643
|
-
): string {
|
|
5644
|
-
return JSON.stringify(
|
|
5645
|
-
DeploymentGetConfig2ImageUrl$outboundSchema.parse(
|
|
5646
|
-
deploymentGetConfig2ImageUrl,
|
|
5647
|
-
),
|
|
5648
|
-
);
|
|
5499
|
+
export function twoImageUrlToJSON(twoImageUrl: TwoImageUrl): string {
|
|
5500
|
+
return JSON.stringify(TwoImageUrl$outboundSchema.parse(twoImageUrl));
|
|
5649
5501
|
}
|
|
5650
5502
|
|
|
5651
|
-
export function
|
|
5503
|
+
export function twoImageUrlFromJSON(
|
|
5652
5504
|
jsonString: string,
|
|
5653
|
-
): SafeParseResult<
|
|
5505
|
+
): SafeParseResult<TwoImageUrl, SDKValidationError> {
|
|
5654
5506
|
return safeParse(
|
|
5655
5507
|
jsonString,
|
|
5656
|
-
(x) =>
|
|
5657
|
-
`Failed to parse '
|
|
5508
|
+
(x) => TwoImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
5509
|
+
`Failed to parse 'TwoImageUrl' from JSON`,
|
|
5658
5510
|
);
|
|
5659
5511
|
}
|
|
5660
5512
|
|
|
5661
5513
|
/** @internal */
|
|
5662
|
-
export const
|
|
5663
|
-
|
|
5514
|
+
export const DeploymentGetConfig22$inboundSchema: z.ZodType<
|
|
5515
|
+
DeploymentGetConfig22,
|
|
5664
5516
|
z.ZodTypeDef,
|
|
5665
5517
|
unknown
|
|
5666
5518
|
> = z.object({
|
|
5667
5519
|
type:
|
|
5668
5520
|
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$inboundSchema,
|
|
5669
|
-
image_url: z.lazy(() =>
|
|
5521
|
+
image_url: z.lazy(() => TwoImageUrl$inboundSchema),
|
|
5670
5522
|
}).transform((v) => {
|
|
5671
5523
|
return remap$(v, {
|
|
5672
5524
|
"image_url": "imageUrl",
|
|
@@ -5674,20 +5526,20 @@ export const DeploymentGetConfig2Deployments2$inboundSchema: z.ZodType<
|
|
|
5674
5526
|
});
|
|
5675
5527
|
|
|
5676
5528
|
/** @internal */
|
|
5677
|
-
export type
|
|
5529
|
+
export type DeploymentGetConfig22$Outbound = {
|
|
5678
5530
|
type: string;
|
|
5679
|
-
image_url:
|
|
5531
|
+
image_url: TwoImageUrl$Outbound;
|
|
5680
5532
|
};
|
|
5681
5533
|
|
|
5682
5534
|
/** @internal */
|
|
5683
|
-
export const
|
|
5684
|
-
|
|
5535
|
+
export const DeploymentGetConfig22$outboundSchema: z.ZodType<
|
|
5536
|
+
DeploymentGetConfig22$Outbound,
|
|
5685
5537
|
z.ZodTypeDef,
|
|
5686
|
-
|
|
5538
|
+
DeploymentGetConfig22
|
|
5687
5539
|
> = z.object({
|
|
5688
5540
|
type:
|
|
5689
5541
|
DeploymentGetConfig2DeploymentsRequestRequestBodyMessages3Type$outboundSchema,
|
|
5690
|
-
imageUrl: z.lazy(() =>
|
|
5542
|
+
imageUrl: z.lazy(() => TwoImageUrl$outboundSchema),
|
|
5691
5543
|
}).transform((v) => {
|
|
5692
5544
|
return remap$(v, {
|
|
5693
5545
|
imageUrl: "image_url",
|
|
@@ -5698,32 +5550,30 @@ export const DeploymentGetConfig2Deployments2$outboundSchema: z.ZodType<
|
|
|
5698
5550
|
* @internal
|
|
5699
5551
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5700
5552
|
*/
|
|
5701
|
-
export namespace
|
|
5702
|
-
/** @deprecated use `
|
|
5703
|
-
export const inboundSchema =
|
|
5704
|
-
/** @deprecated use `
|
|
5705
|
-
export const outboundSchema =
|
|
5706
|
-
/** @deprecated use `
|
|
5707
|
-
export type Outbound =
|
|
5553
|
+
export namespace DeploymentGetConfig22$ {
|
|
5554
|
+
/** @deprecated use `DeploymentGetConfig22$inboundSchema` instead. */
|
|
5555
|
+
export const inboundSchema = DeploymentGetConfig22$inboundSchema;
|
|
5556
|
+
/** @deprecated use `DeploymentGetConfig22$outboundSchema` instead. */
|
|
5557
|
+
export const outboundSchema = DeploymentGetConfig22$outboundSchema;
|
|
5558
|
+
/** @deprecated use `DeploymentGetConfig22$Outbound` instead. */
|
|
5559
|
+
export type Outbound = DeploymentGetConfig22$Outbound;
|
|
5708
5560
|
}
|
|
5709
5561
|
|
|
5710
|
-
export function
|
|
5711
|
-
|
|
5562
|
+
export function deploymentGetConfig22ToJSON(
|
|
5563
|
+
deploymentGetConfig22: DeploymentGetConfig22,
|
|
5712
5564
|
): string {
|
|
5713
5565
|
return JSON.stringify(
|
|
5714
|
-
|
|
5715
|
-
deploymentGetConfig2Deployments2,
|
|
5716
|
-
),
|
|
5566
|
+
DeploymentGetConfig22$outboundSchema.parse(deploymentGetConfig22),
|
|
5717
5567
|
);
|
|
5718
5568
|
}
|
|
5719
5569
|
|
|
5720
|
-
export function
|
|
5570
|
+
export function deploymentGetConfig22FromJSON(
|
|
5721
5571
|
jsonString: string,
|
|
5722
|
-
): SafeParseResult<
|
|
5572
|
+
): SafeParseResult<DeploymentGetConfig22, SDKValidationError> {
|
|
5723
5573
|
return safeParse(
|
|
5724
5574
|
jsonString,
|
|
5725
|
-
(x) =>
|
|
5726
|
-
`Failed to parse '
|
|
5575
|
+
(x) => DeploymentGetConfig22$inboundSchema.parse(JSON.parse(x)),
|
|
5576
|
+
`Failed to parse 'DeploymentGetConfig22' from JSON`,
|
|
5727
5577
|
);
|
|
5728
5578
|
}
|
|
5729
5579
|
|
|
@@ -5756,92 +5606,82 @@ export namespace DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$
|
|
|
5756
5606
|
}
|
|
5757
5607
|
|
|
5758
5608
|
/** @internal */
|
|
5759
|
-
export const
|
|
5760
|
-
|
|
5761
|
-
|
|
5762
|
-
|
|
5763
|
-
|
|
5764
|
-
|
|
5765
|
-
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema,
|
|
5766
|
-
text: z.string(),
|
|
5767
|
-
});
|
|
5609
|
+
export const Two1$inboundSchema: z.ZodType<Two1, z.ZodTypeDef, unknown> = z
|
|
5610
|
+
.object({
|
|
5611
|
+
type:
|
|
5612
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$inboundSchema,
|
|
5613
|
+
text: z.string(),
|
|
5614
|
+
});
|
|
5768
5615
|
|
|
5769
5616
|
/** @internal */
|
|
5770
|
-
export type
|
|
5617
|
+
export type Two1$Outbound = {
|
|
5771
5618
|
type: string;
|
|
5772
5619
|
text: string;
|
|
5773
5620
|
};
|
|
5774
5621
|
|
|
5775
5622
|
/** @internal */
|
|
5776
|
-
export const
|
|
5777
|
-
|
|
5778
|
-
|
|
5779
|
-
|
|
5780
|
-
|
|
5781
|
-
|
|
5782
|
-
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$outboundSchema,
|
|
5783
|
-
text: z.string(),
|
|
5784
|
-
});
|
|
5623
|
+
export const Two1$outboundSchema: z.ZodType<Two1$Outbound, z.ZodTypeDef, Two1> =
|
|
5624
|
+
z.object({
|
|
5625
|
+
type:
|
|
5626
|
+
DeploymentGetConfig2DeploymentsRequestRequestBodyMessagesType$outboundSchema,
|
|
5627
|
+
text: z.string(),
|
|
5628
|
+
});
|
|
5785
5629
|
|
|
5786
5630
|
/**
|
|
5787
5631
|
* @internal
|
|
5788
5632
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5789
5633
|
*/
|
|
5790
|
-
export namespace
|
|
5791
|
-
/** @deprecated use `
|
|
5792
|
-
export const inboundSchema =
|
|
5793
|
-
/** @deprecated use `
|
|
5794
|
-
export const outboundSchema =
|
|
5795
|
-
/** @deprecated use `
|
|
5796
|
-
export type Outbound =
|
|
5634
|
+
export namespace Two1$ {
|
|
5635
|
+
/** @deprecated use `Two1$inboundSchema` instead. */
|
|
5636
|
+
export const inboundSchema = Two1$inboundSchema;
|
|
5637
|
+
/** @deprecated use `Two1$outboundSchema` instead. */
|
|
5638
|
+
export const outboundSchema = Two1$outboundSchema;
|
|
5639
|
+
/** @deprecated use `Two1$Outbound` instead. */
|
|
5640
|
+
export type Outbound = Two1$Outbound;
|
|
5797
5641
|
}
|
|
5798
5642
|
|
|
5799
|
-
export function
|
|
5800
|
-
|
|
5801
|
-
): string {
|
|
5802
|
-
return JSON.stringify(
|
|
5803
|
-
DeploymentGetConfig21$outboundSchema.parse(deploymentGetConfig21),
|
|
5804
|
-
);
|
|
5643
|
+
export function two1ToJSON(two1: Two1): string {
|
|
5644
|
+
return JSON.stringify(Two1$outboundSchema.parse(two1));
|
|
5805
5645
|
}
|
|
5806
5646
|
|
|
5807
|
-
export function
|
|
5647
|
+
export function two1FromJSON(
|
|
5808
5648
|
jsonString: string,
|
|
5809
|
-
): SafeParseResult<
|
|
5649
|
+
): SafeParseResult<Two1, SDKValidationError> {
|
|
5810
5650
|
return safeParse(
|
|
5811
5651
|
jsonString,
|
|
5812
|
-
(x) =>
|
|
5813
|
-
`Failed to parse '
|
|
5652
|
+
(x) => Two1$inboundSchema.parse(JSON.parse(x)),
|
|
5653
|
+
`Failed to parse 'Two1' from JSON`,
|
|
5814
5654
|
);
|
|
5815
5655
|
}
|
|
5816
5656
|
|
|
5817
5657
|
/** @internal */
|
|
5818
|
-
export const
|
|
5819
|
-
|
|
5658
|
+
export const DeploymentGetConfigContent2$inboundSchema: z.ZodType<
|
|
5659
|
+
DeploymentGetConfigContent2,
|
|
5820
5660
|
z.ZodTypeDef,
|
|
5821
5661
|
unknown
|
|
5822
5662
|
> = z.union([
|
|
5823
|
-
z.lazy(() =>
|
|
5824
|
-
z.lazy(() =>
|
|
5825
|
-
z.lazy(() =>
|
|
5663
|
+
z.lazy(() => Two1$inboundSchema),
|
|
5664
|
+
z.lazy(() => DeploymentGetConfig22$inboundSchema),
|
|
5665
|
+
z.lazy(() => Two3$inboundSchema),
|
|
5826
5666
|
z.lazy(() => Two4$inboundSchema),
|
|
5827
5667
|
]);
|
|
5828
5668
|
|
|
5829
5669
|
/** @internal */
|
|
5830
|
-
export type
|
|
5831
|
-
|
|
|
5832
|
-
|
|
|
5833
|
-
|
|
|
5670
|
+
export type DeploymentGetConfigContent2$Outbound =
|
|
5671
|
+
| Two1$Outbound
|
|
5672
|
+
| DeploymentGetConfig22$Outbound
|
|
5673
|
+
| Two3$Outbound
|
|
5834
5674
|
| Two4$Outbound;
|
|
5835
5675
|
|
|
5836
5676
|
/** @internal */
|
|
5837
|
-
export const
|
|
5838
|
-
|
|
5677
|
+
export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
|
|
5678
|
+
DeploymentGetConfigContent2$Outbound,
|
|
5839
5679
|
z.ZodTypeDef,
|
|
5840
|
-
|
|
5680
|
+
DeploymentGetConfigContent2
|
|
5841
5681
|
> = z.union([
|
|
5842
|
-
z.lazy(() =>
|
|
5843
|
-
z.lazy(() =>
|
|
5844
|
-
z.lazy(() =>
|
|
5682
|
+
z.lazy(() => Two1$outboundSchema),
|
|
5683
|
+
z.lazy(() => DeploymentGetConfig22$outboundSchema),
|
|
5684
|
+
z.lazy(() => Two3$outboundSchema),
|
|
5845
5685
|
z.lazy(() => Two4$outboundSchema),
|
|
5846
5686
|
]);
|
|
5847
5687
|
|
|
@@ -5849,36 +5689,32 @@ export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
|
|
|
5849
5689
|
* @internal
|
|
5850
5690
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
5851
5691
|
*/
|
|
5852
|
-
export namespace
|
|
5853
|
-
/** @deprecated use `
|
|
5854
|
-
export const inboundSchema =
|
|
5855
|
-
|
|
5856
|
-
|
|
5857
|
-
|
|
5858
|
-
|
|
5859
|
-
/** @deprecated use `DeploymentGetConfigContentDeployments2$Outbound` instead. */
|
|
5860
|
-
export type Outbound = DeploymentGetConfigContentDeployments2$Outbound;
|
|
5692
|
+
export namespace DeploymentGetConfigContent2$ {
|
|
5693
|
+
/** @deprecated use `DeploymentGetConfigContent2$inboundSchema` instead. */
|
|
5694
|
+
export const inboundSchema = DeploymentGetConfigContent2$inboundSchema;
|
|
5695
|
+
/** @deprecated use `DeploymentGetConfigContent2$outboundSchema` instead. */
|
|
5696
|
+
export const outboundSchema = DeploymentGetConfigContent2$outboundSchema;
|
|
5697
|
+
/** @deprecated use `DeploymentGetConfigContent2$Outbound` instead. */
|
|
5698
|
+
export type Outbound = DeploymentGetConfigContent2$Outbound;
|
|
5861
5699
|
}
|
|
5862
5700
|
|
|
5863
|
-
export function
|
|
5864
|
-
|
|
5865
|
-
DeploymentGetConfigContentDeployments2,
|
|
5701
|
+
export function deploymentGetConfigContent2ToJSON(
|
|
5702
|
+
deploymentGetConfigContent2: DeploymentGetConfigContent2,
|
|
5866
5703
|
): string {
|
|
5867
5704
|
return JSON.stringify(
|
|
5868
|
-
|
|
5869
|
-
|
|
5705
|
+
DeploymentGetConfigContent2$outboundSchema.parse(
|
|
5706
|
+
deploymentGetConfigContent2,
|
|
5870
5707
|
),
|
|
5871
5708
|
);
|
|
5872
5709
|
}
|
|
5873
5710
|
|
|
5874
|
-
export function
|
|
5711
|
+
export function deploymentGetConfigContent2FromJSON(
|
|
5875
5712
|
jsonString: string,
|
|
5876
|
-
): SafeParseResult<
|
|
5713
|
+
): SafeParseResult<DeploymentGetConfigContent2, SDKValidationError> {
|
|
5877
5714
|
return safeParse(
|
|
5878
5715
|
jsonString,
|
|
5879
|
-
(x) =>
|
|
5880
|
-
|
|
5881
|
-
`Failed to parse 'DeploymentGetConfigContentDeployments2' from JSON`,
|
|
5716
|
+
(x) => DeploymentGetConfigContent2$inboundSchema.parse(JSON.parse(x)),
|
|
5717
|
+
`Failed to parse 'DeploymentGetConfigContent2' from JSON`,
|
|
5882
5718
|
);
|
|
5883
5719
|
}
|
|
5884
5720
|
|
|
@@ -5890,9 +5726,9 @@ export const MessagesContent$inboundSchema: z.ZodType<
|
|
|
5890
5726
|
> = z.union([
|
|
5891
5727
|
z.string(),
|
|
5892
5728
|
z.array(z.union([
|
|
5893
|
-
z.lazy(() =>
|
|
5894
|
-
z.lazy(() =>
|
|
5895
|
-
z.lazy(() =>
|
|
5729
|
+
z.lazy(() => Two1$inboundSchema),
|
|
5730
|
+
z.lazy(() => DeploymentGetConfig22$inboundSchema),
|
|
5731
|
+
z.lazy(() => Two3$inboundSchema),
|
|
5896
5732
|
z.lazy(() => Two4$inboundSchema),
|
|
5897
5733
|
])),
|
|
5898
5734
|
]);
|
|
@@ -5901,9 +5737,9 @@ export const MessagesContent$inboundSchema: z.ZodType<
|
|
|
5901
5737
|
export type MessagesContent$Outbound =
|
|
5902
5738
|
| string
|
|
5903
5739
|
| Array<
|
|
5904
|
-
|
|
|
5905
|
-
|
|
|
5906
|
-
|
|
|
5740
|
+
| Two1$Outbound
|
|
5741
|
+
| DeploymentGetConfig22$Outbound
|
|
5742
|
+
| Two3$Outbound
|
|
5907
5743
|
| Two4$Outbound
|
|
5908
5744
|
>;
|
|
5909
5745
|
|
|
@@ -5915,9 +5751,9 @@ export const MessagesContent$outboundSchema: z.ZodType<
|
|
|
5915
5751
|
> = z.union([
|
|
5916
5752
|
z.string(),
|
|
5917
5753
|
z.array(z.union([
|
|
5918
|
-
z.lazy(() =>
|
|
5919
|
-
z.lazy(() =>
|
|
5920
|
-
z.lazy(() =>
|
|
5754
|
+
z.lazy(() => Two1$outboundSchema),
|
|
5755
|
+
z.lazy(() => DeploymentGetConfig22$outboundSchema),
|
|
5756
|
+
z.lazy(() => Two3$outboundSchema),
|
|
5921
5757
|
z.lazy(() => Two4$outboundSchema),
|
|
5922
5758
|
])),
|
|
5923
5759
|
]);
|
|
@@ -5962,9 +5798,9 @@ export const MessagesUserMessage$inboundSchema: z.ZodType<
|
|
|
5962
5798
|
content: z.union([
|
|
5963
5799
|
z.string(),
|
|
5964
5800
|
z.array(z.union([
|
|
5965
|
-
z.lazy(() =>
|
|
5966
|
-
z.lazy(() =>
|
|
5967
|
-
z.lazy(() =>
|
|
5801
|
+
z.lazy(() => Two1$inboundSchema),
|
|
5802
|
+
z.lazy(() => DeploymentGetConfig22$inboundSchema),
|
|
5803
|
+
z.lazy(() => Two3$inboundSchema),
|
|
5968
5804
|
z.lazy(() => Two4$inboundSchema),
|
|
5969
5805
|
])),
|
|
5970
5806
|
]),
|
|
@@ -5977,9 +5813,9 @@ export type MessagesUserMessage$Outbound = {
|
|
|
5977
5813
|
content:
|
|
5978
5814
|
| string
|
|
5979
5815
|
| Array<
|
|
5980
|
-
|
|
|
5981
|
-
|
|
|
5982
|
-
|
|
|
5816
|
+
| Two1$Outbound
|
|
5817
|
+
| DeploymentGetConfig22$Outbound
|
|
5818
|
+
| Two3$Outbound
|
|
5983
5819
|
| Two4$Outbound
|
|
5984
5820
|
>;
|
|
5985
5821
|
};
|
|
@@ -5995,9 +5831,9 @@ export const MessagesUserMessage$outboundSchema: z.ZodType<
|
|
|
5995
5831
|
content: z.union([
|
|
5996
5832
|
z.string(),
|
|
5997
5833
|
z.array(z.union([
|
|
5998
|
-
z.lazy(() =>
|
|
5999
|
-
z.lazy(() =>
|
|
6000
|
-
z.lazy(() =>
|
|
5834
|
+
z.lazy(() => Two1$outboundSchema),
|
|
5835
|
+
z.lazy(() => DeploymentGetConfig22$outboundSchema),
|
|
5836
|
+
z.lazy(() => Two3$outboundSchema),
|
|
6001
5837
|
z.lazy(() => Two4$outboundSchema),
|
|
6002
5838
|
])),
|
|
6003
5839
|
]),
|
|
@@ -6195,8 +6031,8 @@ export function messagesDeveloperMessageFromJSON(
|
|
|
6195
6031
|
}
|
|
6196
6032
|
|
|
6197
6033
|
/** @internal */
|
|
6198
|
-
export const
|
|
6199
|
-
|
|
6034
|
+
export const Messages$inboundSchema: z.ZodType<
|
|
6035
|
+
Messages,
|
|
6200
6036
|
z.ZodTypeDef,
|
|
6201
6037
|
unknown
|
|
6202
6038
|
> = z.union([
|
|
@@ -6208,7 +6044,7 @@ export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
|
|
|
6208
6044
|
]);
|
|
6209
6045
|
|
|
6210
6046
|
/** @internal */
|
|
6211
|
-
export type
|
|
6047
|
+
export type Messages$Outbound =
|
|
6212
6048
|
| MessagesToolMessage$Outbound
|
|
6213
6049
|
| MessagesDeveloperMessage$Outbound
|
|
6214
6050
|
| MessagesSystemMessage$Outbound
|
|
@@ -6216,10 +6052,10 @@ export type DeploymentGetConfigMessages$Outbound =
|
|
|
6216
6052
|
| MessagesAssistantMessage$Outbound;
|
|
6217
6053
|
|
|
6218
6054
|
/** @internal */
|
|
6219
|
-
export const
|
|
6220
|
-
|
|
6055
|
+
export const Messages$outboundSchema: z.ZodType<
|
|
6056
|
+
Messages$Outbound,
|
|
6221
6057
|
z.ZodTypeDef,
|
|
6222
|
-
|
|
6058
|
+
Messages
|
|
6223
6059
|
> = z.union([
|
|
6224
6060
|
z.lazy(() => MessagesToolMessage$outboundSchema),
|
|
6225
6061
|
z.lazy(() => MessagesDeveloperMessage$outboundSchema),
|
|
@@ -6232,32 +6068,26 @@ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
|
|
|
6232
6068
|
* @internal
|
|
6233
6069
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
6234
6070
|
*/
|
|
6235
|
-
export namespace
|
|
6236
|
-
/** @deprecated use `
|
|
6237
|
-
export const inboundSchema =
|
|
6238
|
-
/** @deprecated use `
|
|
6239
|
-
export const outboundSchema =
|
|
6240
|
-
/** @deprecated use `
|
|
6241
|
-
export type Outbound =
|
|
6071
|
+
export namespace Messages$ {
|
|
6072
|
+
/** @deprecated use `Messages$inboundSchema` instead. */
|
|
6073
|
+
export const inboundSchema = Messages$inboundSchema;
|
|
6074
|
+
/** @deprecated use `Messages$outboundSchema` instead. */
|
|
6075
|
+
export const outboundSchema = Messages$outboundSchema;
|
|
6076
|
+
/** @deprecated use `Messages$Outbound` instead. */
|
|
6077
|
+
export type Outbound = Messages$Outbound;
|
|
6242
6078
|
}
|
|
6243
6079
|
|
|
6244
|
-
export function
|
|
6245
|
-
|
|
6246
|
-
): string {
|
|
6247
|
-
return JSON.stringify(
|
|
6248
|
-
DeploymentGetConfigMessages$outboundSchema.parse(
|
|
6249
|
-
deploymentGetConfigMessages,
|
|
6250
|
-
),
|
|
6251
|
-
);
|
|
6080
|
+
export function messagesToJSON(messages: Messages): string {
|
|
6081
|
+
return JSON.stringify(Messages$outboundSchema.parse(messages));
|
|
6252
6082
|
}
|
|
6253
6083
|
|
|
6254
|
-
export function
|
|
6084
|
+
export function messagesFromJSON(
|
|
6255
6085
|
jsonString: string,
|
|
6256
|
-
): SafeParseResult<
|
|
6086
|
+
): SafeParseResult<Messages, SDKValidationError> {
|
|
6257
6087
|
return safeParse(
|
|
6258
6088
|
jsonString,
|
|
6259
|
-
(x) =>
|
|
6260
|
-
`Failed to parse '
|
|
6089
|
+
(x) => Messages$inboundSchema.parse(JSON.parse(x)),
|
|
6090
|
+
`Failed to parse 'Messages' from JSON`,
|
|
6261
6091
|
);
|
|
6262
6092
|
}
|
|
6263
6093
|
|
|
@@ -9020,8 +8850,8 @@ export namespace DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$
|
|
|
9020
8850
|
}
|
|
9021
8851
|
|
|
9022
8852
|
/** @internal */
|
|
9023
|
-
export const
|
|
9024
|
-
|
|
8853
|
+
export const DeploymentGetConfig2File$inboundSchema: z.ZodType<
|
|
8854
|
+
DeploymentGetConfig2File,
|
|
9025
8855
|
z.ZodTypeDef,
|
|
9026
8856
|
unknown
|
|
9027
8857
|
> = z.object({
|
|
@@ -9036,7 +8866,7 @@ export const DeploymentGetConfig2DeploymentsFile$inboundSchema: z.ZodType<
|
|
|
9036
8866
|
});
|
|
9037
8867
|
|
|
9038
8868
|
/** @internal */
|
|
9039
|
-
export type
|
|
8869
|
+
export type DeploymentGetConfig2File$Outbound = {
|
|
9040
8870
|
file_data?: string | undefined;
|
|
9041
8871
|
uri?: string | undefined;
|
|
9042
8872
|
mimeType?: string | undefined;
|
|
@@ -9044,10 +8874,10 @@ export type DeploymentGetConfig2DeploymentsFile$Outbound = {
|
|
|
9044
8874
|
};
|
|
9045
8875
|
|
|
9046
8876
|
/** @internal */
|
|
9047
|
-
export const
|
|
9048
|
-
|
|
8877
|
+
export const DeploymentGetConfig2File$outboundSchema: z.ZodType<
|
|
8878
|
+
DeploymentGetConfig2File$Outbound,
|
|
9049
8879
|
z.ZodTypeDef,
|
|
9050
|
-
|
|
8880
|
+
DeploymentGetConfig2File
|
|
9051
8881
|
> = z.object({
|
|
9052
8882
|
fileData: z.string().optional(),
|
|
9053
8883
|
uri: z.string().optional(),
|
|
@@ -9063,96 +8893,89 @@ export const DeploymentGetConfig2DeploymentsFile$outboundSchema: z.ZodType<
|
|
|
9063
8893
|
* @internal
|
|
9064
8894
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
9065
8895
|
*/
|
|
9066
|
-
export namespace
|
|
9067
|
-
/** @deprecated use `
|
|
9068
|
-
export const inboundSchema =
|
|
9069
|
-
|
|
9070
|
-
|
|
9071
|
-
|
|
9072
|
-
|
|
9073
|
-
/** @deprecated use `DeploymentGetConfig2DeploymentsFile$Outbound` instead. */
|
|
9074
|
-
export type Outbound = DeploymentGetConfig2DeploymentsFile$Outbound;
|
|
8896
|
+
export namespace DeploymentGetConfig2File$ {
|
|
8897
|
+
/** @deprecated use `DeploymentGetConfig2File$inboundSchema` instead. */
|
|
8898
|
+
export const inboundSchema = DeploymentGetConfig2File$inboundSchema;
|
|
8899
|
+
/** @deprecated use `DeploymentGetConfig2File$outboundSchema` instead. */
|
|
8900
|
+
export const outboundSchema = DeploymentGetConfig2File$outboundSchema;
|
|
8901
|
+
/** @deprecated use `DeploymentGetConfig2File$Outbound` instead. */
|
|
8902
|
+
export type Outbound = DeploymentGetConfig2File$Outbound;
|
|
9075
8903
|
}
|
|
9076
8904
|
|
|
9077
|
-
export function
|
|
9078
|
-
|
|
8905
|
+
export function deploymentGetConfig2FileToJSON(
|
|
8906
|
+
deploymentGetConfig2File: DeploymentGetConfig2File,
|
|
9079
8907
|
): string {
|
|
9080
8908
|
return JSON.stringify(
|
|
9081
|
-
|
|
9082
|
-
deploymentGetConfig2DeploymentsFile,
|
|
9083
|
-
),
|
|
8909
|
+
DeploymentGetConfig2File$outboundSchema.parse(deploymentGetConfig2File),
|
|
9084
8910
|
);
|
|
9085
8911
|
}
|
|
9086
8912
|
|
|
9087
|
-
export function
|
|
8913
|
+
export function deploymentGetConfig2FileFromJSON(
|
|
9088
8914
|
jsonString: string,
|
|
9089
|
-
): SafeParseResult<
|
|
8915
|
+
): SafeParseResult<DeploymentGetConfig2File, SDKValidationError> {
|
|
9090
8916
|
return safeParse(
|
|
9091
8917
|
jsonString,
|
|
9092
|
-
(x) =>
|
|
9093
|
-
|
|
9094
|
-
`Failed to parse 'DeploymentGetConfig2DeploymentsFile' from JSON`,
|
|
8918
|
+
(x) => DeploymentGetConfig2File$inboundSchema.parse(JSON.parse(x)),
|
|
8919
|
+
`Failed to parse 'DeploymentGetConfig2File' from JSON`,
|
|
9095
8920
|
);
|
|
9096
8921
|
}
|
|
9097
8922
|
|
|
9098
8923
|
/** @internal */
|
|
9099
|
-
export const
|
|
9100
|
-
|
|
8924
|
+
export const DeploymentGetConfig23$inboundSchema: z.ZodType<
|
|
8925
|
+
DeploymentGetConfig23,
|
|
9101
8926
|
z.ZodTypeDef,
|
|
9102
8927
|
unknown
|
|
9103
8928
|
> = z.object({
|
|
9104
8929
|
type:
|
|
9105
8930
|
DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$inboundSchema,
|
|
9106
|
-
file: z.lazy(() =>
|
|
8931
|
+
file: z.lazy(() => DeploymentGetConfig2File$inboundSchema),
|
|
9107
8932
|
});
|
|
9108
8933
|
|
|
9109
8934
|
/** @internal */
|
|
9110
|
-
export type
|
|
8935
|
+
export type DeploymentGetConfig23$Outbound = {
|
|
9111
8936
|
type: string;
|
|
9112
|
-
file:
|
|
8937
|
+
file: DeploymentGetConfig2File$Outbound;
|
|
9113
8938
|
};
|
|
9114
8939
|
|
|
9115
8940
|
/** @internal */
|
|
9116
|
-
export const
|
|
9117
|
-
|
|
8941
|
+
export const DeploymentGetConfig23$outboundSchema: z.ZodType<
|
|
8942
|
+
DeploymentGetConfig23$Outbound,
|
|
9118
8943
|
z.ZodTypeDef,
|
|
9119
|
-
|
|
8944
|
+
DeploymentGetConfig23
|
|
9120
8945
|
> = z.object({
|
|
9121
8946
|
type:
|
|
9122
8947
|
DeploymentGetConfig2DeploymentsResponse200ApplicationJSONType$outboundSchema,
|
|
9123
|
-
file: z.lazy(() =>
|
|
8948
|
+
file: z.lazy(() => DeploymentGetConfig2File$outboundSchema),
|
|
9124
8949
|
});
|
|
9125
8950
|
|
|
9126
8951
|
/**
|
|
9127
8952
|
* @internal
|
|
9128
8953
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
9129
8954
|
*/
|
|
9130
|
-
export namespace
|
|
9131
|
-
/** @deprecated use `
|
|
9132
|
-
export const inboundSchema =
|
|
9133
|
-
/** @deprecated use `
|
|
9134
|
-
export const outboundSchema =
|
|
9135
|
-
/** @deprecated use `
|
|
9136
|
-
export type Outbound =
|
|
8955
|
+
export namespace DeploymentGetConfig23$ {
|
|
8956
|
+
/** @deprecated use `DeploymentGetConfig23$inboundSchema` instead. */
|
|
8957
|
+
export const inboundSchema = DeploymentGetConfig23$inboundSchema;
|
|
8958
|
+
/** @deprecated use `DeploymentGetConfig23$outboundSchema` instead. */
|
|
8959
|
+
export const outboundSchema = DeploymentGetConfig23$outboundSchema;
|
|
8960
|
+
/** @deprecated use `DeploymentGetConfig23$Outbound` instead. */
|
|
8961
|
+
export type Outbound = DeploymentGetConfig23$Outbound;
|
|
9137
8962
|
}
|
|
9138
8963
|
|
|
9139
|
-
export function
|
|
9140
|
-
|
|
8964
|
+
export function deploymentGetConfig23ToJSON(
|
|
8965
|
+
deploymentGetConfig23: DeploymentGetConfig23,
|
|
9141
8966
|
): string {
|
|
9142
8967
|
return JSON.stringify(
|
|
9143
|
-
|
|
9144
|
-
deploymentGetConfig2Deployments3,
|
|
9145
|
-
),
|
|
8968
|
+
DeploymentGetConfig23$outboundSchema.parse(deploymentGetConfig23),
|
|
9146
8969
|
);
|
|
9147
8970
|
}
|
|
9148
8971
|
|
|
9149
|
-
export function
|
|
8972
|
+
export function deploymentGetConfig23FromJSON(
|
|
9150
8973
|
jsonString: string,
|
|
9151
|
-
): SafeParseResult<
|
|
8974
|
+
): SafeParseResult<DeploymentGetConfig23, SDKValidationError> {
|
|
9152
8975
|
return safeParse(
|
|
9153
8976
|
jsonString,
|
|
9154
|
-
(x) =>
|
|
9155
|
-
`Failed to parse '
|
|
8977
|
+
(x) => DeploymentGetConfig23$inboundSchema.parse(JSON.parse(x)),
|
|
8978
|
+
`Failed to parse 'DeploymentGetConfig23' from JSON`,
|
|
9156
8979
|
);
|
|
9157
8980
|
}
|
|
9158
8981
|
|
|
@@ -9180,8 +9003,8 @@ export namespace DeploymentGetConfig2DeploymentsResponse200Type$ {
|
|
|
9180
9003
|
}
|
|
9181
9004
|
|
|
9182
9005
|
/** @internal */
|
|
9183
|
-
export const
|
|
9184
|
-
|
|
9006
|
+
export const DeploymentGetConfig2ImageUrl$inboundSchema: z.ZodType<
|
|
9007
|
+
DeploymentGetConfig2ImageUrl,
|
|
9185
9008
|
z.ZodTypeDef,
|
|
9186
9009
|
unknown
|
|
9187
9010
|
> = z.object({
|
|
@@ -9191,17 +9014,17 @@ export const DeploymentGetConfig2DeploymentsImageUrl$inboundSchema: z.ZodType<
|
|
|
9191
9014
|
});
|
|
9192
9015
|
|
|
9193
9016
|
/** @internal */
|
|
9194
|
-
export type
|
|
9017
|
+
export type DeploymentGetConfig2ImageUrl$Outbound = {
|
|
9195
9018
|
id?: string | undefined;
|
|
9196
9019
|
url: string;
|
|
9197
9020
|
detail?: string | undefined;
|
|
9198
9021
|
};
|
|
9199
9022
|
|
|
9200
9023
|
/** @internal */
|
|
9201
|
-
export const
|
|
9202
|
-
|
|
9024
|
+
export const DeploymentGetConfig2ImageUrl$outboundSchema: z.ZodType<
|
|
9025
|
+
DeploymentGetConfig2ImageUrl$Outbound,
|
|
9203
9026
|
z.ZodTypeDef,
|
|
9204
|
-
|
|
9027
|
+
DeploymentGetConfig2ImageUrl
|
|
9205
9028
|
> = z.object({
|
|
9206
9029
|
id: z.string().optional(),
|
|
9207
9030
|
url: z.string(),
|
|
@@ -9212,54 +9035,43 @@ export const DeploymentGetConfig2DeploymentsImageUrl$outboundSchema: z.ZodType<
|
|
|
9212
9035
|
* @internal
|
|
9213
9036
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
9214
9037
|
*/
|
|
9215
|
-
export namespace
|
|
9216
|
-
/** @deprecated use `
|
|
9217
|
-
export const inboundSchema =
|
|
9218
|
-
|
|
9219
|
-
|
|
9220
|
-
|
|
9221
|
-
|
|
9222
|
-
/** @deprecated use `DeploymentGetConfig2DeploymentsImageUrl$Outbound` instead. */
|
|
9223
|
-
export type Outbound = DeploymentGetConfig2DeploymentsImageUrl$Outbound;
|
|
9038
|
+
export namespace DeploymentGetConfig2ImageUrl$ {
|
|
9039
|
+
/** @deprecated use `DeploymentGetConfig2ImageUrl$inboundSchema` instead. */
|
|
9040
|
+
export const inboundSchema = DeploymentGetConfig2ImageUrl$inboundSchema;
|
|
9041
|
+
/** @deprecated use `DeploymentGetConfig2ImageUrl$outboundSchema` instead. */
|
|
9042
|
+
export const outboundSchema = DeploymentGetConfig2ImageUrl$outboundSchema;
|
|
9043
|
+
/** @deprecated use `DeploymentGetConfig2ImageUrl$Outbound` instead. */
|
|
9044
|
+
export type Outbound = DeploymentGetConfig2ImageUrl$Outbound;
|
|
9224
9045
|
}
|
|
9225
9046
|
|
|
9226
|
-
export function
|
|
9227
|
-
|
|
9228
|
-
DeploymentGetConfig2DeploymentsImageUrl,
|
|
9047
|
+
export function deploymentGetConfig2ImageUrlToJSON(
|
|
9048
|
+
deploymentGetConfig2ImageUrl: DeploymentGetConfig2ImageUrl,
|
|
9229
9049
|
): string {
|
|
9230
9050
|
return JSON.stringify(
|
|
9231
|
-
|
|
9232
|
-
|
|
9051
|
+
DeploymentGetConfig2ImageUrl$outboundSchema.parse(
|
|
9052
|
+
deploymentGetConfig2ImageUrl,
|
|
9233
9053
|
),
|
|
9234
9054
|
);
|
|
9235
9055
|
}
|
|
9236
9056
|
|
|
9237
|
-
export function
|
|
9057
|
+
export function deploymentGetConfig2ImageUrlFromJSON(
|
|
9238
9058
|
jsonString: string,
|
|
9239
|
-
): SafeParseResult<
|
|
9240
|
-
DeploymentGetConfig2DeploymentsImageUrl,
|
|
9241
|
-
SDKValidationError
|
|
9242
|
-
> {
|
|
9059
|
+
): SafeParseResult<DeploymentGetConfig2ImageUrl, SDKValidationError> {
|
|
9243
9060
|
return safeParse(
|
|
9244
9061
|
jsonString,
|
|
9245
|
-
(x) =>
|
|
9246
|
-
|
|
9247
|
-
JSON.parse(x),
|
|
9248
|
-
),
|
|
9249
|
-
`Failed to parse 'DeploymentGetConfig2DeploymentsImageUrl' from JSON`,
|
|
9062
|
+
(x) => DeploymentGetConfig2ImageUrl$inboundSchema.parse(JSON.parse(x)),
|
|
9063
|
+
`Failed to parse 'DeploymentGetConfig2ImageUrl' from JSON`,
|
|
9250
9064
|
);
|
|
9251
9065
|
}
|
|
9252
9066
|
|
|
9253
9067
|
/** @internal */
|
|
9254
|
-
export const
|
|
9255
|
-
|
|
9068
|
+
export const DeploymentGetConfig2Deployments2$inboundSchema: z.ZodType<
|
|
9069
|
+
DeploymentGetConfig2Deployments2,
|
|
9256
9070
|
z.ZodTypeDef,
|
|
9257
9071
|
unknown
|
|
9258
9072
|
> = z.object({
|
|
9259
9073
|
type: DeploymentGetConfig2DeploymentsResponse200Type$inboundSchema,
|
|
9260
|
-
image_url: z.lazy(() =>
|
|
9261
|
-
DeploymentGetConfig2DeploymentsImageUrl$inboundSchema
|
|
9262
|
-
),
|
|
9074
|
+
image_url: z.lazy(() => DeploymentGetConfig2ImageUrl$inboundSchema),
|
|
9263
9075
|
}).transform((v) => {
|
|
9264
9076
|
return remap$(v, {
|
|
9265
9077
|
"image_url": "imageUrl",
|
|
@@ -9267,21 +9079,19 @@ export const DeploymentGetConfig2DeploymentsResponse2$inboundSchema: z.ZodType<
|
|
|
9267
9079
|
});
|
|
9268
9080
|
|
|
9269
9081
|
/** @internal */
|
|
9270
|
-
export type
|
|
9082
|
+
export type DeploymentGetConfig2Deployments2$Outbound = {
|
|
9271
9083
|
type: string;
|
|
9272
|
-
image_url:
|
|
9084
|
+
image_url: DeploymentGetConfig2ImageUrl$Outbound;
|
|
9273
9085
|
};
|
|
9274
9086
|
|
|
9275
9087
|
/** @internal */
|
|
9276
|
-
export const
|
|
9277
|
-
|
|
9088
|
+
export const DeploymentGetConfig2Deployments2$outboundSchema: z.ZodType<
|
|
9089
|
+
DeploymentGetConfig2Deployments2$Outbound,
|
|
9278
9090
|
z.ZodTypeDef,
|
|
9279
|
-
|
|
9091
|
+
DeploymentGetConfig2Deployments2
|
|
9280
9092
|
> = z.object({
|
|
9281
9093
|
type: DeploymentGetConfig2DeploymentsResponse200Type$outboundSchema,
|
|
9282
|
-
imageUrl: z.lazy(() =>
|
|
9283
|
-
DeploymentGetConfig2DeploymentsImageUrl$outboundSchema
|
|
9284
|
-
),
|
|
9094
|
+
imageUrl: z.lazy(() => DeploymentGetConfig2ImageUrl$outboundSchema),
|
|
9285
9095
|
}).transform((v) => {
|
|
9286
9096
|
return remap$(v, {
|
|
9287
9097
|
imageUrl: "image_url",
|
|
@@ -9292,41 +9102,32 @@ export const DeploymentGetConfig2DeploymentsResponse2$outboundSchema: z.ZodType<
|
|
|
9292
9102
|
* @internal
|
|
9293
9103
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
9294
9104
|
*/
|
|
9295
|
-
export namespace
|
|
9296
|
-
/** @deprecated use `
|
|
9297
|
-
export const inboundSchema =
|
|
9298
|
-
|
|
9299
|
-
|
|
9300
|
-
|
|
9301
|
-
|
|
9302
|
-
/** @deprecated use `DeploymentGetConfig2DeploymentsResponse2$Outbound` instead. */
|
|
9303
|
-
export type Outbound = DeploymentGetConfig2DeploymentsResponse2$Outbound;
|
|
9105
|
+
export namespace DeploymentGetConfig2Deployments2$ {
|
|
9106
|
+
/** @deprecated use `DeploymentGetConfig2Deployments2$inboundSchema` instead. */
|
|
9107
|
+
export const inboundSchema = DeploymentGetConfig2Deployments2$inboundSchema;
|
|
9108
|
+
/** @deprecated use `DeploymentGetConfig2Deployments2$outboundSchema` instead. */
|
|
9109
|
+
export const outboundSchema = DeploymentGetConfig2Deployments2$outboundSchema;
|
|
9110
|
+
/** @deprecated use `DeploymentGetConfig2Deployments2$Outbound` instead. */
|
|
9111
|
+
export type Outbound = DeploymentGetConfig2Deployments2$Outbound;
|
|
9304
9112
|
}
|
|
9305
9113
|
|
|
9306
|
-
export function
|
|
9307
|
-
|
|
9308
|
-
DeploymentGetConfig2DeploymentsResponse2,
|
|
9114
|
+
export function deploymentGetConfig2Deployments2ToJSON(
|
|
9115
|
+
deploymentGetConfig2Deployments2: DeploymentGetConfig2Deployments2,
|
|
9309
9116
|
): string {
|
|
9310
9117
|
return JSON.stringify(
|
|
9311
|
-
|
|
9312
|
-
|
|
9118
|
+
DeploymentGetConfig2Deployments2$outboundSchema.parse(
|
|
9119
|
+
deploymentGetConfig2Deployments2,
|
|
9313
9120
|
),
|
|
9314
9121
|
);
|
|
9315
9122
|
}
|
|
9316
9123
|
|
|
9317
|
-
export function
|
|
9124
|
+
export function deploymentGetConfig2Deployments2FromJSON(
|
|
9318
9125
|
jsonString: string,
|
|
9319
|
-
): SafeParseResult<
|
|
9320
|
-
DeploymentGetConfig2DeploymentsResponse2,
|
|
9321
|
-
SDKValidationError
|
|
9322
|
-
> {
|
|
9126
|
+
): SafeParseResult<DeploymentGetConfig2Deployments2, SDKValidationError> {
|
|
9323
9127
|
return safeParse(
|
|
9324
9128
|
jsonString,
|
|
9325
|
-
(x) =>
|
|
9326
|
-
|
|
9327
|
-
JSON.parse(x),
|
|
9328
|
-
),
|
|
9329
|
-
`Failed to parse 'DeploymentGetConfig2DeploymentsResponse2' from JSON`,
|
|
9129
|
+
(x) => DeploymentGetConfig2Deployments2$inboundSchema.parse(JSON.parse(x)),
|
|
9130
|
+
`Failed to parse 'DeploymentGetConfig2Deployments2' from JSON`,
|
|
9330
9131
|
);
|
|
9331
9132
|
}
|
|
9332
9133
|
|
|
@@ -9354,8 +9155,8 @@ export namespace DeploymentGetConfig2DeploymentsResponseType$ {
|
|
|
9354
9155
|
}
|
|
9355
9156
|
|
|
9356
9157
|
/** @internal */
|
|
9357
|
-
export const
|
|
9358
|
-
|
|
9158
|
+
export const DeploymentGetConfig21$inboundSchema: z.ZodType<
|
|
9159
|
+
DeploymentGetConfig21,
|
|
9359
9160
|
z.ZodTypeDef,
|
|
9360
9161
|
unknown
|
|
9361
9162
|
> = z.object({
|
|
@@ -9364,16 +9165,16 @@ export const DeploymentGetConfig2Deployments1$inboundSchema: z.ZodType<
|
|
|
9364
9165
|
});
|
|
9365
9166
|
|
|
9366
9167
|
/** @internal */
|
|
9367
|
-
export type
|
|
9168
|
+
export type DeploymentGetConfig21$Outbound = {
|
|
9368
9169
|
type: string;
|
|
9369
9170
|
text: string;
|
|
9370
9171
|
};
|
|
9371
9172
|
|
|
9372
9173
|
/** @internal */
|
|
9373
|
-
export const
|
|
9374
|
-
|
|
9174
|
+
export const DeploymentGetConfig21$outboundSchema: z.ZodType<
|
|
9175
|
+
DeploymentGetConfig21$Outbound,
|
|
9375
9176
|
z.ZodTypeDef,
|
|
9376
|
-
|
|
9177
|
+
DeploymentGetConfig21
|
|
9377
9178
|
> = z.object({
|
|
9378
9179
|
type: DeploymentGetConfig2DeploymentsResponseType$outboundSchema,
|
|
9379
9180
|
text: z.string(),
|
|
@@ -9383,32 +9184,30 @@ export const DeploymentGetConfig2Deployments1$outboundSchema: z.ZodType<
|
|
|
9383
9184
|
* @internal
|
|
9384
9185
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
9385
9186
|
*/
|
|
9386
|
-
export namespace
|
|
9387
|
-
/** @deprecated use `
|
|
9388
|
-
export const inboundSchema =
|
|
9389
|
-
/** @deprecated use `
|
|
9390
|
-
export const outboundSchema =
|
|
9391
|
-
/** @deprecated use `
|
|
9392
|
-
export type Outbound =
|
|
9187
|
+
export namespace DeploymentGetConfig21$ {
|
|
9188
|
+
/** @deprecated use `DeploymentGetConfig21$inboundSchema` instead. */
|
|
9189
|
+
export const inboundSchema = DeploymentGetConfig21$inboundSchema;
|
|
9190
|
+
/** @deprecated use `DeploymentGetConfig21$outboundSchema` instead. */
|
|
9191
|
+
export const outboundSchema = DeploymentGetConfig21$outboundSchema;
|
|
9192
|
+
/** @deprecated use `DeploymentGetConfig21$Outbound` instead. */
|
|
9193
|
+
export type Outbound = DeploymentGetConfig21$Outbound;
|
|
9393
9194
|
}
|
|
9394
9195
|
|
|
9395
|
-
export function
|
|
9396
|
-
|
|
9196
|
+
export function deploymentGetConfig21ToJSON(
|
|
9197
|
+
deploymentGetConfig21: DeploymentGetConfig21,
|
|
9397
9198
|
): string {
|
|
9398
9199
|
return JSON.stringify(
|
|
9399
|
-
|
|
9400
|
-
deploymentGetConfig2Deployments1,
|
|
9401
|
-
),
|
|
9200
|
+
DeploymentGetConfig21$outboundSchema.parse(deploymentGetConfig21),
|
|
9402
9201
|
);
|
|
9403
9202
|
}
|
|
9404
9203
|
|
|
9405
|
-
export function
|
|
9204
|
+
export function deploymentGetConfig21FromJSON(
|
|
9406
9205
|
jsonString: string,
|
|
9407
|
-
): SafeParseResult<
|
|
9206
|
+
): SafeParseResult<DeploymentGetConfig21, SDKValidationError> {
|
|
9408
9207
|
return safeParse(
|
|
9409
9208
|
jsonString,
|
|
9410
|
-
(x) =>
|
|
9411
|
-
`Failed to parse '
|
|
9209
|
+
(x) => DeploymentGetConfig21$inboundSchema.parse(JSON.parse(x)),
|
|
9210
|
+
`Failed to parse 'DeploymentGetConfig21' from JSON`,
|
|
9412
9211
|
);
|
|
9413
9212
|
}
|
|
9414
9213
|
|
|
@@ -9419,16 +9218,16 @@ export const DeploymentGetConfigContentDeploymentsResponse2$inboundSchema:
|
|
|
9419
9218
|
z.ZodTypeDef,
|
|
9420
9219
|
unknown
|
|
9421
9220
|
> = z.union([
|
|
9422
|
-
z.lazy(() =>
|
|
9423
|
-
z.lazy(() =>
|
|
9424
|
-
z.lazy(() =>
|
|
9221
|
+
z.lazy(() => DeploymentGetConfig21$inboundSchema),
|
|
9222
|
+
z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
|
|
9223
|
+
z.lazy(() => DeploymentGetConfig23$inboundSchema),
|
|
9425
9224
|
]);
|
|
9426
9225
|
|
|
9427
9226
|
/** @internal */
|
|
9428
9227
|
export type DeploymentGetConfigContentDeploymentsResponse2$Outbound =
|
|
9429
|
-
|
|
|
9430
|
-
|
|
|
9431
|
-
|
|
|
9228
|
+
| DeploymentGetConfig21$Outbound
|
|
9229
|
+
| DeploymentGetConfig2Deployments2$Outbound
|
|
9230
|
+
| DeploymentGetConfig23$Outbound;
|
|
9432
9231
|
|
|
9433
9232
|
/** @internal */
|
|
9434
9233
|
export const DeploymentGetConfigContentDeploymentsResponse2$outboundSchema:
|
|
@@ -9437,9 +9236,9 @@ export const DeploymentGetConfigContentDeploymentsResponse2$outboundSchema:
|
|
|
9437
9236
|
z.ZodTypeDef,
|
|
9438
9237
|
DeploymentGetConfigContentDeploymentsResponse2
|
|
9439
9238
|
> = z.union([
|
|
9440
|
-
z.lazy(() =>
|
|
9441
|
-
z.lazy(() =>
|
|
9442
|
-
z.lazy(() =>
|
|
9239
|
+
z.lazy(() => DeploymentGetConfig21$outboundSchema),
|
|
9240
|
+
z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
|
|
9241
|
+
z.lazy(() => DeploymentGetConfig23$outboundSchema),
|
|
9443
9242
|
]);
|
|
9444
9243
|
|
|
9445
9244
|
/**
|
|
@@ -9493,9 +9292,9 @@ export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
|
|
|
9493
9292
|
> = z.union([
|
|
9494
9293
|
z.string(),
|
|
9495
9294
|
z.array(z.union([
|
|
9496
|
-
z.lazy(() =>
|
|
9497
|
-
z.lazy(() =>
|
|
9498
|
-
z.lazy(() =>
|
|
9295
|
+
z.lazy(() => DeploymentGetConfig21$inboundSchema),
|
|
9296
|
+
z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
|
|
9297
|
+
z.lazy(() => DeploymentGetConfig23$inboundSchema),
|
|
9499
9298
|
])),
|
|
9500
9299
|
]);
|
|
9501
9300
|
|
|
@@ -9503,9 +9302,9 @@ export const DeploymentGetConfigContent$inboundSchema: z.ZodType<
|
|
|
9503
9302
|
export type DeploymentGetConfigContent$Outbound =
|
|
9504
9303
|
| string
|
|
9505
9304
|
| Array<
|
|
9506
|
-
|
|
|
9507
|
-
|
|
|
9508
|
-
|
|
|
9305
|
+
| DeploymentGetConfig21$Outbound
|
|
9306
|
+
| DeploymentGetConfig2Deployments2$Outbound
|
|
9307
|
+
| DeploymentGetConfig23$Outbound
|
|
9509
9308
|
>;
|
|
9510
9309
|
|
|
9511
9310
|
/** @internal */
|
|
@@ -9516,9 +9315,9 @@ export const DeploymentGetConfigContent$outboundSchema: z.ZodType<
|
|
|
9516
9315
|
> = z.union([
|
|
9517
9316
|
z.string(),
|
|
9518
9317
|
z.array(z.union([
|
|
9519
|
-
z.lazy(() =>
|
|
9520
|
-
z.lazy(() =>
|
|
9521
|
-
z.lazy(() =>
|
|
9318
|
+
z.lazy(() => DeploymentGetConfig21$outboundSchema),
|
|
9319
|
+
z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
|
|
9320
|
+
z.lazy(() => DeploymentGetConfig23$outboundSchema),
|
|
9522
9321
|
])),
|
|
9523
9322
|
]);
|
|
9524
9323
|
|
|
@@ -9705,8 +9504,8 @@ export function deploymentGetConfigToolCallsFromJSON(
|
|
|
9705
9504
|
}
|
|
9706
9505
|
|
|
9707
9506
|
/** @internal */
|
|
9708
|
-
export const
|
|
9709
|
-
|
|
9507
|
+
export const DeploymentGetConfigMessages$inboundSchema: z.ZodType<
|
|
9508
|
+
DeploymentGetConfigMessages,
|
|
9710
9509
|
z.ZodTypeDef,
|
|
9711
9510
|
unknown
|
|
9712
9511
|
> = z.object({
|
|
@@ -9714,9 +9513,9 @@ export const DeploymentGetConfigDeploymentsMessages$inboundSchema: z.ZodType<
|
|
|
9714
9513
|
content: z.union([
|
|
9715
9514
|
z.string(),
|
|
9716
9515
|
z.array(z.union([
|
|
9717
|
-
z.lazy(() =>
|
|
9718
|
-
z.lazy(() =>
|
|
9719
|
-
z.lazy(() =>
|
|
9516
|
+
z.lazy(() => DeploymentGetConfig21$inboundSchema),
|
|
9517
|
+
z.lazy(() => DeploymentGetConfig2Deployments2$inboundSchema),
|
|
9518
|
+
z.lazy(() => DeploymentGetConfig23$inboundSchema),
|
|
9720
9519
|
])),
|
|
9721
9520
|
]),
|
|
9722
9521
|
tool_calls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$inboundSchema))
|
|
@@ -9730,32 +9529,32 @@ export const DeploymentGetConfigDeploymentsMessages$inboundSchema: z.ZodType<
|
|
|
9730
9529
|
});
|
|
9731
9530
|
|
|
9732
9531
|
/** @internal */
|
|
9733
|
-
export type
|
|
9532
|
+
export type DeploymentGetConfigMessages$Outbound = {
|
|
9734
9533
|
role: string;
|
|
9735
9534
|
content:
|
|
9736
9535
|
| string
|
|
9737
9536
|
| Array<
|
|
9738
|
-
|
|
|
9739
|
-
|
|
|
9740
|
-
|
|
|
9537
|
+
| DeploymentGetConfig21$Outbound
|
|
9538
|
+
| DeploymentGetConfig2Deployments2$Outbound
|
|
9539
|
+
| DeploymentGetConfig23$Outbound
|
|
9741
9540
|
>;
|
|
9742
9541
|
tool_calls?: Array<DeploymentGetConfigToolCalls$Outbound> | undefined;
|
|
9743
9542
|
tool_call_id?: string | undefined;
|
|
9744
9543
|
};
|
|
9745
9544
|
|
|
9746
9545
|
/** @internal */
|
|
9747
|
-
export const
|
|
9748
|
-
|
|
9546
|
+
export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
|
|
9547
|
+
DeploymentGetConfigMessages$Outbound,
|
|
9749
9548
|
z.ZodTypeDef,
|
|
9750
|
-
|
|
9549
|
+
DeploymentGetConfigMessages
|
|
9751
9550
|
> = z.object({
|
|
9752
9551
|
role: DeploymentGetConfigRole$outboundSchema,
|
|
9753
9552
|
content: z.union([
|
|
9754
9553
|
z.string(),
|
|
9755
9554
|
z.array(z.union([
|
|
9756
|
-
z.lazy(() =>
|
|
9757
|
-
z.lazy(() =>
|
|
9758
|
-
z.lazy(() =>
|
|
9555
|
+
z.lazy(() => DeploymentGetConfig21$outboundSchema),
|
|
9556
|
+
z.lazy(() => DeploymentGetConfig2Deployments2$outboundSchema),
|
|
9557
|
+
z.lazy(() => DeploymentGetConfig23$outboundSchema),
|
|
9759
9558
|
])),
|
|
9760
9559
|
]),
|
|
9761
9560
|
toolCalls: z.array(z.lazy(() => DeploymentGetConfigToolCalls$outboundSchema))
|
|
@@ -9772,36 +9571,32 @@ export const DeploymentGetConfigDeploymentsMessages$outboundSchema: z.ZodType<
|
|
|
9772
9571
|
* @internal
|
|
9773
9572
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
9774
9573
|
*/
|
|
9775
|
-
export namespace
|
|
9776
|
-
/** @deprecated use `
|
|
9777
|
-
export const inboundSchema =
|
|
9778
|
-
|
|
9779
|
-
|
|
9780
|
-
|
|
9781
|
-
|
|
9782
|
-
/** @deprecated use `DeploymentGetConfigDeploymentsMessages$Outbound` instead. */
|
|
9783
|
-
export type Outbound = DeploymentGetConfigDeploymentsMessages$Outbound;
|
|
9574
|
+
export namespace DeploymentGetConfigMessages$ {
|
|
9575
|
+
/** @deprecated use `DeploymentGetConfigMessages$inboundSchema` instead. */
|
|
9576
|
+
export const inboundSchema = DeploymentGetConfigMessages$inboundSchema;
|
|
9577
|
+
/** @deprecated use `DeploymentGetConfigMessages$outboundSchema` instead. */
|
|
9578
|
+
export const outboundSchema = DeploymentGetConfigMessages$outboundSchema;
|
|
9579
|
+
/** @deprecated use `DeploymentGetConfigMessages$Outbound` instead. */
|
|
9580
|
+
export type Outbound = DeploymentGetConfigMessages$Outbound;
|
|
9784
9581
|
}
|
|
9785
9582
|
|
|
9786
|
-
export function
|
|
9787
|
-
|
|
9788
|
-
DeploymentGetConfigDeploymentsMessages,
|
|
9583
|
+
export function deploymentGetConfigMessagesToJSON(
|
|
9584
|
+
deploymentGetConfigMessages: DeploymentGetConfigMessages,
|
|
9789
9585
|
): string {
|
|
9790
9586
|
return JSON.stringify(
|
|
9791
|
-
|
|
9792
|
-
|
|
9587
|
+
DeploymentGetConfigMessages$outboundSchema.parse(
|
|
9588
|
+
deploymentGetConfigMessages,
|
|
9793
9589
|
),
|
|
9794
9590
|
);
|
|
9795
9591
|
}
|
|
9796
9592
|
|
|
9797
|
-
export function
|
|
9593
|
+
export function deploymentGetConfigMessagesFromJSON(
|
|
9798
9594
|
jsonString: string,
|
|
9799
|
-
): SafeParseResult<
|
|
9595
|
+
): SafeParseResult<DeploymentGetConfigMessages, SDKValidationError> {
|
|
9800
9596
|
return safeParse(
|
|
9801
9597
|
jsonString,
|
|
9802
|
-
(x) =>
|
|
9803
|
-
|
|
9804
|
-
`Failed to parse 'DeploymentGetConfigDeploymentsMessages' from JSON`,
|
|
9598
|
+
(x) => DeploymentGetConfigMessages$inboundSchema.parse(JSON.parse(x)),
|
|
9599
|
+
`Failed to parse 'DeploymentGetConfigMessages' from JSON`,
|
|
9805
9600
|
);
|
|
9806
9601
|
}
|
|
9807
9602
|
|
|
@@ -10670,9 +10465,7 @@ export const DeploymentGetConfigResponseBody$inboundSchema: z.ZodType<
|
|
|
10670
10465
|
model: z.string(),
|
|
10671
10466
|
type: DeploymentGetConfigType$inboundSchema.optional(),
|
|
10672
10467
|
version: z.string(),
|
|
10673
|
-
messages: z.array(
|
|
10674
|
-
z.lazy(() => DeploymentGetConfigDeploymentsMessages$inboundSchema),
|
|
10675
|
-
),
|
|
10468
|
+
messages: z.array(z.lazy(() => DeploymentGetConfigMessages$inboundSchema)),
|
|
10676
10469
|
parameters: z.lazy(() => ParametersT$inboundSchema),
|
|
10677
10470
|
tools: z.array(z.lazy(() => Tools$inboundSchema)).optional(),
|
|
10678
10471
|
});
|
|
@@ -10684,7 +10477,7 @@ export type DeploymentGetConfigResponseBody$Outbound = {
|
|
|
10684
10477
|
model: string;
|
|
10685
10478
|
type?: string | undefined;
|
|
10686
10479
|
version: string;
|
|
10687
|
-
messages: Array<
|
|
10480
|
+
messages: Array<DeploymentGetConfigMessages$Outbound>;
|
|
10688
10481
|
parameters: ParametersT$Outbound;
|
|
10689
10482
|
tools?: Array<Tools$Outbound> | undefined;
|
|
10690
10483
|
};
|
|
@@ -10700,9 +10493,7 @@ export const DeploymentGetConfigResponseBody$outboundSchema: z.ZodType<
|
|
|
10700
10493
|
model: z.string(),
|
|
10701
10494
|
type: DeploymentGetConfigType$outboundSchema.optional(),
|
|
10702
10495
|
version: z.string(),
|
|
10703
|
-
messages: z.array(
|
|
10704
|
-
z.lazy(() => DeploymentGetConfigDeploymentsMessages$outboundSchema),
|
|
10705
|
-
),
|
|
10496
|
+
messages: z.array(z.lazy(() => DeploymentGetConfigMessages$outboundSchema)),
|
|
10706
10497
|
parameters: z.lazy(() => ParametersT$outboundSchema),
|
|
10707
10498
|
tools: z.array(z.lazy(() => Tools$outboundSchema)).optional(),
|
|
10708
10499
|
});
|