@fetch-hive/sdk 0.2.8 → 0.2.9

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 (230) hide show
  1. package/README.md +1 -1
  2. package/dist/client.d.ts +5 -0
  3. package/dist/client.d.ts.map +1 -1
  4. package/dist/client.js +9 -0
  5. package/dist/client.js.map +1 -1
  6. package/dist/generated/src/apis/AgentChatMessagesApi.d.ts +1 -1
  7. package/dist/generated/src/apis/AgentChatMessagesApi.js +1 -1
  8. package/dist/generated/src/apis/AgentChatsApi.d.ts +1 -1
  9. package/dist/generated/src/apis/AgentChatsApi.js +1 -1
  10. package/dist/generated/src/apis/AgentsApi.d.ts +117 -1
  11. package/dist/generated/src/apis/AgentsApi.d.ts.map +1 -1
  12. package/dist/generated/src/apis/AgentsApi.js +129 -1
  13. package/dist/generated/src/apis/AgentsApi.js.map +1 -1
  14. package/dist/generated/src/apis/AssetsApi.d.ts +1 -1
  15. package/dist/generated/src/apis/AssetsApi.js +1 -1
  16. package/dist/generated/src/apis/HiveAgentsApi.d.ts +1 -1
  17. package/dist/generated/src/apis/HiveAgentsApi.js +1 -1
  18. package/dist/generated/src/apis/KnowledgeBaseItemsApi.d.ts +1 -1
  19. package/dist/generated/src/apis/KnowledgeBaseItemsApi.js +1 -1
  20. package/dist/generated/src/apis/KnowledgeBasesApi.d.ts +1 -1
  21. package/dist/generated/src/apis/KnowledgeBasesApi.js +1 -1
  22. package/dist/generated/src/apis/ModelsApi.d.ts +1 -1
  23. package/dist/generated/src/apis/ModelsApi.js +1 -1
  24. package/dist/generated/src/apis/PromptsApi.d.ts +1 -1
  25. package/dist/generated/src/apis/PromptsApi.js +1 -1
  26. package/dist/generated/src/apis/RequestsApi.d.ts +1 -1
  27. package/dist/generated/src/apis/RequestsApi.js +1 -1
  28. package/dist/generated/src/apis/SearchServicesApi.d.ts +1 -1
  29. package/dist/generated/src/apis/SearchServicesApi.js +1 -1
  30. package/dist/generated/src/apis/WorkflowsApi.d.ts +1 -1
  31. package/dist/generated/src/apis/WorkflowsApi.js +1 -1
  32. package/dist/generated/src/models/AgentAttachment.d.ts +1 -1
  33. package/dist/generated/src/models/AgentAttachment.js +1 -1
  34. package/dist/generated/src/models/AgentAttachmentOneOf.d.ts +1 -1
  35. package/dist/generated/src/models/AgentAttachmentOneOf.js +1 -1
  36. package/dist/generated/src/models/AgentDelegation.d.ts +124 -0
  37. package/dist/generated/src/models/AgentDelegation.d.ts.map +1 -0
  38. package/dist/generated/src/models/AgentDelegation.js +103 -0
  39. package/dist/generated/src/models/AgentDelegation.js.map +1 -0
  40. package/dist/generated/src/models/AgentInvokeAsyncConfig.d.ts +49 -0
  41. package/dist/generated/src/models/AgentInvokeAsyncConfig.d.ts.map +1 -0
  42. package/dist/generated/src/models/AgentInvokeAsyncConfig.js +51 -0
  43. package/dist/generated/src/models/AgentInvokeAsyncConfig.js.map +1 -0
  44. package/dist/generated/src/models/AgentMessage.d.ts +1 -1
  45. package/dist/generated/src/models/AgentMessage.js +1 -1
  46. package/dist/generated/src/models/AssetObject.d.ts +1 -1
  47. package/dist/generated/src/models/AssetObject.js +1 -1
  48. package/dist/generated/src/models/AssetObjectTranscription.d.ts +1 -1
  49. package/dist/generated/src/models/AssetObjectTranscription.js +1 -1
  50. package/dist/generated/src/models/AsyncConfig.d.ts +1 -1
  51. package/dist/generated/src/models/AsyncConfig.js +1 -1
  52. package/dist/generated/src/models/DeletePublicWorkspacesAgents200Response.d.ts +1 -1
  53. package/dist/generated/src/models/DeletePublicWorkspacesAgents200Response.js +1 -1
  54. package/dist/generated/src/models/DeletePublicWorkspacesAgentsChats200Response.d.ts +1 -1
  55. package/dist/generated/src/models/DeletePublicWorkspacesAgentsChats200Response.js +1 -1
  56. package/dist/generated/src/models/DeletePublicWorkspacesAgentsChats404Response.d.ts +1 -1
  57. package/dist/generated/src/models/DeletePublicWorkspacesAgentsChats404Response.js +1 -1
  58. package/dist/generated/src/models/DeletePublicWorkspacesKnowledgeBases200Response.d.ts +1 -1
  59. package/dist/generated/src/models/DeletePublicWorkspacesKnowledgeBases200Response.js +1 -1
  60. package/dist/generated/src/models/DeletePublicWorkspacesKnowledgeBasesItems200Response.d.ts +1 -1
  61. package/dist/generated/src/models/DeletePublicWorkspacesKnowledgeBasesItems200Response.js +1 -1
  62. package/dist/generated/src/models/ErrorResponse.d.ts +1 -1
  63. package/dist/generated/src/models/ErrorResponse.js +1 -1
  64. package/dist/generated/src/models/GeneratedArtifact.d.ts +1 -1
  65. package/dist/generated/src/models/GeneratedArtifact.js +1 -1
  66. package/dist/generated/src/models/GetPublicModels200ResponseInner.d.ts +1 -1
  67. package/dist/generated/src/models/GetPublicModels200ResponseInner.js +1 -1
  68. package/dist/generated/src/models/GetPublicRequests200Response.d.ts +1 -1
  69. package/dist/generated/src/models/GetPublicRequests200Response.js +1 -1
  70. package/dist/generated/src/models/GetPublicRequests404Response.d.ts +1 -1
  71. package/dist/generated/src/models/GetPublicRequests404Response.js +1 -1
  72. package/dist/generated/src/models/GetPublicSearchServicesCountries200Response.d.ts +1 -1
  73. package/dist/generated/src/models/GetPublicSearchServicesCountries200Response.js +1 -1
  74. package/dist/generated/src/models/GetPublicSearchServicesCountries200ResponseServicesInner.d.ts +1 -1
  75. package/dist/generated/src/models/GetPublicSearchServicesCountries200ResponseServicesInner.js +1 -1
  76. package/dist/generated/src/models/GetPublicSearchServicesCountries200ResponseServicesInnerCountriesInner.d.ts +1 -1
  77. package/dist/generated/src/models/GetPublicSearchServicesCountries200ResponseServicesInnerCountriesInner.js +1 -1
  78. package/dist/generated/src/models/GetPublicSearchServicesCountries2404Response.d.ts +1 -1
  79. package/dist/generated/src/models/GetPublicSearchServicesCountries2404Response.js +1 -1
  80. package/dist/generated/src/models/GetPublicWorkspacesAgents200Response.d.ts +1 -1
  81. package/dist/generated/src/models/GetPublicWorkspacesAgents200Response.js +1 -1
  82. package/dist/generated/src/models/GetPublicWorkspacesAgents2200Response.d.ts +1 -1
  83. package/dist/generated/src/models/GetPublicWorkspacesAgents2200Response.js +1 -1
  84. package/dist/generated/src/models/GetPublicWorkspacesAgentsChats200Response.d.ts +1 -1
  85. package/dist/generated/src/models/GetPublicWorkspacesAgentsChats200Response.js +1 -1
  86. package/dist/generated/src/models/GetPublicWorkspacesAgentsChatsMessages200Response.d.ts +1 -1
  87. package/dist/generated/src/models/GetPublicWorkspacesAgentsChatsMessages200Response.js +1 -1
  88. package/dist/generated/src/models/GetPublicWorkspacesAgentsChatsMessages200ResponseMessagesInner.d.ts +1 -1
  89. package/dist/generated/src/models/GetPublicWorkspacesAgentsChatsMessages200ResponseMessagesInner.js +1 -1
  90. package/dist/generated/src/models/GetPublicWorkspacesAgentsChatsMessages422Response.d.ts +1 -1
  91. package/dist/generated/src/models/GetPublicWorkspacesAgentsChatsMessages422Response.js +1 -1
  92. package/dist/generated/src/models/GetPublicWorkspacesAssets200Response.d.ts +1 -1
  93. package/dist/generated/src/models/GetPublicWorkspacesAssets200Response.js +1 -1
  94. package/dist/generated/src/models/GetPublicWorkspacesKnowledgeBases200Response.d.ts +1 -1
  95. package/dist/generated/src/models/GetPublicWorkspacesKnowledgeBases200Response.js +1 -1
  96. package/dist/generated/src/models/GetPublicWorkspacesKnowledgeBases2200Response.d.ts +1 -1
  97. package/dist/generated/src/models/GetPublicWorkspacesKnowledgeBases2200Response.js +1 -1
  98. package/dist/generated/src/models/GetPublicWorkspacesKnowledgeBases2422Response.d.ts +1 -1
  99. package/dist/generated/src/models/GetPublicWorkspacesKnowledgeBases2422Response.js +1 -1
  100. package/dist/generated/src/models/GetPublicWorkspacesKnowledgeBasesItems200Response.d.ts +1 -1
  101. package/dist/generated/src/models/GetPublicWorkspacesKnowledgeBasesItems200Response.js +1 -1
  102. package/dist/generated/src/models/GetPublicWorkspacesKnowledgeBasesItems200ResponseKnowledgeBaseItemsInner.d.ts +1 -1
  103. package/dist/generated/src/models/GetPublicWorkspacesKnowledgeBasesItems200ResponseKnowledgeBaseItemsInner.js +1 -1
  104. package/dist/generated/src/models/GetPublicWorkspacesKnowledgeBasesItems2200Response.d.ts +1 -1
  105. package/dist/generated/src/models/GetPublicWorkspacesKnowledgeBasesItems2200Response.js +1 -1
  106. package/dist/generated/src/models/GetPublicWorkspacesKnowledgeBasesItems2422Response.d.ts +1 -1
  107. package/dist/generated/src/models/GetPublicWorkspacesKnowledgeBasesItems2422Response.js +1 -1
  108. package/dist/generated/src/models/HiveAgentAsyncConfig.d.ts +1 -1
  109. package/dist/generated/src/models/HiveAgentAsyncConfig.js +1 -1
  110. package/dist/generated/src/models/HiveAgentSources.d.ts +1 -1
  111. package/dist/generated/src/models/HiveAgentSources.js +1 -1
  112. package/dist/generated/src/models/InvokeAgentRequest.d.ts +8 -1
  113. package/dist/generated/src/models/InvokeAgentRequest.d.ts.map +1 -1
  114. package/dist/generated/src/models/InvokeAgentRequest.js +4 -1
  115. package/dist/generated/src/models/InvokeAgentRequest.js.map +1 -1
  116. package/dist/generated/src/models/InvokeAgentResponse.d.ts +10 -1
  117. package/dist/generated/src/models/InvokeAgentResponse.d.ts.map +1 -1
  118. package/dist/generated/src/models/InvokeAgentResponse.js +4 -1
  119. package/dist/generated/src/models/InvokeAgentResponse.js.map +1 -1
  120. package/dist/generated/src/models/InvokeHiveAgentRequest.d.ts +21 -1
  121. package/dist/generated/src/models/InvokeHiveAgentRequest.d.ts.map +1 -1
  122. package/dist/generated/src/models/InvokeHiveAgentRequest.js +13 -1
  123. package/dist/generated/src/models/InvokeHiveAgentRequest.js.map +1 -1
  124. package/dist/generated/src/models/InvokeHiveAgentResponse.d.ts +1 -1
  125. package/dist/generated/src/models/InvokeHiveAgentResponse.js +1 -1
  126. package/dist/generated/src/models/InvokePromptRequest.d.ts +1 -1
  127. package/dist/generated/src/models/InvokePromptRequest.js +1 -1
  128. package/dist/generated/src/models/InvokePromptResponse.d.ts +1 -1
  129. package/dist/generated/src/models/InvokePromptResponse.js +1 -1
  130. package/dist/generated/src/models/InvokeWorkflowAsyncResponse.d.ts +1 -1
  131. package/dist/generated/src/models/InvokeWorkflowAsyncResponse.js +1 -1
  132. package/dist/generated/src/models/InvokeWorkflowRequest.d.ts +1 -1
  133. package/dist/generated/src/models/InvokeWorkflowRequest.js +1 -1
  134. package/dist/generated/src/models/InvokeWorkflowResponse.d.ts +1 -1
  135. package/dist/generated/src/models/InvokeWorkflowResponse.js +1 -1
  136. package/dist/generated/src/models/KnowledgeBaseObject.d.ts +1 -1
  137. package/dist/generated/src/models/KnowledgeBaseObject.js +1 -1
  138. package/dist/generated/src/models/ListThreadAgentDelegations200Response.d.ts +34 -0
  139. package/dist/generated/src/models/ListThreadAgentDelegations200Response.d.ts.map +1 -0
  140. package/dist/generated/src/models/ListThreadAgentDelegations200Response.js +52 -0
  141. package/dist/generated/src/models/ListThreadAgentDelegations200Response.js.map +1 -0
  142. package/dist/generated/src/models/MetadataValue.d.ts +1 -1
  143. package/dist/generated/src/models/MetadataValue.js +1 -1
  144. package/dist/generated/src/models/PatchPublicWorkspacesAgents200Response.d.ts +1 -1
  145. package/dist/generated/src/models/PatchPublicWorkspacesAgents200Response.js +1 -1
  146. package/dist/generated/src/models/PatchPublicWorkspacesAgentsChats200Response.d.ts +1 -1
  147. package/dist/generated/src/models/PatchPublicWorkspacesAgentsChats200Response.js +1 -1
  148. package/dist/generated/src/models/PatchPublicWorkspacesAgentsChatsClearMessages200Response.d.ts +1 -1
  149. package/dist/generated/src/models/PatchPublicWorkspacesAgentsChatsClearMessages200Response.js +1 -1
  150. package/dist/generated/src/models/PatchPublicWorkspacesAgentsChatsRequest.d.ts +1 -1
  151. package/dist/generated/src/models/PatchPublicWorkspacesAgentsChatsRequest.js +1 -1
  152. package/dist/generated/src/models/PatchPublicWorkspacesAgentsChatsRequestChat.d.ts +1 -1
  153. package/dist/generated/src/models/PatchPublicWorkspacesAgentsChatsRequestChat.js +1 -1
  154. package/dist/generated/src/models/PatchPublicWorkspacesAgentsRequest.d.ts +1 -1
  155. package/dist/generated/src/models/PatchPublicWorkspacesAgentsRequest.js +1 -1
  156. package/dist/generated/src/models/PatchPublicWorkspacesAgentsRequestAgent.d.ts +1 -1
  157. package/dist/generated/src/models/PatchPublicWorkspacesAgentsRequestAgent.js +1 -1
  158. package/dist/generated/src/models/PatchPublicWorkspacesKnowledgeBases200Response.d.ts +1 -1
  159. package/dist/generated/src/models/PatchPublicWorkspacesKnowledgeBases200Response.js +1 -1
  160. package/dist/generated/src/models/PatchPublicWorkspacesKnowledgeBasesItems200Response.d.ts +1 -1
  161. package/dist/generated/src/models/PatchPublicWorkspacesKnowledgeBasesItems200Response.js +1 -1
  162. package/dist/generated/src/models/PatchPublicWorkspacesKnowledgeBasesItemsRequest.d.ts +1 -1
  163. package/dist/generated/src/models/PatchPublicWorkspacesKnowledgeBasesItemsRequest.js +1 -1
  164. package/dist/generated/src/models/PatchPublicWorkspacesKnowledgeBasesItemsRequestKnowledgeBaseItem.d.ts +1 -1
  165. package/dist/generated/src/models/PatchPublicWorkspacesKnowledgeBasesItemsRequestKnowledgeBaseItem.js +1 -1
  166. package/dist/generated/src/models/PatchPublicWorkspacesKnowledgeBasesRequest.d.ts +1 -1
  167. package/dist/generated/src/models/PatchPublicWorkspacesKnowledgeBasesRequest.js +1 -1
  168. package/dist/generated/src/models/PatchPublicWorkspacesKnowledgeBasesRequestKnowledgeBase.d.ts +1 -1
  169. package/dist/generated/src/models/PatchPublicWorkspacesKnowledgeBasesRequestKnowledgeBase.js +1 -1
  170. package/dist/generated/src/models/PendingDelegation.d.ts +60 -0
  171. package/dist/generated/src/models/PendingDelegation.d.ts.map +1 -0
  172. package/dist/generated/src/models/PendingDelegation.js +66 -0
  173. package/dist/generated/src/models/PendingDelegation.js.map +1 -0
  174. package/dist/generated/src/models/PostPublicWorkspacesAgents200Response.d.ts +1 -1
  175. package/dist/generated/src/models/PostPublicWorkspacesAgents200Response.js +1 -1
  176. package/dist/generated/src/models/PostPublicWorkspacesAgents422Response.d.ts +1 -1
  177. package/dist/generated/src/models/PostPublicWorkspacesAgents422Response.js +1 -1
  178. package/dist/generated/src/models/PostPublicWorkspacesAgentsChats200Response.d.ts +1 -1
  179. package/dist/generated/src/models/PostPublicWorkspacesAgentsChats200Response.js +1 -1
  180. package/dist/generated/src/models/PostPublicWorkspacesAgentsChats200ResponseChat.d.ts +1 -1
  181. package/dist/generated/src/models/PostPublicWorkspacesAgentsChats200ResponseChat.js +1 -1
  182. package/dist/generated/src/models/PostPublicWorkspacesAgentsChats422Response.d.ts +1 -1
  183. package/dist/generated/src/models/PostPublicWorkspacesAgentsChats422Response.js +1 -1
  184. package/dist/generated/src/models/PostPublicWorkspacesAgentsChatsRequest.d.ts +1 -1
  185. package/dist/generated/src/models/PostPublicWorkspacesAgentsChatsRequest.js +1 -1
  186. package/dist/generated/src/models/PostPublicWorkspacesAgentsChatsRequestChat.d.ts +1 -1
  187. package/dist/generated/src/models/PostPublicWorkspacesAgentsChatsRequestChat.js +1 -1
  188. package/dist/generated/src/models/PostPublicWorkspacesAgentsRequest.d.ts +1 -1
  189. package/dist/generated/src/models/PostPublicWorkspacesAgentsRequest.js +1 -1
  190. package/dist/generated/src/models/PostPublicWorkspacesAgentsRequestAgent.d.ts +1 -1
  191. package/dist/generated/src/models/PostPublicWorkspacesAgentsRequestAgent.js +1 -1
  192. package/dist/generated/src/models/PostPublicWorkspacesAssets200Response.d.ts +1 -1
  193. package/dist/generated/src/models/PostPublicWorkspacesAssets200Response.js +1 -1
  194. package/dist/generated/src/models/PostPublicWorkspacesAssets422Response.d.ts +1 -1
  195. package/dist/generated/src/models/PostPublicWorkspacesAssets422Response.js +1 -1
  196. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBases200Response.d.ts +1 -1
  197. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBases200Response.js +1 -1
  198. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesItems200Response.d.ts +1 -1
  199. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesItems200Response.js +1 -1
  200. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesItems422Response.d.ts +1 -1
  201. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesItems422Response.js +1 -1
  202. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesItemsRegenerate200Response.d.ts +1 -1
  203. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesItemsRegenerate200Response.js +1 -1
  204. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesItemsRequest.d.ts +1 -1
  205. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesItemsRequest.js +1 -1
  206. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesItemsRequestKnowledgeBaseItem.d.ts +1 -1
  207. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesItemsRequestKnowledgeBaseItem.js +1 -1
  208. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesRequest.d.ts +1 -1
  209. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesRequest.js +1 -1
  210. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesRequestKnowledgeBase.d.ts +1 -1
  211. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesRequestKnowledgeBase.js +1 -1
  212. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesSearch200Response.d.ts +1 -1
  213. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesSearch200Response.js +1 -1
  214. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesSearch422Response.d.ts +1 -1
  215. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesSearch422Response.js +1 -1
  216. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesSearchRequest.d.ts +1 -1
  217. package/dist/generated/src/models/PostPublicWorkspacesKnowledgeBasesSearchRequest.js +1 -1
  218. package/dist/generated/src/models/SseChunk.d.ts +1 -1
  219. package/dist/generated/src/models/SseChunk.js +1 -1
  220. package/dist/generated/src/models/TokenUsage.d.ts +1 -1
  221. package/dist/generated/src/models/TokenUsage.js +1 -1
  222. package/dist/generated/src/models/ToolInvocation.d.ts +1 -1
  223. package/dist/generated/src/models/ToolInvocation.js +1 -1
  224. package/dist/generated/src/models/index.d.ts +4 -0
  225. package/dist/generated/src/models/index.d.ts.map +1 -1
  226. package/dist/generated/src/models/index.js +4 -0
  227. package/dist/generated/src/models/index.js.map +1 -1
  228. package/dist/generated/src/runtime.d.ts +1 -1
  229. package/dist/generated/src/runtime.js +1 -1
  230. package/package.json +1 -1
