@orq-ai/node 4.0.0-rc.20 → 4.0.0-rc.21

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 (161) hide show
  1. package/README.md +25 -21
  2. package/bin/mcp-server.js +4356 -3411
  3. package/bin/mcp-server.js.map +54 -50
  4. package/docs/sdks/agents/README.md +83 -3
  5. package/examples/package-lock.json +1 -1
  6. package/funcs/agentsDuplicate.d.ts +18 -0
  7. package/funcs/agentsDuplicate.d.ts.map +1 -0
  8. package/funcs/agentsDuplicate.js +123 -0
  9. package/funcs/agentsDuplicate.js.map +1 -0
  10. package/funcs/agentsList.d.ts +1 -1
  11. package/funcs/agentsList.js +1 -1
  12. package/jsr.json +1 -1
  13. package/lib/config.d.ts +3 -3
  14. package/lib/config.js +3 -3
  15. package/mcp-server/mcp-server.js +1 -1
  16. package/mcp-server/server.d.ts.map +1 -1
  17. package/mcp-server/server.js +3 -1
  18. package/mcp-server/server.js.map +1 -1
  19. package/mcp-server/tools/agentsDuplicate.d.ts +8 -0
  20. package/mcp-server/tools/agentsDuplicate.d.ts.map +1 -0
  21. package/mcp-server/tools/agentsDuplicate.js +64 -0
  22. package/mcp-server/tools/agentsDuplicate.js.map +1 -0
  23. package/mcp-server/tools/agentsList.js +1 -1
  24. package/mcp-server/tools/agentsList.js.map +1 -1
  25. package/models/errors/duplicateagent.d.ts +55 -0
  26. package/models/errors/duplicateagent.d.ts.map +1 -0
  27. package/models/errors/duplicateagent.js +106 -0
  28. package/models/errors/duplicateagent.js.map +1 -0
  29. package/models/errors/index.d.ts +1 -0
  30. package/models/errors/index.d.ts.map +1 -1
  31. package/models/errors/index.js +1 -0
  32. package/models/errors/index.js.map +1 -1
  33. package/models/operations/createagent.d.ts +19 -10
  34. package/models/operations/createagent.d.ts.map +1 -1
  35. package/models/operations/createagent.js +14 -11
  36. package/models/operations/createagent.js.map +1 -1
  37. package/models/operations/createbudget.js +2 -2
  38. package/models/operations/createcontact.js +2 -2
  39. package/models/operations/createdataset.js +2 -2
  40. package/models/operations/createdatasetitem.js +8 -8
  41. package/models/operations/createdatasource.js +2 -2
  42. package/models/operations/createeval.js +28 -28
  43. package/models/operations/createtool.js +10 -10
  44. package/models/operations/duplicateagent.d.ts +1267 -0
  45. package/models/operations/duplicateagent.d.ts.map +1 -0
  46. package/models/operations/duplicateagent.js +1278 -0
  47. package/models/operations/duplicateagent.js.map +1 -0
  48. package/models/operations/duplicatetool.js +10 -10
  49. package/models/operations/fileget.js +2 -2
  50. package/models/operations/filelist.js +2 -2
  51. package/models/operations/fileupload.js +2 -2
  52. package/models/operations/getagent.d.ts +12 -9
  53. package/models/operations/getagent.d.ts.map +1 -1
  54. package/models/operations/getagent.js +11 -11
  55. package/models/operations/getagent.js.map +1 -1
  56. package/models/operations/getagenttask.d.ts +321 -4
  57. package/models/operations/getagenttask.d.ts.map +1 -1
  58. package/models/operations/getagenttask.js +351 -5
  59. package/models/operations/getagenttask.js.map +1 -1
  60. package/models/operations/getalltools.js +10 -10
  61. package/models/operations/getbudget.js +2 -2
  62. package/models/operations/getevals.js +28 -28
  63. package/models/operations/index.d.ts +1 -0
  64. package/models/operations/index.d.ts.map +1 -1
  65. package/models/operations/index.js +1 -0
  66. package/models/operations/index.js.map +1 -1
  67. package/models/operations/invokeagent.d.ts +231 -2
  68. package/models/operations/invokeagent.d.ts.map +1 -1
  69. package/models/operations/invokeagent.js +261 -4
  70. package/models/operations/invokeagent.js.map +1 -1
  71. package/models/operations/listagents.d.ts +14 -11
  72. package/models/operations/listagents.d.ts.map +1 -1
  73. package/models/operations/listagents.js +14 -13
  74. package/models/operations/listagents.js.map +1 -1
  75. package/models/operations/listagenttasks.d.ts +250 -1094
  76. package/models/operations/listagenttasks.d.ts.map +1 -1
  77. package/models/operations/listagenttasks.js +276 -1117
  78. package/models/operations/listagenttasks.js.map +1 -1
  79. package/models/operations/listbudgets.js +2 -2
  80. package/models/operations/listcontacts.js +2 -2
  81. package/models/operations/listdatasetdatapoints.js +8 -8
  82. package/models/operations/listdatasets.js +2 -2
  83. package/models/operations/listdatasources.js +2 -2
  84. package/models/operations/retrievecontact.js +2 -2
  85. package/models/operations/retrievedatapoint.js +8 -8
  86. package/models/operations/retrievedataset.js +2 -2
  87. package/models/operations/retrievedatasource.js +2 -2
  88. package/models/operations/retrievetool.js +10 -10
  89. package/models/operations/runagent.d.ts +232 -3
  90. package/models/operations/runagent.d.ts.map +1 -1
  91. package/models/operations/runagent.js +267 -8
  92. package/models/operations/runagent.js.map +1 -1
  93. package/models/operations/streamrunagent.d.ts +1 -1
  94. package/models/operations/updateagent.d.ts +41 -9
  95. package/models/operations/updateagent.d.ts.map +1 -1
  96. package/models/operations/updateagent.js +34 -16
  97. package/models/operations/updateagent.js.map +1 -1
  98. package/models/operations/updatebudget.js +2 -2
  99. package/models/operations/updatecontact.js +2 -2
  100. package/models/operations/updatedatapoint.js +8 -8
  101. package/models/operations/updatedataset.js +2 -2
  102. package/models/operations/updatedatasource.js +2 -2
  103. package/models/operations/updateeval.js +28 -28
  104. package/models/operations/updatetool.js +10 -10
  105. package/package.json +1 -1
  106. package/sdk/agents.d.ts +8 -1
  107. package/sdk/agents.d.ts.map +1 -1
  108. package/sdk/agents.js +11 -1
  109. package/sdk/agents.js.map +1 -1
  110. package/src/funcs/agentsDuplicate.ts +179 -0
  111. package/src/funcs/agentsList.ts +1 -1
  112. package/src/lib/config.ts +3 -3
  113. package/src/mcp-server/mcp-server.ts +1 -1
  114. package/src/mcp-server/server.ts +3 -1
  115. package/src/mcp-server/tools/agentsDuplicate.ts +37 -0
  116. package/src/mcp-server/tools/agentsList.ts +1 -1
  117. package/src/models/errors/duplicateagent.ts +128 -0
  118. package/src/models/errors/index.ts +1 -0
  119. package/src/models/operations/createagent.ts +33 -16
  120. package/src/models/operations/createbudget.ts +2 -2
  121. package/src/models/operations/createcontact.ts +2 -2
  122. package/src/models/operations/createdataset.ts +2 -2
  123. package/src/models/operations/createdatasetitem.ts +8 -8
  124. package/src/models/operations/createdatasource.ts +2 -2
  125. package/src/models/operations/createeval.ts +28 -28
  126. package/src/models/operations/createtool.ts +10 -10
  127. package/src/models/operations/duplicateagent.ts +3280 -0
  128. package/src/models/operations/duplicatetool.ts +10 -10
  129. package/src/models/operations/fileget.ts +2 -2
  130. package/src/models/operations/filelist.ts +2 -2
  131. package/src/models/operations/fileupload.ts +2 -2
  132. package/src/models/operations/getagent.ts +29 -17
  133. package/src/models/operations/getagenttask.ts +750 -8
  134. package/src/models/operations/getalltools.ts +10 -10
  135. package/src/models/operations/getbudget.ts +2 -2
  136. package/src/models/operations/getevals.ts +28 -28
  137. package/src/models/operations/index.ts +1 -0
  138. package/src/models/operations/invokeagent.ts +632 -4
  139. package/src/models/operations/listagents.ts +32 -21
  140. package/src/models/operations/listagenttasks.ts +640 -2908
  141. package/src/models/operations/listbudgets.ts +2 -2
  142. package/src/models/operations/listcontacts.ts +2 -2
  143. package/src/models/operations/listdatasetdatapoints.ts +8 -8
  144. package/src/models/operations/listdatasets.ts +2 -2
  145. package/src/models/operations/listdatasources.ts +2 -2
  146. package/src/models/operations/retrievecontact.ts +2 -2
  147. package/src/models/operations/retrievedatapoint.ts +8 -8
  148. package/src/models/operations/retrievedataset.ts +2 -2
  149. package/src/models/operations/retrievedatasource.ts +2 -2
  150. package/src/models/operations/retrievetool.ts +10 -10
  151. package/src/models/operations/runagent.ts +606 -5
  152. package/src/models/operations/streamrunagent.ts +1 -1
  153. package/src/models/operations/updateagent.ts +72 -18
  154. package/src/models/operations/updatebudget.ts +2 -2
  155. package/src/models/operations/updatecontact.ts +2 -2
  156. package/src/models/operations/updatedatapoint.ts +8 -8
  157. package/src/models/operations/updatedataset.ts +2 -2
  158. package/src/models/operations/updatedatasource.ts +2 -2
  159. package/src/models/operations/updateeval.ts +28 -28
  160. package/src/models/operations/updatetool.ts +10 -10
  161. package/src/sdk/agents.ts +19 -1
