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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (151) hide show
  1. package/README.md +2 -1
  2. package/bin/mcp-server.js +4769 -1624
  3. package/bin/mcp-server.js.map +57 -56
  4. package/examples/package-lock.json +1 -1
  5. package/funcs/promptsDelete.d.ts +2 -1
  6. package/funcs/promptsDelete.d.ts.map +1 -1
  7. package/funcs/promptsDelete.js +7 -3
  8. package/funcs/promptsDelete.js.map +1 -1
  9. package/jsr.json +1 -1
  10. package/lib/config.d.ts +2 -2
  11. package/lib/config.js +2 -2
  12. package/mcp-server/mcp-server.js +1 -1
  13. package/mcp-server/server.js +1 -1
  14. package/models/components/conversationresponse.js +2 -2
  15. package/models/components/conversationwithmessagesresponse.js +2 -2
  16. package/models/components/partdoneevent.js +2 -2
  17. package/models/components/reasoningpart.js +2 -2
  18. package/models/errors/deleteprompt.d.ts +29 -0
  19. package/models/errors/deleteprompt.d.ts.map +1 -0
  20. package/models/errors/deleteprompt.js +74 -0
  21. package/models/errors/deleteprompt.js.map +1 -0
  22. package/models/errors/index.d.ts +1 -0
  23. package/models/errors/index.d.ts.map +1 -1
  24. package/models/errors/index.js +1 -0
  25. package/models/errors/index.js.map +1 -1
  26. package/models/operations/createcontact.js +2 -2
  27. package/models/operations/createconversation.js +2 -2
  28. package/models/operations/createconversationresponse.js +4 -4
  29. package/models/operations/createdataset.js +2 -2
  30. package/models/operations/createdatasetitem.js +8 -8
  31. package/models/operations/createdatasource.js +2 -2
  32. package/models/operations/createeval.d.ts +16 -16
  33. package/models/operations/createeval.d.ts.map +1 -1
  34. package/models/operations/createeval.js +56 -53
  35. package/models/operations/createeval.js.map +1 -1
  36. package/models/operations/createidentity.js +2 -2
  37. package/models/operations/createprompt.d.ts +1746 -976
  38. package/models/operations/createprompt.d.ts.map +1 -1
  39. package/models/operations/createprompt.js +2032 -1282
  40. package/models/operations/createprompt.js.map +1 -1
  41. package/models/operations/createtool.js +12 -12
  42. package/models/operations/deploymentgetconfig.d.ts +88 -88
  43. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  44. package/models/operations/deploymentgetconfig.js +131 -130
  45. package/models/operations/deploymentgetconfig.js.map +1 -1
  46. package/models/operations/deploymentinvoke.d.ts +5 -5
  47. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  48. package/models/operations/deploymentinvoke.js +7 -6
  49. package/models/operations/deploymentinvoke.js.map +1 -1
  50. package/models/operations/fileget.js +2 -2
  51. package/models/operations/filelist.js +2 -2
  52. package/models/operations/fileupload.js +2 -2
  53. package/models/operations/generateconversationname.js +2 -2
  54. package/models/operations/getallprompts.d.ts +1051 -42
  55. package/models/operations/getallprompts.d.ts.map +1 -1
  56. package/models/operations/getallprompts.js +1069 -48
  57. package/models/operations/getallprompts.js.map +1 -1
  58. package/models/operations/getalltools.js +12 -12
  59. package/models/operations/getevals.js +28 -28
  60. package/models/operations/getoneprompt.d.ts +1051 -42
  61. package/models/operations/getoneprompt.d.ts.map +1 -1
  62. package/models/operations/getoneprompt.js +1071 -47
  63. package/models/operations/getoneprompt.js.map +1 -1
  64. package/models/operations/getpromptversion.d.ts +1051 -42
  65. package/models/operations/getpromptversion.d.ts.map +1 -1
  66. package/models/operations/getpromptversion.js +1070 -48
  67. package/models/operations/getpromptversion.js.map +1 -1
  68. package/models/operations/listcontacts.js +2 -2
  69. package/models/operations/listdatasetdatapoints.js +8 -8
  70. package/models/operations/listdatasets.js +2 -2
  71. package/models/operations/listdatasources.js +2 -2
  72. package/models/operations/listidentities.js +2 -2
  73. package/models/operations/listpromptversions.d.ts +1051 -42
  74. package/models/operations/listpromptversions.d.ts.map +1 -1
  75. package/models/operations/listpromptversions.js +1070 -47
  76. package/models/operations/listpromptversions.js.map +1 -1
  77. package/models/operations/retrievecontact.js +2 -2
  78. package/models/operations/retrievedatapoint.js +8 -8
  79. package/models/operations/retrievedataset.js +2 -2
  80. package/models/operations/retrievedatasource.js +2 -2
  81. package/models/operations/retrieveidentity.js +2 -2
  82. package/models/operations/retrievetool.js +12 -12
  83. package/models/operations/runagent.js +2 -2
  84. package/models/operations/streamrunagent.js +2 -2
  85. package/models/operations/updatecontact.js +2 -2
  86. package/models/operations/updateconversation.js +2 -2
  87. package/models/operations/updatedatapoint.js +8 -8
  88. package/models/operations/updatedataset.js +2 -2
  89. package/models/operations/updatedatasource.js +2 -2
  90. package/models/operations/updateeval.js +28 -28
  91. package/models/operations/updateidentity.js +2 -2
  92. package/models/operations/updateprompt.d.ts +2112 -1413
  93. package/models/operations/updateprompt.d.ts.map +1 -1
  94. package/models/operations/updateprompt.js +2200 -1525
  95. package/models/operations/updateprompt.js.map +1 -1
  96. package/models/operations/updatetool.js +14 -14
  97. package/package.json +1 -1
  98. package/src/funcs/promptsDelete.ts +12 -3
  99. package/src/lib/config.ts +2 -2
  100. package/src/mcp-server/mcp-server.ts +1 -1
  101. package/src/mcp-server/server.ts +1 -1
  102. package/src/models/components/conversationresponse.ts +2 -2
  103. package/src/models/components/conversationwithmessagesresponse.ts +2 -2
  104. package/src/models/components/partdoneevent.ts +2 -2
  105. package/src/models/components/reasoningpart.ts +2 -2
  106. package/src/models/errors/deleteprompt.ts +67 -0
  107. package/src/models/errors/index.ts +1 -0
  108. package/src/models/operations/createcontact.ts +2 -2
  109. package/src/models/operations/createconversation.ts +2 -2
  110. package/src/models/operations/createconversationresponse.ts +4 -4
  111. package/src/models/operations/createdataset.ts +2 -2
  112. package/src/models/operations/createdatasetitem.ts +8 -8
  113. package/src/models/operations/createdatasource.ts +2 -2
  114. package/src/models/operations/createeval.ts +76 -96
  115. package/src/models/operations/createidentity.ts +2 -2
  116. package/src/models/operations/createprompt.ts +5179 -3019
  117. package/src/models/operations/createtool.ts +12 -12
  118. package/src/models/operations/deploymentgetconfig.ts +252 -337
  119. package/src/models/operations/deploymentinvoke.ts +9 -13
  120. package/src/models/operations/fileget.ts +2 -2
  121. package/src/models/operations/filelist.ts +2 -2
  122. package/src/models/operations/fileupload.ts +2 -2
  123. package/src/models/operations/generateconversationname.ts +2 -2
  124. package/src/models/operations/getallprompts.ts +3543 -850
  125. package/src/models/operations/getalltools.ts +12 -12
  126. package/src/models/operations/getevals.ts +28 -28
  127. package/src/models/operations/getoneprompt.ts +3463 -786
  128. package/src/models/operations/getpromptversion.ts +3579 -835
  129. package/src/models/operations/listcontacts.ts +2 -2
  130. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  131. package/src/models/operations/listdatasets.ts +2 -2
  132. package/src/models/operations/listdatasources.ts +2 -2
  133. package/src/models/operations/listidentities.ts +2 -2
  134. package/src/models/operations/listpromptversions.ts +3644 -864
  135. package/src/models/operations/retrievecontact.ts +2 -2
  136. package/src/models/operations/retrievedatapoint.ts +8 -8
  137. package/src/models/operations/retrievedataset.ts +2 -2
  138. package/src/models/operations/retrievedatasource.ts +2 -2
  139. package/src/models/operations/retrieveidentity.ts +2 -2
  140. package/src/models/operations/retrievetool.ts +12 -12
  141. package/src/models/operations/runagent.ts +2 -2
  142. package/src/models/operations/streamrunagent.ts +2 -2
  143. package/src/models/operations/updatecontact.ts +2 -2
  144. package/src/models/operations/updateconversation.ts +2 -2
  145. package/src/models/operations/updatedatapoint.ts +8 -8
  146. package/src/models/operations/updatedataset.ts +2 -2
  147. package/src/models/operations/updatedatasource.ts +2 -2
  148. package/src/models/operations/updateeval.ts +28 -28
  149. package/src/models/operations/updateidentity.ts +2 -2
  150. package/src/models/operations/updateprompt.ts +5281 -3301
  151. package/src/models/operations/updatetool.ts +14 -14
