@orq-ai/node 4.2.0-rc.44 → 4.2.0-rc.45

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.
Files changed (151) hide show
  1. package/README.md +2 -1
  2. package/bin/mcp-server.js +4769 -1624
  3. package/bin/mcp-server.js.map +57 -56
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/promptsDelete.d.ts +2 -1
  6. package/funcs/promptsDelete.d.ts.map +1 -1
  7. package/funcs/promptsDelete.js +7 -3
  8. package/funcs/promptsDelete.js.map +1 -1
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +2 -2
  11. package/lib/config.js +2 -2
  12. package/mcp-server/mcp-server.js +1 -1
  13. package/mcp-server/server.js +1 -1
  14. package/models/components/conversationresponse.js +2 -2
  15. package/models/components/conversationwithmessagesresponse.js +2 -2
  16. package/models/components/partdoneevent.js +2 -2
  17. package/models/components/reasoningpart.js +2 -2
  18. package/models/errors/deleteprompt.d.ts +29 -0
  19. package/models/errors/deleteprompt.d.ts.map +1 -0
  20. package/models/errors/deleteprompt.js +74 -0
  21. package/models/errors/deleteprompt.js.map +1 -0
  22. package/models/errors/index.d.ts +1 -0
  23. package/models/errors/index.d.ts.map +1 -1
  24. package/models/errors/index.js +1 -0
  25. package/models/errors/index.js.map +1 -1
  26. package/models/operations/createcontact.js +2 -2
  27. package/models/operations/createconversation.js +2 -2
  28. package/models/operations/createconversationresponse.js +4 -4
  29. package/models/operations/createdataset.js +2 -2
  30. package/models/operations/createdatasetitem.js +8 -8
  31. package/models/operations/createdatasource.js +2 -2
  32. package/models/operations/createeval.d.ts +16 -16
  33. package/models/operations/createeval.d.ts.map +1 -1
  34. package/models/operations/createeval.js +56 -53
  35. package/models/operations/createeval.js.map +1 -1
  36. package/models/operations/createidentity.js +2 -2
  37. package/models/operations/createprompt.d.ts +1746 -976
  38. package/models/operations/createprompt.d.ts.map +1 -1
  39. package/models/operations/createprompt.js +2032 -1282
  40. package/models/operations/createprompt.js.map +1 -1
  41. package/models/operations/createtool.js +12 -12
  42. package/models/operations/deploymentgetconfig.d.ts +88 -88
  43. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  44. package/models/operations/deploymentgetconfig.js +131 -130
  45. package/models/operations/deploymentgetconfig.js.map +1 -1
  46. package/models/operations/deploymentinvoke.d.ts +5 -5
  47. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  48. package/models/operations/deploymentinvoke.js +7 -6
  49. package/models/operations/deploymentinvoke.js.map +1 -1
  50. package/models/operations/fileget.js +2 -2
  51. package/models/operations/filelist.js +2 -2
  52. package/models/operations/fileupload.js +2 -2
  53. package/models/operations/generateconversationname.js +2 -2
  54. package/models/operations/getallprompts.d.ts +1051 -42
  55. package/models/operations/getallprompts.d.ts.map +1 -1
  56. package/models/operations/getallprompts.js +1069 -48
  57. package/models/operations/getallprompts.js.map +1 -1
  58. package/models/operations/getalltools.js +12 -12
  59. package/models/operations/getevals.js +28 -28
  60. package/models/operations/getoneprompt.d.ts +1051 -42
  61. package/models/operations/getoneprompt.d.ts.map +1 -1
  62. package/models/operations/getoneprompt.js +1071 -47
  63. package/models/operations/getoneprompt.js.map +1 -1
  64. package/models/operations/getpromptversion.d.ts +1051 -42
  65. package/models/operations/getpromptversion.d.ts.map +1 -1
  66. package/models/operations/getpromptversion.js +1070 -48
  67. package/models/operations/getpromptversion.js.map +1 -1
  68. package/models/operations/listcontacts.js +2 -2
  69. package/models/operations/listdatasetdatapoints.js +8 -8
  70. package/models/operations/listdatasets.js +2 -2
  71. package/models/operations/listdatasources.js +2 -2
  72. package/models/operations/listidentities.js +2 -2
  73. package/models/operations/listpromptversions.d.ts +1051 -42
  74. package/models/operations/listpromptversions.d.ts.map +1 -1
  75. package/models/operations/listpromptversions.js +1070 -47
  76. package/models/operations/listpromptversions.js.map +1 -1
  77. package/models/operations/retrievecontact.js +2 -2
  78. package/models/operations/retrievedatapoint.js +8 -8
  79. package/models/operations/retrievedataset.js +2 -2
  80. package/models/operations/retrievedatasource.js +2 -2
  81. package/models/operations/retrieveidentity.js +2 -2
  82. package/models/operations/retrievetool.js +12 -12
  83. package/models/operations/runagent.js +2 -2
  84. package/models/operations/streamrunagent.js +2 -2
  85. package/models/operations/updatecontact.js +2 -2
  86. package/models/operations/updateconversation.js +2 -2
  87. package/models/operations/updatedatapoint.js +8 -8
  88. package/models/operations/updatedataset.js +2 -2
  89. package/models/operations/updatedatasource.js +2 -2
  90. package/models/operations/updateeval.js +28 -28
  91. package/models/operations/updateidentity.js +2 -2
  92. package/models/operations/updateprompt.d.ts +2112 -1413
  93. package/models/operations/updateprompt.d.ts.map +1 -1
  94. package/models/operations/updateprompt.js +2200 -1525
  95. package/models/operations/updateprompt.js.map +1 -1
  96. package/models/operations/updatetool.js +14 -14
  97. package/package.json +1 -1
  98. package/src/funcs/promptsDelete.ts +12 -3
  99. package/src/lib/config.ts +2 -2
  100. package/src/mcp-server/mcp-server.ts +1 -1
  101. package/src/mcp-server/server.ts +1 -1
  102. package/src/models/components/conversationresponse.ts +2 -2
  103. package/src/models/components/conversationwithmessagesresponse.ts +2 -2
  104. package/src/models/components/partdoneevent.ts +2 -2
  105. package/src/models/components/reasoningpart.ts +2 -2
  106. package/src/models/errors/deleteprompt.ts +67 -0
  107. package/src/models/errors/index.ts +1 -0
  108. package/src/models/operations/createcontact.ts +2 -2
  109. package/src/models/operations/createconversation.ts +2 -2
  110. package/src/models/operations/createconversationresponse.ts +4 -4
  111. package/src/models/operations/createdataset.ts +2 -2
  112. package/src/models/operations/createdatasetitem.ts +8 -8
  113. package/src/models/operations/createdatasource.ts +2 -2
  114. package/src/models/operations/createeval.ts +76 -96
  115. package/src/models/operations/createidentity.ts +2 -2
  116. package/src/models/operations/createprompt.ts +5179 -3019
  117. package/src/models/operations/createtool.ts +12 -12
  118. package/src/models/operations/deploymentgetconfig.ts +252 -337
  119. package/src/models/operations/deploymentinvoke.ts +9 -13
  120. package/src/models/operations/fileget.ts +2 -2
  121. package/src/models/operations/filelist.ts +2 -2
  122. package/src/models/operations/fileupload.ts +2 -2
  123. package/src/models/operations/generateconversationname.ts +2 -2
  124. package/src/models/operations/getallprompts.ts +3543 -850
  125. package/src/models/operations/getalltools.ts +12 -12
  126. package/src/models/operations/getevals.ts +28 -28
  127. package/src/models/operations/getoneprompt.ts +3463 -786
  128. package/src/models/operations/getpromptversion.ts +3579 -835
  129. package/src/models/operations/listcontacts.ts +2 -2
  130. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  131. package/src/models/operations/listdatasets.ts +2 -2
  132. package/src/models/operations/listdatasources.ts +2 -2
  133. package/src/models/operations/listidentities.ts +2 -2
  134. package/src/models/operations/listpromptversions.ts +3644 -864
  135. package/src/models/operations/retrievecontact.ts +2 -2
  136. package/src/models/operations/retrievedatapoint.ts +8 -8
  137. package/src/models/operations/retrievedataset.ts +2 -2
  138. package/src/models/operations/retrievedatasource.ts +2 -2
  139. package/src/models/operations/retrieveidentity.ts +2 -2
  140. package/src/models/operations/retrievetool.ts +12 -12
  141. package/src/models/operations/runagent.ts +2 -2
  142. package/src/models/operations/streamrunagent.ts +2 -2
  143. package/src/models/operations/updatecontact.ts +2 -2
  144. package/src/models/operations/updateconversation.ts +2 -2
  145. package/src/models/operations/updatedatapoint.ts +8 -8
  146. package/src/models/operations/updatedataset.ts +2 -2
  147. package/src/models/operations/updatedatasource.ts +2 -2
  148. package/src/models/operations/updateeval.ts +28 -28
  149. package/src/models/operations/updateidentity.ts +2 -2
  150. package/src/models/operations/updateprompt.ts +5281 -3301
  151. package/src/models/operations/updatetool.ts +14 -14