@@ -2,7 +2,7 @@
2
2
  * Fetch Hive Public API
3
3
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
4
  *
5
- * The version of the OpenAPI document: 0.2.8
5
+ * The version of the OpenAPI document: 0.2.9
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fetch Hive Public API
6
6
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
7
  *
8
- * The version of the OpenAPI document: 0.2.8
8
+ * The version of the OpenAPI document: 0.2.9
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Fetch Hive Public API
3
3
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
4
  *
5
- * The version of the OpenAPI document: 0.2.8
5
+ * The version of the OpenAPI document: 0.2.9
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fetch Hive Public API
6
6
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
7
  *
8
- * The version of the OpenAPI document: 0.2.8
8
+ * The version of the OpenAPI document: 0.2.9
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Fetch Hive Public API
3
3
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
4
  *
5
- * The version of the OpenAPI document: 0.2.8
5
+ * The version of the OpenAPI document: 0.2.9
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fetch Hive Public API
6
6
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
7
  *
8
- * The version of the OpenAPI document: 0.2.8
8
+ * The version of the OpenAPI document: 0.2.9
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Fetch Hive Public API
3
3
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
4
  *
5
- * The version of the OpenAPI document: 0.2.8
5
+ * The version of the OpenAPI document: 0.2.9
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fetch Hive Public API
6
6
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
7
  *