@@ -36,83 +36,34 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.ListAgentTasksStreamOptions$outboundSchema = exports.ListAgentTasksStreamOptions$inboundSchema = exports.ListAgentTasksStop$outboundSchema = exports.ListAgentTasksStop$inboundSchema = exports.ListAgentTasksResponseFormat$outboundSchema = exports.ListAgentTasksResponseFormat$inboundSchema = exports.ListAgentTasksResponseFormatText$outboundSchema = exports.ListAgentTasksResponseFormatText$inboundSchema = exports.ListAgentTasksResponseFormatType$outboundSchema = exports.ListAgentTasksResponseFormatType$inboundSchema = exports.ListAgentTasksResponseFormatJSONObject$outboundSchema = exports.ListAgentTasksResponseFormatJSONObject$inboundSchema = exports.ListAgentTasksResponseFormatAgentsType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsType$inboundSchema = exports.ListAgentTasksResponseFormatAgentsJSONSchema$outboundSchema = exports.ListAgentTasksResponseFormatAgentsJSONSchema$inboundSchema = exports.ListAgentTasksResponseFormatJsonSchema$outboundSchema = exports.ListAgentTasksResponseFormatJsonSchema$inboundSchema = exports.ListAgentTasksResponseFormatAgentsResponseType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponseType$inboundSchema = exports.ListAgentTasksAudio$outboundSchema = exports.ListAgentTasksAudio$inboundSchema = exports.ListAgentTasksFormat$outboundSchema = exports.ListAgentTasksFormat$inboundSchema = exports.ListAgentTasksVoice$outboundSchema = exports.ListAgentTasksVoice$inboundSchema = exports.ListAgentTasksRequest$outboundSchema = exports.ListAgentTasksRequest$inboundSchema = exports.Status$outboundSchema = exports.Status$inboundSchema = exports.ListAgentTasksToolApprovalRequired = exports.ListAgentTasksFallbackModelConfigurationModalities = exports.ListAgentTasksToolChoiceAgents1 = exports.ListAgentTasksToolChoiceAgentsType = exports.ListAgentTasksFallbackModelConfigurationType = exports.ListAgentTasksResponseFormatAgentsResponse200Type = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = exports.ListAgentTasksFallbackModelConfigurationFormat = exports.ListAgentTasksFallbackModelConfigurationVoice = exports.ListAgentTasksModalities = exports.ListAgentTasksToolChoice1 = exports.ListAgentTasksToolChoiceType = exports.ListAgentTasksType = exports.ListAgentTasksResponseFormatType = exports.ListAgentTasksResponseFormatAgentsType = exports.ListAgentTasksResponseFormatAgentsResponseType = exports.ListAgentTasksFormat = exports.ListAgentTasksVoice = exports.Status = void 0;
40
- exports.ListAgentTasksToolChoiceAgentsType$outboundSchema = exports.ListAgentTasksToolChoiceAgentsType$inboundSchema = exports.ListAgentTasksFallbackModelConfigurationThinking$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationThinking$inboundSchema = exports.ListAgentTasksFallbackModelConfigurationType$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationType$inboundSchema = exports.ListAgentTasksFallbackModelConfigurationStreamOptions$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationStreamOptions$inboundSchema = exports.ListAgentTasksFallbackModelConfigurationStop$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationStop$inboundSchema = exports.ListAgentTasksFallbackModelConfigurationResponseFormat$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationResponseFormat$inboundSchema = exports.ListAgentTasksResponseFormatAgentsText$outboundSchema = exports.ListAgentTasksResponseFormatAgentsText$inboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200Type$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema = exports.ListAgentTasksResponseFormatAgentsJSONObject$outboundSchema = exports.ListAgentTasksResponseFormatAgentsJSONObject$inboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200JSONSchema$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200JSONSchema$inboundSchema = exports.ListAgentTasksResponseFormatAgentsResponseJsonSchema$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponseJsonSchema$inboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema = exports.ListAgentTasksFallbackModelConfigurationAudio$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationAudio$inboundSchema = exports.ListAgentTasksFallbackModelConfigurationFormat$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationFormat$inboundSchema = exports.ListAgentTasksFallbackModelConfigurationVoice$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationVoice$inboundSchema = exports.ListAgentTasksParameters$outboundSchema = exports.ListAgentTasksParameters$inboundSchema = exports.ListAgentTasksModalities$outboundSchema = exports.ListAgentTasksModalities$inboundSchema = exports.ListAgentTasksToolChoice$outboundSchema = exports.ListAgentTasksToolChoice$inboundSchema = exports.ListAgentTasksToolChoice1$outboundSchema = exports.ListAgentTasksToolChoice1$inboundSchema = exports.ListAgentTasksToolChoice2$outboundSchema = exports.ListAgentTasksToolChoice2$inboundSchema = exports.ListAgentTasksToolChoiceFunction$outboundSchema = exports.ListAgentTasksToolChoiceFunction$inboundSchema = exports.ListAgentTasksToolChoiceType$outboundSchema = exports.ListAgentTasksToolChoiceType$inboundSchema = exports.ListAgentTasksThinking$outboundSchema = exports.ListAgentTasksThinking$inboundSchema = exports.ListAgentTasksType$outboundSchema = exports.ListAgentTasksType$inboundSchema = void 0;
41
- exports.ListAgentTasksResponseBody$outboundSchema = exports.ListAgentTasksResponseBody$inboundSchema = exports.Tasks$outboundSchema = exports.Tasks$inboundSchema = exports.ListAgentTasksMetrics$outboundSchema = exports.ListAgentTasksMetrics$inboundSchema = exports.ListAgentTasksState$outboundSchema = exports.ListAgentTasksState$inboundSchema = exports.ListAgentTasksMemory$outboundSchema = exports.ListAgentTasksMemory$inboundSchema = exports.AgentManifestSnapshot$outboundSchema = exports.AgentManifestSnapshot$inboundSchema = exports.ListAgentTasksSettings$outboundSchema = exports.ListAgentTasksSettings$inboundSchema = exports.ListAgentTasksTools$outboundSchema = exports.ListAgentTasksTools$inboundSchema = exports.ListAgentTasksConditions$outboundSchema = exports.ListAgentTasksConditions$inboundSchema = exports.ListAgentTasksToolApprovalRequired$outboundSchema = exports.ListAgentTasksToolApprovalRequired$inboundSchema = exports.ListAgentTasksModel$outboundSchema = exports.ListAgentTasksModel$inboundSchema = exports.ListAgentTasksFallbackModelConfiguration$outboundSchema = exports.ListAgentTasksFallbackModelConfiguration$inboundSchema = exports.ListAgentTasksFallbackModelConfiguration2$outboundSchema = exports.ListAgentTasksFallbackModelConfiguration2$inboundSchema = exports.ListAgentTasksFallbackModelConfigurationParameters$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationParameters$inboundSchema = exports.ListAgentTasksFallbackModelConfigurationModalities$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationModalities$inboundSchema = exports.ListAgentTasksFallbackModelConfigurationToolChoice$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationToolChoice$inboundSchema = exports.ListAgentTasksToolChoiceAgents1$outboundSchema = exports.ListAgentTasksToolChoiceAgents1$inboundSchema = exports.ListAgentTasksToolChoiceAgents2$outboundSchema = exports.ListAgentTasksToolChoiceAgents2$inboundSchema = exports.ListAgentTasksToolChoiceAgentsFunction$outboundSchema = exports.ListAgentTasksToolChoiceAgentsFunction$inboundSchema = void 0;
39
+ exports.ListAgentTasksParts$outboundSchema = exports.ListAgentTasksParts$inboundSchema = exports.ListAgentTasksParts1$outboundSchema = exports.ListAgentTasksParts1$inboundSchema = exports.ListAgentTasksPartsKind$outboundSchema = exports.ListAgentTasksPartsKind$inboundSchema = exports.ListAgentTasksParts2$outboundSchema = exports.ListAgentTasksParts2$inboundSchema = exports.ListAgentTasksPartsAgentsKind$outboundSchema = exports.ListAgentTasksPartsAgentsKind$inboundSchema = exports.ListAgentTasksParts3$outboundSchema = exports.ListAgentTasksParts3$inboundSchema = exports.ListAgentTasksPartsFile$outboundSchema = exports.ListAgentTasksPartsFile$inboundSchema = exports.ListAgentTasksFileBinaryFormat$outboundSchema = exports.ListAgentTasksFileBinaryFormat$inboundSchema = exports.ListAgentTasksFileFileInURIFormat$outboundSchema = exports.ListAgentTasksFileFileInURIFormat$inboundSchema = exports.ListAgentTasksPartsAgentsResponseKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponseKind$inboundSchema = exports.ListAgentTasksParts4$outboundSchema = exports.ListAgentTasksParts4$inboundSchema = exports.ListAgentTasksPartsAgentsResponse200Kind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200Kind$inboundSchema = exports.ListAgentTasksParts5$outboundSchema = exports.ListAgentTasksParts5$inboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$inboundSchema = exports.ListAgentTasksRole$outboundSchema = exports.ListAgentTasksRole$inboundSchema = exports.ListAgentTasksAgentsKind$outboundSchema = exports.ListAgentTasksAgentsKind$inboundSchema = exports.ListAgentTasksStatus$outboundSchema = exports.ListAgentTasksStatus$inboundSchema = exports.ListAgentTasksKind$outboundSchema = exports.ListAgentTasksKind$inboundSchema = exports.ListAgentTasksRequest$outboundSchema = exports.ListAgentTasksRequest$inboundSchema = exports.Status$outboundSchema = exports.Status$inboundSchema = exports.ListAgentTasksAgentsResponseKind = exports.ListAgentTasksPartsKind = exports.ListAgentTasksPartsAgentsKind = exports.ListAgentTasksPartsAgentsResponseKind = exports.ListAgentTasksPartsAgentsResponse200Kind = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind = exports.ListAgentTasksRole = exports.ListAgentTasksAgentsKind = exports.ListAgentTasksKind = exports.Status = void 0;
40
+ exports.ListAgentTasksResponseBody$outboundSchema = exports.ListAgentTasksResponseBody$inboundSchema = exports.Tasks$outboundSchema = exports.Tasks$inboundSchema = exports.ListAgentTasksArtifacts$outboundSchema = exports.ListAgentTasksArtifacts$inboundSchema = exports.ListAgentTasksAgentsResponseKind$outboundSchema = exports.ListAgentTasksAgentsResponseKind$inboundSchema = exports.ListAgentTasksHistory$outboundSchema = exports.ListAgentTasksHistory$inboundSchema = void 0;
42
41
  exports.listAgentTasksRequestToJSON = listAgentTasksRequestToJSON;
43
42
  exports.listAgentTasksRequestFromJSON = listAgentTasksRequestFromJSON;
44
- exports.listAgentTasksAudioToJSON = listAgentTasksAudioToJSON;
45
- exports.listAgentTasksAudioFromJSON = listAgentTasksAudioFromJSON;
46
- exports.listAgentTasksResponseFormatJsonSchemaToJSON = listAgentTasksResponseFormatJsonSchemaToJSON;
47
- exports.listAgentTasksResponseFormatJsonSchemaFromJSON = listAgentTasksResponseFormatJsonSchemaFromJSON;
48
- exports.listAgentTasksResponseFormatAgentsJSONSchemaToJSON = listAgentTasksResponseFormatAgentsJSONSchemaToJSON;
49
- exports.listAgentTasksResponseFormatAgentsJSONSchemaFromJSON = listAgentTasksResponseFormatAgentsJSONSchemaFromJSON;
50
- exports.listAgentTasksResponseFormatJSONObjectToJSON = listAgentTasksResponseFormatJSONObjectToJSON;
51
- exports.listAgentTasksResponseFormatJSONObjectFromJSON = listAgentTasksResponseFormatJSONObjectFromJSON;
52
- exports.listAgentTasksResponseFormatTextToJSON = listAgentTasksResponseFormatTextToJSON;
53
- exports.listAgentTasksResponseFormatTextFromJSON = listAgentTasksResponseFormatTextFromJSON;
54
- exports.listAgentTasksResponseFormatToJSON = listAgentTasksResponseFormatToJSON;
55
- exports.listAgentTasksResponseFormatFromJSON = listAgentTasksResponseFormatFromJSON;
56
- exports.listAgentTasksStopToJSON = listAgentTasksStopToJSON;
57
- exports.listAgentTasksStopFromJSON = listAgentTasksStopFromJSON;
58
- exports.listAgentTasksStreamOptionsToJSON = listAgentTasksStreamOptionsToJSON;
59
- exports.listAgentTasksStreamOptionsFromJSON = listAgentTasksStreamOptionsFromJSON;
60
- exports.listAgentTasksThinkingToJSON = listAgentTasksThinkingToJSON;
61
- exports.listAgentTasksThinkingFromJSON = listAgentTasksThinkingFromJSON;
62
- exports.listAgentTasksToolChoiceFunctionToJSON = listAgentTasksToolChoiceFunctionToJSON;
63
- exports.listAgentTasksToolChoiceFunctionFromJSON = listAgentTasksToolChoiceFunctionFromJSON;
64
- exports.listAgentTasksToolChoice2ToJSON = listAgentTasksToolChoice2ToJSON;
65
- exports.listAgentTasksToolChoice2FromJSON = listAgentTasksToolChoice2FromJSON;
66
- exports.listAgentTasksToolChoiceToJSON = listAgentTasksToolChoiceToJSON;
67
- exports.listAgentTasksToolChoiceFromJSON = listAgentTasksToolChoiceFromJSON;
68
- exports.listAgentTasksParametersToJSON = listAgentTasksParametersToJSON;
69
- exports.listAgentTasksParametersFromJSON = listAgentTasksParametersFromJSON;
70
- exports.listAgentTasksFallbackModelConfigurationAudioToJSON = listAgentTasksFallbackModelConfigurationAudioToJSON;
71
- exports.listAgentTasksFallbackModelConfigurationAudioFromJSON = listAgentTasksFallbackModelConfigurationAudioFromJSON;
72
- exports.listAgentTasksResponseFormatAgentsResponseJsonSchemaToJSON = listAgentTasksResponseFormatAgentsResponseJsonSchemaToJSON;
73
- exports.listAgentTasksResponseFormatAgentsResponseJsonSchemaFromJSON = listAgentTasksResponseFormatAgentsResponseJsonSchemaFromJSON;
74
- exports.listAgentTasksResponseFormatAgentsResponse200JSONSchemaToJSON = listAgentTasksResponseFormatAgentsResponse200JSONSchemaToJSON;
75
- exports.listAgentTasksResponseFormatAgentsResponse200JSONSchemaFromJSON = listAgentTasksResponseFormatAgentsResponse200JSONSchemaFromJSON;
76
- exports.listAgentTasksResponseFormatAgentsJSONObjectToJSON = listAgentTasksResponseFormatAgentsJSONObjectToJSON;
77
- exports.listAgentTasksResponseFormatAgentsJSONObjectFromJSON = listAgentTasksResponseFormatAgentsJSONObjectFromJSON;
78
- exports.listAgentTasksResponseFormatAgentsTextToJSON = listAgentTasksResponseFormatAgentsTextToJSON;
79
- exports.listAgentTasksResponseFormatAgentsTextFromJSON = listAgentTasksResponseFormatAgentsTextFromJSON;
80
- exports.listAgentTasksFallbackModelConfigurationResponseFormatToJSON = listAgentTasksFallbackModelConfigurationResponseFormatToJSON;
81
- exports.listAgentTasksFallbackModelConfigurationResponseFormatFromJSON = listAgentTasksFallbackModelConfigurationResponseFormatFromJSON;
82
- exports.listAgentTasksFallbackModelConfigurationStopToJSON = listAgentTasksFallbackModelConfigurationStopToJSON;
83
- exports.listAgentTasksFallbackModelConfigurationStopFromJSON = listAgentTasksFallbackModelConfigurationStopFromJSON;
84
- exports.listAgentTasksFallbackModelConfigurationStreamOptionsToJSON = listAgentTasksFallbackModelConfigurationStreamOptionsToJSON;
85
- exports.listAgentTasksFallbackModelConfigurationStreamOptionsFromJSON = listAgentTasksFallbackModelConfigurationStreamOptionsFromJSON;
86
- exports.listAgentTasksFallbackModelConfigurationThinkingToJSON = listAgentTasksFallbackModelConfigurationThinkingToJSON;
87
- exports.listAgentTasksFallbackModelConfigurationThinkingFromJSON = listAgentTasksFallbackModelConfigurationThinkingFromJSON;
88
- exports.listAgentTasksToolChoiceAgentsFunctionToJSON = listAgentTasksToolChoiceAgentsFunctionToJSON;
89
- exports.listAgentTasksToolChoiceAgentsFunctionFromJSON = listAgentTasksToolChoiceAgentsFunctionFromJSON;
90
- exports.listAgentTasksToolChoiceAgents2ToJSON = listAgentTasksToolChoiceAgents2ToJSON;
91
- exports.listAgentTasksToolChoiceAgents2FromJSON = listAgentTasksToolChoiceAgents2FromJSON;
92
- exports.listAgentTasksFallbackModelConfigurationToolChoiceToJSON = listAgentTasksFallbackModelConfigurationToolChoiceToJSON;
93
- exports.listAgentTasksFallbackModelConfigurationToolChoiceFromJSON = listAgentTasksFallbackModelConfigurationToolChoiceFromJSON;
94
- exports.listAgentTasksFallbackModelConfigurationParametersToJSON = listAgentTasksFallbackModelConfigurationParametersToJSON;
95
- exports.listAgentTasksFallbackModelConfigurationParametersFromJSON = listAgentTasksFallbackModelConfigurationParametersFromJSON;
96
- exports.listAgentTasksFallbackModelConfiguration2ToJSON = listAgentTasksFallbackModelConfiguration2ToJSON;
97
- exports.listAgentTasksFallbackModelConfiguration2FromJSON = listAgentTasksFallbackModelConfiguration2FromJSON;
98
- exports.listAgentTasksFallbackModelConfigurationToJSON = listAgentTasksFallbackModelConfigurationToJSON;
99
- exports.listAgentTasksFallbackModelConfigurationFromJSON = listAgentTasksFallbackModelConfigurationFromJSON;
100
- exports.listAgentTasksModelToJSON = listAgentTasksModelToJSON;
101
- exports.listAgentTasksModelFromJSON = listAgentTasksModelFromJSON;
102
- exports.listAgentTasksConditionsToJSON = listAgentTasksConditionsToJSON;
103
- exports.listAgentTasksConditionsFromJSON = listAgentTasksConditionsFromJSON;
104
- exports.listAgentTasksToolsToJSON = listAgentTasksToolsToJSON;
105
- exports.listAgentTasksToolsFromJSON = listAgentTasksToolsFromJSON;
106
- exports.listAgentTasksSettingsToJSON = listAgentTasksSettingsToJSON;
107
- exports.listAgentTasksSettingsFromJSON = listAgentTasksSettingsFromJSON;
108
- exports.agentManifestSnapshotToJSON = agentManifestSnapshotToJSON;
109
- exports.agentManifestSnapshotFromJSON = agentManifestSnapshotFromJSON;
110
- exports.listAgentTasksMemoryToJSON = listAgentTasksMemoryToJSON;
111
- exports.listAgentTasksMemoryFromJSON = listAgentTasksMemoryFromJSON;
112
- exports.listAgentTasksStateToJSON = listAgentTasksStateToJSON;
113
- exports.listAgentTasksStateFromJSON = listAgentTasksStateFromJSON;
114
- exports.listAgentTasksMetricsToJSON = listAgentTasksMetricsToJSON;
115
- exports.listAgentTasksMetricsFromJSON = listAgentTasksMetricsFromJSON;
43
+ exports.listAgentTasksStatusToJSON = listAgentTasksStatusToJSON;
44
+ exports.listAgentTasksStatusFromJSON = listAgentTasksStatusFromJSON;
45
+ exports.listAgentTasksParts5ToJSON = listAgentTasksParts5ToJSON;
46
+ exports.listAgentTasksParts5FromJSON = listAgentTasksParts5FromJSON;
47
+ exports.listAgentTasksParts4ToJSON = listAgentTasksParts4ToJSON;
48
+ exports.listAgentTasksParts4FromJSON = listAgentTasksParts4FromJSON;
49
+ exports.listAgentTasksFileFileInURIFormatToJSON = listAgentTasksFileFileInURIFormatToJSON;
50
+ exports.listAgentTasksFileFileInURIFormatFromJSON = listAgentTasksFileFileInURIFormatFromJSON;
51
+ exports.listAgentTasksFileBinaryFormatToJSON = listAgentTasksFileBinaryFormatToJSON;
52
+ exports.listAgentTasksFileBinaryFormatFromJSON = listAgentTasksFileBinaryFormatFromJSON;
53
+ exports.listAgentTasksPartsFileToJSON = listAgentTasksPartsFileToJSON;
54
+ exports.listAgentTasksPartsFileFromJSON = listAgentTasksPartsFileFromJSON;
55
+ exports.listAgentTasksParts3ToJSON = listAgentTasksParts3ToJSON;
56
+ exports.listAgentTasksParts3FromJSON = listAgentTasksParts3FromJSON;
57
+ exports.listAgentTasksParts2ToJSON = listAgentTasksParts2ToJSON;
58
+ exports.listAgentTasksParts2FromJSON = listAgentTasksParts2FromJSON;
59
+ exports.listAgentTasksParts1ToJSON = listAgentTasksParts1ToJSON;
60
+ exports.listAgentTasksParts1FromJSON = listAgentTasksParts1FromJSON;
61
+ exports.listAgentTasksPartsToJSON = listAgentTasksPartsToJSON;
62
+ exports.listAgentTasksPartsFromJSON = listAgentTasksPartsFromJSON;
63
+ exports.listAgentTasksHistoryToJSON = listAgentTasksHistoryToJSON;
64
+ exports.listAgentTasksHistoryFromJSON = listAgentTasksHistoryFromJSON;
65
+ exports.listAgentTasksArtifactsToJSON = listAgentTasksArtifactsToJSON;
66
+ exports.listAgentTasksArtifactsFromJSON = listAgentTasksArtifactsFromJSON;
116
67
  exports.tasksToJSON = tasksToJSON;
