@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,21 +36,23 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.GetAllPromptsResponseFormat1$outboundSchema = exports.GetAllPromptsResponseFormat1$inboundSchema = exports.GetAllPromptsResponseFormatJsonSchema$outboundSchema = exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema = exports.GetAllPromptsResponseFormatType$outboundSchema = exports.GetAllPromptsResponseFormatType$inboundSchema = exports.GetAllPromptsResponseFormat2$outboundSchema = exports.GetAllPromptsResponseFormat2$inboundSchema = exports.GetAllPromptsResponseFormatPromptsType$outboundSchema = exports.GetAllPromptsResponseFormatPromptsType$inboundSchema = exports.GetAllPromptsResponseFormat3$outboundSchema = exports.GetAllPromptsResponseFormat3$inboundSchema = exports.GetAllPromptsResponseFormatPromptsResponseType$outboundSchema = exports.GetAllPromptsResponseFormatPromptsResponseType$inboundSchema = exports.GetAllPromptsResponseFormat4$outboundSchema = exports.GetAllPromptsResponseFormat4$inboundSchema = exports.GetAllPromptsResponseFormat5$outboundSchema = exports.GetAllPromptsResponseFormat5$inboundSchema = exports.GetAllPromptsResponseFormat6$outboundSchema = exports.GetAllPromptsResponseFormat6$inboundSchema = exports.GetAllPromptsFormat$outboundSchema = exports.GetAllPromptsFormat$inboundSchema = exports.GetAllPromptsModelType$outboundSchema = exports.GetAllPromptsModelType$inboundSchema = exports.GetAllPromptsType$outboundSchema = exports.GetAllPromptsType$inboundSchema = exports.GetAllPromptsObject$outboundSchema = exports.GetAllPromptsObject$inboundSchema = exports.GetAllPromptsRequest$outboundSchema = exports.GetAllPromptsRequest$inboundSchema = exports.GetAllPromptsLanguage = exports.GetAllPromptsUseCases = exports.GetAllPromptsPromptsType = exports.GetAllPromptsRole = exports.GetAllPromptsProvider = exports.GetAllPromptsThinkingLevel = exports.GetAllPromptsVerbosity = exports.GetAllPromptsReasoningEffort = exports.GetAllPromptsEncodingFormat = exports.GetAllPromptsPhotoRealVersion = exports.GetAllPromptsResponseFormatType = exports.GetAllPromptsResponseFormatPromptsType = exports.GetAllPromptsResponseFormatPromptsResponseType = exports.GetAllPromptsResponseFormat4 = exports.GetAllPromptsResponseFormat5 = exports.GetAllPromptsResponseFormat6 = exports.GetAllPromptsFormat = exports.GetAllPromptsModelType = exports.GetAllPromptsType = exports.GetAllPromptsObject = void 0;
40
- exports.GetAllPromptsPrompt$outboundSchema = exports.GetAllPromptsPrompt$inboundSchema = exports.GetAllPromptsMetadata$outboundSchema = exports.GetAllPromptsMetadata$inboundSchema = exports.GetAllPromptsLanguage$outboundSchema = exports.GetAllPromptsLanguage$inboundSchema = exports.GetAllPromptsUseCases$outboundSchema = exports.GetAllPromptsUseCases$inboundSchema = exports.GetAllPromptsPromptConfig$outboundSchema = exports.GetAllPromptsPromptConfig$inboundSchema = exports.GetAllPromptsMessages$outboundSchema = exports.GetAllPromptsMessages$inboundSchema = exports.GetAllPromptsToolCalls$outboundSchema = exports.GetAllPromptsToolCalls$inboundSchema = exports.GetAllPromptsFunction$outboundSchema = exports.GetAllPromptsFunction$inboundSchema = exports.GetAllPromptsPromptsType$outboundSchema = exports.GetAllPromptsPromptsType$inboundSchema = exports.GetAllPromptsContent$outboundSchema = exports.GetAllPromptsContent$inboundSchema = exports.GetAllPromptsContent2$outboundSchema = exports.GetAllPromptsContent2$inboundSchema = exports.GetAllPrompts21$outboundSchema = exports.GetAllPrompts21$inboundSchema = exports.GetAllPrompts22$outboundSchema = exports.GetAllPrompts22$inboundSchema = exports.GetAllPrompts2ImageUrl$outboundSchema = exports.GetAllPrompts2ImageUrl$inboundSchema = exports.GetAllPrompts23$outboundSchema = exports.GetAllPrompts23$inboundSchema = exports.GetAllPrompts2File$outboundSchema = exports.GetAllPrompts2File$inboundSchema = exports.GetAllPromptsRole$outboundSchema = exports.GetAllPromptsRole$inboundSchema = exports.GetAllPromptsProvider$outboundSchema = exports.GetAllPromptsProvider$inboundSchema = exports.GetAllPromptsModelParameters$outboundSchema = exports.GetAllPromptsModelParameters$inboundSchema = exports.GetAllPromptsThinkingLevel$outboundSchema = exports.GetAllPromptsThinkingLevel$inboundSchema = exports.GetAllPromptsVerbosity$outboundSchema = exports.GetAllPromptsVerbosity$inboundSchema = exports.GetAllPromptsReasoningEffort$outboundSchema = exports.GetAllPromptsReasoningEffort$inboundSchema = exports.GetAllPromptsEncodingFormat$outboundSchema = exports.GetAllPromptsEncodingFormat$inboundSchema = exports.GetAllPromptsPhotoRealVersion$outboundSchema = exports.GetAllPromptsPhotoRealVersion$inboundSchema = exports.GetAllPromptsResponseFormat$outboundSchema = exports.GetAllPromptsResponseFormat$inboundSchema = void 0;
41
- exports.GetAllPromptsResponseBody$outboundSchema = exports.GetAllPromptsResponseBody$inboundSchema = void 0;
39
+ exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.GetAllPromptsResponseFormat4$outboundSchema = exports.GetAllPromptsResponseFormat4$inboundSchema = exports.GetAllPromptsResponseFormat5$outboundSchema = exports.GetAllPromptsResponseFormat5$inboundSchema = exports.GetAllPromptsResponseFormat6$outboundSchema = exports.GetAllPromptsResponseFormat6$inboundSchema = exports.GetAllPromptsFormat$outboundSchema = exports.GetAllPromptsFormat$inboundSchema = exports.GetAllPromptsModelType$outboundSchema = exports.GetAllPromptsModelType$inboundSchema = exports.GetAllPromptsType$outboundSchema = exports.GetAllPromptsType$inboundSchema = exports.GetAllPromptsObject$outboundSchema = exports.GetAllPromptsObject$inboundSchema = exports.GetAllPromptsRequest$outboundSchema = exports.GetAllPromptsRequest$inboundSchema = exports.GetAllPromptsLanguage = exports.GetAllPromptsUseCases = exports.GetAllPrompts2Ttl = exports.GetAllPrompts2PromptsResponse200ApplicationJSONType = exports.GetAllPromptsMessagesType = exports.GetAllPromptsMessagesTtl = exports.GetAllPromptsMessagesPromptsType = exports.GetAllPromptsExecuteOn = exports.GetAllPromptsId1 = exports.GetAllPromptsModalities = exports.GetAllPromptsToolChoice1 = exports.GetAllPromptsToolChoiceType = exports.GetAllPromptsReasoningEffort = exports.GetAllPromptsPromptsFormat = exports.GetAllPromptsVoice = exports.GetAllPromptsPromptsType = exports.GetAllPromptsRole = exports.GetAllPromptsProvider = exports.GetAllPromptsThinkingLevel = exports.GetAllPromptsVerbosity = exports.GetAllPromptsPromptsReasoningEffort = exports.GetAllPromptsEncodingFormat = exports.GetAllPromptsPhotoRealVersion = exports.GetAllPromptsResponseFormatPromptsResponse200Type = exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType = exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = exports.GetAllPromptsResponseFormat4 = exports.GetAllPromptsResponseFormat5 = exports.GetAllPromptsResponseFormat6 = exports.GetAllPromptsFormat = exports.GetAllPromptsModelType = exports.GetAllPromptsType = exports.GetAllPromptsObject = void 0;
40
+ exports.GetAllPromptsToolCalls$inboundSchema = exports.GetAllPromptsFunction$outboundSchema = exports.GetAllPromptsFunction$inboundSchema = exports.GetAllPromptsPromptsType$outboundSchema = exports.GetAllPromptsPromptsType$inboundSchema = exports.GetAllPromptsContent$outboundSchema = exports.GetAllPromptsContent$inboundSchema = exports.GetAllPromptsContent2$outboundSchema = exports.GetAllPromptsContent2$inboundSchema = exports.GetAllPrompts21$outboundSchema = exports.GetAllPrompts21$inboundSchema = exports.GetAllPrompts22$outboundSchema = exports.GetAllPrompts22$inboundSchema = exports.GetAllPrompts2ImageUrl$outboundSchema = exports.GetAllPrompts2ImageUrl$inboundSchema = exports.GetAllPrompts23$outboundSchema = exports.GetAllPrompts23$inboundSchema = exports.GetAllPrompts2File$outboundSchema = exports.GetAllPrompts2File$inboundSchema = exports.GetAllPromptsRole$outboundSchema = exports.GetAllPromptsRole$inboundSchema = exports.GetAllPromptsProvider$outboundSchema = exports.GetAllPromptsProvider$inboundSchema = exports.GetAllPromptsModelParameters$outboundSchema = exports.GetAllPromptsModelParameters$inboundSchema = exports.GetAllPromptsThinkingLevel$outboundSchema = exports.GetAllPromptsThinkingLevel$inboundSchema = exports.GetAllPromptsVerbosity$outboundSchema = exports.GetAllPromptsVerbosity$inboundSchema = exports.GetAllPromptsPromptsReasoningEffort$outboundSchema = exports.GetAllPromptsPromptsReasoningEffort$inboundSchema = exports.GetAllPromptsEncodingFormat$outboundSchema = exports.GetAllPromptsEncodingFormat$inboundSchema = exports.GetAllPromptsPhotoRealVersion$outboundSchema = exports.GetAllPromptsPhotoRealVersion$inboundSchema = exports.GetAllPromptsPromptsResponseFormat$outboundSchema = exports.GetAllPromptsPromptsResponseFormat$inboundSchema = exports.GetAllPromptsResponseFormat1$outboundSchema = exports.GetAllPromptsResponseFormat1$inboundSchema = exports.GetAllPromptsResponseFormatPromptsResponseJsonSchema$outboundSchema = exports.GetAllPromptsResponseFormatPromptsResponseJsonSchema$inboundSchema = exports.GetAllPromptsResponseFormatPromptsResponse200Type$outboundSchema = exports.GetAllPromptsResponseFormatPromptsResponse200Type$inboundSchema = exports.GetAllPromptsResponseFormat2$outboundSchema = exports.GetAllPromptsResponseFormat2$inboundSchema = exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema = exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = exports.GetAllPromptsResponseFormat3$outboundSchema = exports.GetAllPromptsResponseFormat3$inboundSchema = exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema = void 0;
41
+ exports.GetAllPromptsContentPromptsResponse2002$inboundSchema = exports.GetAllPromptsGuardrails$outboundSchema = exports.GetAllPromptsGuardrails$inboundSchema = exports.GetAllPromptsExecuteOn$outboundSchema = exports.GetAllPromptsExecuteOn$inboundSchema = exports.GetAllPromptsId$outboundSchema = exports.GetAllPromptsId$inboundSchema = exports.GetAllPromptsId1$outboundSchema = exports.GetAllPromptsId1$inboundSchema = exports.GetAllPromptsModalities$outboundSchema = exports.GetAllPromptsModalities$inboundSchema = exports.GetAllPromptsToolChoice$outboundSchema = exports.GetAllPromptsToolChoice$inboundSchema = exports.GetAllPromptsToolChoice1$outboundSchema = exports.GetAllPromptsToolChoice1$inboundSchema = exports.GetAllPromptsToolChoice2$outboundSchema = exports.GetAllPromptsToolChoice2$inboundSchema = exports.GetAllPromptsToolChoiceFunction$outboundSchema = exports.GetAllPromptsToolChoiceFunction$inboundSchema = exports.GetAllPromptsToolChoiceType$outboundSchema = exports.GetAllPromptsToolChoiceType$inboundSchema = exports.GetAllPromptsThinking$outboundSchema = exports.GetAllPromptsThinking$inboundSchema = exports.GetAllPromptsStreamOptions$outboundSchema = exports.GetAllPromptsStreamOptions$inboundSchema = exports.GetAllPromptsStop$outboundSchema = exports.GetAllPromptsStop$inboundSchema = exports.GetAllPromptsReasoningEffort$outboundSchema = exports.GetAllPromptsReasoningEffort$inboundSchema = exports.GetAllPromptsResponseFormat$outboundSchema = exports.GetAllPromptsResponseFormat$inboundSchema = exports.GetAllPromptsResponseFormatText$outboundSchema = exports.GetAllPromptsResponseFormatText$inboundSchema = exports.GetAllPromptsResponseFormatJSONObject$outboundSchema = exports.GetAllPromptsResponseFormatJSONObject$inboundSchema = exports.GetAllPromptsResponseFormatPromptsJSONSchema$outboundSchema = exports.GetAllPromptsResponseFormatPromptsJSONSchema$inboundSchema = exports.GetAllPromptsResponseFormatJsonSchema$outboundSchema = exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema = exports.GetAllPromptsAudio$outboundSchema = exports.GetAllPromptsAudio$inboundSchema = exports.GetAllPromptsPromptsFormat$outboundSchema = exports.GetAllPromptsPromptsFormat$inboundSchema = exports.GetAllPromptsVoice$outboundSchema = exports.GetAllPromptsVoice$inboundSchema = exports.GetAllPromptsPromptConfig$outboundSchema = exports.GetAllPromptsPromptConfig$inboundSchema = exports.GetAllPromptsMessages$outboundSchema = exports.GetAllPromptsMessages$inboundSchema = exports.GetAllPromptsToolCalls$outboundSchema = void 0;
42
+ exports.GetAllPromptsLanguage$inboundSchema = exports.GetAllPromptsUseCases$outboundSchema = exports.GetAllPromptsUseCases$inboundSchema = exports.GetAllPromptsPromptField$outboundSchema = exports.GetAllPromptsPromptField$inboundSchema = exports.GetAllPromptsPromptsMessages$outboundSchema = exports.GetAllPromptsPromptsMessages$inboundSchema = exports.GetAllPromptsMessagesSystemMessage$outboundSchema = exports.GetAllPromptsMessagesSystemMessage$inboundSchema = exports.GetAllPromptsMessagesContent$outboundSchema = exports.GetAllPromptsMessagesContent$inboundSchema = exports.GetAllPromptsMessagesUserMessage$outboundSchema = exports.GetAllPromptsMessagesUserMessage$inboundSchema = exports.GetAllPromptsMessagesPromptsContent$outboundSchema = exports.GetAllPromptsMessagesPromptsContent$inboundSchema = exports.GetAllPromptsContentPrompts2$outboundSchema = exports.GetAllPromptsContentPrompts2$inboundSchema = exports.GetAllPrompts24$outboundSchema = exports.GetAllPrompts24$inboundSchema = exports.GetAllPrompts2CacheControl$outboundSchema = exports.GetAllPrompts2CacheControl$inboundSchema = exports.GetAllPrompts2Ttl$outboundSchema = exports.GetAllPrompts2Ttl$inboundSchema = exports.GetAllPrompts2PromptsResponse200ApplicationJSONType$outboundSchema = exports.GetAllPrompts2PromptsResponse200ApplicationJSONType$inboundSchema = exports.GetAllPromptsMessagesAssistantMessage$outboundSchema = exports.GetAllPromptsMessagesAssistantMessage$inboundSchema = exports.GetAllPromptsMessagesToolCalls$outboundSchema = exports.GetAllPromptsMessagesToolCalls$inboundSchema = exports.GetAllPromptsMessagesFunction$outboundSchema = exports.GetAllPromptsMessagesFunction$inboundSchema = exports.GetAllPromptsMessagesType$outboundSchema = exports.GetAllPromptsMessagesType$inboundSchema = exports.GetAllPromptsMessagesAudio$outboundSchema = exports.GetAllPromptsMessagesAudio$inboundSchema = exports.GetAllPromptsMessagesPromptsResponseContent$outboundSchema = exports.GetAllPromptsMessagesPromptsResponseContent$inboundSchema = exports.GetAllPromptsContentPromptsResponse2$outboundSchema = exports.GetAllPromptsContentPromptsResponse2$inboundSchema = exports.GetAllPromptsMessagesToolMessage$outboundSchema = exports.GetAllPromptsMessagesToolMessage$inboundSchema = exports.GetAllPromptsMessagesCacheControl$outboundSchema = exports.GetAllPromptsMessagesCacheControl$inboundSchema = exports.GetAllPromptsMessagesTtl$outboundSchema = exports.GetAllPromptsMessagesTtl$inboundSchema = exports.GetAllPromptsMessagesPromptsType$outboundSchema = exports.GetAllPromptsMessagesPromptsType$inboundSchema = exports.GetAllPromptsMessagesPromptsResponse200Content$outboundSchema = exports.GetAllPromptsMessagesPromptsResponse200Content$inboundSchema = exports.GetAllPromptsContentPromptsResponse2002$outboundSchema = void 0;
43
+ exports.GetAllPromptsResponseBody$outboundSchema = exports.GetAllPromptsResponseBody$inboundSchema = exports.GetAllPromptsPrompt$outboundSchema = exports.GetAllPromptsPrompt$inboundSchema = exports.GetAllPromptsMetadata$outboundSchema = exports.GetAllPromptsMetadata$inboundSchema = exports.GetAllPromptsLanguage$outboundSchema = void 0;
42
44
  exports.getAllPromptsRequestToJSON = getAllPromptsRequestToJSON;