8
- * The version of the OpenAPI document: 0.2.8
8
+ * The version of the OpenAPI document: 0.2.9
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Fetch Hive Public API
3
3
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
4
  *
5
- * The version of the OpenAPI document: 0.2.8
5
+ * The version of the OpenAPI document: 0.2.9
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fetch Hive Public API
6
6
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
7
  *
8
- * The version of the OpenAPI document: 0.2.8
8
+ * The version of the OpenAPI document: 0.2.9
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Fetch Hive Public API
3
3
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
4
  *
5
- * The version of the OpenAPI document: 0.2.8
5
+ * The version of the OpenAPI document: 0.2.9
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fetch Hive Public API
6
6
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
7
  *
8
- * The version of the OpenAPI document: 0.2.8
8
+ * The version of the OpenAPI document: 0.2.9
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Fetch Hive Public API
3
3
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
4
  *
5
- * The version of the OpenAPI document: 0.2.8
5
+ * The version of the OpenAPI document: 0.2.9
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fetch Hive Public API
6
6
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
7
  *
8
- * The version of the OpenAPI document: 0.2.8
8
+ * The version of the OpenAPI document: 0.2.9
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Fetch Hive Public API
3
3
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
4
  *
5
- * The version of the OpenAPI document: 0.2.8
5
+ * The version of the OpenAPI document: 0.2.9
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fetch Hive Public API
6
6
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
7
  *
