fetch_hive 0.3.0 → 0.4.1

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 (127) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +23 -2
  3. data/lib/fetch_hive/client.rb +30 -3
  4. data/lib/fetch_hive/generated/api/agent_chat_messages_api.rb +2 -2
  5. data/lib/fetch_hive/generated/api/agent_chats_api.rb +2 -2
  6. data/lib/fetch_hive/generated/api/agents_api.rb +3 -3
  7. data/lib/fetch_hive/generated/api/assets_api.rb +2 -2
  8. data/lib/fetch_hive/generated/api/hive_agents_api.rb +2 -2
  9. data/lib/fetch_hive/generated/api/knowledge_base_items_api.rb +2 -2
  10. data/lib/fetch_hive/generated/api/knowledge_bases_api.rb +2 -2
  11. data/lib/fetch_hive/generated/api/models_api.rb +2 -2
  12. data/lib/fetch_hive/generated/api/prompts_api.rb +2 -2
  13. data/lib/fetch_hive/generated/api/requests_api.rb +2 -2
  14. data/lib/fetch_hive/generated/api/search_services_api.rb +2 -2
  15. data/lib/fetch_hive/generated/api/tool_action_approvals_api.rb +244 -0
  16. data/lib/fetch_hive/generated/api/workflows_api.rb +2 -2
  17. data/lib/fetch_hive/generated/api_client.rb +2 -2
  18. data/lib/fetch_hive/generated/api_error.rb +2 -2
  19. data/lib/fetch_hive/generated/api_model_base.rb +2 -2
  20. data/lib/fetch_hive/generated/configuration.rb +2 -2
  21. data/lib/fetch_hive/generated/models/agent_attachment.rb +2 -2
  22. data/lib/fetch_hive/generated/models/agent_attachment_one_of.rb +2 -2
  23. data/lib/fetch_hive/generated/models/agent_delegation.rb +2 -2
  24. data/lib/fetch_hive/generated/models/agent_invoke_async_config.rb +2 -2
  25. data/lib/fetch_hive/generated/models/agent_message.rb +2 -2
  26. data/lib/fetch_hive/generated/models/asset_object.rb +2 -2
  27. data/lib/fetch_hive/generated/models/asset_object_transcription.rb +2 -2
  28. data/lib/fetch_hive/generated/models/async_config.rb +2 -2
  29. data/lib/fetch_hive/generated/models/delete_public_workspaces_agents200_response.rb +2 -2
  30. data/lib/fetch_hive/generated/models/delete_public_workspaces_agents_chats200_response.rb +2 -2
  31. data/lib/fetch_hive/generated/models/delete_public_workspaces_agents_chats404_response.rb +2 -2
  32. data/lib/fetch_hive/generated/models/delete_public_workspaces_knowledge_bases200_response.rb +2 -2
  33. data/lib/fetch_hive/generated/models/delete_public_workspaces_knowledge_bases_items200_response.rb +2 -2
  34. data/lib/fetch_hive/generated/models/denied_tool_call.rb +223 -0
  35. data/lib/fetch_hive/generated/models/error_response.rb +2 -2
  36. data/lib/fetch_hive/generated/models/generated_artifact.rb +2 -2
  37. data/lib/fetch_hive/generated/models/get_public_models200_response_inner.rb +2 -2
  38. data/lib/fetch_hive/generated/models/get_public_requests200_response.rb +2 -2
  39. data/lib/fetch_hive/generated/models/get_public_requests404_response.rb +2 -2
  40. data/lib/fetch_hive/generated/models/get_public_search_services_countries200_response.rb +2 -2
  41. data/lib/fetch_hive/generated/models/get_public_search_services_countries200_response_services_inner.rb +2 -2
  42. data/lib/fetch_hive/generated/models/get_public_search_services_countries200_response_services_inner_countries_inner.rb +2 -2
  43. data/lib/fetch_hive/generated/models/get_public_search_services_countries2404_response.rb +2 -2
  44. data/lib/fetch_hive/generated/models/get_public_workspaces_agents200_response.rb +2 -2
  45. data/lib/fetch_hive/generated/models/get_public_workspaces_agents2200_response.rb +2 -2
  46. data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats200_response.rb +2 -2
  47. data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats_messages200_response.rb +2 -2
  48. data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats_messages200_response_messages_inner.rb +2 -2
  49. data/lib/fetch_hive/generated/models/get_public_workspaces_agents_chats_messages422_response.rb +2 -2
  50. data/lib/fetch_hive/generated/models/get_public_workspaces_assets200_response.rb +2 -2
  51. data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases200_response.rb +2 -2
  52. data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases2200_response.rb +2 -2
  53. data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases2422_response.rb +2 -2
  54. data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items200_response.rb +2 -2
  55. data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items200_response_knowledge_base_items_inner.rb +2 -2
  56. data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items2200_response.rb +2 -2
  57. data/lib/fetch_hive/generated/models/get_public_workspaces_knowledge_bases_items2422_response.rb +2 -2
  58. data/lib/fetch_hive/generated/models/get_public_workspaces_tool_action_approvals200_response.rb +149 -0
  59. data/lib/fetch_hive/generated/models/get_public_workspaces_tool_action_approvals2200_response.rb +147 -0
  60. data/lib/fetch_hive/generated/models/hive_agent_async_config.rb +2 -2
  61. data/lib/fetch_hive/generated/models/hive_agent_sources.rb +2 -2
  62. data/lib/fetch_hive/generated/models/invoke_agent_request.rb +62 -6
  63. data/lib/fetch_hive/generated/models/invoke_agent_request_decided_tool_approvals_inner.rb +164 -0
  64. data/lib/fetch_hive/generated/models/invoke_agent_response.rb +116 -4
  65. data/lib/fetch_hive/generated/models/invoke_agent_response_auto_approved_tool_calls_inner.rb +190 -0
  66. data/lib/fetch_hive/generated/models/invoke_hive_agent_request.rb +2 -2
  67. data/lib/fetch_hive/generated/models/invoke_hive_agent_response.rb +2 -2
  68. data/lib/fetch_hive/generated/models/invoke_prompt_request.rb +2 -2
  69. data/lib/fetch_hive/generated/models/invoke_prompt_response.rb +2 -2
  70. data/lib/fetch_hive/generated/models/invoke_workflow_async_response.rb +2 -2
  71. data/lib/fetch_hive/generated/models/invoke_workflow_request.rb +50 -6
  72. data/lib/fetch_hive/generated/models/invoke_workflow_response.rb +2 -2
  73. data/lib/fetch_hive/generated/models/knowledge_base_object.rb +2 -2
  74. data/lib/fetch_hive/generated/models/list_thread_agent_delegations200_response.rb +2 -2
  75. data/lib/fetch_hive/generated/models/metadata_value.rb +2 -2
  76. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents200_response.rb +2 -2
  77. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents422_response.rb +173 -0
  78. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats200_response.rb +2 -2
  79. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats_clear_messages200_response.rb +2 -2
  80. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats_request.rb +2 -2
  81. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_chats_request_chat.rb +2 -2
  82. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_request.rb +2 -2
  83. data/lib/fetch_hive/generated/models/patch_public_workspaces_agents_request_agent.rb +28 -6
  84. data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases200_response.rb +2 -2
  85. data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_items200_response.rb +2 -2
  86. data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_items_request.rb +2 -2
  87. data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_items_request_knowledge_base_item.rb +2 -2
  88. data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_request.rb +2 -2
  89. data/lib/fetch_hive/generated/models/patch_public_workspaces_knowledge_bases_request_knowledge_base.rb +2 -2
  90. data/lib/fetch_hive/generated/models/pending_delegation.rb +2 -2
  91. data/lib/fetch_hive/generated/models/pending_tool_approval.rb +247 -0
  92. data/lib/fetch_hive/generated/models/post_public_workspaces_agents200_response.rb +2 -2
  93. data/lib/fetch_hive/generated/models/post_public_workspaces_agents422_response.rb +2 -2
  94. data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats200_response.rb +2 -2
  95. data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats200_response_chat.rb +2 -2
  96. data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats422_response.rb +2 -2
  97. data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats_request.rb +2 -2
  98. data/lib/fetch_hive/generated/models/post_public_workspaces_agents_chats_request_chat.rb +2 -2
  99. data/lib/fetch_hive/generated/models/post_public_workspaces_agents_request.rb +2 -2
  100. data/lib/fetch_hive/generated/models/post_public_workspaces_agents_request_agent.rb +2 -2
  101. data/lib/fetch_hive/generated/models/post_public_workspaces_assets200_response.rb +2 -2
  102. data/lib/fetch_hive/generated/models/post_public_workspaces_assets422_response.rb +2 -2
  103. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases200_response.rb +2 -2
  104. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items200_response.rb +2 -2
  105. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items422_response.rb +2 -2
  106. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items_regenerate200_response.rb +2 -2
  107. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items_request.rb +2 -2
  108. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_items_request_knowledge_base_item.rb +2 -2
  109. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_request.rb +2 -2
  110. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_request_knowledge_base.rb +2 -2
  111. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_search200_response.rb +2 -2
  112. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_search422_response.rb +2 -2
  113. data/lib/fetch_hive/generated/models/post_public_workspaces_knowledge_bases_search_request.rb +2 -2
  114. data/lib/fetch_hive/generated/models/post_public_workspaces_tool_action_approvals_decide_request.rb +188 -0
  115. data/lib/fetch_hive/generated/models/sse_chunk.rb +126 -4
  116. data/lib/fetch_hive/generated/models/sse_chunk_auto_approved_tool_calls_inner.rb +156 -0
  117. data/lib/fetch_hive/generated/models/token_usage.rb +2 -2
  118. data/lib/fetch_hive/generated/models/tool_action_approval_object.rb +701 -0
  119. data/lib/fetch_hive/generated/models/tool_action_approval_object_approval_votes_inner.rb +156 -0
  120. data/lib/fetch_hive/generated/models/tool_action_approval_object_arguments_edited_by.rb +158 -0
  121. data/lib/fetch_hive/generated/models/tool_action_approval_object_batch_items_inner.rb +190 -0
  122. data/lib/fetch_hive/generated/models/tool_action_approval_object_capabilities.rb +157 -0
  123. data/lib/fetch_hive/generated/models/tool_action_approval_object_decided_by_user.rb +188 -0
  124. data/lib/fetch_hive/generated/models/tool_action_approval_object_requested_by.rb +179 -0
  125. data/lib/fetch_hive/generated/models/tool_invocation.rb +2 -2
  126. data/lib/fetch_hive/generated/version.rb +2 -2
  127. metadata +19 -2
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -32,6 +32,31 @@ module FetchHive::Generated
32
32
  # Flat caller-defined metadata stored separately from internal metadata for log display and filtering. Keys must be non-empty strings; values must be strings, numbers, booleans, or null.
