|
147 | 147 | "op": "add",
|
148 | 148 | "path": "/paths/~1user~1payment/post/x-typescript",
|
149 | 149 | "value": {
|
150 |
| - "example": "import { payments } from '@kittycad/lib'\n\nasync function example() {\n const response = await payments.create_payment_information_for_user()\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n", |
| 150 | + "example": "import { payments } from '@kittycad/lib'\n\nasync function example() {\n const response = await payments.create_payment_information_for_user({\n body: {\n address: {\n city: 'The city component.',\n country: 'An ISO-3166 alpha-2 country code. Always uppercase.',\n state: 'The state component.',\n street1: 'The first street component.',\n street2: 'The second street component.',\n user_id: 'A UUID usually v4 or v7',\n zip: 'The zip component.',\n },\n name: 'The name of the customer.',\n phone: 'The phone for the customer.',\n },\n })\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n", |
151 | 151 | "libDocsLink": ""
|
152 | 152 | }
|
153 | 153 | },
|
154 | 154 | {
|
155 | 155 | "op": "add",
|
156 | 156 | "path": "/paths/~1user~1payment/put/x-typescript",
|
157 | 157 | "value": {
|
158 |
| - "example": "import { payments } from '@kittycad/lib'\n\nasync function example() {\n const response = await payments.update_payment_information_for_user()\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n", |
| 158 | + "example": "import { payments } from '@kittycad/lib'\n\nasync function example() {\n const response = await payments.update_payment_information_for_user({\n body: {\n address: {\n city: 'The city component.',\n country: 'An ISO-3166 alpha-2 country code. Always uppercase.',\n state: 'The state component.',\n street1: 'The first street component.',\n street2: 'The second street component.',\n user_id: 'A UUID usually v4 or v7',\n zip: 'The zip component.',\n },\n name: 'The name of the customer.',\n phone: 'The phone for the customer.',\n },\n })\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n", |
159 | 159 | "libDocsLink": ""
|
160 | 160 | }
|
161 | 161 | },
|
|
243 | 243 | "op": "add",
|
244 | 244 | "path": "/paths/~1user/put/x-typescript",
|
245 | 245 | "value": {
|
246 |
| - "example": "import { users } from '@kittycad/lib'\n\nasync function example() {\n const response = await users.update_user_self()\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n", |
| 246 | + "example": "import { users } from '@kittycad/lib'\n\nasync function example() {\n const response = await users.update_user_self({\n body: {\n company: \"The user's company.\",\n discord: \"The user's Discord handle.\",\n first_name: \"The user's first name.\",\n github: \"The user's GitHub handle.\",\n last_name: \"The user's last name.\",\n phone: \"The user's phone number.\",\n },\n })\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n", |
247 | 247 | "libDocsLink": ""
|
248 | 248 | }
|
249 | 249 | },
|
|
411 | 411 | "op": "add",
|
412 | 412 | "path": "/paths/~1oauth2~1device~1confirm/post/x-typescript",
|
413 | 413 | "value": {
|
414 |
| - "example": "import { oauth2 } from '@kittycad/lib'\n\nasync function example() {\n const response = await oauth2.device_auth_confirm()\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n", |
| 414 | + "example": "import { oauth2 } from '@kittycad/lib'\n\nasync function example() {\n const response = await oauth2.device_auth_confirm({\n body: { user_code: 'The user code.' },\n })\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n", |
415 | 415 | "libDocsLink": ""
|
416 | 416 | }
|
417 | 417 | },
|
|
555 | 555 | "op": "add",
|
556 | 556 | "path": "/paths/~1ai~1text-to-cad~1{output_format}/post/x-typescript",
|
557 | 557 | "value": {
|
558 |
| - "example": "import { ai } from '@kittycad/lib'\n\nasync function example() {\n const response = await ai.create_text_to_cad({ output_format: 'stl' })\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n", |
| 558 | + "example": "import { ai } from '@kittycad/lib'\n\nasync function example() {\n const response = await ai.create_text_to_cad({\n output_format: 'stl',\n body: { prompt: 'The prompt for the model.' },\n })\n if ('error_code' in response) throw response\n console.log(JSON.stringify(response, null, 2))\n}\n", |
559 | 559 | "libDocsLink": ""
|
560 | 560 | }
|
561 | 561 | },
|
|
0 commit comments