Skip to content

Commit dee27e5

Browse files
Update api spec (#208)
* YOYO NEW API SPEC! * Generated new lib --------- Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 5207069 commit dee27e5

10 files changed

+263
-507
lines changed

__tests__/gen/ai-list_text_to_cad_models_for_user.test.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ async function example() {
55
limit: 7,
66
page_token: 'string',
77
sort_by: 'created_at_ascending',
8+
no_models: true,
89
});
910
if ('error_code' in response) throw response;
1011

__tests__/gen/meta-get_ai_plugin_manifest.test.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

__tests__/gen/meta-get_openai_schema.test.ts

Lines changed: 0 additions & 14 deletions
This file was deleted.

kittycad.ts.patch.json

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@
7575
"op": "add",
7676
"path": "/paths/~1user~1text-to-cad/get/x-typescript",
7777
"value": {
78-
"example": "import { ai } from '@kittycad/lib'\n\nasync function example() {\n const response = await ai.list_text_to_cad_models_for_user({\n limit: 7,\n page_token: 'string',\n sort_by: 'created_at_ascending',\n })\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n",
78+
"example": "import { ai } from '@kittycad/lib'\n\nasync function example() {\n const response = await ai.list_text_to_cad_models_for_user({\n limit: 7,\n page_token: 'string',\n sort_by: 'created_at_ascending',\n no_models: true,\n })\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n",
7979
"libDocsLink": ""
8080
}
8181
},
@@ -367,14 +367,6 @@
367367
"libDocsLink": ""
368368
}
369369
},
370-
{
371-
"op": "add",
372-
"path": "/paths/~1openai~1openapi.json/get/x-typescript",
373-
"value": {
374-
"example": "import { meta } from '@kittycad/lib'\n\nasync function example() {\n const response = await meta.get_openai_schema()\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n",
375-
"libDocsLink": ""
376-
}
377-
},
378370
{
379371
"op": "add",
380372
"path": "/paths/~1oauth2~1provider~1{provider}~1consent/get/x-typescript",
@@ -583,14 +575,6 @@
583575
"libDocsLink": ""
584576
}
585577
},
586-
{
587-
"op": "add",
588-
"path": "/paths/~1.well-known~1ai-plugin.json/get/x-typescript",
589-
"value": {
590-
"example": "import { meta } from '@kittycad/lib'\n\nasync function example() {\n const response = await meta.get_ai_plugin_manifest()\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n",
591-
"libDocsLink": ""
592-
}
593-
},
594578
{
595579
"op": "add",
596580
"path": "/paths/~1/get/x-typescript",

0 commit comments

Comments
 (0)