33
33
  attr_accessor :metadata
34
34
 
35
+ # `policy` follows the deployment's saved auto-approve switch. Omit the field for the same behavior. `auto_approve` applies to this call only, and only when the API key is allowed to auto-approve actions. Any other value is `400 invalid_tool_approval`. A key without the permission, a signed-in token, or a webhook is `403 tool_approval_override_not_permitted` before the workflow starts. The call does not change the deployment's saved switch. Destructive actions still ask. Deny rules still block the action.
36
+ attr_accessor :tool_approval
37
+
38
+ class EnumAttributeValidator
39
+ attr_reader :datatype
40
+ attr_reader :allowable_values
41
+
42
+ def initialize(datatype, allowable_values)
43
+ @allowable_values = allowable_values.map do |value|
44
+ case datatype.to_s
45
+ when /Integer/i
46
+ value.to_i
47
+ when /Float/i
48
+ value.to_f
49
+ else
50
+ value
51
+ end
52
+ end
53
+ end
54
+
55
+ def valid?(value)
56
+ !value || allowable_values.include?(value)
57
+ end
58
+ end
59
+
35
60
  # Attribute mapping from ruby-style variable name to JSON key.
36
61
  def self.attribute_map
37
62
  {
@@ -40,7 +65,8 @@ module FetchHive::Generated
40
65
  :'inputs' => :'inputs',
41
66
  :'async' => :'async',
42
67
  :'user' => :'user',
43
- :'metadata' => :'metadata'
68
+ :'metadata' => :'metadata',
69
+ :'tool_approval' => :'tool_approval'
44
70
  }