@@ -36,20 +36,22 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.GetPromptVersionEncodingFormat$outboundSchema = exports.GetPromptVersionEncodingFormat$inboundSchema = exports.GetPromptVersionPhotoRealVersion$outboundSchema = exports.GetPromptVersionPhotoRealVersion$inboundSchema = exports.GetPromptVersionResponseFormat$outboundSchema = exports.GetPromptVersionResponseFormat$inboundSchema = exports.GetPromptVersionResponseFormat1$outboundSchema = exports.GetPromptVersionResponseFormat1$inboundSchema = exports.GetPromptVersionResponseFormatJsonSchema$outboundSchema = exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema = exports.GetPromptVersionResponseFormatType$outboundSchema = exports.GetPromptVersionResponseFormatType$inboundSchema = exports.GetPromptVersionResponseFormat2$outboundSchema = exports.GetPromptVersionResponseFormat2$inboundSchema = exports.GetPromptVersionResponseFormatPromptsType$outboundSchema = exports.GetPromptVersionResponseFormatPromptsType$inboundSchema = exports.GetPromptVersionResponseFormat3$outboundSchema = exports.GetPromptVersionResponseFormat3$inboundSchema = exports.GetPromptVersionResponseFormatPromptsResponseType$outboundSchema = exports.GetPromptVersionResponseFormatPromptsResponseType$inboundSchema = exports.GetPromptVersionResponseFormat4$outboundSchema = exports.GetPromptVersionResponseFormat4$inboundSchema = exports.GetPromptVersionResponseFormat5$outboundSchema = exports.GetPromptVersionResponseFormat5$inboundSchema = exports.GetPromptVersionResponseFormat6$outboundSchema = exports.GetPromptVersionResponseFormat6$inboundSchema = exports.GetPromptVersionFormat$outboundSchema = exports.GetPromptVersionFormat$inboundSchema = exports.GetPromptVersionModelType$outboundSchema = exports.GetPromptVersionModelType$inboundSchema = exports.GetPromptVersionRequest$outboundSchema = exports.GetPromptVersionRequest$inboundSchema = exports.GetPromptVersionLanguage = exports.GetPromptVersionUseCases = exports.GetPromptVersionType = exports.GetPromptVersionRole = exports.GetPromptVersionProvider = exports.GetPromptVersionThinkingLevel = exports.GetPromptVersionVerbosity = exports.GetPromptVersionReasoningEffort = exports.GetPromptVersionEncodingFormat = exports.GetPromptVersionPhotoRealVersion = exports.GetPromptVersionResponseFormatType = exports.GetPromptVersionResponseFormatPromptsType = exports.GetPromptVersionResponseFormatPromptsResponseType = exports.GetPromptVersionResponseFormat4 = exports.GetPromptVersionResponseFormat5 = exports.GetPromptVersionResponseFormat6 = exports.GetPromptVersionFormat = exports.GetPromptVersionModelType = void 0;
40
- exports.GetPromptVersionResponseBody$outboundSchema = exports.GetPromptVersionResponseBody$inboundSchema = exports.GetPromptVersionMetadata$outboundSchema = exports.GetPromptVersionMetadata$inboundSchema = exports.GetPromptVersionLanguage$outboundSchema = exports.GetPromptVersionLanguage$inboundSchema = exports.GetPromptVersionUseCases$outboundSchema = exports.GetPromptVersionUseCases$inboundSchema = exports.GetPromptVersionPromptConfig$outboundSchema = exports.GetPromptVersionPromptConfig$inboundSchema = exports.GetPromptVersionMessages$outboundSchema = exports.GetPromptVersionMessages$inboundSchema = exports.GetPromptVersionToolCalls$outboundSchema = exports.GetPromptVersionToolCalls$inboundSchema = exports.GetPromptVersionFunction$outboundSchema = exports.GetPromptVersionFunction$inboundSchema = exports.GetPromptVersionType$outboundSchema = exports.GetPromptVersionType$inboundSchema = exports.GetPromptVersionContent$outboundSchema = exports.GetPromptVersionContent$inboundSchema = exports.GetPromptVersionContent2$outboundSchema = exports.GetPromptVersionContent2$inboundSchema = exports.GetPromptVersion21$outboundSchema = exports.GetPromptVersion21$inboundSchema = exports.GetPromptVersion22$outboundSchema = exports.GetPromptVersion22$inboundSchema = exports.GetPromptVersion2ImageUrl$outboundSchema = exports.GetPromptVersion2ImageUrl$inboundSchema = exports.GetPromptVersion23$outboundSchema = exports.GetPromptVersion23$inboundSchema = exports.GetPromptVersion2File$outboundSchema = exports.GetPromptVersion2File$inboundSchema = exports.GetPromptVersionRole$outboundSchema = exports.GetPromptVersionRole$inboundSchema = exports.GetPromptVersionProvider$outboundSchema = exports.GetPromptVersionProvider$inboundSchema = exports.GetPromptVersionModelParameters$outboundSchema = exports.GetPromptVersionModelParameters$inboundSchema = exports.GetPromptVersionThinkingLevel$outboundSchema = exports.GetPromptVersionThinkingLevel$inboundSchema = exports.GetPromptVersionVerbosity$outboundSchema = exports.GetPromptVersionVerbosity$inboundSchema = exports.GetPromptVersionReasoningEffort$outboundSchema = exports.GetPromptVersionReasoningEffort$inboundSchema = void 0;
39
+ exports.GetPromptVersionResponseFormat2$inboundSchema = exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema = exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = exports.GetPromptVersionResponseFormat3$outboundSchema = exports.GetPromptVersionResponseFormat3$inboundSchema = exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.GetPromptVersionResponseFormat4$outboundSchema = exports.GetPromptVersionResponseFormat4$inboundSchema = exports.GetPromptVersionResponseFormat5$outboundSchema = exports.GetPromptVersionResponseFormat5$inboundSchema = exports.GetPromptVersionResponseFormat6$outboundSchema = exports.GetPromptVersionResponseFormat6$inboundSchema = exports.GetPromptVersionFormat$outboundSchema = exports.GetPromptVersionFormat$inboundSchema = exports.GetPromptVersionModelType$outboundSchema = exports.GetPromptVersionModelType$inboundSchema = exports.GetPromptVersionRequest$outboundSchema = exports.GetPromptVersionRequest$inboundSchema = exports.GetPromptVersionLanguage = exports.GetPromptVersionUseCases = exports.GetPromptVersion2Ttl = exports.GetPromptVersion2PromptsResponse200ApplicationJSONType = exports.GetPromptVersionMessagesType = exports.GetPromptVersionMessagesTtl = exports.GetPromptVersionMessagesPromptsType = exports.GetPromptVersionExecuteOn = exports.GetPromptVersionId1 = exports.GetPromptVersionModalities = exports.GetPromptVersionToolChoice1 = exports.GetPromptVersionToolChoiceType = exports.GetPromptVersionReasoningEffort = exports.GetPromptVersionPromptsFormat = exports.GetPromptVersionVoice = exports.GetPromptVersionType = exports.GetPromptVersionRole = exports.GetPromptVersionProvider = exports.GetPromptVersionThinkingLevel = exports.GetPromptVersionVerbosity = exports.GetPromptVersionPromptsReasoningEffort = exports.GetPromptVersionEncodingFormat = exports.GetPromptVersionPhotoRealVersion = exports.GetPromptVersionResponseFormatPromptsResponse200Type = exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType = exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = exports.GetPromptVersionResponseFormat4 = exports.GetPromptVersionResponseFormat5 = exports.GetPromptVersionResponseFormat6 = exports.GetPromptVersionFormat = exports.GetPromptVersionModelType = void 0;
40
+ exports.GetPromptVersionVoice$inboundSchema = exports.GetPromptVersionPromptConfig$outboundSchema = exports.GetPromptVersionPromptConfig$inboundSchema = exports.GetPromptVersionMessages$outboundSchema = exports.GetPromptVersionMessages$inboundSchema = exports.GetPromptVersionToolCalls$outboundSchema = exports.GetPromptVersionToolCalls$inboundSchema = exports.GetPromptVersionFunction$outboundSchema = exports.GetPromptVersionFunction$inboundSchema = exports.GetPromptVersionType$outboundSchema = exports.GetPromptVersionType$inboundSchema = exports.GetPromptVersionContent$outboundSchema = exports.GetPromptVersionContent$inboundSchema = exports.GetPromptVersionContent2$outboundSchema = exports.GetPromptVersionContent2$inboundSchema = exports.GetPromptVersion21$outboundSchema = exports.GetPromptVersion21$inboundSchema = exports.GetPromptVersion22$outboundSchema = exports.GetPromptVersion22$inboundSchema = exports.GetPromptVersion2ImageUrl$outboundSchema = exports.GetPromptVersion2ImageUrl$inboundSchema = exports.GetPromptVersion23$outboundSchema = exports.GetPromptVersion23$inboundSchema = exports.GetPromptVersion2File$outboundSchema = exports.GetPromptVersion2File$inboundSchema = exports.GetPromptVersionRole$outboundSchema = exports.GetPromptVersionRole$inboundSchema = exports.GetPromptVersionProvider$outboundSchema = exports.GetPromptVersionProvider$inboundSchema = exports.GetPromptVersionModelParameters$outboundSchema = exports.GetPromptVersionModelParameters$inboundSchema = exports.GetPromptVersionThinkingLevel$outboundSchema = exports.GetPromptVersionThinkingLevel$inboundSchema = exports.GetPromptVersionVerbosity$outboundSchema = exports.GetPromptVersionVerbosity$inboundSchema = exports.GetPromptVersionPromptsReasoningEffort$outboundSchema = exports.GetPromptVersionPromptsReasoningEffort$inboundSchema = exports.GetPromptVersionEncodingFormat$outboundSchema = exports.GetPromptVersionEncodingFormat$inboundSchema = exports.GetPromptVersionPhotoRealVersion$outboundSchema = exports.GetPromptVersionPhotoRealVersion$inboundSchema = exports.GetPromptVersionPromptsResponseFormat$outboundSchema = exports.GetPromptVersionPromptsResponseFormat$inboundSchema = exports.GetPromptVersionResponseFormat1$outboundSchema = exports.GetPromptVersionResponseFormat1$inboundSchema = exports.GetPromptVersionResponseFormatPromptsResponseJsonSchema$outboundSchema = exports.GetPromptVersionResponseFormatPromptsResponseJsonSchema$inboundSchema = exports.GetPromptVersionResponseFormatPromptsResponse200Type$outboundSchema = exports.GetPromptVersionResponseFormatPromptsResponse200Type$inboundSchema = exports.GetPromptVersionResponseFormat2$outboundSchema = void 0;
41
+ exports.GetPromptVersionMessagesTtl$inboundSchema = exports.GetPromptVersionMessagesPromptsType$outboundSchema = exports.GetPromptVersionMessagesPromptsType$inboundSchema = exports.GetPromptVersionMessagesPromptsResponse200Content$outboundSchema = exports.GetPromptVersionMessagesPromptsResponse200Content$inboundSchema = exports.GetPromptVersionContentPromptsResponse2002$outboundSchema = exports.GetPromptVersionContentPromptsResponse2002$inboundSchema = exports.GetPromptVersionGuardrails$outboundSchema = exports.GetPromptVersionGuardrails$inboundSchema = exports.GetPromptVersionExecuteOn$outboundSchema = exports.GetPromptVersionExecuteOn$inboundSchema = exports.GetPromptVersionId$outboundSchema = exports.GetPromptVersionId$inboundSchema = exports.GetPromptVersionId1$outboundSchema = exports.GetPromptVersionId1$inboundSchema = exports.GetPromptVersionModalities$outboundSchema = exports.GetPromptVersionModalities$inboundSchema = exports.GetPromptVersionToolChoice$outboundSchema = exports.GetPromptVersionToolChoice$inboundSchema = exports.GetPromptVersionToolChoice1$outboundSchema = exports.GetPromptVersionToolChoice1$inboundSchema = exports.GetPromptVersionToolChoice2$outboundSchema = exports.GetPromptVersionToolChoice2$inboundSchema = exports.GetPromptVersionToolChoiceFunction$outboundSchema = exports.GetPromptVersionToolChoiceFunction$inboundSchema = exports.GetPromptVersionToolChoiceType$outboundSchema = exports.GetPromptVersionToolChoiceType$inboundSchema = exports.GetPromptVersionThinking$outboundSchema = exports.GetPromptVersionThinking$inboundSchema = exports.GetPromptVersionStreamOptions$outboundSchema = exports.GetPromptVersionStreamOptions$inboundSchema = exports.GetPromptVersionStop$outboundSchema = exports.GetPromptVersionStop$inboundSchema = exports.GetPromptVersionReasoningEffort$outboundSchema = exports.GetPromptVersionReasoningEffort$inboundSchema = exports.GetPromptVersionResponseFormat$outboundSchema = exports.GetPromptVersionResponseFormat$inboundSchema = exports.GetPromptVersionResponseFormatText$outboundSchema = exports.GetPromptVersionResponseFormatText$inboundSchema = exports.GetPromptVersionResponseFormatJSONObject$outboundSchema = exports.GetPromptVersionResponseFormatJSONObject$inboundSchema = exports.GetPromptVersionResponseFormatPromptsJSONSchema$outboundSchema = exports.GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema = exports.GetPromptVersionResponseFormatJsonSchema$outboundSchema = exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema = exports.GetPromptVersionAudio$outboundSchema = exports.GetPromptVersionAudio$inboundSchema = exports.GetPromptVersionPromptsFormat$outboundSchema = exports.GetPromptVersionPromptsFormat$inboundSchema = exports.GetPromptVersionVoice$outboundSchema = void 0;
42
+ exports.GetPromptVersionResponseBody$outboundSchema = exports.GetPromptVersionResponseBody$inboundSchema = exports.GetPromptVersionMetadata$outboundSchema = exports.GetPromptVersionMetadata$inboundSchema = exports.GetPromptVersionLanguage$outboundSchema = exports.GetPromptVersionLanguage$inboundSchema = exports.GetPromptVersionUseCases$outboundSchema = exports.GetPromptVersionUseCases$inboundSchema = exports.GetPromptVersionPromptField$outboundSchema = exports.GetPromptVersionPromptField$inboundSchema = exports.GetPromptVersionPromptsMessages$outboundSchema = exports.GetPromptVersionPromptsMessages$inboundSchema = exports.GetPromptVersionMessagesSystemMessage$outboundSchema = exports.GetPromptVersionMessagesSystemMessage$inboundSchema = exports.GetPromptVersionMessagesContent$outboundSchema = exports.GetPromptVersionMessagesContent$inboundSchema = exports.GetPromptVersionMessagesUserMessage$outboundSchema = exports.GetPromptVersionMessagesUserMessage$inboundSchema = exports.GetPromptVersionMessagesPromptsContent$outboundSchema = exports.GetPromptVersionMessagesPromptsContent$inboundSchema = exports.GetPromptVersionContentPrompts2$outboundSchema = exports.GetPromptVersionContentPrompts2$inboundSchema = exports.GetPromptVersion24$outboundSchema = exports.GetPromptVersion24$inboundSchema = exports.GetPromptVersion2CacheControl$outboundSchema = exports.GetPromptVersion2CacheControl$inboundSchema = exports.GetPromptVersion2Ttl$outboundSchema = exports.GetPromptVersion2Ttl$inboundSchema = exports.GetPromptVersion2PromptsResponse200ApplicationJSONType$outboundSchema = exports.GetPromptVersion2PromptsResponse200ApplicationJSONType$inboundSchema = exports.GetPromptVersionMessagesAssistantMessage$outboundSchema = exports.GetPromptVersionMessagesAssistantMessage$inboundSchema = exports.GetPromptVersionMessagesToolCalls$outboundSchema = exports.GetPromptVersionMessagesToolCalls$inboundSchema = exports.GetPromptVersionMessagesFunction$outboundSchema = exports.GetPromptVersionMessagesFunction$inboundSchema = exports.GetPromptVersionMessagesType$outboundSchema = exports.GetPromptVersionMessagesType$inboundSchema = exports.GetPromptVersionMessagesAudio$outboundSchema = exports.GetPromptVersionMessagesAudio$inboundSchema = exports.GetPromptVersionMessagesPromptsResponseContent$outboundSchema = exports.GetPromptVersionMessagesPromptsResponseContent$inboundSchema = exports.GetPromptVersionContentPromptsResponse2$outboundSchema = exports.GetPromptVersionContentPromptsResponse2$inboundSchema = exports.GetPromptVersionMessagesToolMessage$outboundSchema = exports.GetPromptVersionMessagesToolMessage$inboundSchema = exports.GetPromptVersionMessagesCacheControl$outboundSchema = exports.GetPromptVersionMessagesCacheControl$inboundSchema = exports.GetPromptVersionMessagesTtl$outboundSchema = void 0;
41
43
  exports.getPromptVersionRequestToJSON = getPromptVersionRequestToJSON;
42
44
  exports.getPromptVersionRequestFromJSON = getPromptVersionRequestFromJSON;
43
45
  exports.getPromptVersionResponseFormat3ToJSON = getPromptVersionResponseFormat3ToJSON;
44
46
  exports.getPromptVersionResponseFormat3FromJSON = getPromptVersionResponseFormat3FromJSON;
45
47
  exports.getPromptVersionResponseFormat2ToJSON = getPromptVersionResponseFormat2ToJSON;
46
48
  exports.getPromptVersionResponseFormat2FromJSON = getPromptVersionResponseFormat2FromJSON;
47
- exports.getPromptVersionResponseFormatJsonSchemaToJSON = getPromptVersionResponseFormatJsonSchemaToJSON;
48
- exports.getPromptVersionResponseFormatJsonSchemaFromJSON = getPromptVersionResponseFormatJsonSchemaFromJSON;
49
+ exports.getPromptVersionResponseFormatPromptsResponseJsonSchemaToJSON = getPromptVersionResponseFormatPromptsResponseJsonSchemaToJSON;
50
+ exports.getPromptVersionResponseFormatPromptsResponseJsonSchemaFromJSON = getPromptVersionResponseFormatPromptsResponseJsonSchemaFromJSON;
49
51
  exports.getPromptVersionResponseFormat1ToJSON = getPromptVersionResponseFormat1ToJSON;
50
52
  exports.getPromptVersionResponseFormat1FromJSON = getPromptVersionResponseFormat1FromJSON;