43
45
  exports.getAllPromptsRequestFromJSON = getAllPromptsRequestFromJSON;
44
46
  exports.getAllPromptsResponseFormat3ToJSON = getAllPromptsResponseFormat3ToJSON;
45
47
  exports.getAllPromptsResponseFormat3FromJSON = getAllPromptsResponseFormat3FromJSON;
46
48
  exports.getAllPromptsResponseFormat2ToJSON = getAllPromptsResponseFormat2ToJSON;
47
49
  exports.getAllPromptsResponseFormat2FromJSON = getAllPromptsResponseFormat2FromJSON;
48
- exports.getAllPromptsResponseFormatJsonSchemaToJSON = getAllPromptsResponseFormatJsonSchemaToJSON;
49
- exports.getAllPromptsResponseFormatJsonSchemaFromJSON = getAllPromptsResponseFormatJsonSchemaFromJSON;
50
+ exports.getAllPromptsResponseFormatPromptsResponseJsonSchemaToJSON = getAllPromptsResponseFormatPromptsResponseJsonSchemaToJSON;
51
+ exports.getAllPromptsResponseFormatPromptsResponseJsonSchemaFromJSON = getAllPromptsResponseFormatPromptsResponseJsonSchemaFromJSON;
50
52
  exports.getAllPromptsResponseFormat1ToJSON = getAllPromptsResponseFormat1ToJSON;
51
53
  exports.getAllPromptsResponseFormat1FromJSON = getAllPromptsResponseFormat1FromJSON;
52
- exports.getAllPromptsResponseFormatToJSON = getAllPromptsResponseFormatToJSON;
53
- exports.getAllPromptsResponseFormatFromJSON = getAllPromptsResponseFormatFromJSON;
54
+ exports.getAllPromptsPromptsResponseFormatToJSON = getAllPromptsPromptsResponseFormatToJSON;
55
+ exports.getAllPromptsPromptsResponseFormatFromJSON = getAllPromptsPromptsResponseFormatFromJSON;
54
56
  exports.getAllPromptsModelParametersToJSON = getAllPromptsModelParametersToJSON;
55
57
  exports.getAllPromptsModelParametersFromJSON = getAllPromptsModelParametersFromJSON;
56
58
  exports.getAllPrompts2FileToJSON = getAllPrompts2FileToJSON;
@@ -75,6 +77,72 @@ exports.getAllPromptsMessagesToJSON = getAllPromptsMessagesToJSON;
75
77
  exports.getAllPromptsMessagesFromJSON = getAllPromptsMessagesFromJSON;
76
78
  exports.getAllPromptsPromptConfigToJSON = getAllPromptsPromptConfigToJSON;
77
79
  exports.getAllPromptsPromptConfigFromJSON = getAllPromptsPromptConfigFromJSON;
80
+ exports.getAllPromptsAudioToJSON = getAllPromptsAudioToJSON;
81
+ exports.getAllPromptsAudioFromJSON = getAllPromptsAudioFromJSON;
82
+ exports.getAllPromptsResponseFormatJsonSchemaToJSON = getAllPromptsResponseFormatJsonSchemaToJSON;
83
+ exports.getAllPromptsResponseFormatJsonSchemaFromJSON = getAllPromptsResponseFormatJsonSchemaFromJSON;
84
+ exports.getAllPromptsResponseFormatPromptsJSONSchemaToJSON = getAllPromptsResponseFormatPromptsJSONSchemaToJSON;
85
+ exports.getAllPromptsResponseFormatPromptsJSONSchemaFromJSON = getAllPromptsResponseFormatPromptsJSONSchemaFromJSON;
86
+ exports.getAllPromptsResponseFormatJSONObjectToJSON = getAllPromptsResponseFormatJSONObjectToJSON;
87
+ exports.getAllPromptsResponseFormatJSONObjectFromJSON = getAllPromptsResponseFormatJSONObjectFromJSON;
88
+ exports.getAllPromptsResponseFormatTextToJSON = getAllPromptsResponseFormatTextToJSON;
89
+ exports.getAllPromptsResponseFormatTextFromJSON = getAllPromptsResponseFormatTextFromJSON;
90
+ exports.getAllPromptsResponseFormatToJSON = getAllPromptsResponseFormatToJSON;
91
+ exports.getAllPromptsResponseFormatFromJSON = getAllPromptsResponseFormatFromJSON;
92
+ exports.getAllPromptsStopToJSON = getAllPromptsStopToJSON;
93
+ exports.getAllPromptsStopFromJSON = getAllPromptsStopFromJSON;
94
+ exports.getAllPromptsStreamOptionsToJSON = getAllPromptsStreamOptionsToJSON;
95
+ exports.getAllPromptsStreamOptionsFromJSON = getAllPromptsStreamOptionsFromJSON;
96
+ exports.getAllPromptsThinkingToJSON = getAllPromptsThinkingToJSON;
97
+ exports.getAllPromptsThinkingFromJSON = getAllPromptsThinkingFromJSON;
98
+ exports.getAllPromptsToolChoiceFunctionToJSON = getAllPromptsToolChoiceFunctionToJSON;
99
+ exports.getAllPromptsToolChoiceFunctionFromJSON = getAllPromptsToolChoiceFunctionFromJSON;
100
+ exports.getAllPromptsToolChoice2ToJSON = getAllPromptsToolChoice2ToJSON;
101
+ exports.getAllPromptsToolChoice2FromJSON = getAllPromptsToolChoice2FromJSON;
102
+ exports.getAllPromptsToolChoiceToJSON = getAllPromptsToolChoiceToJSON;
103
+ exports.getAllPromptsToolChoiceFromJSON = getAllPromptsToolChoiceFromJSON;
104
+ exports.getAllPromptsIdToJSON = getAllPromptsIdToJSON;
105
+ exports.getAllPromptsIdFromJSON = getAllPromptsIdFromJSON;
106
+ exports.getAllPromptsGuardrailsToJSON = getAllPromptsGuardrailsToJSON;
107
+ exports.getAllPromptsGuardrailsFromJSON = getAllPromptsGuardrailsFromJSON;
108
+ exports.getAllPromptsContentPromptsResponse2002ToJSON = getAllPromptsContentPromptsResponse2002ToJSON;
109
+ exports.getAllPromptsContentPromptsResponse2002FromJSON = getAllPromptsContentPromptsResponse2002FromJSON;
110
+ exports.getAllPromptsMessagesPromptsResponse200ContentToJSON = getAllPromptsMessagesPromptsResponse200ContentToJSON;
111
+ exports.getAllPromptsMessagesPromptsResponse200ContentFromJSON = getAllPromptsMessagesPromptsResponse200ContentFromJSON;
112
+ exports.getAllPromptsMessagesCacheControlToJSON = getAllPromptsMessagesCacheControlToJSON;
113
+ exports.getAllPromptsMessagesCacheControlFromJSON = getAllPromptsMessagesCacheControlFromJSON;
114
+ exports.getAllPromptsMessagesToolMessageToJSON = getAllPromptsMessagesToolMessageToJSON;
115
+ exports.getAllPromptsMessagesToolMessageFromJSON = getAllPromptsMessagesToolMessageFromJSON;
116
+ exports.getAllPromptsContentPromptsResponse2ToJSON = getAllPromptsContentPromptsResponse2ToJSON;
117
+ exports.getAllPromptsContentPromptsResponse2FromJSON = getAllPromptsContentPromptsResponse2FromJSON;
118
+ exports.getAllPromptsMessagesPromptsResponseContentToJSON = getAllPromptsMessagesPromptsResponseContentToJSON;
119
+ exports.getAllPromptsMessagesPromptsResponseContentFromJSON = getAllPromptsMessagesPromptsResponseContentFromJSON;
120
+ exports.getAllPromptsMessagesAudioToJSON = getAllPromptsMessagesAudioToJSON;
121
+ exports.getAllPromptsMessagesAudioFromJSON = getAllPromptsMessagesAudioFromJSON;
122
+ exports.getAllPromptsMessagesFunctionToJSON = getAllPromptsMessagesFunctionToJSON;
123
+ exports.getAllPromptsMessagesFunctionFromJSON = getAllPromptsMessagesFunctionFromJSON;
124
+ exports.getAllPromptsMessagesToolCallsToJSON = getAllPromptsMessagesToolCallsToJSON;
125
+ exports.getAllPromptsMessagesToolCallsFromJSON = getAllPromptsMessagesToolCallsFromJSON;
126
+ exports.getAllPromptsMessagesAssistantMessageToJSON = getAllPromptsMessagesAssistantMessageToJSON;
127
+ exports.getAllPromptsMessagesAssistantMessageFromJSON = getAllPromptsMessagesAssistantMessageFromJSON;
128
+ exports.getAllPrompts2CacheControlToJSON = getAllPrompts2CacheControlToJSON;
129
+ exports.getAllPrompts2CacheControlFromJSON = getAllPrompts2CacheControlFromJSON;
130
+ exports.getAllPrompts24ToJSON = getAllPrompts24ToJSON;
131
+ exports.getAllPrompts24FromJSON = getAllPrompts24FromJSON;
132
+ exports.getAllPromptsContentPrompts2ToJSON = getAllPromptsContentPrompts2ToJSON;
133
+ exports.getAllPromptsContentPrompts2FromJSON = getAllPromptsContentPrompts2FromJSON;
134
+ exports.getAllPromptsMessagesPromptsContentToJSON = getAllPromptsMessagesPromptsContentToJSON;
135
+ exports.getAllPromptsMessagesPromptsContentFromJSON = getAllPromptsMessagesPromptsContentFromJSON;
136
+ exports.getAllPromptsMessagesUserMessageToJSON = getAllPromptsMessagesUserMessageToJSON;
137
+ exports.getAllPromptsMessagesUserMessageFromJSON = getAllPromptsMessagesUserMessageFromJSON;
138
+ exports.getAllPromptsMessagesContentToJSON = getAllPromptsMessagesContentToJSON;
139
+ exports.getAllPromptsMessagesContentFromJSON = getAllPromptsMessagesContentFromJSON;
140
+ exports.getAllPromptsMessagesSystemMessageToJSON = getAllPromptsMessagesSystemMessageToJSON;
141
+ exports.getAllPromptsMessagesSystemMessageFromJSON = getAllPromptsMessagesSystemMessageFromJSON;
142
+ exports.getAllPromptsPromptsMessagesToJSON = getAllPromptsPromptsMessagesToJSON;
143
+ exports.getAllPromptsPromptsMessagesFromJSON = getAllPromptsPromptsMessagesFromJSON;
144
+ exports.getAllPromptsPromptFieldToJSON = getAllPromptsPromptFieldToJSON;
145
+ exports.getAllPromptsPromptFieldFromJSON = getAllPromptsPromptFieldFromJSON;
78
146
  exports.getAllPromptsMetadataToJSON = getAllPromptsMetadataToJSON;