45
71
  end
46
72
 
@@ -62,7 +88,8 @@ module FetchHive::Generated
62
88
  :'inputs' => :'Hash<String, Object>',
63
89
  :'async' => :'AsyncConfig',
64
90
  :'user' => :'String',
65
- :'metadata' => :'Hash<String, MetadataValue>'
91
+ :'metadata' => :'Hash<String, MetadataValue>',
92
+ :'tool_approval' => :'String'
66
93
  }
67
94
  end
68
95
 
@@ -119,6 +146,10 @@ module FetchHive::Generated
119
146
  self.metadata = value
120
147
  end
121
148
  end
149
+
150
+ if attributes.key?(:'tool_approval')
151
+ self.tool_approval = attributes[:'tool_approval']
152
+ end
122
153
  end
123
154
 
124
155
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -138,6 +169,8 @@ module FetchHive::Generated
138
169
  def valid?
139
170
  warn '[DEPRECATED] the `valid?` method is obsolete'
140
171
  return false if @deployment.nil?
172
+ tool_approval_validator = EnumAttributeValidator.new('String', ["policy", "auto_approve"])
173
+ return false unless tool_approval_validator.valid?(@tool_approval)
141
174
  true
142
175
  end
143
176
 
@@ -151,6 +184,16 @@ module FetchHive::Generated
151
184
  @deployment = deployment