117
68
  exports.tasksFromJSON = tasksFromJSON;
118
69
  exports.listAgentTasksResponseBodyToJSON = listAgentTasksResponseBodyToJSON;
@@ -124,122 +75,47 @@ const schemas_js_1 = require("../../lib/schemas.js");
124
75
  * Comma-separated list of task statuses to filter by. Available values: inactive, approval_required, in_progress, errored
125
76
  */
126
77
  exports.Status = {
127
- Inactive: "inactive",
128
- ApprovalRequired: "approval_required",
129
- InProgress: "in_progress",
130
- Errored: "errored",
78
+ Submitted: "submitted",
79
+ Working: "working",
80
+ InputRequired: "input-required",
81
+ AuthRequired: "auth-required",
82
+ Completed: "completed",
83
+ Failed: "failed",
84
+ Canceled: "canceled",
85
+ Rejected: "rejected",
131
86
  };
132
- /**
133
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
134
- */
135
- exports.ListAgentTasksVoice = {
136
- Alloy: "alloy",
137
- Echo: "echo",
138
- Fable: "fable",
139
- Onyx: "onyx",
140
- Nova: "nova",
141
- Shimmer: "shimmer",
142
- };
143
- /**
144
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
145
- */
146
- exports.ListAgentTasksFormat = {
147
- Wav: "wav",
148
- Mp3: "mp3",
149
- Flac: "flac",
150
- Opus: "opus",
151
- Pcm16: "pcm16",
152
- };
153
- exports.ListAgentTasksResponseFormatAgentsResponseType = {
154
- JsonSchema: "json_schema",
155
- };
156
- exports.ListAgentTasksResponseFormatAgentsType = {
157
- JsonObject: "json_object",
158
- };
159
- exports.ListAgentTasksResponseFormatType = {
160
- Text: "text",
161
- };
162
- /**
163
- * Enables or disables the thinking mode capability
164
- */
165
- exports.ListAgentTasksType = {
166
- Enabled: "enabled",
167
- Disabled: "disabled",
168
- };
169
- /**
170
- * The type of the tool. Currently, only function is supported.
171
- */
172
- exports.ListAgentTasksToolChoiceType = {
173
- Function: "function",
87
+ exports.ListAgentTasksKind = {
88
+ Task: "task",
174
89
  };
175
- exports.ListAgentTasksToolChoice1 = {
176
- None: "none",
177
- Auto: "auto",
178
- Required: "required",
179
- };
180
- exports.ListAgentTasksModalities = {
181
- Text: "text",
182
- Audio: "audio",
183
- };
184
- /**
185
- * The voice the model uses to respond. Supported voices are alloy, echo, fable, onyx, nova, and shimmer.
186
- */
187
- exports.ListAgentTasksFallbackModelConfigurationVoice = {
188
- Alloy: "alloy",
189
- Echo: "echo",
190
- Fable: "fable",
191
- Onyx: "onyx",
192
- Nova: "nova",
193
- Shimmer: "shimmer",
90
+ exports.ListAgentTasksAgentsKind = {
91
+ Message: "message",
194
92
  };
195
93
  /**
196
- * Specifies the output audio format. Must be one of wav, mp3, flac, opus, or pcm16.
94
+ * Extended A2A message role
197
95
  */
198
- exports.ListAgentTasksFallbackModelConfigurationFormat = {
199
- Wav: "wav",
200
- Mp3: "mp3",
201
- Flac: "flac",
202
- Opus: "opus",
203
- Pcm16: "pcm16",
96
+ exports.ListAgentTasksRole = {
97
+ User: "user",
98
+ Agent: "agent",
99
+ Tool: "tool",
100
+ System: "system",
204
101
  };
205
- exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType = {
206
- JsonSchema: "json_schema",
102
+ exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind = {
103
+ ToolResult: "tool_result",
207
104
  };
208
- exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType = {
209
- JsonObject: "json_object",
105
+ exports.ListAgentTasksPartsAgentsResponse200Kind = {
106
+ ToolCall: "tool_call",
210
107
  };
211
- exports.ListAgentTasksResponseFormatAgentsResponse200Type = {
212
- Text: "text",
213
- };
214
- /**
215
- * Enables or disables the thinking mode capability
216
- */
217
- exports.ListAgentTasksFallbackModelConfigurationType = {
218
- Enabled: "enabled",
219
- Disabled: "disabled",
220
- };
221
- /**
222
- * The type of the tool. Currently, only function is supported.
223
- */
224
- exports.ListAgentTasksToolChoiceAgentsType = {
225
- Function: "function",
108
+ exports.ListAgentTasksPartsAgentsResponseKind = {
109
+ File: "file",
226
110
  };
227
- exports.ListAgentTasksToolChoiceAgents1 = {
228
- None: "none",
229
- Auto: "auto",
230
- Required: "required",
111
+ exports.ListAgentTasksPartsAgentsKind = {
112
+ Data: "data",
231
113
  };
232
- exports.ListAgentTasksFallbackModelConfigurationModalities = {
114
+ exports.ListAgentTasksPartsKind = {
233
115
  Text: "text",
234
- Audio: "audio",
235
116
  };
236
- /**
237
- * If all, the agent will require approval for all tools. If respect_tool, the agent will require approval for tools that have the requires_approval flag set to true. If none, the agent will not require approval for any tools.
238
- */
239
- exports.ListAgentTasksToolApprovalRequired = {
240
- All: "all",
241
- RespectTool: "respect_tool",
242
- None: "none",
117
+ exports.ListAgentTasksAgentsResponseKind = {
118
+ Artifact: "artifact",
243
119
  };
244
120
  /** @internal */
245
121
  exports.Status$inboundSchema = z
@@ -281,1053 +157,336 @@ function listAgentTasksRequestFromJSON(jsonString) {
281
157
  return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksRequest' from JSON`);
282
158
  }
283
159
  /** @internal */
284
- exports.ListAgentTasksVoice$inboundSchema = z.nativeEnum(exports.ListAgentTasksVoice);
285
- /** @internal */
286
- exports.ListAgentTasksVoice$outboundSchema = exports.ListAgentTasksVoice$inboundSchema;
160
+ exports.ListAgentTasksKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksKind);
287
161
  /** @internal */
288
- exports.ListAgentTasksFormat$inboundSchema = z.nativeEnum(exports.ListAgentTasksFormat);
162
+ exports.ListAgentTasksKind$outboundSchema = exports.ListAgentTasksKind$inboundSchema;
289
163
  /** @internal */
290
- exports.ListAgentTasksFormat$outboundSchema = exports.ListAgentTasksFormat$inboundSchema;
291
- /** @internal */
292
- exports.ListAgentTasksAudio$inboundSchema = z.object({
293
- voice: exports.ListAgentTasksVoice$inboundSchema,
294
- format: exports.ListAgentTasksFormat$inboundSchema,
164
+ exports.ListAgentTasksStatus$inboundSchema = z.object({
165
+ state: z.string(),
166
+ timestamp: z.string().optional(),
167
+ message: z.any().optional(),
295
168
  });
296
169
  /** @internal */
297
- exports.ListAgentTasksAudio$outboundSchema = z.object({
298
- voice: exports.ListAgentTasksVoice$outboundSchema,
299
- format: exports.ListAgentTasksFormat$outboundSchema,
170
+ exports.ListAgentTasksStatus$outboundSchema = z.object({
171
+ state: z.string(),
172
+ timestamp: z.string().optional(),
173
+ message: z.any().optional(),
300
174
  });
301
- function listAgentTasksAudioToJSON(listAgentTasksAudio) {
302
- return JSON.stringify(exports.ListAgentTasksAudio$outboundSchema.parse(listAgentTasksAudio));
175
+ function listAgentTasksStatusToJSON(listAgentTasksStatus) {
176
+ return JSON.stringify(exports.ListAgentTasksStatus$outboundSchema.parse(listAgentTasksStatus));
303
177
  }
304
- function listAgentTasksAudioFromJSON(jsonString) {
305
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksAudio' from JSON`);
178
+ function listAgentTasksStatusFromJSON(jsonString) {
179
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksStatus$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksStatus' from JSON`);
306
180
  }
307
181
  /** @internal */
308
- exports.ListAgentTasksResponseFormatAgentsResponseType$inboundSchema = z
309
- .nativeEnum(exports.ListAgentTasksResponseFormatAgentsResponseType);
182
+ exports.ListAgentTasksAgentsKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksAgentsKind);
310
183
  /** @internal */
311
- exports.ListAgentTasksResponseFormatAgentsResponseType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponseType$inboundSchema;
184
+ exports.ListAgentTasksAgentsKind$outboundSchema = exports.ListAgentTasksAgentsKind$inboundSchema;
312
185
  /** @internal */
313
- exports.ListAgentTasksResponseFormatJsonSchema$inboundSchema = z.object({
314
- description: z.string().optional(),
315
- name: z.string(),
316
- schema: z.any().optional(),
317
- strict: z.boolean().optional(),
318
- });
186
+ exports.ListAgentTasksRole$inboundSchema = z.nativeEnum(exports.ListAgentTasksRole);
319
187
  /** @internal */
320
- exports.ListAgentTasksResponseFormatJsonSchema$outboundSchema = z.object({
321
- description: z.string().optional(),
322
- name: z.string(),
323
- schema: z.any().optional(),
324
- strict: z.boolean().optional(),
325
- });
326
- function listAgentTasksResponseFormatJsonSchemaToJSON(listAgentTasksResponseFormatJsonSchema) {
327
- return JSON.stringify(exports.ListAgentTasksResponseFormatJsonSchema$outboundSchema.parse(listAgentTasksResponseFormatJsonSchema));
328
- }
329
- function listAgentTasksResponseFormatJsonSchemaFromJSON(jsonString) {
330
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormatJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormatJsonSchema' from JSON`);
331
- }
188
+ exports.ListAgentTasksRole$outboundSchema = exports.ListAgentTasksRole$inboundSchema;
332
189
  /** @internal */
333
- exports.ListAgentTasksResponseFormatAgentsJSONSchema$inboundSchema = z.object({
334
- type: exports.ListAgentTasksResponseFormatAgentsResponseType$inboundSchema,
335
- json_schema: z.lazy(() => exports.ListAgentTasksResponseFormatJsonSchema$inboundSchema),
336
- }).transform((v) => {
337
- return (0, primitives_js_1.remap)(v, {
338
- "json_schema": "jsonSchema",
339
- });
340
- });
341
- /** @internal */
342
- exports.ListAgentTasksResponseFormatAgentsJSONSchema$outboundSchema = z.object({
343
- type: exports.ListAgentTasksResponseFormatAgentsResponseType$outboundSchema,
344
- jsonSchema: z.lazy(() => exports.ListAgentTasksResponseFormatJsonSchema$outboundSchema),
345
- }).transform((v) => {
346
- return (0, primitives_js_1.remap)(v, {
347
- jsonSchema: "json_schema",
348
- });
349
- });
350
- function listAgentTasksResponseFormatAgentsJSONSchemaToJSON(listAgentTasksResponseFormatAgentsJSONSchema) {
351
- return JSON.stringify(exports.ListAgentTasksResponseFormatAgentsJSONSchema$outboundSchema.parse(listAgentTasksResponseFormatAgentsJSONSchema));
352
- }
353
- function listAgentTasksResponseFormatAgentsJSONSchemaFromJSON(jsonString) {
354
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormatAgentsJSONSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormatAgentsJSONSchema' from JSON`);
355
- }
356
- /** @internal */
357
- exports.ListAgentTasksResponseFormatAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentTasksResponseFormatAgentsType);
358
- /** @internal */
359
- exports.ListAgentTasksResponseFormatAgentsType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsType$inboundSchema;
190
+ exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind);
360
191
  /** @internal */
361
- exports.ListAgentTasksResponseFormatJSONObject$inboundSchema = z.object({
362
- type: exports.ListAgentTasksResponseFormatAgentsType$inboundSchema,
363
- });
364
- /** @internal */
365
- exports.ListAgentTasksResponseFormatJSONObject$outboundSchema = z.object({
366
- type: exports.ListAgentTasksResponseFormatAgentsType$outboundSchema,
367
- });
368
- function listAgentTasksResponseFormatJSONObjectToJSON(listAgentTasksResponseFormatJSONObject) {
369
- return JSON.stringify(exports.ListAgentTasksResponseFormatJSONObject$outboundSchema.parse(listAgentTasksResponseFormatJSONObject));
370
- }
371
- function listAgentTasksResponseFormatJSONObjectFromJSON(jsonString) {
372
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormatJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormatJSONObject' from JSON`);
373
- }
192
+ exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$inboundSchema;
374
193
  /** @internal */
375
- exports.ListAgentTasksResponseFormatType$inboundSchema = z.nativeEnum(exports.ListAgentTasksResponseFormatType);
376
- /** @internal */
377
- exports.ListAgentTasksResponseFormatType$outboundSchema = exports.ListAgentTasksResponseFormatType$inboundSchema;
378
- /** @internal */
379
- exports.ListAgentTasksResponseFormatText$inboundSchema = z.object({
380
- type: exports.ListAgentTasksResponseFormatType$inboundSchema,
381
- });
382
- /** @internal */
383
- exports.ListAgentTasksResponseFormatText$outboundSchema = z.object({
384
- type: exports.ListAgentTasksResponseFormatType$outboundSchema,
385
- });
386
- function listAgentTasksResponseFormatTextToJSON(listAgentTasksResponseFormatText) {
387
- return JSON.stringify(exports.ListAgentTasksResponseFormatText$outboundSchema.parse(listAgentTasksResponseFormatText));
388
- }
389
- function listAgentTasksResponseFormatTextFromJSON(jsonString) {
390
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormatText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormatText' from JSON`);
391
- }
392
- /** @internal */
393
- exports.ListAgentTasksResponseFormat$inboundSchema = z.union([
394
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsJSONSchema$inboundSchema),
395
- z.lazy(() => exports.ListAgentTasksResponseFormatText$inboundSchema),
396
- z.lazy(() => exports.ListAgentTasksResponseFormatJSONObject$inboundSchema),
397
- ]);
398
- /** @internal */
399
- exports.ListAgentTasksResponseFormat$outboundSchema = z.union([
400
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsJSONSchema$outboundSchema),
401
- z.lazy(() => exports.ListAgentTasksResponseFormatText$outboundSchema),
402
- z.lazy(() => exports.ListAgentTasksResponseFormatJSONObject$outboundSchema),
403
- ]);
404
- function listAgentTasksResponseFormatToJSON(listAgentTasksResponseFormat) {
405
- return JSON.stringify(exports.ListAgentTasksResponseFormat$outboundSchema.parse(listAgentTasksResponseFormat));
406
- }
407
- function listAgentTasksResponseFormatFromJSON(jsonString) {
408
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormat' from JSON`);
409
- }
410
- /** @internal */
411
- exports.ListAgentTasksStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
412
- /** @internal */
413
- exports.ListAgentTasksStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
414
- function listAgentTasksStopToJSON(listAgentTasksStop) {
415
- return JSON.stringify(exports.ListAgentTasksStop$outboundSchema.parse(listAgentTasksStop));
416
- }
417
- function listAgentTasksStopFromJSON(jsonString) {
418
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksStop' from JSON`);
419
- }
420
- /** @internal */
421
- exports.ListAgentTasksStreamOptions$inboundSchema = z.object({
422
- include_usage: z.boolean().optional(),
194
+ exports.ListAgentTasksParts5$inboundSchema = z.object({
195
+ kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$inboundSchema,
196
+ tool_call_id: z.string(),
197
+ result: z.any().optional(),
198
+ metadata: z.record(z.any()).optional(),
423
199
  }).transform((v) => {
424
200
  return (0, primitives_js_1.remap)(v, {
425
- "include_usage": "includeUsage",
201
+ "tool_call_id": "toolCallId",
426
202
  });
427
203
  });
428
204
  /** @internal */
429
- exports.ListAgentTasksStreamOptions$outboundSchema = z.object({
430
- includeUsage: z.boolean().optional(),
205
+ exports.ListAgentTasksParts5$outboundSchema = z.object({
206
+ kind: exports.ListAgentTasksPartsAgentsResponse200ApplicationJSONKind$outboundSchema,
207
+ toolCallId: z.string(),
208
+ result: z.any().optional(),
209
+ metadata: z.record(z.any()).optional(),
431
210
  }).transform((v) => {
432
211
  return (0, primitives_js_1.remap)(v, {
433
- includeUsage: "include_usage",
212
+ toolCallId: "tool_call_id",
434
213
  });
435
214
  });
436
- function listAgentTasksStreamOptionsToJSON(listAgentTasksStreamOptions) {
437
- return JSON.stringify(exports.ListAgentTasksStreamOptions$outboundSchema.parse(listAgentTasksStreamOptions));
215
+ function listAgentTasksParts5ToJSON(listAgentTasksParts5) {
216
+ return JSON.stringify(exports.ListAgentTasksParts5$outboundSchema.parse(listAgentTasksParts5));
438
217
  }
439
- function listAgentTasksStreamOptionsFromJSON(jsonString) {
440
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksStreamOptions' from JSON`);
218
+ function listAgentTasksParts5FromJSON(jsonString) {
219
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksParts5$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksParts5' from JSON`);
441
220
  }
442
221
  /** @internal */
443
- exports.ListAgentTasksType$inboundSchema = z.nativeEnum(exports.ListAgentTasksType);
222
+ exports.ListAgentTasksPartsAgentsResponse200Kind$inboundSchema = z
223
+ .nativeEnum(exports.ListAgentTasksPartsAgentsResponse200Kind);
444
224
  /** @internal */
445
- exports.ListAgentTasksType$outboundSchema = exports.ListAgentTasksType$inboundSchema;
225
+ exports.ListAgentTasksPartsAgentsResponse200Kind$outboundSchema = exports.ListAgentTasksPartsAgentsResponse200Kind$inboundSchema;
446
226
  /** @internal */
447
- exports.ListAgentTasksThinking$inboundSchema = z.object({
448
- type: exports.ListAgentTasksType$inboundSchema,
449
- budget_tokens: z.number(),
227
+ exports.ListAgentTasksParts4$inboundSchema = z.object({
228
+ kind: exports.ListAgentTasksPartsAgentsResponse200Kind$inboundSchema,
229
+ tool_name: z.string(),
230
+ tool_call_id: z.string(),
231
+ arguments: z.record(z.any()),
232
+ metadata: z.record(z.any()).optional(),
450
233
  }).transform((v) => {
451
234
  return (0, primitives_js_1.remap)(v, {
452
- "budget_tokens": "budgetTokens",
235
+ "tool_name": "toolName",
236
+ "tool_call_id": "toolCallId",
453
237
  });
454
238
  });
455
239
  /** @internal */
456
- exports.ListAgentTasksThinking$outboundSchema = z.object({
457
- type: exports.ListAgentTasksType$outboundSchema,
458
- budgetTokens: z.number(),
240
+ exports.ListAgentTasksParts4$outboundSchema = z.object({
241
+ kind: exports.ListAgentTasksPartsAgentsResponse200Kind$outboundSchema,
242
+ toolName: z.string(),
243
+ toolCallId: z.string(),
244
+ arguments: z.record(z.any()),
245
+ metadata: z.record(z.any()).optional(),
459
246
  }).transform((v) => {
460
247
  return (0, primitives_js_1.remap)(v, {
461
- budgetTokens: "budget_tokens",
248
+ toolName: "tool_name",
249
+ toolCallId: "tool_call_id",
462
250
  });
463
251
  });
464
- function listAgentTasksThinkingToJSON(listAgentTasksThinking) {
465
- return JSON.stringify(exports.ListAgentTasksThinking$outboundSchema.parse(listAgentTasksThinking));
252
+ function listAgentTasksParts4ToJSON(listAgentTasksParts4) {
253
+ return JSON.stringify(exports.ListAgentTasksParts4$outboundSchema.parse(listAgentTasksParts4));
466
254
  }
467
- function listAgentTasksThinkingFromJSON(jsonString) {
468
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksThinking' from JSON`);
255
+ function listAgentTasksParts4FromJSON(jsonString) {
256
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksParts4$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksParts4' from JSON`);
469
257
  }
470
258
  /** @internal */
471
- exports.ListAgentTasksToolChoiceType$inboundSchema = z.nativeEnum(exports.ListAgentTasksToolChoiceType);
259
+ exports.ListAgentTasksPartsAgentsResponseKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsAgentsResponseKind);
472
260
  /** @internal */
473
- exports.ListAgentTasksToolChoiceType$outboundSchema = exports.ListAgentTasksToolChoiceType$inboundSchema;
261
+ exports.ListAgentTasksPartsAgentsResponseKind$outboundSchema = exports.ListAgentTasksPartsAgentsResponseKind$inboundSchema;
474
262
  /** @internal */
475
- exports.ListAgentTasksToolChoiceFunction$inboundSchema = z.object({
263
+ exports.ListAgentTasksFileFileInURIFormat$inboundSchema = z.object({
264
+ uri: z.string(),
265
+ mimeType: z.string().optional(),
476
266
  name: z.string().optional(),
477
267
  });
478
268
  /** @internal */
479
- exports.ListAgentTasksToolChoiceFunction$outboundSchema = z.object({
269
+ exports.ListAgentTasksFileFileInURIFormat$outboundSchema = z.object({
270
+ uri: z.string(),
271
+ mimeType: z.string().optional(),
480
272
  name: z.string().optional(),
481
273
  });
482
- function listAgentTasksToolChoiceFunctionToJSON(listAgentTasksToolChoiceFunction) {
483
- return JSON.stringify(exports.ListAgentTasksToolChoiceFunction$outboundSchema.parse(listAgentTasksToolChoiceFunction));
274
+ function listAgentTasksFileFileInURIFormatToJSON(listAgentTasksFileFileInURIFormat) {
275
+ return JSON.stringify(exports.ListAgentTasksFileFileInURIFormat$outboundSchema.parse(listAgentTasksFileFileInURIFormat));
484
276
  }
485
- function listAgentTasksToolChoiceFunctionFromJSON(jsonString) {
486
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksToolChoiceFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksToolChoiceFunction' from JSON`);
277
+ function listAgentTasksFileFileInURIFormatFromJSON(jsonString) {
278
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFileFileInURIFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFileFileInURIFormat' from JSON`);
487
279
  }
488
280
  /** @internal */
489
- exports.ListAgentTasksToolChoice2$inboundSchema = z.object({
490
- type: exports.ListAgentTasksToolChoiceType$inboundSchema.optional(),
491
- function: z.lazy(() => exports.ListAgentTasksToolChoiceFunction$inboundSchema),
492
- });
493
- /** @internal */
494
- exports.ListAgentTasksToolChoice2$outboundSchema = z.object({
495
- type: exports.ListAgentTasksToolChoiceType$outboundSchema.optional(),
496
- function: z.lazy(() => exports.ListAgentTasksToolChoiceFunction$outboundSchema),
497
- });
498
- function listAgentTasksToolChoice2ToJSON(listAgentTasksToolChoice2) {
499
- return JSON.stringify(exports.ListAgentTasksToolChoice2$outboundSchema.parse(listAgentTasksToolChoice2));
500
- }
501
- function listAgentTasksToolChoice2FromJSON(jsonString) {
502
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksToolChoice2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksToolChoice2' from JSON`);
503
- }
504
- /** @internal */
505
- exports.ListAgentTasksToolChoice1$inboundSchema = z.nativeEnum(exports.ListAgentTasksToolChoice1);
506
- /** @internal */
507
- exports.ListAgentTasksToolChoice1$outboundSchema = exports.ListAgentTasksToolChoice1$inboundSchema;
508
- /** @internal */
509
- exports.ListAgentTasksToolChoice$inboundSchema = z.union([
510
- z.lazy(() => exports.ListAgentTasksToolChoice2$inboundSchema),
511
- exports.ListAgentTasksToolChoice1$inboundSchema,
512
- ]);
513
- /** @internal */
514
- exports.ListAgentTasksToolChoice$outboundSchema = z.union([
515
- z.lazy(() => exports.ListAgentTasksToolChoice2$outboundSchema),
516
- exports.ListAgentTasksToolChoice1$outboundSchema,
517
- ]);
518
- function listAgentTasksToolChoiceToJSON(listAgentTasksToolChoice) {
519
- return JSON.stringify(exports.ListAgentTasksToolChoice$outboundSchema.parse(listAgentTasksToolChoice));
520
- }
521
- function listAgentTasksToolChoiceFromJSON(jsonString) {
522
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksToolChoice' from JSON`);
523
- }
524
- /** @internal */
525
- exports.ListAgentTasksModalities$inboundSchema = z.nativeEnum(exports.ListAgentTasksModalities);
526
- /** @internal */
527
- exports.ListAgentTasksModalities$outboundSchema = exports.ListAgentTasksModalities$inboundSchema;
528
- /** @internal */
529
- exports.ListAgentTasksParameters$inboundSchema = z.object({
530
- audio: z.nullable(z.lazy(() => exports.ListAgentTasksAudio$inboundSchema)).optional(),
531
- frequency_penalty: z.nullable(z.number()).optional(),
532
- max_tokens: z.nullable(z.number().int()).optional(),
533
- max_completion_tokens: z.nullable(z.number().int()).optional(),
534
- logprobs: z.nullable(z.boolean()).optional(),
535
- top_logprobs: z.nullable(z.number().int()).optional(),
536
- n: z.nullable(z.number().int()).optional(),
537
- presence_penalty: z.nullable(z.number()).optional(),
538
- response_format: z.union([
539
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsJSONSchema$inboundSchema),
540
- z.lazy(() => exports.ListAgentTasksResponseFormatText$inboundSchema),
541
- z.lazy(() => exports.ListAgentTasksResponseFormatJSONObject$inboundSchema),
542
- ]).optional(),
543
- reasoning_effort: z.string().optional(),
544
- verbosity: z.string().optional(),
545
- seed: z.nullable(z.number()).optional(),
546
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
547
- stream_options: z.nullable(z.lazy(() => exports.ListAgentTasksStreamOptions$inboundSchema)).optional(),
548
- thinking: z.lazy(() => exports.ListAgentTasksThinking$inboundSchema).optional(),
549
- temperature: z.nullable(z.number()).optional(),
550
- top_p: z.nullable(z.number()).optional(),
551
- top_k: z.nullable(z.number()).optional(),
552
- tool_choice: z.union([
553
- z.lazy(() => exports.ListAgentTasksToolChoice2$inboundSchema),
554
- exports.ListAgentTasksToolChoice1$inboundSchema,
555
- ]).optional(),
556
- parallel_tool_calls: z.boolean().optional(),
557
- modalities: z.nullable(z.array(exports.ListAgentTasksModalities$inboundSchema))
558
- .optional(),
559
- }).transform((v) => {
560
- return (0, primitives_js_1.remap)(v, {
561
- "frequency_penalty": "frequencyPenalty",
562
- "max_tokens": "maxTokens",
563
- "max_completion_tokens": "maxCompletionTokens",
564
- "top_logprobs": "topLogprobs",
565
- "presence_penalty": "presencePenalty",
566
- "response_format": "responseFormat",
567
- "reasoning_effort": "reasoningEffort",
568
- "stream_options": "streamOptions",
569
- "top_p": "topP",
570
- "top_k": "topK",
571
- "tool_choice": "toolChoice",
572
- "parallel_tool_calls": "parallelToolCalls",
573
- });
574
- });
575
- /** @internal */
576
- exports.ListAgentTasksParameters$outboundSchema = z.object({
577
- audio: z.nullable(z.lazy(() => exports.ListAgentTasksAudio$outboundSchema))
578
- .optional(),
579
- frequencyPenalty: z.nullable(z.number()).optional(),
580
- maxTokens: z.nullable(z.number().int()).optional(),
581
- maxCompletionTokens: z.nullable(z.number().int()).optional(),
582
- logprobs: z.nullable(z.boolean()).optional(),
583
- topLogprobs: z.nullable(z.number().int()).optional(),
584
- n: z.nullable(z.number().int()).optional(),
585
- presencePenalty: z.nullable(z.number()).optional(),
586
- responseFormat: z.union([
587
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsJSONSchema$outboundSchema),
588
- z.lazy(() => exports.ListAgentTasksResponseFormatText$outboundSchema),
589
- z.lazy(() => exports.ListAgentTasksResponseFormatJSONObject$outboundSchema),
590
- ]).optional(),
591
- reasoningEffort: z.string().optional(),
592
- verbosity: z.string().optional(),
593
- seed: z.nullable(z.number()).optional(),
594
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
595
- streamOptions: z.nullable(z.lazy(() => exports.ListAgentTasksStreamOptions$outboundSchema)).optional(),
596
- thinking: z.lazy(() => exports.ListAgentTasksThinking$outboundSchema).optional(),
597
- temperature: z.nullable(z.number()).optional(),
598
- topP: z.nullable(z.number()).optional(),
599
- topK: z.nullable(z.number()).optional(),
600
- toolChoice: z.union([
601
- z.lazy(() => exports.ListAgentTasksToolChoice2$outboundSchema),
602
- exports.ListAgentTasksToolChoice1$outboundSchema,
603
- ]).optional(),
604
- parallelToolCalls: z.boolean().optional(),
605
- modalities: z.nullable(z.array(exports.ListAgentTasksModalities$outboundSchema))
606
- .optional(),
607
- }).transform((v) => {
608
- return (0, primitives_js_1.remap)(v, {
609
- frequencyPenalty: "frequency_penalty",
610
- maxTokens: "max_tokens",
611
- maxCompletionTokens: "max_completion_tokens",
612
- topLogprobs: "top_logprobs",
613
- presencePenalty: "presence_penalty",
614
- responseFormat: "response_format",
615
- reasoningEffort: "reasoning_effort",
616
- streamOptions: "stream_options",
617
- topP: "top_p",
618
- topK: "top_k",
619
- toolChoice: "tool_choice",
620
- parallelToolCalls: "parallel_tool_calls",
621
- });
622
- });
623
- function listAgentTasksParametersToJSON(listAgentTasksParameters) {
624
- return JSON.stringify(exports.ListAgentTasksParameters$outboundSchema.parse(listAgentTasksParameters));
625
- }
626
- function listAgentTasksParametersFromJSON(jsonString) {
627
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksParameters' from JSON`);
628
- }
629
- /** @internal */
630
- exports.ListAgentTasksFallbackModelConfigurationVoice$inboundSchema = z
631
- .nativeEnum(exports.ListAgentTasksFallbackModelConfigurationVoice);
632
- /** @internal */
633
- exports.ListAgentTasksFallbackModelConfigurationVoice$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationVoice$inboundSchema;
634
- /** @internal */
635
- exports.ListAgentTasksFallbackModelConfigurationFormat$inboundSchema = z
636
- .nativeEnum(exports.ListAgentTasksFallbackModelConfigurationFormat);
637
- /** @internal */
638
- exports.ListAgentTasksFallbackModelConfigurationFormat$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationFormat$inboundSchema;
639
- /** @internal */
640
- exports.ListAgentTasksFallbackModelConfigurationAudio$inboundSchema = z.object({
641
- voice: exports.ListAgentTasksFallbackModelConfigurationVoice$inboundSchema,
642
- format: exports.ListAgentTasksFallbackModelConfigurationFormat$inboundSchema,
643
- });
644
- /** @internal */
645
- exports.ListAgentTasksFallbackModelConfigurationAudio$outboundSchema = z.object({
646
- voice: exports.ListAgentTasksFallbackModelConfigurationVoice$outboundSchema,
647
- format: exports.ListAgentTasksFallbackModelConfigurationFormat$outboundSchema,
648
- });
649
- function listAgentTasksFallbackModelConfigurationAudioToJSON(listAgentTasksFallbackModelConfigurationAudio) {
650
- return JSON.stringify(exports.ListAgentTasksFallbackModelConfigurationAudio$outboundSchema.parse(listAgentTasksFallbackModelConfigurationAudio));
651
- }
652
- function listAgentTasksFallbackModelConfigurationAudioFromJSON(jsonString) {
653
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelConfigurationAudio$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelConfigurationAudio' from JSON`);
654
- }
655
- /** @internal */
656
- exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema = z.nativeEnum(exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType);
657
- /** @internal */
658
- exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema;
659
- /** @internal */
660
- exports.ListAgentTasksResponseFormatAgentsResponseJsonSchema$inboundSchema = z.object({
661
- description: z.string().optional(),
662
- name: z.string(),
663
- schema: z.any().optional(),
664
- strict: z.boolean().optional(),
665
- });
666
- /** @internal */
667
- exports.ListAgentTasksResponseFormatAgentsResponseJsonSchema$outboundSchema = z.object({
668
- description: z.string().optional(),
669
- name: z.string(),
670
- schema: z.any().optional(),
671
- strict: z.boolean().optional(),
672
- });
673
- function listAgentTasksResponseFormatAgentsResponseJsonSchemaToJSON(listAgentTasksResponseFormatAgentsResponseJsonSchema) {
674
- return JSON.stringify(exports.ListAgentTasksResponseFormatAgentsResponseJsonSchema$outboundSchema.parse(listAgentTasksResponseFormatAgentsResponseJsonSchema));
675
- }
676
- function listAgentTasksResponseFormatAgentsResponseJsonSchemaFromJSON(jsonString) {
677
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormatAgentsResponseJsonSchema$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormatAgentsResponseJsonSchema' from JSON`);
678
- }
679
- /** @internal */
680
- exports.ListAgentTasksResponseFormatAgentsResponse200JSONSchema$inboundSchema = z.object({
681
- type: exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$inboundSchema,
682
- json_schema: z.lazy(() => exports.ListAgentTasksResponseFormatAgentsResponseJsonSchema$inboundSchema),
683
- }).transform((v) => {
684
- return (0, primitives_js_1.remap)(v, {
685
- "json_schema": "jsonSchema",
686
- });
687
- });
688
- /** @internal */
689
- exports.ListAgentTasksResponseFormatAgentsResponse200JSONSchema$outboundSchema = z.object({
690
- type: exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONResponseBodyType$outboundSchema,
691
- jsonSchema: z.lazy(() => exports.ListAgentTasksResponseFormatAgentsResponseJsonSchema$outboundSchema),
692
- }).transform((v) => {
693
- return (0, primitives_js_1.remap)(v, {
694
- jsonSchema: "json_schema",
695
- });
696
- });
697
- function listAgentTasksResponseFormatAgentsResponse200JSONSchemaToJSON(listAgentTasksResponseFormatAgentsResponse200JSONSchema) {
698
- return JSON.stringify(exports.ListAgentTasksResponseFormatAgentsResponse200JSONSchema$outboundSchema
699
- .parse(listAgentTasksResponseFormatAgentsResponse200JSONSchema));
700
- }
701
- function listAgentTasksResponseFormatAgentsResponse200JSONSchemaFromJSON(jsonString) {
702
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormatAgentsResponse200JSONSchema$inboundSchema
703
- .parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormatAgentsResponse200JSONSchema' from JSON`);
704
- }
705
- /** @internal */
706
- exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema = z.nativeEnum(exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType);
707
- /** @internal */
708
- exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema;
709
- /** @internal */
710
- exports.ListAgentTasksResponseFormatAgentsJSONObject$inboundSchema = z.object({
711
- type: exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$inboundSchema,
712
- });
713
- /** @internal */
714
- exports.ListAgentTasksResponseFormatAgentsJSONObject$outboundSchema = z.object({
715
- type: exports.ListAgentTasksResponseFormatAgentsResponse200ApplicationJSONType$outboundSchema,
716
- });
717
- function listAgentTasksResponseFormatAgentsJSONObjectToJSON(listAgentTasksResponseFormatAgentsJSONObject) {
718
- return JSON.stringify(exports.ListAgentTasksResponseFormatAgentsJSONObject$outboundSchema.parse(listAgentTasksResponseFormatAgentsJSONObject));
719
- }
720
- function listAgentTasksResponseFormatAgentsJSONObjectFromJSON(jsonString) {
721
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormatAgentsJSONObject$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormatAgentsJSONObject' from JSON`);
722
- }
723
- /** @internal */
724
- exports.ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema = z
725
- .nativeEnum(exports.ListAgentTasksResponseFormatAgentsResponse200Type);
726
- /** @internal */
727
- exports.ListAgentTasksResponseFormatAgentsResponse200Type$outboundSchema = exports.ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema;
728
- /** @internal */
729
- exports.ListAgentTasksResponseFormatAgentsText$inboundSchema = z.object({
730
- type: exports.ListAgentTasksResponseFormatAgentsResponse200Type$inboundSchema,
731
- });
732
- /** @internal */
733
- exports.ListAgentTasksResponseFormatAgentsText$outboundSchema = z.object({
734
- type: exports.ListAgentTasksResponseFormatAgentsResponse200Type$outboundSchema,
735
- });
736
- function listAgentTasksResponseFormatAgentsTextToJSON(listAgentTasksResponseFormatAgentsText) {
737
- return JSON.stringify(exports.ListAgentTasksResponseFormatAgentsText$outboundSchema.parse(listAgentTasksResponseFormatAgentsText));
738
- }
739
- function listAgentTasksResponseFormatAgentsTextFromJSON(jsonString) {
740
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksResponseFormatAgentsText$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksResponseFormatAgentsText' from JSON`);
741
- }
742
- /** @internal */
743
- exports.ListAgentTasksFallbackModelConfigurationResponseFormat$inboundSchema = z.union([
744
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsResponse200JSONSchema$inboundSchema),
745
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsText$inboundSchema),
746
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsJSONObject$inboundSchema),
747
- ]);
748
- /** @internal */
749
- exports.ListAgentTasksFallbackModelConfigurationResponseFormat$outboundSchema = z.union([
750
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsResponse200JSONSchema$outboundSchema),
751
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsText$outboundSchema),
752
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsJSONObject$outboundSchema),
753
- ]);
754
- function listAgentTasksFallbackModelConfigurationResponseFormatToJSON(listAgentTasksFallbackModelConfigurationResponseFormat) {
755
- return JSON.stringify(exports.ListAgentTasksFallbackModelConfigurationResponseFormat$outboundSchema.parse(listAgentTasksFallbackModelConfigurationResponseFormat));
756
- }
757
- function listAgentTasksFallbackModelConfigurationResponseFormatFromJSON(jsonString) {
758
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelConfigurationResponseFormat$inboundSchema
759
- .parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelConfigurationResponseFormat' from JSON`);
760
- }
761
- /** @internal */
762
- exports.ListAgentTasksFallbackModelConfigurationStop$inboundSchema = z.union([z.string(), z.array(z.string())]);
763
- /** @internal */
764
- exports.ListAgentTasksFallbackModelConfigurationStop$outboundSchema = z.union([z.string(), z.array(z.string())]);
765
- function listAgentTasksFallbackModelConfigurationStopToJSON(listAgentTasksFallbackModelConfigurationStop) {
766
- return JSON.stringify(exports.ListAgentTasksFallbackModelConfigurationStop$outboundSchema.parse(listAgentTasksFallbackModelConfigurationStop));
767
- }
768
- function listAgentTasksFallbackModelConfigurationStopFromJSON(jsonString) {
769
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelConfigurationStop$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelConfigurationStop' from JSON`);
770
- }
771
- /** @internal */
772
- exports.ListAgentTasksFallbackModelConfigurationStreamOptions$inboundSchema = z.object({
773
- include_usage: z.boolean().optional(),
774
- }).transform((v) => {
775
- return (0, primitives_js_1.remap)(v, {
776
- "include_usage": "includeUsage",
777
- });
778
- });
779
- /** @internal */
780
- exports.ListAgentTasksFallbackModelConfigurationStreamOptions$outboundSchema = z.object({
781
- includeUsage: z.boolean().optional(),
782
- }).transform((v) => {
783
- return (0, primitives_js_1.remap)(v, {
784
- includeUsage: "include_usage",
785
- });
786
- });
787
- function listAgentTasksFallbackModelConfigurationStreamOptionsToJSON(listAgentTasksFallbackModelConfigurationStreamOptions) {
788
- return JSON.stringify(exports.ListAgentTasksFallbackModelConfigurationStreamOptions$outboundSchema.parse(listAgentTasksFallbackModelConfigurationStreamOptions));
789
- }
790
- function listAgentTasksFallbackModelConfigurationStreamOptionsFromJSON(jsonString) {
791
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelConfigurationStreamOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelConfigurationStreamOptions' from JSON`);
792
- }
793
- /** @internal */
794
- exports.ListAgentTasksFallbackModelConfigurationType$inboundSchema = z
795
- .nativeEnum(exports.ListAgentTasksFallbackModelConfigurationType);
796
- /** @internal */
797
- exports.ListAgentTasksFallbackModelConfigurationType$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationType$inboundSchema;
798
- /** @internal */
799
- exports.ListAgentTasksFallbackModelConfigurationThinking$inboundSchema = z.object({
800
- type: exports.ListAgentTasksFallbackModelConfigurationType$inboundSchema,
801
- budget_tokens: z.number(),
802
- }).transform((v) => {
803
- return (0, primitives_js_1.remap)(v, {
804
- "budget_tokens": "budgetTokens",
805
- });
806
- });
807
- /** @internal */
808
- exports.ListAgentTasksFallbackModelConfigurationThinking$outboundSchema = z.object({
809
- type: exports.ListAgentTasksFallbackModelConfigurationType$outboundSchema,
810
- budgetTokens: z.number(),
811
- }).transform((v) => {
812
- return (0, primitives_js_1.remap)(v, {
813
- budgetTokens: "budget_tokens",
814
- });
815
- });
816
- function listAgentTasksFallbackModelConfigurationThinkingToJSON(listAgentTasksFallbackModelConfigurationThinking) {
817
- return JSON.stringify(exports.ListAgentTasksFallbackModelConfigurationThinking$outboundSchema.parse(listAgentTasksFallbackModelConfigurationThinking));
818
- }
819
- function listAgentTasksFallbackModelConfigurationThinkingFromJSON(jsonString) {
820
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelConfigurationThinking$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelConfigurationThinking' from JSON`);
821
- }
822
- /** @internal */
823
- exports.ListAgentTasksToolChoiceAgentsType$inboundSchema = z.nativeEnum(exports.ListAgentTasksToolChoiceAgentsType);
824
- /** @internal */
825
- exports.ListAgentTasksToolChoiceAgentsType$outboundSchema = exports.ListAgentTasksToolChoiceAgentsType$inboundSchema;
826
- /** @internal */
827
- exports.ListAgentTasksToolChoiceAgentsFunction$inboundSchema = z.object({
281
+ exports.ListAgentTasksFileBinaryFormat$inboundSchema = z.object({
282
+ bytes: z.string(),
283
+ mimeType: z.string().optional(),
828
284
  name: z.string().optional(),
829
285
  });
830
286
  /** @internal */
831
- exports.ListAgentTasksToolChoiceAgentsFunction$outboundSchema = z.object({
287
+ exports.ListAgentTasksFileBinaryFormat$outboundSchema = z.object({
288
+ bytes: z.string(),
289
+ mimeType: z.string().optional(),
832
290
  name: z.string().optional(),
833
291
  });
834
- function listAgentTasksToolChoiceAgentsFunctionToJSON(listAgentTasksToolChoiceAgentsFunction) {
835
- return JSON.stringify(exports.ListAgentTasksToolChoiceAgentsFunction$outboundSchema.parse(listAgentTasksToolChoiceAgentsFunction));
836
- }
837
- function listAgentTasksToolChoiceAgentsFunctionFromJSON(jsonString) {
838
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksToolChoiceAgentsFunction$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksToolChoiceAgentsFunction' from JSON`);
839
- }
840
- /** @internal */
841
- exports.ListAgentTasksToolChoiceAgents2$inboundSchema = z.object({
842
- type: exports.ListAgentTasksToolChoiceAgentsType$inboundSchema.optional(),
843
- function: z.lazy(() => exports.ListAgentTasksToolChoiceAgentsFunction$inboundSchema),
844
- });
845
- /** @internal */
846
- exports.ListAgentTasksToolChoiceAgents2$outboundSchema = z.object({
847
- type: exports.ListAgentTasksToolChoiceAgentsType$outboundSchema.optional(),
848
- function: z.lazy(() => exports.ListAgentTasksToolChoiceAgentsFunction$outboundSchema),
849
- });
850
- function listAgentTasksToolChoiceAgents2ToJSON(listAgentTasksToolChoiceAgents2) {
851
- return JSON.stringify(exports.ListAgentTasksToolChoiceAgents2$outboundSchema.parse(listAgentTasksToolChoiceAgents2));
292
+ function listAgentTasksFileBinaryFormatToJSON(listAgentTasksFileBinaryFormat) {
293
+ return JSON.stringify(exports.ListAgentTasksFileBinaryFormat$outboundSchema.parse(listAgentTasksFileBinaryFormat));
852
294
  }
853
- function listAgentTasksToolChoiceAgents2FromJSON(jsonString) {
854
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksToolChoiceAgents2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksToolChoiceAgents2' from JSON`);
295
+ function listAgentTasksFileBinaryFormatFromJSON(jsonString) {
296
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFileBinaryFormat$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFileBinaryFormat' from JSON`);
855
297
  }
856
298
  /** @internal */
857
- exports.ListAgentTasksToolChoiceAgents1$inboundSchema = z.nativeEnum(exports.ListAgentTasksToolChoiceAgents1);
858
- /** @internal */
859
- exports.ListAgentTasksToolChoiceAgents1$outboundSchema = exports.ListAgentTasksToolChoiceAgents1$inboundSchema;
860
- /** @internal */
861
- exports.ListAgentTasksFallbackModelConfigurationToolChoice$inboundSchema = z.union([
862
- z.lazy(() => exports.ListAgentTasksToolChoiceAgents2$inboundSchema),
863
- exports.ListAgentTasksToolChoiceAgents1$inboundSchema,
299
+ exports.ListAgentTasksPartsFile$inboundSchema = z.union([
300
+ z.lazy(() => exports.ListAgentTasksFileBinaryFormat$inboundSchema),
301
+ z.lazy(() => exports.ListAgentTasksFileFileInURIFormat$inboundSchema),
864
302
  ]);
865
303
  /** @internal */
866
- exports.ListAgentTasksFallbackModelConfigurationToolChoice$outboundSchema = z.union([
867
- z.lazy(() => exports.ListAgentTasksToolChoiceAgents2$outboundSchema),
868
- exports.ListAgentTasksToolChoiceAgents1$outboundSchema,
304
+ exports.ListAgentTasksPartsFile$outboundSchema = z.union([
305
+ z.lazy(() => exports.ListAgentTasksFileBinaryFormat$outboundSchema),
306
+ z.lazy(() => exports.ListAgentTasksFileFileInURIFormat$outboundSchema),
869
307
  ]);
870
- function listAgentTasksFallbackModelConfigurationToolChoiceToJSON(listAgentTasksFallbackModelConfigurationToolChoice) {
871
- return JSON.stringify(exports.ListAgentTasksFallbackModelConfigurationToolChoice$outboundSchema.parse(listAgentTasksFallbackModelConfigurationToolChoice));
872
- }
873
- function listAgentTasksFallbackModelConfigurationToolChoiceFromJSON(jsonString) {
874
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelConfigurationToolChoice$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelConfigurationToolChoice' from JSON`);
875
- }
876
- /** @internal */
877
- exports.ListAgentTasksFallbackModelConfigurationModalities$inboundSchema = z
878
- .nativeEnum(exports.ListAgentTasksFallbackModelConfigurationModalities);
879
- /** @internal */
880
- exports.ListAgentTasksFallbackModelConfigurationModalities$outboundSchema = exports.ListAgentTasksFallbackModelConfigurationModalities$inboundSchema;
881
- /** @internal */
882
- exports.ListAgentTasksFallbackModelConfigurationParameters$inboundSchema = z.object({
883
- audio: z.nullable(z.lazy(() => exports.ListAgentTasksFallbackModelConfigurationAudio$inboundSchema)).optional(),
884
- frequency_penalty: z.nullable(z.number()).optional(),
885
- max_tokens: z.nullable(z.number().int()).optional(),
886
- max_completion_tokens: z.nullable(z.number().int()).optional(),
887
- logprobs: z.nullable(z.boolean()).optional(),
888
- top_logprobs: z.nullable(z.number().int()).optional(),
889
- n: z.nullable(z.number().int()).optional(),
890
- presence_penalty: z.nullable(z.number()).optional(),
891
- response_format: z.union([
892
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsResponse200JSONSchema$inboundSchema),
893
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsText$inboundSchema),
894
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsJSONObject$inboundSchema),
895
- ]).optional(),
896
- reasoning_effort: z.string().optional(),
897
- verbosity: z.string().optional(),
898
- seed: z.nullable(z.number()).optional(),
899
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
900
- stream_options: z.nullable(z.lazy(() => exports.ListAgentTasksFallbackModelConfigurationStreamOptions$inboundSchema)).optional(),
901
- thinking: z.lazy(() => exports.ListAgentTasksFallbackModelConfigurationThinking$inboundSchema).optional(),
902
- temperature: z.nullable(z.number()).optional(),
903
- top_p: z.nullable(z.number()).optional(),
904
- top_k: z.nullable(z.number()).optional(),
905
- tool_choice: z.union([
906
- z.lazy(() => exports.ListAgentTasksToolChoiceAgents2$inboundSchema),
907
- exports.ListAgentTasksToolChoiceAgents1$inboundSchema,
908
- ]).optional(),
909
- parallel_tool_calls: z.boolean().optional(),
910
- modalities: z.nullable(z.array(exports.ListAgentTasksFallbackModelConfigurationModalities$inboundSchema)).optional(),
911
- }).transform((v) => {
912
- return (0, primitives_js_1.remap)(v, {
913
- "frequency_penalty": "frequencyPenalty",
914
- "max_tokens": "maxTokens",
915
- "max_completion_tokens": "maxCompletionTokens",
916
- "top_logprobs": "topLogprobs",
917
- "presence_penalty": "presencePenalty",
918
- "response_format": "responseFormat",
919
- "reasoning_effort": "reasoningEffort",
920
- "stream_options": "streamOptions",
921
- "top_p": "topP",
922
- "top_k": "topK",
923
- "tool_choice": "toolChoice",
924
- "parallel_tool_calls": "parallelToolCalls",
925
- });
926
- });
927
- /** @internal */
928
- exports.ListAgentTasksFallbackModelConfigurationParameters$outboundSchema = z.object({
929
- audio: z.nullable(z.lazy(() => exports.ListAgentTasksFallbackModelConfigurationAudio$outboundSchema)).optional(),
930
- frequencyPenalty: z.nullable(z.number()).optional(),
931
- maxTokens: z.nullable(z.number().int()).optional(),
932
- maxCompletionTokens: z.nullable(z.number().int()).optional(),
933
- logprobs: z.nullable(z.boolean()).optional(),
934
- topLogprobs: z.nullable(z.number().int()).optional(),
935
- n: z.nullable(z.number().int()).optional(),
936
- presencePenalty: z.nullable(z.number()).optional(),
937
- responseFormat: z.union([
938
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsResponse200JSONSchema$outboundSchema),
939
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsText$outboundSchema),
940
- z.lazy(() => exports.ListAgentTasksResponseFormatAgentsJSONObject$outboundSchema),
941
- ]).optional(),
942
- reasoningEffort: z.string().optional(),
943
- verbosity: z.string().optional(),
944
- seed: z.nullable(z.number()).optional(),
945
- stop: z.nullable(z.union([z.string(), z.array(z.string())])).optional(),
946
- streamOptions: z.nullable(z.lazy(() => exports.ListAgentTasksFallbackModelConfigurationStreamOptions$outboundSchema)).optional(),
947
- thinking: z.lazy(() => exports.ListAgentTasksFallbackModelConfigurationThinking$outboundSchema).optional(),
948
- temperature: z.nullable(z.number()).optional(),
949
- topP: z.nullable(z.number()).optional(),
950
- topK: z.nullable(z.number()).optional(),
951
- toolChoice: z.union([
952
- z.lazy(() => exports.ListAgentTasksToolChoiceAgents2$outboundSchema),
953
- exports.ListAgentTasksToolChoiceAgents1$outboundSchema,
954
- ]).optional(),
955
- parallelToolCalls: z.boolean().optional(),
956
- modalities: z.nullable(z.array(exports.ListAgentTasksFallbackModelConfigurationModalities$outboundSchema)).optional(),
957
- }).transform((v) => {
958
- return (0, primitives_js_1.remap)(v, {
959
- frequencyPenalty: "frequency_penalty",
960
- maxTokens: "max_tokens",
961
- maxCompletionTokens: "max_completion_tokens",
962
- topLogprobs: "top_logprobs",
963
- presencePenalty: "presence_penalty",
964
- responseFormat: "response_format",
965
- reasoningEffort: "reasoning_effort",
966
- streamOptions: "stream_options",
967
- topP: "top_p",
968
- topK: "top_k",
969
- toolChoice: "tool_choice",
970
- parallelToolCalls: "parallel_tool_calls",
971
- });
972
- });
973
- function listAgentTasksFallbackModelConfigurationParametersToJSON(listAgentTasksFallbackModelConfigurationParameters) {
974
- return JSON.stringify(exports.ListAgentTasksFallbackModelConfigurationParameters$outboundSchema.parse(listAgentTasksFallbackModelConfigurationParameters));
308
+ function listAgentTasksPartsFileToJSON(listAgentTasksPartsFile) {
309
+ return JSON.stringify(exports.ListAgentTasksPartsFile$outboundSchema.parse(listAgentTasksPartsFile));
975
310
  }
976
- function listAgentTasksFallbackModelConfigurationParametersFromJSON(jsonString) {
977
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelConfigurationParameters$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelConfigurationParameters' from JSON`);
311
+ function listAgentTasksPartsFileFromJSON(jsonString) {
312
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksPartsFile$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksPartsFile' from JSON`);
978
313
  }
979
314
  /** @internal */
980
- exports.ListAgentTasksFallbackModelConfiguration2$inboundSchema = z.object({
981
- id: z.string(),
982
- parameters: z.lazy(() => exports.ListAgentTasksFallbackModelConfigurationParameters$inboundSchema).optional(),
983
- });
984
- /** @internal */
985
- exports.ListAgentTasksFallbackModelConfiguration2$outboundSchema = z.object({
986
- id: z.string(),
987
- parameters: z.lazy(() => exports.ListAgentTasksFallbackModelConfigurationParameters$outboundSchema).optional(),
988
- });
989
- function listAgentTasksFallbackModelConfiguration2ToJSON(listAgentTasksFallbackModelConfiguration2) {
990
- return JSON.stringify(exports.ListAgentTasksFallbackModelConfiguration2$outboundSchema.parse(listAgentTasksFallbackModelConfiguration2));
991
- }
992
- function listAgentTasksFallbackModelConfiguration2FromJSON(jsonString) {
993
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelConfiguration2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelConfiguration2' from JSON`);
994
- }
995
- /** @internal */
996
- exports.ListAgentTasksFallbackModelConfiguration$inboundSchema = z.union([
997
- z.lazy(() => exports.ListAgentTasksFallbackModelConfiguration2$inboundSchema),
998
- z.string(),
999
- ]);
1000
- /** @internal */
1001
- exports.ListAgentTasksFallbackModelConfiguration$outboundSchema = z.union([
1002
- z.lazy(() => exports.ListAgentTasksFallbackModelConfiguration2$outboundSchema),
1003
- z.string(),
1004
- ]);
1005
- function listAgentTasksFallbackModelConfigurationToJSON(listAgentTasksFallbackModelConfiguration) {
1006
- return JSON.stringify(exports.ListAgentTasksFallbackModelConfiguration$outboundSchema.parse(listAgentTasksFallbackModelConfiguration));
1007
- }
1008
- function listAgentTasksFallbackModelConfigurationFromJSON(jsonString) {
1009
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksFallbackModelConfiguration$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksFallbackModelConfiguration' from JSON`);
1010
- }
1011
- /** @internal */
1012
- exports.ListAgentTasksModel$inboundSchema = z.object({
1013
- id: z.string(),
1014
- integration_id: z.nullable(z.string()).optional(),
1015
- parameters: z.lazy(() => exports.ListAgentTasksParameters$inboundSchema).optional(),
1016
- fallback_models: z.nullable(z.array(z.union([
1017
- z.lazy(() => exports.ListAgentTasksFallbackModelConfiguration2$inboundSchema),
1018
- z.string(),
1019
- ]))).optional(),
1020
- }).transform((v) => {
1021
- return (0, primitives_js_1.remap)(v, {
1022
- "integration_id": "integrationId",
1023
- "fallback_models": "fallbackModels",
1024
- });
315
+ exports.ListAgentTasksParts3$inboundSchema = z.object({
316
+ kind: exports.ListAgentTasksPartsAgentsResponseKind$inboundSchema,
317
+ file: z.union([
318
+ z.lazy(() => exports.ListAgentTasksFileBinaryFormat$inboundSchema),
319
+ z.lazy(() => exports.ListAgentTasksFileFileInURIFormat$inboundSchema),
320
+ ]),
321
+ metadata: z.record(z.any()).optional(),
1025
322
  });
1026
323
  /** @internal */
1027
- exports.ListAgentTasksModel$outboundSchema = z.object({
1028
- id: z.string(),
1029
- integrationId: z.nullable(z.string()).optional(),
1030
- parameters: z.lazy(() => exports.ListAgentTasksParameters$outboundSchema).optional(),
1031
- fallbackModels: z.nullable(z.array(z.union([
1032
- z.lazy(() => exports.ListAgentTasksFallbackModelConfiguration2$outboundSchema),
1033
- z.string(),
1034
- ]))).optional(),
1035
- }).transform((v) => {
1036
- return (0, primitives_js_1.remap)(v, {
1037
- integrationId: "integration_id",
1038
- fallbackModels: "fallback_models",
1039
- });
324
+ exports.ListAgentTasksParts3$outboundSchema = z.object({
325
+ kind: exports.ListAgentTasksPartsAgentsResponseKind$outboundSchema,
326
+ file: z.union([
327
+ z.lazy(() => exports.ListAgentTasksFileBinaryFormat$outboundSchema),
328
+ z.lazy(() => exports.ListAgentTasksFileFileInURIFormat$outboundSchema),
329
+ ]),
330
+ metadata: z.record(z.any()).optional(),
1040
331
  });
1041
- function listAgentTasksModelToJSON(listAgentTasksModel) {
1042
- return JSON.stringify(exports.ListAgentTasksModel$outboundSchema.parse(listAgentTasksModel));
332
+ function listAgentTasksParts3ToJSON(listAgentTasksParts3) {
333
+ return JSON.stringify(exports.ListAgentTasksParts3$outboundSchema.parse(listAgentTasksParts3));
1043
334
  }
1044
- function listAgentTasksModelFromJSON(jsonString) {
1045
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksModel$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksModel' from JSON`);
335
+ function listAgentTasksParts3FromJSON(jsonString) {
336
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksParts3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksParts3' from JSON`);
1046
337
  }
1047
338
  /** @internal */
1048
- exports.ListAgentTasksToolApprovalRequired$inboundSchema = z.nativeEnum(exports.ListAgentTasksToolApprovalRequired);
339
+ exports.ListAgentTasksPartsAgentsKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsAgentsKind);
1049
340
  /** @internal */
1050
- exports.ListAgentTasksToolApprovalRequired$outboundSchema = exports.ListAgentTasksToolApprovalRequired$inboundSchema;
341
+ exports.ListAgentTasksPartsAgentsKind$outboundSchema = exports.ListAgentTasksPartsAgentsKind$inboundSchema;
1051
342
  /** @internal */
1052
- exports.ListAgentTasksConditions$inboundSchema = z.object({
1053
- condition: z.string(),
1054
- operator: z.string(),
1055
- value: z.string(),
343
+ exports.ListAgentTasksParts2$inboundSchema = z.object({
344
+ kind: exports.ListAgentTasksPartsAgentsKind$inboundSchema,
345
+ data: z.record(z.any()),
346
+ metadata: z.record(z.any()).optional(),
1056
347
  });
1057
348
  /** @internal */
1058
- exports.ListAgentTasksConditions$outboundSchema = z.object({
1059
- condition: z.string(),
1060
- operator: z.string(),
1061
- value: z.string(),
349
+ exports.ListAgentTasksParts2$outboundSchema = z.object({
350
+ kind: exports.ListAgentTasksPartsAgentsKind$outboundSchema,
351
+ data: z.record(z.any()),
352
+ metadata: z.record(z.any()).optional(),
1062
353
  });
1063
- function listAgentTasksConditionsToJSON(listAgentTasksConditions) {
1064
- return JSON.stringify(exports.ListAgentTasksConditions$outboundSchema.parse(listAgentTasksConditions));
354
+ function listAgentTasksParts2ToJSON(listAgentTasksParts2) {
355
+ return JSON.stringify(exports.ListAgentTasksParts2$outboundSchema.parse(listAgentTasksParts2));
1065
356
  }
1066
- function listAgentTasksConditionsFromJSON(jsonString) {
1067
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksConditions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksConditions' from JSON`);
357
+ function listAgentTasksParts2FromJSON(jsonString) {
358
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksParts2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksParts2' from JSON`);
1068
359
  }
1069
360
  /** @internal */
1070
- exports.ListAgentTasksTools$inboundSchema = z.object({
1071
- id: z.string(),
1072
- key: z.string().optional(),
1073
- action_type: z.string(),
1074
- display_name: z.string().optional(),
1075
- requires_approval: z.boolean().default(false),
1076
- conditions: z.array(z.lazy(() => exports.ListAgentTasksConditions$inboundSchema))
1077
- .optional(),
1078
- mcpServer: z.string().optional(),
1079
- timeout: z.number().default(120),
1080
- }).transform((v) => {
1081
- return (0, primitives_js_1.remap)(v, {
1082
- "action_type": "actionType",
1083
- "display_name": "displayName",
1084
- "requires_approval": "requiresApproval",
1085
- });
1086
- });
361
+ exports.ListAgentTasksPartsKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksPartsKind);
1087
362
  /** @internal */
1088
- exports.ListAgentTasksTools$outboundSchema = z.object({
1089
- id: z.string(),
1090
- key: z.string().optional(),
1091
- actionType: z.string(),
1092
- displayName: z.string().optional(),
1093
- requiresApproval: z.boolean().default(false),
1094
- conditions: z.array(z.lazy(() => exports.ListAgentTasksConditions$outboundSchema))
1095
- .optional(),
1096
- mcpServer: z.string().optional(),
1097
- timeout: z.number().default(120),
1098
- }).transform((v) => {
1099
- return (0, primitives_js_1.remap)(v, {
1100
- actionType: "action_type",
1101
- displayName: "display_name",
1102
- requiresApproval: "requires_approval",
1103
- });
1104
- });
1105
- function listAgentTasksToolsToJSON(listAgentTasksTools) {
1106
- return JSON.stringify(exports.ListAgentTasksTools$outboundSchema.parse(listAgentTasksTools));
1107
- }
1108
- function listAgentTasksToolsFromJSON(jsonString) {
1109
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksTools$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksTools' from JSON`);
1110
- }
363
+ exports.ListAgentTasksPartsKind$outboundSchema = exports.ListAgentTasksPartsKind$inboundSchema;
1111
364
  /** @internal */
1112
- exports.ListAgentTasksSettings$inboundSchema = z.object({
1113
- max_iterations: z.number().int().default(15),
1114
- max_execution_time: z.number().int().default(300),
1115
- tool_approval_required: exports.ListAgentTasksToolApprovalRequired$inboundSchema
1116
- .default("respect_tool"),
1117
- tools: z.array(z.lazy(() => exports.ListAgentTasksTools$inboundSchema)).optional(),
1118
- }).transform((v) => {
1119
- return (0, primitives_js_1.remap)(v, {
1120
- "max_iterations": "maxIterations",
1121
- "max_execution_time": "maxExecutionTime",
1122
- "tool_approval_required": "toolApprovalRequired",
1123
- });
365
+ exports.ListAgentTasksParts1$inboundSchema = z.object({
366
+ kind: exports.ListAgentTasksPartsKind$inboundSchema,
367
+ text: z.string(),
1124
368
  });
1125
369
  /** @internal */
1126
- exports.ListAgentTasksSettings$outboundSchema = z.object({
1127
- maxIterations: z.number().int().default(15),
1128
- maxExecutionTime: z.number().int().default(300),
1129
- toolApprovalRequired: exports.ListAgentTasksToolApprovalRequired$outboundSchema
1130
- .default("respect_tool"),
1131
- tools: z.array(z.lazy(() => exports.ListAgentTasksTools$outboundSchema)).optional(),
1132
- }).transform((v) => {
1133
- return (0, primitives_js_1.remap)(v, {
1134
- maxIterations: "max_iterations",
1135
- maxExecutionTime: "max_execution_time",
1136
- toolApprovalRequired: "tool_approval_required",
1137
- });
370
+ exports.ListAgentTasksParts1$outboundSchema = z.object({
371
+ kind: exports.ListAgentTasksPartsKind$outboundSchema,
372
+ text: z.string(),
1138
373
  });
1139
- function listAgentTasksSettingsToJSON(listAgentTasksSettings) {
1140
- return JSON.stringify(exports.ListAgentTasksSettings$outboundSchema.parse(listAgentTasksSettings));
374
+ function listAgentTasksParts1ToJSON(listAgentTasksParts1) {
375
+ return JSON.stringify(exports.ListAgentTasksParts1$outboundSchema.parse(listAgentTasksParts1));
1141
376
  }
1142
- function listAgentTasksSettingsFromJSON(jsonString) {
1143
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksSettings$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksSettings' from JSON`);
377
+ function listAgentTasksParts1FromJSON(jsonString) {
378
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksParts1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksParts1' from JSON`);
1144
379
  }
1145
380
  /** @internal */
1146
- exports.AgentManifestSnapshot$inboundSchema = z.object({
1147
- _id: z.string(),
1148
- key: z.string(),
1149
- role: z.string(),
1150
- description: z.string(),
1151
- instructions: z.string(),
1152
- system_prompt: z.string().optional(),
1153
- model: z.lazy(() => exports.ListAgentTasksModel$inboundSchema),
1154
- settings: z.lazy(() => exports.ListAgentTasksSettings$inboundSchema).optional(),
1155
- project_id: z.string().optional(),
1156
- }).transform((v) => {
1157
- return (0, primitives_js_1.remap)(v, {
1158
- "_id": "id",
1159
- "system_prompt": "systemPrompt",
1160
- "project_id": "projectId",
1161
- });
1162
- });
1163
- /** @internal */
1164
- exports.AgentManifestSnapshot$outboundSchema = z.object({
1165
- id: z.string(),
1166
- key: z.string(),
1167
- role: z.string(),
1168
- description: z.string(),
1169
- instructions: z.string(),
1170
- systemPrompt: z.string().optional(),
1171
- model: z.lazy(() => exports.ListAgentTasksModel$outboundSchema),
1172
- settings: z.lazy(() => exports.ListAgentTasksSettings$outboundSchema).optional(),
1173
- projectId: z.string().optional(),
1174
- }).transform((v) => {
1175
- return (0, primitives_js_1.remap)(v, {
1176
- id: "_id",
1177
- systemPrompt: "system_prompt",
1178
- projectId: "project_id",
1179
- });
1180
- });
1181
- function agentManifestSnapshotToJSON(agentManifestSnapshot) {
1182
- return JSON.stringify(exports.AgentManifestSnapshot$outboundSchema.parse(agentManifestSnapshot));
1183
- }
1184
- function agentManifestSnapshotFromJSON(jsonString) {
1185
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AgentManifestSnapshot$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AgentManifestSnapshot' from JSON`);
1186
- }
381
+ exports.ListAgentTasksParts$inboundSchema = z.union([
382
+ z.lazy(() => exports.ListAgentTasksParts4$inboundSchema),
383
+ z.lazy(() => exports.ListAgentTasksParts1$inboundSchema),
384
+ z.lazy(() => exports.ListAgentTasksParts2$inboundSchema),
385
+ z.lazy(() => exports.ListAgentTasksParts3$inboundSchema),
386
+ z.lazy(() => exports.ListAgentTasksParts5$inboundSchema),
387
+ ]);
1187
388
  /** @internal */
1188
- exports.ListAgentTasksMemory$inboundSchema = z.object({
1189
- entity_id: z.string(),
1190
- }).transform((v) => {
1191
- return (0, primitives_js_1.remap)(v, {
1192
- "entity_id": "entityId",
1193
- });
389
+ exports.ListAgentTasksParts$outboundSchema = z.union([
390
+ z.lazy(() => exports.ListAgentTasksParts4$outboundSchema),
391
+ z.lazy(() => exports.ListAgentTasksParts1$outboundSchema),
392
+ z.lazy(() => exports.ListAgentTasksParts2$outboundSchema),
393
+ z.lazy(() => exports.ListAgentTasksParts3$outboundSchema),
394
+ z.lazy(() => exports.ListAgentTasksParts5$outboundSchema),
395
+ ]);
396
+ function listAgentTasksPartsToJSON(listAgentTasksParts) {
397
+ return JSON.stringify(exports.ListAgentTasksParts$outboundSchema.parse(listAgentTasksParts));
398
+ }
399
+ function listAgentTasksPartsFromJSON(jsonString) {
400
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksParts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksParts' from JSON`);
401
+ }
402
+ /** @internal */
403
+ exports.ListAgentTasksHistory$inboundSchema = z.object({
404
+ kind: exports.ListAgentTasksAgentsKind$inboundSchema,
405
+ messageId: z.string(),
406
+ role: exports.ListAgentTasksRole$inboundSchema,
407
+ parts: z.array(z.union([
408
+ z.lazy(() => exports.ListAgentTasksParts4$inboundSchema),
409
+ z.lazy(() => exports.ListAgentTasksParts1$inboundSchema),
410
+ z.lazy(() => exports.ListAgentTasksParts2$inboundSchema),
411
+ z.lazy(() => exports.ListAgentTasksParts3$inboundSchema),
412
+ z.lazy(() => exports.ListAgentTasksParts5$inboundSchema),
413
+ ])),
414
+ taskId: z.string().optional(),
415
+ contextId: z.string().optional(),
416
+ metadata: z.record(z.any()).optional(),
1194
417
  });
1195
418
  /** @internal */
1196
- exports.ListAgentTasksMemory$outboundSchema = z.object({
1197
- entityId: z.string(),
1198
- }).transform((v) => {
1199
- return (0, primitives_js_1.remap)(v, {
1200
- entityId: "entity_id",
1201
- });
419
+ exports.ListAgentTasksHistory$outboundSchema = z.object({
420
+ kind: exports.ListAgentTasksAgentsKind$outboundSchema,
421
+ messageId: z.string(),
422
+ role: exports.ListAgentTasksRole$outboundSchema,
423
+ parts: z.array(z.union([
424
+ z.lazy(() => exports.ListAgentTasksParts4$outboundSchema),
425
+ z.lazy(() => exports.ListAgentTasksParts1$outboundSchema),
426
+ z.lazy(() => exports.ListAgentTasksParts2$outboundSchema),
427
+ z.lazy(() => exports.ListAgentTasksParts3$outboundSchema),
428
+ z.lazy(() => exports.ListAgentTasksParts5$outboundSchema),
429
+ ])),
430
+ taskId: z.string().optional(),
431
+ contextId: z.string().optional(),
432
+ metadata: z.record(z.any()).optional(),
1202
433
  });
1203
- function listAgentTasksMemoryToJSON(listAgentTasksMemory) {
1204
- return JSON.stringify(exports.ListAgentTasksMemory$outboundSchema.parse(listAgentTasksMemory));
434
+ function listAgentTasksHistoryToJSON(listAgentTasksHistory) {
435
+ return JSON.stringify(exports.ListAgentTasksHistory$outboundSchema.parse(listAgentTasksHistory));
1205
436
  }
1206
- function listAgentTasksMemoryFromJSON(jsonString) {
1207
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksMemory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksMemory' from JSON`);
437
+ function listAgentTasksHistoryFromJSON(jsonString) {
438
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksHistory$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksHistory' from JSON`);
1208
439
  }
1209
440
  /** @internal */
1210
- exports.ListAgentTasksState$inboundSchema = z.object({
1211
- waiting_for_approval: z.boolean().default(false),
1212
- inactive: z.boolean().default(true),
1213
- error: z.string().optional(),
1214
- iteration: z.number().int().default(1),
1215
- accumulated_execution_time: z.number().default(0),
1216
- variables: z.record(z.any()).optional(),
1217
- }).transform((v) => {
1218
- return (0, primitives_js_1.remap)(v, {
1219
- "waiting_for_approval": "waitingForApproval",
1220
- "accumulated_execution_time": "accumulatedExecutionTime",
1221
- });
1222
- });
441
+ exports.ListAgentTasksAgentsResponseKind$inboundSchema = z.nativeEnum(exports.ListAgentTasksAgentsResponseKind);
1223
442
  /** @internal */
1224
- exports.ListAgentTasksState$outboundSchema = z.object({
1225
- waitingForApproval: z.boolean().default(false),
1226
- inactive: z.boolean().default(true),
1227
- error: z.string().optional(),
1228
- iteration: z.number().int().default(1),
1229
- accumulatedExecutionTime: z.number().default(0),
1230
- variables: z.record(z.any()).optional(),
1231
- }).transform((v) => {
1232
- return (0, primitives_js_1.remap)(v, {
1233
- waitingForApproval: "waiting_for_approval",
1234
- accumulatedExecutionTime: "accumulated_execution_time",
1235
- });
1236
- });
1237
- function listAgentTasksStateToJSON(listAgentTasksState) {
1238
- return JSON.stringify(exports.ListAgentTasksState$outboundSchema.parse(listAgentTasksState));
1239
- }
1240
- function listAgentTasksStateFromJSON(jsonString) {
1241
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksState$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksState' from JSON`);
1242
- }
443
+ exports.ListAgentTasksAgentsResponseKind$outboundSchema = exports.ListAgentTasksAgentsResponseKind$inboundSchema;
1243
444
  /** @internal */
1244
- exports.ListAgentTasksMetrics$inboundSchema = z.object({
1245
- input_cost: z.number().default(0),
1246
- output_cost: z.number().default(0),
1247
- total_cost: z.number().default(0),
1248
- prompt_tokens: z.number().int().default(0),
1249
- completion_tokens: z.number().int().default(0),
1250
- total_tokens: z.number().int().default(0),
1251
- }).transform((v) => {
1252
- return (0, primitives_js_1.remap)(v, {
1253
- "input_cost": "inputCost",
1254
- "output_cost": "outputCost",
1255
- "total_cost": "totalCost",
1256
- "prompt_tokens": "promptTokens",
1257
- "completion_tokens": "completionTokens",
1258
- "total_tokens": "totalTokens",
1259
- });
445
+ exports.ListAgentTasksArtifacts$inboundSchema = z.object({
446
+ kind: exports.ListAgentTasksAgentsResponseKind$inboundSchema,
447
+ artifactId: z.string(),
448
+ name: z.string(),
449
+ type: z.string(),
450
+ url: z.string().optional(),
451
+ data: z.any().optional(),
1260
452
  });
1261
453
  /** @internal */
1262
- exports.ListAgentTasksMetrics$outboundSchema = z.object({
1263
- inputCost: z.number().default(0),
1264
- outputCost: z.number().default(0),
1265
- totalCost: z.number().default(0),
1266
- promptTokens: z.number().int().default(0),
1267
- completionTokens: z.number().int().default(0),
1268
- totalTokens: z.number().int().default(0),
1269
- }).transform((v) => {
1270
- return (0, primitives_js_1.remap)(v, {
1271
- inputCost: "input_cost",
1272
- outputCost: "output_cost",
1273
- totalCost: "total_cost",
1274
- promptTokens: "prompt_tokens",
1275
- completionTokens: "completion_tokens",
1276
- totalTokens: "total_tokens",
1277
- });
454
+ exports.ListAgentTasksArtifacts$outboundSchema = z.object({
455
+ kind: exports.ListAgentTasksAgentsResponseKind$outboundSchema,
456
+ artifactId: z.string(),
457
+ name: z.string(),
458
+ type: z.string(),
459
+ url: z.string().optional(),
460
+ data: z.any().optional(),
1278
461
  });
1279
- function listAgentTasksMetricsToJSON(listAgentTasksMetrics) {
1280
- return JSON.stringify(exports.ListAgentTasksMetrics$outboundSchema.parse(listAgentTasksMetrics));
462
+ function listAgentTasksArtifactsToJSON(listAgentTasksArtifacts) {
463
+ return JSON.stringify(exports.ListAgentTasksArtifacts$outboundSchema.parse(listAgentTasksArtifacts));
1281
464
  }
1282
- function listAgentTasksMetricsFromJSON(jsonString) {
1283
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksMetrics$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksMetrics' from JSON`);
465
+ function listAgentTasksArtifactsFromJSON(jsonString) {
466
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.ListAgentTasksArtifacts$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ListAgentTasksArtifacts' from JSON`);
1284
467
  }
1285
468
  /** @internal */
1286
469
  exports.Tasks$inboundSchema = z
1287
470
  .object({
1288
- _id: z.string(),
1289
- agent_manifest_snapshot: z.lazy(() => exports.AgentManifestSnapshot$inboundSchema),
1290
- created_by_id: z.string().optional(),
1291
- updated_by_id: z.string().optional(),
1292
- created: z.string().optional(),
1293
- updated: z.string().optional(),
1294
- name: z.string().optional(),
1295
- workspace_id: z.string(),
1296
- memory: z.lazy(() => exports.ListAgentTasksMemory$inboundSchema).optional(),
471
+ id: z.string(),
472
+ contextId: z.string(),
473
+ kind: exports.ListAgentTasksKind$inboundSchema,
474
+ status: z.lazy(() => exports.ListAgentTasksStatus$inboundSchema),
475
+ history: z.array(z.lazy(() => exports.ListAgentTasksHistory$inboundSchema)),
476
+ artifacts: z.array(z.lazy(() => exports.ListAgentTasksArtifacts$inboundSchema))
477
+ .optional(),
1297
478
  metadata: z.record(z.any()).optional(),
1298
- state: z.lazy(() => exports.ListAgentTasksState$inboundSchema),
1299
- metrics: z.lazy(() => exports.ListAgentTasksMetrics$inboundSchema),
1300
- }).transform((v) => {
1301
- return (0, primitives_js_1.remap)(v, {
1302
- "_id": "id",
1303
- "agent_manifest_snapshot": "agentManifestSnapshot",
1304
- "created_by_id": "createdById",
1305
- "updated_by_id": "updatedById",
1306
- "workspace_id": "workspaceId",
1307
- });
1308
479
  });
1309
480
  /** @internal */
1310
481
  exports.Tasks$outboundSchema = z.object({
1311
482
  id: z.string(),
1312
- agentManifestSnapshot: z.lazy(() => exports.AgentManifestSnapshot$outboundSchema),
1313
- createdById: z.string().optional(),
1314
- updatedById: z.string().optional(),
1315
- created: z.string().optional(),
1316
- updated: z.string().optional(),
1317
- name: z.string().optional(),
1318
- workspaceId: z.string(),
1319
- memory: z.lazy(() => exports.ListAgentTasksMemory$outboundSchema).optional(),
483
+ contextId: z.string(),
484
+ kind: exports.ListAgentTasksKind$outboundSchema,
485
+ status: z.lazy(() => exports.ListAgentTasksStatus$outboundSchema),
486
+ history: z.array(z.lazy(() => exports.ListAgentTasksHistory$outboundSchema)),
487
+ artifacts: z.array(z.lazy(() => exports.ListAgentTasksArtifacts$outboundSchema))
488
+ .optional(),
1320
489
  metadata: z.record(z.any()).optional(),
1321
- state: z.lazy(() => exports.ListAgentTasksState$outboundSchema),
1322
- metrics: z.lazy(() => exports.ListAgentTasksMetrics$outboundSchema),
1323
- }).transform((v) => {
1324
- return (0, primitives_js_1.remap)(v, {
1325
- id: "_id",
1326
- agentManifestSnapshot: "agent_manifest_snapshot",
1327
- createdById: "created_by_id",
1328
- updatedById: "updated_by_id",
1329
- workspaceId: "workspace_id",
1330
- });
1331
490
  });
1332
491
  function tasksToJSON(tasks) {
1333
492
  return JSON.stringify(exports.Tasks$outboundSchema.parse(tasks));