@@ -36,20 +36,23 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.GetOnePromptPhotoRealVersion$inboundSchema = exports.GetOnePromptResponseFormat$outboundSchema = exports.GetOnePromptResponseFormat$inboundSchema = exports.GetOnePromptResponseFormat1$outboundSchema = exports.GetOnePromptResponseFormat1$inboundSchema = exports.GetOnePromptResponseFormatJsonSchema$outboundSchema = exports.GetOnePromptResponseFormatJsonSchema$inboundSchema = exports.GetOnePromptResponseFormatType$outboundSchema = exports.GetOnePromptResponseFormatType$inboundSchema = exports.GetOnePromptResponseFormat2$outboundSchema = exports.GetOnePromptResponseFormat2$inboundSchema = exports.GetOnePromptResponseFormatPromptsType$outboundSchema = exports.GetOnePromptResponseFormatPromptsType$inboundSchema = exports.GetOnePromptResponseFormat3$outboundSchema = exports.GetOnePromptResponseFormat3$inboundSchema = exports.GetOnePromptResponseFormatPromptsResponseType$outboundSchema = exports.GetOnePromptResponseFormatPromptsResponseType$inboundSchema = exports.GetOnePromptResponseFormat4$outboundSchema = exports.GetOnePromptResponseFormat4$inboundSchema = exports.GetOnePromptResponseFormat5$outboundSchema = exports.GetOnePromptResponseFormat5$inboundSchema = exports.GetOnePromptResponseFormat6$outboundSchema = exports.GetOnePromptResponseFormat6$inboundSchema = exports.GetOnePromptFormat$outboundSchema = exports.GetOnePromptFormat$inboundSchema = exports.GetOnePromptModelType$outboundSchema = exports.GetOnePromptModelType$inboundSchema = exports.GetOnePromptType$outboundSchema = exports.GetOnePromptType$inboundSchema = exports.GetOnePromptRequest$outboundSchema = exports.GetOnePromptRequest$inboundSchema = exports.GetOnePromptLanguage = exports.GetOnePromptUseCases = exports.GetOnePromptPromptsType = exports.GetOnePromptRole = exports.GetOnePromptProvider = exports.GetOnePromptThinkingLevel = exports.GetOnePromptVerbosity = exports.GetOnePromptReasoningEffort = exports.GetOnePromptEncodingFormat = exports.GetOnePromptPhotoRealVersion = exports.GetOnePromptResponseFormatType = exports.GetOnePromptResponseFormatPromptsType = exports.GetOnePromptResponseFormatPromptsResponseType = exports.GetOnePromptResponseFormat4 = exports.GetOnePromptResponseFormat5 = exports.GetOnePromptResponseFormat6 = exports.GetOnePromptFormat = exports.GetOnePromptModelType = exports.GetOnePromptType = void 0;
40
- exports.GetOnePromptPrompt$outboundSchema = exports.GetOnePromptPrompt$inboundSchema = exports.GetOnePromptMetadata$outboundSchema = exports.GetOnePromptMetadata$inboundSchema = exports.GetOnePromptLanguage$outboundSchema = exports.GetOnePromptLanguage$inboundSchema = exports.GetOnePromptUseCases$outboundSchema = exports.GetOnePromptUseCases$inboundSchema = exports.GetOnePromptPromptConfig$outboundSchema = exports.GetOnePromptPromptConfig$inboundSchema = exports.GetOnePromptMessages$outboundSchema = exports.GetOnePromptMessages$inboundSchema = exports.GetOnePromptToolCalls$outboundSchema = exports.GetOnePromptToolCalls$inboundSchema = exports.GetOnePromptFunction$outboundSchema = exports.GetOnePromptFunction$inboundSchema = exports.GetOnePromptPromptsType$outboundSchema = exports.GetOnePromptPromptsType$inboundSchema = exports.GetOnePromptContent$outboundSchema = exports.GetOnePromptContent$inboundSchema = exports.GetOnePromptContent2$outboundSchema = exports.GetOnePromptContent2$inboundSchema = exports.GetOnePrompt21$outboundSchema = exports.GetOnePrompt21$inboundSchema = exports.GetOnePrompt22$outboundSchema = exports.GetOnePrompt22$inboundSchema = exports.GetOnePrompt2ImageUrl$outboundSchema = exports.GetOnePrompt2ImageUrl$inboundSchema = exports.GetOnePrompt23$outboundSchema = exports.GetOnePrompt23$inboundSchema = exports.GetOnePrompt2File$outboundSchema = exports.GetOnePrompt2File$inboundSchema = exports.GetOnePromptRole$outboundSchema = exports.GetOnePromptRole$inboundSchema = exports.GetOnePromptProvider$outboundSchema = exports.GetOnePromptProvider$inboundSchema = exports.GetOnePromptModelParameters$outboundSchema = exports.GetOnePromptModelParameters$inboundSchema = exports.GetOnePromptThinkingLevel$outboundSchema = exports.GetOnePromptThinkingLevel$inboundSchema = exports.GetOnePromptVerbosity$outboundSchema = exports.GetOnePromptVerbosity$inboundSchema = exports.GetOnePromptReasoningEffort$outboundSchema = exports.GetOnePromptReasoningEffort$inboundSchema = exports.GetOnePromptEncodingFormat$outboundSchema = exports.GetOnePromptEncodingFormat$inboundSchema = exports.GetOnePromptPhotoRealVersion$outboundSchema = void 0;
39
+ exports.GetOnePromptResponseFormat3$outboundSchema = exports.GetOnePromptResponseFormat3$inboundSchema = exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.GetOnePromptResponseFormat4$outboundSchema = exports.GetOnePromptResponseFormat4$inboundSchema = exports.GetOnePromptResponseFormat5$outboundSchema = exports.GetOnePromptResponseFormat5$inboundSchema = exports.GetOnePromptResponseFormat6$outboundSchema = exports.GetOnePromptResponseFormat6$inboundSchema = exports.GetOnePromptFormat$outboundSchema = exports.GetOnePromptFormat$inboundSchema = exports.GetOnePromptModelType$outboundSchema = exports.GetOnePromptModelType$inboundSchema = exports.GetOnePromptType$outboundSchema = exports.GetOnePromptType$inboundSchema = exports.GetOnePromptRequest$outboundSchema = exports.GetOnePromptRequest$inboundSchema = exports.GetOnePromptLanguage = exports.GetOnePromptUseCases = exports.GetOnePrompt2Ttl = exports.GetOnePrompt2PromptsResponse200ApplicationJSONType = exports.GetOnePromptMessagesType = exports.GetOnePromptMessagesTtl = exports.GetOnePromptMessagesPromptsType = exports.GetOnePromptExecuteOn = exports.GetOnePromptId1 = exports.GetOnePromptModalities = exports.GetOnePromptToolChoice1 = exports.GetOnePromptToolChoiceType = exports.GetOnePromptReasoningEffort = exports.GetOnePromptPromptsFormat = exports.GetOnePromptVoice = exports.GetOnePromptPromptsType = exports.GetOnePromptRole = exports.GetOnePromptProvider = exports.GetOnePromptThinkingLevel = exports.GetOnePromptVerbosity = exports.GetOnePromptPromptsReasoningEffort = exports.GetOnePromptEncodingFormat = exports.GetOnePromptPhotoRealVersion = exports.GetOnePromptResponseFormatPromptsResponse200Type = exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType = exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = exports.GetOnePromptResponseFormat4 = exports.GetOnePromptResponseFormat5 = exports.GetOnePromptResponseFormat6 = exports.GetOnePromptFormat = exports.GetOnePromptModelType = exports.GetOnePromptType = void 0;
40
+ exports.GetOnePromptMessages$outboundSchema = exports.GetOnePromptMessages$inboundSchema = exports.GetOnePromptToolCalls$outboundSchema = exports.GetOnePromptToolCalls$inboundSchema = exports.GetOnePromptFunction$outboundSchema = exports.GetOnePromptFunction$inboundSchema = exports.GetOnePromptPromptsType$outboundSchema = exports.GetOnePromptPromptsType$inboundSchema = exports.GetOnePromptContent$outboundSchema = exports.GetOnePromptContent$inboundSchema = exports.GetOnePromptContent2$outboundSchema = exports.GetOnePromptContent2$inboundSchema = exports.GetOnePrompt21$outboundSchema = exports.GetOnePrompt21$inboundSchema = exports.GetOnePrompt22$outboundSchema = exports.GetOnePrompt22$inboundSchema = exports.GetOnePrompt2ImageUrl$outboundSchema = exports.GetOnePrompt2ImageUrl$inboundSchema = exports.GetOnePrompt23$outboundSchema = exports.GetOnePrompt23$inboundSchema = exports.GetOnePrompt2File$outboundSchema = exports.GetOnePrompt2File$inboundSchema = exports.GetOnePromptRole$outboundSchema = exports.GetOnePromptRole$inboundSchema = exports.GetOnePromptProvider$outboundSchema = exports.GetOnePromptProvider$inboundSchema = exports.GetOnePromptModelParameters$outboundSchema = exports.GetOnePromptModelParameters$inboundSchema = exports.GetOnePromptThinkingLevel$outboundSchema = exports.GetOnePromptThinkingLevel$inboundSchema = exports.GetOnePromptVerbosity$outboundSchema = exports.GetOnePromptVerbosity$inboundSchema = exports.GetOnePromptPromptsReasoningEffort$outboundSchema = exports.GetOnePromptPromptsReasoningEffort$inboundSchema = exports.GetOnePromptEncodingFormat$outboundSchema = exports.GetOnePromptEncodingFormat$inboundSchema = exports.GetOnePromptPhotoRealVersion$outboundSchema = exports.GetOnePromptPhotoRealVersion$inboundSchema = exports.GetOnePromptPromptsResponseFormat$outboundSchema = exports.GetOnePromptPromptsResponseFormat$inboundSchema = exports.GetOnePromptResponseFormat1$outboundSchema = exports.GetOnePromptResponseFormat1$inboundSchema = exports.GetOnePromptResponseFormatPromptsResponseJsonSchema$outboundSchema = exports.GetOnePromptResponseFormatPromptsResponseJsonSchema$inboundSchema = exports.GetOnePromptResponseFormatPromptsResponse200Type$outboundSchema = exports.GetOnePromptResponseFormatPromptsResponse200Type$inboundSchema = exports.GetOnePromptResponseFormat2$outboundSchema = exports.GetOnePromptResponseFormat2$inboundSchema = exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema = exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = void 0;
41
+ exports.GetOnePromptMessagesPromptsResponse200Content$outboundSchema = exports.GetOnePromptMessagesPromptsResponse200Content$inboundSchema = exports.GetOnePromptContentPromptsResponse2002$outboundSchema = exports.GetOnePromptContentPromptsResponse2002$inboundSchema = exports.GetOnePromptGuardrails$outboundSchema = exports.GetOnePromptGuardrails$inboundSchema = exports.GetOnePromptExecuteOn$outboundSchema = exports.GetOnePromptExecuteOn$inboundSchema = exports.GetOnePromptId$outboundSchema = exports.GetOnePromptId$inboundSchema = exports.GetOnePromptId1$outboundSchema = exports.GetOnePromptId1$inboundSchema = exports.GetOnePromptModalities$outboundSchema = exports.GetOnePromptModalities$inboundSchema = exports.GetOnePromptToolChoice$outboundSchema = exports.GetOnePromptToolChoice$inboundSchema = exports.GetOnePromptToolChoice1$outboundSchema = exports.GetOnePromptToolChoice1$inboundSchema = exports.GetOnePromptToolChoice2$outboundSchema = exports.GetOnePromptToolChoice2$inboundSchema = exports.GetOnePromptToolChoiceFunction$outboundSchema = exports.GetOnePromptToolChoiceFunction$inboundSchema = exports.GetOnePromptToolChoiceType$outboundSchema = exports.GetOnePromptToolChoiceType$inboundSchema = exports.GetOnePromptThinking$outboundSchema = exports.GetOnePromptThinking$inboundSchema = exports.GetOnePromptStreamOptions$outboundSchema = exports.GetOnePromptStreamOptions$inboundSchema = exports.GetOnePromptStop$outboundSchema = exports.GetOnePromptStop$inboundSchema = exports.GetOnePromptReasoningEffort$outboundSchema = exports.GetOnePromptReasoningEffort$inboundSchema = exports.GetOnePromptResponseFormat$outboundSchema = exports.GetOnePromptResponseFormat$inboundSchema = exports.GetOnePromptResponseFormatText$outboundSchema = exports.GetOnePromptResponseFormatText$inboundSchema = exports.GetOnePromptResponseFormatJSONObject$outboundSchema = exports.GetOnePromptResponseFormatJSONObject$inboundSchema = exports.GetOnePromptResponseFormatPromptsJSONSchema$outboundSchema = exports.GetOnePromptResponseFormatPromptsJSONSchema$inboundSchema = exports.GetOnePromptResponseFormatJsonSchema$outboundSchema = exports.GetOnePromptResponseFormatJsonSchema$inboundSchema = exports.GetOnePromptAudio$outboundSchema = exports.GetOnePromptAudio$inboundSchema = exports.GetOnePromptPromptsFormat$outboundSchema = exports.GetOnePromptPromptsFormat$inboundSchema = exports.GetOnePromptVoice$outboundSchema = exports.GetOnePromptVoice$inboundSchema = exports.GetOnePromptPromptConfig$outboundSchema = exports.GetOnePromptPromptConfig$inboundSchema = void 0;
42
+ exports.GetOnePromptMetadata$outboundSchema = exports.GetOnePromptMetadata$inboundSchema = exports.GetOnePromptLanguage$outboundSchema = exports.GetOnePromptLanguage$inboundSchema = exports.GetOnePromptUseCases$outboundSchema = exports.GetOnePromptUseCases$inboundSchema = exports.GetOnePromptPromptField$outboundSchema = exports.GetOnePromptPromptField$inboundSchema = exports.GetOnePromptPromptsMessages$outboundSchema = exports.GetOnePromptPromptsMessages$inboundSchema = exports.GetOnePromptMessagesSystemMessage$outboundSchema = exports.GetOnePromptMessagesSystemMessage$inboundSchema = exports.GetOnePromptMessagesContent$outboundSchema = exports.GetOnePromptMessagesContent$inboundSchema = exports.GetOnePromptMessagesUserMessage$outboundSchema = exports.GetOnePromptMessagesUserMessage$inboundSchema = exports.GetOnePromptMessagesPromptsContent$outboundSchema = exports.GetOnePromptMessagesPromptsContent$inboundSchema = exports.GetOnePromptContentPrompts2$outboundSchema = exports.GetOnePromptContentPrompts2$inboundSchema = exports.GetOnePrompt24$outboundSchema = exports.GetOnePrompt24$inboundSchema = exports.GetOnePrompt2CacheControl$outboundSchema = exports.GetOnePrompt2CacheControl$inboundSchema = exports.GetOnePrompt2Ttl$outboundSchema = exports.GetOnePrompt2Ttl$inboundSchema = exports.GetOnePrompt2PromptsResponse200ApplicationJSONType$outboundSchema = exports.GetOnePrompt2PromptsResponse200ApplicationJSONType$inboundSchema = exports.GetOnePromptMessagesAssistantMessage$outboundSchema = exports.GetOnePromptMessagesAssistantMessage$inboundSchema = exports.GetOnePromptMessagesToolCalls$outboundSchema = exports.GetOnePromptMessagesToolCalls$inboundSchema = exports.GetOnePromptMessagesFunction$outboundSchema = exports.GetOnePromptMessagesFunction$inboundSchema = exports.GetOnePromptMessagesType$outboundSchema = exports.GetOnePromptMessagesType$inboundSchema = exports.GetOnePromptMessagesAudio$outboundSchema = exports.GetOnePromptMessagesAudio$inboundSchema = exports.GetOnePromptMessagesPromptsResponseContent$outboundSchema = exports.GetOnePromptMessagesPromptsResponseContent$inboundSchema = exports.GetOnePromptContentPromptsResponse2$outboundSchema = exports.GetOnePromptContentPromptsResponse2$inboundSchema = exports.GetOnePromptMessagesToolMessage$outboundSchema = exports.GetOnePromptMessagesToolMessage$inboundSchema = exports.GetOnePromptMessagesCacheControl$outboundSchema = exports.GetOnePromptMessagesCacheControl$inboundSchema = exports.GetOnePromptMessagesTtl$outboundSchema = exports.GetOnePromptMessagesTtl$inboundSchema = exports.GetOnePromptMessagesPromptsType$outboundSchema = exports.GetOnePromptMessagesPromptsType$inboundSchema = void 0;
43
+ exports.GetOnePromptPrompt$outboundSchema = exports.GetOnePromptPrompt$inboundSchema = void 0;
41
44
  exports.getOnePromptRequestToJSON = getOnePromptRequestToJSON;
42
45
  exports.getOnePromptRequestFromJSON = getOnePromptRequestFromJSON;
43
46
  exports.getOnePromptResponseFormat3ToJSON = getOnePromptResponseFormat3ToJSON;
44
47
  exports.getOnePromptResponseFormat3FromJSON = getOnePromptResponseFormat3FromJSON;
45
48
  exports.getOnePromptResponseFormat2ToJSON = getOnePromptResponseFormat2ToJSON;
46
49
  exports.getOnePromptResponseFormat2FromJSON = getOnePromptResponseFormat2FromJSON;
47
- exports.getOnePromptResponseFormatJsonSchemaToJSON = getOnePromptResponseFormatJsonSchemaToJSON;
48
- exports.getOnePromptResponseFormatJsonSchemaFromJSON = getOnePromptResponseFormatJsonSchemaFromJSON;
50
+ exports.getOnePromptResponseFormatPromptsResponseJsonSchemaToJSON = getOnePromptResponseFormatPromptsResponseJsonSchemaToJSON;
51
+ exports.getOnePromptResponseFormatPromptsResponseJsonSchemaFromJSON = getOnePromptResponseFormatPromptsResponseJsonSchemaFromJSON;
49
52
  exports.getOnePromptResponseFormat1ToJSON = getOnePromptResponseFormat1ToJSON;