152
185
  end
153
186
 
187
+ # Custom attribute writer method checking allowed values (enum).
188
+ # @param [Object] tool_approval Object to be assigned
189
+ def tool_approval=(tool_approval)
190
+ validator = EnumAttributeValidator.new('String', ["policy", "auto_approve"])
191
+ unless validator.valid?(tool_approval)
192
+ fail ArgumentError, "invalid value for \"tool_approval\", must be one of #{validator.allowable_values}."
193
+ end
194
+ @tool_approval = tool_approval
195
+ end
196
+
154
197
  # Checks equality by comparing each attribute.
155
198
  # @param [Object] Object to be compared
156
199
  def ==(o)
@@ -161,7 +204,8 @@ module FetchHive::Generated
161
204
  inputs == o.inputs &&
162
205
  async == o.async &&
163
206
  user == o.user &&
164
- metadata == o.metadata
207
+ metadata == o.metadata &&
208
+ tool_approval == o.tool_approval
165
209
  end
166
210
 
167
211
  # @see the `==` method
@@ -173,7 +217,7 @@ module FetchHive::Generated
173
217
  # Calculates hash code according to all attributes.
174
218
  # @return [Integer] Hash code
175
219
  def hash
176
- [deployment, variant, inputs, async, user, metadata].hash
220
+ [deployment, variant, inputs, async, user, metadata, tool_approval].hash
177
221
  end
178
222
 