51
- exports.getPromptVersionResponseFormatToJSON = getPromptVersionResponseFormatToJSON;
52
- exports.getPromptVersionResponseFormatFromJSON = getPromptVersionResponseFormatFromJSON;
53
+ exports.getPromptVersionPromptsResponseFormatToJSON = getPromptVersionPromptsResponseFormatToJSON;
54
+ exports.getPromptVersionPromptsResponseFormatFromJSON = getPromptVersionPromptsResponseFormatFromJSON;
53
55
  exports.getPromptVersionModelParametersToJSON = getPromptVersionModelParametersToJSON;
54
56
  exports.getPromptVersionModelParametersFromJSON = getPromptVersionModelParametersFromJSON;
55
57
  exports.getPromptVersion2FileToJSON = getPromptVersion2FileToJSON;
@@ -74,6 +76,72 @@ exports.getPromptVersionMessagesToJSON = getPromptVersionMessagesToJSON;
74
76
  exports.getPromptVersionMessagesFromJSON = getPromptVersionMessagesFromJSON;
75
77
  exports.getPromptVersionPromptConfigToJSON = getPromptVersionPromptConfigToJSON;
76
78
  exports.getPromptVersionPromptConfigFromJSON = getPromptVersionPromptConfigFromJSON;
79
+ exports.getPromptVersionAudioToJSON = getPromptVersionAudioToJSON;
80
+ exports.getPromptVersionAudioFromJSON = getPromptVersionAudioFromJSON;
81
+ exports.getPromptVersionResponseFormatJsonSchemaToJSON = getPromptVersionResponseFormatJsonSchemaToJSON;
82
+ exports.getPromptVersionResponseFormatJsonSchemaFromJSON = getPromptVersionResponseFormatJsonSchemaFromJSON;
83
+ exports.getPromptVersionResponseFormatPromptsJSONSchemaToJSON = getPromptVersionResponseFormatPromptsJSONSchemaToJSON;
84
+ exports.getPromptVersionResponseFormatPromptsJSONSchemaFromJSON = getPromptVersionResponseFormatPromptsJSONSchemaFromJSON;
85
+ exports.getPromptVersionResponseFormatJSONObjectToJSON = getPromptVersionResponseFormatJSONObjectToJSON;
86
+ exports.getPromptVersionResponseFormatJSONObjectFromJSON = getPromptVersionResponseFormatJSONObjectFromJSON;
87
+ exports.getPromptVersionResponseFormatTextToJSON = getPromptVersionResponseFormatTextToJSON;
88
+ exports.getPromptVersionResponseFormatTextFromJSON = getPromptVersionResponseFormatTextFromJSON;
89
+ exports.getPromptVersionResponseFormatToJSON = getPromptVersionResponseFormatToJSON;
90
+ exports.getPromptVersionResponseFormatFromJSON = getPromptVersionResponseFormatFromJSON;
91
+ exports.getPromptVersionStopToJSON = getPromptVersionStopToJSON;
92
+ exports.getPromptVersionStopFromJSON = getPromptVersionStopFromJSON;
93
+ exports.getPromptVersionStreamOptionsToJSON = getPromptVersionStreamOptionsToJSON;
94
+ exports.getPromptVersionStreamOptionsFromJSON = getPromptVersionStreamOptionsFromJSON;
95
+ exports.getPromptVersionThinkingToJSON = getPromptVersionThinkingToJSON;
96
+ exports.getPromptVersionThinkingFromJSON = getPromptVersionThinkingFromJSON;
97
+ exports.getPromptVersionToolChoiceFunctionToJSON = getPromptVersionToolChoiceFunctionToJSON;
98
+ exports.getPromptVersionToolChoiceFunctionFromJSON = getPromptVersionToolChoiceFunctionFromJSON;
99
+ exports.getPromptVersionToolChoice2ToJSON = getPromptVersionToolChoice2ToJSON;
100
+ exports.getPromptVersionToolChoice2FromJSON = getPromptVersionToolChoice2FromJSON;
101
+ exports.getPromptVersionToolChoiceToJSON = getPromptVersionToolChoiceToJSON;
102
+ exports.getPromptVersionToolChoiceFromJSON = getPromptVersionToolChoiceFromJSON;
103
+ exports.getPromptVersionIdToJSON = getPromptVersionIdToJSON;
104
+ exports.getPromptVersionIdFromJSON = getPromptVersionIdFromJSON;
105
+ exports.getPromptVersionGuardrailsToJSON = getPromptVersionGuardrailsToJSON;
106
+ exports.getPromptVersionGuardrailsFromJSON = getPromptVersionGuardrailsFromJSON;
107
+ exports.getPromptVersionContentPromptsResponse2002ToJSON = getPromptVersionContentPromptsResponse2002ToJSON;
108
+ exports.getPromptVersionContentPromptsResponse2002FromJSON = getPromptVersionContentPromptsResponse2002FromJSON;
109
+ exports.getPromptVersionMessagesPromptsResponse200ContentToJSON = getPromptVersionMessagesPromptsResponse200ContentToJSON;
110
+ exports.getPromptVersionMessagesPromptsResponse200ContentFromJSON = getPromptVersionMessagesPromptsResponse200ContentFromJSON;
111
+ exports.getPromptVersionMessagesCacheControlToJSON = getPromptVersionMessagesCacheControlToJSON;
112
+ exports.getPromptVersionMessagesCacheControlFromJSON = getPromptVersionMessagesCacheControlFromJSON;
113
+ exports.getPromptVersionMessagesToolMessageToJSON = getPromptVersionMessagesToolMessageToJSON;
114
+ exports.getPromptVersionMessagesToolMessageFromJSON = getPromptVersionMessagesToolMessageFromJSON;
115
+ exports.getPromptVersionContentPromptsResponse2ToJSON = getPromptVersionContentPromptsResponse2ToJSON;
116
+ exports.getPromptVersionContentPromptsResponse2FromJSON = getPromptVersionContentPromptsResponse2FromJSON;
117
+ exports.getPromptVersionMessagesPromptsResponseContentToJSON = getPromptVersionMessagesPromptsResponseContentToJSON;
118
+ exports.getPromptVersionMessagesPromptsResponseContentFromJSON = getPromptVersionMessagesPromptsResponseContentFromJSON;
119
+ exports.getPromptVersionMessagesAudioToJSON = getPromptVersionMessagesAudioToJSON;
120
+ exports.getPromptVersionMessagesAudioFromJSON = getPromptVersionMessagesAudioFromJSON;
121
+ exports.getPromptVersionMessagesFunctionToJSON = getPromptVersionMessagesFunctionToJSON;
122
+ exports.getPromptVersionMessagesFunctionFromJSON = getPromptVersionMessagesFunctionFromJSON;
123
+ exports.getPromptVersionMessagesToolCallsToJSON = getPromptVersionMessagesToolCallsToJSON;
124
+ exports.getPromptVersionMessagesToolCallsFromJSON = getPromptVersionMessagesToolCallsFromJSON;
125
+ exports.getPromptVersionMessagesAssistantMessageToJSON = getPromptVersionMessagesAssistantMessageToJSON;
126
+ exports.getPromptVersionMessagesAssistantMessageFromJSON = getPromptVersionMessagesAssistantMessageFromJSON;
127
+ exports.getPromptVersion2CacheControlToJSON = getPromptVersion2CacheControlToJSON;
128
+ exports.getPromptVersion2CacheControlFromJSON = getPromptVersion2CacheControlFromJSON;
129
+ exports.getPromptVersion24ToJSON = getPromptVersion24ToJSON;
130
+ exports.getPromptVersion24FromJSON = getPromptVersion24FromJSON;
131
+ exports.getPromptVersionContentPrompts2ToJSON = getPromptVersionContentPrompts2ToJSON;
132
+ exports.getPromptVersionContentPrompts2FromJSON = getPromptVersionContentPrompts2FromJSON;
133
+ exports.getPromptVersionMessagesPromptsContentToJSON = getPromptVersionMessagesPromptsContentToJSON;
134
+ exports.getPromptVersionMessagesPromptsContentFromJSON = getPromptVersionMessagesPromptsContentFromJSON;
135
+ exports.getPromptVersionMessagesUserMessageToJSON = getPromptVersionMessagesUserMessageToJSON;
136
+ exports.getPromptVersionMessagesUserMessageFromJSON = getPromptVersionMessagesUserMessageFromJSON;
137
+ exports.getPromptVersionMessagesContentToJSON = getPromptVersionMessagesContentToJSON;
138
+ exports.getPromptVersionMessagesContentFromJSON = getPromptVersionMessagesContentFromJSON;
139
+ exports.getPromptVersionMessagesSystemMessageToJSON = getPromptVersionMessagesSystemMessageToJSON;
140
+ exports.getPromptVersionMessagesSystemMessageFromJSON = getPromptVersionMessagesSystemMessageFromJSON;
141
+ exports.getPromptVersionPromptsMessagesToJSON = getPromptVersionPromptsMessagesToJSON;
142
+ exports.getPromptVersionPromptsMessagesFromJSON = getPromptVersionPromptsMessagesFromJSON;
143
+ exports.getPromptVersionPromptFieldToJSON = getPromptVersionPromptFieldToJSON;
144
+ exports.getPromptVersionPromptFieldFromJSON = getPromptVersionPromptFieldFromJSON;
77
145
  exports.getPromptVersionMetadataToJSON = getPromptVersionMetadataToJSON;
78
146
  exports.getPromptVersionMetadataFromJSON = getPromptVersionMetadataFromJSON;
79
147
  exports.getPromptVersionResponseBodyToJSON = getPromptVersionResponseBodyToJSON;
@@ -81,6 +149,7 @@ exports.getPromptVersionResponseBodyFromJSON = getPromptVersionResponseBodyFromJ
81
149
  const z = __importStar(require("zod/v3"));
82
150
  const primitives_js_1 = require("../../lib/primitives.js");
83
151
  const schemas_js_1 = require("../../lib/schemas.js");
152
+ const components = __importStar(require("../components/index.js"));
84
153
  /**
85
154
  * The modality of the model
86
155
  */
@@ -123,13 +192,13 @@ exports.GetPromptVersionResponseFormat4 = {
123
192
  Wav: "wav",
124
193
  Pcm: "pcm",
125
194
  };