50
53
  exports.getOnePromptResponseFormat1FromJSON = getOnePromptResponseFormat1FromJSON;
51
- exports.getOnePromptResponseFormatToJSON = getOnePromptResponseFormatToJSON;
52
- exports.getOnePromptResponseFormatFromJSON = getOnePromptResponseFormatFromJSON;
54
+ exports.getOnePromptPromptsResponseFormatToJSON = getOnePromptPromptsResponseFormatToJSON;
55
+ exports.getOnePromptPromptsResponseFormatFromJSON = getOnePromptPromptsResponseFormatFromJSON;
53
56
  exports.getOnePromptModelParametersToJSON = getOnePromptModelParametersToJSON;
54
57
  exports.getOnePromptModelParametersFromJSON = getOnePromptModelParametersFromJSON;
55
58
  exports.getOnePrompt2FileToJSON = getOnePrompt2FileToJSON;
@@ -74,6 +77,72 @@ exports.getOnePromptMessagesToJSON = getOnePromptMessagesToJSON;
74
77
  exports.getOnePromptMessagesFromJSON = getOnePromptMessagesFromJSON;
75
78
  exports.getOnePromptPromptConfigToJSON = getOnePromptPromptConfigToJSON;
76
79
  exports.getOnePromptPromptConfigFromJSON = getOnePromptPromptConfigFromJSON;
80
+ exports.getOnePromptAudioToJSON = getOnePromptAudioToJSON;
81
+ exports.getOnePromptAudioFromJSON = getOnePromptAudioFromJSON;
82
+ exports.getOnePromptResponseFormatJsonSchemaToJSON = getOnePromptResponseFormatJsonSchemaToJSON;
83
+ exports.getOnePromptResponseFormatJsonSchemaFromJSON = getOnePromptResponseFormatJsonSchemaFromJSON;
84
+ exports.getOnePromptResponseFormatPromptsJSONSchemaToJSON = getOnePromptResponseFormatPromptsJSONSchemaToJSON;
85
+ exports.getOnePromptResponseFormatPromptsJSONSchemaFromJSON = getOnePromptResponseFormatPromptsJSONSchemaFromJSON;
86
+ exports.getOnePromptResponseFormatJSONObjectToJSON = getOnePromptResponseFormatJSONObjectToJSON;
87
+ exports.getOnePromptResponseFormatJSONObjectFromJSON = getOnePromptResponseFormatJSONObjectFromJSON;
88
+ exports.getOnePromptResponseFormatTextToJSON = getOnePromptResponseFormatTextToJSON;
89
+ exports.getOnePromptResponseFormatTextFromJSON = getOnePromptResponseFormatTextFromJSON;
90
+ exports.getOnePromptResponseFormatToJSON = getOnePromptResponseFormatToJSON;
91
+ exports.getOnePromptResponseFormatFromJSON = getOnePromptResponseFormatFromJSON;
92
+ exports.getOnePromptStopToJSON = getOnePromptStopToJSON;
93
+ exports.getOnePromptStopFromJSON = getOnePromptStopFromJSON;
94
+ exports.getOnePromptStreamOptionsToJSON = getOnePromptStreamOptionsToJSON;
95
+ exports.getOnePromptStreamOptionsFromJSON = getOnePromptStreamOptionsFromJSON;
96
+ exports.getOnePromptThinkingToJSON = getOnePromptThinkingToJSON;
97
+ exports.getOnePromptThinkingFromJSON = getOnePromptThinkingFromJSON;
98
+ exports.getOnePromptToolChoiceFunctionToJSON = getOnePromptToolChoiceFunctionToJSON;
99
+ exports.getOnePromptToolChoiceFunctionFromJSON = getOnePromptToolChoiceFunctionFromJSON;
100
+ exports.getOnePromptToolChoice2ToJSON = getOnePromptToolChoice2ToJSON;
101
+ exports.getOnePromptToolChoice2FromJSON = getOnePromptToolChoice2FromJSON;
102
+ exports.getOnePromptToolChoiceToJSON = getOnePromptToolChoiceToJSON;
103
+ exports.getOnePromptToolChoiceFromJSON = getOnePromptToolChoiceFromJSON;
104
+ exports.getOnePromptIdToJSON = getOnePromptIdToJSON;
105
+ exports.getOnePromptIdFromJSON = getOnePromptIdFromJSON;
106
+ exports.getOnePromptGuardrailsToJSON = getOnePromptGuardrailsToJSON;
107
+ exports.getOnePromptGuardrailsFromJSON = getOnePromptGuardrailsFromJSON;
108
+ exports.getOnePromptContentPromptsResponse2002ToJSON = getOnePromptContentPromptsResponse2002ToJSON;
109
+ exports.getOnePromptContentPromptsResponse2002FromJSON = getOnePromptContentPromptsResponse2002FromJSON;
110
+ exports.getOnePromptMessagesPromptsResponse200ContentToJSON = getOnePromptMessagesPromptsResponse200ContentToJSON;
111
+ exports.getOnePromptMessagesPromptsResponse200ContentFromJSON = getOnePromptMessagesPromptsResponse200ContentFromJSON;
112
+ exports.getOnePromptMessagesCacheControlToJSON = getOnePromptMessagesCacheControlToJSON;
113
+ exports.getOnePromptMessagesCacheControlFromJSON = getOnePromptMessagesCacheControlFromJSON;
114
+ exports.getOnePromptMessagesToolMessageToJSON = getOnePromptMessagesToolMessageToJSON;
115
+ exports.getOnePromptMessagesToolMessageFromJSON = getOnePromptMessagesToolMessageFromJSON;
116
+ exports.getOnePromptContentPromptsResponse2ToJSON = getOnePromptContentPromptsResponse2ToJSON;
117
+ exports.getOnePromptContentPromptsResponse2FromJSON = getOnePromptContentPromptsResponse2FromJSON;
118
+ exports.getOnePromptMessagesPromptsResponseContentToJSON = getOnePromptMessagesPromptsResponseContentToJSON;
119
+ exports.getOnePromptMessagesPromptsResponseContentFromJSON = getOnePromptMessagesPromptsResponseContentFromJSON;
120
+ exports.getOnePromptMessagesAudioToJSON = getOnePromptMessagesAudioToJSON;
121
+ exports.getOnePromptMessagesAudioFromJSON = getOnePromptMessagesAudioFromJSON;
122
+ exports.getOnePromptMessagesFunctionToJSON = getOnePromptMessagesFunctionToJSON;
123
+ exports.getOnePromptMessagesFunctionFromJSON = getOnePromptMessagesFunctionFromJSON;
124
+ exports.getOnePromptMessagesToolCallsToJSON = getOnePromptMessagesToolCallsToJSON;
125
+ exports.getOnePromptMessagesToolCallsFromJSON = getOnePromptMessagesToolCallsFromJSON;
126
+ exports.getOnePromptMessagesAssistantMessageToJSON = getOnePromptMessagesAssistantMessageToJSON;
127
+ exports.getOnePromptMessagesAssistantMessageFromJSON = getOnePromptMessagesAssistantMessageFromJSON;
128
+ exports.getOnePrompt2CacheControlToJSON = getOnePrompt2CacheControlToJSON;
129
+ exports.getOnePrompt2CacheControlFromJSON = getOnePrompt2CacheControlFromJSON;
130
+ exports.getOnePrompt24ToJSON = getOnePrompt24ToJSON;
131
+ exports.getOnePrompt24FromJSON = getOnePrompt24FromJSON;
132
+ exports.getOnePromptContentPrompts2ToJSON = getOnePromptContentPrompts2ToJSON;
133
+ exports.getOnePromptContentPrompts2FromJSON = getOnePromptContentPrompts2FromJSON;
134
+ exports.getOnePromptMessagesPromptsContentToJSON = getOnePromptMessagesPromptsContentToJSON;
135
+ exports.getOnePromptMessagesPromptsContentFromJSON = getOnePromptMessagesPromptsContentFromJSON;
136
+ exports.getOnePromptMessagesUserMessageToJSON = getOnePromptMessagesUserMessageToJSON;
137
+ exports.getOnePromptMessagesUserMessageFromJSON = getOnePromptMessagesUserMessageFromJSON;
138
+ exports.getOnePromptMessagesContentToJSON = getOnePromptMessagesContentToJSON;
139
+ exports.getOnePromptMessagesContentFromJSON = getOnePromptMessagesContentFromJSON;
140
+ exports.getOnePromptMessagesSystemMessageToJSON = getOnePromptMessagesSystemMessageToJSON;
141
+ exports.getOnePromptMessagesSystemMessageFromJSON = getOnePromptMessagesSystemMessageFromJSON;
142
+ exports.getOnePromptPromptsMessagesToJSON = getOnePromptPromptsMessagesToJSON;
143
+ exports.getOnePromptPromptsMessagesFromJSON = getOnePromptPromptsMessagesFromJSON;
144
+ exports.getOnePromptPromptFieldToJSON = getOnePromptPromptFieldToJSON;
145
+ exports.getOnePromptPromptFieldFromJSON = getOnePromptPromptFieldFromJSON;
77
146
  exports.getOnePromptMetadataToJSON = getOnePromptMetadataToJSON;
78
147
  exports.getOnePromptMetadataFromJSON = getOnePromptMetadataFromJSON;
79
148
  exports.getOnePromptPromptToJSON = getOnePromptPromptToJSON;
@@ -81,6 +150,7 @@ exports.getOnePromptPromptFromJSON = getOnePromptPromptFromJSON;
81
150
  const z = __importStar(require("zod/v3"));
82
151
  const primitives_js_1 = require("../../lib/primitives.js");
83
152
  const schemas_js_1 = require("../../lib/schemas.js");
153
+ const components = __importStar(require("../components/index.js"));
84
154
  exports.GetOnePromptType = {
85
155
  Prompt: "prompt",
86
156
  };
@@ -126,13 +196,13 @@ exports.GetOnePromptResponseFormat4 = {
126
196
  Wav: "wav",
127
197
  Pcm: "pcm",
128
198
  };
