77 },
88 "servers" : [
99 {
10- "url" : " https://api-dsc .mintlify.com/api/discovery/v1"
10+ "url" : " https://leaves .mintlify.com/api/discovery/v1"
1111 }
1212 ],
1313 "security" : [
4040 "application/json" : {
4141 "schema" : {
4242 "type" : " object" ,
43- "required" : [
44- " fp" ,
45- " messages"
46- ],
43+ "required" : [" fp" , " messages" ],
4744 "properties" : {
4845 "fp" : {
4946 "type" : " string" ,
7875 },
7976 "role" : {
8077 "type" : " string" ,
81- "enum" : [
82- " system" ,
83- " assistant" ,
84- " data" ,
85- " user"
86- ],
78+ "enum" : [" system" , " assistant" , " data" , " user" ],
8779 "description" : " The role of the message sender"
8880 },
8981 "createdAt" : {
109101 "properties" : {
110102 "type" : {
111103 "type" : " string" ,
112- "enum" : [
113- " text"
114- ]
104+ "enum" : [" text" ]
115105 },
116106 "text" : {
117107 "type" : " string"
118108 }
119109 },
120- "required" : [
121- " type" ,
122- " text"
123- ]
110+ "required" : [" type" , " text" ]
124111 },
125112 {
126113 "type" : " object" ,
127114 "properties" : {
128115 "type" : {
129116 "type" : " string" ,
130- "enum" : [
131- " reasoning"
132- ]
117+ "enum" : [" reasoning" ]
133118 },
134119 "reasoning" : {
135120 "type" : " string"
143128 "properties" : {
144129 "type" : {
145130 "type" : " string" ,
146- "enum" : [
147- " text"
148- ]
131+ "enum" : [" text" ]
149132 },
150133 "text" : {
151134 "type" : " string"
154137 "type" : " string"
155138 }
156139 },
157- "required" : [
158- " type" ,
159- " text"
160- ]
140+ "required" : [" type" , " text" ]
161141 },
162142 {
163143 "type" : " object" ,
164144 "properties" : {
165145 "type" : {
166146 "type" : " string" ,
167- "enum" : [
168- " redacted"
169- ]
147+ "enum" : [" redacted" ]
170148 },
171149 "data" : {
172150 "type" : " string"
173151 }
174152 },
175- "required" : [
176- " type" ,
177- " data"
178- ]
153+ "required" : [" type" , " data" ]
179154 }
180155 ]
181156 }
182157 }
183158 },
184- "required" : [
185- " type" ,
186- " reasoning" ,
187- " details"
188- ]
159+ "required" : [" type" , " reasoning" , " details" ]
189160 },
190161 {
191162 "type" : " object" ,
192163 "properties" : {
193164 "type" : {
194165 "type" : " string" ,
195- "enum" : [
196- " step-start"
197- ]
166+ "enum" : [" step-start" ]
198167 }
199168 },
200- "required" : [
201- " type"
202- ]
169+ "required" : [" type" ]
203170 },
204171 {
205172 "type" : " object" ,
206173 "properties" : {
207174 "type" : {
208175 "type" : " string" ,
209- "enum" : [
210- " source"
211- ]
176+ "enum" : [" source" ]
212177 },
213178 "source" : {
214179 "type" : " object" ,
215180 "properties" : {
216181 "sourceType" : {
217182 "type" : " string" ,
218- "enum" : [
219- " url"
220- ]
183+ "enum" : [" url" ]
221184 },
222185 "id" : {
223186 "type" : " string"
229192 "type" : " string"
230193 }
231194 },
232- "required" : [
233- " sourceType" ,
234- " id" ,
235- " url"
236- ]
195+ "required" : [" sourceType" , " id" , " url" ]
237196 }
238197 },
239- "required" : [
240- " type" ,
241- " source"
242- ]
198+ "required" : [" type" , " source" ]
243199 },
244200 {
245201 "type" : " object" ,
246202 "properties" : {
247203 "type" : {
248204 "type" : " string" ,
249- "enum" : [
250- " tool-invocation"
251- ]
205+ "enum" : [" tool-invocation" ]
252206 },
253207 "toolInvocation" : {
254208 "oneOf" : [
257211 "properties" : {
258212 "state" : {
259213 "type" : " string" ,
260- "enum" : [
261- " partial-call"
262- ]
214+ "enum" : [" partial-call" ]
263215 },
264216 "step" : {
265217 "type" : " number"
284236 "properties" : {
285237 "state" : {
286238 "type" : " string" ,
287- "enum" : [
288- " call"
289- ]
239+ "enum" : [" call" ]
290240 },
291241 "step" : {
292242 "type" : " number"
311261 "properties" : {
312262 "state" : {
313263 "type" : " string" ,
314- "enum" : [
315- " result"
316- ]
264+ "enum" : [" result" ]
317265 },
318266 "step" : {
319267 "type" : " number"
338286 ]
339287 }
340288 },
341- "required" : [
342- " type" ,
343- " toolInvocation"
344- ]
289+ "required" : [" type" , " toolInvocation" ]
345290 }
346291 ]
347292 },
362307 "type" : " string"
363308 }
364309 },
365- "required" : [
366- " url"
367- ]
310+ "required" : [" url" ]
368311 },
369312 "description" : " Optional array of experimental attachments for the message"
370313 }
371314 },
372- "required" : [
373- " id" ,
374- " role" ,
375- " content" ,
376- " parts"
377- ]
315+ "required" : [" id" , " role" , " content" , " parts" ]
378316 },
379317 "description" : " Array of messages in the conversation. On the frontend, you will likely want to use the handleSubmit function from the @ai-sdk package's useChat hook to append user messages and handle streaming responses, rather than manually defining the objects in this array as they have so many parameters."
380318 },
458396 "application/json" : {
459397 "schema" : {
460398 "type" : " object" ,
461- "required" : [
462- " topicId" ,
463- " message"
464- ],
399+ "required" : [" topicId" , " message" ],
465400 "properties" : {
466401 "topicId" : {
467402 "type" : " string" ,
508443 }
509444 }
510445 }
511- }
446+ }
0 commit comments