126
- exports.GetPromptVersionResponseFormatPromptsResponseType = {
195
+ exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType = {
127
196
  Text: "text",
128
197
  };
129
- exports.GetPromptVersionResponseFormatPromptsType = {
198
+ exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType = {
130
199
  JsonObject: "json_object",
131
200
  };
132
- exports.GetPromptVersionResponseFormatType = {
201
+ exports.GetPromptVersionResponseFormatPromptsResponse200Type = {
133
202
  JsonSchema: "json_schema",
134
203
  };
135
204
  /**
@@ -149,7 +218,7 @@ exports.GetPromptVersionEncodingFormat = {
149
218
  /**
150
219
  * Constrains effort on reasoning for reasoning models. Reducing reasoning effort can result in faster responses and fewer tokens used on reasoning in a response.
151
220
  */
152
- exports.GetPromptVersionReasoningEffort = {
221
+ exports.GetPromptVersionPromptsReasoningEffort = {
153
222
  None: "none",
154
223
  Disable: "disable",
155
224
  Minimal: "minimal",
@@ -216,6 +285,123 @@ exports.GetPromptVersionRole = {
216
285
  exports.GetPromptVersionType = {
217
286
  Function: "function",
218
287
  };
288
+ /**
289
+ * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
290
+ */
291
+ exports.GetPromptVersionVoice = {
292
+ Alloy: "alloy",
293
+ Echo: "echo",
294
+ Fable: "fable",
295
+ Onyx: "onyx",
296
+ Nova: "nova",
297
+ Shimmer: "shimmer",
298
+ };
299
+ /**
300
+ * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
301
+ */
302
+ exports.GetPromptVersionPromptsFormat = {
303
+ Wav: "wav",
304
+ Mp3: "mp3",
305
+ Flac: "flac",
306
+ Opus: "opus",
307
+ Pcm16: "pcm16",
308
+ };
309
+ /**
310
+ * 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.
311
+ *
312
+ * @remarks
313
+ *
314
+ * - `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.
315
+ * - All models before `gpt-5.1` default to `medium` reasoning effort, and do not support `none`.
316
+ * - The `gpt-5-pro` model defaults to (and only supports) `high` reasoning effort.
317
+ * - `xhigh` is currently only supported for `gpt-5.1-codex-max`.
318
+ *
319
+ * Any of "none", "minimal", "low", "medium", "high", "xhigh".
320
+ */
321
+ exports.GetPromptVersionReasoningEffort = {
322
+ None: "none",
323
+ Minimal: "minimal",
324
+ Low: "low",
325
+ Medium: "medium",
326
+ High: "high",
327
+ Xhigh: "xhigh",
328
+ };
329
+ /**
330
+ * The type of the tool. Currently, only function is supported.
331
+ */
332
+ exports.GetPromptVersionToolChoiceType = {
333
+ Function: "function",
334
+ };
335
+ exports.GetPromptVersionToolChoice1 = {
336
+ None: "none",
337
+ Auto: "auto",
338
+ Required: "required",
339
+ };
340
+ exports.GetPromptVersionModalities = {
341
+ Text: "text",
342
+ Audio: "audio",
343
+ };
344
+ /**
345
+ * The key of the guardrail.
346
+ */
347
+ exports.GetPromptVersionId1 = {
348
+ OrqPiiDetection: "orq_pii_detection",
349
+ OrqSexualModeration: "orq_sexual_moderation",
350
+ OrqHarmfulModeration: "orq_harmful_moderation",
351
+ };
352
+ /**
353
+ * Determines whether the guardrail runs on the input (user message) or output (model response).
354
+ */
355
+ exports.GetPromptVersionExecuteOn = {
356
+ Input: "input",
357
+ Output: "output",
358
+ };
359
+ /**
360
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
361
+ */
362
+ exports.GetPromptVersionMessagesPromptsType = {
363
+ Ephemeral: "ephemeral",
364
+ };
365
+ /**
366
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
367
+ *
368
+ * @remarks
369
+ *
370
+ * - `5m`: 5 minutes
371
+ * - `1h`: 1 hour
372
+ *
373
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
374
+ */
375
+ exports.GetPromptVersionMessagesTtl = {
376
+ Fivem: "5m",
377
+ Oneh: "1h",
378
+ };
379
+ /**
380
+ * The type of the tool. Currently, only `function` is supported.
381
+ */
382
+ exports.GetPromptVersionMessagesType = {
383
+ Function: "function",
384
+ };
385
+ /**
386
+ * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
387
+ */
388
+ exports.GetPromptVersion2PromptsResponse200ApplicationJSONType = {
389
+ Ephemeral: "ephemeral",
390
+ };
391
+ /**
392
+ * The time-to-live for the cache control breakpoint. This may be one of the following values:
393
+ *
394
+ * @remarks
395
+ *
396
+ * - `5m`: 5 minutes
397
+ * - `1h`: 1 hour
398
+ *
399
+ * Defaults to `5m`. Only supported by `Anthropic` Claude models.
400
+ */
401
+ exports.GetPromptVersion2Ttl = {
402
+ Fivem: "5m",
403
+ Oneh: "1h",
404
+ };
219
405
  exports.GetPromptVersionUseCases = {
220
406
  AgentsSimulations: "Agents simulations",
221
407
  Agents: "Agents",
@@ -297,17 +483,16 @@ exports.GetPromptVersionResponseFormat4$inboundSchema = z.nativeEnum(exports.Get
297
483
  /** @internal */
298
484
  exports.GetPromptVersionResponseFormat4$outboundSchema = exports.GetPromptVersionResponseFormat4$inboundSchema;
299
485
  /** @internal */
300
- exports.GetPromptVersionResponseFormatPromptsResponseType$inboundSchema = z
301
- .nativeEnum(exports.GetPromptVersionResponseFormatPromptsResponseType);
486
+ exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType);
302
487
  /** @internal */
303
- exports.GetPromptVersionResponseFormatPromptsResponseType$outboundSchema = exports.GetPromptVersionResponseFormatPromptsResponseType$inboundSchema;
488
+ exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema;
304
489
  /** @internal */
305
490
  exports.GetPromptVersionResponseFormat3$inboundSchema = z.object({
306
- type: exports.GetPromptVersionResponseFormatPromptsResponseType$inboundSchema,
491
+ type: exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$inboundSchema,
307
492
  });
308
493
  /** @internal */
309
494
  exports.GetPromptVersionResponseFormat3$outboundSchema = z.object({
310
- type: exports.GetPromptVersionResponseFormatPromptsResponseType$outboundSchema,
495
+ type: exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONResponseBodyType$outboundSchema,
311
496
  });
312
497
  function getPromptVersionResponseFormat3ToJSON(getPromptVersionResponseFormat3) {
313
498
  return JSON.stringify(exports.GetPromptVersionResponseFormat3$outboundSchema.parse(getPromptVersionResponseFormat3));
@@ -316,17 +501,16 @@ function getPromptVersionResponseFormat3FromJSON(jsonString) {
316
501
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormat3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormat3' from JSON`);
317
502
  }
318
503
  /** @internal */
319
- exports.GetPromptVersionResponseFormatPromptsType$inboundSchema = z
320
- .nativeEnum(exports.GetPromptVersionResponseFormatPromptsType);
504
+ exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType);
321
505
  /** @internal */
322
- exports.GetPromptVersionResponseFormatPromptsType$outboundSchema = exports.GetPromptVersionResponseFormatPromptsType$inboundSchema;
506
+ exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema = exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema;
323
507
  /** @internal */
324
508
  exports.GetPromptVersionResponseFormat2$inboundSchema = z.object({
325
- type: exports.GetPromptVersionResponseFormatPromptsType$inboundSchema,
509
+ type: exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType$inboundSchema,
326
510
  });
327
511
  /** @internal */
328
512
  exports.GetPromptVersionResponseFormat2$outboundSchema = z.object({
329
- type: exports.GetPromptVersionResponseFormatPromptsType$outboundSchema,
513
+ type: exports.GetPromptVersionResponseFormatPromptsResponse200ApplicationJSONType$outboundSchema,
330
514
  });
331
515
  function getPromptVersionResponseFormat2ToJSON(getPromptVersionResponseFormat2) {
332
516
  return JSON.stringify(exports.GetPromptVersionResponseFormat2$outboundSchema.parse(getPromptVersionResponseFormat2));
@@ -335,34 +519,36 @@ function getPromptVersionResponseFormat2FromJSON(jsonString) {
335
519
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormat2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormat2' from JSON`);
336
520
  }
337
521
  /** @internal */
338
- exports.GetPromptVersionResponseFormatType$inboundSchema = z.nativeEnum(exports.GetPromptVersionResponseFormatType);
522
+ exports.GetPromptVersionResponseFormatPromptsResponse200Type$inboundSchema = z.nativeEnum(exports.GetPromptVersionResponseFormatPromptsResponse200Type);
339
523
  /** @internal */
340
- exports.GetPromptVersionResponseFormatType$outboundSchema = exports.GetPromptVersionResponseFormatType$inboundSchema;
524
+ exports.GetPromptVersionResponseFormatPromptsResponse200Type$outboundSchema = exports.GetPromptVersionResponseFormatPromptsResponse200Type$inboundSchema;
341
525
  /** @internal */
342
- exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema = z.object({
526
+ exports.GetPromptVersionResponseFormatPromptsResponseJsonSchema$inboundSchema = z.object({
343
527
  name: z.string(),
344
528
  description: z.string().optional(),
345
529
  strict: z.boolean().optional(),
346
530
  schema: z.record(z.any()),
347
531
  });
348
532
  /** @internal */
349
- exports.GetPromptVersionResponseFormatJsonSchema$outboundSchema = z.object({
533
+ exports.GetPromptVersionResponseFormatPromptsResponseJsonSchema$outboundSchema = z.object({
350
534
  name: z.string(),
351
535
  description: z.string().optional(),
352
536
  strict: z.boolean().optional(),
353
537
  schema: z.record(z.any()),
354
538
  });
355
- function getPromptVersionResponseFormatJsonSchemaToJSON(getPromptVersionResponseFormatJsonSchema) {
356
- return JSON.stringify(exports.GetPromptVersionResponseFormatJsonSchema$outboundSchema.parse(getPromptVersionResponseFormatJsonSchema));
539
+ function getPromptVersionResponseFormatPromptsResponseJsonSchemaToJSON(getPromptVersionResponseFormatPromptsResponseJsonSchema) {
540
+ return JSON.stringify(exports.GetPromptVersionResponseFormatPromptsResponseJsonSchema$outboundSchema
541
+ .parse(getPromptVersionResponseFormatPromptsResponseJsonSchema));
357
542
  }
358
- function getPromptVersionResponseFormatJsonSchemaFromJSON(jsonString) {
359
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormatJsonSchema' from JSON`);
543
+ function getPromptVersionResponseFormatPromptsResponseJsonSchemaFromJSON(jsonString) {
544
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormatPromptsResponseJsonSchema$inboundSchema
545
+ .parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormatPromptsResponseJsonSchema' from JSON`);
360
546
  }
361
547
  /** @internal */
362
548
  exports.GetPromptVersionResponseFormat1$inboundSchema = z.object({
363
- type: exports.GetPromptVersionResponseFormatType$inboundSchema,
549
+ type: exports.GetPromptVersionResponseFormatPromptsResponse200Type$inboundSchema,
364
550
  display_name: z.string().optional(),
365
- json_schema: z.lazy(() => exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema),
551
+ json_schema: z.lazy(() => exports.GetPromptVersionResponseFormatPromptsResponseJsonSchema$inboundSchema),
366
552
  }).transform((v) => {
367
553
  return (0, primitives_js_1.remap)(v, {
368
554
  "display_name": "displayName",
@@ -371,9 +557,9 @@ exports.GetPromptVersionResponseFormat1$inboundSchema = z.object({
371
557
  });
372
558
  /** @internal */
373
559
  exports.GetPromptVersionResponseFormat1$outboundSchema = z.object({
374
- type: exports.GetPromptVersionResponseFormatType$outboundSchema,
560
+ type: exports.GetPromptVersionResponseFormatPromptsResponse200Type$outboundSchema,
375
561
  displayName: z.string().optional(),
376
- jsonSchema: z.lazy(() => exports.GetPromptVersionResponseFormatJsonSchema$outboundSchema),
562
+ jsonSchema: z.lazy(() => exports.GetPromptVersionResponseFormatPromptsResponseJsonSchema$outboundSchema),
377
563
  }).transform((v) => {
378
564
  return (0, primitives_js_1.remap)(v, {
379
565
  displayName: "display_name",
@@ -387,7 +573,7 @@ function getPromptVersionResponseFormat1FromJSON(jsonString) {
387
573
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormat1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormat1' from JSON`);
388
574
  }
389
575
  /** @internal */
390
- exports.GetPromptVersionResponseFormat$inboundSchema = z.union([
576
+ exports.GetPromptVersionPromptsResponseFormat$inboundSchema = z.union([
391
577
  z.lazy(() => exports.GetPromptVersionResponseFormat1$inboundSchema),
392
578
  z.lazy(() => exports.GetPromptVersionResponseFormat2$inboundSchema),
393
579
  z.lazy(() => exports.GetPromptVersionResponseFormat3$inboundSchema),
@@ -396,7 +582,7 @@ exports.GetPromptVersionResponseFormat$inboundSchema = z.union([
396
582
  exports.GetPromptVersionResponseFormat6$inboundSchema,
397
583
  ]);
398
584
  /** @internal */
399
- exports.GetPromptVersionResponseFormat$outboundSchema = z.union([
585
+ exports.GetPromptVersionPromptsResponseFormat$outboundSchema = z.union([
400
586
  z.lazy(() => exports.GetPromptVersionResponseFormat1$outboundSchema),
401
587
  z.lazy(() => exports.GetPromptVersionResponseFormat2$outboundSchema),
402
588
  z.lazy(() => exports.GetPromptVersionResponseFormat3$outboundSchema),
@@ -404,11 +590,11 @@ exports.GetPromptVersionResponseFormat$outboundSchema = z.union([
404
590
  exports.GetPromptVersionResponseFormat5$outboundSchema,
405
591
  exports.GetPromptVersionResponseFormat6$outboundSchema,
406
592
  ]);
407
- function getPromptVersionResponseFormatToJSON(getPromptVersionResponseFormat) {
408
- return JSON.stringify(exports.GetPromptVersionResponseFormat$outboundSchema.parse(getPromptVersionResponseFormat));
593
+ function getPromptVersionPromptsResponseFormatToJSON(getPromptVersionPromptsResponseFormat) {
594
+ return JSON.stringify(exports.GetPromptVersionPromptsResponseFormat$outboundSchema.parse(getPromptVersionPromptsResponseFormat));
409
595
  }
410
- function getPromptVersionResponseFormatFromJSON(jsonString) {
411
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormat' from JSON`);
596
+ function getPromptVersionPromptsResponseFormatFromJSON(jsonString) {
597
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionPromptsResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionPromptsResponseFormat' from JSON`);
412
598
  }
413
599
  /** @internal */
414
600
  exports.GetPromptVersionPhotoRealVersion$inboundSchema = z.nativeEnum(exports.GetPromptVersionPhotoRealVersion);
@@ -419,9 +605,9 @@ exports.GetPromptVersionEncodingFormat$inboundSchema = z.nativeEnum(exports.GetP
419
605
  /** @internal */
420
606
  exports.GetPromptVersionEncodingFormat$outboundSchema = exports.GetPromptVersionEncodingFormat$inboundSchema;
421
607
  /** @internal */
422
- exports.GetPromptVersionReasoningEffort$inboundSchema = z.nativeEnum(exports.GetPromptVersionReasoningEffort);
608
+ exports.GetPromptVersionPromptsReasoningEffort$inboundSchema = z.nativeEnum(exports.GetPromptVersionPromptsReasoningEffort);
423
609
  /** @internal */
424
- exports.GetPromptVersionReasoningEffort$outboundSchema = exports.GetPromptVersionReasoningEffort$inboundSchema;
610
+ exports.GetPromptVersionPromptsReasoningEffort$outboundSchema = exports.GetPromptVersionPromptsReasoningEffort$inboundSchema;
425
611
  /** @internal */
426
612
  exports.GetPromptVersionVerbosity$inboundSchema = z.nativeEnum(exports.GetPromptVersionVerbosity);
427
613
  /** @internal */
@@ -454,7 +640,8 @@ exports.GetPromptVersionModelParameters$inboundSchema = z.object({
454
640
  ])).optional(),
455
641
  photoRealVersion: exports.GetPromptVersionPhotoRealVersion$inboundSchema.optional(),
456
642
  encoding_format: exports.GetPromptVersionEncodingFormat$inboundSchema.optional(),
457
- reasoningEffort: exports.GetPromptVersionReasoningEffort$inboundSchema.optional(),
643
+ reasoningEffort: exports.GetPromptVersionPromptsReasoningEffort$inboundSchema
644
+ .optional(),
458
645
  budgetTokens: z.number().optional(),
459
646
  verbosity: exports.GetPromptVersionVerbosity$inboundSchema.optional(),
460
647
  thinkingLevel: exports.GetPromptVersionThinkingLevel$inboundSchema.optional(),
@@ -487,7 +674,8 @@ exports.GetPromptVersionModelParameters$outboundSchema = z.object({
487
674
  ])).optional(),
488
675
  photoRealVersion: exports.GetPromptVersionPhotoRealVersion$outboundSchema.optional(),
489
676
  encodingFormat: exports.GetPromptVersionEncodingFormat$outboundSchema.optional(),
490
- reasoningEffort: exports.GetPromptVersionReasoningEffort$outboundSchema.optional(),
677
+ reasoningEffort: exports.GetPromptVersionPromptsReasoningEffort$outboundSchema
678
+ .optional(),
491
679
  budgetTokens: z.number().optional(),
492
680
  verbosity: exports.GetPromptVersionVerbosity$outboundSchema.optional(),
493
681
  thinkingLevel: exports.GetPromptVersionThinkingLevel$outboundSchema.optional(),
@@ -743,12 +931,12 @@ function getPromptVersionMessagesFromJSON(jsonString) {
743
931
  /** @internal */
744
932
  exports.GetPromptVersionPromptConfig$inboundSchema = z.object({
745
933
  stream: z.boolean().optional(),
746
- model: z.string().optional(),
934
+ model: z.nullable(z.string()).optional(),
747
935
  model_db_id: z.nullable(z.string()).optional(),
748
936
  model_type: z.nullable(exports.GetPromptVersionModelType$inboundSchema).optional(),
749
937
  model_parameters: z.lazy(() => exports.GetPromptVersionModelParameters$inboundSchema)
750
938
  .optional(),
751
- provider: exports.GetPromptVersionProvider$inboundSchema.optional(),
939
+ provider: z.nullable(exports.GetPromptVersionProvider$inboundSchema).optional(),
752
940
  integration_id: z.nullable(z.string()).optional(),
753
941
  version: z.string().optional(),
754
942
  messages: z.array(z.lazy(() => exports.GetPromptVersionMessages$inboundSchema)),
@@ -763,12 +951,12 @@ exports.GetPromptVersionPromptConfig$inboundSchema = z.object({
763
951
  /** @internal */
764
952
  exports.GetPromptVersionPromptConfig$outboundSchema = z.object({
765
953
  stream: z.boolean().optional(),
766
- model: z.string().optional(),
954
+ model: z.nullable(z.string()).optional(),
767
955
  modelDbId: z.nullable(z.string()).optional(),
768
956
  modelType: z.nullable(exports.GetPromptVersionModelType$outboundSchema).optional(),
769
957
  modelParameters: z.lazy(() => exports.GetPromptVersionModelParameters$outboundSchema)
770
958
  .optional(),
771
- provider: exports.GetPromptVersionProvider$outboundSchema.optional(),
959
+ provider: z.nullable(exports.GetPromptVersionProvider$outboundSchema).optional(),
772
960
  integrationId: z.nullable(z.string()).optional(),
773
961
  version: z.string().optional(),
774
962
  messages: z.array(z.lazy(() => exports.GetPromptVersionMessages$outboundSchema)),
@@ -787,6 +975,836 @@ function getPromptVersionPromptConfigFromJSON(jsonString) {
787
975
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionPromptConfig$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionPromptConfig' from JSON`);
788
976
  }
789
977
  /** @internal */
978
+ exports.GetPromptVersionVoice$inboundSchema = z.nativeEnum(exports.GetPromptVersionVoice);
979
+ /** @internal */
980
+ exports.GetPromptVersionVoice$outboundSchema = exports.GetPromptVersionVoice$inboundSchema;
981
+ /** @internal */
982
+ exports.GetPromptVersionPromptsFormat$inboundSchema = z.nativeEnum(exports.GetPromptVersionPromptsFormat);
983
+ /** @internal */
984
+ exports.GetPromptVersionPromptsFormat$outboundSchema = exports.GetPromptVersionPromptsFormat$inboundSchema;
985
+ /** @internal */
986
+ exports.GetPromptVersionAudio$inboundSchema = z.object({
987
+ voice: exports.GetPromptVersionVoice$inboundSchema,
988
+ format: exports.GetPromptVersionPromptsFormat$inboundSchema,
989
+ });
990
+ /** @internal */
991
+ exports.GetPromptVersionAudio$outboundSchema = z.object({
992
+ voice: exports.GetPromptVersionVoice$outboundSchema,
993
+ format: exports.GetPromptVersionPromptsFormat$outboundSchema,
994
+ });
995
+ function getPromptVersionAudioToJSON(getPromptVersionAudio) {
996
+ return JSON.stringify(exports.GetPromptVersionAudio$outboundSchema.parse(getPromptVersionAudio));
997
+ }
998
+ function getPromptVersionAudioFromJSON(jsonString) {
999
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionAudio' from JSON`);
1000
+ }
1001
+ /** @internal */
1002
+ exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema = z.object({
1003
+ description: z.string().optional(),
1004
+ name: z.string(),
1005
+ schema: z.any().optional(),
1006
+ strict: z.boolean().default(false),
1007
+ });
1008
+ /** @internal */
1009
+ exports.GetPromptVersionResponseFormatJsonSchema$outboundSchema = z.object({
1010
+ description: z.string().optional(),
1011
+ name: z.string(),
1012
+ schema: z.any().optional(),
1013
+ strict: z.boolean().default(false),
1014
+ });
1015
+ function getPromptVersionResponseFormatJsonSchemaToJSON(getPromptVersionResponseFormatJsonSchema) {
1016
+ return JSON.stringify(exports.GetPromptVersionResponseFormatJsonSchema$outboundSchema.parse(getPromptVersionResponseFormatJsonSchema));
1017
+ }
1018
+ function getPromptVersionResponseFormatJsonSchemaFromJSON(jsonString) {
1019
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormatJsonSchema' from JSON`);
1020
+ }
1021
+ /** @internal */
1022
+ exports.GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema = z.object({
1023
+ type: z.literal("json_schema"),
1024
+ json_schema: z.lazy(() => exports.GetPromptVersionResponseFormatJsonSchema$inboundSchema),
1025
+ }).transform((v) => {
1026
+ return (0, primitives_js_1.remap)(v, {
1027
+ "json_schema": "jsonSchema",
1028
+ });
1029
+ });
1030
+ /** @internal */
1031
+ exports.GetPromptVersionResponseFormatPromptsJSONSchema$outboundSchema = z.object({
1032
+ type: z.literal("json_schema"),
1033
+ jsonSchema: z.lazy(() => exports.GetPromptVersionResponseFormatJsonSchema$outboundSchema),
1034
+ }).transform((v) => {
1035
+ return (0, primitives_js_1.remap)(v, {
1036
+ jsonSchema: "json_schema",
1037
+ });
1038
+ });
1039
+ function getPromptVersionResponseFormatPromptsJSONSchemaToJSON(getPromptVersionResponseFormatPromptsJSONSchema) {
1040
+ return JSON.stringify(exports.GetPromptVersionResponseFormatPromptsJSONSchema$outboundSchema.parse(getPromptVersionResponseFormatPromptsJSONSchema));
1041
+ }
1042
+ function getPromptVersionResponseFormatPromptsJSONSchemaFromJSON(jsonString) {
1043
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormatPromptsJSONSchema' from JSON`);
1044
+ }
1045
+ /** @internal */
1046
+ exports.GetPromptVersionResponseFormatJSONObject$inboundSchema = z.object({
1047
+ type: z.literal("json_object"),
1048
+ });
1049
+ /** @internal */
1050
+ exports.GetPromptVersionResponseFormatJSONObject$outboundSchema = z.object({
1051
+ type: z.literal("json_object"),
1052
+ });
1053
+ function getPromptVersionResponseFormatJSONObjectToJSON(getPromptVersionResponseFormatJSONObject) {
1054
+ return JSON.stringify(exports.GetPromptVersionResponseFormatJSONObject$outboundSchema.parse(getPromptVersionResponseFormatJSONObject));
1055
+ }
1056
+ function getPromptVersionResponseFormatJSONObjectFromJSON(jsonString) {
1057
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormatJSONObject' from JSON`);
1058
+ }
1059
+ /** @internal */
1060
+ exports.GetPromptVersionResponseFormatText$inboundSchema = z.object({
1061
+ type: z.literal("text"),
1062
+ });
1063
+ /** @internal */
1064
+ exports.GetPromptVersionResponseFormatText$outboundSchema = z.object({
1065
+ type: z.literal("text"),
1066
+ });
1067
+ function getPromptVersionResponseFormatTextToJSON(getPromptVersionResponseFormatText) {
1068
+ return JSON.stringify(exports.GetPromptVersionResponseFormatText$outboundSchema.parse(getPromptVersionResponseFormatText));
1069
+ }
1070
+ function getPromptVersionResponseFormatTextFromJSON(jsonString) {
1071
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormatText' from JSON`);
1072
+ }
1073
+ /** @internal */
1074
+ exports.GetPromptVersionResponseFormat$inboundSchema = z.union([
1075
+ z.lazy(() => exports.GetPromptVersionResponseFormatText$inboundSchema),
1076
+ z.lazy(() => exports.GetPromptVersionResponseFormatJSONObject$inboundSchema),
1077
+ z.lazy(() => exports.GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema),
1078
+ ]);
1079
+ /** @internal */
1080
+ exports.GetPromptVersionResponseFormat$outboundSchema = z.union([
1081
+ z.lazy(() => exports.GetPromptVersionResponseFormatText$outboundSchema),
1082
+ z.lazy(() => exports.GetPromptVersionResponseFormatJSONObject$outboundSchema),
1083
+ z.lazy(() => exports.GetPromptVersionResponseFormatPromptsJSONSchema$outboundSchema),
1084
+ ]);
1085
+ function getPromptVersionResponseFormatToJSON(getPromptVersionResponseFormat) {
1086
+ return JSON.stringify(exports.GetPromptVersionResponseFormat$outboundSchema.parse(getPromptVersionResponseFormat));
1087
+ }
1088
+ function getPromptVersionResponseFormatFromJSON(jsonString) {
1089
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionResponseFormat' from JSON`);
1090
+ }
1091
+ /** @internal */
1092
+ exports.GetPromptVersionReasoningEffort$inboundSchema = z.nativeEnum(exports.GetPromptVersionReasoningEffort);
1093
+ /** @internal */
1094
+ exports.GetPromptVersionReasoningEffort$outboundSchema = exports.GetPromptVersionReasoningEffort$inboundSchema;
1095
+ /** @internal */
1096
+ exports.GetPromptVersionStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
1097
+ /** @internal */
1098
+ exports.GetPromptVersionStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
1099
+ function getPromptVersionStopToJSON(getPromptVersionStop) {
1100
+ return JSON.stringify(exports.GetPromptVersionStop$outboundSchema.parse(getPromptVersionStop));
1101
+ }
1102
+ function getPromptVersionStopFromJSON(jsonString) {
1103
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionStop' from JSON`);
1104
+ }
1105
+ /** @internal */
1106
+ exports.GetPromptVersionStreamOptions$inboundSchema = z.object({
1107
+ include_usage: z.boolean().optional(),
1108
+ }).transform((v) => {
1109
+ return (0, primitives_js_1.remap)(v, {
1110
+ "include_usage": "includeUsage",
1111
+ });
1112
+ });
1113
+ /** @internal */
1114
+ exports.GetPromptVersionStreamOptions$outboundSchema = z.object({
1115
+ includeUsage: z.boolean().optional(),
1116
+ }).transform((v) => {
1117
+ return (0, primitives_js_1.remap)(v, {
1118
+ includeUsage: "include_usage",
1119
+ });
1120
+ });
1121
+ function getPromptVersionStreamOptionsToJSON(getPromptVersionStreamOptions) {
1122
+ return JSON.stringify(exports.GetPromptVersionStreamOptions$outboundSchema.parse(getPromptVersionStreamOptions));
1123
+ }
1124
+ function getPromptVersionStreamOptionsFromJSON(jsonString) {
1125
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionStreamOptions' from JSON`);
1126
+ }
1127
+ /** @internal */
1128
+ exports.GetPromptVersionThinking$inboundSchema = z.union([
1129
+ components.ThinkingConfigDisabledSchema$inboundSchema,
1130
+ components.ThinkingConfigEnabledSchema$inboundSchema,
1131
+ ]);
1132
+ /** @internal */
1133
+ exports.GetPromptVersionThinking$outboundSchema = z.union([
1134
+ components.ThinkingConfigDisabledSchema$outboundSchema,
1135
+ components.ThinkingConfigEnabledSchema$outboundSchema,
1136
+ ]);
1137
+ function getPromptVersionThinkingToJSON(getPromptVersionThinking) {
1138
+ return JSON.stringify(exports.GetPromptVersionThinking$outboundSchema.parse(getPromptVersionThinking));
1139
+ }
1140
+ function getPromptVersionThinkingFromJSON(jsonString) {
1141
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionThinking' from JSON`);
1142
+ }
1143
+ /** @internal */
1144
+ exports.GetPromptVersionToolChoiceType$inboundSchema = z.nativeEnum(exports.GetPromptVersionToolChoiceType);
1145
+ /** @internal */
1146
+ exports.GetPromptVersionToolChoiceType$outboundSchema = exports.GetPromptVersionToolChoiceType$inboundSchema;
1147
+ /** @internal */
1148
+ exports.GetPromptVersionToolChoiceFunction$inboundSchema = z.object({
1149
+ name: z.string(),
1150
+ });
1151
+ /** @internal */
1152
+ exports.GetPromptVersionToolChoiceFunction$outboundSchema = z.object({
1153
+ name: z.string(),
1154
+ });
1155
+ function getPromptVersionToolChoiceFunctionToJSON(getPromptVersionToolChoiceFunction) {
1156
+ return JSON.stringify(exports.GetPromptVersionToolChoiceFunction$outboundSchema.parse(getPromptVersionToolChoiceFunction));
1157
+ }
1158
+ function getPromptVersionToolChoiceFunctionFromJSON(jsonString) {
1159
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionToolChoiceFunction' from JSON`);
1160
+ }
1161
+ /** @internal */
1162
+ exports.GetPromptVersionToolChoice2$inboundSchema = z.object({
1163
+ type: exports.GetPromptVersionToolChoiceType$inboundSchema.optional(),
1164
+ function: z.lazy(() => exports.GetPromptVersionToolChoiceFunction$inboundSchema),
1165
+ });
1166
+ /** @internal */
1167
+ exports.GetPromptVersionToolChoice2$outboundSchema = z.object({
1168
+ type: exports.GetPromptVersionToolChoiceType$outboundSchema.optional(),
1169
+ function: z.lazy(() => exports.GetPromptVersionToolChoiceFunction$outboundSchema),
1170
+ });
1171
+ function getPromptVersionToolChoice2ToJSON(getPromptVersionToolChoice2) {
1172
+ return JSON.stringify(exports.GetPromptVersionToolChoice2$outboundSchema.parse(getPromptVersionToolChoice2));
1173
+ }
1174
+ function getPromptVersionToolChoice2FromJSON(jsonString) {
1175
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionToolChoice2' from JSON`);
1176
+ }
1177
+ /** @internal */
1178
+ exports.GetPromptVersionToolChoice1$inboundSchema = z.nativeEnum(exports.GetPromptVersionToolChoice1);
1179
+ /** @internal */
1180
+ exports.GetPromptVersionToolChoice1$outboundSchema = exports.GetPromptVersionToolChoice1$inboundSchema;
1181
+ /** @internal */
1182
+ exports.GetPromptVersionToolChoice$inboundSchema = z.union([
1183
+ z.lazy(() => exports.GetPromptVersionToolChoice2$inboundSchema),
1184
+ exports.GetPromptVersionToolChoice1$inboundSchema,
1185
+ ]);
1186
+ /** @internal */
1187
+ exports.GetPromptVersionToolChoice$outboundSchema = z.union([
1188
+ z.lazy(() => exports.GetPromptVersionToolChoice2$outboundSchema),
1189
+ exports.GetPromptVersionToolChoice1$outboundSchema,
1190
+ ]);
1191
+ function getPromptVersionToolChoiceToJSON(getPromptVersionToolChoice) {
1192
+ return JSON.stringify(exports.GetPromptVersionToolChoice$outboundSchema.parse(getPromptVersionToolChoice));
1193
+ }
1194
+ function getPromptVersionToolChoiceFromJSON(jsonString) {
1195
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionToolChoice' from JSON`);
1196
+ }
1197
+ /** @internal */
1198
+ exports.GetPromptVersionModalities$inboundSchema = z.nativeEnum(exports.GetPromptVersionModalities);
1199
+ /** @internal */
1200
+ exports.GetPromptVersionModalities$outboundSchema = exports.GetPromptVersionModalities$inboundSchema;
1201
+ /** @internal */
1202
+ exports.GetPromptVersionId1$inboundSchema = z.nativeEnum(exports.GetPromptVersionId1);
1203
+ /** @internal */
1204
+ exports.GetPromptVersionId1$outboundSchema = exports.GetPromptVersionId1$inboundSchema;
1205
+ /** @internal */
1206
+ exports.GetPromptVersionId$inboundSchema = z.union([exports.GetPromptVersionId1$inboundSchema, z.string()]);
1207
+ /** @internal */
1208
+ exports.GetPromptVersionId$outboundSchema = z.union([exports.GetPromptVersionId1$outboundSchema, z.string()]);
1209
+ function getPromptVersionIdToJSON(getPromptVersionId) {
1210
+ return JSON.stringify(exports.GetPromptVersionId$outboundSchema.parse(getPromptVersionId));
1211
+ }
1212
+ function getPromptVersionIdFromJSON(jsonString) {
1213
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionId$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionId' from JSON`);
1214
+ }
1215
+ /** @internal */
1216
+ exports.GetPromptVersionExecuteOn$inboundSchema = z.nativeEnum(exports.GetPromptVersionExecuteOn);
1217
+ /** @internal */
1218
+ exports.GetPromptVersionExecuteOn$outboundSchema = exports.GetPromptVersionExecuteOn$inboundSchema;
1219
+ /** @internal */
1220
+ exports.GetPromptVersionGuardrails$inboundSchema = z.object({
1221
+ id: z.union([exports.GetPromptVersionId1$inboundSchema, z.string()]),
1222
+ execute_on: exports.GetPromptVersionExecuteOn$inboundSchema,
1223
+ }).transform((v) => {
1224
+ return (0, primitives_js_1.remap)(v, {
1225
+ "execute_on": "executeOn",
1226
+ });
1227
+ });
1228
+ /** @internal */
1229
+ exports.GetPromptVersionGuardrails$outboundSchema = z.object({
1230
+ id: z.union([exports.GetPromptVersionId1$outboundSchema, z.string()]),
1231
+ executeOn: exports.GetPromptVersionExecuteOn$outboundSchema,
1232
+ }).transform((v) => {
1233
+ return (0, primitives_js_1.remap)(v, {
1234
+ executeOn: "execute_on",
1235
+ });
1236
+ });
1237
+ function getPromptVersionGuardrailsToJSON(getPromptVersionGuardrails) {
1238
+ return JSON.stringify(exports.GetPromptVersionGuardrails$outboundSchema.parse(getPromptVersionGuardrails));
1239
+ }
1240
+ function getPromptVersionGuardrailsFromJSON(jsonString) {
1241
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionGuardrails$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionGuardrails' from JSON`);
1242
+ }
1243
+ /** @internal */
1244
+ exports.GetPromptVersionContentPromptsResponse2002$inboundSchema = components.TextContentPartSchema$inboundSchema;
1245
+ /** @internal */
1246
+ exports.GetPromptVersionContentPromptsResponse2002$outboundSchema = components.TextContentPartSchema$outboundSchema;
1247
+ function getPromptVersionContentPromptsResponse2002ToJSON(getPromptVersionContentPromptsResponse2002) {
1248
+ return JSON.stringify(exports.GetPromptVersionContentPromptsResponse2002$outboundSchema.parse(getPromptVersionContentPromptsResponse2002));
1249
+ }
1250
+ function getPromptVersionContentPromptsResponse2002FromJSON(jsonString) {
1251
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionContentPromptsResponse2002$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionContentPromptsResponse2002' from JSON`);
1252
+ }
1253
+ /** @internal */
1254
+ exports.GetPromptVersionMessagesPromptsResponse200Content$inboundSchema = z.union([
1255
+ z.string(),
1256
+ z.array(components.TextContentPartSchema$inboundSchema),
1257
+ ]);
1258
+ /** @internal */
1259
+ exports.GetPromptVersionMessagesPromptsResponse200Content$outboundSchema = z.union([
1260
+ z.string(),
1261
+ z.array(components.TextContentPartSchema$outboundSchema),
1262
+ ]);
1263
+ function getPromptVersionMessagesPromptsResponse200ContentToJSON(getPromptVersionMessagesPromptsResponse200Content) {
1264
+ return JSON.stringify(exports.GetPromptVersionMessagesPromptsResponse200Content$outboundSchema.parse(getPromptVersionMessagesPromptsResponse200Content));
1265
+ }
1266
+ function getPromptVersionMessagesPromptsResponse200ContentFromJSON(jsonString) {
1267
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesPromptsResponse200Content$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesPromptsResponse200Content' from JSON`);
1268
+ }
1269
+ /** @internal */
1270
+ exports.GetPromptVersionMessagesPromptsType$inboundSchema = z.nativeEnum(exports.GetPromptVersionMessagesPromptsType);
1271
+ /** @internal */
1272
+ exports.GetPromptVersionMessagesPromptsType$outboundSchema = exports.GetPromptVersionMessagesPromptsType$inboundSchema;
1273
+ /** @internal */
1274
+ exports.GetPromptVersionMessagesTtl$inboundSchema = z.nativeEnum(exports.GetPromptVersionMessagesTtl);
1275
+ /** @internal */
1276
+ exports.GetPromptVersionMessagesTtl$outboundSchema = exports.GetPromptVersionMessagesTtl$inboundSchema;
1277
+ /** @internal */
1278
+ exports.GetPromptVersionMessagesCacheControl$inboundSchema = z.object({
1279
+ type: exports.GetPromptVersionMessagesPromptsType$inboundSchema,
1280
+ ttl: exports.GetPromptVersionMessagesTtl$inboundSchema.default("5m"),
1281
+ });
1282
+ /** @internal */
1283
+ exports.GetPromptVersionMessagesCacheControl$outboundSchema = z.object({
1284
+ type: exports.GetPromptVersionMessagesPromptsType$outboundSchema,
1285
+ ttl: exports.GetPromptVersionMessagesTtl$outboundSchema.default("5m"),
1286
+ });
1287
+ function getPromptVersionMessagesCacheControlToJSON(getPromptVersionMessagesCacheControl) {
1288
+ return JSON.stringify(exports.GetPromptVersionMessagesCacheControl$outboundSchema.parse(getPromptVersionMessagesCacheControl));
1289
+ }
1290
+ function getPromptVersionMessagesCacheControlFromJSON(jsonString) {
1291
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesCacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesCacheControl' from JSON`);
1292
+ }
1293
+ /** @internal */
1294
+ exports.GetPromptVersionMessagesToolMessage$inboundSchema = z.object({
1295
+ role: z.literal("tool"),
1296
+ content: z.union([
1297
+ z.string(),
1298
+ z.array(components.TextContentPartSchema$inboundSchema),
1299
+ ]),
1300
+ tool_call_id: z.nullable(z.string()),
1301
+ cache_control: z.lazy(() => exports.GetPromptVersionMessagesCacheControl$inboundSchema).optional(),
1302
+ }).transform((v) => {
1303
+ return (0, primitives_js_1.remap)(v, {
1304
+ "tool_call_id": "toolCallId",
1305
+ "cache_control": "cacheControl",
1306
+ });
1307
+ });
1308
+ /** @internal */
1309
+ exports.GetPromptVersionMessagesToolMessage$outboundSchema = z.object({
1310
+ role: z.literal("tool"),
1311
+ content: z.union([
1312
+ z.string(),
1313
+ z.array(components.TextContentPartSchema$outboundSchema),
1314
+ ]),
1315
+ toolCallId: z.nullable(z.string()),
1316
+ cacheControl: z.lazy(() => exports.GetPromptVersionMessagesCacheControl$outboundSchema).optional(),
1317
+ }).transform((v) => {
1318
+ return (0, primitives_js_1.remap)(v, {
1319
+ toolCallId: "tool_call_id",
1320
+ cacheControl: "cache_control",
1321
+ });
1322
+ });
1323
+ function getPromptVersionMessagesToolMessageToJSON(getPromptVersionMessagesToolMessage) {
1324
+ return JSON.stringify(exports.GetPromptVersionMessagesToolMessage$outboundSchema.parse(getPromptVersionMessagesToolMessage));
1325
+ }
1326
+ function getPromptVersionMessagesToolMessageFromJSON(jsonString) {
1327
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesToolMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesToolMessage' from JSON`);
1328
+ }
1329
+ /** @internal */
1330
+ exports.GetPromptVersionContentPromptsResponse2$inboundSchema = z.union([
1331
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1332
+ components.RefusalPartSchema$inboundSchema,
1333
+ components.ReasoningPartSchema$inboundSchema,
1334
+ components.RedactedReasoningPartSchema$inboundSchema,
1335
+ ]);
1336
+ /** @internal */
1337
+ exports.GetPromptVersionContentPromptsResponse2$outboundSchema = z.union([
1338
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1339
+ components.RefusalPartSchema$outboundSchema,
1340
+ components.ReasoningPartSchema$outboundSchema,
1341
+ components.RedactedReasoningPartSchema$outboundSchema,
1342
+ ]);
1343
+ function getPromptVersionContentPromptsResponse2ToJSON(getPromptVersionContentPromptsResponse2) {
1344
+ return JSON.stringify(exports.GetPromptVersionContentPromptsResponse2$outboundSchema.parse(getPromptVersionContentPromptsResponse2));
1345
+ }
1346
+ function getPromptVersionContentPromptsResponse2FromJSON(jsonString) {
1347
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionContentPromptsResponse2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionContentPromptsResponse2' from JSON`);
1348
+ }
1349
+ /** @internal */
1350
+ exports.GetPromptVersionMessagesPromptsResponseContent$inboundSchema = z.union([
1351
+ z.string(),
1352
+ z.array(z.union([
1353
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1354
+ components.RefusalPartSchema$inboundSchema,
1355
+ components.ReasoningPartSchema$inboundSchema,
1356
+ components.RedactedReasoningPartSchema$inboundSchema,
1357
+ ])),
1358
+ ]);
1359
+ /** @internal */
1360
+ exports.GetPromptVersionMessagesPromptsResponseContent$outboundSchema = z.union([
1361
+ z.string(),
1362
+ z.array(z.union([
1363
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1364
+ components.RefusalPartSchema$outboundSchema,
1365
+ components.ReasoningPartSchema$outboundSchema,
1366
+ components.RedactedReasoningPartSchema$outboundSchema,
1367
+ ])),
1368
+ ]);
1369
+ function getPromptVersionMessagesPromptsResponseContentToJSON(getPromptVersionMessagesPromptsResponseContent) {
1370
+ return JSON.stringify(exports.GetPromptVersionMessagesPromptsResponseContent$outboundSchema.parse(getPromptVersionMessagesPromptsResponseContent));
1371
+ }
1372
+ function getPromptVersionMessagesPromptsResponseContentFromJSON(jsonString) {
1373
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesPromptsResponseContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesPromptsResponseContent' from JSON`);
1374
+ }
1375
+ /** @internal */
1376
+ exports.GetPromptVersionMessagesAudio$inboundSchema = z.object({
1377
+ id: z.string(),
1378
+ });
1379
+ /** @internal */
1380
+ exports.GetPromptVersionMessagesAudio$outboundSchema = z.object({
1381
+ id: z.string(),
1382
+ });
1383
+ function getPromptVersionMessagesAudioToJSON(getPromptVersionMessagesAudio) {
1384
+ return JSON.stringify(exports.GetPromptVersionMessagesAudio$outboundSchema.parse(getPromptVersionMessagesAudio));
1385
+ }
1386
+ function getPromptVersionMessagesAudioFromJSON(jsonString) {
1387
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesAudio' from JSON`);
1388
+ }
1389
+ /** @internal */
1390
+ exports.GetPromptVersionMessagesType$inboundSchema = z.nativeEnum(exports.GetPromptVersionMessagesType);
1391
+ /** @internal */
1392
+ exports.GetPromptVersionMessagesType$outboundSchema = exports.GetPromptVersionMessagesType$inboundSchema;
1393
+ /** @internal */
1394
+ exports.GetPromptVersionMessagesFunction$inboundSchema = z.object({
1395
+ name: z.string().optional(),
1396
+ arguments: z.string().optional(),
1397
+ });
1398
+ /** @internal */
1399
+ exports.GetPromptVersionMessagesFunction$outboundSchema = z.object({
1400
+ name: z.string().optional(),
1401
+ arguments: z.string().optional(),
1402
+ });
1403
+ function getPromptVersionMessagesFunctionToJSON(getPromptVersionMessagesFunction) {
1404
+ return JSON.stringify(exports.GetPromptVersionMessagesFunction$outboundSchema.parse(getPromptVersionMessagesFunction));
1405
+ }
1406
+ function getPromptVersionMessagesFunctionFromJSON(jsonString) {
1407
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesFunction' from JSON`);
1408
+ }
1409
+ /** @internal */
1410
+ exports.GetPromptVersionMessagesToolCalls$inboundSchema = z.object({
1411
+ id: z.string(),
1412
+ type: exports.GetPromptVersionMessagesType$inboundSchema,
1413
+ function: z.lazy(() => exports.GetPromptVersionMessagesFunction$inboundSchema),
1414
+ thought_signature: z.string().optional(),
1415
+ }).transform((v) => {
1416
+ return (0, primitives_js_1.remap)(v, {
1417
+ "thought_signature": "thoughtSignature",
1418
+ });
1419
+ });
1420
+ /** @internal */
1421
+ exports.GetPromptVersionMessagesToolCalls$outboundSchema = z.object({
1422
+ id: z.string(),
1423
+ type: exports.GetPromptVersionMessagesType$outboundSchema,
1424
+ function: z.lazy(() => exports.GetPromptVersionMessagesFunction$outboundSchema),
1425
+ thoughtSignature: z.string().optional(),
1426
+ }).transform((v) => {
1427
+ return (0, primitives_js_1.remap)(v, {
1428
+ thoughtSignature: "thought_signature",
1429
+ });
1430
+ });
1431
+ function getPromptVersionMessagesToolCallsToJSON(getPromptVersionMessagesToolCalls) {
1432
+ return JSON.stringify(exports.GetPromptVersionMessagesToolCalls$outboundSchema.parse(getPromptVersionMessagesToolCalls));
1433
+ }
1434
+ function getPromptVersionMessagesToolCallsFromJSON(jsonString) {
1435
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesToolCalls$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesToolCalls' from JSON`);
1436
+ }
1437
+ /** @internal */
1438
+ exports.GetPromptVersionMessagesAssistantMessage$inboundSchema = z.object({
1439
+ content: z.nullable(z.union([
1440
+ z.string(),
1441
+ z.array(z.union([
1442
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1443
+ components.RefusalPartSchema$inboundSchema,
1444
+ components.ReasoningPartSchema$inboundSchema,
1445
+ components.RedactedReasoningPartSchema$inboundSchema,
1446
+ ])),
1447
+ ])).optional(),
1448
+ refusal: z.nullable(z.string()).optional(),
1449
+ role: z.literal("assistant"),
1450
+ name: z.string().optional(),
1451
+ audio: z.nullable(z.lazy(() => exports.GetPromptVersionMessagesAudio$inboundSchema))
1452
+ .optional(),
1453
+ tool_calls: z.array(z.lazy(() => exports.GetPromptVersionMessagesToolCalls$inboundSchema)).optional(),
1454
+ }).transform((v) => {
1455
+ return (0, primitives_js_1.remap)(v, {
1456
+ "tool_calls": "toolCalls",
1457
+ });
1458
+ });
1459
+ /** @internal */
1460
+ exports.GetPromptVersionMessagesAssistantMessage$outboundSchema = z.object({
1461
+ content: z.nullable(z.union([
1462
+ z.string(),
1463
+ z.array(z.union([
1464
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1465
+ components.RefusalPartSchema$outboundSchema,
1466
+ components.ReasoningPartSchema$outboundSchema,
1467
+ components.RedactedReasoningPartSchema$outboundSchema,
1468
+ ])),
1469
+ ])).optional(),
1470
+ refusal: z.nullable(z.string()).optional(),
1471
+ role: z.literal("assistant"),
1472
+ name: z.string().optional(),
1473
+ audio: z.nullable(z.lazy(() => exports.GetPromptVersionMessagesAudio$outboundSchema))
1474
+ .optional(),
1475
+ toolCalls: z.array(z.lazy(() => exports.GetPromptVersionMessagesToolCalls$outboundSchema)).optional(),
1476
+ }).transform((v) => {
1477
+ return (0, primitives_js_1.remap)(v, {
1478
+ toolCalls: "tool_calls",
1479
+ });
1480
+ });
1481
+ function getPromptVersionMessagesAssistantMessageToJSON(getPromptVersionMessagesAssistantMessage) {
1482
+ return JSON.stringify(exports.GetPromptVersionMessagesAssistantMessage$outboundSchema.parse(getPromptVersionMessagesAssistantMessage));
1483
+ }
1484
+ function getPromptVersionMessagesAssistantMessageFromJSON(jsonString) {
1485
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesAssistantMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesAssistantMessage' from JSON`);
1486
+ }
1487
+ /** @internal */
1488
+ exports.GetPromptVersion2PromptsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.GetPromptVersion2PromptsResponse200ApplicationJSONType);
1489
+ /** @internal */
1490
+ exports.GetPromptVersion2PromptsResponse200ApplicationJSONType$outboundSchema = exports.GetPromptVersion2PromptsResponse200ApplicationJSONType$inboundSchema;
1491
+ /** @internal */
1492
+ exports.GetPromptVersion2Ttl$inboundSchema = z.nativeEnum(exports.GetPromptVersion2Ttl);
1493
+ /** @internal */
1494
+ exports.GetPromptVersion2Ttl$outboundSchema = exports.GetPromptVersion2Ttl$inboundSchema;
1495
+ /** @internal */
1496
+ exports.GetPromptVersion2CacheControl$inboundSchema = z.object({
1497
+ type: exports.GetPromptVersion2PromptsResponse200ApplicationJSONType$inboundSchema,
1498
+ ttl: exports.GetPromptVersion2Ttl$inboundSchema.default("5m"),
1499
+ });
1500
+ /** @internal */
1501
+ exports.GetPromptVersion2CacheControl$outboundSchema = z.object({
1502
+ type: exports.GetPromptVersion2PromptsResponse200ApplicationJSONType$outboundSchema,
1503
+ ttl: exports.GetPromptVersion2Ttl$outboundSchema.default("5m"),
1504
+ });
1505
+ function getPromptVersion2CacheControlToJSON(getPromptVersion2CacheControl) {
1506
+ return JSON.stringify(exports.GetPromptVersion2CacheControl$outboundSchema.parse(getPromptVersion2CacheControl));
1507
+ }
1508
+ function getPromptVersion2CacheControlFromJSON(jsonString) {
1509
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersion2CacheControl$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersion2CacheControl' from JSON`);
1510
+ }
1511
+ /** @internal */
1512
+ exports.GetPromptVersion24$inboundSchema = z.object({
1513
+ type: z.literal("file"),
1514
+ cache_control: z.lazy(() => exports.GetPromptVersion2CacheControl$inboundSchema)
1515
+ .optional(),
1516
+ file: components.FileContentPartSchema$inboundSchema,
1517
+ }).transform((v) => {
1518
+ return (0, primitives_js_1.remap)(v, {
1519
+ "cache_control": "cacheControl",
1520
+ });
1521
+ });
1522
+ /** @internal */
1523
+ exports.GetPromptVersion24$outboundSchema = z.object({
1524
+ type: z.literal("file"),
1525
+ cacheControl: z.lazy(() => exports.GetPromptVersion2CacheControl$outboundSchema)
1526
+ .optional(),
1527
+ file: components.FileContentPartSchema$outboundSchema,
1528
+ }).transform((v) => {
1529
+ return (0, primitives_js_1.remap)(v, {
1530
+ cacheControl: "cache_control",
1531
+ });
1532
+ });
1533
+ function getPromptVersion24ToJSON(getPromptVersion24) {
1534
+ return JSON.stringify(exports.GetPromptVersion24$outboundSchema.parse(getPromptVersion24));
1535
+ }
1536
+ function getPromptVersion24FromJSON(jsonString) {
1537
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersion24$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersion24' from JSON`);
1538
+ }
1539
+ /** @internal */
1540
+ exports.GetPromptVersionContentPrompts2$inboundSchema = z.union([
1541
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1542
+ components.ImageContentPartSchema$inboundSchema,
1543
+ components.AudioContentPartSchema$inboundSchema,
1544
+ z.lazy(() => exports.GetPromptVersion24$inboundSchema),
1545
+ ]);
1546
+ /** @internal */
1547
+ exports.GetPromptVersionContentPrompts2$outboundSchema = z.union([
1548
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1549
+ components.ImageContentPartSchema$outboundSchema,
1550
+ components.AudioContentPartSchema$outboundSchema,
1551
+ z.lazy(() => exports.GetPromptVersion24$outboundSchema),
1552
+ ]);
1553
+ function getPromptVersionContentPrompts2ToJSON(getPromptVersionContentPrompts2) {
1554
+ return JSON.stringify(exports.GetPromptVersionContentPrompts2$outboundSchema.parse(getPromptVersionContentPrompts2));
1555
+ }
1556
+ function getPromptVersionContentPrompts2FromJSON(jsonString) {
1557
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionContentPrompts2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionContentPrompts2' from JSON`);
1558
+ }
1559
+ /** @internal */
1560
+ exports.GetPromptVersionMessagesPromptsContent$inboundSchema = z.union([
1561
+ z.string(),
1562
+ z.array(z.union([
1563
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1564
+ components.ImageContentPartSchema$inboundSchema,
1565
+ components.AudioContentPartSchema$inboundSchema,
1566
+ z.lazy(() => exports.GetPromptVersion24$inboundSchema),
1567
+ ])),
1568
+ ]);
1569
+ /** @internal */
1570
+ exports.GetPromptVersionMessagesPromptsContent$outboundSchema = z.union([
1571
+ z.string(),
1572
+ z.array(z.union([
1573
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1574
+ components.ImageContentPartSchema$outboundSchema,
1575
+ components.AudioContentPartSchema$outboundSchema,
1576
+ z.lazy(() => exports.GetPromptVersion24$outboundSchema),
1577
+ ])),
1578
+ ]);
1579
+ function getPromptVersionMessagesPromptsContentToJSON(getPromptVersionMessagesPromptsContent) {
1580
+ return JSON.stringify(exports.GetPromptVersionMessagesPromptsContent$outboundSchema.parse(getPromptVersionMessagesPromptsContent));
1581
+ }
1582
+ function getPromptVersionMessagesPromptsContentFromJSON(jsonString) {
1583
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesPromptsContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesPromptsContent' from JSON`);
1584
+ }
1585
+ /** @internal */
1586
+ exports.GetPromptVersionMessagesUserMessage$inboundSchema = z.object({
1587
+ role: z.literal("user"),
1588
+ name: z.string().optional(),
1589
+ content: z.union([
1590
+ z.string(),
1591
+ z.array(z.union([
1592
+ components.TextContentPartSchema$inboundSchema.and(z.object({ type: z.literal("text") })),
1593
+ components.ImageContentPartSchema$inboundSchema,
1594
+ components.AudioContentPartSchema$inboundSchema,
1595
+ z.lazy(() => exports.GetPromptVersion24$inboundSchema),
1596
+ ])),
1597
+ ]),
1598
+ });
1599
+ /** @internal */
1600
+ exports.GetPromptVersionMessagesUserMessage$outboundSchema = z.object({
1601
+ role: z.literal("user"),
1602
+ name: z.string().optional(),
1603
+ content: z.union([
1604
+ z.string(),
1605
+ z.array(z.union([
1606
+ components.TextContentPartSchema$outboundSchema.and(z.object({ type: z.literal("text") })),
1607
+ components.ImageContentPartSchema$outboundSchema,
1608
+ components.AudioContentPartSchema$outboundSchema,
1609
+ z.lazy(() => exports.GetPromptVersion24$outboundSchema),
1610
+ ])),
1611
+ ]),
1612
+ });
1613
+ function getPromptVersionMessagesUserMessageToJSON(getPromptVersionMessagesUserMessage) {
1614
+ return JSON.stringify(exports.GetPromptVersionMessagesUserMessage$outboundSchema.parse(getPromptVersionMessagesUserMessage));
1615
+ }
1616
+ function getPromptVersionMessagesUserMessageFromJSON(jsonString) {
1617
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesUserMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesUserMessage' from JSON`);
1618
+ }
1619
+ /** @internal */
1620
+ exports.GetPromptVersionMessagesContent$inboundSchema = z.union([
1621
+ z.string(),
1622
+ z.array(components.TextContentPartSchema$inboundSchema),
1623
+ ]);
1624
+ /** @internal */
1625
+ exports.GetPromptVersionMessagesContent$outboundSchema = z.union([
1626
+ z.string(),
1627
+ z.array(components.TextContentPartSchema$outboundSchema),
1628
+ ]);
1629
+ function getPromptVersionMessagesContentToJSON(getPromptVersionMessagesContent) {
1630
+ return JSON.stringify(exports.GetPromptVersionMessagesContent$outboundSchema.parse(getPromptVersionMessagesContent));
1631
+ }
1632
+ function getPromptVersionMessagesContentFromJSON(jsonString) {
1633
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesContent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesContent' from JSON`);
1634
+ }
1635
+ /** @internal */
1636
+ exports.GetPromptVersionMessagesSystemMessage$inboundSchema = z.object({
1637
+ role: z.literal("system"),
1638
+ content: z.union([
1639
+ z.string(),
1640
+ z.array(components.TextContentPartSchema$inboundSchema),
1641
+ ]),
1642
+ name: z.string().optional(),
1643
+ });
1644
+ /** @internal */
1645
+ exports.GetPromptVersionMessagesSystemMessage$outboundSchema = z.object({
1646
+ role: z.literal("system"),
1647
+ content: z.union([
1648
+ z.string(),
1649
+ z.array(components.TextContentPartSchema$outboundSchema),
1650
+ ]),
1651
+ name: z.string().optional(),
1652
+ });
1653
+ function getPromptVersionMessagesSystemMessageToJSON(getPromptVersionMessagesSystemMessage) {
1654
+ return JSON.stringify(exports.GetPromptVersionMessagesSystemMessage$outboundSchema.parse(getPromptVersionMessagesSystemMessage));
1655
+ }
1656
+ function getPromptVersionMessagesSystemMessageFromJSON(jsonString) {
1657
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionMessagesSystemMessage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionMessagesSystemMessage' from JSON`);
1658
+ }
1659
+ /** @internal */
1660
+ exports.GetPromptVersionPromptsMessages$inboundSchema = z.union([
1661
+ z.lazy(() => exports.GetPromptVersionMessagesSystemMessage$inboundSchema),
1662
+ z.lazy(() => exports.GetPromptVersionMessagesUserMessage$inboundSchema),
1663
+ z.lazy(() => exports.GetPromptVersionMessagesAssistantMessage$inboundSchema),
1664
+ z.lazy(() => exports.GetPromptVersionMessagesToolMessage$inboundSchema),
1665
+ ]);
1666
+ /** @internal */
1667
+ exports.GetPromptVersionPromptsMessages$outboundSchema = z.union([
1668
+ z.lazy(() => exports.GetPromptVersionMessagesSystemMessage$outboundSchema),
1669
+ z.lazy(() => exports.GetPromptVersionMessagesUserMessage$outboundSchema),
1670
+ z.lazy(() => exports.GetPromptVersionMessagesAssistantMessage$outboundSchema),
1671
+ z.lazy(() => exports.GetPromptVersionMessagesToolMessage$outboundSchema),
1672
+ ]);
1673
+ function getPromptVersionPromptsMessagesToJSON(getPromptVersionPromptsMessages) {
1674
+ return JSON.stringify(exports.GetPromptVersionPromptsMessages$outboundSchema.parse(getPromptVersionPromptsMessages));
1675
+ }
1676
+ function getPromptVersionPromptsMessagesFromJSON(jsonString) {
1677
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionPromptsMessages$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionPromptsMessages' from JSON`);
1678
+ }
1679
+ /** @internal */
1680
+ exports.GetPromptVersionPromptField$inboundSchema = z.object({
1681
+ audio: z.nullable(z.lazy(() => exports.GetPromptVersionAudio$inboundSchema))
1682
+ .optional(),
1683
+ frequency_penalty: z.nullable(z.number()).optional(),
1684
+ max_tokens: z.nullable(z.number().int()).optional(),
1685
+ max_completion_tokens: z.nullable(z.number().int()).optional(),
1686
+ logprobs: z.nullable(z.boolean()).optional(),
1687
+ top_logprobs: z.nullable(z.number().int()).optional(),
1688
+ n: z.nullable(z.number().int()).optional(),
1689
+ presence_penalty: z.nullable(z.number()).optional(),
1690
+ response_format: z.union([
1691
+ z.lazy(() => exports.GetPromptVersionResponseFormatText$inboundSchema),
1692
+ z.lazy(() => exports.GetPromptVersionResponseFormatJSONObject$inboundSchema),
1693
+ z.lazy(() => exports.GetPromptVersionResponseFormatPromptsJSONSchema$inboundSchema),
1694
+ ]).optional(),
1695
+ reasoning_effort: exports.GetPromptVersionReasoningEffort$inboundSchema.optional(),
1696
+ verbosity: z.string().optional(),
1697
+ seed: z.nullable(z.number()).optional(),
1698
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
1699
+ stream_options: z.nullable(z.lazy(() => exports.GetPromptVersionStreamOptions$inboundSchema)).optional(),
1700
+ thinking: z.union([
1701
+ components.ThinkingConfigDisabledSchema$inboundSchema,
1702
+ components.ThinkingConfigEnabledSchema$inboundSchema,
1703
+ ]).optional(),
1704
+ temperature: z.nullable(z.number()).optional(),
1705
+ top_p: z.nullable(z.number()).optional(),
1706
+ top_k: z.nullable(z.number()).optional(),
1707
+ tool_choice: z.union([
1708
+ z.lazy(() => exports.GetPromptVersionToolChoice2$inboundSchema),
1709
+ exports.GetPromptVersionToolChoice1$inboundSchema,
1710
+ ]).optional(),
1711
+ parallel_tool_calls: z.boolean().optional(),
1712
+ modalities: z.nullable(z.array(exports.GetPromptVersionModalities$inboundSchema))
1713
+ .optional(),
1714
+ guardrails: z.array(z.lazy(() => exports.GetPromptVersionGuardrails$inboundSchema))
1715
+ .optional(),
1716
+ messages: z.array(z.union([
1717
+ z.lazy(() => exports.GetPromptVersionMessagesSystemMessage$inboundSchema),
1718
+ z.lazy(() => exports.GetPromptVersionMessagesUserMessage$inboundSchema),
1719
+ z.lazy(() => exports.GetPromptVersionMessagesAssistantMessage$inboundSchema),
1720
+ z.lazy(() => exports.GetPromptVersionMessagesToolMessage$inboundSchema),
1721
+ ])).optional(),
1722
+ model: z.nullable(z.string()).optional(),
1723
+ version: z.string().optional(),
1724
+ }).transform((v) => {
1725
+ return (0, primitives_js_1.remap)(v, {
1726
+ "frequency_penalty": "frequencyPenalty",
1727
+ "max_tokens": "maxTokens",
1728
+ "max_completion_tokens": "maxCompletionTokens",
1729
+ "top_logprobs": "topLogprobs",
1730
+ "presence_penalty": "presencePenalty",
1731
+ "response_format": "responseFormat",
1732
+ "reasoning_effort": "reasoningEffort",
1733
+ "stream_options": "streamOptions",
1734
+ "top_p": "topP",
1735
+ "top_k": "topK",
1736
+ "tool_choice": "toolChoice",
1737
+ "parallel_tool_calls": "parallelToolCalls",
1738
+ });
1739
+ });
1740
+ /** @internal */
1741
+ exports.GetPromptVersionPromptField$outboundSchema = z.object({
1742
+ audio: z.nullable(z.lazy(() => exports.GetPromptVersionAudio$outboundSchema))
1743
+ .optional(),
1744
+ frequencyPenalty: z.nullable(z.number()).optional(),
1745
+ maxTokens: z.nullable(z.number().int()).optional(),
1746
+ maxCompletionTokens: z.nullable(z.number().int()).optional(),
1747
+ logprobs: z.nullable(z.boolean()).optional(),
1748
+ topLogprobs: z.nullable(z.number().int()).optional(),
1749
+ n: z.nullable(z.number().int()).optional(),
1750
+ presencePenalty: z.nullable(z.number()).optional(),
1751
+ responseFormat: z.union([
1752
+ z.lazy(() => exports.GetPromptVersionResponseFormatText$outboundSchema),
1753
+ z.lazy(() => exports.GetPromptVersionResponseFormatJSONObject$outboundSchema),
1754
+ z.lazy(() => exports.GetPromptVersionResponseFormatPromptsJSONSchema$outboundSchema),
1755
+ ]).optional(),
1756
+ reasoningEffort: exports.GetPromptVersionReasoningEffort$outboundSchema.optional(),
1757
+ verbosity: z.string().optional(),
1758
+ seed: z.nullable(z.number()).optional(),
1759
+ stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
1760
+ streamOptions: z.nullable(z.lazy(() => exports.GetPromptVersionStreamOptions$outboundSchema)).optional(),
1761
+ thinking: z.union([
1762
+ components.ThinkingConfigDisabledSchema$outboundSchema,
1763
+ components.ThinkingConfigEnabledSchema$outboundSchema,
1764
+ ]).optional(),
1765
+ temperature: z.nullable(z.number()).optional(),
1766
+ topP: z.nullable(z.number()).optional(),
1767
+ topK: z.nullable(z.number()).optional(),
1768
+ toolChoice: z.union([
1769
+ z.lazy(() => exports.GetPromptVersionToolChoice2$outboundSchema),
1770
+ exports.GetPromptVersionToolChoice1$outboundSchema,
1771
+ ]).optional(),
1772
+ parallelToolCalls: z.boolean().optional(),
1773
+ modalities: z.nullable(z.array(exports.GetPromptVersionModalities$outboundSchema))
1774
+ .optional(),
1775
+ guardrails: z.array(z.lazy(() => exports.GetPromptVersionGuardrails$outboundSchema))
1776
+ .optional(),
1777
+ messages: z.array(z.union([
1778
+ z.lazy(() => exports.GetPromptVersionMessagesSystemMessage$outboundSchema),
1779
+ z.lazy(() => exports.GetPromptVersionMessagesUserMessage$outboundSchema),
1780
+ z.lazy(() => exports.GetPromptVersionMessagesAssistantMessage$outboundSchema),
1781
+ z.lazy(() => exports.GetPromptVersionMessagesToolMessage$outboundSchema),
1782
+ ])).optional(),
1783
+ model: z.nullable(z.string()).optional(),
1784
+ version: z.string().optional(),
1785
+ }).transform((v) => {
1786
+ return (0, primitives_js_1.remap)(v, {
1787
+ frequencyPenalty: "frequency_penalty",
1788
+ maxTokens: "max_tokens",
1789
+ maxCompletionTokens: "max_completion_tokens",
1790
+ topLogprobs: "top_logprobs",
1791
+ presencePenalty: "presence_penalty",
1792
+ responseFormat: "response_format",
1793
+ reasoningEffort: "reasoning_effort",
1794
+ streamOptions: "stream_options",
1795
+ topP: "top_p",
1796
+ topK: "top_k",
1797
+ toolChoice: "tool_choice",
1798
+ parallelToolCalls: "parallel_tool_calls",
1799
+ });
1800
+ });
1801
+ function getPromptVersionPromptFieldToJSON(getPromptVersionPromptField) {
1802
+ return JSON.stringify(exports.GetPromptVersionPromptField$outboundSchema.parse(getPromptVersionPromptField));
1803
+ }
1804
+ function getPromptVersionPromptFieldFromJSON(jsonString) {
1805
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.GetPromptVersionPromptField$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'GetPromptVersionPromptField' from JSON`);
1806
+ }
1807
+ /** @internal */
790
1808
  exports.GetPromptVersionUseCases$inboundSchema = z.nativeEnum(exports.GetPromptVersionUseCases);
791
1809
  /** @internal */
792
1810
  exports.GetPromptVersionUseCases$outboundSchema = exports.GetPromptVersionUseCases$inboundSchema;
@@ -824,7 +1842,9 @@ exports.GetPromptVersionResponseBody$inboundSchema = z.object({
824
1842
  created_by_id: z.nullable(z.string()).optional(),
825
1843
  updated_by_id: z.nullable(z.string()).optional(),
826
1844
  description: z.nullable(z.string()).optional(),
827
- prompt_config: z.lazy(() => exports.GetPromptVersionPromptConfig$inboundSchema),
1845
+ prompt_config: z.lazy(() => exports.GetPromptVersionPromptConfig$inboundSchema)
1846
+ .optional(),
1847
+ prompt: z.lazy(() => exports.GetPromptVersionPromptField$inboundSchema),
828
1848
  metadata: z.lazy(() => exports.GetPromptVersionMetadata$inboundSchema).optional(),
829
1849
  timestamp: z.string(),
830
1850
  }).transform((v) => {
@@ -841,7 +1861,9 @@ exports.GetPromptVersionResponseBody$outboundSchema = z.object({
841
1861
  createdById: z.nullable(z.string()).optional(),
842
1862
  updatedById: z.nullable(z.string()).optional(),
843
1863
  description: z.nullable(z.string()).optional(),
844
- promptConfig: z.lazy(() => exports.GetPromptVersionPromptConfig$outboundSchema),
1864
+ promptConfig: z.lazy(() => exports.GetPromptVersionPromptConfig$outboundSchema)
1865
+ .optional(),
1866
+ prompt: z.lazy(() => exports.GetPromptVersionPromptField$outboundSchema),
845
1867
  metadata: z.lazy(() => exports.GetPromptVersionMetadata$outboundSchema).optional(),
846
1868
  timestamp: z.string(),
847
1869
  }).transform((v) => {