8
- * The version of the OpenAPI document: 0.2.8
8
+ * The version of the OpenAPI document: 0.2.9
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Fetch Hive Public API
3
3
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
4
  *
5
- * The version of the OpenAPI document: 0.2.8
5
+ * The version of the OpenAPI document: 0.2.9
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fetch Hive Public API
6
6
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
7
  *
8
- * The version of the OpenAPI document: 0.2.8
8
+ * The version of the OpenAPI document: 0.2.9
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Fetch Hive Public API
3
3
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
4
  *
5
- * The version of the OpenAPI document: 0.2.8
5
+ * The version of the OpenAPI document: 0.2.9
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fetch Hive Public API
6
6
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
7
  *
8
- * The version of the OpenAPI document: 0.2.8
8
+ * The version of the OpenAPI document: 0.2.9
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -0,0 +1,124 @@
1
+ /**
2
+ * Fetch Hive Public API
3
+ * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
+ *
5
+ * The version of the OpenAPI document: 0.2.9
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface AgentDelegation
16
+ */
17
+ export interface AgentDelegation {
18
+ /**
19
+ *
20
+ * @type {string}
21
+ * @memberof AgentDelegation
22
+ */
23
+ id: string;
24
+ /**
25
+ *
26
+ * @type {AgentDelegationStatusEnum}
27
+ * @memberof AgentDelegation
28
+ */
29
+ status: AgentDelegationStatusEnum;
30
+ /**
31
+ *
32
+ * @type {AgentDelegationKindEnum}
33
+ * @memberof AgentDelegation
34
+ */
35
+ kind: AgentDelegationKindEnum;
36
+ /**
37
+ *
38
+ * @type {{ [key: string]: any; }}
39
+ * @memberof AgentDelegation
40
+ */
41
+ target: {
42
+ [key: string]: any;
43
+ };
44
+ /**
45
+ * (value may be null)
46
+ * @type {{ [key: string]: any; }}
47
+ * @memberof AgentDelegation
48
+ */
49
+ result?: {
50
+ [key: string]: any;
51
+ };
52
+ /**
53
+ * (value may be null)
54
+ * @type {Date}
55
+ * @memberof AgentDelegation
56
+ */
57
+ expectedBy?: Date;
58
+ /**
59
+ * (value may be null)
60
+ * @type {Date}
61
+ * @memberof AgentDelegation
62
+ */
63
+ deliveredAt?: Date;
64
+ /**
65
+ * (value may be null)
66
+ * @type {string}
67
+ * @memberof AgentDelegation
68
+ */
69
+ deliveryError?: string;
70
+ /**
71
+ *
72
+ * @type {string}
73
+ * @memberof AgentDelegation
74
+ */
75
+ parentRequestId: string;
76
+ /**
77
+ *
78
+ * @type {string}
79
+ * @memberof AgentDelegation
80
+ */
81
+ toolCallId: string;
82
+ /**
83
+ * (value may be null)
84
+ * @type {string}
85
+ * @memberof AgentDelegation
86
+ */
87
+ workflowRunId?: string;
88
+ /**
89
+ *
90
+ * @type {Date}
91
+ * @memberof AgentDelegation
92
+ */
93
+ createdAt?: Date;
94
+ }
95
+ /**
96
+ * @export
97
+ */
98
+ export declare const AgentDelegationStatusEnum: {
99
+ readonly PENDING: "pending";
100
+ readonly RUNNING: "running";
101
+ readonly COMPLETED: "completed";
102
+ readonly FAILED: "failed";
103
+ readonly CANCELLED: "cancelled";
104
+ readonly EXPIRED: "expired";
105
+ };
106
+ export type AgentDelegationStatusEnum = typeof AgentDelegationStatusEnum[keyof typeof AgentDelegationStatusEnum];
107
+ /**
108
+ * @export
109
+ */
110
+ export declare const AgentDelegationKindEnum: {
111
+ readonly WORKFLOW: "workflow";
112
+ readonly SUB_AGENT: "sub_agent";
113
+ readonly HIVE_AGENT_RUN: "hive_agent_run";
114
+ };
115
+ export type AgentDelegationKindEnum = typeof AgentDelegationKindEnum[keyof typeof AgentDelegationKindEnum];
116
+ /**
117
+ * Check if a given object implements the AgentDelegation interface.
118
+ */
119
+ export declare function instanceOfAgentDelegation(value: object): value is AgentDelegation;
120
+ export declare function AgentDelegationFromJSON(json: any): AgentDelegation;
121
+ export declare function AgentDelegationFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentDelegation;
122
+ export declare function AgentDelegationToJSON(json: any): AgentDelegation;
123
+ export declare function AgentDelegationToJSONTyped(value?: AgentDelegation | null, ignoreDiscriminator?: boolean): any;
124
+ //# sourceMappingURL=AgentDelegation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentDelegation.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/models/AgentDelegation.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;GAIG;AACH,MAAM,WAAW,eAAe;IAC5B;;;;OAIG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;;;OAIG;IACH,MAAM,EAAE,yBAAyB,CAAC;IAClC;;;;OAIG;IACH,IAAI,EAAE,uBAAuB,CAAC;IAC9B;;;;OAIG;IACH,MAAM,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KAAE,CAAC;IAChC;;;;OAIG;IACH,MAAM,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAC;KAAE,CAAC;IACjC;;;;OAIG;IACH,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB;;;;OAIG;IACH,WAAW,CAAC,EAAE,IAAI,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,eAAe,EAAE,MAAM,CAAC;IACxB;;;;OAIG;IACH,UAAU,EAAE,MAAM,CAAC;IACnB;;;;OAIG;IACH,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB;;;;OAIG;IACH,SAAS,CAAC,EAAE,IAAI,CAAC;CACpB;AAGD;;GAEG;AACH,eAAO,MAAM,yBAAyB;;;;;;;CAO5B,CAAC;AACX,MAAM,MAAM,yBAAyB,GAAG,OAAO,yBAAyB,CAAC,MAAM,OAAO,yBAAyB,CAAC,CAAC;AAEjH;;GAEG;AACH,eAAO,MAAM,uBAAuB;;;;CAI1B,CAAC;AACX,MAAM,MAAM,uBAAuB,GAAG,OAAO,uBAAuB,CAAC,MAAM,OAAO,uBAAuB,CAAC,CAAC;AAG3G;;GAEG;AACH,wBAAgB,yBAAyB,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,eAAe,CAQjF;AAED,wBAAgB,uBAAuB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAElE;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,eAAe,CAmBrG;AAED,wBAAgB,qBAAqB,CAAC,IAAI,EAAE,GAAG,GAAG,eAAe,CAEhE;AAED,wBAAgB,0BAA0B,CAAC,KAAK,CAAC,EAAE,eAAe,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAoBpH"}
@@ -0,0 +1,103 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fetch Hive Public API
6
+ * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
+ *
8
+ * The version of the OpenAPI document: 0.2.9
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.AgentDelegationKindEnum = exports.AgentDelegationStatusEnum = void 0;
17
+ exports.instanceOfAgentDelegation = instanceOfAgentDelegation;
18
+ exports.AgentDelegationFromJSON = AgentDelegationFromJSON;
19
+ exports.AgentDelegationFromJSONTyped = AgentDelegationFromJSONTyped;
20
+ exports.AgentDelegationToJSON = AgentDelegationToJSON;
21
+ exports.AgentDelegationToJSONTyped = AgentDelegationToJSONTyped;
22
+ /**
23
+ * @export
24
+ */
25
+ exports.AgentDelegationStatusEnum = {
26
+ PENDING: 'pending',
27
+ RUNNING: 'running',
28
+ COMPLETED: 'completed',
29
+ FAILED: 'failed',
30
+ CANCELLED: 'cancelled',
31
+ EXPIRED: 'expired'
32
+ };
33
+ /**
34
+ * @export
35
+ */
36
+ exports.AgentDelegationKindEnum = {
37
+ WORKFLOW: 'workflow',
38
+ SUB_AGENT: 'sub_agent',
39
+ HIVE_AGENT_RUN: 'hive_agent_run'
40
+ };
41
+ /**
42
+ * Check if a given object implements the AgentDelegation interface.
43
+ */
44
+ function instanceOfAgentDelegation(value) {
45
+ if (!('id' in value) || value['id'] === undefined)
46
+ return false;
47
+ if (!('status' in value) || value['status'] === undefined)
48
+ return false;
49
+ if (!('kind' in value) || value['kind'] === undefined)
50
+ return false;
51
+ if (!('target' in value) || value['target'] === undefined)
52
+ return false;
53
+ if (!('parentRequestId' in value) || value['parentRequestId'] === undefined)
54
+ return false;
55
+ if (!('toolCallId' in value) || value['toolCallId'] === undefined)
56
+ return false;
57
+ return true;
58
+ }
59
+ function AgentDelegationFromJSON(json) {
60
+ return AgentDelegationFromJSONTyped(json, false);
61
+ }
62
+ function AgentDelegationFromJSONTyped(json, ignoreDiscriminator) {
63
+ if (json == null) {
64
+ return json;
65
+ }
66
+ return {
67
+ 'id': json['id'],
68
+ 'status': json['status'],
69
+ 'kind': json['kind'],
70
+ 'target': json['target'],
71
+ 'result': json['result'] == null ? undefined : json['result'],
72
+ 'expectedBy': json['expected_by'] == null ? undefined : (new Date(json['expected_by'])),
73
+ 'deliveredAt': json['delivered_at'] == null ? undefined : (new Date(json['delivered_at'])),
74
+ 'deliveryError': json['delivery_error'] == null ? undefined : json['delivery_error'],
75
+ 'parentRequestId': json['parent_request_id'],
76
+ 'toolCallId': json['tool_call_id'],
77
+ 'workflowRunId': json['workflow_run_id'] == null ? undefined : json['workflow_run_id'],
78
+ 'createdAt': json['created_at'] == null ? undefined : (new Date(json['created_at'])),
79
+ };
80
+ }
81
+ function AgentDelegationToJSON(json) {
82
+ return AgentDelegationToJSONTyped(json, false);
83
+ }
84
+ function AgentDelegationToJSONTyped(value, ignoreDiscriminator = false) {
85
+ if (value == null) {
86
+ return value;
87
+ }
88
+ return {
89
+ 'id': value['id'],
90
+ 'status': value['status'],
91
+ 'kind': value['kind'],
92
+ 'target': value['target'],
93
+ 'result': value['result'],
94
+ 'expected_by': value['expectedBy'] == null ? value['expectedBy'] : value['expectedBy'].toISOString(),
95
+ 'delivered_at': value['deliveredAt'] == null ? value['deliveredAt'] : value['deliveredAt'].toISOString(),
96
+ 'delivery_error': value['deliveryError'],
97
+ 'parent_request_id': value['parentRequestId'],
98
+ 'tool_call_id': value['toolCallId'],
99
+ 'workflow_run_id': value['workflowRunId'],
100
+ 'created_at': value['createdAt'] == null ? value['createdAt'] : value['createdAt'].toISOString(),
101
+ };
102
+ }
103
+ //# sourceMappingURL=AgentDelegation.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentDelegation.js","sourceRoot":"","sources":["../../../../src/generated/src/models/AgentDelegation.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;;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
+ /**
2
+ * Fetch Hive Public API
3
+ * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
+ *
5
+ * The version of the OpenAPI document: 0.2.9
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * Controls background workflow tools for this invoke. Defaults:
14
+ * `allow_background` is true when `thread_id` is present, or when
15
+ * `callback_url` is set; otherwise it is false so existing stateless
16
+ * integrators keep synchronous behaviour.
17
+ *
18
+ * @export
19
+ * @interface AgentInvokeAsyncConfig
20
+ */
21
+ export interface AgentInvokeAsyncConfig {
22
+ /**
23
+ * HTTPS URL that receives a signed `agent.delegation.completed`
24
+ * POST when a background workflow finishes. Signed with the parent
25
+ * agent's webhook secret.
26
+ *
27
+ * @type {string}
28
+ * @memberof AgentInvokeAsyncConfig
29
+ */
30
+ callbackUrl?: string;
31
+ /**
32
+ * When false, `run_workflow` stays synchronous. Long or
33
+ * human-in-the-loop workflows return a tool error instead of a
34
+ * pending delegation.
35
+ *
36
+ * @type {boolean}
37
+ * @memberof AgentInvokeAsyncConfig
38
+ */
39
+ allowBackground?: boolean;
40
+ }
41
+ /**
42
+ * Check if a given object implements the AgentInvokeAsyncConfig interface.
43
+ */
44
+ export declare function instanceOfAgentInvokeAsyncConfig(value: object): value is AgentInvokeAsyncConfig;
45
+ export declare function AgentInvokeAsyncConfigFromJSON(json: any): AgentInvokeAsyncConfig;
46
+ export declare function AgentInvokeAsyncConfigFromJSONTyped(json: any, ignoreDiscriminator: boolean): AgentInvokeAsyncConfig;
47
+ export declare function AgentInvokeAsyncConfigToJSON(json: any): AgentInvokeAsyncConfig;
48
+ export declare function AgentInvokeAsyncConfigToJSONTyped(value?: AgentInvokeAsyncConfig | null, ignoreDiscriminator?: boolean): any;
49
+ //# sourceMappingURL=AgentInvokeAsyncConfig.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentInvokeAsyncConfig.d.ts","sourceRoot":"","sources":["../../../../src/generated/src/models/AgentInvokeAsyncConfig.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH;;;;;;;;GAQG;AACH,MAAM,WAAW,sBAAsB;IACnC;;;;;;;OAOG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;;;;;OAOG;IACH,eAAe,CAAC,EAAE,OAAO,CAAC;CAC7B;AAED;;GAEG;AACH,wBAAgB,gCAAgC,CAAC,KAAK,EAAE,MAAM,GAAG,KAAK,IAAI,sBAAsB,CAE/F;AAED,wBAAgB,8BAA8B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAEhF;AAED,wBAAgB,mCAAmC,CAAC,IAAI,EAAE,GAAG,EAAE,mBAAmB,EAAE,OAAO,GAAG,sBAAsB,CASnH;AAED,wBAAgB,4BAA4B,CAAC,IAAI,EAAE,GAAG,GAAG,sBAAsB,CAE9E;AAED,wBAAgB,iCAAiC,CAAC,KAAK,CAAC,EAAE,sBAAsB,GAAG,IAAI,EAAE,mBAAmB,GAAE,OAAe,GAAG,GAAG,CAUlI"}
@@ -0,0 +1,51 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Fetch Hive Public API
6
+ * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
+ *
8
+ * The version of the OpenAPI document: 0.2.9
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfAgentInvokeAsyncConfig = instanceOfAgentInvokeAsyncConfig;
17
+ exports.AgentInvokeAsyncConfigFromJSON = AgentInvokeAsyncConfigFromJSON;
18
+ exports.AgentInvokeAsyncConfigFromJSONTyped = AgentInvokeAsyncConfigFromJSONTyped;
19
+ exports.AgentInvokeAsyncConfigToJSON = AgentInvokeAsyncConfigToJSON;
20
+ exports.AgentInvokeAsyncConfigToJSONTyped = AgentInvokeAsyncConfigToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the AgentInvokeAsyncConfig interface.
23
+ */
24
+ function instanceOfAgentInvokeAsyncConfig(value) {
25
+ return true;
26
+ }
27
+ function AgentInvokeAsyncConfigFromJSON(json) {
28
+ return AgentInvokeAsyncConfigFromJSONTyped(json, false);
29
+ }
30
+ function AgentInvokeAsyncConfigFromJSONTyped(json, ignoreDiscriminator) {
31
+ if (json == null) {
32
+ return json;
33
+ }
34
+ return {
35
+ 'callbackUrl': json['callback_url'] == null ? undefined : json['callback_url'],
36
+ 'allowBackground': json['allow_background'] == null ? undefined : json['allow_background'],
37
+ };
38
+ }
39
+ function AgentInvokeAsyncConfigToJSON(json) {
40
+ return AgentInvokeAsyncConfigToJSONTyped(json, false);
41
+ }
42
+ function AgentInvokeAsyncConfigToJSONTyped(value, ignoreDiscriminator = false) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'callback_url': value['callbackUrl'],
48
+ 'allow_background': value['allowBackground'],
49
+ };
50
+ }
51
+ //# sourceMappingURL=AgentInvokeAsyncConfig.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AgentInvokeAsyncConfig.js","sourceRoot":"","sources":["../../../../src/generated/src/models/AgentInvokeAsyncConfig.ts"],"names":[],"mappings":";AAAA,oBAAoB;AACpB,oBAAoB;AACpB;;;;;;;;;;GAUG;;AAoCH,4EAEC;AAED,wEAEC;AAED,kFASC;AAED,oEAEC;AAED,8EAUC;AApCD;;GAEG;AACH,SAAgB,gCAAgC,CAAC,KAAa;IAC1D,OAAO,IAAI,CAAC;AAChB,CAAC;AAED,SAAgB,8BAA8B,CAAC,IAAS;IACpD,OAAO,mCAAmC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC5D,CAAC;AAED,SAAgB,mCAAmC,CAAC,IAAS,EAAE,mBAA4B;IACvF,IAAI,IAAI,IAAI,IAAI,EAAE,CAAC;QACf,OAAO,IAAI,CAAC;IAChB,CAAC;IACD,OAAO;QAEH,aAAa,EAAE,IAAI,CAAC,cAAc,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,cAAc,CAAC;QAC9E,iBAAiB,EAAE,IAAI,CAAC,kBAAkB,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,kBAAkB,CAAC;KAC7F,CAAC;AACN,CAAC;AAED,SAAgB,4BAA4B,CAAC,IAAS;IAClD,OAAO,iCAAiC,CAAC,IAAI,EAAE,KAAK,CAAC,CAAC;AAC1D,CAAC;AAED,SAAgB,iCAAiC,CAAC,KAAqC,EAAE,sBAA+B,KAAK;IACzH,IAAI,KAAK,IAAI,IAAI,EAAE,CAAC;QAChB,OAAO,KAAK,CAAC;IACjB,CAAC;IAED,OAAO;QAEH,cAAc,EAAE,KAAK,CAAC,aAAa,CAAC;QACpC,kBAAkB,EAAE,KAAK,CAAC,iBAAiB,CAAC;KAC/C,CAAC;AACN,CAAC"}
@@ -2,7 +2,7 @@
2
2
  * Fetch Hive Public API
