@orq-ai/node 3.1.2 → 3.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +27 -42
- package/docs/sdks/deployments/README.md +86 -9
- package/docs/sdks/files/README.md +10 -182
- package/docs/sdks/orq/README.md +1 -1
- package/docs/sdks/prompts/README.md +135 -128
- package/docs/sdks/{remoteconfig → remoteconfigs}/README.md +8 -8
- package/funcs/deploymentsInvoke.d.ts +1 -7
- package/funcs/deploymentsInvoke.d.ts.map +1 -1
- package/funcs/deploymentsInvoke.js +10 -11
- package/funcs/deploymentsInvoke.js.map +1 -1
- package/funcs/{deploymentsAll.d.ts → deploymentsList.d.ts} +2 -2
- package/funcs/deploymentsList.d.ts.map +1 -0
- package/funcs/{deploymentsAll.js → deploymentsList.js} +5 -4
- package/funcs/deploymentsList.js.map +1 -0
- package/funcs/deploymentsStream.d.ts +16 -0
- package/funcs/deploymentsStream.d.ts.map +1 -0
- package/funcs/deploymentsStream.js +125 -0
- package/funcs/deploymentsStream.js.map +1 -0
- package/funcs/{filesUpload.d.ts → filesCreate.d.ts} +3 -3
- package/funcs/{filesUpload.d.ts.map → filesCreate.d.ts.map} +1 -1
- package/funcs/{filesUpload.js → filesCreate.js} +4 -4
- package/funcs/{filesUpload.js.map → filesCreate.js.map} +1 -1
- package/funcs/filesGet.d.ts +4 -1
- package/funcs/filesGet.d.ts.map +1 -1
- package/funcs/filesGet.js +4 -1
- package/funcs/filesGet.js.map +1 -1
- package/funcs/filesList.d.ts +3 -0
- package/funcs/filesList.d.ts.map +1 -1
- package/funcs/filesList.js +5 -3
- package/funcs/filesList.js.map +1 -1
- package/funcs/promptsCreate.d.ts +1 -1
- package/funcs/promptsCreate.js +2 -2
- package/funcs/promptsCreate.js.map +1 -1
- package/funcs/promptsDelete.js +1 -1
- package/funcs/promptsDelete.js.map +1 -1
- package/funcs/promptsGetVersion.d.ts +16 -0
- package/funcs/promptsGetVersion.d.ts.map +1 -0
- package/funcs/{promptsCreateVersion.js → promptsGetVersion.js} +23 -13
- package/funcs/promptsGetVersion.js.map +1 -0
- package/funcs/promptsList.d.ts +15 -0
- package/funcs/promptsList.d.ts.map +1 -0
- package/funcs/{promptsGetAll.js → promptsList.js} +17 -11
- package/funcs/promptsList.js.map +1 -0
- package/funcs/promptsListVersions.d.ts +15 -0
- package/funcs/promptsListVersions.d.ts.map +1 -0
- package/funcs/{promptsDuplicate.js → promptsListVersions.js} +19 -11
- package/funcs/promptsListVersions.js.map +1 -0
- package/funcs/{promptSnippetsFindOne.d.ts → promptsRetrieve.d.ts} +6 -3
- package/funcs/promptsRetrieve.d.ts.map +1 -0
- package/funcs/{promptsGetOne.js → promptsRetrieve.js} +10 -8
- package/funcs/promptsRetrieve.js.map +1 -0
- package/funcs/promptsUpdate.js +1 -1
- package/funcs/promptsUpdate.js.map +1 -1
- package/funcs/{remoteconfigGetConfig.d.ts → remoteconfigsRetrieve.d.ts} +3 -3
- package/funcs/{remoteconfigGetConfig.d.ts.map → remoteconfigsRetrieve.d.ts.map} +1 -1
- package/funcs/{remoteconfigGetConfig.js → remoteconfigsRetrieve.js} +4 -4
- package/funcs/{remoteconfigGetConfig.js.map → remoteconfigsRetrieve.js.map} +1 -1
- package/jsr.json +1 -1
- package/lib/config.d.ts +10 -2
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +2 -2
- package/lib/config.js.map +1 -1
- package/lib/env.d.ts +13 -0
- package/lib/env.d.ts.map +1 -1
- package/lib/env.js +17 -0
- package/lib/env.js.map +1 -1
- package/lib/sdks.js +1 -1
- package/lib/sdks.js.map +1 -1
- package/models/components/deployments.d.ts +0 -5
- package/models/components/deployments.d.ts.map +1 -1
- package/models/components/deployments.js +0 -2
- package/models/components/deployments.js.map +1 -1
- package/models/errors/getpromptversion.d.ts +36 -0
- package/models/errors/getpromptversion.d.ts.map +1 -0
- package/models/{operations/duplicateprompt.js → errors/getpromptversion.js} +33 -23
- package/models/errors/getpromptversion.js.map +1 -0
- package/models/errors/index.d.ts +1 -0
- package/models/errors/index.d.ts.map +1 -1
- package/models/errors/index.js +1 -0
- package/models/errors/index.js.map +1 -1
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createprompt.d.ts +406 -85
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +241 -78
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deleteprompt.d.ts +1 -1
- package/models/operations/deploymentgetconfig.d.ts +39 -0
- package/models/operations/deploymentgetconfig.d.ts.map +1 -1
- package/models/operations/deploymentgetconfig.js +29 -4
- package/models/operations/deploymentgetconfig.js.map +1 -1
- package/models/operations/deploymentinvoke.d.ts +23 -683
- package/models/operations/deploymentinvoke.d.ts.map +1 -1
- package/models/operations/deploymentinvoke.js +23 -614
- package/models/operations/deploymentinvoke.js.map +1 -1
- package/models/operations/deployments.d.ts +54 -8
- package/models/operations/deployments.d.ts.map +1 -1
- package/models/operations/deployments.js +44 -13
- package/models/operations/deployments.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +1622 -0
- package/models/operations/deploymentstream.d.ts.map +1 -0
- package/models/operations/deploymentstream.js +1571 -0
- package/models/operations/deploymentstream.js.map +1 -0
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.d.ts +14 -11
- package/models/operations/filelist.d.ts.map +1 -1
- package/models/operations/filelist.js +18 -18
- package/models/operations/filelist.js.map +1 -1
- package/models/operations/fileupload.js +2 -2
- package/models/operations/getallprompts.d.ts +565 -9945
- package/models/operations/getallprompts.d.ts.map +1 -1
- package/models/operations/getallprompts.js +556 -8804
- package/models/operations/getallprompts.js.map +1 -1
- package/models/operations/getoneprompt.d.ts +1203 -1
- package/models/operations/getoneprompt.d.ts.map +1 -1
- package/models/operations/getoneprompt.js +1011 -1
- package/models/operations/getoneprompt.js.map +1 -1
- package/models/operations/getpromptversion.d.ts +1228 -0
- package/models/operations/getpromptversion.d.ts.map +1 -0
- package/models/operations/getpromptversion.js +1080 -0
- package/models/operations/getpromptversion.js.map +1 -0
- package/models/operations/index.d.ts +3 -6
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +3 -6
- package/models/operations/index.js.map +1 -1
- package/models/operations/listpromptversions.d.ts +1286 -0
- package/models/operations/listpromptversions.d.ts.map +1 -0
- package/models/operations/listpromptversions.js +1142 -0
- package/models/operations/listpromptversions.js.map +1 -0
- package/models/operations/updateprompt.d.ts +1123 -5981
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +1145 -5755
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/sdk/deployments.d.ts +10 -6
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +14 -6
- package/sdk/deployments.js.map +1 -1
- package/sdk/files.d.ts +9 -14
- package/sdk/files.d.ts.map +1 -1
- package/sdk/files.js +11 -22
- package/sdk/files.js.map +1 -1
- package/sdk/prompts.d.ts +26 -14
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +37 -25
- package/sdk/prompts.js.map +1 -1
- package/sdk/remoteconfigs.d.ts +9 -0
- package/sdk/remoteconfigs.d.ts.map +1 -0
- package/sdk/remoteconfigs.js +19 -0
- package/sdk/remoteconfigs.js.map +1 -0
- package/sdk/sdk.d.ts +3 -6
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +3 -7
- package/sdk/sdk.js.map +1 -1
- package/src/funcs/deploymentsInvoke.ts +21 -16
- package/src/funcs/{deploymentsAll.ts → deploymentsList.ts} +3 -2
- package/src/funcs/{promptsCreateVersion.ts → deploymentsStream.ts} +37 -18
- package/src/funcs/{filesUpload.ts → filesCreate.ts} +2 -2
- package/src/funcs/filesGet.ts +4 -1
- package/src/funcs/filesList.ts +5 -3
- package/src/funcs/promptsCreate.ts +2 -2
- package/src/funcs/promptsDelete.ts +1 -1
- package/src/funcs/{promptSnippetsFindOne.ts → promptsGetVersion.ts} +30 -14
- package/src/funcs/{promptsGetAll.ts → promptsList.ts} +18 -13
- package/src/funcs/{promptsDuplicate.ts → promptsListVersions.ts} +22 -13
- package/src/funcs/{promptsGetOne.ts → promptsRetrieve.ts} +10 -8
- package/src/funcs/promptsUpdate.ts +1 -1
- package/src/funcs/{remoteconfigGetConfig.ts → remoteconfigsRetrieve.ts} +2 -2
- package/src/lib/config.ts +12 -2
- package/src/lib/env.ts +32 -0
- package/src/lib/sdks.ts +2 -2
- package/src/models/components/deployments.ts +0 -7
- package/src/models/errors/getpromptversion.ts +71 -0
- package/src/models/errors/index.ts +1 -0
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createprompt.ts +380 -124
- package/src/models/operations/deleteprompt.ts +1 -1
- package/src/models/operations/deploymentgetconfig.ts +44 -0
- package/src/models/operations/deploymentinvoke.ts +182 -1423
- package/src/models/operations/deployments.ts +68 -18
- package/src/models/operations/deploymentstream.ts +3062 -0
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +32 -29
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/getallprompts.ts +1316 -17840
- package/src/models/operations/getoneprompt.ts +1914 -1
- package/src/models/operations/getpromptversion.ts +2012 -0
- package/src/models/operations/index.ts +3 -6
- package/src/models/operations/listpromptversions.ts +2146 -0
- package/src/models/operations/updateprompt.ts +2001 -12508
- package/src/sdk/deployments.ts +25 -11
- package/src/sdk/files.ts +11 -38
- package/src/sdk/prompts.ts +51 -39
- package/src/sdk/{remoteconfig.ts → remoteconfigs.ts} +5 -5
- package/src/sdk/sdk.ts +4 -10
- package/docs/sdks/prompt/README.md +0 -6
- package/docs/sdks/snippets/README.md +0 -84
- package/docs/sdks/templates/README.md +0 -80
- package/funcs/deploymentsAll.d.ts.map +0 -1
- package/funcs/deploymentsAll.js.map +0 -1
- package/funcs/filesBulkUpload.d.ts +0 -15
- package/funcs/filesBulkUpload.d.ts.map +0 -1
- package/funcs/filesBulkUpload.js +0 -109
- package/funcs/filesBulkUpload.js.map +0 -1
- package/funcs/filesUpdate.d.ts +0 -12
- package/funcs/filesUpdate.d.ts.map +0 -1
- package/funcs/filesUpdate.js +0 -110
- package/funcs/filesUpdate.js.map +0 -1
- package/funcs/promptSnippetsFindOne.d.ts.map +0 -1
- package/funcs/promptSnippetsFindOne.js +0 -109
- package/funcs/promptSnippetsFindOne.js.map +0 -1
- package/funcs/promptTemplatesGetAll.d.ts +0 -12
- package/funcs/promptTemplatesGetAll.d.ts.map +0 -1
- package/funcs/promptTemplatesGetAll.js +0 -109
- package/funcs/promptTemplatesGetAll.js.map +0 -1
- package/funcs/promptsCreateVersion.d.ts +0 -12
- package/funcs/promptsCreateVersion.d.ts.map +0 -1
- package/funcs/promptsCreateVersion.js.map +0 -1
- package/funcs/promptsDuplicate.d.ts +0 -12
- package/funcs/promptsDuplicate.d.ts.map +0 -1
- package/funcs/promptsDuplicate.js.map +0 -1
- package/funcs/promptsGetAll.d.ts +0 -12
- package/funcs/promptsGetAll.d.ts.map +0 -1
- package/funcs/promptsGetAll.js.map +0 -1
- package/funcs/promptsGetOne.d.ts +0 -12
- package/funcs/promptsGetOne.d.ts.map +0 -1
- package/funcs/promptsGetOne.js.map +0 -1
- package/models/operations/bulkfileupload.d.ts +0 -173
- package/models/operations/bulkfileupload.d.ts.map +0 -1
- package/models/operations/bulkfileupload.js +0 -210
- package/models/operations/bulkfileupload.js.map +0 -1
- package/models/operations/createpromptversion.d.ts +0 -2003
- package/models/operations/createpromptversion.d.ts.map +0 -1
- package/models/operations/createpromptversion.js +0 -1852
- package/models/operations/createpromptversion.js.map +0 -1
- package/models/operations/duplicateprompt.d.ts +0 -32
- package/models/operations/duplicateprompt.d.ts.map +0 -1
- package/models/operations/duplicateprompt.js.map +0 -1
- package/models/operations/fileupdate.d.ts +0 -143
- package/models/operations/fileupdate.d.ts.map +0 -1
- package/models/operations/fileupdate.js +0 -193
- package/models/operations/fileupdate.js.map +0 -1
- package/models/operations/findonepromptsnippet.d.ts +0 -6278
- package/models/operations/findonepromptsnippet.d.ts.map +0 -1
- package/models/operations/findonepromptsnippet.js +0 -5891
- package/models/operations/findonepromptsnippet.js.map +0 -1
- package/models/operations/getallprompttemplates.d.ts +0 -6607
- package/models/operations/getallprompttemplates.d.ts.map +0 -1
- package/models/operations/getallprompttemplates.js +0 -6225
- package/models/operations/getallprompttemplates.js.map +0 -1
- package/sdk/prompt.d.ts +0 -10
- package/sdk/prompt.d.ts.map +0 -1
- package/sdk/prompt.js +0 -19
- package/sdk/prompt.js.map +0 -1
- package/sdk/remoteconfig.d.ts +0 -9
- package/sdk/remoteconfig.d.ts.map +0 -1
- package/sdk/remoteconfig.js +0 -19
- package/sdk/remoteconfig.js.map +0 -1
- package/sdk/snippets.d.ts +0 -9
- package/sdk/snippets.d.ts.map +0 -1
- package/sdk/snippets.js +0 -19
- package/sdk/snippets.js.map +0 -1
- package/sdk/templates.d.ts +0 -9
- package/sdk/templates.d.ts.map +0 -1
- package/sdk/templates.js +0 -19
- package/sdk/templates.js.map +0 -1
- package/src/funcs/filesBulkUpload.ts +0 -129
- package/src/funcs/filesUpdate.ts +0 -130
- package/src/funcs/promptTemplatesGetAll.ts +0 -132
- package/src/models/operations/bulkfileupload.ts +0 -315
- package/src/models/operations/createpromptversion.ts +0 -3703
- package/src/models/operations/duplicateprompt.ts +0 -69
- package/src/models/operations/fileupdate.ts +0 -298
- package/src/models/operations/findonepromptsnippet.ts +0 -13629
- package/src/models/operations/getallprompttemplates.ts +0 -13690
- package/src/sdk/prompt.ts +0 -19
- package/src/sdk/snippets.ts +0 -24
- package/src/sdk/templates.ts +0 -24
|
@@ -36,11 +36,179 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
36
36
|
};
|
|
37
37
|
})();
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
|
-
exports.GetOnePromptRequest$ = exports.GetOnePromptRequest$outboundSchema = exports.GetOnePromptRequest$inboundSchema = void 0;
|
|
39
|
+
exports.GetOnePromptPhotoRealVersion$inboundSchema = exports.GetOnePromptResponseFormat$ = exports.GetOnePromptResponseFormat$outboundSchema = exports.GetOnePromptResponseFormat$inboundSchema = exports.GetOnePromptResponseFormat1$ = exports.GetOnePromptResponseFormat1$outboundSchema = exports.GetOnePromptResponseFormat1$inboundSchema = exports.GetOnePromptResponseFormatJsonSchema$ = exports.GetOnePromptResponseFormatJsonSchema$outboundSchema = exports.GetOnePromptResponseFormatJsonSchema$inboundSchema = exports.GetOnePromptResponseFormatType$ = exports.GetOnePromptResponseFormatType$outboundSchema = exports.GetOnePromptResponseFormatType$inboundSchema = exports.GetOnePromptResponseFormat2$ = exports.GetOnePromptResponseFormat2$outboundSchema = exports.GetOnePromptResponseFormat2$inboundSchema = exports.GetOnePromptResponseFormatPromptsType$ = exports.GetOnePromptResponseFormatPromptsType$outboundSchema = exports.GetOnePromptResponseFormatPromptsType$inboundSchema = exports.GetOnePromptQuality$ = exports.GetOnePromptQuality$outboundSchema = exports.GetOnePromptQuality$inboundSchema = exports.GetOnePromptFormat$ = exports.GetOnePromptFormat$outboundSchema = exports.GetOnePromptFormat$inboundSchema = exports.GetOnePromptModelType$ = exports.GetOnePromptModelType$outboundSchema = exports.GetOnePromptModelType$inboundSchema = exports.GetOnePromptType$ = exports.GetOnePromptType$outboundSchema = exports.GetOnePromptType$inboundSchema = exports.GetOnePromptRequest$ = exports.GetOnePromptRequest$outboundSchema = exports.GetOnePromptRequest$inboundSchema = exports.GetOnePromptLanguage = exports.GetOnePromptUseCases = exports.GetOnePromptPromptsType = exports.GetOnePrompt2Type = exports.GetOnePrompt2PromptsType = exports.GetOnePromptRole = exports.GetOnePromptProvider = exports.GetOnePromptReasoningEffort = exports.GetOnePromptEncodingFormat = exports.GetOnePromptPhotoRealVersion = exports.GetOnePromptResponseFormatType = exports.GetOnePromptResponseFormatPromptsType = exports.GetOnePromptQuality = exports.GetOnePromptFormat = exports.GetOnePromptModelType = exports.GetOnePromptType = void 0;
|
|
40
|
+
exports.GetOnePromptMessages$ = exports.GetOnePromptMessages$outboundSchema = exports.GetOnePromptMessages$inboundSchema = exports.GetOnePromptToolCalls$ = exports.GetOnePromptToolCalls$outboundSchema = exports.GetOnePromptToolCalls$inboundSchema = exports.GetOnePromptFunction$ = exports.GetOnePromptFunction$outboundSchema = exports.GetOnePromptFunction$inboundSchema = exports.GetOnePromptPromptsType$ = exports.GetOnePromptPromptsType$outboundSchema = exports.GetOnePromptPromptsType$inboundSchema = exports.GetOnePromptContent$ = exports.GetOnePromptContent$outboundSchema = exports.GetOnePromptContent$inboundSchema = exports.GetOnePromptContent2$ = exports.GetOnePromptContent2$outboundSchema = exports.GetOnePromptContent2$inboundSchema = exports.GetOnePrompt21$ = exports.GetOnePrompt21$outboundSchema = exports.GetOnePrompt21$inboundSchema = exports.GetOnePrompt2Type$ = exports.GetOnePrompt2Type$outboundSchema = exports.GetOnePrompt2Type$inboundSchema = exports.GetOnePrompt22$ = exports.GetOnePrompt22$outboundSchema = exports.GetOnePrompt22$inboundSchema = exports.GetOnePrompt2ImageUrl$ = exports.GetOnePrompt2ImageUrl$outboundSchema = exports.GetOnePrompt2ImageUrl$inboundSchema = exports.GetOnePrompt2PromptsType$ = exports.GetOnePrompt2PromptsType$outboundSchema = exports.GetOnePrompt2PromptsType$inboundSchema = exports.GetOnePromptRole$ = exports.GetOnePromptRole$outboundSchema = exports.GetOnePromptRole$inboundSchema = exports.GetOnePromptProvider$ = exports.GetOnePromptProvider$outboundSchema = exports.GetOnePromptProvider$inboundSchema = exports.GetOnePromptModelParameters$ = exports.GetOnePromptModelParameters$outboundSchema = exports.GetOnePromptModelParameters$inboundSchema = exports.GetOnePromptReasoningEffort$ = exports.GetOnePromptReasoningEffort$outboundSchema = exports.GetOnePromptReasoningEffort$inboundSchema = exports.GetOnePromptEncodingFormat$ = exports.GetOnePromptEncodingFormat$outboundSchema = exports.GetOnePromptEncodingFormat$inboundSchema = exports.GetOnePromptPhotoRealVersion$ = exports.GetOnePromptPhotoRealVersion$outboundSchema = void 0;
|
|
41
|
+
exports.GetOnePromptResponseBody$ = exports.GetOnePromptResponseBody$outboundSchema = exports.GetOnePromptResponseBody$inboundSchema = exports.GetOnePromptMetadata$ = exports.GetOnePromptMetadata$outboundSchema = exports.GetOnePromptMetadata$inboundSchema = exports.GetOnePromptLanguage$ = exports.GetOnePromptLanguage$outboundSchema = exports.GetOnePromptLanguage$inboundSchema = exports.GetOnePromptUseCases$ = exports.GetOnePromptUseCases$outboundSchema = exports.GetOnePromptUseCases$inboundSchema = exports.GetOnePromptPromptConfig$ = exports.GetOnePromptPromptConfig$outboundSchema = exports.GetOnePromptPromptConfig$inboundSchema = void 0;
|
|
40
42
|
exports.getOnePromptRequestToJSON = getOnePromptRequestToJSON;
|
|
41
43
|
exports.getOnePromptRequestFromJSON = getOnePromptRequestFromJSON;
|
|
44
|
+
exports.getOnePromptResponseFormat2ToJSON = getOnePromptResponseFormat2ToJSON;
|
|
45
|
+
exports.getOnePromptResponseFormat2FromJSON = getOnePromptResponseFormat2FromJSON;
|
|
46
|
+
exports.getOnePromptResponseFormatJsonSchemaToJSON = getOnePromptResponseFormatJsonSchemaToJSON;
|
|
47
|
+
exports.getOnePromptResponseFormatJsonSchemaFromJSON = getOnePromptResponseFormatJsonSchemaFromJSON;
|
|
48
|
+
exports.getOnePromptResponseFormat1ToJSON = getOnePromptResponseFormat1ToJSON;
|
|
49
|
+
exports.getOnePromptResponseFormat1FromJSON = getOnePromptResponseFormat1FromJSON;
|
|
50
|
+
exports.getOnePromptResponseFormatToJSON = getOnePromptResponseFormatToJSON;
|
|
51
|
+
exports.getOnePromptResponseFormatFromJSON = getOnePromptResponseFormatFromJSON;
|
|
52
|
+
exports.getOnePromptModelParametersToJSON = getOnePromptModelParametersToJSON;
|
|
53
|
+
exports.getOnePromptModelParametersFromJSON = getOnePromptModelParametersFromJSON;
|
|
54
|
+
exports.getOnePrompt2ImageUrlToJSON = getOnePrompt2ImageUrlToJSON;
|
|
55
|
+
exports.getOnePrompt2ImageUrlFromJSON = getOnePrompt2ImageUrlFromJSON;
|
|
56
|
+
exports.getOnePrompt22ToJSON = getOnePrompt22ToJSON;
|
|
57
|
+
exports.getOnePrompt22FromJSON = getOnePrompt22FromJSON;
|
|
58
|
+
exports.getOnePrompt21ToJSON = getOnePrompt21ToJSON;
|
|
59
|
+
exports.getOnePrompt21FromJSON = getOnePrompt21FromJSON;
|
|
60
|
+
exports.getOnePromptContent2ToJSON = getOnePromptContent2ToJSON;
|
|
61
|
+
exports.getOnePromptContent2FromJSON = getOnePromptContent2FromJSON;
|
|
62
|
+
exports.getOnePromptContentToJSON = getOnePromptContentToJSON;
|
|
63
|
+
exports.getOnePromptContentFromJSON = getOnePromptContentFromJSON;
|
|
64
|
+
exports.getOnePromptFunctionToJSON = getOnePromptFunctionToJSON;
|
|
65
|
+
exports.getOnePromptFunctionFromJSON = getOnePromptFunctionFromJSON;
|
|
66
|
+
exports.getOnePromptToolCallsToJSON = getOnePromptToolCallsToJSON;
|
|
67
|
+
exports.getOnePromptToolCallsFromJSON = getOnePromptToolCallsFromJSON;
|
|
68
|
+
exports.getOnePromptMessagesToJSON = getOnePromptMessagesToJSON;
|
|
69
|
+
exports.getOnePromptMessagesFromJSON = getOnePromptMessagesFromJSON;
|
|
70
|
+
exports.getOnePromptPromptConfigToJSON = getOnePromptPromptConfigToJSON;
|
|
71
|
+
exports.getOnePromptPromptConfigFromJSON = getOnePromptPromptConfigFromJSON;
|
|
72
|
+
exports.getOnePromptMetadataToJSON = getOnePromptMetadataToJSON;
|
|
73
|
+
exports.getOnePromptMetadataFromJSON = getOnePromptMetadataFromJSON;
|
|
74
|
+
exports.getOnePromptResponseBodyToJSON = getOnePromptResponseBodyToJSON;
|
|
75
|
+
exports.getOnePromptResponseBodyFromJSON = getOnePromptResponseBodyFromJSON;
|
|
42
76
|
const z = __importStar(require("zod"));
|
|
77
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
43
78
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
79
|
+
exports.GetOnePromptType = {
|
|
80
|
+
Prompt: "prompt",
|
|
81
|
+
};
|
|
82
|
+
/**
|
|
83
|
+
* The type of the model
|
|
84
|
+
*/
|
|
85
|
+
exports.GetOnePromptModelType = {
|
|
86
|
+
Chat: "chat",
|
|
87
|
+
Completion: "completion",
|
|
88
|
+
Embedding: "embedding",
|
|
89
|
+
Vision: "vision",
|
|
90
|
+
Image: "image",
|
|
91
|
+
Tts: "tts",
|
|
92
|
+
Stt: "stt",
|
|
93
|
+
Rerank: "rerank",
|
|
94
|
+
Moderations: "moderations",
|
|
95
|
+
};
|
|
96
|
+
/**
|
|
97
|
+
* Only supported on `image` models.
|
|
98
|
+
*/
|
|
99
|
+
exports.GetOnePromptFormat = {
|
|
100
|
+
Url: "url",
|
|
101
|
+
B64Json: "b64_json",
|
|
102
|
+
Text: "text",
|
|
103
|
+
JsonObject: "json_object",
|
|
104
|
+
};
|
|
105
|
+
/**
|
|
106
|
+
* Only supported on `image` models.
|
|
107
|
+
*/
|
|
108
|
+
exports.GetOnePromptQuality = {
|
|
109
|
+
Standard: "standard",
|
|
110
|
+
Hd: "hd",
|
|
111
|
+
};
|
|
112
|
+
exports.GetOnePromptResponseFormatPromptsType = {
|
|
113
|
+
JsonObject: "json_object",
|
|
114
|
+
};
|
|
115
|
+
exports.GetOnePromptResponseFormatType = {
|
|
116
|
+
JsonSchema: "json_schema",
|
|
117
|
+
};
|
|
118
|
+
/**
|
|
119
|
+
* The version of photoReal to use. Must be v1 or v2. Only available for `leonardoai` provider
|
|
120
|
+
*/
|
|
121
|
+
exports.GetOnePromptPhotoRealVersion = {
|
|
122
|
+
V1: "v1",
|
|
123
|
+
V2: "v2",
|
|
124
|
+
};
|
|
125
|
+
/**
|
|
126
|
+
* The format to return the embeddings
|
|
127
|
+
*/
|
|
128
|
+
exports.GetOnePromptEncodingFormat = {
|
|
129
|
+
Float: "float",
|
|
130
|
+
Base64: "base64",
|
|
131
|
+
};
|
|
132
|
+
/**
|
|
133
|
+
* Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
|
|
134
|
+
*/
|
|
135
|
+
exports.GetOnePromptReasoningEffort = {
|
|
136
|
+
Low: "low",
|
|
137
|
+
Medium: "medium",
|
|
138
|
+
High: "high",
|
|
139
|
+
};
|
|
140
|
+
exports.GetOnePromptProvider = {
|
|
141
|
+
Cohere: "cohere",
|
|
142
|
+
Openai: "openai",
|
|
143
|
+
Anthropic: "anthropic",
|
|
144
|
+
Huggingface: "huggingface",
|
|
145
|
+
Replicate: "replicate",
|
|
146
|
+
Google: "google",
|
|
147
|
+
GoogleAi: "google-ai",
|
|
148
|
+
Azure: "azure",
|
|
149
|
+
Aws: "aws",
|
|
150
|
+
Anyscale: "anyscale",
|
|
151
|
+
Perplexity: "perplexity",
|
|
152
|
+
Groq: "groq",
|
|
153
|
+
Fal: "fal",
|
|
154
|
+
Leonardoai: "leonardoai",
|
|
155
|
+
Nvidia: "nvidia",
|
|
156
|
+
Jina: "jina",
|
|
157
|
+
Togetherai: "togetherai",
|
|
158
|
+
Elevenlabs: "elevenlabs",
|
|
159
|
+
};
|
|
160
|
+
/**
|
|
161
|
+
* The role of the prompt message
|
|
162
|
+
*/
|
|
163
|
+
exports.GetOnePromptRole = {
|
|
164
|
+
System: "system",
|
|
165
|
+
Assistant: "assistant",
|
|
166
|
+
User: "user",
|
|
167
|
+
Exception: "exception",
|
|
168
|
+
Tool: "tool",
|
|
169
|
+
Prompt: "prompt",
|
|
170
|
+
Correction: "correction",
|
|
171
|
+
ExpectedOutput: "expected_output",
|
|
172
|
+
};
|
|
173
|
+
exports.GetOnePrompt2PromptsType = {
|
|
174
|
+
ImageUrl: "image_url",
|
|
175
|
+
};
|
|
176
|
+
exports.GetOnePrompt2Type = {
|
|
177
|
+
Text: "text",
|
|
178
|
+
};
|
|
179
|
+
exports.GetOnePromptPromptsType = {
|
|
180
|
+
Function: "function",
|
|
181
|
+
};
|
|
182
|
+
exports.GetOnePromptUseCases = {
|
|
183
|
+
Agents: "Agents",
|
|
184
|
+
AgentsSimulations: "Agents simulations",
|
|
185
|
+
APIInteraction: "API interaction",
|
|
186
|
+
AutonomousAgents: "Autonomous Agents",
|
|
187
|
+
Chatbots: "Chatbots",
|
|
188
|
+
Classification: "Classification",
|
|
189
|
+
CodeUnderstanding: "Code understanding",
|
|
190
|
+
CodeWriting: "Code writing",
|
|
191
|
+
DocumentsQA: "Documents QA",
|
|
192
|
+
Conversation: "Conversation",
|
|
193
|
+
Extraction: "Extraction",
|
|
194
|
+
MultiModal: "Multi-modal",
|
|
195
|
+
SelfChecking: "Self-checking",
|
|
196
|
+
Sql: "SQL",
|
|
197
|
+
Summarization: "Summarization",
|
|
198
|
+
Tagging: "Tagging",
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* The language that the prompt is written in. Use this field to categorize the prompt for your own purpose
|
|
202
|
+
*/
|
|
203
|
+
exports.GetOnePromptLanguage = {
|
|
204
|
+
Chinese: "Chinese",
|
|
205
|
+
Dutch: "Dutch",
|
|
206
|
+
English: "English",
|
|
207
|
+
French: "French",
|
|
208
|
+
German: "German",
|
|
209
|
+
Russian: "Russian",
|
|
210
|
+
Spanish: "Spanish",
|
|
211
|
+
};
|
|
44
212
|
/** @internal */
|
|
45
213
|
exports.GetOnePromptRequest$inboundSchema = z.object({
|
|
46
214
|
id: z.string(),
|
|
@@ -66,4 +234,846 @@ function getOnePromptRequestToJSON(getOnePromptRequest) {
|
|
|
66
234
|
function getOnePromptRequestFromJSON(jsonString) {
|
|
67
235
|
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptRequest' from JSON`);
|
|
68
236
|
}
|
|
237
|
+
/** @internal */
|
|
238
|
+
exports.GetOnePromptType$inboundSchema = z.nativeEnum(exports.GetOnePromptType);
|
|
239
|
+
/** @internal */
|
|
240
|
+
exports.GetOnePromptType$outboundSchema = exports.GetOnePromptType$inboundSchema;
|
|
241
|
+
/**
|
|
242
|
+
* @internal
|
|
243
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
244
|
+
*/
|
|
245
|
+
var GetOnePromptType$;
|
|
246
|
+
(function (GetOnePromptType$) {
|
|
247
|
+
/** @deprecated use `GetOnePromptType$inboundSchema` instead. */
|
|
248
|
+
GetOnePromptType$.inboundSchema = exports.GetOnePromptType$inboundSchema;
|
|
249
|
+
/** @deprecated use `GetOnePromptType$outboundSchema` instead. */
|
|
250
|
+
GetOnePromptType$.outboundSchema = exports.GetOnePromptType$outboundSchema;
|
|
251
|
+
})(GetOnePromptType$ || (exports.GetOnePromptType$ = GetOnePromptType$ = {}));
|
|
252
|
+
/** @internal */
|
|
253
|
+
exports.GetOnePromptModelType$inboundSchema = z.nativeEnum(exports.GetOnePromptModelType);
|
|
254
|
+
/** @internal */
|
|
255
|
+
exports.GetOnePromptModelType$outboundSchema = exports.GetOnePromptModelType$inboundSchema;
|
|
256
|
+
/**
|
|
257
|
+
* @internal
|
|
258
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
259
|
+
*/
|
|
260
|
+
var GetOnePromptModelType$;
|
|
261
|
+
(function (GetOnePromptModelType$) {
|
|
262
|
+
/** @deprecated use `GetOnePromptModelType$inboundSchema` instead. */
|
|
263
|
+
GetOnePromptModelType$.inboundSchema = exports.GetOnePromptModelType$inboundSchema;
|
|
264
|
+
/** @deprecated use `GetOnePromptModelType$outboundSchema` instead. */
|
|
265
|
+
GetOnePromptModelType$.outboundSchema = exports.GetOnePromptModelType$outboundSchema;
|
|
266
|
+
})(GetOnePromptModelType$ || (exports.GetOnePromptModelType$ = GetOnePromptModelType$ = {}));
|
|
267
|
+
/** @internal */
|
|
268
|
+
exports.GetOnePromptFormat$inboundSchema = z.nativeEnum(exports.GetOnePromptFormat);
|
|
269
|
+
/** @internal */
|
|
270
|
+
exports.GetOnePromptFormat$outboundSchema = exports.GetOnePromptFormat$inboundSchema;
|
|
271
|
+
/**
|
|
272
|
+
* @internal
|
|
273
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
274
|
+
*/
|
|
275
|
+
var GetOnePromptFormat$;
|
|
276
|
+
(function (GetOnePromptFormat$) {
|
|
277
|
+
/** @deprecated use `GetOnePromptFormat$inboundSchema` instead. */
|
|
278
|
+
GetOnePromptFormat$.inboundSchema = exports.GetOnePromptFormat$inboundSchema;
|
|
279
|
+
/** @deprecated use `GetOnePromptFormat$outboundSchema` instead. */
|
|
280
|
+
GetOnePromptFormat$.outboundSchema = exports.GetOnePromptFormat$outboundSchema;
|
|
281
|
+
})(GetOnePromptFormat$ || (exports.GetOnePromptFormat$ = GetOnePromptFormat$ = {}));
|
|
282
|
+
/** @internal */
|
|
283
|
+
exports.GetOnePromptQuality$inboundSchema = z.nativeEnum(exports.GetOnePromptQuality);
|
|
284
|
+
/** @internal */
|
|
285
|
+
exports.GetOnePromptQuality$outboundSchema = exports.GetOnePromptQuality$inboundSchema;
|
|
286
|
+
/**
|
|
287
|
+
* @internal
|
|
288
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
289
|
+
*/
|
|
290
|
+
var GetOnePromptQuality$;
|
|
291
|
+
(function (GetOnePromptQuality$) {
|
|
292
|
+
/** @deprecated use `GetOnePromptQuality$inboundSchema` instead. */
|
|
293
|
+
GetOnePromptQuality$.inboundSchema = exports.GetOnePromptQuality$inboundSchema;
|
|
294
|
+
/** @deprecated use `GetOnePromptQuality$outboundSchema` instead. */
|
|
295
|
+
GetOnePromptQuality$.outboundSchema = exports.GetOnePromptQuality$outboundSchema;
|
|
296
|
+
})(GetOnePromptQuality$ || (exports.GetOnePromptQuality$ = GetOnePromptQuality$ = {}));
|
|
297
|
+
/** @internal */
|
|
298
|
+
exports.GetOnePromptResponseFormatPromptsType$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormatPromptsType);
|
|
299
|
+
/** @internal */
|
|
300
|
+
exports.GetOnePromptResponseFormatPromptsType$outboundSchema = exports.GetOnePromptResponseFormatPromptsType$inboundSchema;
|
|
301
|
+
/**
|
|
302
|
+
* @internal
|
|
303
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
304
|
+
*/
|
|
305
|
+
var GetOnePromptResponseFormatPromptsType$;
|
|
306
|
+
(function (GetOnePromptResponseFormatPromptsType$) {
|
|
307
|
+
/** @deprecated use `GetOnePromptResponseFormatPromptsType$inboundSchema` instead. */
|
|
308
|
+
GetOnePromptResponseFormatPromptsType$.inboundSchema = exports.GetOnePromptResponseFormatPromptsType$inboundSchema;
|
|
309
|
+
/** @deprecated use `GetOnePromptResponseFormatPromptsType$outboundSchema` instead. */
|
|
310
|
+
GetOnePromptResponseFormatPromptsType$.outboundSchema = exports.GetOnePromptResponseFormatPromptsType$outboundSchema;
|
|
311
|
+
})(GetOnePromptResponseFormatPromptsType$ || (exports.GetOnePromptResponseFormatPromptsType$ = GetOnePromptResponseFormatPromptsType$ = {}));
|
|
312
|
+
/** @internal */
|
|
313
|
+
exports.GetOnePromptResponseFormat2$inboundSchema = z.object({
|
|
314
|
+
type: exports.GetOnePromptResponseFormatPromptsType$inboundSchema,
|
|
315
|
+
});
|
|
316
|
+
/** @internal */
|
|
317
|
+
exports.GetOnePromptResponseFormat2$outboundSchema = z.object({
|
|
318
|
+
type: exports.GetOnePromptResponseFormatPromptsType$outboundSchema,
|
|
319
|
+
});
|
|
320
|
+
/**
|
|
321
|
+
* @internal
|
|
322
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
323
|
+
*/
|
|
324
|
+
var GetOnePromptResponseFormat2$;
|
|
325
|
+
(function (GetOnePromptResponseFormat2$) {
|
|
326
|
+
/** @deprecated use `GetOnePromptResponseFormat2$inboundSchema` instead. */
|
|
327
|
+
GetOnePromptResponseFormat2$.inboundSchema = exports.GetOnePromptResponseFormat2$inboundSchema;
|
|
328
|
+
/** @deprecated use `GetOnePromptResponseFormat2$outboundSchema` instead. */
|
|
329
|
+
GetOnePromptResponseFormat2$.outboundSchema = exports.GetOnePromptResponseFormat2$outboundSchema;
|
|
330
|
+
})(GetOnePromptResponseFormat2$ || (exports.GetOnePromptResponseFormat2$ = GetOnePromptResponseFormat2$ = {}));
|
|
331
|
+
function getOnePromptResponseFormat2ToJSON(getOnePromptResponseFormat2) {
|
|
332
|
+
return JSON.stringify(exports.GetOnePromptResponseFormat2$outboundSchema.parse(getOnePromptResponseFormat2));
|
|
333
|
+
}
|
|
334
|
+
function getOnePromptResponseFormat2FromJSON(jsonString) {
|
|
335
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat2' from JSON`);
|
|
336
|
+
}
|
|
337
|
+
/** @internal */
|
|
338
|
+
exports.GetOnePromptResponseFormatType$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormatType);
|
|
339
|
+
/** @internal */
|
|
340
|
+
exports.GetOnePromptResponseFormatType$outboundSchema = exports.GetOnePromptResponseFormatType$inboundSchema;
|
|
341
|
+
/**
|
|
342
|
+
* @internal
|
|
343
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
344
|
+
*/
|
|
345
|
+
var GetOnePromptResponseFormatType$;
|
|
346
|
+
(function (GetOnePromptResponseFormatType$) {
|
|
347
|
+
/** @deprecated use `GetOnePromptResponseFormatType$inboundSchema` instead. */
|
|
348
|
+
GetOnePromptResponseFormatType$.inboundSchema = exports.GetOnePromptResponseFormatType$inboundSchema;
|
|
349
|
+
/** @deprecated use `GetOnePromptResponseFormatType$outboundSchema` instead. */
|
|
350
|
+
GetOnePromptResponseFormatType$.outboundSchema = exports.GetOnePromptResponseFormatType$outboundSchema;
|
|
351
|
+
})(GetOnePromptResponseFormatType$ || (exports.GetOnePromptResponseFormatType$ = GetOnePromptResponseFormatType$ = {}));
|
|
352
|
+
/** @internal */
|
|
353
|
+
exports.GetOnePromptResponseFormatJsonSchema$inboundSchema = z.object({
|
|
354
|
+
name: z.string(),
|
|
355
|
+
strict: z.boolean(),
|
|
356
|
+
schema: z.record(z.any()),
|
|
357
|
+
});
|
|
358
|
+
/** @internal */
|
|
359
|
+
exports.GetOnePromptResponseFormatJsonSchema$outboundSchema = z.object({
|
|
360
|
+
name: z.string(),
|
|
361
|
+
strict: z.boolean(),
|
|
362
|
+
schema: z.record(z.any()),
|
|
363
|
+
});
|
|
364
|
+
/**
|
|
365
|
+
* @internal
|
|
366
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
367
|
+
*/
|
|
368
|
+
var GetOnePromptResponseFormatJsonSchema$;
|
|
369
|
+
(function (GetOnePromptResponseFormatJsonSchema$) {
|
|
370
|
+
/** @deprecated use `GetOnePromptResponseFormatJsonSchema$inboundSchema` instead. */
|
|
371
|
+
GetOnePromptResponseFormatJsonSchema$.inboundSchema = exports.GetOnePromptResponseFormatJsonSchema$inboundSchema;
|
|
372
|
+
/** @deprecated use `GetOnePromptResponseFormatJsonSchema$outboundSchema` instead. */
|
|
373
|
+
GetOnePromptResponseFormatJsonSchema$.outboundSchema = exports.GetOnePromptResponseFormatJsonSchema$outboundSchema;
|
|
374
|
+
})(GetOnePromptResponseFormatJsonSchema$ || (exports.GetOnePromptResponseFormatJsonSchema$ = GetOnePromptResponseFormatJsonSchema$ = {}));
|
|
375
|
+
function getOnePromptResponseFormatJsonSchemaToJSON(getOnePromptResponseFormatJsonSchema) {
|
|
376
|
+
return JSON.stringify(exports.GetOnePromptResponseFormatJsonSchema$outboundSchema.parse(getOnePromptResponseFormatJsonSchema));
|
|
377
|
+
}
|
|
378
|
+
function getOnePromptResponseFormatJsonSchemaFromJSON(jsonString) {
|
|
379
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormatJsonSchema' from JSON`);
|
|
380
|
+
}
|
|
381
|
+
/** @internal */
|
|
382
|
+
exports.GetOnePromptResponseFormat1$inboundSchema = z.object({
|
|
383
|
+
type: exports.GetOnePromptResponseFormatType$inboundSchema,
|
|
384
|
+
json_schema: z.lazy(() => exports.GetOnePromptResponseFormatJsonSchema$inboundSchema),
|
|
385
|
+
}).transform((v) => {
|
|
386
|
+
return (0, primitives_js_1.remap)(v, {
|
|
387
|
+
"json_schema": "jsonSchema",
|
|
388
|
+
});
|
|
389
|
+
});
|
|
390
|
+
/** @internal */
|
|
391
|
+
exports.GetOnePromptResponseFormat1$outboundSchema = z.object({
|
|
392
|
+
type: exports.GetOnePromptResponseFormatType$outboundSchema,
|
|
393
|
+
jsonSchema: z.lazy(() => exports.GetOnePromptResponseFormatJsonSchema$outboundSchema),
|
|
394
|
+
}).transform((v) => {
|
|
395
|
+
return (0, primitives_js_1.remap)(v, {
|
|
396
|
+
jsonSchema: "json_schema",
|
|
397
|
+
});
|
|
398
|
+
});
|
|
399
|
+
/**
|
|
400
|
+
* @internal
|
|
401
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
402
|
+
*/
|
|
403
|
+
var GetOnePromptResponseFormat1$;
|
|
404
|
+
(function (GetOnePromptResponseFormat1$) {
|
|
405
|
+
/** @deprecated use `GetOnePromptResponseFormat1$inboundSchema` instead. */
|
|
406
|
+
GetOnePromptResponseFormat1$.inboundSchema = exports.GetOnePromptResponseFormat1$inboundSchema;
|
|
407
|
+
/** @deprecated use `GetOnePromptResponseFormat1$outboundSchema` instead. */
|
|
408
|
+
GetOnePromptResponseFormat1$.outboundSchema = exports.GetOnePromptResponseFormat1$outboundSchema;
|
|
409
|
+
})(GetOnePromptResponseFormat1$ || (exports.GetOnePromptResponseFormat1$ = GetOnePromptResponseFormat1$ = {}));
|
|
410
|
+
function getOnePromptResponseFormat1ToJSON(getOnePromptResponseFormat1) {
|
|
411
|
+
return JSON.stringify(exports.GetOnePromptResponseFormat1$outboundSchema.parse(getOnePromptResponseFormat1));
|
|
412
|
+
}
|
|
413
|
+
function getOnePromptResponseFormat1FromJSON(jsonString) {
|
|
414
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat1' from JSON`);
|
|
415
|
+
}
|
|
416
|
+
/** @internal */
|
|
417
|
+
exports.GetOnePromptResponseFormat$inboundSchema = z.union([
|
|
418
|
+
z.lazy(() => exports.GetOnePromptResponseFormat2$inboundSchema),
|
|
419
|
+
z.lazy(() => exports.GetOnePromptResponseFormat1$inboundSchema),
|
|
420
|
+
]);
|
|
421
|
+
/** @internal */
|
|
422
|
+
exports.GetOnePromptResponseFormat$outboundSchema = z.union([
|
|
423
|
+
z.lazy(() => exports.GetOnePromptResponseFormat2$outboundSchema),
|
|
424
|
+
z.lazy(() => exports.GetOnePromptResponseFormat1$outboundSchema),
|
|
425
|
+
]);
|
|
426
|
+
/**
|
|
427
|
+
* @internal
|
|
428
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
429
|
+
*/
|
|
430
|
+
var GetOnePromptResponseFormat$;
|
|
431
|
+
(function (GetOnePromptResponseFormat$) {
|
|
432
|
+
/** @deprecated use `GetOnePromptResponseFormat$inboundSchema` instead. */
|
|
433
|
+
GetOnePromptResponseFormat$.inboundSchema = exports.GetOnePromptResponseFormat$inboundSchema;
|
|
434
|
+
/** @deprecated use `GetOnePromptResponseFormat$outboundSchema` instead. */
|
|
435
|
+
GetOnePromptResponseFormat$.outboundSchema = exports.GetOnePromptResponseFormat$outboundSchema;
|
|
436
|
+
})(GetOnePromptResponseFormat$ || (exports.GetOnePromptResponseFormat$ = GetOnePromptResponseFormat$ = {}));
|
|
437
|
+
function getOnePromptResponseFormatToJSON(getOnePromptResponseFormat) {
|
|
438
|
+
return JSON.stringify(exports.GetOnePromptResponseFormat$outboundSchema.parse(getOnePromptResponseFormat));
|
|
439
|
+
}
|
|
440
|
+
function getOnePromptResponseFormatFromJSON(jsonString) {
|
|
441
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat' from JSON`);
|
|
442
|
+
}
|
|
443
|
+
/** @internal */
|
|
444
|
+
exports.GetOnePromptPhotoRealVersion$inboundSchema = z.nativeEnum(exports.GetOnePromptPhotoRealVersion);
|
|
445
|
+
/** @internal */
|
|
446
|
+
exports.GetOnePromptPhotoRealVersion$outboundSchema = exports.GetOnePromptPhotoRealVersion$inboundSchema;
|
|
447
|
+
/**
|
|
448
|
+
* @internal
|
|
449
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
450
|
+
*/
|
|
451
|
+
var GetOnePromptPhotoRealVersion$;
|
|
452
|
+
(function (GetOnePromptPhotoRealVersion$) {
|
|
453
|
+
/** @deprecated use `GetOnePromptPhotoRealVersion$inboundSchema` instead. */
|
|
454
|
+
GetOnePromptPhotoRealVersion$.inboundSchema = exports.GetOnePromptPhotoRealVersion$inboundSchema;
|
|
455
|
+
/** @deprecated use `GetOnePromptPhotoRealVersion$outboundSchema` instead. */
|
|
456
|
+
GetOnePromptPhotoRealVersion$.outboundSchema = exports.GetOnePromptPhotoRealVersion$outboundSchema;
|
|
457
|
+
})(GetOnePromptPhotoRealVersion$ || (exports.GetOnePromptPhotoRealVersion$ = GetOnePromptPhotoRealVersion$ = {}));
|
|
458
|
+
/** @internal */
|
|
459
|
+
exports.GetOnePromptEncodingFormat$inboundSchema = z.nativeEnum(exports.GetOnePromptEncodingFormat);
|
|
460
|
+
/** @internal */
|
|
461
|
+
exports.GetOnePromptEncodingFormat$outboundSchema = exports.GetOnePromptEncodingFormat$inboundSchema;
|
|
462
|
+
/**
|
|
463
|
+
* @internal
|
|
464
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
465
|
+
*/
|
|
466
|
+
var GetOnePromptEncodingFormat$;
|
|
467
|
+
(function (GetOnePromptEncodingFormat$) {
|
|
468
|
+
/** @deprecated use `GetOnePromptEncodingFormat$inboundSchema` instead. */
|
|
469
|
+
GetOnePromptEncodingFormat$.inboundSchema = exports.GetOnePromptEncodingFormat$inboundSchema;
|
|
470
|
+
/** @deprecated use `GetOnePromptEncodingFormat$outboundSchema` instead. */
|
|
471
|
+
GetOnePromptEncodingFormat$.outboundSchema = exports.GetOnePromptEncodingFormat$outboundSchema;
|
|
472
|
+
})(GetOnePromptEncodingFormat$ || (exports.GetOnePromptEncodingFormat$ = GetOnePromptEncodingFormat$ = {}));
|
|
473
|
+
/** @internal */
|
|
474
|
+
exports.GetOnePromptReasoningEffort$inboundSchema = z.nativeEnum(exports.GetOnePromptReasoningEffort);
|
|
475
|
+
/** @internal */
|
|
476
|
+
exports.GetOnePromptReasoningEffort$outboundSchema = exports.GetOnePromptReasoningEffort$inboundSchema;
|
|
477
|
+
/**
|
|
478
|
+
* @internal
|
|
479
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
480
|
+
*/
|
|
481
|
+
var GetOnePromptReasoningEffort$;
|
|
482
|
+
(function (GetOnePromptReasoningEffort$) {
|
|
483
|
+
/** @deprecated use `GetOnePromptReasoningEffort$inboundSchema` instead. */
|
|
484
|
+
GetOnePromptReasoningEffort$.inboundSchema = exports.GetOnePromptReasoningEffort$inboundSchema;
|
|
485
|
+
/** @deprecated use `GetOnePromptReasoningEffort$outboundSchema` instead. */
|
|
486
|
+
GetOnePromptReasoningEffort$.outboundSchema = exports.GetOnePromptReasoningEffort$outboundSchema;
|
|
487
|
+
})(GetOnePromptReasoningEffort$ || (exports.GetOnePromptReasoningEffort$ = GetOnePromptReasoningEffort$ = {}));
|
|
488
|
+
/** @internal */
|
|
489
|
+
exports.GetOnePromptModelParameters$inboundSchema = z.object({
|
|
490
|
+
temperature: z.number().optional(),
|
|
491
|
+
maxTokens: z.number().optional(),
|
|
492
|
+
topK: z.number().optional(),
|
|
493
|
+
topP: z.number().optional(),
|
|
494
|
+
frequencyPenalty: z.number().optional(),
|
|
495
|
+
presencePenalty: z.number().optional(),
|
|
496
|
+
numImages: z.number().optional(),
|
|
497
|
+
seed: z.number().optional(),
|
|
498
|
+
format: exports.GetOnePromptFormat$inboundSchema.optional(),
|
|
499
|
+
dimensions: z.string().optional(),
|
|
500
|
+
quality: exports.GetOnePromptQuality$inboundSchema.optional(),
|
|
501
|
+
style: z.string().optional(),
|
|
502
|
+
responseFormat: z.nullable(z.union([
|
|
503
|
+
z.lazy(() => exports.GetOnePromptResponseFormat2$inboundSchema),
|
|
504
|
+
z.lazy(() => exports.GetOnePromptResponseFormat1$inboundSchema),
|
|
505
|
+
])).optional(),
|
|
506
|
+
photoRealVersion: exports.GetOnePromptPhotoRealVersion$inboundSchema.optional(),
|
|
507
|
+
encoding_format: exports.GetOnePromptEncodingFormat$inboundSchema.optional(),
|
|
508
|
+
reasoningEffort: exports.GetOnePromptReasoningEffort$inboundSchema.optional(),
|
|
509
|
+
}).transform((v) => {
|
|
510
|
+
return (0, primitives_js_1.remap)(v, {
|
|
511
|
+
"encoding_format": "encodingFormat",
|
|
512
|
+
});
|
|
513
|
+
});
|
|
514
|
+
/** @internal */
|
|
515
|
+
exports.GetOnePromptModelParameters$outboundSchema = z.object({
|
|
516
|
+
temperature: z.number().optional(),
|
|
517
|
+
maxTokens: z.number().optional(),
|
|
518
|
+
topK: z.number().optional(),
|
|
519
|
+
topP: z.number().optional(),
|
|
520
|
+
frequencyPenalty: z.number().optional(),
|
|
521
|
+
presencePenalty: z.number().optional(),
|
|
522
|
+
numImages: z.number().optional(),
|
|
523
|
+
seed: z.number().optional(),
|
|
524
|
+
format: exports.GetOnePromptFormat$outboundSchema.optional(),
|
|
525
|
+
dimensions: z.string().optional(),
|
|
526
|
+
quality: exports.GetOnePromptQuality$outboundSchema.optional(),
|
|
527
|
+
style: z.string().optional(),
|
|
528
|
+
responseFormat: z.nullable(z.union([
|
|
529
|
+
z.lazy(() => exports.GetOnePromptResponseFormat2$outboundSchema),
|
|
530
|
+
z.lazy(() => exports.GetOnePromptResponseFormat1$outboundSchema),
|
|
531
|
+
])).optional(),
|
|
532
|
+
photoRealVersion: exports.GetOnePromptPhotoRealVersion$outboundSchema.optional(),
|
|
533
|
+
encodingFormat: exports.GetOnePromptEncodingFormat$outboundSchema.optional(),
|
|
534
|
+
reasoningEffort: exports.GetOnePromptReasoningEffort$outboundSchema.optional(),
|
|
535
|
+
}).transform((v) => {
|
|
536
|
+
return (0, primitives_js_1.remap)(v, {
|
|
537
|
+
encodingFormat: "encoding_format",
|
|
538
|
+
});
|
|
539
|
+
});
|
|
540
|
+
/**
|
|
541
|
+
* @internal
|
|
542
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
543
|
+
*/
|
|
544
|
+
var GetOnePromptModelParameters$;
|
|
545
|
+
(function (GetOnePromptModelParameters$) {
|
|
546
|
+
/** @deprecated use `GetOnePromptModelParameters$inboundSchema` instead. */
|
|
547
|
+
GetOnePromptModelParameters$.inboundSchema = exports.GetOnePromptModelParameters$inboundSchema;
|
|
548
|
+
/** @deprecated use `GetOnePromptModelParameters$outboundSchema` instead. */
|
|
549
|
+
GetOnePromptModelParameters$.outboundSchema = exports.GetOnePromptModelParameters$outboundSchema;
|
|
550
|
+
})(GetOnePromptModelParameters$ || (exports.GetOnePromptModelParameters$ = GetOnePromptModelParameters$ = {}));
|
|
551
|
+
function getOnePromptModelParametersToJSON(getOnePromptModelParameters) {
|
|
552
|
+
return JSON.stringify(exports.GetOnePromptModelParameters$outboundSchema.parse(getOnePromptModelParameters));
|
|
553
|
+
}
|
|
554
|
+
function getOnePromptModelParametersFromJSON(jsonString) {
|
|
555
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptModelParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptModelParameters' from JSON`);
|
|
556
|
+
}
|
|
557
|
+
/** @internal */
|
|
558
|
+
exports.GetOnePromptProvider$inboundSchema = z.nativeEnum(exports.GetOnePromptProvider);
|
|
559
|
+
/** @internal */
|
|
560
|
+
exports.GetOnePromptProvider$outboundSchema = exports.GetOnePromptProvider$inboundSchema;
|
|
561
|
+
/**
|
|
562
|
+
* @internal
|
|
563
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
564
|
+
*/
|
|
565
|
+
var GetOnePromptProvider$;
|
|
566
|
+
(function (GetOnePromptProvider$) {
|
|
567
|
+
/** @deprecated use `GetOnePromptProvider$inboundSchema` instead. */
|
|
568
|
+
GetOnePromptProvider$.inboundSchema = exports.GetOnePromptProvider$inboundSchema;
|
|
569
|
+
/** @deprecated use `GetOnePromptProvider$outboundSchema` instead. */
|
|
570
|
+
GetOnePromptProvider$.outboundSchema = exports.GetOnePromptProvider$outboundSchema;
|
|
571
|
+
})(GetOnePromptProvider$ || (exports.GetOnePromptProvider$ = GetOnePromptProvider$ = {}));
|
|
572
|
+
/** @internal */
|
|
573
|
+
exports.GetOnePromptRole$inboundSchema = z.nativeEnum(exports.GetOnePromptRole);
|
|
574
|
+
/** @internal */
|
|
575
|
+
exports.GetOnePromptRole$outboundSchema = exports.GetOnePromptRole$inboundSchema;
|
|
576
|
+
/**
|
|
577
|
+
* @internal
|
|
578
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
579
|
+
*/
|
|
580
|
+
var GetOnePromptRole$;
|
|
581
|
+
(function (GetOnePromptRole$) {
|
|
582
|
+
/** @deprecated use `GetOnePromptRole$inboundSchema` instead. */
|
|
583
|
+
GetOnePromptRole$.inboundSchema = exports.GetOnePromptRole$inboundSchema;
|
|
584
|
+
/** @deprecated use `GetOnePromptRole$outboundSchema` instead. */
|
|
585
|
+
GetOnePromptRole$.outboundSchema = exports.GetOnePromptRole$outboundSchema;
|
|
586
|
+
})(GetOnePromptRole$ || (exports.GetOnePromptRole$ = GetOnePromptRole$ = {}));
|
|
587
|
+
/** @internal */
|
|
588
|
+
exports.GetOnePrompt2PromptsType$inboundSchema = z.nativeEnum(exports.GetOnePrompt2PromptsType);
|
|
589
|
+
/** @internal */
|
|
590
|
+
exports.GetOnePrompt2PromptsType$outboundSchema = exports.GetOnePrompt2PromptsType$inboundSchema;
|
|
591
|
+
/**
|
|
592
|
+
* @internal
|
|
593
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
594
|
+
*/
|
|
595
|
+
var GetOnePrompt2PromptsType$;
|
|
596
|
+
(function (GetOnePrompt2PromptsType$) {
|
|
597
|
+
/** @deprecated use `GetOnePrompt2PromptsType$inboundSchema` instead. */
|
|
598
|
+
GetOnePrompt2PromptsType$.inboundSchema = exports.GetOnePrompt2PromptsType$inboundSchema;
|
|
599
|
+
/** @deprecated use `GetOnePrompt2PromptsType$outboundSchema` instead. */
|
|
600
|
+
GetOnePrompt2PromptsType$.outboundSchema = exports.GetOnePrompt2PromptsType$outboundSchema;
|
|
601
|
+
})(GetOnePrompt2PromptsType$ || (exports.GetOnePrompt2PromptsType$ = GetOnePrompt2PromptsType$ = {}));
|
|
602
|
+
/** @internal */
|
|
603
|
+
exports.GetOnePrompt2ImageUrl$inboundSchema = z.object({
|
|
604
|
+
id: z.string().optional(),
|
|
605
|
+
url: z.string(),
|
|
606
|
+
detail: z.string().optional(),
|
|
607
|
+
});
|
|
608
|
+
/** @internal */
|
|
609
|
+
exports.GetOnePrompt2ImageUrl$outboundSchema = z.object({
|
|
610
|
+
id: z.string().optional(),
|
|
611
|
+
url: z.string(),
|
|
612
|
+
detail: z.string().optional(),
|
|
613
|
+
});
|
|
614
|
+
/**
|
|
615
|
+
* @internal
|
|
616
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
617
|
+
*/
|
|
618
|
+
var GetOnePrompt2ImageUrl$;
|
|
619
|
+
(function (GetOnePrompt2ImageUrl$) {
|
|
620
|
+
/** @deprecated use `GetOnePrompt2ImageUrl$inboundSchema` instead. */
|
|
621
|
+
GetOnePrompt2ImageUrl$.inboundSchema = exports.GetOnePrompt2ImageUrl$inboundSchema;
|
|
622
|
+
/** @deprecated use `GetOnePrompt2ImageUrl$outboundSchema` instead. */
|
|
623
|
+
GetOnePrompt2ImageUrl$.outboundSchema = exports.GetOnePrompt2ImageUrl$outboundSchema;
|
|
624
|
+
})(GetOnePrompt2ImageUrl$ || (exports.GetOnePrompt2ImageUrl$ = GetOnePrompt2ImageUrl$ = {}));
|
|
625
|
+
function getOnePrompt2ImageUrlToJSON(getOnePrompt2ImageUrl) {
|
|
626
|
+
return JSON.stringify(exports.GetOnePrompt2ImageUrl$outboundSchema.parse(getOnePrompt2ImageUrl));
|
|
627
|
+
}
|
|
628
|
+
function getOnePrompt2ImageUrlFromJSON(jsonString) {
|
|
629
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt2ImageUrl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt2ImageUrl' from JSON`);
|
|
630
|
+
}
|
|
631
|
+
/** @internal */
|
|
632
|
+
exports.GetOnePrompt22$inboundSchema = z.object({
|
|
633
|
+
type: exports.GetOnePrompt2PromptsType$inboundSchema,
|
|
634
|
+
image_url: z.lazy(() => exports.GetOnePrompt2ImageUrl$inboundSchema),
|
|
635
|
+
}).transform((v) => {
|
|
636
|
+
return (0, primitives_js_1.remap)(v, {
|
|
637
|
+
"image_url": "imageUrl",
|
|
638
|
+
});
|
|
639
|
+
});
|
|
640
|
+
/** @internal */
|
|
641
|
+
exports.GetOnePrompt22$outboundSchema = z.object({
|
|
642
|
+
type: exports.GetOnePrompt2PromptsType$outboundSchema,
|
|
643
|
+
imageUrl: z.lazy(() => exports.GetOnePrompt2ImageUrl$outboundSchema),
|
|
644
|
+
}).transform((v) => {
|
|
645
|
+
return (0, primitives_js_1.remap)(v, {
|
|
646
|
+
imageUrl: "image_url",
|
|
647
|
+
});
|
|
648
|
+
});
|
|
649
|
+
/**
|
|
650
|
+
* @internal
|
|
651
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
652
|
+
*/
|
|
653
|
+
var GetOnePrompt22$;
|
|
654
|
+
(function (GetOnePrompt22$) {
|
|
655
|
+
/** @deprecated use `GetOnePrompt22$inboundSchema` instead. */
|
|
656
|
+
GetOnePrompt22$.inboundSchema = exports.GetOnePrompt22$inboundSchema;
|
|
657
|
+
/** @deprecated use `GetOnePrompt22$outboundSchema` instead. */
|
|
658
|
+
GetOnePrompt22$.outboundSchema = exports.GetOnePrompt22$outboundSchema;
|
|
659
|
+
})(GetOnePrompt22$ || (exports.GetOnePrompt22$ = GetOnePrompt22$ = {}));
|
|
660
|
+
function getOnePrompt22ToJSON(getOnePrompt22) {
|
|
661
|
+
return JSON.stringify(exports.GetOnePrompt22$outboundSchema.parse(getOnePrompt22));
|
|
662
|
+
}
|
|
663
|
+
function getOnePrompt22FromJSON(jsonString) {
|
|
664
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt22$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt22' from JSON`);
|
|
665
|
+
}
|
|
666
|
+
/** @internal */
|
|
667
|
+
exports.GetOnePrompt2Type$inboundSchema = z.nativeEnum(exports.GetOnePrompt2Type);
|
|
668
|
+
/** @internal */
|
|
669
|
+
exports.GetOnePrompt2Type$outboundSchema = exports.GetOnePrompt2Type$inboundSchema;
|
|
670
|
+
/**
|
|
671
|
+
* @internal
|
|
672
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
673
|
+
*/
|
|
674
|
+
var GetOnePrompt2Type$;
|
|
675
|
+
(function (GetOnePrompt2Type$) {
|
|
676
|
+
/** @deprecated use `GetOnePrompt2Type$inboundSchema` instead. */
|
|
677
|
+
GetOnePrompt2Type$.inboundSchema = exports.GetOnePrompt2Type$inboundSchema;
|
|
678
|
+
/** @deprecated use `GetOnePrompt2Type$outboundSchema` instead. */
|
|
679
|
+
GetOnePrompt2Type$.outboundSchema = exports.GetOnePrompt2Type$outboundSchema;
|
|
680
|
+
})(GetOnePrompt2Type$ || (exports.GetOnePrompt2Type$ = GetOnePrompt2Type$ = {}));
|
|
681
|
+
/** @internal */
|
|
682
|
+
exports.GetOnePrompt21$inboundSchema = z.object({
|
|
683
|
+
type: exports.GetOnePrompt2Type$inboundSchema,
|
|
684
|
+
text: z.string(),
|
|
685
|
+
});
|
|
686
|
+
/** @internal */
|
|
687
|
+
exports.GetOnePrompt21$outboundSchema = z.object({
|
|
688
|
+
type: exports.GetOnePrompt2Type$outboundSchema,
|
|
689
|
+
text: z.string(),
|
|
690
|
+
});
|
|
691
|
+
/**
|
|
692
|
+
* @internal
|
|
693
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
694
|
+
*/
|
|
695
|
+
var GetOnePrompt21$;
|
|
696
|
+
(function (GetOnePrompt21$) {
|
|
697
|
+
/** @deprecated use `GetOnePrompt21$inboundSchema` instead. */
|
|
698
|
+
GetOnePrompt21$.inboundSchema = exports.GetOnePrompt21$inboundSchema;
|
|
699
|
+
/** @deprecated use `GetOnePrompt21$outboundSchema` instead. */
|
|
700
|
+
GetOnePrompt21$.outboundSchema = exports.GetOnePrompt21$outboundSchema;
|
|
701
|
+
})(GetOnePrompt21$ || (exports.GetOnePrompt21$ = GetOnePrompt21$ = {}));
|
|
702
|
+
function getOnePrompt21ToJSON(getOnePrompt21) {
|
|
703
|
+
return JSON.stringify(exports.GetOnePrompt21$outboundSchema.parse(getOnePrompt21));
|
|
704
|
+
}
|
|
705
|
+
function getOnePrompt21FromJSON(jsonString) {
|
|
706
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt21$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt21' from JSON`);
|
|
707
|
+
}
|
|
708
|
+
/** @internal */
|
|
709
|
+
exports.GetOnePromptContent2$inboundSchema = z.union([
|
|
710
|
+
z.lazy(() => exports.GetOnePrompt21$inboundSchema),
|
|
711
|
+
z.lazy(() => exports.GetOnePrompt22$inboundSchema),
|
|
712
|
+
]);
|
|
713
|
+
/** @internal */
|
|
714
|
+
exports.GetOnePromptContent2$outboundSchema = z.union([
|
|
715
|
+
z.lazy(() => exports.GetOnePrompt21$outboundSchema),
|
|
716
|
+
z.lazy(() => exports.GetOnePrompt22$outboundSchema),
|
|
717
|
+
]);
|
|
718
|
+
/**
|
|
719
|
+
* @internal
|
|
720
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
721
|
+
*/
|
|
722
|
+
var GetOnePromptContent2$;
|
|
723
|
+
(function (GetOnePromptContent2$) {
|
|
724
|
+
/** @deprecated use `GetOnePromptContent2$inboundSchema` instead. */
|
|
725
|
+
GetOnePromptContent2$.inboundSchema = exports.GetOnePromptContent2$inboundSchema;
|
|
726
|
+
/** @deprecated use `GetOnePromptContent2$outboundSchema` instead. */
|
|
727
|
+
GetOnePromptContent2$.outboundSchema = exports.GetOnePromptContent2$outboundSchema;
|
|
728
|
+
})(GetOnePromptContent2$ || (exports.GetOnePromptContent2$ = GetOnePromptContent2$ = {}));
|
|
729
|
+
function getOnePromptContent2ToJSON(getOnePromptContent2) {
|
|
730
|
+
return JSON.stringify(exports.GetOnePromptContent2$outboundSchema.parse(getOnePromptContent2));
|
|
731
|
+
}
|
|
732
|
+
function getOnePromptContent2FromJSON(jsonString) {
|
|
733
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptContent2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptContent2' from JSON`);
|
|
734
|
+
}
|
|
735
|
+
/** @internal */
|
|
736
|
+
exports.GetOnePromptContent$inboundSchema = z.union([
|
|
737
|
+
z.string(),
|
|
738
|
+
z.array(z.union([
|
|
739
|
+
z.lazy(() => exports.GetOnePrompt21$inboundSchema),
|
|
740
|
+
z.lazy(() => exports.GetOnePrompt22$inboundSchema),
|
|
741
|
+
])),
|
|
742
|
+
]);
|
|
743
|
+
/** @internal */
|
|
744
|
+
exports.GetOnePromptContent$outboundSchema = z.union([
|
|
745
|
+
z.string(),
|
|
746
|
+
z.array(z.union([
|
|
747
|
+
z.lazy(() => exports.GetOnePrompt21$outboundSchema),
|
|
748
|
+
z.lazy(() => exports.GetOnePrompt22$outboundSchema),
|
|
749
|
+
])),
|
|
750
|
+
]);
|
|
751
|
+
/**
|
|
752
|
+
* @internal
|
|
753
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
754
|
+
*/
|
|
755
|
+
var GetOnePromptContent$;
|
|
756
|
+
(function (GetOnePromptContent$) {
|
|
757
|
+
/** @deprecated use `GetOnePromptContent$inboundSchema` instead. */
|
|
758
|
+
GetOnePromptContent$.inboundSchema = exports.GetOnePromptContent$inboundSchema;
|
|
759
|
+
/** @deprecated use `GetOnePromptContent$outboundSchema` instead. */
|
|
760
|
+
GetOnePromptContent$.outboundSchema = exports.GetOnePromptContent$outboundSchema;
|
|
761
|
+
})(GetOnePromptContent$ || (exports.GetOnePromptContent$ = GetOnePromptContent$ = {}));
|
|
762
|
+
function getOnePromptContentToJSON(getOnePromptContent) {
|
|
763
|
+
return JSON.stringify(exports.GetOnePromptContent$outboundSchema.parse(getOnePromptContent));
|
|
764
|
+
}
|
|
765
|
+
function getOnePromptContentFromJSON(jsonString) {
|
|
766
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptContent' from JSON`);
|
|
767
|
+
}
|
|
768
|
+
/** @internal */
|
|
769
|
+
exports.GetOnePromptPromptsType$inboundSchema = z.nativeEnum(exports.GetOnePromptPromptsType);
|
|
770
|
+
/** @internal */
|
|
771
|
+
exports.GetOnePromptPromptsType$outboundSchema = exports.GetOnePromptPromptsType$inboundSchema;
|
|
772
|
+
/**
|
|
773
|
+
* @internal
|
|
774
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
775
|
+
*/
|
|
776
|
+
var GetOnePromptPromptsType$;
|
|
777
|
+
(function (GetOnePromptPromptsType$) {
|
|
778
|
+
/** @deprecated use `GetOnePromptPromptsType$inboundSchema` instead. */
|
|
779
|
+
GetOnePromptPromptsType$.inboundSchema = exports.GetOnePromptPromptsType$inboundSchema;
|
|
780
|
+
/** @deprecated use `GetOnePromptPromptsType$outboundSchema` instead. */
|
|
781
|
+
GetOnePromptPromptsType$.outboundSchema = exports.GetOnePromptPromptsType$outboundSchema;
|
|
782
|
+
})(GetOnePromptPromptsType$ || (exports.GetOnePromptPromptsType$ = GetOnePromptPromptsType$ = {}));
|
|
783
|
+
/** @internal */
|
|
784
|
+
exports.GetOnePromptFunction$inboundSchema = z.object({
|
|
785
|
+
name: z.string(),
|
|
786
|
+
arguments: z.string(),
|
|
787
|
+
});
|
|
788
|
+
/** @internal */
|
|
789
|
+
exports.GetOnePromptFunction$outboundSchema = z.object({
|
|
790
|
+
name: z.string(),
|
|
791
|
+
arguments: z.string(),
|
|
792
|
+
});
|
|
793
|
+
/**
|
|
794
|
+
* @internal
|
|
795
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
796
|
+
*/
|
|
797
|
+
var GetOnePromptFunction$;
|
|
798
|
+
(function (GetOnePromptFunction$) {
|
|
799
|
+
/** @deprecated use `GetOnePromptFunction$inboundSchema` instead. */
|
|
800
|
+
GetOnePromptFunction$.inboundSchema = exports.GetOnePromptFunction$inboundSchema;
|
|
801
|
+
/** @deprecated use `GetOnePromptFunction$outboundSchema` instead. */
|
|
802
|
+
GetOnePromptFunction$.outboundSchema = exports.GetOnePromptFunction$outboundSchema;
|
|
803
|
+
})(GetOnePromptFunction$ || (exports.GetOnePromptFunction$ = GetOnePromptFunction$ = {}));
|
|
804
|
+
function getOnePromptFunctionToJSON(getOnePromptFunction) {
|
|
805
|
+
return JSON.stringify(exports.GetOnePromptFunction$outboundSchema.parse(getOnePromptFunction));
|
|
806
|
+
}
|
|
807
|
+
function getOnePromptFunctionFromJSON(jsonString) {
|
|
808
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptFunction' from JSON`);
|
|
809
|
+
}
|
|
810
|
+
/** @internal */
|
|
811
|
+
exports.GetOnePromptToolCalls$inboundSchema = z.object({
|
|
812
|
+
id: z.string().optional(),
|
|
813
|
+
index: z.number().optional(),
|
|
814
|
+
type: exports.GetOnePromptPromptsType$inboundSchema,
|
|
815
|
+
function: z.lazy(() => exports.GetOnePromptFunction$inboundSchema),
|
|
816
|
+
});
|
|
817
|
+
/** @internal */
|
|
818
|
+
exports.GetOnePromptToolCalls$outboundSchema = z.object({
|
|
819
|
+
id: z.string().optional(),
|
|
820
|
+
index: z.number().optional(),
|
|
821
|
+
type: exports.GetOnePromptPromptsType$outboundSchema,
|
|
822
|
+
function: z.lazy(() => exports.GetOnePromptFunction$outboundSchema),
|
|
823
|
+
});
|
|
824
|
+
/**
|
|
825
|
+
* @internal
|
|
826
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
827
|
+
*/
|
|
828
|
+
var GetOnePromptToolCalls$;
|
|
829
|
+
(function (GetOnePromptToolCalls$) {
|
|
830
|
+
/** @deprecated use `GetOnePromptToolCalls$inboundSchema` instead. */
|
|
831
|
+
GetOnePromptToolCalls$.inboundSchema = exports.GetOnePromptToolCalls$inboundSchema;
|
|
832
|
+
/** @deprecated use `GetOnePromptToolCalls$outboundSchema` instead. */
|
|
833
|
+
GetOnePromptToolCalls$.outboundSchema = exports.GetOnePromptToolCalls$outboundSchema;
|
|
834
|
+
})(GetOnePromptToolCalls$ || (exports.GetOnePromptToolCalls$ = GetOnePromptToolCalls$ = {}));
|
|
835
|
+
function getOnePromptToolCallsToJSON(getOnePromptToolCalls) {
|
|
836
|
+
return JSON.stringify(exports.GetOnePromptToolCalls$outboundSchema.parse(getOnePromptToolCalls));
|
|
837
|
+
}
|
|
838
|
+
function getOnePromptToolCallsFromJSON(jsonString) {
|
|
839
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptToolCalls' from JSON`);
|
|
840
|
+
}
|
|
841
|
+
/** @internal */
|
|
842
|
+
exports.GetOnePromptMessages$inboundSchema = z.object({
|
|
843
|
+
role: exports.GetOnePromptRole$inboundSchema,
|
|
844
|
+
content: z.union([
|
|
845
|
+
z.string(),
|
|
846
|
+
z.array(z.union([
|
|
847
|
+
z.lazy(() => exports.GetOnePrompt21$inboundSchema),
|
|
848
|
+
z.lazy(() => exports.GetOnePrompt22$inboundSchema),
|
|
849
|
+
])),
|
|
850
|
+
]),
|
|
851
|
+
tool_calls: z.array(z.lazy(() => exports.GetOnePromptToolCalls$inboundSchema))
|
|
852
|
+
.optional(),
|
|
853
|
+
}).transform((v) => {
|
|
854
|
+
return (0, primitives_js_1.remap)(v, {
|
|
855
|
+
"tool_calls": "toolCalls",
|
|
856
|
+
});
|
|
857
|
+
});
|
|
858
|
+
/** @internal */
|
|
859
|
+
exports.GetOnePromptMessages$outboundSchema = z.object({
|
|
860
|
+
role: exports.GetOnePromptRole$outboundSchema,
|
|
861
|
+
content: z.union([
|
|
862
|
+
z.string(),
|
|
863
|
+
z.array(z.union([
|
|
864
|
+
z.lazy(() => exports.GetOnePrompt21$outboundSchema),
|
|
865
|
+
z.lazy(() => exports.GetOnePrompt22$outboundSchema),
|
|
866
|
+
])),
|
|
867
|
+
]),
|
|
868
|
+
toolCalls: z.array(z.lazy(() => exports.GetOnePromptToolCalls$outboundSchema))
|
|
869
|
+
.optional(),
|
|
870
|
+
}).transform((v) => {
|
|
871
|
+
return (0, primitives_js_1.remap)(v, {
|
|
872
|
+
toolCalls: "tool_calls",
|
|
873
|
+
});
|
|
874
|
+
});
|
|
875
|
+
/**
|
|
876
|
+
* @internal
|
|
877
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
878
|
+
*/
|
|
879
|
+
var GetOnePromptMessages$;
|
|
880
|
+
(function (GetOnePromptMessages$) {
|
|
881
|
+
/** @deprecated use `GetOnePromptMessages$inboundSchema` instead. */
|
|
882
|
+
GetOnePromptMessages$.inboundSchema = exports.GetOnePromptMessages$inboundSchema;
|
|
883
|
+
/** @deprecated use `GetOnePromptMessages$outboundSchema` instead. */
|
|
884
|
+
GetOnePromptMessages$.outboundSchema = exports.GetOnePromptMessages$outboundSchema;
|
|
885
|
+
})(GetOnePromptMessages$ || (exports.GetOnePromptMessages$ = GetOnePromptMessages$ = {}));
|
|
886
|
+
function getOnePromptMessagesToJSON(getOnePromptMessages) {
|
|
887
|
+
return JSON.stringify(exports.GetOnePromptMessages$outboundSchema.parse(getOnePromptMessages));
|
|
888
|
+
}
|
|
889
|
+
function getOnePromptMessagesFromJSON(jsonString) {
|
|
890
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessages' from JSON`);
|
|
891
|
+
}
|
|
892
|
+
/** @internal */
|
|
893
|
+
exports.GetOnePromptPromptConfig$inboundSchema = z.object({
|
|
894
|
+
stream: z.boolean().optional(),
|
|
895
|
+
model: z.string().optional(),
|
|
896
|
+
model_db_id: z.string().optional(),
|
|
897
|
+
model_type: exports.GetOnePromptModelType$inboundSchema.optional(),
|
|
898
|
+
model_parameters: z.lazy(() => exports.GetOnePromptModelParameters$inboundSchema)
|
|
899
|
+
.optional(),
|
|
900
|
+
provider: exports.GetOnePromptProvider$inboundSchema.optional(),
|
|
901
|
+
integration_id: z.nullable(z.string()).optional(),
|
|
902
|
+
version: z.string().optional(),
|
|
903
|
+
messages: z.array(z.lazy(() => exports.GetOnePromptMessages$inboundSchema)),
|
|
904
|
+
}).transform((v) => {
|
|
905
|
+
return (0, primitives_js_1.remap)(v, {
|
|
906
|
+
"model_db_id": "modelDbId",
|
|
907
|
+
"model_type": "modelType",
|
|
908
|
+
"model_parameters": "modelParameters",
|
|
909
|
+
"integration_id": "integrationId",
|
|
910
|
+
});
|
|
911
|
+
});
|
|
912
|
+
/** @internal */
|
|
913
|
+
exports.GetOnePromptPromptConfig$outboundSchema = z.object({
|
|
914
|
+
stream: z.boolean().optional(),
|
|
915
|
+
model: z.string().optional(),
|
|
916
|
+
modelDbId: z.string().optional(),
|
|
917
|
+
modelType: exports.GetOnePromptModelType$outboundSchema.optional(),
|
|
918
|
+
modelParameters: z.lazy(() => exports.GetOnePromptModelParameters$outboundSchema)
|
|
919
|
+
.optional(),
|
|
920
|
+
provider: exports.GetOnePromptProvider$outboundSchema.optional(),
|
|
921
|
+
integrationId: z.nullable(z.string()).optional(),
|
|
922
|
+
version: z.string().optional(),
|
|
923
|
+
messages: z.array(z.lazy(() => exports.GetOnePromptMessages$outboundSchema)),
|
|
924
|
+
}).transform((v) => {
|
|
925
|
+
return (0, primitives_js_1.remap)(v, {
|
|
926
|
+
modelDbId: "model_db_id",
|
|
927
|
+
modelType: "model_type",
|
|
928
|
+
modelParameters: "model_parameters",
|
|
929
|
+
integrationId: "integration_id",
|
|
930
|
+
});
|
|
931
|
+
});
|
|
932
|
+
/**
|
|
933
|
+
* @internal
|
|
934
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
935
|
+
*/
|
|
936
|
+
var GetOnePromptPromptConfig$;
|
|
937
|
+
(function (GetOnePromptPromptConfig$) {
|
|
938
|
+
/** @deprecated use `GetOnePromptPromptConfig$inboundSchema` instead. */
|
|
939
|
+
GetOnePromptPromptConfig$.inboundSchema = exports.GetOnePromptPromptConfig$inboundSchema;
|
|
940
|
+
/** @deprecated use `GetOnePromptPromptConfig$outboundSchema` instead. */
|
|
941
|
+
GetOnePromptPromptConfig$.outboundSchema = exports.GetOnePromptPromptConfig$outboundSchema;
|
|
942
|
+
})(GetOnePromptPromptConfig$ || (exports.GetOnePromptPromptConfig$ = GetOnePromptPromptConfig$ = {}));
|
|
943
|
+
function getOnePromptPromptConfigToJSON(getOnePromptPromptConfig) {
|
|
944
|
+
return JSON.stringify(exports.GetOnePromptPromptConfig$outboundSchema.parse(getOnePromptPromptConfig));
|
|
945
|
+
}
|
|
946
|
+
function getOnePromptPromptConfigFromJSON(jsonString) {
|
|
947
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptPromptConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptPromptConfig' from JSON`);
|
|
948
|
+
}
|
|
949
|
+
/** @internal */
|
|
950
|
+
exports.GetOnePromptUseCases$inboundSchema = z.nativeEnum(exports.GetOnePromptUseCases);
|
|
951
|
+
/** @internal */
|
|
952
|
+
exports.GetOnePromptUseCases$outboundSchema = exports.GetOnePromptUseCases$inboundSchema;
|
|
953
|
+
/**
|
|
954
|
+
* @internal
|
|
955
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
956
|
+
*/
|
|
957
|
+
var GetOnePromptUseCases$;
|
|
958
|
+
(function (GetOnePromptUseCases$) {
|
|
959
|
+
/** @deprecated use `GetOnePromptUseCases$inboundSchema` instead. */
|
|
960
|
+
GetOnePromptUseCases$.inboundSchema = exports.GetOnePromptUseCases$inboundSchema;
|
|
961
|
+
/** @deprecated use `GetOnePromptUseCases$outboundSchema` instead. */
|
|
962
|
+
GetOnePromptUseCases$.outboundSchema = exports.GetOnePromptUseCases$outboundSchema;
|
|
963
|
+
})(GetOnePromptUseCases$ || (exports.GetOnePromptUseCases$ = GetOnePromptUseCases$ = {}));
|
|
964
|
+
/** @internal */
|
|
965
|
+
exports.GetOnePromptLanguage$inboundSchema = z.nativeEnum(exports.GetOnePromptLanguage);
|
|
966
|
+
/** @internal */
|
|
967
|
+
exports.GetOnePromptLanguage$outboundSchema = exports.GetOnePromptLanguage$inboundSchema;
|
|
968
|
+
/**
|
|
969
|
+
* @internal
|
|
970
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
971
|
+
*/
|
|
972
|
+
var GetOnePromptLanguage$;
|
|
973
|
+
(function (GetOnePromptLanguage$) {
|
|
974
|
+
/** @deprecated use `GetOnePromptLanguage$inboundSchema` instead. */
|
|
975
|
+
GetOnePromptLanguage$.inboundSchema = exports.GetOnePromptLanguage$inboundSchema;
|
|
976
|
+
/** @deprecated use `GetOnePromptLanguage$outboundSchema` instead. */
|
|
977
|
+
GetOnePromptLanguage$.outboundSchema = exports.GetOnePromptLanguage$outboundSchema;
|
|
978
|
+
})(GetOnePromptLanguage$ || (exports.GetOnePromptLanguage$ = GetOnePromptLanguage$ = {}));
|
|
979
|
+
/** @internal */
|
|
980
|
+
exports.GetOnePromptMetadata$inboundSchema = z.object({
|
|
981
|
+
use_cases: z.array(exports.GetOnePromptUseCases$inboundSchema).optional(),
|
|
982
|
+
language: exports.GetOnePromptLanguage$inboundSchema.optional(),
|
|
983
|
+
}).transform((v) => {
|
|
984
|
+
return (0, primitives_js_1.remap)(v, {
|
|
985
|
+
"use_cases": "useCases",
|
|
986
|
+
});
|
|
987
|
+
});
|
|
988
|
+
/** @internal */
|
|
989
|
+
exports.GetOnePromptMetadata$outboundSchema = z.object({
|
|
990
|
+
useCases: z.array(exports.GetOnePromptUseCases$outboundSchema).optional(),
|
|
991
|
+
language: exports.GetOnePromptLanguage$outboundSchema.optional(),
|
|
992
|
+
}).transform((v) => {
|
|
993
|
+
return (0, primitives_js_1.remap)(v, {
|
|
994
|
+
useCases: "use_cases",
|
|
995
|
+
});
|
|
996
|
+
});
|
|
997
|
+
/**
|
|
998
|
+
* @internal
|
|
999
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1000
|
+
*/
|
|
1001
|
+
var GetOnePromptMetadata$;
|
|
1002
|
+
(function (GetOnePromptMetadata$) {
|
|
1003
|
+
/** @deprecated use `GetOnePromptMetadata$inboundSchema` instead. */
|
|
1004
|
+
GetOnePromptMetadata$.inboundSchema = exports.GetOnePromptMetadata$inboundSchema;
|
|
1005
|
+
/** @deprecated use `GetOnePromptMetadata$outboundSchema` instead. */
|
|
1006
|
+
GetOnePromptMetadata$.outboundSchema = exports.GetOnePromptMetadata$outboundSchema;
|
|
1007
|
+
})(GetOnePromptMetadata$ || (exports.GetOnePromptMetadata$ = GetOnePromptMetadata$ = {}));
|
|
1008
|
+
function getOnePromptMetadataToJSON(getOnePromptMetadata) {
|
|
1009
|
+
return JSON.stringify(exports.GetOnePromptMetadata$outboundSchema.parse(getOnePromptMetadata));
|
|
1010
|
+
}
|
|
1011
|
+
function getOnePromptMetadataFromJSON(jsonString) {
|
|
1012
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMetadata$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMetadata' from JSON`);
|
|
1013
|
+
}
|
|
1014
|
+
/** @internal */
|
|
1015
|
+
exports.GetOnePromptResponseBody$inboundSchema = z.object({
|
|
1016
|
+
_id: z.string(),
|
|
1017
|
+
type: exports.GetOnePromptType$inboundSchema,
|
|
1018
|
+
owner: z.string(),
|
|
1019
|
+
domain_id: z.string(),
|
|
1020
|
+
created: z.string(),
|
|
1021
|
+
updated: z.string(),
|
|
1022
|
+
created_by_id: z.string().optional(),
|
|
1023
|
+
updated_by_id: z.string().optional(),
|
|
1024
|
+
display_name: z.string(),
|
|
1025
|
+
description: z.nullable(z.string()).optional(),
|
|
1026
|
+
prompt_config: z.lazy(() => exports.GetOnePromptPromptConfig$inboundSchema),
|
|
1027
|
+
metadata: z.lazy(() => exports.GetOnePromptMetadata$inboundSchema).optional(),
|
|
1028
|
+
}).transform((v) => {
|
|
1029
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1030
|
+
"_id": "id",
|
|
1031
|
+
"domain_id": "domainId",
|
|
1032
|
+
"created_by_id": "createdById",
|
|
1033
|
+
"updated_by_id": "updatedById",
|
|
1034
|
+
"display_name": "displayName",
|
|
1035
|
+
"prompt_config": "promptConfig",
|
|
1036
|
+
});
|
|
1037
|
+
});
|
|
1038
|
+
/** @internal */
|
|
1039
|
+
exports.GetOnePromptResponseBody$outboundSchema = z.object({
|
|
1040
|
+
id: z.string(),
|
|
1041
|
+
type: exports.GetOnePromptType$outboundSchema,
|
|
1042
|
+
owner: z.string(),
|
|
1043
|
+
domainId: z.string(),
|
|
1044
|
+
created: z.string(),
|
|
1045
|
+
updated: z.string(),
|
|
1046
|
+
createdById: z.string().optional(),
|
|
1047
|
+
updatedById: z.string().optional(),
|
|
1048
|
+
displayName: z.string(),
|
|
1049
|
+
description: z.nullable(z.string()).optional(),
|
|
1050
|
+
promptConfig: z.lazy(() => exports.GetOnePromptPromptConfig$outboundSchema),
|
|
1051
|
+
metadata: z.lazy(() => exports.GetOnePromptMetadata$outboundSchema).optional(),
|
|
1052
|
+
}).transform((v) => {
|
|
1053
|
+
return (0, primitives_js_1.remap)(v, {
|
|
1054
|
+
id: "_id",
|
|
1055
|
+
domainId: "domain_id",
|
|
1056
|
+
createdById: "created_by_id",
|
|
1057
|
+
updatedById: "updated_by_id",
|
|
1058
|
+
displayName: "display_name",
|
|
1059
|
+
promptConfig: "prompt_config",
|
|
1060
|
+
});
|
|
1061
|
+
});
|
|
1062
|
+
/**
|
|
1063
|
+
* @internal
|
|
1064
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1065
|
+
*/
|
|
1066
|
+
var GetOnePromptResponseBody$;
|
|
1067
|
+
(function (GetOnePromptResponseBody$) {
|
|
1068
|
+
/** @deprecated use `GetOnePromptResponseBody$inboundSchema` instead. */
|
|
1069
|
+
GetOnePromptResponseBody$.inboundSchema = exports.GetOnePromptResponseBody$inboundSchema;
|
|
1070
|
+
/** @deprecated use `GetOnePromptResponseBody$outboundSchema` instead. */
|
|
1071
|
+
GetOnePromptResponseBody$.outboundSchema = exports.GetOnePromptResponseBody$outboundSchema;
|
|
1072
|
+
})(GetOnePromptResponseBody$ || (exports.GetOnePromptResponseBody$ = GetOnePromptResponseBody$ = {}));
|
|
1073
|
+
function getOnePromptResponseBodyToJSON(getOnePromptResponseBody) {
|
|
1074
|
+
return JSON.stringify(exports.GetOnePromptResponseBody$outboundSchema.parse(getOnePromptResponseBody));
|
|
1075
|
+
}
|
|
1076
|
+
function getOnePromptResponseBodyFromJSON(jsonString) {
|
|
1077
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseBody$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseBody' from JSON`);
|
|
1078
|
+
}
|
|
69
1079
|
//# sourceMappingURL=getoneprompt.js.map
|