179
223
  # Builds the object from hash
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -0,0 +1,173 @@
1
+ =begin
2
+ #Fetch Hive Public API
3
+
4
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
+
6
+ The version of the OpenAPI document: 0.4.1
7
+
8
+ Generated by: https://openapi-generator.tech
9
+ Generator version: 7.22.0
10
+
11
+ =end
12
+
13
+ require 'date'
14
+ require 'time'
15
+
16
+ module FetchHive::Generated
17
+ class PatchPublicWorkspacesAgents422Response < ApiModelBase
18
+ attr_accessor :error
19
+
20
+ attr_accessor :error_code
21
+
22
+ # Attribute mapping from ruby-style variable name to JSON key.
23
+ def self.attribute_map
24
+ {
25
+ :'error' => :'error',
26
+ :'error_code' => :'error_code'
27
+ }
28
+ end
29
+
30
+ # Returns attribute mapping this model knows about
31
+ def self.acceptable_attribute_map
32
+ attribute_map
33
+ end
34
+
35
+ # Returns all the JSON keys this model knows about
36
+ def self.acceptable_attributes
37
+ acceptable_attribute_map.values
38
+ end
39
+
40
+ # Attribute type mapping.
41
+ def self.openapi_types
42
+ {
43
+ :'error' => :'String',
44
+ :'error_code' => :'String'
45
+ }
46
+ end
47
+
48
+ # List of attributes with nullable: true
49
+ def self.openapi_nullable
50
+ Set.new([
51
+ ])
52
+ end
53
+
54
+ # Initializes the object
55
+ # @param [Hash] attributes Model attributes in the form of hash
56
+ def initialize(attributes = {})
57
+ if (!attributes.is_a?(Hash))
58
+ fail ArgumentError, "The input argument (attributes) must be a hash in `FetchHive::Generated::PatchPublicWorkspacesAgents422Response` initialize method"
59
+ end
60
+
61
+ # check to see if the attribute exists and convert string to symbol for hash key
62
+ acceptable_attribute_map = self.class.acceptable_attribute_map
63
+ attributes = attributes.each_with_object({}) { |(k, v), h|
64
+ if (!acceptable_attribute_map.key?(k.to_sym))
65
+ fail ArgumentError, "`#{k}` is not a valid attribute in `FetchHive::Generated::PatchPublicWorkspacesAgents422Response`. Please check the name to make sure it's valid. List of attributes: " + acceptable_attribute_map.keys.inspect
66
+ end
67
+ h[k.to_sym] = v
68
+ }
69
+
70
+ if attributes.key?(:'error')
71
+ self.error = attributes[:'error']
72
+ else
73
+ self.error = nil
74
+ end
75
+
76
+ if attributes.key?(:'error_code')
77
+ self.error_code = attributes[:'error_code']
78
+ end
79
+ end
80
+
81
+ # Show invalid properties with the reasons. Usually used together with valid?
82
+ # @return Array for valid properties with the reasons
83
+ def list_invalid_properties
84
+ warn '[DEPRECATED] the `list_invalid_properties` method is obsolete'
85
+ invalid_properties = Array.new
86
+ if @error.nil?
87
+ invalid_properties.push('invalid value for "error", error cannot be nil.')
88
+ end
89
+
90
+ invalid_properties
91
+ end
92
+
93
+ # Check to see if the all the properties in the model are valid
94
+ # @return true if the model is valid
95
+ def valid?
96
+ warn '[DEPRECATED] the `valid?` method is obsolete'
97
+ return false if @error.nil?
98
+ true
99
+ end
100
+
101
+ # Custom attribute writer method with validation
102
+ # @param [Object] error Value to be assigned
103
+ def error=(error)
104
+ if error.nil?
105
+ fail ArgumentError, 'error cannot be nil'
106
+ end
107
+
108
+ @error = error
109
+ end
110
+
111
+ # Checks equality by comparing each attribute.
112
+ # @param [Object] Object to be compared
113
+ def ==(o)
114
+ return true if self.equal?(o)
115
+ self.class == o.class &&
116
+ error == o.error &&
117
+ error_code == o.error_code
118
+ end
119
+
120
+ # @see the `==` method
121
+ # @param [Object] Object to be compared
122
+ def eql?(o)
123
+ self == o
124
+ end
125
+
126
+ # Calculates hash code according to all attributes.
127
+ # @return [Integer] Hash code
128
+ def hash
129
+ [error, error_code].hash
130
+ end
131
+
132
+ # Builds the object from hash
133
+ # @param [Hash] attributes Model attributes in the form of hash
134
+ # @return [Object] Returns the model itself
135
+ def self.build_from_hash(attributes)
136
+ return nil unless attributes.is_a?(Hash)
137
+ attributes = attributes.transform_keys(&:to_sym)
138
+ transformed_hash = {}
139
+ openapi_types.each_pair do |key, type|
140
+ if attributes.key?(attribute_map[key]) && attributes[attribute_map[key]].nil?
141
+ transformed_hash["#{key}"] = nil
142
+ elsif type =~ /\AArray<(.*)>/i
143
+ # check to ensure the input is an array given that the attribute
144
+ # is documented as an array but the input is not
145
+ if attributes[attribute_map[key]].is_a?(Array)
146
+ transformed_hash["#{key}"] = attributes[attribute_map[key]].map { |v| _deserialize($1, v) }
147
+ end
148
+ elsif !attributes[attribute_map[key]].nil?
149
+ transformed_hash["#{key}"] = _deserialize(type, attributes[attribute_map[key]])
150
+ end
151
+ end
152
+ new(transformed_hash)
153
+ end
154
+
155
+ # Returns the object in the form of hash
156
+ # @return [Hash] Returns the object in the form of hash
157
+ def to_hash
158
+ hash = {}
159
+ self.class.attribute_map.each_pair do |attr, param|
160
+ value = self.send(attr)
161
+ if value.nil?
162
+ is_nullable = self.class.openapi_nullable.include?(attr)
163
+ next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
164
+ end
165
+
166
+ hash[param] = _to_hash(value)
167
+ end
168
+ hash
169
+ end
170
+
171
+ end
172
+
173
+ end
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -39,6 +39,9 @@ module FetchHive::Generated
39
39
 
40
40
  attr_accessor :max_tool_calls
41
41
 
42
+ # Rejected with 422 tool_approval_mode_requires_dashboard. Change this in the dashboard.
43
+ attr_accessor :tool_approval_mode
44
+
42
45
  class EnumAttributeValidator
43
46
  attr_reader :datatype
44
47
  attr_reader :allowable_values
@@ -75,7 +78,8 @@ module FetchHive::Generated
75
78
  :'anthropic_prompt_cache_ttl' => :'anthropic_prompt_cache_ttl',