3
3
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
4
  *
5
- * The version of the OpenAPI document: 0.2.8
5
+ * The version of the OpenAPI document: 0.2.9
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fetch Hive Public API
6
6
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
7
  *
8
- * The version of the OpenAPI document: 0.2.8
8
+ * The version of the OpenAPI document: 0.2.9
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Fetch Hive Public API
3
3
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
4
  *
5
- * The version of the OpenAPI document: 0.2.8
5
+ * The version of the OpenAPI document: 0.2.9
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fetch Hive Public API
6
6
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
7
  *
8
- * The version of the OpenAPI document: 0.2.8
8
+ * The version of the OpenAPI document: 0.2.9
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -2,7 +2,7 @@
2
2
  * Fetch Hive Public API
3
3
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
4
4
  *
5
- * The version of the OpenAPI document: 0.2.8
5
+ * The version of the OpenAPI document: 0.2.9
6
6
  *
7
7
  *
8
8
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -5,7 +5,7 @@
5
5
  * Fetch Hive Public API
6
6
  * The Fetch Hive public API lets you invoke prompts, workflows, agents, and Hive Agents programmatically using an API token. ## Authentication All requests require a Bearer token in the `Authorization` header: ``` Authorization: Bearer <your-api-token> ``` ## Streaming Pass `\"streaming\": true` in the request body to receive a `text/event-stream` response. Each event is a JSON object sent as `data: <json>\\n\\n`. The stream ends with `data: [DONE]\\n\\n`.
7
7
  *
8
- * The version of the OpenAPI document: 0.2.8
8
+ * The version of the OpenAPI document: 0.2.9
9
9
  *
10
10
  *
11
11
  * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).