79
147
  exports.getAllPromptsMetadataFromJSON = getAllPromptsMetadataFromJSON;
80
148
  exports.getAllPromptsPromptToJSON = getAllPromptsPromptToJSON;
@@ -84,6 +152,7 @@ exports.getAllPromptsResponseBodyFromJSON = getAllPromptsResponseBodyFromJSON;
84
152
  const z = __importStar(require("zod/v3"));
85
153
  const primitives_js_1 = require("../../lib/primitives.js");
86
154
  const schemas_js_1 = require("../../lib/schemas.js");
155
+ const components = __importStar(require("../components/index.js"));
87
156
  exports.GetAllPromptsObject = {
88
157
  List: "list",
89
158
  };
@@ -132,13 +201,13 @@ exports.GetAllPromptsResponseFormat4 = {
132
201
  Wav: "wav",
133
202
  Pcm: "pcm",
134
203
  };
135
- exports.GetAllPromptsResponseFormatPromptsResponseType = {
204
+ exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = {
136
205
  Text: "text",
137
206
  };
138
- exports.GetAllPromptsResponseFormatPromptsType = {
207
+ exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType = {
139
208
  JsonObject: "json_object",
140
209
  };
141
- exports.GetAllPromptsResponseFormatType = {
210
+ exports.GetAllPromptsResponseFormatPromptsResponse200Type = {
142
211
  JsonSchema: "json_schema",
143
212
  };
144
213
  /**
@@ -158,7 +227,7 @@ exports.GetAllPromptsEncodingFormat = {
158
227
  /**
159
228
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
160
229
  */
161
- exports.GetAllPromptsReasoningEffort = {
230
+ exports.GetAllPromptsPromptsReasoningEffort = {
162
231
  None: "none",
163
232
  Disable: "disable",
164
233
  Minimal: "minimal",
@@ -225,6 +294,123 @@ exports.GetAllPromptsRole = {
225
294
  exports.GetAllPromptsPromptsType = {
226
295
  Function: "function",
227
296
  };
297
+ /**
298
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
299
+ */
300
+ exports.GetAllPromptsVoice = {
301
+ Alloy: "alloy",
302
+ Echo: "echo",
303
+ Fable: "fable",
304
+ Onyx: "onyx",
305
+ Nova: "nova",
306
+ Shimmer: "shimmer",
307
+ };
308
+ /**
309
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
310
+ */
311
+ exports.GetAllPromptsPromptsFormat = {
312
+ Wav: "wav",
313
+ Mp3: "mp3",
314
+ Flac: "flac",
315
+ Opus: "opus",
316
+ Pcm16: "pcm16",
317
+ };
318
+ /**
319
+ * 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.
320
+ *
321
+ * @remarks
322
+ *
323
+ * - `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.
324
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
325
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
326
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
327
+ *
328
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
329
+ */
330
+ exports.GetAllPromptsReasoningEffort = {
331
+ None: "none",
332
+ Minimal: "minimal",
333
+ Low: "low",
334
+ Medium: "medium",
335
+ High: "high",
336
+ Xhigh: "xhigh",
337
+ };
338
+ /**
339
+ * The type of the tool. Currently, only function is supported.
340
+ */
341
+ exports.GetAllPromptsToolChoiceType = {
342
+ Function: "function",
343
+ };
344
+ exports.GetAllPromptsToolChoice1 = {
345
+ None: "none",
346
+ Auto: "auto",
347
+ Required: "required",
348
+ };
349
+ exports.GetAllPromptsModalities = {
350
+ Text: "text",
351
+ Audio: "audio",
352
+ };
353
+ /**
354
+ * The key of the guardrail.
355
+ */
356
+ exports.GetAllPromptsId1 = {
357
+ OrqPiiDetection: "orq_pii_detection",
358
+ OrqSexualModeration: "orq_sexual_moderation",
359
+ OrqHarmfulModeration: "orq_harmful_moderation",
360
+ };
361
+ /**
362
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
363
+ */
364
+ exports.GetAllPromptsExecuteOn = {
365
+ Input: "input",
366
+ Output: "output",
367
+ };
368
+ /**
369
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
370
+ */
371
+ exports.GetAllPromptsMessagesPromptsType = {
372
+ Ephemeral: "ephemeral",
373
+ };
374
+ /**
375
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
376
+ *
377
+ * @remarks
378
+ *
379
+ * - `5m`: 5 minutes
380
+ * - `1h`: 1 hour
381
+ *
382
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
383
+ */
384
+ exports.GetAllPromptsMessagesTtl = {
385
+ Fivem: "5m",
386
+ Oneh: "1h",
387
+ };
388
+ /**
389
+ * The type of the tool. Currently, only `function` is supported.
390
+ */
391
+ exports.GetAllPromptsMessagesType = {
392
+ Function: "function",
393
+ };
394
+ /**
395
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
396
+ */
397
+ exports.GetAllPrompts2PromptsResponse200ApplicationJSONType = {
398
+ Ephemeral: "ephemeral",
399
+ };
400
+ /**
401
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
402
+ *
403
+ * @remarks
404
+ *
405
+ * - `5m`: 5 minutes
406
+ * - `1h`: 1 hour
407
+ *
408
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
409
+ */
410
+ exports.GetAllPrompts2Ttl = {
411
+ Fivem: "5m",
412
+ Oneh: "1h",
413
+ };
228
414
  exports.GetAllPromptsUseCases = {
229
415
  AgentsSimulations: "Agents simulations",
230
416
  Agents: "Agents",
@@ -316,17 +502,16 @@ exports.GetAllPromptsResponseFormat4$inboundSchema = z.nativeEnum(exports.GetAll
316
502
  /** @internal */
317
503
  exports.GetAllPromptsResponseFormat4$outboundSchema = exports.GetAllPromptsResponseFormat4$inboundSchema;
318
504
  /** @internal */
319
- exports.GetAllPromptsResponseFormatPromptsResponseType$inboundSchema = z
320
- .nativeEnum(exports.GetAllPromptsResponseFormatPromptsResponseType);
505
+ exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType);
321
506
  /** @internal */
322
- exports.GetAllPromptsResponseFormatPromptsResponseType$outboundSchema = exports.GetAllPromptsResponseFormatPromptsResponseType$inboundSchema;
507
+ exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema;
323
508
  /** @internal */
324
509
  exports.GetAllPromptsResponseFormat3$inboundSchema = z.object({
325
- type: exports.GetAllPromptsResponseFormatPromptsResponseType$inboundSchema,
510
+ type: exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
326
511
  });
327
512
  /** @internal */
328
513
  exports.GetAllPromptsResponseFormat3$outboundSchema = z.object({
329
- type: exports.GetAllPromptsResponseFormatPromptsResponseType$outboundSchema,
514
+ type: exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema,
330
515
  });
331
516
  function getAllPromptsResponseFormat3ToJSON(getAllPromptsResponseFormat3) {
332
517
  return JSON.stringify(exports.GetAllPromptsResponseFormat3$outboundSchema.parse(getAllPromptsResponseFormat3));
@@ -335,16 +520,16 @@ function getAllPromptsResponseFormat3FromJSON(jsonString) {
335
520
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormat3' from JSON`);
336
521
  }
337
522
  /** @internal */
338
- exports.GetAllPromptsResponseFormatPromptsType$inboundSchema = z.nativeEnum(exports.GetAllPromptsResponseFormatPromptsType);
523
+ exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType);
339
524
  /** @internal */
340
- exports.GetAllPromptsResponseFormatPromptsType$outboundSchema = exports.GetAllPromptsResponseFormatPromptsType$inboundSchema;
525
+ exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema = exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
341
526
  /** @internal */
342
527
  exports.GetAllPromptsResponseFormat2$inboundSchema = z.object({
343
- type: exports.GetAllPromptsResponseFormatPromptsType$inboundSchema,
528
+ type: exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
344
529
  });
345
530
  /** @internal */
346
531
  exports.GetAllPromptsResponseFormat2$outboundSchema = z.object({
347
- type: exports.GetAllPromptsResponseFormatPromptsType$outboundSchema,
532
+ type: exports.GetAllPromptsResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema,
348
533
  });
349
534
  function getAllPromptsResponseFormat2ToJSON(getAllPromptsResponseFormat2) {
350
535
  return JSON.stringify(exports.GetAllPromptsResponseFormat2$outboundSchema.parse(getAllPromptsResponseFormat2));
@@ -353,34 +538,35 @@ function getAllPromptsResponseFormat2FromJSON(jsonString) {
353
538
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormat2' from JSON`);
354
539
  }
355
540
  /** @internal */
356
- exports.GetAllPromptsResponseFormatType$inboundSchema = z.nativeEnum(exports.GetAllPromptsResponseFormatType);
541
+ exports.GetAllPromptsResponseFormatPromptsResponse200Type$inboundSchema = z
542
+ .nativeEnum(exports.GetAllPromptsResponseFormatPromptsResponse200Type);
357
543
  /** @internal */
358
- exports.GetAllPromptsResponseFormatType$outboundSchema = exports.GetAllPromptsResponseFormatType$inboundSchema;
544
+ exports.GetAllPromptsResponseFormatPromptsResponse200Type$outboundSchema = exports.GetAllPromptsResponseFormatPromptsResponse200Type$inboundSchema;
359
545
  /** @internal */
360
- exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema = z.object({
546
+ exports.GetAllPromptsResponseFormatPromptsResponseJsonSchema$inboundSchema = z.object({
361
547
  name: z.string(),
362
548
  description: z.string().optional(),
363
549
  strict: z.boolean().optional(),
364
550
  schema: z.record(z.any()),
365
551
  });
366
552
  /** @internal */
367
- exports.GetAllPromptsResponseFormatJsonSchema$outboundSchema = z.object({
553
+ exports.GetAllPromptsResponseFormatPromptsResponseJsonSchema$outboundSchema = z.object({
368
554
  name: z.string(),
369
555
  description: z.string().optional(),
370
556
  strict: z.boolean().optional(),
371
557
  schema: z.record(z.any()),
372
558
  });
373
- function getAllPromptsResponseFormatJsonSchemaToJSON(getAllPromptsResponseFormatJsonSchema) {
374
- return JSON.stringify(exports.GetAllPromptsResponseFormatJsonSchema$outboundSchema.parse(getAllPromptsResponseFormatJsonSchema));
559
+ function getAllPromptsResponseFormatPromptsResponseJsonSchemaToJSON(getAllPromptsResponseFormatPromptsResponseJsonSchema) {
560
+ return JSON.stringify(exports.GetAllPromptsResponseFormatPromptsResponseJsonSchema$outboundSchema.parse(getAllPromptsResponseFormatPromptsResponseJsonSchema));
375
561
  }
376
- function getAllPromptsResponseFormatJsonSchemaFromJSON(jsonString) {
377
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormatJsonSchema' from JSON`);
562
+ function getAllPromptsResponseFormatPromptsResponseJsonSchemaFromJSON(jsonString) {
563
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormatPromptsResponseJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormatPromptsResponseJsonSchema' from JSON`);
378
564
  }
379
565
  /** @internal */
380
566
  exports.GetAllPromptsResponseFormat1$inboundSchema = z.object({
381
- type: exports.GetAllPromptsResponseFormatType$inboundSchema,
567
+ type: exports.GetAllPromptsResponseFormatPromptsResponse200Type$inboundSchema,
382
568
  display_name: z.string().optional(),
383
- json_schema: z.lazy(() => exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema),
569
+ json_schema: z.lazy(() => exports.GetAllPromptsResponseFormatPromptsResponseJsonSchema$inboundSchema),
384
570
  }).transform((v) => {
385
571
  return (0, primitives_js_1.remap)(v, {
386
572
  "display_name": "displayName",
@@ -389,9 +575,9 @@ exports.GetAllPromptsResponseFormat1$inboundSchema = z.object({
389
575
  });
390
576
  /** @internal */
391
577
  exports.GetAllPromptsResponseFormat1$outboundSchema = z.object({
392
- type: exports.GetAllPromptsResponseFormatType$outboundSchema,
578
+ type: exports.GetAllPromptsResponseFormatPromptsResponse200Type$outboundSchema,
393
579
  displayName: z.string().optional(),
394
- jsonSchema: z.lazy(() => exports.GetAllPromptsResponseFormatJsonSchema$outboundSchema),
580
+ jsonSchema: z.lazy(() => exports.GetAllPromptsResponseFormatPromptsResponseJsonSchema$outboundSchema),
395
581
  }).transform((v) => {
396
582
  return (0, primitives_js_1.remap)(v, {
397
583
  displayName: "display_name",
@@ -405,7 +591,7 @@ function getAllPromptsResponseFormat1FromJSON(jsonString) {
405
591
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormat1' from JSON`);
406
592
  }
407
593
  /** @internal */
408
- exports.GetAllPromptsResponseFormat$inboundSchema = z.union([
594
+ exports.GetAllPromptsPromptsResponseFormat$inboundSchema = z.union([
409
595
  z.lazy(() => exports.GetAllPromptsResponseFormat1$inboundSchema),
410
596
  z.lazy(() => exports.GetAllPromptsResponseFormat2$inboundSchema),
411
597
  z.lazy(() => exports.GetAllPromptsResponseFormat3$inboundSchema),
@@ -414,7 +600,7 @@ exports.GetAllPromptsResponseFormat$inboundSchema = z.union([
414
600
  exports.GetAllPromptsResponseFormat6$inboundSchema,
415
601
  ]);
416
602
  /** @internal */
417
- exports.GetAllPromptsResponseFormat$outboundSchema = z.union([
603
+ exports.GetAllPromptsPromptsResponseFormat$outboundSchema = z.union([
418
604
  z.lazy(() => exports.GetAllPromptsResponseFormat1$outboundSchema),
419
605
  z.lazy(() => exports.GetAllPromptsResponseFormat2$outboundSchema),
420
606
  z.lazy(() => exports.GetAllPromptsResponseFormat3$outboundSchema),
@@ -422,11 +608,11 @@ exports.GetAllPromptsResponseFormat$outboundSchema = z.union([
422
608
  exports.GetAllPromptsResponseFormat5$outboundSchema,
423
609
  exports.GetAllPromptsResponseFormat6$outboundSchema,
424
610
  ]);
425
- function getAllPromptsResponseFormatToJSON(getAllPromptsResponseFormat) {
426
- return JSON.stringify(exports.GetAllPromptsResponseFormat$outboundSchema.parse(getAllPromptsResponseFormat));
611
+ function getAllPromptsPromptsResponseFormatToJSON(getAllPromptsPromptsResponseFormat) {
612
+ return JSON.stringify(exports.GetAllPromptsPromptsResponseFormat$outboundSchema.parse(getAllPromptsPromptsResponseFormat));
427
613
  }
428
- function getAllPromptsResponseFormatFromJSON(jsonString) {
429
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormat' from JSON`);
614
+ function getAllPromptsPromptsResponseFormatFromJSON(jsonString) {
615
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsPromptsResponseFormat' from JSON`);
430
616
  }
431
617
  /** @internal */
432
618
  exports.GetAllPromptsPhotoRealVersion$inboundSchema = z.nativeEnum(exports.GetAllPromptsPhotoRealVersion);
@@ -437,9 +623,9 @@ exports.GetAllPromptsEncodingFormat$inboundSchema = z.nativeEnum(exports.GetAllP
437
623
  /** @internal */
438
624
  exports.GetAllPromptsEncodingFormat$outboundSchema = exports.GetAllPromptsEncodingFormat$inboundSchema;
439
625
  /** @internal */
440
- exports.GetAllPromptsReasoningEffort$inboundSchema = z.nativeEnum(exports.GetAllPromptsReasoningEffort);
626
+ exports.GetAllPromptsPromptsReasoningEffort$inboundSchema = z.nativeEnum(exports.GetAllPromptsPromptsReasoningEffort);
441
627
  /** @internal */
442
- exports.GetAllPromptsReasoningEffort$outboundSchema = exports.GetAllPromptsReasoningEffort$inboundSchema;
628
+ exports.GetAllPromptsPromptsReasoningEffort$outboundSchema = exports.GetAllPromptsPromptsReasoningEffort$inboundSchema;
443
629
  /** @internal */
444
630
  exports.GetAllPromptsVerbosity$inboundSchema = z.nativeEnum(exports.GetAllPromptsVerbosity);
445
631
  /** @internal */
@@ -472,7 +658,7 @@ exports.GetAllPromptsModelParameters$inboundSchema = z.object({
472
658
  ])).optional(),
473
659
  photoRealVersion: exports.GetAllPromptsPhotoRealVersion$inboundSchema.optional(),
474
660
  encoding_format: exports.GetAllPromptsEncodingFormat$inboundSchema.optional(),
475
- reasoningEffort: exports.GetAllPromptsReasoningEffort$inboundSchema.optional(),
661
+ reasoningEffort: exports.GetAllPromptsPromptsReasoningEffort$inboundSchema.optional(),
476
662
  budgetTokens: z.number().optional(),
477
663
  verbosity: exports.GetAllPromptsVerbosity$inboundSchema.optional(),
478
664
  thinkingLevel: exports.GetAllPromptsThinkingLevel$inboundSchema.optional(),
@@ -505,7 +691,8 @@ exports.GetAllPromptsModelParameters$outboundSchema = z.object({
505
691
  ])).optional(),
506
692
  photoRealVersion: exports.GetAllPromptsPhotoRealVersion$outboundSchema.optional(),
507
693
  encodingFormat: exports.GetAllPromptsEncodingFormat$outboundSchema.optional(),
508
- reasoningEffort: exports.GetAllPromptsReasoningEffort$outboundSchema.optional(),
694
+ reasoningEffort: exports.GetAllPromptsPromptsReasoningEffort$outboundSchema
695
+ .optional(),
509
696
  budgetTokens: z.number().optional(),
510
697
  verbosity: exports.GetAllPromptsVerbosity$outboundSchema.optional(),
511
698
  thinkingLevel: exports.GetAllPromptsThinkingLevel$outboundSchema.optional(),
@@ -761,12 +948,12 @@ function getAllPromptsMessagesFromJSON(jsonString) {
761
948
  /** @internal */
762
949
  exports.GetAllPromptsPromptConfig$inboundSchema = z.object({
763
950
  stream: z.boolean().optional(),
764
- model: z.string().optional(),
951
+ model: z.nullable(z.string()).optional(),
765
952
  model_db_id: z.nullable(z.string()).optional(),
766
953
  model_type: z.nullable(exports.GetAllPromptsModelType$inboundSchema).optional(),
767
954
  model_parameters: z.lazy(() => exports.GetAllPromptsModelParameters$inboundSchema)
768
955
  .optional(),
769
- provider: exports.GetAllPromptsProvider$inboundSchema.optional(),
956
+ provider: z.nullable(exports.GetAllPromptsProvider$inboundSchema).optional(),
770
957
  integration_id: z.nullable(z.string()).optional(),
771
958
  version: z.string().optional(),
772
959
  messages: z.array(z.lazy(() => exports.GetAllPromptsMessages$inboundSchema)),
@@ -781,12 +968,12 @@ exports.GetAllPromptsPromptConfig$inboundSchema = z.object({
781
968
  /** @internal */
782
969
  exports.GetAllPromptsPromptConfig$outboundSchema = z.object({
783
970
  stream: z.boolean().optional(),
784
- model: z.string().optional(),
971
+ model: z.nullable(z.string()).optional(),
785
972
  modelDbId: z.nullable(z.string()).optional(),
786
973
  modelType: z.nullable(exports.GetAllPromptsModelType$outboundSchema).optional(),
787
974
  modelParameters: z.lazy(() => exports.GetAllPromptsModelParameters$outboundSchema)
788
975
  .optional(),
789
- provider: exports.GetAllPromptsProvider$outboundSchema.optional(),
976
+ provider: z.nullable(exports.GetAllPromptsProvider$outboundSchema).optional(),
790
977
  integrationId: z.nullable(z.string()).optional(),
791
978
  version: z.string().optional(),
792
979
  messages: z.array(z.lazy(() => exports.GetAllPromptsMessages$outboundSchema)),
@@ -805,6 +992,836 @@ function getAllPromptsPromptConfigFromJSON(jsonString) {
805
992
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsPromptConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsPromptConfig' from JSON`);
806
993
  }
807
994
  /** @internal */
995
+ exports.GetAllPromptsVoice$inboundSchema = z.nativeEnum(exports.GetAllPromptsVoice);
996
+ /** @internal */
997
+ exports.GetAllPromptsVoice$outboundSchema = exports.GetAllPromptsVoice$inboundSchema;
998
+ /** @internal */
999
+ exports.GetAllPromptsPromptsFormat$inboundSchema = z.nativeEnum(exports.GetAllPromptsPromptsFormat);
1000
+ /** @internal */
1001
+ exports.GetAllPromptsPromptsFormat$outboundSchema = exports.GetAllPromptsPromptsFormat$inboundSchema;
1002
+ /** @internal */
1003
+ exports.GetAllPromptsAudio$inboundSchema = z.object({
1004
+ voice: exports.GetAllPromptsVoice$inboundSchema,
1005
+ format: exports.GetAllPromptsPromptsFormat$inboundSchema,
1006
+ });
1007
+ /** @internal */
1008
+ exports.GetAllPromptsAudio$outboundSchema = z.object({
1009
+ voice: exports.GetAllPromptsVoice$outboundSchema,
1010
+ format: exports.GetAllPromptsPromptsFormat$outboundSchema,
1011
+ });
1012
+ function getAllPromptsAudioToJSON(getAllPromptsAudio) {
1013
+ return JSON.stringify(exports.GetAllPromptsAudio$outboundSchema.parse(getAllPromptsAudio));
1014
+ }
1015
+ function getAllPromptsAudioFromJSON(jsonString) {
1016
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsAudio' from JSON`);
1017
+ }
1018
+ /** @internal */
1019
+ exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema = z.object({
1020
+ description: z.string().optional(),
1021
+ name: z.string(),
1022
+ schema: z.any().optional(),
1023
+ strict: z.boolean().default(false),
1024
+ });
1025
+ /** @internal */
1026
+ exports.GetAllPromptsResponseFormatJsonSchema$outboundSchema = z.object({
1027
+ description: z.string().optional(),
1028
+ name: z.string(),
1029
+ schema: z.any().optional(),
1030
+ strict: z.boolean().default(false),
1031
+ });
1032
+ function getAllPromptsResponseFormatJsonSchemaToJSON(getAllPromptsResponseFormatJsonSchema) {
1033
+ return JSON.stringify(exports.GetAllPromptsResponseFormatJsonSchema$outboundSchema.parse(getAllPromptsResponseFormatJsonSchema));
1034
+ }
1035
+ function getAllPromptsResponseFormatJsonSchemaFromJSON(jsonString) {
1036
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormatJsonSchema' from JSON`);
1037
+ }
1038
+ /** @internal */
1039
+ exports.GetAllPromptsResponseFormatPromptsJSONSchema$inboundSchema = z.object({
1040
+ type: z.literal("json_schema"),
1041
+ json_schema: z.lazy(() => exports.GetAllPromptsResponseFormatJsonSchema$inboundSchema),
1042
+ }).transform((v) => {
1043
+ return (0, primitives_js_1.remap)(v, {
1044
+ "json_schema": "jsonSchema",
1045
+ });
1046
+ });
1047
+ /** @internal */
1048
+ exports.GetAllPromptsResponseFormatPromptsJSONSchema$outboundSchema = z.object({
1049
+ type: z.literal("json_schema"),
1050
+ jsonSchema: z.lazy(() => exports.GetAllPromptsResponseFormatJsonSchema$outboundSchema),
1051
+ }).transform((v) => {
1052
+ return (0, primitives_js_1.remap)(v, {
1053
+ jsonSchema: "json_schema",
1054
+ });
1055
+ });
1056
+ function getAllPromptsResponseFormatPromptsJSONSchemaToJSON(getAllPromptsResponseFormatPromptsJSONSchema) {
1057
+ return JSON.stringify(exports.GetAllPromptsResponseFormatPromptsJSONSchema$outboundSchema.parse(getAllPromptsResponseFormatPromptsJSONSchema));
1058
+ }
1059
+ function getAllPromptsResponseFormatPromptsJSONSchemaFromJSON(jsonString) {
1060
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormatPromptsJSONSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormatPromptsJSONSchema' from JSON`);
1061
+ }
1062
+ /** @internal */
1063
+ exports.GetAllPromptsResponseFormatJSONObject$inboundSchema = z.object({
1064
+ type: z.literal("json_object"),
1065
+ });
1066
+ /** @internal */
1067
+ exports.GetAllPromptsResponseFormatJSONObject$outboundSchema = z.object({
1068
+ type: z.literal("json_object"),
1069
+ });
1070
+ function getAllPromptsResponseFormatJSONObjectToJSON(getAllPromptsResponseFormatJSONObject) {
1071
+ return JSON.stringify(exports.GetAllPromptsResponseFormatJSONObject$outboundSchema.parse(getAllPromptsResponseFormatJSONObject));
1072
+ }
1073
+ function getAllPromptsResponseFormatJSONObjectFromJSON(jsonString) {
1074
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormatJSONObject' from JSON`);
1075
+ }
1076
+ /** @internal */
1077
+ exports.GetAllPromptsResponseFormatText$inboundSchema = z.object({
1078
+ type: z.literal("text"),
1079
+ });
1080
+ /** @internal */
1081
+ exports.GetAllPromptsResponseFormatText$outboundSchema = z.object({
1082
+ type: z.literal("text"),
1083
+ });
1084
+ function getAllPromptsResponseFormatTextToJSON(getAllPromptsResponseFormatText) {
1085
+ return JSON.stringify(exports.GetAllPromptsResponseFormatText$outboundSchema.parse(getAllPromptsResponseFormatText));
1086
+ }
1087
+ function getAllPromptsResponseFormatTextFromJSON(jsonString) {
1088
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormatText' from JSON`);
1089
+ }
1090
+ /** @internal */
1091
+ exports.GetAllPromptsResponseFormat$inboundSchema = z.union([
1092
+ z.lazy(() => exports.GetAllPromptsResponseFormatText$inboundSchema),
1093
+ z.lazy(() => exports.GetAllPromptsResponseFormatJSONObject$inboundSchema),
1094
+ z.lazy(() => exports.GetAllPromptsResponseFormatPromptsJSONSchema$inboundSchema),
1095
+ ]);
1096
+ /** @internal */
1097
+ exports.GetAllPromptsResponseFormat$outboundSchema = z.union([
1098
+ z.lazy(() => exports.GetAllPromptsResponseFormatText$outboundSchema),
1099
+ z.lazy(() => exports.GetAllPromptsResponseFormatJSONObject$outboundSchema),
1100
+ z.lazy(() => exports.GetAllPromptsResponseFormatPromptsJSONSchema$outboundSchema),
1101
+ ]);
1102
+ function getAllPromptsResponseFormatToJSON(getAllPromptsResponseFormat) {
1103
+ return JSON.stringify(exports.GetAllPromptsResponseFormat$outboundSchema.parse(getAllPromptsResponseFormat));
1104
+ }
1105
+ function getAllPromptsResponseFormatFromJSON(jsonString) {
1106
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsResponseFormat' from JSON`);
1107
+ }
1108
+ /** @internal */
1109
+ exports.GetAllPromptsReasoningEffort$inboundSchema = z.nativeEnum(exports.GetAllPromptsReasoningEffort);
1110
+ /** @internal */
1111
+ exports.GetAllPromptsReasoningEffort$outboundSchema = exports.GetAllPromptsReasoningEffort$inboundSchema;
1112
+ /** @internal */
1113
+ exports.GetAllPromptsStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
1114
+ /** @internal */
1115
+ exports.GetAllPromptsStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
1116
+ function getAllPromptsStopToJSON(getAllPromptsStop) {
1117
+ return JSON.stringify(exports.GetAllPromptsStop$outboundSchema.parse(getAllPromptsStop));
1118
+ }
1119
+ function getAllPromptsStopFromJSON(jsonString) {
1120
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsStop' from JSON`);
1121
+ }
1122
+ /** @internal */
1123
+ exports.GetAllPromptsStreamOptions$inboundSchema = z.object({
1124
+ include_usage: z.boolean().optional(),
1125
+ }).transform((v) => {
1126
+ return (0, primitives_js_1.remap)(v, {
1127
+ "include_usage": "includeUsage",
1128
+ });
1129
+ });
1130
+ /** @internal */
1131
+ exports.GetAllPromptsStreamOptions$outboundSchema = z.object({
1132
+ includeUsage: z.boolean().optional(),
1133
+ }).transform((v) => {
1134
+ return (0, primitives_js_1.remap)(v, {
1135
+ includeUsage: "include_usage",
1136
+ });
1137
+ });
1138
+ function getAllPromptsStreamOptionsToJSON(getAllPromptsStreamOptions) {
1139
+ return JSON.stringify(exports.GetAllPromptsStreamOptions$outboundSchema.parse(getAllPromptsStreamOptions));
1140
+ }
1141
+ function getAllPromptsStreamOptionsFromJSON(jsonString) {
1142
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsStreamOptions' from JSON`);
1143
+ }
1144
+ /** @internal */
1145
+ exports.GetAllPromptsThinking$inboundSchema = z.union([
1146
+ components.ThinkingConfigDisabledSchema$inboundSchema,
1147
+ components.ThinkingConfigEnabledSchema$inboundSchema,
1148
+ ]);
1149
+ /** @internal */
1150
+ exports.GetAllPromptsThinking$outboundSchema = z.union([
1151
+ components.ThinkingConfigDisabledSchema$outboundSchema,
1152
+ components.ThinkingConfigEnabledSchema$outboundSchema,
1153
+ ]);
1154
+ function getAllPromptsThinkingToJSON(getAllPromptsThinking) {
1155
+ return JSON.stringify(exports.GetAllPromptsThinking$outboundSchema.parse(getAllPromptsThinking));
1156
+ }
1157
+ function getAllPromptsThinkingFromJSON(jsonString) {
1158
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsThinking' from JSON`);
1159
+ }
1160
+ /** @internal */
1161
+ exports.GetAllPromptsToolChoiceType$inboundSchema = z.nativeEnum(exports.GetAllPromptsToolChoiceType);
1162
+ /** @internal */
1163
+ exports.GetAllPromptsToolChoiceType$outboundSchema = exports.GetAllPromptsToolChoiceType$inboundSchema;
1164
+ /** @internal */
1165
+ exports.GetAllPromptsToolChoiceFunction$inboundSchema = z.object({
1166
+ name: z.string(),
1167
+ });
1168
+ /** @internal */
1169
+ exports.GetAllPromptsToolChoiceFunction$outboundSchema = z.object({
1170
+ name: z.string(),
1171
+ });
1172
+ function getAllPromptsToolChoiceFunctionToJSON(getAllPromptsToolChoiceFunction) {
1173
+ return JSON.stringify(exports.GetAllPromptsToolChoiceFunction$outboundSchema.parse(getAllPromptsToolChoiceFunction));
1174
+ }
1175
+ function getAllPromptsToolChoiceFunctionFromJSON(jsonString) {
1176
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsToolChoiceFunction' from JSON`);
1177
+ }
1178
+ /** @internal */
1179
+ exports.GetAllPromptsToolChoice2$inboundSchema = z.object({
1180
+ type: exports.GetAllPromptsToolChoiceType$inboundSchema.optional(),
1181
+ function: z.lazy(() => exports.GetAllPromptsToolChoiceFunction$inboundSchema),
1182
+ });
1183
+ /** @internal */
1184
+ exports.GetAllPromptsToolChoice2$outboundSchema = z.object({
1185
+ type: exports.GetAllPromptsToolChoiceType$outboundSchema.optional(),
1186
+ function: z.lazy(() => exports.GetAllPromptsToolChoiceFunction$outboundSchema),
1187
+ });
1188
+ function getAllPromptsToolChoice2ToJSON(getAllPromptsToolChoice2) {
1189
+ return JSON.stringify(exports.GetAllPromptsToolChoice2$outboundSchema.parse(getAllPromptsToolChoice2));
1190
+ }
1191
+ function getAllPromptsToolChoice2FromJSON(jsonString) {
1192
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsToolChoice2' from JSON`);
1193
+ }
1194
+ /** @internal */
1195
+ exports.GetAllPromptsToolChoice1$inboundSchema = z.nativeEnum(exports.GetAllPromptsToolChoice1);
1196
+ /** @internal */
1197
+ exports.GetAllPromptsToolChoice1$outboundSchema = exports.GetAllPromptsToolChoice1$inboundSchema;
1198
+ /** @internal */
1199
+ exports.GetAllPromptsToolChoice$inboundSchema = z.union([
1200
+ z.lazy(() => exports.GetAllPromptsToolChoice2$inboundSchema),
1201
+ exports.GetAllPromptsToolChoice1$inboundSchema,
1202
+ ]);
1203
+ /** @internal */
1204
+ exports.GetAllPromptsToolChoice$outboundSchema = z.union([
1205
+ z.lazy(() => exports.GetAllPromptsToolChoice2$outboundSchema),
1206
+ exports.GetAllPromptsToolChoice1$outboundSchema,
1207
+ ]);
1208
+ function getAllPromptsToolChoiceToJSON(getAllPromptsToolChoice) {
1209
+ return JSON.stringify(exports.GetAllPromptsToolChoice$outboundSchema.parse(getAllPromptsToolChoice));
1210
+ }
1211
+ function getAllPromptsToolChoiceFromJSON(jsonString) {
1212
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsToolChoice' from JSON`);
1213
+ }
1214
+ /** @internal */
1215
+ exports.GetAllPromptsModalities$inboundSchema = z.nativeEnum(exports.GetAllPromptsModalities);
1216
+ /** @internal */
1217
+ exports.GetAllPromptsModalities$outboundSchema = exports.GetAllPromptsModalities$inboundSchema;
1218
+ /** @internal */
1219
+ exports.GetAllPromptsId1$inboundSchema = z.nativeEnum(exports.GetAllPromptsId1);
1220
+ /** @internal */
1221
+ exports.GetAllPromptsId1$outboundSchema = exports.GetAllPromptsId1$inboundSchema;
1222
+ /** @internal */
1223
+ exports.GetAllPromptsId$inboundSchema = z.union([exports.GetAllPromptsId1$inboundSchema, z.string()]);
1224
+ /** @internal */
1225
+ exports.GetAllPromptsId$outboundSchema = z.union([exports.GetAllPromptsId1$outboundSchema, z.string()]);
1226
+ function getAllPromptsIdToJSON(getAllPromptsId) {
1227
+ return JSON.stringify(exports.GetAllPromptsId$outboundSchema.parse(getAllPromptsId));
1228
+ }
1229
+ function getAllPromptsIdFromJSON(jsonString) {
1230
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsId' from JSON`);
1231
+ }
1232
+ /** @internal */
1233
+ exports.GetAllPromptsExecuteOn$inboundSchema = z.nativeEnum(exports.GetAllPromptsExecuteOn);
1234
+ /** @internal */
1235
+ exports.GetAllPromptsExecuteOn$outboundSchema = exports.GetAllPromptsExecuteOn$inboundSchema;
1236
+ /** @internal */
1237
+ exports.GetAllPromptsGuardrails$inboundSchema = z.object({
1238
+ id: z.union([exports.GetAllPromptsId1$inboundSchema, z.string()]),
1239
+ execute_on: exports.GetAllPromptsExecuteOn$inboundSchema,
1240
+ }).transform((v) => {
1241
+ return (0, primitives_js_1.remap)(v, {
1242
+ "execute_on": "executeOn",
1243
+ });
1244
+ });
1245
+ /** @internal */
1246
+ exports.GetAllPromptsGuardrails$outboundSchema = z.object({
1247
+ id: z.union([exports.GetAllPromptsId1$outboundSchema, z.string()]),
1248
+ executeOn: exports.GetAllPromptsExecuteOn$outboundSchema,
1249
+ }).transform((v) => {
1250
+ return (0, primitives_js_1.remap)(v, {
1251
+ executeOn: "execute_on",
1252
+ });
1253
+ });
1254
+ function getAllPromptsGuardrailsToJSON(getAllPromptsGuardrails) {
1255
+ return JSON.stringify(exports.GetAllPromptsGuardrails$outboundSchema.parse(getAllPromptsGuardrails));
1256
+ }
1257
+ function getAllPromptsGuardrailsFromJSON(jsonString) {
1258
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsGuardrails' from JSON`);
1259
+ }
1260
+ /** @internal */
1261
+ exports.GetAllPromptsContentPromptsResponse2002$inboundSchema = components.TextContentPartSchema$inboundSchema;
1262
+ /** @internal */
1263
+ exports.GetAllPromptsContentPromptsResponse2002$outboundSchema = components.TextContentPartSchema$outboundSchema;
1264
+ function getAllPromptsContentPromptsResponse2002ToJSON(getAllPromptsContentPromptsResponse2002) {
1265
+ return JSON.stringify(exports.GetAllPromptsContentPromptsResponse2002$outboundSchema.parse(getAllPromptsContentPromptsResponse2002));
1266
+ }
1267
+ function getAllPromptsContentPromptsResponse2002FromJSON(jsonString) {
1268
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsContentPromptsResponse2002$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsContentPromptsResponse2002' from JSON`);
1269
+ }
1270
+ /** @internal */
1271
+ exports.GetAllPromptsMessagesPromptsResponse200Content$inboundSchema = z.union([
1272
+ z.string(),
1273
+ z.array(components.TextContentPartSchema$inboundSchema),
1274
+ ]);
1275
+ /** @internal */
1276
+ exports.GetAllPromptsMessagesPromptsResponse200Content$outboundSchema = z.union([
1277
+ z.string(),
1278
+ z.array(components.TextContentPartSchema$outboundSchema),
1279
+ ]);
1280
+ function getAllPromptsMessagesPromptsResponse200ContentToJSON(getAllPromptsMessagesPromptsResponse200Content) {
1281
+ return JSON.stringify(exports.GetAllPromptsMessagesPromptsResponse200Content$outboundSchema.parse(getAllPromptsMessagesPromptsResponse200Content));
1282
+ }
1283
+ function getAllPromptsMessagesPromptsResponse200ContentFromJSON(jsonString) {
1284
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesPromptsResponse200Content$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesPromptsResponse200Content' from JSON`);
1285
+ }
1286
+ /** @internal */
1287
+ exports.GetAllPromptsMessagesPromptsType$inboundSchema = z.nativeEnum(exports.GetAllPromptsMessagesPromptsType);
1288
+ /** @internal */
1289
+ exports.GetAllPromptsMessagesPromptsType$outboundSchema = exports.GetAllPromptsMessagesPromptsType$inboundSchema;
1290
+ /** @internal */
1291
+ exports.GetAllPromptsMessagesTtl$inboundSchema = z.nativeEnum(exports.GetAllPromptsMessagesTtl);
1292
+ /** @internal */
1293
+ exports.GetAllPromptsMessagesTtl$outboundSchema = exports.GetAllPromptsMessagesTtl$inboundSchema;
1294
+ /** @internal */
1295
+ exports.GetAllPromptsMessagesCacheControl$inboundSchema = z.object({
1296
+ type: exports.GetAllPromptsMessagesPromptsType$inboundSchema,
1297
+ ttl: exports.GetAllPromptsMessagesTtl$inboundSchema.default("5m"),
1298
+ });
1299
+ /** @internal */
1300
+ exports.GetAllPromptsMessagesCacheControl$outboundSchema = z.object({
1301
+ type: exports.GetAllPromptsMessagesPromptsType$outboundSchema,
1302
+ ttl: exports.GetAllPromptsMessagesTtl$outboundSchema.default("5m"),
1303
+ });
1304
+ function getAllPromptsMessagesCacheControlToJSON(getAllPromptsMessagesCacheControl) {
1305
+ return JSON.stringify(exports.GetAllPromptsMessagesCacheControl$outboundSchema.parse(getAllPromptsMessagesCacheControl));
1306
+ }
1307
+ function getAllPromptsMessagesCacheControlFromJSON(jsonString) {
1308
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesCacheControl' from JSON`);
1309
+ }
1310
+ /** @internal */
1311
+ exports.GetAllPromptsMessagesToolMessage$inboundSchema = z.object({
1312
+ role: z.literal("tool"),
1313
+ content: z.union([
1314
+ z.string(),
1315
+ z.array(components.TextContentPartSchema$inboundSchema),
1316
+ ]),
1317
+ tool_call_id: z.nullable(z.string()),
1318
+ cache_control: z.lazy(() => exports.GetAllPromptsMessagesCacheControl$inboundSchema)
1319
+ .optional(),
1320
+ }).transform((v) => {
1321
+ return (0, primitives_js_1.remap)(v, {
1322
+ "tool_call_id": "toolCallId",
1323
+ "cache_control": "cacheControl",
1324
+ });
1325
+ });
1326
+ /** @internal */
1327
+ exports.GetAllPromptsMessagesToolMessage$outboundSchema = z.object({
1328
+ role: z.literal("tool"),
1329
+ content: z.union([
1330
+ z.string(),
1331
+ z.array(components.TextContentPartSchema$outboundSchema),
1332
+ ]),
1333
+ toolCallId: z.nullable(z.string()),
1334
+ cacheControl: z.lazy(() => exports.GetAllPromptsMessagesCacheControl$outboundSchema)
1335
+ .optional(),
1336
+ }).transform((v) => {
1337
+ return (0, primitives_js_1.remap)(v, {
1338
+ toolCallId: "tool_call_id",
1339
+ cacheControl: "cache_control",
1340
+ });
1341
+ });
1342
+ function getAllPromptsMessagesToolMessageToJSON(getAllPromptsMessagesToolMessage) {
1343
+ return JSON.stringify(exports.GetAllPromptsMessagesToolMessage$outboundSchema.parse(getAllPromptsMessagesToolMessage));
1344
+ }
1345
+ function getAllPromptsMessagesToolMessageFromJSON(jsonString) {
1346
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesToolMessage' from JSON`);
1347
+ }
1348
+ /** @internal */
1349
+ exports.GetAllPromptsContentPromptsResponse2$inboundSchema = z.union([
1350
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1351
+ components.RefusalPartSchema$inboundSchema,
1352
+ components.ReasoningPartSchema$inboundSchema,
1353
+ components.RedactedReasoningPartSchema$inboundSchema,
1354
+ ]);
1355
+ /** @internal */
1356
+ exports.GetAllPromptsContentPromptsResponse2$outboundSchema = z.union([
1357
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1358
+ components.RefusalPartSchema$outboundSchema,
1359
+ components.ReasoningPartSchema$outboundSchema,
1360
+ components.RedactedReasoningPartSchema$outboundSchema,
1361
+ ]);
1362
+ function getAllPromptsContentPromptsResponse2ToJSON(getAllPromptsContentPromptsResponse2) {
1363
+ return JSON.stringify(exports.GetAllPromptsContentPromptsResponse2$outboundSchema.parse(getAllPromptsContentPromptsResponse2));
1364
+ }
1365
+ function getAllPromptsContentPromptsResponse2FromJSON(jsonString) {
1366
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsContentPromptsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsContentPromptsResponse2' from JSON`);
1367
+ }
1368
+ /** @internal */
1369
+ exports.GetAllPromptsMessagesPromptsResponseContent$inboundSchema = z.union([
1370
+ z.string(),
1371
+ z.array(z.union([
1372
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1373
+ components.RefusalPartSchema$inboundSchema,
1374
+ components.ReasoningPartSchema$inboundSchema,
1375
+ components.RedactedReasoningPartSchema$inboundSchema,
1376
+ ])),
1377
+ ]);
1378
+ /** @internal */
1379
+ exports.GetAllPromptsMessagesPromptsResponseContent$outboundSchema = z.union([
1380
+ z.string(),
1381
+ z.array(z.union([
1382
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1383
+ components.RefusalPartSchema$outboundSchema,
1384
+ components.ReasoningPartSchema$outboundSchema,
1385
+ components.RedactedReasoningPartSchema$outboundSchema,
1386
+ ])),
1387
+ ]);
1388
+ function getAllPromptsMessagesPromptsResponseContentToJSON(getAllPromptsMessagesPromptsResponseContent) {
1389
+ return JSON.stringify(exports.GetAllPromptsMessagesPromptsResponseContent$outboundSchema.parse(getAllPromptsMessagesPromptsResponseContent));
1390
+ }
1391
+ function getAllPromptsMessagesPromptsResponseContentFromJSON(jsonString) {
1392
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesPromptsResponseContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesPromptsResponseContent' from JSON`);
1393
+ }
1394
+ /** @internal */
1395
+ exports.GetAllPromptsMessagesAudio$inboundSchema = z.object({
1396
+ id: z.string(),
1397
+ });
1398
+ /** @internal */
1399
+ exports.GetAllPromptsMessagesAudio$outboundSchema = z.object({
1400
+ id: z.string(),
1401
+ });
1402
+ function getAllPromptsMessagesAudioToJSON(getAllPromptsMessagesAudio) {
1403
+ return JSON.stringify(exports.GetAllPromptsMessagesAudio$outboundSchema.parse(getAllPromptsMessagesAudio));
1404
+ }
1405
+ function getAllPromptsMessagesAudioFromJSON(jsonString) {
1406
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesAudio' from JSON`);
1407
+ }
1408
+ /** @internal */
1409
+ exports.GetAllPromptsMessagesType$inboundSchema = z.nativeEnum(exports.GetAllPromptsMessagesType);
1410
+ /** @internal */
1411
+ exports.GetAllPromptsMessagesType$outboundSchema = exports.GetAllPromptsMessagesType$inboundSchema;
1412
+ /** @internal */
1413
+ exports.GetAllPromptsMessagesFunction$inboundSchema = z.object({
1414
+ name: z.string().optional(),
1415
+ arguments: z.string().optional(),
1416
+ });
1417
+ /** @internal */
1418
+ exports.GetAllPromptsMessagesFunction$outboundSchema = z.object({
1419
+ name: z.string().optional(),
1420
+ arguments: z.string().optional(),
1421
+ });
1422
+ function getAllPromptsMessagesFunctionToJSON(getAllPromptsMessagesFunction) {
1423
+ return JSON.stringify(exports.GetAllPromptsMessagesFunction$outboundSchema.parse(getAllPromptsMessagesFunction));
1424
+ }
1425
+ function getAllPromptsMessagesFunctionFromJSON(jsonString) {
1426
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesFunction' from JSON`);
1427
+ }
1428
+ /** @internal */
1429
+ exports.GetAllPromptsMessagesToolCalls$inboundSchema = z.object({
1430
+ id: z.string(),
1431
+ type: exports.GetAllPromptsMessagesType$inboundSchema,
1432
+ function: z.lazy(() => exports.GetAllPromptsMessagesFunction$inboundSchema),
1433
+ thought_signature: z.string().optional(),
1434
+ }).transform((v) => {
1435
+ return (0, primitives_js_1.remap)(v, {
1436
+ "thought_signature": "thoughtSignature",
1437
+ });
1438
+ });
1439
+ /** @internal */
1440
+ exports.GetAllPromptsMessagesToolCalls$outboundSchema = z.object({
1441
+ id: z.string(),
1442
+ type: exports.GetAllPromptsMessagesType$outboundSchema,
1443
+ function: z.lazy(() => exports.GetAllPromptsMessagesFunction$outboundSchema),
1444
+ thoughtSignature: z.string().optional(),
1445
+ }).transform((v) => {
1446
+ return (0, primitives_js_1.remap)(v, {
1447
+ thoughtSignature: "thought_signature",
1448
+ });
1449
+ });
1450
+ function getAllPromptsMessagesToolCallsToJSON(getAllPromptsMessagesToolCalls) {
1451
+ return JSON.stringify(exports.GetAllPromptsMessagesToolCalls$outboundSchema.parse(getAllPromptsMessagesToolCalls));
1452
+ }
1453
+ function getAllPromptsMessagesToolCallsFromJSON(jsonString) {
1454
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesToolCalls' from JSON`);
1455
+ }
1456
+ /** @internal */
1457
+ exports.GetAllPromptsMessagesAssistantMessage$inboundSchema = z.object({
1458
+ content: z.nullable(z.union([
1459
+ z.string(),
1460
+ z.array(z.union([
1461
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1462
+ components.RefusalPartSchema$inboundSchema,
1463
+ components.ReasoningPartSchema$inboundSchema,
1464
+ components.RedactedReasoningPartSchema$inboundSchema,
1465
+ ])),
1466
+ ])).optional(),
1467
+ refusal: z.nullable(z.string()).optional(),
1468
+ role: z.literal("assistant"),
1469
+ name: z.string().optional(),
1470
+ audio: z.nullable(z.lazy(() => exports.GetAllPromptsMessagesAudio$inboundSchema))
1471
+ .optional(),
1472
+ tool_calls: z.array(z.lazy(() => exports.GetAllPromptsMessagesToolCalls$inboundSchema)).optional(),
1473
+ }).transform((v) => {
1474
+ return (0, primitives_js_1.remap)(v, {
1475
+ "tool_calls": "toolCalls",
1476
+ });
1477
+ });
1478
+ /** @internal */
1479
+ exports.GetAllPromptsMessagesAssistantMessage$outboundSchema = z.object({
1480
+ content: z.nullable(z.union([
1481
+ z.string(),
1482
+ z.array(z.union([
1483
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1484
+ components.RefusalPartSchema$outboundSchema,
1485
+ components.ReasoningPartSchema$outboundSchema,
1486
+ components.RedactedReasoningPartSchema$outboundSchema,
1487
+ ])),
1488
+ ])).optional(),
1489
+ refusal: z.nullable(z.string()).optional(),
1490
+ role: z.literal("assistant"),
1491
+ name: z.string().optional(),
1492
+ audio: z.nullable(z.lazy(() => exports.GetAllPromptsMessagesAudio$outboundSchema))
1493
+ .optional(),
1494
+ toolCalls: z.array(z.lazy(() => exports.GetAllPromptsMessagesToolCalls$outboundSchema)).optional(),
1495
+ }).transform((v) => {
1496
+ return (0, primitives_js_1.remap)(v, {
1497
+ toolCalls: "tool_calls",
1498
+ });
1499
+ });
1500
+ function getAllPromptsMessagesAssistantMessageToJSON(getAllPromptsMessagesAssistantMessage) {
1501
+ return JSON.stringify(exports.GetAllPromptsMessagesAssistantMessage$outboundSchema.parse(getAllPromptsMessagesAssistantMessage));
1502
+ }
1503
+ function getAllPromptsMessagesAssistantMessageFromJSON(jsonString) {
1504
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesAssistantMessage' from JSON`);
1505
+ }
1506
+ /** @internal */
1507
+ exports.GetAllPrompts2PromptsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.GetAllPrompts2PromptsResponse200ApplicationJSONType);
1508
+ /** @internal */
1509
+ exports.GetAllPrompts2PromptsResponse200ApplicationJSONType$outboundSchema = exports.GetAllPrompts2PromptsResponse200ApplicationJSONType$inboundSchema;
1510
+ /** @internal */
1511
+ exports.GetAllPrompts2Ttl$inboundSchema = z.nativeEnum(exports.GetAllPrompts2Ttl);
1512
+ /** @internal */
1513
+ exports.GetAllPrompts2Ttl$outboundSchema = exports.GetAllPrompts2Ttl$inboundSchema;
1514
+ /** @internal */
1515
+ exports.GetAllPrompts2CacheControl$inboundSchema = z.object({
1516
+ type: exports.GetAllPrompts2PromptsResponse200ApplicationJSONType$inboundSchema,
1517
+ ttl: exports.GetAllPrompts2Ttl$inboundSchema.default("5m"),
1518
+ });
1519
+ /** @internal */
1520
+ exports.GetAllPrompts2CacheControl$outboundSchema = z.object({
1521
+ type: exports.GetAllPrompts2PromptsResponse200ApplicationJSONType$outboundSchema,
1522
+ ttl: exports.GetAllPrompts2Ttl$outboundSchema.default("5m"),
1523
+ });
1524
+ function getAllPrompts2CacheControlToJSON(getAllPrompts2CacheControl) {
1525
+ return JSON.stringify(exports.GetAllPrompts2CacheControl$outboundSchema.parse(getAllPrompts2CacheControl));
1526
+ }
1527
+ function getAllPrompts2CacheControlFromJSON(jsonString) {
1528
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPrompts2CacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPrompts2CacheControl' from JSON`);
1529
+ }
1530
+ /** @internal */
1531
+ exports.GetAllPrompts24$inboundSchema = z.object({
1532
+ type: z.literal("file"),
1533
+ cache_control: z.lazy(() => exports.GetAllPrompts2CacheControl$inboundSchema)
1534
+ .optional(),
1535
+ file: components.FileContentPartSchema$inboundSchema,
1536
+ }).transform((v) => {
1537
+ return (0, primitives_js_1.remap)(v, {
1538
+ "cache_control": "cacheControl",
1539
+ });
1540
+ });
1541
+ /** @internal */
1542
+ exports.GetAllPrompts24$outboundSchema = z.object({
1543
+ type: z.literal("file"),
1544
+ cacheControl: z.lazy(() => exports.GetAllPrompts2CacheControl$outboundSchema)
1545
+ .optional(),
1546
+ file: components.FileContentPartSchema$outboundSchema,
1547
+ }).transform((v) => {
1548
+ return (0, primitives_js_1.remap)(v, {
1549
+ cacheControl: "cache_control",
1550
+ });
1551
+ });
1552
+ function getAllPrompts24ToJSON(getAllPrompts24) {
1553
+ return JSON.stringify(exports.GetAllPrompts24$outboundSchema.parse(getAllPrompts24));
1554
+ }
1555
+ function getAllPrompts24FromJSON(jsonString) {
1556
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPrompts24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPrompts24' from JSON`);
1557
+ }
1558
+ /** @internal */
1559
+ exports.GetAllPromptsContentPrompts2$inboundSchema = z.union([
1560
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1561
+ components.ImageContentPartSchema$inboundSchema,
1562
+ components.AudioContentPartSchema$inboundSchema,
1563
+ z.lazy(() => exports.GetAllPrompts24$inboundSchema),
1564
+ ]);
1565
+ /** @internal */
1566
+ exports.GetAllPromptsContentPrompts2$outboundSchema = z.union([
1567
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1568
+ components.ImageContentPartSchema$outboundSchema,
1569
+ components.AudioContentPartSchema$outboundSchema,
1570
+ z.lazy(() => exports.GetAllPrompts24$outboundSchema),
1571
+ ]);
1572
+ function getAllPromptsContentPrompts2ToJSON(getAllPromptsContentPrompts2) {
1573
+ return JSON.stringify(exports.GetAllPromptsContentPrompts2$outboundSchema.parse(getAllPromptsContentPrompts2));
1574
+ }
1575
+ function getAllPromptsContentPrompts2FromJSON(jsonString) {
1576
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsContentPrompts2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsContentPrompts2' from JSON`);
1577
+ }
1578
+ /** @internal */
1579
+ exports.GetAllPromptsMessagesPromptsContent$inboundSchema = z.union([
1580
+ z.string(),
1581
+ z.array(z.union([
1582
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1583
+ components.ImageContentPartSchema$inboundSchema,
1584
+ components.AudioContentPartSchema$inboundSchema,
1585
+ z.lazy(() => exports.GetAllPrompts24$inboundSchema),
1586
+ ])),
1587
+ ]);
1588
+ /** @internal */
1589
+ exports.GetAllPromptsMessagesPromptsContent$outboundSchema = z.union([
1590
+ z.string(),
1591
+ z.array(z.union([
1592
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1593
+ components.ImageContentPartSchema$outboundSchema,
1594
+ components.AudioContentPartSchema$outboundSchema,
1595
+ z.lazy(() => exports.GetAllPrompts24$outboundSchema),
1596
+ ])),
1597
+ ]);
1598
+ function getAllPromptsMessagesPromptsContentToJSON(getAllPromptsMessagesPromptsContent) {
1599
+ return JSON.stringify(exports.GetAllPromptsMessagesPromptsContent$outboundSchema.parse(getAllPromptsMessagesPromptsContent));
1600
+ }
1601
+ function getAllPromptsMessagesPromptsContentFromJSON(jsonString) {
1602
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesPromptsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesPromptsContent' from JSON`);
1603
+ }
1604
+ /** @internal */
1605
+ exports.GetAllPromptsMessagesUserMessage$inboundSchema = z.object({
1606
+ role: z.literal("user"),
1607
+ name: z.string().optional(),
1608
+ content: z.union([
1609
+ z.string(),
1610
+ z.array(z.union([
1611
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1612
+ components.ImageContentPartSchema$inboundSchema,
1613
+ components.AudioContentPartSchema$inboundSchema,
1614
+ z.lazy(() => exports.GetAllPrompts24$inboundSchema),
1615
+ ])),
1616
+ ]),
1617
+ });
1618
+ /** @internal */
1619
+ exports.GetAllPromptsMessagesUserMessage$outboundSchema = z.object({
1620
+ role: z.literal("user"),
1621
+ name: z.string().optional(),
1622
+ content: z.union([
1623
+ z.string(),
1624
+ z.array(z.union([
1625
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1626
+ components.ImageContentPartSchema$outboundSchema,
1627
+ components.AudioContentPartSchema$outboundSchema,
1628
+ z.lazy(() => exports.GetAllPrompts24$outboundSchema),
1629
+ ])),
1630
+ ]),
1631
+ });
1632
+ function getAllPromptsMessagesUserMessageToJSON(getAllPromptsMessagesUserMessage) {
1633
+ return JSON.stringify(exports.GetAllPromptsMessagesUserMessage$outboundSchema.parse(getAllPromptsMessagesUserMessage));
1634
+ }
1635
+ function getAllPromptsMessagesUserMessageFromJSON(jsonString) {
1636
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesUserMessage' from JSON`);
1637
+ }
1638
+ /** @internal */
1639
+ exports.GetAllPromptsMessagesContent$inboundSchema = z.union([
1640
+ z.string(),
1641
+ z.array(components.TextContentPartSchema$inboundSchema),
1642
+ ]);
1643
+ /** @internal */
1644
+ exports.GetAllPromptsMessagesContent$outboundSchema = z.union([
1645
+ z.string(),
1646
+ z.array(components.TextContentPartSchema$outboundSchema),
1647
+ ]);
1648
+ function getAllPromptsMessagesContentToJSON(getAllPromptsMessagesContent) {
1649
+ return JSON.stringify(exports.GetAllPromptsMessagesContent$outboundSchema.parse(getAllPromptsMessagesContent));
1650
+ }
1651
+ function getAllPromptsMessagesContentFromJSON(jsonString) {
1652
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesContent' from JSON`);
1653
+ }
1654
+ /** @internal */
1655
+ exports.GetAllPromptsMessagesSystemMessage$inboundSchema = z.object({
1656
+ role: z.literal("system"),
1657
+ content: z.union([
1658
+ z.string(),
1659
+ z.array(components.TextContentPartSchema$inboundSchema),
1660
+ ]),
1661
+ name: z.string().optional(),
1662
+ });
1663
+ /** @internal */
1664
+ exports.GetAllPromptsMessagesSystemMessage$outboundSchema = z.object({
1665
+ role: z.literal("system"),
1666
+ content: z.union([
1667
+ z.string(),
1668
+ z.array(components.TextContentPartSchema$outboundSchema),
1669
+ ]),
1670
+ name: z.string().optional(),
1671
+ });
1672
+ function getAllPromptsMessagesSystemMessageToJSON(getAllPromptsMessagesSystemMessage) {
1673
+ return JSON.stringify(exports.GetAllPromptsMessagesSystemMessage$outboundSchema.parse(getAllPromptsMessagesSystemMessage));
1674
+ }
1675
+ function getAllPromptsMessagesSystemMessageFromJSON(jsonString) {
1676
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsMessagesSystemMessage' from JSON`);
1677
+ }
1678
+ /** @internal */
1679
+ exports.GetAllPromptsPromptsMessages$inboundSchema = z.union([
1680
+ z.lazy(() => exports.GetAllPromptsMessagesSystemMessage$inboundSchema),
1681
+ z.lazy(() => exports.GetAllPromptsMessagesUserMessage$inboundSchema),
1682
+ z.lazy(() => exports.GetAllPromptsMessagesAssistantMessage$inboundSchema),
1683
+ z.lazy(() => exports.GetAllPromptsMessagesToolMessage$inboundSchema),
1684
+ ]);
1685
+ /** @internal */
1686
+ exports.GetAllPromptsPromptsMessages$outboundSchema = z.union([
1687
+ z.lazy(() => exports.GetAllPromptsMessagesSystemMessage$outboundSchema),
1688
+ z.lazy(() => exports.GetAllPromptsMessagesUserMessage$outboundSchema),
1689
+ z.lazy(() => exports.GetAllPromptsMessagesAssistantMessage$outboundSchema),
1690
+ z.lazy(() => exports.GetAllPromptsMessagesToolMessage$outboundSchema),
1691
+ ]);
1692
+ function getAllPromptsPromptsMessagesToJSON(getAllPromptsPromptsMessages) {
1693
+ return JSON.stringify(exports.GetAllPromptsPromptsMessages$outboundSchema.parse(getAllPromptsPromptsMessages));
1694
+ }
1695
+ function getAllPromptsPromptsMessagesFromJSON(jsonString) {
1696
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsPromptsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsPromptsMessages' from JSON`);
1697
+ }
1698
+ /** @internal */
1699
+ exports.GetAllPromptsPromptField$inboundSchema = z.object({
1700
+ audio: z.nullable(z.lazy(() => exports.GetAllPromptsAudio$inboundSchema)).optional(),
1701
+ frequency_penalty: z.nullable(z.number()).optional(),
1702
+ max_tokens: z.nullable(z.number().int()).optional(),
1703
+ max_completion_tokens: z.nullable(z.number().int()).optional(),
1704
+ logprobs: z.nullable(z.boolean()).optional(),
1705
+ top_logprobs: z.nullable(z.number().int()).optional(),
1706
+ n: z.nullable(z.number().int()).optional(),
1707
+ presence_penalty: z.nullable(z.number()).optional(),
1708
+ response_format: z.union([
1709
+ z.lazy(() => exports.GetAllPromptsResponseFormatText$inboundSchema),
1710
+ z.lazy(() => exports.GetAllPromptsResponseFormatJSONObject$inboundSchema),
1711
+ z.lazy(() => exports.GetAllPromptsResponseFormatPromptsJSONSchema$inboundSchema),
1712
+ ]).optional(),
1713
+ reasoning_effort: exports.GetAllPromptsReasoningEffort$inboundSchema.optional(),
1714
+ verbosity: z.string().optional(),
1715
+ seed: z.nullable(z.number()).optional(),
1716
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
1717
+ stream_options: z.nullable(z.lazy(() => exports.GetAllPromptsStreamOptions$inboundSchema)).optional(),
1718
+ thinking: z.union([
1719
+ components.ThinkingConfigDisabledSchema$inboundSchema,
1720
+ components.ThinkingConfigEnabledSchema$inboundSchema,
1721
+ ]).optional(),
1722
+ temperature: z.nullable(z.number()).optional(),
1723
+ top_p: z.nullable(z.number()).optional(),
1724
+ top_k: z.nullable(z.number()).optional(),
1725
+ tool_choice: z.union([
1726
+ z.lazy(() => exports.GetAllPromptsToolChoice2$inboundSchema),
1727
+ exports.GetAllPromptsToolChoice1$inboundSchema,
1728
+ ]).optional(),
1729
+ parallel_tool_calls: z.boolean().optional(),
1730
+ modalities: z.nullable(z.array(exports.GetAllPromptsModalities$inboundSchema))
1731
+ .optional(),
1732
+ guardrails: z.array(z.lazy(() => exports.GetAllPromptsGuardrails$inboundSchema))
1733
+ .optional(),
1734
+ messages: z.array(z.union([
1735
+ z.lazy(() => exports.GetAllPromptsMessagesSystemMessage$inboundSchema),
1736
+ z.lazy(() => exports.GetAllPromptsMessagesUserMessage$inboundSchema),
1737
+ z.lazy(() => exports.GetAllPromptsMessagesAssistantMessage$inboundSchema),
1738
+ z.lazy(() => exports.GetAllPromptsMessagesToolMessage$inboundSchema),
1739
+ ])).optional(),
1740
+ model: z.nullable(z.string()).optional(),
1741
+ version: z.string().optional(),
1742
+ }).transform((v) => {
1743
+ return (0, primitives_js_1.remap)(v, {
1744
+ "frequency_penalty": "frequencyPenalty",
1745
+ "max_tokens": "maxTokens",
1746
+ "max_completion_tokens": "maxCompletionTokens",
1747
+ "top_logprobs": "topLogprobs",
1748
+ "presence_penalty": "presencePenalty",
1749
+ "response_format": "responseFormat",
1750
+ "reasoning_effort": "reasoningEffort",
1751
+ "stream_options": "streamOptions",
1752
+ "top_p": "topP",
1753
+ "top_k": "topK",
1754
+ "tool_choice": "toolChoice",
1755
+ "parallel_tool_calls": "parallelToolCalls",
1756
+ });
1757
+ });
1758
+ /** @internal */
1759
+ exports.GetAllPromptsPromptField$outboundSchema = z.object({
1760
+ audio: z.nullable(z.lazy(() => exports.GetAllPromptsAudio$outboundSchema)).optional(),
1761
+ frequencyPenalty: z.nullable(z.number()).optional(),
1762
+ maxTokens: z.nullable(z.number().int()).optional(),
1763
+ maxCompletionTokens: z.nullable(z.number().int()).optional(),
1764
+ logprobs: z.nullable(z.boolean()).optional(),
1765
+ topLogprobs: z.nullable(z.number().int()).optional(),
1766
+ n: z.nullable(z.number().int()).optional(),
1767
+ presencePenalty: z.nullable(z.number()).optional(),
1768
+ responseFormat: z.union([
1769
+ z.lazy(() => exports.GetAllPromptsResponseFormatText$outboundSchema),
1770
+ z.lazy(() => exports.GetAllPromptsResponseFormatJSONObject$outboundSchema),
1771
+ z.lazy(() => exports.GetAllPromptsResponseFormatPromptsJSONSchema$outboundSchema),
1772
+ ]).optional(),
1773
+ reasoningEffort: exports.GetAllPromptsReasoningEffort$outboundSchema.optional(),
1774
+ verbosity: z.string().optional(),
1775
+ seed: z.nullable(z.number()).optional(),
1776
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
1777
+ streamOptions: z.nullable(z.lazy(() => exports.GetAllPromptsStreamOptions$outboundSchema)).optional(),
1778
+ thinking: z.union([
1779
+ components.ThinkingConfigDisabledSchema$outboundSchema,
1780
+ components.ThinkingConfigEnabledSchema$outboundSchema,
1781
+ ]).optional(),
1782
+ temperature: z.nullable(z.number()).optional(),
1783
+ topP: z.nullable(z.number()).optional(),
1784
+ topK: z.nullable(z.number()).optional(),
1785
+ toolChoice: z.union([
1786
+ z.lazy(() => exports.GetAllPromptsToolChoice2$outboundSchema),
1787
+ exports.GetAllPromptsToolChoice1$outboundSchema,
1788
+ ]).optional(),
1789
+ parallelToolCalls: z.boolean().optional(),
1790
+ modalities: z.nullable(z.array(exports.GetAllPromptsModalities$outboundSchema))
1791
+ .optional(),
1792
+ guardrails: z.array(z.lazy(() => exports.GetAllPromptsGuardrails$outboundSchema))
1793
+ .optional(),
1794
+ messages: z.array(z.union([
1795
+ z.lazy(() => exports.GetAllPromptsMessagesSystemMessage$outboundSchema),
1796
+ z.lazy(() => exports.GetAllPromptsMessagesUserMessage$outboundSchema),
1797
+ z.lazy(() => exports.GetAllPromptsMessagesAssistantMessage$outboundSchema),
1798
+ z.lazy(() => exports.GetAllPromptsMessagesToolMessage$outboundSchema),
1799
+ ])).optional(),
1800
+ model: z.nullable(z.string()).optional(),
1801
+ version: z.string().optional(),
1802
+ }).transform((v) => {
1803
+ return (0, primitives_js_1.remap)(v, {
1804
+ frequencyPenalty: "frequency_penalty",
1805
+ maxTokens: "max_tokens",
1806
+ maxCompletionTokens: "max_completion_tokens",
1807
+ topLogprobs: "top_logprobs",
1808
+ presencePenalty: "presence_penalty",
1809
+ responseFormat: "response_format",
1810
+ reasoningEffort: "reasoning_effort",
1811
+ streamOptions: "stream_options",
1812
+ topP: "top_p",
1813
+ topK: "top_k",
1814
+ toolChoice: "tool_choice",
1815
+ parallelToolCalls: "parallel_tool_calls",
1816
+ });
1817
+ });
1818
+ function getAllPromptsPromptFieldToJSON(getAllPromptsPromptField) {
1819
+ return JSON.stringify(exports.GetAllPromptsPromptField$outboundSchema.parse(getAllPromptsPromptField));
1820
+ }
1821
+ function getAllPromptsPromptFieldFromJSON(jsonString) {
1822
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetAllPromptsPromptField$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetAllPromptsPromptField' from JSON`);
1823
+ }
1824
+ /** @internal */
808
1825
  exports.GetAllPromptsUseCases$inboundSchema = z.nativeEnum(exports.GetAllPromptsUseCases);
809
1826
  /** @internal */
810
1827
  exports.GetAllPromptsUseCases$outboundSchema = exports.GetAllPromptsUseCases$inboundSchema;
@@ -848,7 +1865,9 @@ exports.GetAllPromptsPrompt$inboundSchema = z.object({
848
1865
  updated_by_id: z.nullable(z.string()).optional(),
849
1866
  display_name: z.string(),
850
1867
  description: z.nullable(z.string()).optional(),
851
- prompt_config: z.lazy(() => exports.GetAllPromptsPromptConfig$inboundSchema),
1868
+ prompt_config: z.lazy(() => exports.GetAllPromptsPromptConfig$inboundSchema)
1869
+ .optional(),
1870
+ prompt: z.lazy(() => exports.GetAllPromptsPromptField$inboundSchema),
852
1871
  metadata: z.lazy(() => exports.GetAllPromptsMetadata$inboundSchema).optional(),
853
1872
  }).transform((v) => {
854
1873
  return (0, primitives_js_1.remap)(v, {
@@ -872,7 +1891,9 @@ exports.GetAllPromptsPrompt$outboundSchema = z.object({
872
1891
  updatedById: z.nullable(z.string()).optional(),
873
1892
  displayName: z.string(),
874
1893
  description: z.nullable(z.string()).optional(),
875
- promptConfig: z.lazy(() => exports.GetAllPromptsPromptConfig$outboundSchema),
1894
+ promptConfig: z.lazy(() => exports.GetAllPromptsPromptConfig$outboundSchema)
1895
+ .optional(),
1896
+ prompt: z.lazy(() => exports.GetAllPromptsPromptField$outboundSchema),
876
1897
  metadata: z.lazy(() => exports.GetAllPromptsMetadata$outboundSchema).optional(),
877
1898
  }).transform((v) => {
878
1899
  return (0, primitives_js_1.remap)(v, {