76
79
  :'reasoning_effort' => :'reasoning_effort',
77
80
  :'tool_choice' => :'tool_choice',
78
- :'max_tool_calls' => :'max_tool_calls'
81
+ :'max_tool_calls' => :'max_tool_calls',
82
+ :'tool_approval_mode' => :'tool_approval_mode'
79
83
  }
80
84
  end
81
85
 
@@ -103,7 +107,8 @@ module FetchHive::Generated
103
107
  :'anthropic_prompt_cache_ttl' => :'String',
104
108
  :'reasoning_effort' => :'String',
105
109
  :'tool_choice' => :'String',
106
- :'max_tool_calls' => :'Integer'
110
+ :'max_tool_calls' => :'Integer',
111
+ :'tool_approval_mode' => :'String'
107
112
  }
108
113
  end
109
114
 
@@ -176,6 +181,10 @@ module FetchHive::Generated
176
181
  if attributes.key?(:'max_tool_calls')
177
182
  self.max_tool_calls = attributes[:'max_tool_calls']
178
183
  end
184
+
185
+ if attributes.key?(:'tool_approval_mode')
186
+ self.tool_approval_mode = attributes[:'tool_approval_mode']
187
+ end
179
188
  end
180
189
 
181
190
  # Show invalid properties with the reasons. Usually used together with valid?
@@ -196,6 +205,8 @@ module FetchHive::Generated
196
205
  return false unless reasoning_effort_validator.valid?(@reasoning_effort)
197
206
  tool_choice_validator = EnumAttributeValidator.new('String', ["none", "auto", "required"])
198
207
  return false unless tool_choice_validator.valid?(@tool_choice)
208
+ tool_approval_mode_validator = EnumAttributeValidator.new('String', ["policy", "auto_approve"])
209
+ return false unless tool_approval_mode_validator.valid?(@tool_approval_mode)
199
210
  true
200
211
  end
201
212
 
@@ -229,6 +240,16 @@ module FetchHive::Generated
229
240
  @tool_choice = tool_choice
230
241
  end
231
242
 
243
+ # Custom attribute writer method checking allowed values (enum).
244
+ # @param [Object] tool_approval_mode Object to be assigned
245
+ def tool_approval_mode=(tool_approval_mode)
246
+ validator = EnumAttributeValidator.new('String', ["policy", "auto_approve"])
247
+ unless validator.valid?(tool_approval_mode)
248
+ fail ArgumentError, "invalid value for \"tool_approval_mode\", must be one of #{validator.allowable_values}."
249
+ end
250
+ @tool_approval_mode = tool_approval_mode
251
+ end
252
+
232
253
  # Checks equality by comparing each attribute.
233
254
  # @param [Object] Object to be compared
234
255
  def ==(o)
@@ -245,7 +266,8 @@ module FetchHive::Generated
245
266
  anthropic_prompt_cache_ttl == o.anthropic_prompt_cache_ttl &&
246
267
  reasoning_effort == o.reasoning_effort &&
247
268
  tool_choice == o.tool_choice &&
248
- max_tool_calls == o.max_tool_calls
269
+ max_tool_calls == o.max_tool_calls &&
270
+ tool_approval_mode == o.tool_approval_mode
249
271
  end
250
272
 
251
273
  # @see the `==` method
@@ -257,7 +279,7 @@ module FetchHive::Generated
257
279
  # Calculates hash code according to all attributes.
258
280
  # @return [Integer] Hash code
259
281
  def hash
260
- [name, llm_model, model_type, description, instruction_prompt, temperature, max_token, max_thinking_token, anthropic_prompt_cache_ttl, reasoning_effort, tool_choice, max_tool_calls].hash
282
+ [name, llm_model, model_type, description, instruction_prompt, temperature, max_token, max_thinking_token, anthropic_prompt_cache_ttl, reasoning_effort, tool_choice, max_tool_calls, tool_approval_mode].hash
261
283
  end
262
284
 
263
285
  # Builds the object from hash
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0
@@ -1,9 +1,9 @@
1
1
  =begin
2
2
  #Fetch Hive Public API
3
3
 
4
- #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
+ #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> ``` ## Breaking Error responses use `error_code`. The previous field name `code` is not returned. ## 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`.
5
5
 
6
- The version of the OpenAPI document: 0.3.0
6
+ The version of the OpenAPI document: 0.4.1
7
7
 
8
8
  Generated by: https://openapi-generator.tech
9
9
  Generator version: 7.22.0