|
4230 | 4230 | }
|
4231 | 4231 | }
|
4232 | 4232 | },
|
| 4233 | + "/ml/conversations": { |
| 4234 | + "get": { |
| 4235 | + "tags": [ |
| 4236 | + "ml" |
| 4237 | + ], |
| 4238 | + "summary": "List conversations", |
| 4239 | + "description": "This endpoint requires authentication by any Zoo user. It returns the conversations for the authenticated user.\n\nThe conversations are returned in order of creation, with the most recently created conversations first.", |
| 4240 | + "operationId": "list_conversations_for_user", |
| 4241 | + "parameters": [ |
| 4242 | + { |
| 4243 | + "in": "query", |
| 4244 | + "name": "limit", |
| 4245 | + "description": "Maximum number of items returned by a single call", |
| 4246 | + "schema": { |
| 4247 | + "nullable": true, |
| 4248 | + "type": "integer", |
| 4249 | + "format": "uint32", |
| 4250 | + "minimum": 1 |
| 4251 | + } |
| 4252 | + }, |
| 4253 | + { |
| 4254 | + "in": "query", |
| 4255 | + "name": "page_token", |
| 4256 | + "description": "Token returned by previous call to retrieve the subsequent page", |
| 4257 | + "schema": { |
| 4258 | + "nullable": true, |
| 4259 | + "type": "string" |
| 4260 | + } |
| 4261 | + }, |
| 4262 | + { |
| 4263 | + "in": "query", |
| 4264 | + "name": "sort_by", |
| 4265 | + "schema": { |
| 4266 | + "$ref": "#/components/schemas/CreatedAtSortMode" |
| 4267 | + } |
| 4268 | + } |
| 4269 | + ], |
| 4270 | + "responses": { |
| 4271 | + "200": { |
| 4272 | + "description": "successful operation", |
| 4273 | + "headers": { |
| 4274 | + "Access-Control-Allow-Credentials": { |
| 4275 | + "description": "Access-Control-Allow-Credentials header.", |
| 4276 | + "style": "simple", |
| 4277 | + "schema": { |
| 4278 | + "nullable": true, |
| 4279 | + "type": "string" |
| 4280 | + } |
| 4281 | + }, |
| 4282 | + "Access-Control-Allow-Headers": { |
| 4283 | + "description": "Access-Control-Allow-Headers header. This is a comma-separated list of headers.", |
| 4284 | + "style": "simple", |
| 4285 | + "schema": { |
| 4286 | + "nullable": true, |
| 4287 | + "type": "string" |
| 4288 | + } |
| 4289 | + }, |
| 4290 | + "Access-Control-Allow-Methods": { |
| 4291 | + "description": "Access-Control-Allow-Methods header.", |
| 4292 | + "style": "simple", |
| 4293 | + "schema": { |
| 4294 | + "nullable": true, |
| 4295 | + "type": "string" |
| 4296 | + } |
| 4297 | + }, |
| 4298 | + "Access-Control-Allow-Origin": { |
| 4299 | + "description": "Access-Control-Allow-Origin header.", |
| 4300 | + "style": "simple", |
| 4301 | + "schema": { |
| 4302 | + "nullable": true, |
| 4303 | + "type": "string" |
| 4304 | + } |
| 4305 | + }, |
| 4306 | + "Set-Cookie": { |
| 4307 | + "description": "Set-Cookie header.", |
| 4308 | + "style": "simple", |
| 4309 | + "schema": { |
| 4310 | + "nullable": true, |
| 4311 | + "type": "string" |
| 4312 | + } |
| 4313 | + }, |
| 4314 | + "X-Api-Call-Id": { |
| 4315 | + "description": "ID for this request. We return it so that users can report this to us and help us debug their problems.", |
| 4316 | + "style": "simple", |
| 4317 | + "required": true, |
| 4318 | + "schema": { |
| 4319 | + "type": "string" |
| 4320 | + } |
| 4321 | + } |
| 4322 | + }, |
| 4323 | + "content": { |
| 4324 | + "application/json": { |
| 4325 | + "schema": { |
| 4326 | + "$ref": "#/components/schemas/ConversationResultsPage" |
| 4327 | + } |
| 4328 | + } |
| 4329 | + } |
| 4330 | + }, |
| 4331 | + "4XX": { |
| 4332 | + "$ref": "#/components/responses/Error" |
| 4333 | + }, |
| 4334 | + "5XX": { |
| 4335 | + "$ref": "#/components/responses/Error" |
| 4336 | + } |
| 4337 | + }, |
| 4338 | + "x-dropshot-pagination": { |
| 4339 | + "required": [] |
| 4340 | + } |
| 4341 | + } |
| 4342 | + }, |
4233 | 4343 | "/ml/convert/proprietary-to-kcl": {
|
4234 | 4344 | "post": {
|
4235 | 4345 | "tags": [
|
|
15847 | 15957 | "$ref": "#/components/schemas/CreatedAtSortMode"
|
15848 | 15958 | }
|
15849 | 15959 | },
|
| 15960 | + { |
| 15961 | + "in": "query", |
| 15962 | + "name": "conversation_id", |
| 15963 | + "description": "If specified, only return the prompts for the conversation id given.", |
| 15964 | + "schema": { |
| 15965 | + "$ref": "#/components/schemas/Uuid" |
| 15966 | + } |
| 15967 | + }, |
15850 | 15968 | {
|
15851 | 15969 | "in": "query",
|
15852 | 15970 | "name": "no_models",
|
|
15913 | 16031 | "content": {
|
15914 | 16032 | "application/json": {
|
15915 | 16033 | "schema": {
|
15916 |
| - "$ref": "#/components/schemas/TextToCadResultsPage" |
| 16034 | + "$ref": "#/components/schemas/TextToCadResponseResultsPage" |
15917 | 16035 | }
|
15918 | 16036 | }
|
15919 | 16037 | }
|
|
16006 | 16124 | "content": {
|
16007 | 16125 | "application/json": {
|
16008 | 16126 | "schema": {
|
16009 |
| - "$ref": "#/components/schemas/TextToCad" |
| 16127 | + "$ref": "#/components/schemas/TextToCadResponse" |
16010 | 16128 | }
|
16011 | 16129 | }
|
16012 | 16130 | }
|
|
20365 | 20483 | }
|
20366 | 20484 | }
|
20367 | 20485 | },
|
| 20486 | + "Conversation": { |
| 20487 | + "description": "A conversation composed of many ML prompts.", |
| 20488 | + "type": "object", |
| 20489 | + "properties": { |
| 20490 | + "created_at": { |
| 20491 | + "title": "DateTime", |
| 20492 | + "description": "The date and time the conversation was created.", |
| 20493 | + "type": "string", |
| 20494 | + "format": "date-time" |
| 20495 | + }, |
| 20496 | + "first_prompt": { |
| 20497 | + "description": "The prompt that started this conversation.", |
| 20498 | + "type": "string" |
| 20499 | + }, |
| 20500 | + "id": { |
| 20501 | + "description": "The unique identifier for the conversation.", |
| 20502 | + "allOf": [ |
| 20503 | + { |
| 20504 | + "$ref": "#/components/schemas/Uuid" |
| 20505 | + } |
| 20506 | + ] |
| 20507 | + }, |
| 20508 | + "updated_at": { |
| 20509 | + "title": "DateTime", |
| 20510 | + "description": "The date and time the conversation was last updated.", |
| 20511 | + "type": "string", |
| 20512 | + "format": "date-time" |
| 20513 | + }, |
| 20514 | + "user_id": { |
| 20515 | + "description": "The user ID of the user who created the conversation.", |
| 20516 | + "allOf": [ |
| 20517 | + { |
| 20518 | + "$ref": "#/components/schemas/Uuid" |
| 20519 | + } |
| 20520 | + ] |
| 20521 | + } |
| 20522 | + }, |
| 20523 | + "required": [ |
| 20524 | + "created_at", |
| 20525 | + "first_prompt", |
| 20526 | + "id", |
| 20527 | + "updated_at", |
| 20528 | + "user_id" |
| 20529 | + ] |
| 20530 | + }, |
| 20531 | + "ConversationResultsPage": { |
| 20532 | + "description": "A single page of results", |
| 20533 | + "type": "object", |
| 20534 | + "properties": { |
| 20535 | + "items": { |
| 20536 | + "description": "list of items on this page of results", |
| 20537 | + "type": "array", |
| 20538 | + "items": { |
| 20539 | + "$ref": "#/components/schemas/Conversation" |
| 20540 | + } |
| 20541 | + }, |
| 20542 | + "next_page": { |
| 20543 | + "nullable": true, |
| 20544 | + "description": "token used to fetch the next page of results (if any)", |
| 20545 | + "type": "string" |
| 20546 | + } |
| 20547 | + }, |
| 20548 | + "required": [ |
| 20549 | + "items" |
| 20550 | + ] |
| 20551 | + }, |
20368 | 20552 | "ConversionParams": {
|
20369 | 20553 | "description": "Describes the file to convert (src) and what it should be converted into (output).",
|
20370 | 20554 | "type": "object",
|
@@ -35008,15 +35192,44 @@
|
35008 | 35192 | }
|
35009 | 35193 | }
|
35010 | 35194 | },
|
35011 |
| - "TextToCadResultsPage": { |
| 35195 | + "TextToCadResponse": { |
| 35196 | + "description": "Type that encompasses all Text-to-CAD response types, including iteration and multi-file iteration.", |
| 35197 | + "anyOf": [ |
| 35198 | + { |
| 35199 | + "description": "A response from a text to CAD prompt.", |
| 35200 | + "allOf": [ |
| 35201 | + { |
| 35202 | + "$ref": "#/components/schemas/TextToCad" |
| 35203 | + } |
| 35204 | + ] |
| 35205 | + }, |
| 35206 | + { |
| 35207 | + "description": "A response from a text to CAD iteration.", |
| 35208 | + "allOf": [ |
| 35209 | + { |
| 35210 | + "$ref": "#/components/schemas/TextToCadIteration" |
| 35211 | + } |
| 35212 | + ] |
| 35213 | + }, |
| 35214 | + { |
| 35215 | + "description": "A response from a text to CAD multi-file iteration.", |
| 35216 | + "allOf": [ |
| 35217 | + { |
| 35218 | + "$ref": "#/components/schemas/TextToCadMultiFileIteration" |
| 35219 | + } |
| 35220 | + ] |
| 35221 | + } |
| 35222 | + ] |
| 35223 | + }, |
| 35224 | + "TextToCadResponseResultsPage": { |
35012 | 35225 | "description": "A single page of results",
|
35013 | 35226 | "type": "object",
|
35014 | 35227 | "properties": {
|
35015 | 35228 | "items": {
|
35016 | 35229 | "description": "list of items on this page of results",
|
35017 | 35230 | "type": "array",
|
35018 | 35231 | "items": {
|
35019 |
| - "$ref": "#/components/schemas/TextToCad" |
| 35232 | + "$ref": "#/components/schemas/TextToCadResponse" |
35020 | 35233 | }
|
35021 | 35234 | },
|
35022 | 35235 | "next_page": {
|
|
0 commit comments