129
- exports.GetOnePromptResponseFormatPromptsResponseType = {
199
+ exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = {
130
200
  Text: "text",
131
201
  };
132
- exports.GetOnePromptResponseFormatPromptsType = {
202
+ exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType = {
133
203
  JsonObject: "json_object",
134
204
  };
135
- exports.GetOnePromptResponseFormatType = {
205
+ exports.GetOnePromptResponseFormatPromptsResponse200Type = {
136
206
  JsonSchema: "json_schema",
137
207
  };
138
208
  /**
@@ -152,7 +222,7 @@ exports.GetOnePromptEncodingFormat = {
152
222
  /**
153
223
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
154
224
  */
155
- exports.GetOnePromptReasoningEffort = {
225
+ exports.GetOnePromptPromptsReasoningEffort = {
156
226
  None: "none",
157
227
  Disable: "disable",
158
228
  Minimal: "minimal",
@@ -219,6 +289,123 @@ exports.GetOnePromptRole = {
219
289
  exports.GetOnePromptPromptsType = {
220
290
  Function: "function",
221
291
  };
292
+ /**
293
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
294
+ */
295
+ exports.GetOnePromptVoice = {
296
+ Alloy: "alloy",
297
+ Echo: "echo",
298
+ Fable: "fable",
299
+ Onyx: "onyx",
300
+ Nova: "nova",
301
+ Shimmer: "shimmer",
302
+ };
303
+ /**
304
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
305
+ */
306
+ exports.GetOnePromptPromptsFormat = {
307
+ Wav: "wav",
308
+ Mp3: "mp3",
309
+ Flac: "flac",
310
+ Opus: "opus",
311
+ Pcm16: "pcm16",
312
+ };
313
+ /**
314
+ * Constrains effort on reasoning for [reasoning models](https://platform.openai.com/docs/guides/reasoning). Currently supported values are `none`, `minimal`, `low`, `medium`, `high`, and `xhigh`. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
315
+ *
316
+ * @remarks
317
+ *
318
+ * - `gpt-5.1` defaults to `none`, which does not perform reasoning. The supported reasoning values for `gpt-5.1` are `none`, `low`, `medium`, and `high`. Tool calls are supported for all reasoning values in gpt-5.1.
319
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
320
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
321
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
322
+ *
323
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
324
+ */
325
+ exports.GetOnePromptReasoningEffort = {
326
+ None: "none",
327
+ Minimal: "minimal",
328
+ Low: "low",
329
+ Medium: "medium",
330
+ High: "high",
331
+ Xhigh: "xhigh",
332
+ };
333
+ /**
334
+ * The type of the tool. Currently, only function is supported.
335
+ */
336
+ exports.GetOnePromptToolChoiceType = {
337
+ Function: "function",
338
+ };
339
+ exports.GetOnePromptToolChoice1 = {
340
+ None: "none",
341
+ Auto: "auto",
342
+ Required: "required",
343
+ };
344
+ exports.GetOnePromptModalities = {
345
+ Text: "text",
346
+ Audio: "audio",
347
+ };
348
+ /**
349
+ * The key of the guardrail.
350
+ */
351
+ exports.GetOnePromptId1 = {
352
+ OrqPiiDetection: "orq_pii_detection",
353
+ OrqSexualModeration: "orq_sexual_moderation",
354
+ OrqHarmfulModeration: "orq_harmful_moderation",
355
+ };
356
+ /**
357
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
358
+ */
359
+ exports.GetOnePromptExecuteOn = {
360
+ Input: "input",
361
+ Output: "output",
362
+ };
363
+ /**
364
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
365
+ */
366
+ exports.GetOnePromptMessagesPromptsType = {
367
+ Ephemeral: "ephemeral",
368
+ };
369
+ /**
370
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
371
+ *
372
+ * @remarks
373
+ *
374
+ * - `5m`: 5 minutes
375
+ * - `1h`: 1 hour
376
+ *
377
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
378
+ */
379
+ exports.GetOnePromptMessagesTtl = {
380
+ Fivem: "5m",
381
+ Oneh: "1h",
382
+ };
383
+ /**
384
+ * The type of the tool. Currently, only `function` is supported.
385
+ */
386
+ exports.GetOnePromptMessagesType = {
387
+ Function: "function",
388
+ };
389
+ /**
390
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
391
+ */
392
+ exports.GetOnePrompt2PromptsResponse200ApplicationJSONType = {
393
+ Ephemeral: "ephemeral",
394
+ };
395
+ /**
396
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
397
+ *
398
+ * @remarks
399
+ *
400
+ * - `5m`: 5 minutes
401
+ * - `1h`: 1 hour
402
+ *
403
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
404
+ */
405
+ exports.GetOnePrompt2Ttl = {
406
+ Fivem: "5m",
407
+ Oneh: "1h",
408
+ };
222
409
  exports.GetOnePromptUseCases = {
223
410
  AgentsSimulations: "Agents simulations",
224
411
  Agents: "Agents",
@@ -292,17 +479,16 @@ exports.GetOnePromptResponseFormat4$inboundSchema = z.nativeEnum(exports.GetOneP
292
479
  /** @internal */
293
480
  exports.GetOnePromptResponseFormat4$outboundSchema = exports.GetOnePromptResponseFormat4$inboundSchema;
294
481
  /** @internal */
295
- exports.GetOnePromptResponseFormatPromptsResponseType$inboundSchema = z
296
- .nativeEnum(exports.GetOnePromptResponseFormatPromptsResponseType);
482
+ exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType);
297
483
  /** @internal */
298
- exports.GetOnePromptResponseFormatPromptsResponseType$outboundSchema = exports.GetOnePromptResponseFormatPromptsResponseType$inboundSchema;
484
+ exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema;
299
485
  /** @internal */
300
486
  exports.GetOnePromptResponseFormat3$inboundSchema = z.object({
301
- type: exports.GetOnePromptResponseFormatPromptsResponseType$inboundSchema,
487
+ type: exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
302
488
  });
303
489
  /** @internal */
304
490
  exports.GetOnePromptResponseFormat3$outboundSchema = z.object({
305
- type: exports.GetOnePromptResponseFormatPromptsResponseType$outboundSchema,
491
+ type: exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema,
306
492
  });
307
493
  function getOnePromptResponseFormat3ToJSON(getOnePromptResponseFormat3) {
308
494
  return JSON.stringify(exports.GetOnePromptResponseFormat3$outboundSchema.parse(getOnePromptResponseFormat3));
@@ -311,16 +497,16 @@ function getOnePromptResponseFormat3FromJSON(jsonString) {
311
497
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat3' from JSON`);
312
498
  }
313
499
  /** @internal */
314
- exports.GetOnePromptResponseFormatPromptsType$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormatPromptsType);
500
+ exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType);
315
501
  /** @internal */
316
- exports.GetOnePromptResponseFormatPromptsType$outboundSchema = exports.GetOnePromptResponseFormatPromptsType$inboundSchema;
502
+ exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema = exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
317
503
  /** @internal */
318
504
  exports.GetOnePromptResponseFormat2$inboundSchema = z.object({
319
- type: exports.GetOnePromptResponseFormatPromptsType$inboundSchema,
505
+ type: exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
320
506
  });
321
507
  /** @internal */
322
508
  exports.GetOnePromptResponseFormat2$outboundSchema = z.object({
323
- type: exports.GetOnePromptResponseFormatPromptsType$outboundSchema,
509
+ type: exports.GetOnePromptResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema,
324
510
  });
325
511
  function getOnePromptResponseFormat2ToJSON(getOnePromptResponseFormat2) {
326
512
  return JSON.stringify(exports.GetOnePromptResponseFormat2$outboundSchema.parse(getOnePromptResponseFormat2));
@@ -329,34 +515,35 @@ function getOnePromptResponseFormat2FromJSON(jsonString) {
329
515
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat2' from JSON`);
330
516
  }
331
517
  /** @internal */
332
- exports.GetOnePromptResponseFormatType$inboundSchema = z.nativeEnum(exports.GetOnePromptResponseFormatType);
518
+ exports.GetOnePromptResponseFormatPromptsResponse200Type$inboundSchema = z
519
+ .nativeEnum(exports.GetOnePromptResponseFormatPromptsResponse200Type);
333
520
  /** @internal */
334
- exports.GetOnePromptResponseFormatType$outboundSchema = exports.GetOnePromptResponseFormatType$inboundSchema;
521
+ exports.GetOnePromptResponseFormatPromptsResponse200Type$outboundSchema = exports.GetOnePromptResponseFormatPromptsResponse200Type$inboundSchema;
335
522
  /** @internal */
336
- exports.GetOnePromptResponseFormatJsonSchema$inboundSchema = z.object({
523
+ exports.GetOnePromptResponseFormatPromptsResponseJsonSchema$inboundSchema = z.object({
337
524
  name: z.string(),
338
525
  description: z.string().optional(),
339
526
  strict: z.boolean().optional(),
340
527
  schema: z.record(z.any()),
341
528
  });
342
529
  /** @internal */
343
- exports.GetOnePromptResponseFormatJsonSchema$outboundSchema = z.object({
530
+ exports.GetOnePromptResponseFormatPromptsResponseJsonSchema$outboundSchema = z.object({
344
531
  name: z.string(),
345
532
  description: z.string().optional(),
346
533
  strict: z.boolean().optional(),
347
534
  schema: z.record(z.any()),
348
535
  });
349
- function getOnePromptResponseFormatJsonSchemaToJSON(getOnePromptResponseFormatJsonSchema) {
350
- return JSON.stringify(exports.GetOnePromptResponseFormatJsonSchema$outboundSchema.parse(getOnePromptResponseFormatJsonSchema));
536
+ function getOnePromptResponseFormatPromptsResponseJsonSchemaToJSON(getOnePromptResponseFormatPromptsResponseJsonSchema) {
537
+ return JSON.stringify(exports.GetOnePromptResponseFormatPromptsResponseJsonSchema$outboundSchema.parse(getOnePromptResponseFormatPromptsResponseJsonSchema));
351
538
  }
352
- function getOnePromptResponseFormatJsonSchemaFromJSON(jsonString) {
353
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormatJsonSchema' from JSON`);
539
+ function getOnePromptResponseFormatPromptsResponseJsonSchemaFromJSON(jsonString) {
540
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormatPromptsResponseJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormatPromptsResponseJsonSchema' from JSON`);
354
541
  }
355
542
  /** @internal */
356
543
  exports.GetOnePromptResponseFormat1$inboundSchema = z.object({
357
- type: exports.GetOnePromptResponseFormatType$inboundSchema,
544
+ type: exports.GetOnePromptResponseFormatPromptsResponse200Type$inboundSchema,
358
545
  display_name: z.string().optional(),
359
- json_schema: z.lazy(() => exports.GetOnePromptResponseFormatJsonSchema$inboundSchema),
546
+ json_schema: z.lazy(() => exports.GetOnePromptResponseFormatPromptsResponseJsonSchema$inboundSchema),
360
547
  }).transform((v) => {
361
548
  return (0, primitives_js_1.remap)(v, {
362
549
  "display_name": "displayName",
@@ -365,9 +552,9 @@ exports.GetOnePromptResponseFormat1$inboundSchema = z.object({
365
552
  });
366
553
  /** @internal */
367
554
  exports.GetOnePromptResponseFormat1$outboundSchema = z.object({
368
- type: exports.GetOnePromptResponseFormatType$outboundSchema,
555
+ type: exports.GetOnePromptResponseFormatPromptsResponse200Type$outboundSchema,
369
556
  displayName: z.string().optional(),
370
- jsonSchema: z.lazy(() => exports.GetOnePromptResponseFormatJsonSchema$outboundSchema),
557
+ jsonSchema: z.lazy(() => exports.GetOnePromptResponseFormatPromptsResponseJsonSchema$outboundSchema),
371
558
  }).transform((v) => {
372
559
  return (0, primitives_js_1.remap)(v, {
373
560
  displayName: "display_name",
@@ -381,7 +568,7 @@ function getOnePromptResponseFormat1FromJSON(jsonString) {
381
568
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat1' from JSON`);
382
569
  }
383
570
  /** @internal */
384
- exports.GetOnePromptResponseFormat$inboundSchema = z.union([
571
+ exports.GetOnePromptPromptsResponseFormat$inboundSchema = z.union([
385
572
  z.lazy(() => exports.GetOnePromptResponseFormat1$inboundSchema),
386
573
  z.lazy(() => exports.GetOnePromptResponseFormat2$inboundSchema),
387
574
  z.lazy(() => exports.GetOnePromptResponseFormat3$inboundSchema),
@@ -390,7 +577,7 @@ exports.GetOnePromptResponseFormat$inboundSchema = z.union([
390
577
  exports.GetOnePromptResponseFormat6$inboundSchema,
391
578
  ]);
392
579
  /** @internal */
393
- exports.GetOnePromptResponseFormat$outboundSchema = z.union([
580
+ exports.GetOnePromptPromptsResponseFormat$outboundSchema = z.union([
394
581
  z.lazy(() => exports.GetOnePromptResponseFormat1$outboundSchema),
395
582
  z.lazy(() => exports.GetOnePromptResponseFormat2$outboundSchema),
396
583
  z.lazy(() => exports.GetOnePromptResponseFormat3$outboundSchema),
@@ -398,11 +585,11 @@ exports.GetOnePromptResponseFormat$outboundSchema = z.union([
398
585
  exports.GetOnePromptResponseFormat5$outboundSchema,
399
586
  exports.GetOnePromptResponseFormat6$outboundSchema,
400
587
  ]);
401
- function getOnePromptResponseFormatToJSON(getOnePromptResponseFormat) {
402
- return JSON.stringify(exports.GetOnePromptResponseFormat$outboundSchema.parse(getOnePromptResponseFormat));
588
+ function getOnePromptPromptsResponseFormatToJSON(getOnePromptPromptsResponseFormat) {
589
+ return JSON.stringify(exports.GetOnePromptPromptsResponseFormat$outboundSchema.parse(getOnePromptPromptsResponseFormat));
403
590
  }
404
- function getOnePromptResponseFormatFromJSON(jsonString) {
405
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat' from JSON`);
591
+ function getOnePromptPromptsResponseFormatFromJSON(jsonString) {
592
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptPromptsResponseFormat' from JSON`);
406
593
  }
407
594
  /** @internal */
408
595
  exports.GetOnePromptPhotoRealVersion$inboundSchema = z.nativeEnum(exports.GetOnePromptPhotoRealVersion);
@@ -413,9 +600,9 @@ exports.GetOnePromptEncodingFormat$inboundSchema = z.nativeEnum(exports.GetOnePr
413
600
  /** @internal */
414
601
  exports.GetOnePromptEncodingFormat$outboundSchema = exports.GetOnePromptEncodingFormat$inboundSchema;
415
602
  /** @internal */
416
- exports.GetOnePromptReasoningEffort$inboundSchema = z.nativeEnum(exports.GetOnePromptReasoningEffort);
603
+ exports.GetOnePromptPromptsReasoningEffort$inboundSchema = z.nativeEnum(exports.GetOnePromptPromptsReasoningEffort);
417
604
  /** @internal */
418
- exports.GetOnePromptReasoningEffort$outboundSchema = exports.GetOnePromptReasoningEffort$inboundSchema;
605
+ exports.GetOnePromptPromptsReasoningEffort$outboundSchema = exports.GetOnePromptPromptsReasoningEffort$inboundSchema;
419
606
  /** @internal */
420
607
  exports.GetOnePromptVerbosity$inboundSchema = z.nativeEnum(exports.GetOnePromptVerbosity);
421
608
  /** @internal */
@@ -448,7 +635,7 @@ exports.GetOnePromptModelParameters$inboundSchema = z.object({
448
635
  ])).optional(),
449
636
  photoRealVersion: exports.GetOnePromptPhotoRealVersion$inboundSchema.optional(),
450
637
  encoding_format: exports.GetOnePromptEncodingFormat$inboundSchema.optional(),
451
- reasoningEffort: exports.GetOnePromptReasoningEffort$inboundSchema.optional(),
638
+ reasoningEffort: exports.GetOnePromptPromptsReasoningEffort$inboundSchema.optional(),
452
639
  budgetTokens: z.number().optional(),
453
640
  verbosity: exports.GetOnePromptVerbosity$inboundSchema.optional(),
454
641
  thinkingLevel: exports.GetOnePromptThinkingLevel$inboundSchema.optional(),
@@ -481,7 +668,7 @@ exports.GetOnePromptModelParameters$outboundSchema = z.object({
481
668
  ])).optional(),
482
669
  photoRealVersion: exports.GetOnePromptPhotoRealVersion$outboundSchema.optional(),
483
670
  encodingFormat: exports.GetOnePromptEncodingFormat$outboundSchema.optional(),
484
- reasoningEffort: exports.GetOnePromptReasoningEffort$outboundSchema.optional(),
671
+ reasoningEffort: exports.GetOnePromptPromptsReasoningEffort$outboundSchema.optional(),
485
672
  budgetTokens: z.number().optional(),
486
673
  verbosity: exports.GetOnePromptVerbosity$outboundSchema.optional(),
487
674
  thinkingLevel: exports.GetOnePromptThinkingLevel$outboundSchema.optional(),
@@ -737,12 +924,12 @@ function getOnePromptMessagesFromJSON(jsonString) {
737
924
  /** @internal */
738
925
  exports.GetOnePromptPromptConfig$inboundSchema = z.object({
739
926
  stream: z.boolean().optional(),
740
- model: z.string().optional(),
927
+ model: z.nullable(z.string()).optional(),
741
928
  model_db_id: z.nullable(z.string()).optional(),
742
929
  model_type: z.nullable(exports.GetOnePromptModelType$inboundSchema).optional(),
743
930
  model_parameters: z.lazy(() => exports.GetOnePromptModelParameters$inboundSchema)
744
931
  .optional(),
745
- provider: exports.GetOnePromptProvider$inboundSchema.optional(),
932
+ provider: z.nullable(exports.GetOnePromptProvider$inboundSchema).optional(),
746
933
  integration_id: z.nullable(z.string()).optional(),
747
934
  version: z.string().optional(),
748
935
  messages: z.array(z.lazy(() => exports.GetOnePromptMessages$inboundSchema)),
@@ -757,12 +944,12 @@ exports.GetOnePromptPromptConfig$inboundSchema = z.object({
757
944
  /** @internal */
758
945
  exports.GetOnePromptPromptConfig$outboundSchema = z.object({
759
946
  stream: z.boolean().optional(),
760
- model: z.string().optional(),
947
+ model: z.nullable(z.string()).optional(),
761
948
  modelDbId: z.nullable(z.string()).optional(),
762
949
  modelType: z.nullable(exports.GetOnePromptModelType$outboundSchema).optional(),
763
950
  modelParameters: z.lazy(() => exports.GetOnePromptModelParameters$outboundSchema)
764
951
  .optional(),
765
- provider: exports.GetOnePromptProvider$outboundSchema.optional(),
952
+ provider: z.nullable(exports.GetOnePromptProvider$outboundSchema).optional(),
766
953
  integrationId: z.nullable(z.string()).optional(),
767
954
  version: z.string().optional(),
768
955
  messages: z.array(z.lazy(() => exports.GetOnePromptMessages$outboundSchema)),
@@ -781,6 +968,839 @@ function getOnePromptPromptConfigFromJSON(jsonString) {
781
968
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptPromptConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptPromptConfig' from JSON`);
782
969
  }
783
970
  /** @internal */
971
+ exports.GetOnePromptVoice$inboundSchema = z.nativeEnum(exports.GetOnePromptVoice);
972
+ /** @internal */
973
+ exports.GetOnePromptVoice$outboundSchema = exports.GetOnePromptVoice$inboundSchema;
974
+ /** @internal */
975
+ exports.GetOnePromptPromptsFormat$inboundSchema = z.nativeEnum(exports.GetOnePromptPromptsFormat);
976
+ /** @internal */
977
+ exports.GetOnePromptPromptsFormat$outboundSchema = exports.GetOnePromptPromptsFormat$inboundSchema;
978
+ /** @internal */
979
+ exports.GetOnePromptAudio$inboundSchema = z.object({
980
+ voice: exports.GetOnePromptVoice$inboundSchema,
981
+ format: exports.GetOnePromptPromptsFormat$inboundSchema,
982
+ });
983
+ /** @internal */
984
+ exports.GetOnePromptAudio$outboundSchema = z.object({
985
+ voice: exports.GetOnePromptVoice$outboundSchema,
986
+ format: exports.GetOnePromptPromptsFormat$outboundSchema,
987
+ });
988
+ function getOnePromptAudioToJSON(getOnePromptAudio) {
989
+ return JSON.stringify(exports.GetOnePromptAudio$outboundSchema.parse(getOnePromptAudio));
990
+ }
991
+ function getOnePromptAudioFromJSON(jsonString) {
992
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptAudio' from JSON`);
993
+ }
994
+ /** @internal */
995
+ exports.GetOnePromptResponseFormatJsonSchema$inboundSchema = z.object({
996
+ description: z.string().optional(),
997
+ name: z.string(),
998
+ schema: z.any().optional(),
999
+ strict: z.boolean().default(false),
1000
+ });
1001
+ /** @internal */
1002
+ exports.GetOnePromptResponseFormatJsonSchema$outboundSchema = z.object({
1003
+ description: z.string().optional(),
1004
+ name: z.string(),
1005
+ schema: z.any().optional(),
1006
+ strict: z.boolean().default(false),
1007
+ });
1008
+ function getOnePromptResponseFormatJsonSchemaToJSON(getOnePromptResponseFormatJsonSchema) {
1009
+ return JSON.stringify(exports.GetOnePromptResponseFormatJsonSchema$outboundSchema.parse(getOnePromptResponseFormatJsonSchema));
1010
+ }
1011
+ function getOnePromptResponseFormatJsonSchemaFromJSON(jsonString) {
1012
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormatJsonSchema' from JSON`);
1013
+ }
1014
+ /** @internal */
1015
+ exports.GetOnePromptResponseFormatPromptsJSONSchema$inboundSchema = z.object({
1016
+ type: z.literal("json_schema"),
1017
+ json_schema: z.lazy(() => exports.GetOnePromptResponseFormatJsonSchema$inboundSchema),
1018
+ }).transform((v) => {
1019
+ return (0, primitives_js_1.remap)(v, {
1020
+ "json_schema": "jsonSchema",
1021
+ });
1022
+ });
1023
+ /** @internal */
1024
+ exports.GetOnePromptResponseFormatPromptsJSONSchema$outboundSchema = z.object({
1025
+ type: z.literal("json_schema"),
1026
+ jsonSchema: z.lazy(() => exports.GetOnePromptResponseFormatJsonSchema$outboundSchema),
1027
+ }).transform((v) => {
1028
+ return (0, primitives_js_1.remap)(v, {
1029
+ jsonSchema: "json_schema",
1030
+ });
1031
+ });
1032
+ function getOnePromptResponseFormatPromptsJSONSchemaToJSON(getOnePromptResponseFormatPromptsJSONSchema) {
1033
+ return JSON.stringify(exports.GetOnePromptResponseFormatPromptsJSONSchema$outboundSchema.parse(getOnePromptResponseFormatPromptsJSONSchema));
1034
+ }
1035
+ function getOnePromptResponseFormatPromptsJSONSchemaFromJSON(jsonString) {
1036
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormatPromptsJSONSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormatPromptsJSONSchema' from JSON`);
1037
+ }
1038
+ /** @internal */
1039
+ exports.GetOnePromptResponseFormatJSONObject$inboundSchema = z.object({
1040
+ type: z.literal("json_object"),
1041
+ });
1042
+ /** @internal */
1043
+ exports.GetOnePromptResponseFormatJSONObject$outboundSchema = z.object({
1044
+ type: z.literal("json_object"),
1045
+ });
1046
+ function getOnePromptResponseFormatJSONObjectToJSON(getOnePromptResponseFormatJSONObject) {
1047
+ return JSON.stringify(exports.GetOnePromptResponseFormatJSONObject$outboundSchema.parse(getOnePromptResponseFormatJSONObject));
1048
+ }
1049
+ function getOnePromptResponseFormatJSONObjectFromJSON(jsonString) {
1050
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormatJSONObject' from JSON`);
1051
+ }
1052
+ /** @internal */
1053
+ exports.GetOnePromptResponseFormatText$inboundSchema = z.object({
1054
+ type: z.literal("text"),
1055
+ });
1056
+ /** @internal */
1057
+ exports.GetOnePromptResponseFormatText$outboundSchema = z.object({
1058
+ type: z.literal("text"),
1059
+ });
1060
+ function getOnePromptResponseFormatTextToJSON(getOnePromptResponseFormatText) {
1061
+ return JSON.stringify(exports.GetOnePromptResponseFormatText$outboundSchema.parse(getOnePromptResponseFormatText));
1062
+ }
1063
+ function getOnePromptResponseFormatTextFromJSON(jsonString) {
1064
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormatText' from JSON`);
1065
+ }
1066
+ /** @internal */
1067
+ exports.GetOnePromptResponseFormat$inboundSchema = z.union([
1068
+ z.lazy(() => exports.GetOnePromptResponseFormatText$inboundSchema),
1069
+ z.lazy(() => exports.GetOnePromptResponseFormatJSONObject$inboundSchema),
1070
+ z.lazy(() => exports.GetOnePromptResponseFormatPromptsJSONSchema$inboundSchema),
1071
+ ]);
1072
+ /** @internal */
1073
+ exports.GetOnePromptResponseFormat$outboundSchema = z.union([
1074
+ z.lazy(() => exports.GetOnePromptResponseFormatText$outboundSchema),
1075
+ z.lazy(() => exports.GetOnePromptResponseFormatJSONObject$outboundSchema),
1076
+ z.lazy(() => exports.GetOnePromptResponseFormatPromptsJSONSchema$outboundSchema),
1077
+ ]);
1078
+ function getOnePromptResponseFormatToJSON(getOnePromptResponseFormat) {
1079
+ return JSON.stringify(exports.GetOnePromptResponseFormat$outboundSchema.parse(getOnePromptResponseFormat));
1080
+ }
1081
+ function getOnePromptResponseFormatFromJSON(jsonString) {
1082
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptResponseFormat' from JSON`);
1083
+ }
1084
+ /** @internal */
1085
+ exports.GetOnePromptReasoningEffort$inboundSchema = z.nativeEnum(exports.GetOnePromptReasoningEffort);
1086
+ /** @internal */
1087
+ exports.GetOnePromptReasoningEffort$outboundSchema = exports.GetOnePromptReasoningEffort$inboundSchema;
1088
+ /** @internal */
1089
+ exports.GetOnePromptStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
1090
+ /** @internal */
1091
+ exports.GetOnePromptStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
1092
+ function getOnePromptStopToJSON(getOnePromptStop) {
1093
+ return JSON.stringify(exports.GetOnePromptStop$outboundSchema.parse(getOnePromptStop));
1094
+ }
1095
+ function getOnePromptStopFromJSON(jsonString) {
1096
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptStop' from JSON`);
1097
+ }
1098
+ /** @internal */
1099
+ exports.GetOnePromptStreamOptions$inboundSchema = z.object({
1100
+ include_usage: z.boolean().optional(),
1101
+ }).transform((v) => {
1102
+ return (0, primitives_js_1.remap)(v, {
1103
+ "include_usage": "includeUsage",
1104
+ });
1105
+ });
1106
+ /** @internal */
1107
+ exports.GetOnePromptStreamOptions$outboundSchema = z.object({
1108
+ includeUsage: z.boolean().optional(),
1109
+ }).transform((v) => {
1110
+ return (0, primitives_js_1.remap)(v, {
1111
+ includeUsage: "include_usage",
1112
+ });
1113
+ });
1114
+ function getOnePromptStreamOptionsToJSON(getOnePromptStreamOptions) {
1115
+ return JSON.stringify(exports.GetOnePromptStreamOptions$outboundSchema.parse(getOnePromptStreamOptions));
1116
+ }
1117
+ function getOnePromptStreamOptionsFromJSON(jsonString) {
1118
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptStreamOptions' from JSON`);
1119
+ }
1120
+ /** @internal */
1121
+ exports.GetOnePromptThinking$inboundSchema = z.union([
1122
+ components.ThinkingConfigDisabledSchema$inboundSchema,
1123
+ components.ThinkingConfigEnabledSchema$inboundSchema,
1124
+ ]);
1125
+ /** @internal */
1126
+ exports.GetOnePromptThinking$outboundSchema = z.union([
1127
+ components.ThinkingConfigDisabledSchema$outboundSchema,
1128
+ components.ThinkingConfigEnabledSchema$outboundSchema,
1129
+ ]);
1130
+ function getOnePromptThinkingToJSON(getOnePromptThinking) {
1131
+ return JSON.stringify(exports.GetOnePromptThinking$outboundSchema.parse(getOnePromptThinking));
1132
+ }
1133
+ function getOnePromptThinkingFromJSON(jsonString) {
1134
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptThinking' from JSON`);
1135
+ }
1136
+ /** @internal */
1137
+ exports.GetOnePromptToolChoiceType$inboundSchema = z.nativeEnum(exports.GetOnePromptToolChoiceType);
1138
+ /** @internal */
1139
+ exports.GetOnePromptToolChoiceType$outboundSchema = exports.GetOnePromptToolChoiceType$inboundSchema;
1140
+ /** @internal */
1141
+ exports.GetOnePromptToolChoiceFunction$inboundSchema = z.object({
1142
+ name: z.string(),
1143
+ });
1144
+ /** @internal */
1145
+ exports.GetOnePromptToolChoiceFunction$outboundSchema = z.object({
1146
+ name: z.string(),
1147
+ });
1148
+ function getOnePromptToolChoiceFunctionToJSON(getOnePromptToolChoiceFunction) {
1149
+ return JSON.stringify(exports.GetOnePromptToolChoiceFunction$outboundSchema.parse(getOnePromptToolChoiceFunction));
1150
+ }
1151
+ function getOnePromptToolChoiceFunctionFromJSON(jsonString) {
1152
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptToolChoiceFunction' from JSON`);
1153
+ }
1154
+ /** @internal */
1155
+ exports.GetOnePromptToolChoice2$inboundSchema = z.object({
1156
+ type: exports.GetOnePromptToolChoiceType$inboundSchema.optional(),
1157
+ function: z.lazy(() => exports.GetOnePromptToolChoiceFunction$inboundSchema),
1158
+ });
1159
+ /** @internal */
1160
+ exports.GetOnePromptToolChoice2$outboundSchema = z.object({
1161
+ type: exports.GetOnePromptToolChoiceType$outboundSchema.optional(),
1162
+ function: z.lazy(() => exports.GetOnePromptToolChoiceFunction$outboundSchema),
1163
+ });
1164
+ function getOnePromptToolChoice2ToJSON(getOnePromptToolChoice2) {
1165
+ return JSON.stringify(exports.GetOnePromptToolChoice2$outboundSchema.parse(getOnePromptToolChoice2));
1166
+ }
1167
+ function getOnePromptToolChoice2FromJSON(jsonString) {
1168
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptToolChoice2' from JSON`);
1169
+ }
1170
+ /** @internal */
1171
+ exports.GetOnePromptToolChoice1$inboundSchema = z.nativeEnum(exports.GetOnePromptToolChoice1);
1172
+ /** @internal */
1173
+ exports.GetOnePromptToolChoice1$outboundSchema = exports.GetOnePromptToolChoice1$inboundSchema;
1174
+ /** @internal */
1175
+ exports.GetOnePromptToolChoice$inboundSchema = z.union([
1176
+ z.lazy(() => exports.GetOnePromptToolChoice2$inboundSchema),
1177
+ exports.GetOnePromptToolChoice1$inboundSchema,
1178
+ ]);
1179
+ /** @internal */
1180
+ exports.GetOnePromptToolChoice$outboundSchema = z.union([
1181
+ z.lazy(() => exports.GetOnePromptToolChoice2$outboundSchema),
1182
+ exports.GetOnePromptToolChoice1$outboundSchema,
1183
+ ]);
1184
+ function getOnePromptToolChoiceToJSON(getOnePromptToolChoice) {
1185
+ return JSON.stringify(exports.GetOnePromptToolChoice$outboundSchema.parse(getOnePromptToolChoice));
1186
+ }
1187
+ function getOnePromptToolChoiceFromJSON(jsonString) {
1188
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptToolChoice' from JSON`);
1189
+ }
1190
+ /** @internal */
1191
+ exports.GetOnePromptModalities$inboundSchema = z.nativeEnum(exports.GetOnePromptModalities);
1192
+ /** @internal */
1193
+ exports.GetOnePromptModalities$outboundSchema = exports.GetOnePromptModalities$inboundSchema;
1194
+ /** @internal */
1195
+ exports.GetOnePromptId1$inboundSchema = z.nativeEnum(exports.GetOnePromptId1);
1196
+ /** @internal */
1197
+ exports.GetOnePromptId1$outboundSchema = exports.GetOnePromptId1$inboundSchema;
1198
+ /** @internal */
1199
+ exports.GetOnePromptId$inboundSchema = z.union([exports.GetOnePromptId1$inboundSchema, z.string()]);
1200
+ /** @internal */
1201
+ exports.GetOnePromptId$outboundSchema = z.union([exports.GetOnePromptId1$outboundSchema, z.string()]);
1202
+ function getOnePromptIdToJSON(getOnePromptId) {
1203
+ return JSON.stringify(exports.GetOnePromptId$outboundSchema.parse(getOnePromptId));
1204
+ }
1205
+ function getOnePromptIdFromJSON(jsonString) {
1206
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptId' from JSON`);
1207
+ }
1208
+ /** @internal */
1209
+ exports.GetOnePromptExecuteOn$inboundSchema = z.nativeEnum(exports.GetOnePromptExecuteOn);
1210
+ /** @internal */
1211
+ exports.GetOnePromptExecuteOn$outboundSchema = exports.GetOnePromptExecuteOn$inboundSchema;
1212
+ /** @internal */
1213
+ exports.GetOnePromptGuardrails$inboundSchema = z.object({
1214
+ id: z.union([exports.GetOnePromptId1$inboundSchema, z.string()]),
1215
+ execute_on: exports.GetOnePromptExecuteOn$inboundSchema,
1216
+ }).transform((v) => {
1217
+ return (0, primitives_js_1.remap)(v, {
1218
+ "execute_on": "executeOn",
1219
+ });
1220
+ });
1221
+ /** @internal */
1222
+ exports.GetOnePromptGuardrails$outboundSchema = z.object({
1223
+ id: z.union([exports.GetOnePromptId1$outboundSchema, z.string()]),
1224
+ executeOn: exports.GetOnePromptExecuteOn$outboundSchema,
1225
+ }).transform((v) => {
1226
+ return (0, primitives_js_1.remap)(v, {
1227
+ executeOn: "execute_on",
1228
+ });
1229
+ });
1230
+ function getOnePromptGuardrailsToJSON(getOnePromptGuardrails) {
1231
+ return JSON.stringify(exports.GetOnePromptGuardrails$outboundSchema.parse(getOnePromptGuardrails));
1232
+ }
1233
+ function getOnePromptGuardrailsFromJSON(jsonString) {
1234
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptGuardrails' from JSON`);
1235
+ }
1236
+ /** @internal */
1237
+ exports.GetOnePromptContentPromptsResponse2002$inboundSchema = components.TextContentPartSchema$inboundSchema;
1238
+ /** @internal */
1239
+ exports.GetOnePromptContentPromptsResponse2002$outboundSchema = components.TextContentPartSchema$outboundSchema;
1240
+ function getOnePromptContentPromptsResponse2002ToJSON(getOnePromptContentPromptsResponse2002) {
1241
+ return JSON.stringify(exports.GetOnePromptContentPromptsResponse2002$outboundSchema.parse(getOnePromptContentPromptsResponse2002));
1242
+ }
1243
+ function getOnePromptContentPromptsResponse2002FromJSON(jsonString) {
1244
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptContentPromptsResponse2002$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptContentPromptsResponse2002' from JSON`);
1245
+ }
1246
+ /** @internal */
1247
+ exports.GetOnePromptMessagesPromptsResponse200Content$inboundSchema = z.union([
1248
+ z.string(),
1249
+ z.array(components.TextContentPartSchema$inboundSchema),
1250
+ ]);
1251
+ /** @internal */
1252
+ exports.GetOnePromptMessagesPromptsResponse200Content$outboundSchema = z.union([
1253
+ z.string(),
1254
+ z.array(components.TextContentPartSchema$outboundSchema),
1255
+ ]);
1256
+ function getOnePromptMessagesPromptsResponse200ContentToJSON(getOnePromptMessagesPromptsResponse200Content) {
1257
+ return JSON.stringify(exports.GetOnePromptMessagesPromptsResponse200Content$outboundSchema.parse(getOnePromptMessagesPromptsResponse200Content));
1258
+ }
1259
+ function getOnePromptMessagesPromptsResponse200ContentFromJSON(jsonString) {
1260
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesPromptsResponse200Content$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesPromptsResponse200Content' from JSON`);
1261
+ }
1262
+ /** @internal */
1263
+ exports.GetOnePromptMessagesPromptsType$inboundSchema = z.nativeEnum(exports.GetOnePromptMessagesPromptsType);
1264
+ /** @internal */
1265
+ exports.GetOnePromptMessagesPromptsType$outboundSchema = exports.GetOnePromptMessagesPromptsType$inboundSchema;
1266
+ /** @internal */
1267
+ exports.GetOnePromptMessagesTtl$inboundSchema = z.nativeEnum(exports.GetOnePromptMessagesTtl);
1268
+ /** @internal */
1269
+ exports.GetOnePromptMessagesTtl$outboundSchema = exports.GetOnePromptMessagesTtl$inboundSchema;
1270
+ /** @internal */
1271
+ exports.GetOnePromptMessagesCacheControl$inboundSchema = z.object({
1272
+ type: exports.GetOnePromptMessagesPromptsType$inboundSchema,
1273
+ ttl: exports.GetOnePromptMessagesTtl$inboundSchema.default("5m"),
1274
+ });
1275
+ /** @internal */
1276
+ exports.GetOnePromptMessagesCacheControl$outboundSchema = z.object({
1277
+ type: exports.GetOnePromptMessagesPromptsType$outboundSchema,
1278
+ ttl: exports.GetOnePromptMessagesTtl$outboundSchema.default("5m"),
1279
+ });
1280
+ function getOnePromptMessagesCacheControlToJSON(getOnePromptMessagesCacheControl) {
1281
+ return JSON.stringify(exports.GetOnePromptMessagesCacheControl$outboundSchema.parse(getOnePromptMessagesCacheControl));
1282
+ }
1283
+ function getOnePromptMessagesCacheControlFromJSON(jsonString) {
1284
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesCacheControl' from JSON`);
1285
+ }
1286
+ /** @internal */
1287
+ exports.GetOnePromptMessagesToolMessage$inboundSchema = z.object({
1288
+ role: z.literal("tool"),
1289
+ content: z.union([
1290
+ z.string(),
1291
+ z.array(components.TextContentPartSchema$inboundSchema),
1292
+ ]),
1293
+ tool_call_id: z.nullable(z.string()),
1294
+ cache_control: z.lazy(() => exports.GetOnePromptMessagesCacheControl$inboundSchema)
1295
+ .optional(),
1296
+ }).transform((v) => {
1297
+ return (0, primitives_js_1.remap)(v, {
1298
+ "tool_call_id": "toolCallId",
1299
+ "cache_control": "cacheControl",
1300
+ });
1301
+ });
1302
+ /** @internal */
1303
+ exports.GetOnePromptMessagesToolMessage$outboundSchema = z.object({
1304
+ role: z.literal("tool"),
1305
+ content: z.union([
1306
+ z.string(),
1307
+ z.array(components.TextContentPartSchema$outboundSchema),
1308
+ ]),
1309
+ toolCallId: z.nullable(z.string()),
1310
+ cacheControl: z.lazy(() => exports.GetOnePromptMessagesCacheControl$outboundSchema)
1311
+ .optional(),
1312
+ }).transform((v) => {
1313
+ return (0, primitives_js_1.remap)(v, {
1314
+ toolCallId: "tool_call_id",
1315
+ cacheControl: "cache_control",
1316
+ });
1317
+ });
1318
+ function getOnePromptMessagesToolMessageToJSON(getOnePromptMessagesToolMessage) {
1319
+ return JSON.stringify(exports.GetOnePromptMessagesToolMessage$outboundSchema.parse(getOnePromptMessagesToolMessage));
1320
+ }
1321
+ function getOnePromptMessagesToolMessageFromJSON(jsonString) {
1322
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesToolMessage' from JSON`);
1323
+ }
1324
+ /** @internal */
1325
+ exports.GetOnePromptContentPromptsResponse2$inboundSchema = z.union([
1326
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1327
+ components.RefusalPartSchema$inboundSchema,
1328
+ components.ReasoningPartSchema$inboundSchema,
1329
+ components.RedactedReasoningPartSchema$inboundSchema,
1330
+ ]);
1331
+ /** @internal */
1332
+ exports.GetOnePromptContentPromptsResponse2$outboundSchema = z.union([
1333
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1334
+ components.RefusalPartSchema$outboundSchema,
1335
+ components.ReasoningPartSchema$outboundSchema,
1336
+ components.RedactedReasoningPartSchema$outboundSchema,
1337
+ ]);
1338
+ function getOnePromptContentPromptsResponse2ToJSON(getOnePromptContentPromptsResponse2) {
1339
+ return JSON.stringify(exports.GetOnePromptContentPromptsResponse2$outboundSchema.parse(getOnePromptContentPromptsResponse2));
1340
+ }
1341
+ function getOnePromptContentPromptsResponse2FromJSON(jsonString) {
1342
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptContentPromptsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptContentPromptsResponse2' from JSON`);
1343
+ }
1344
+ /** @internal */
1345
+ exports.GetOnePromptMessagesPromptsResponseContent$inboundSchema = z.union([
1346
+ z.string(),
1347
+ z.array(z.union([
1348
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1349
+ components.RefusalPartSchema$inboundSchema,
1350
+ components.ReasoningPartSchema$inboundSchema,
1351
+ components.RedactedReasoningPartSchema$inboundSchema,
1352
+ ])),
1353
+ ]);
1354
+ /** @internal */
1355
+ exports.GetOnePromptMessagesPromptsResponseContent$outboundSchema = z.union([
1356
+ z.string(),
1357
+ z.array(z.union([
1358
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1359
+ components.RefusalPartSchema$outboundSchema,
1360
+ components.ReasoningPartSchema$outboundSchema,
1361
+ components.RedactedReasoningPartSchema$outboundSchema,
1362
+ ])),
1363
+ ]);
1364
+ function getOnePromptMessagesPromptsResponseContentToJSON(getOnePromptMessagesPromptsResponseContent) {
1365
+ return JSON.stringify(exports.GetOnePromptMessagesPromptsResponseContent$outboundSchema.parse(getOnePromptMessagesPromptsResponseContent));
1366
+ }
1367
+ function getOnePromptMessagesPromptsResponseContentFromJSON(jsonString) {
1368
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesPromptsResponseContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesPromptsResponseContent' from JSON`);
1369
+ }
1370
+ /** @internal */
1371
+ exports.GetOnePromptMessagesAudio$inboundSchema = z.object({
1372
+ id: z.string(),
1373
+ });
1374
+ /** @internal */
1375
+ exports.GetOnePromptMessagesAudio$outboundSchema = z.object({
1376
+ id: z.string(),
1377
+ });
1378
+ function getOnePromptMessagesAudioToJSON(getOnePromptMessagesAudio) {
1379
+ return JSON.stringify(exports.GetOnePromptMessagesAudio$outboundSchema.parse(getOnePromptMessagesAudio));
1380
+ }
1381
+ function getOnePromptMessagesAudioFromJSON(jsonString) {
1382
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesAudio' from JSON`);
1383
+ }
1384
+ /** @internal */
1385
+ exports.GetOnePromptMessagesType$inboundSchema = z.nativeEnum(exports.GetOnePromptMessagesType);
1386
+ /** @internal */
1387
+ exports.GetOnePromptMessagesType$outboundSchema = exports.GetOnePromptMessagesType$inboundSchema;
1388
+ /** @internal */
1389
+ exports.GetOnePromptMessagesFunction$inboundSchema = z.object({
1390
+ name: z.string().optional(),
1391
+ arguments: z.string().optional(),
1392
+ });
1393
+ /** @internal */
1394
+ exports.GetOnePromptMessagesFunction$outboundSchema = z.object({
1395
+ name: z.string().optional(),
1396
+ arguments: z.string().optional(),
1397
+ });
1398
+ function getOnePromptMessagesFunctionToJSON(getOnePromptMessagesFunction) {
1399
+ return JSON.stringify(exports.GetOnePromptMessagesFunction$outboundSchema.parse(getOnePromptMessagesFunction));
1400
+ }
1401
+ function getOnePromptMessagesFunctionFromJSON(jsonString) {
1402
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesFunction' from JSON`);
1403
+ }
1404
+ /** @internal */
1405
+ exports.GetOnePromptMessagesToolCalls$inboundSchema = z.object({
1406
+ id: z.string(),
1407
+ type: exports.GetOnePromptMessagesType$inboundSchema,
1408
+ function: z.lazy(() => exports.GetOnePromptMessagesFunction$inboundSchema),
1409
+ thought_signature: z.string().optional(),
1410
+ }).transform((v) => {
1411
+ return (0, primitives_js_1.remap)(v, {
1412
+ "thought_signature": "thoughtSignature",
1413
+ });
1414
+ });
1415
+ /** @internal */
1416
+ exports.GetOnePromptMessagesToolCalls$outboundSchema = z.object({
1417
+ id: z.string(),
1418
+ type: exports.GetOnePromptMessagesType$outboundSchema,
1419
+ function: z.lazy(() => exports.GetOnePromptMessagesFunction$outboundSchema),
1420
+ thoughtSignature: z.string().optional(),
1421
+ }).transform((v) => {
1422
+ return (0, primitives_js_1.remap)(v, {
1423
+ thoughtSignature: "thought_signature",
1424
+ });
1425
+ });
1426
+ function getOnePromptMessagesToolCallsToJSON(getOnePromptMessagesToolCalls) {
1427
+ return JSON.stringify(exports.GetOnePromptMessagesToolCalls$outboundSchema.parse(getOnePromptMessagesToolCalls));
1428
+ }
1429
+ function getOnePromptMessagesToolCallsFromJSON(jsonString) {
1430
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesToolCalls' from JSON`);
1431
+ }
1432
+ /** @internal */
1433
+ exports.GetOnePromptMessagesAssistantMessage$inboundSchema = z.object({
1434
+ content: z.nullable(z.union([
1435
+ z.string(),
1436
+ z.array(z.union([
1437
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1438
+ components.RefusalPartSchema$inboundSchema,
1439
+ components.ReasoningPartSchema$inboundSchema,
1440
+ components.RedactedReasoningPartSchema$inboundSchema,
1441
+ ])),
1442
+ ])).optional(),
1443
+ refusal: z.nullable(z.string()).optional(),
1444
+ role: z.literal("assistant"),
1445
+ name: z.string().optional(),
1446
+ audio: z.nullable(z.lazy(() => exports.GetOnePromptMessagesAudio$inboundSchema))
1447
+ .optional(),
1448
+ tool_calls: z.array(z.lazy(() => exports.GetOnePromptMessagesToolCalls$inboundSchema))
1449
+ .optional(),
1450
+ }).transform((v) => {
1451
+ return (0, primitives_js_1.remap)(v, {
1452
+ "tool_calls": "toolCalls",
1453
+ });
1454
+ });
1455
+ /** @internal */
1456
+ exports.GetOnePromptMessagesAssistantMessage$outboundSchema = z.object({
1457
+ content: z.nullable(z.union([
1458
+ z.string(),
1459
+ z.array(z.union([
1460
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1461
+ components.RefusalPartSchema$outboundSchema,
1462
+ components.ReasoningPartSchema$outboundSchema,
1463
+ components.RedactedReasoningPartSchema$outboundSchema,
1464
+ ])),
1465
+ ])).optional(),
1466
+ refusal: z.nullable(z.string()).optional(),
1467
+ role: z.literal("assistant"),
1468
+ name: z.string().optional(),
1469
+ audio: z.nullable(z.lazy(() => exports.GetOnePromptMessagesAudio$outboundSchema))
1470
+ .optional(),
1471
+ toolCalls: z.array(z.lazy(() => exports.GetOnePromptMessagesToolCalls$outboundSchema))
1472
+ .optional(),
1473
+ }).transform((v) => {
1474
+ return (0, primitives_js_1.remap)(v, {
1475
+ toolCalls: "tool_calls",
1476
+ });
1477
+ });
1478
+ function getOnePromptMessagesAssistantMessageToJSON(getOnePromptMessagesAssistantMessage) {
1479
+ return JSON.stringify(exports.GetOnePromptMessagesAssistantMessage$outboundSchema.parse(getOnePromptMessagesAssistantMessage));
1480
+ }
1481
+ function getOnePromptMessagesAssistantMessageFromJSON(jsonString) {
1482
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesAssistantMessage' from JSON`);
1483
+ }
1484
+ /** @internal */
1485
+ exports.GetOnePrompt2PromptsResponse200ApplicationJSONType$inboundSchema = z
1486
+ .nativeEnum(exports.GetOnePrompt2PromptsResponse200ApplicationJSONType);
1487
+ /** @internal */
1488
+ exports.GetOnePrompt2PromptsResponse200ApplicationJSONType$outboundSchema = exports.GetOnePrompt2PromptsResponse200ApplicationJSONType$inboundSchema;
1489
+ /** @internal */
1490
+ exports.GetOnePrompt2Ttl$inboundSchema = z.nativeEnum(exports.GetOnePrompt2Ttl);
1491
+ /** @internal */
1492
+ exports.GetOnePrompt2Ttl$outboundSchema = exports.GetOnePrompt2Ttl$inboundSchema;
1493
+ /** @internal */
1494
+ exports.GetOnePrompt2CacheControl$inboundSchema = z.object({
1495
+ type: exports.GetOnePrompt2PromptsResponse200ApplicationJSONType$inboundSchema,
1496
+ ttl: exports.GetOnePrompt2Ttl$inboundSchema.default("5m"),
1497
+ });
1498
+ /** @internal */
1499
+ exports.GetOnePrompt2CacheControl$outboundSchema = z.object({
1500
+ type: exports.GetOnePrompt2PromptsResponse200ApplicationJSONType$outboundSchema,
1501
+ ttl: exports.GetOnePrompt2Ttl$outboundSchema.default("5m"),
1502
+ });
1503
+ function getOnePrompt2CacheControlToJSON(getOnePrompt2CacheControl) {
1504
+ return JSON.stringify(exports.GetOnePrompt2CacheControl$outboundSchema.parse(getOnePrompt2CacheControl));
1505
+ }
1506
+ function getOnePrompt2CacheControlFromJSON(jsonString) {
1507
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt2CacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt2CacheControl' from JSON`);
1508
+ }
1509
+ /** @internal */
1510
+ exports.GetOnePrompt24$inboundSchema = z.object({
1511
+ type: z.literal("file"),
1512
+ cache_control: z.lazy(() => exports.GetOnePrompt2CacheControl$inboundSchema)
1513
+ .optional(),
1514
+ file: components.FileContentPartSchema$inboundSchema,
1515
+ }).transform((v) => {
1516
+ return (0, primitives_js_1.remap)(v, {
1517
+ "cache_control": "cacheControl",
1518
+ });
1519
+ });
1520
+ /** @internal */
1521
+ exports.GetOnePrompt24$outboundSchema = z.object({
1522
+ type: z.literal("file"),
1523
+ cacheControl: z.lazy(() => exports.GetOnePrompt2CacheControl$outboundSchema)
1524
+ .optional(),
1525
+ file: components.FileContentPartSchema$outboundSchema,
1526
+ }).transform((v) => {
1527
+ return (0, primitives_js_1.remap)(v, {
1528
+ cacheControl: "cache_control",
1529
+ });
1530
+ });
1531
+ function getOnePrompt24ToJSON(getOnePrompt24) {
1532
+ return JSON.stringify(exports.GetOnePrompt24$outboundSchema.parse(getOnePrompt24));
1533
+ }
1534
+ function getOnePrompt24FromJSON(jsonString) {
1535
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePrompt24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePrompt24' from JSON`);
1536
+ }
1537
+ /** @internal */
1538
+ exports.GetOnePromptContentPrompts2$inboundSchema = z.union([
1539
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1540
+ components.ImageContentPartSchema$inboundSchema,
1541
+ components.AudioContentPartSchema$inboundSchema,
1542
+ z.lazy(() => exports.GetOnePrompt24$inboundSchema),
1543
+ ]);
1544
+ /** @internal */
1545
+ exports.GetOnePromptContentPrompts2$outboundSchema = z.union([
1546
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1547
+ components.ImageContentPartSchema$outboundSchema,
1548
+ components.AudioContentPartSchema$outboundSchema,
1549
+ z.lazy(() => exports.GetOnePrompt24$outboundSchema),
1550
+ ]);
1551
+ function getOnePromptContentPrompts2ToJSON(getOnePromptContentPrompts2) {
1552
+ return JSON.stringify(exports.GetOnePromptContentPrompts2$outboundSchema.parse(getOnePromptContentPrompts2));
1553
+ }
1554
+ function getOnePromptContentPrompts2FromJSON(jsonString) {
1555
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptContentPrompts2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptContentPrompts2' from JSON`);
1556
+ }
1557
+ /** @internal */
1558
+ exports.GetOnePromptMessagesPromptsContent$inboundSchema = z.union([
1559
+ z.string(),
1560
+ z.array(z.union([
1561
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1562
+ components.ImageContentPartSchema$inboundSchema,
1563
+ components.AudioContentPartSchema$inboundSchema,
1564
+ z.lazy(() => exports.GetOnePrompt24$inboundSchema),
1565
+ ])),
1566
+ ]);
1567
+ /** @internal */
1568
+ exports.GetOnePromptMessagesPromptsContent$outboundSchema = z.union([
1569
+ z.string(),
1570
+ z.array(z.union([
1571
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1572
+ components.ImageContentPartSchema$outboundSchema,
1573
+ components.AudioContentPartSchema$outboundSchema,
1574
+ z.lazy(() => exports.GetOnePrompt24$outboundSchema),
1575
+ ])),
1576
+ ]);
1577
+ function getOnePromptMessagesPromptsContentToJSON(getOnePromptMessagesPromptsContent) {
1578
+ return JSON.stringify(exports.GetOnePromptMessagesPromptsContent$outboundSchema.parse(getOnePromptMessagesPromptsContent));
1579
+ }
1580
+ function getOnePromptMessagesPromptsContentFromJSON(jsonString) {
1581
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesPromptsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesPromptsContent' from JSON`);
1582
+ }
1583
+ /** @internal */
1584
+ exports.GetOnePromptMessagesUserMessage$inboundSchema = z.object({
1585
+ role: z.literal("user"),
1586
+ name: z.string().optional(),
1587
+ content: z.union([
1588
+ z.string(),
1589
+ z.array(z.union([
1590
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1591
+ components.ImageContentPartSchema$inboundSchema,
1592
+ components.AudioContentPartSchema$inboundSchema,
1593
+ z.lazy(() => exports.GetOnePrompt24$inboundSchema),
1594
+ ])),
1595
+ ]),
1596
+ });
1597
+ /** @internal */
1598
+ exports.GetOnePromptMessagesUserMessage$outboundSchema = z.object({
1599
+ role: z.literal("user"),
1600
+ name: z.string().optional(),
1601
+ content: z.union([
1602
+ z.string(),
1603
+ z.array(z.union([
1604
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1605
+ components.ImageContentPartSchema$outboundSchema,
1606
+ components.AudioContentPartSchema$outboundSchema,
1607
+ z.lazy(() => exports.GetOnePrompt24$outboundSchema),
1608
+ ])),
1609
+ ]),
1610
+ });
1611
+ function getOnePromptMessagesUserMessageToJSON(getOnePromptMessagesUserMessage) {
1612
+ return JSON.stringify(exports.GetOnePromptMessagesUserMessage$outboundSchema.parse(getOnePromptMessagesUserMessage));
1613
+ }
1614
+ function getOnePromptMessagesUserMessageFromJSON(jsonString) {
1615
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesUserMessage' from JSON`);
1616
+ }
1617
+ /** @internal */
1618
+ exports.GetOnePromptMessagesContent$inboundSchema = z.union([
1619
+ z.string(),
1620
+ z.array(components.TextContentPartSchema$inboundSchema),
1621
+ ]);
1622
+ /** @internal */
1623
+ exports.GetOnePromptMessagesContent$outboundSchema = z.union([
1624
+ z.string(),
1625
+ z.array(components.TextContentPartSchema$outboundSchema),
1626
+ ]);
1627
+ function getOnePromptMessagesContentToJSON(getOnePromptMessagesContent) {
1628
+ return JSON.stringify(exports.GetOnePromptMessagesContent$outboundSchema.parse(getOnePromptMessagesContent));
1629
+ }
1630
+ function getOnePromptMessagesContentFromJSON(jsonString) {
1631
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesContent' from JSON`);
1632
+ }
1633
+ /** @internal */
1634
+ exports.GetOnePromptMessagesSystemMessage$inboundSchema = z.object({
1635
+ role: z.literal("system"),
1636
+ content: z.union([
1637
+ z.string(),
1638
+ z.array(components.TextContentPartSchema$inboundSchema),
1639
+ ]),
1640
+ name: z.string().optional(),
1641
+ });
1642
+ /** @internal */
1643
+ exports.GetOnePromptMessagesSystemMessage$outboundSchema = z.object({
1644
+ role: z.literal("system"),
1645
+ content: z.union([
1646
+ z.string(),
1647
+ z.array(components.TextContentPartSchema$outboundSchema),
1648
+ ]),
1649
+ name: z.string().optional(),
1650
+ });
1651
+ function getOnePromptMessagesSystemMessageToJSON(getOnePromptMessagesSystemMessage) {
1652
+ return JSON.stringify(exports.GetOnePromptMessagesSystemMessage$outboundSchema.parse(getOnePromptMessagesSystemMessage));
1653
+ }
1654
+ function getOnePromptMessagesSystemMessageFromJSON(jsonString) {
1655
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptMessagesSystemMessage' from JSON`);
1656
+ }
1657
+ /** @internal */
1658
+ exports.GetOnePromptPromptsMessages$inboundSchema = z.union([
1659
+ z.lazy(() => exports.GetOnePromptMessagesSystemMessage$inboundSchema),
1660
+ z.lazy(() => exports.GetOnePromptMessagesUserMessage$inboundSchema),
1661
+ z.lazy(() => exports.GetOnePromptMessagesAssistantMessage$inboundSchema),
1662
+ z.lazy(() => exports.GetOnePromptMessagesToolMessage$inboundSchema),
1663
+ ]);
1664
+ /** @internal */
1665
+ exports.GetOnePromptPromptsMessages$outboundSchema = z.union([
1666
+ z.lazy(() => exports.GetOnePromptMessagesSystemMessage$outboundSchema),
1667
+ z.lazy(() => exports.GetOnePromptMessagesUserMessage$outboundSchema),
1668
+ z.lazy(() => exports.GetOnePromptMessagesAssistantMessage$outboundSchema),
1669
+ z.lazy(() => exports.GetOnePromptMessagesToolMessage$outboundSchema),
1670
+ ]);
1671
+ function getOnePromptPromptsMessagesToJSON(getOnePromptPromptsMessages) {
1672
+ return JSON.stringify(exports.GetOnePromptPromptsMessages$outboundSchema.parse(getOnePromptPromptsMessages));
1673
+ }
1674
+ function getOnePromptPromptsMessagesFromJSON(jsonString) {
1675
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptPromptsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptPromptsMessages' from JSON`);
1676
+ }
1677
+ /** @internal */
1678
+ exports.GetOnePromptPromptField$inboundSchema = z.object({
1679
+ audio: z.nullable(z.lazy(() => exports.GetOnePromptAudio$inboundSchema)).optional(),
1680
+ frequency_penalty: z.nullable(z.number()).optional(),
1681
+ max_tokens: z.nullable(z.number().int()).optional(),
1682
+ max_completion_tokens: z.nullable(z.number().int()).optional(),
1683
+ logprobs: z.nullable(z.boolean()).optional(),
1684
+ top_logprobs: z.nullable(z.number().int()).optional(),
1685
+ n: z.nullable(z.number().int()).optional(),
1686
+ presence_penalty: z.nullable(z.number()).optional(),
1687
+ response_format: z.union([
1688
+ z.lazy(() => exports.GetOnePromptResponseFormatText$inboundSchema),
1689
+ z.lazy(() => exports.GetOnePromptResponseFormatJSONObject$inboundSchema),
1690
+ z.lazy(() => exports.GetOnePromptResponseFormatPromptsJSONSchema$inboundSchema),
1691
+ ]).optional(),
1692
+ reasoning_effort: exports.GetOnePromptReasoningEffort$inboundSchema.optional(),
1693
+ verbosity: z.string().optional(),
1694
+ seed: z.nullable(z.number()).optional(),
1695
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
1696
+ stream_options: z.nullable(z.lazy(() => exports.GetOnePromptStreamOptions$inboundSchema)).optional(),
1697
+ thinking: z.union([
1698
+ components.ThinkingConfigDisabledSchema$inboundSchema,
1699
+ components.ThinkingConfigEnabledSchema$inboundSchema,
1700
+ ]).optional(),
1701
+ temperature: z.nullable(z.number()).optional(),
1702
+ top_p: z.nullable(z.number()).optional(),
1703
+ top_k: z.nullable(z.number()).optional(),
1704
+ tool_choice: z.union([
1705
+ z.lazy(() => exports.GetOnePromptToolChoice2$inboundSchema),
1706
+ exports.GetOnePromptToolChoice1$inboundSchema,
1707
+ ]).optional(),
1708
+ parallel_tool_calls: z.boolean().optional(),
1709
+ modalities: z.nullable(z.array(exports.GetOnePromptModalities$inboundSchema))
1710
+ .optional(),
1711
+ guardrails: z.array(z.lazy(() => exports.GetOnePromptGuardrails$inboundSchema))
1712
+ .optional(),
1713
+ messages: z.array(z.union([
1714
+ z.lazy(() => exports.GetOnePromptMessagesSystemMessage$inboundSchema),
1715
+ z.lazy(() => exports.GetOnePromptMessagesUserMessage$inboundSchema),
1716
+ z.lazy(() => exports.GetOnePromptMessagesAssistantMessage$inboundSchema),
1717
+ z.lazy(() => exports.GetOnePromptMessagesToolMessage$inboundSchema),
1718
+ ])).optional(),
1719
+ model: z.nullable(z.string()).optional(),
1720
+ version: z.string().optional(),
1721
+ }).transform((v) => {
1722
+ return (0, primitives_js_1.remap)(v, {
1723
+ "frequency_penalty": "frequencyPenalty",
1724
+ "max_tokens": "maxTokens",
1725
+ "max_completion_tokens": "maxCompletionTokens",
1726
+ "top_logprobs": "topLogprobs",
1727
+ "presence_penalty": "presencePenalty",
1728
+ "response_format": "responseFormat",
1729
+ "reasoning_effort": "reasoningEffort",
1730
+ "stream_options": "streamOptions",
1731
+ "top_p": "topP",
1732
+ "top_k": "topK",
1733
+ "tool_choice": "toolChoice",
1734
+ "parallel_tool_calls": "parallelToolCalls",
1735
+ });
1736
+ });
1737
+ /** @internal */
1738
+ exports.GetOnePromptPromptField$outboundSchema = z.object({
1739
+ audio: z.nullable(z.lazy(() => exports.GetOnePromptAudio$outboundSchema)).optional(),
1740
+ frequencyPenalty: z.nullable(z.number()).optional(),
1741
+ maxTokens: z.nullable(z.number().int()).optional(),
1742
+ maxCompletionTokens: z.nullable(z.number().int()).optional(),
1743
+ logprobs: z.nullable(z.boolean()).optional(),
1744
+ topLogprobs: z.nullable(z.number().int()).optional(),
1745
+ n: z.nullable(z.number().int()).optional(),
1746
+ presencePenalty: z.nullable(z.number()).optional(),
1747
+ responseFormat: z.union([
1748
+ z.lazy(() => exports.GetOnePromptResponseFormatText$outboundSchema),
1749
+ z.lazy(() => exports.GetOnePromptResponseFormatJSONObject$outboundSchema),
1750
+ z.lazy(() => exports.GetOnePromptResponseFormatPromptsJSONSchema$outboundSchema),
1751
+ ]).optional(),
1752
+ reasoningEffort: exports.GetOnePromptReasoningEffort$outboundSchema.optional(),
1753
+ verbosity: z.string().optional(),
1754
+ seed: z.nullable(z.number()).optional(),
1755
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
1756
+ streamOptions: z.nullable(z.lazy(() => exports.GetOnePromptStreamOptions$outboundSchema)).optional(),
1757
+ thinking: z.union([
1758
+ components.ThinkingConfigDisabledSchema$outboundSchema,
1759
+ components.ThinkingConfigEnabledSchema$outboundSchema,
1760
+ ]).optional(),
1761
+ temperature: z.nullable(z.number()).optional(),
1762
+ topP: z.nullable(z.number()).optional(),
1763
+ topK: z.nullable(z.number()).optional(),
1764
+ toolChoice: z.union([
1765
+ z.lazy(() => exports.GetOnePromptToolChoice2$outboundSchema),
1766
+ exports.GetOnePromptToolChoice1$outboundSchema,
1767
+ ]).optional(),
1768
+ parallelToolCalls: z.boolean().optional(),
1769
+ modalities: z.nullable(z.array(exports.GetOnePromptModalities$outboundSchema))
1770
+ .optional(),
1771
+ guardrails: z.array(z.lazy(() => exports.GetOnePromptGuardrails$outboundSchema))
1772
+ .optional(),
1773
+ messages: z.array(z.union([
1774
+ z.lazy(() => exports.GetOnePromptMessagesSystemMessage$outboundSchema),
1775
+ z.lazy(() => exports.GetOnePromptMessagesUserMessage$outboundSchema),
1776
+ z.lazy(() => exports.GetOnePromptMessagesAssistantMessage$outboundSchema),
1777
+ z.lazy(() => exports.GetOnePromptMessagesToolMessage$outboundSchema),
1778
+ ])).optional(),
1779
+ model: z.nullable(z.string()).optional(),
1780
+ version: z.string().optional(),
1781
+ }).transform((v) => {
1782
+ return (0, primitives_js_1.remap)(v, {
1783
+ frequencyPenalty: "frequency_penalty",
1784
+ maxTokens: "max_tokens",
1785
+ maxCompletionTokens: "max_completion_tokens",
1786
+ topLogprobs: "top_logprobs",
1787
+ presencePenalty: "presence_penalty",
1788
+ responseFormat: "response_format",
1789
+ reasoningEffort: "reasoning_effort",
1790
+ streamOptions: "stream_options",
1791
+ topP: "top_p",
1792
+ topK: "top_k",
1793
+ toolChoice: "tool_choice",
1794
+ parallelToolCalls: "parallel_tool_calls",
1795
+ });
1796
+ });
1797
+ function getOnePromptPromptFieldToJSON(getOnePromptPromptField) {
1798
+ return JSON.stringify(exports.GetOnePromptPromptField$outboundSchema.parse(getOnePromptPromptField));
1799
+ }
1800
+ function getOnePromptPromptFieldFromJSON(jsonString) {
1801
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetOnePromptPromptField$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetOnePromptPromptField' from JSON`);
1802
+ }
1803
+ /** @internal */
784
1804
  exports.GetOnePromptUseCases$inboundSchema = z.nativeEnum(exports.GetOnePromptUseCases);
785
1805
  /** @internal */
786
1806
  exports.GetOnePromptUseCases$outboundSchema = exports.GetOnePromptUseCases$inboundSchema;
@@ -824,7 +1844,9 @@ exports.GetOnePromptPrompt$inboundSchema = z.object({
824
1844
  updated_by_id: z.nullable(z.string()).optional(),
825
1845
  display_name: z.string(),
826
1846
  description: z.nullable(z.string()).optional(),
827
- prompt_config: z.lazy(() => exports.GetOnePromptPromptConfig$inboundSchema),
1847
+ prompt_config: z.lazy(() => exports.GetOnePromptPromptConfig$inboundSchema)
1848
+ .optional(),
1849
+ prompt: z.lazy(() => exports.GetOnePromptPromptField$inboundSchema),
828
1850
  metadata: z.lazy(() => exports.GetOnePromptMetadata$inboundSchema).optional(),
829
1851
  }).transform((v) => {
830
1852
  return (0, primitives_js_1.remap)(v, {
@@ -848,7 +1870,9 @@ exports.GetOnePromptPrompt$outboundSchema = z.object({
848
1870
  updatedById: z.nullable(z.string()).optional(),
849
1871
  displayName: z.string(),
850
1872
  description: z.nullable(z.string()).optional(),
851
- promptConfig: z.lazy(() => exports.GetOnePromptPromptConfig$outboundSchema),
1873
+ promptConfig: z.lazy(() => exports.GetOnePromptPromptConfig$outboundSchema)
1874
+ .optional(),
1875
+ prompt: z.lazy(() => exports.GetOnePromptPromptField$outboundSchema),
852
1876
  metadata: z.lazy(() => exports.GetOnePromptMetadata$outboundSchema).optional(),
853
1877
  }).transform((v) => {
854
1878
  return (0, primitives_js_1.remap)(v, {