Skip to content

Commit c6b76bb

Browse files
zoo-github-actions-auth[bot]github-actions[bot]jessfraz
authored
Update api spec (#223)
* YOYO NEW API SPEC! * fix Signed-off-by: Jess Frazelle <[email protected]> * updates Signed-off-by: Jess Frazelle <[email protected]> --------- Signed-off-by: Jess Frazelle <[email protected]> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Jess Frazelle <[email protected]>
1 parent 53d2273 commit c6b76bb

File tree

7 files changed

+425
-2
lines changed

7 files changed

+425
-2
lines changed
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
import { meta } from '../../src/index.js';
2+
3+
async function example() {
4+
const response = await meta.create_debug_uploads();
5+
if ('error_code' in response) throw response;
6+
7+
return response;
8+
}
9+
10+
describe('Testing meta.create_debug_uploads', () => {
11+
it('should be truthy or throw', async () => {
12+
expect(await example()).toBeTruthy();
13+
});
14+
});

kittycad.ts.patch.json

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"op": "add",
44
"path": "/paths/~1ws~1modeling~1commands/get/x-typescript",
55
"value": {
6-
"example": "import { modeling } from '@kittycad/lib'\n\nasync function example() {\n const response = await modeling.modeling_commands_ws({\n fps: 7,\n pool: 'string',\n unlocked_framerate: true,\n video_res_height: 7,\n video_res_width: 7,\n webrtc: true,\n body: {\n candidate: {\n candidate: 'The candidate string associated with the object.',\n sdpMLineIndex: 7,\n sdpMid: \"The identifier of the 'media stream identification' as defined in [RFC 8841](https://tools.ietf.org/html/rfc8841).\",\n usernameFragment:\n 'The username fragment (as defined in [RFC 8445](https://tools.ietf.org/html/rfc8445#section-5.2.1)) associated with the object.',\n },\n type: 'trickle_ice',\n },\n })\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n",
6+
"example": "import { modeling } from '@kittycad/lib'\n\nasync function example() {\n const response = await modeling.modeling_commands_ws({\n fps: 7,\n pool: 'string',\n post_effect: 'ssao',\n unlocked_framerate: true,\n video_res_height: 7,\n video_res_width: 7,\n webrtc: true,\n body: {\n candidate: {\n candidate: 'The candidate string associated with the object.',\n sdpMLineIndex: 7,\n sdpMid: \"The identifier of the 'media stream identification' as defined in [RFC 8841](https://tools.ietf.org/html/rfc8841).\",\n usernameFragment:\n 'The username fragment (as defined in [RFC 8445](https://tools.ietf.org/html/rfc8445#section-5.2.1)) associated with the object.',\n },\n type: 'trickle_ice',\n },\n })\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n",
77
"libDocsLink": ""
88
}
99
},
@@ -895,6 +895,14 @@
895895
"libDocsLink": ""
896896
}
897897
},
898+
{
899+
"op": "add",
900+
"path": "/paths/~1debug~1uploads/post/x-typescript",
901+
"value": {
902+
"example": "import { meta } from '@kittycad/lib'\n\nasync function example() {\n const response = await meta.create_debug_uploads()\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n",
903+
"libDocsLink": ""
904+
}
905+
},
898906
{
899907
"op": "add",
900908
"path": "/paths/~1async~1operations~1{id}/get/x-typescript",

0 commit comments

Comments
 (0)