|
1406 | 1406 | ], |
1407 | 1407 | "x-codeSamples": [ |
1408 | 1408 | { |
1409 | | - "label": "TypeScript", |
1410 | 1409 | "lang": "TypeScript", |
1411 | | - "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nconst createAPIDocument = await client.registry.createAPIDocument(\"namespace\", {\n title: \"\",\n version: \"\",\n slug: \"\",\n document: \"\",\n});\nconsole.log(createAPIDocument);" |
| 1410 | + "label": "TypeScript", |
| 1411 | + "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nconst createAPIDocument = await client.registry.createAPIDocument(\"namespace\", {\n title: \"\",\n version: \"x\",\n slug: \"\",\n document: \"\",\n});\nconsole.log(createAPIDocument);" |
1412 | 1412 | }, |
1413 | 1413 | { |
1414 | 1414 | "label": "Shell", |
|
2519 | 2519 | ], |
2520 | 2520 | "x-codeSamples": [ |
2521 | 2521 | { |
2522 | | - "label": "TypeScript", |
2523 | 2522 | "lang": "TypeScript", |
2524 | | - "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nconst createAPIDocumentVersion = await client.registry.createAPIDocumentVersion(\"namespace\", \"slug\", {\n version: \"\",\n document: \"\",\n});\nconsole.log(createAPIDocumentVersion);" |
| 2523 | + "label": "TypeScript", |
| 2524 | + "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nconst createAPIDocumentVersion = await client.registry.createAPIDocumentVersion(\"namespace\", \"slug\", {\n version: \"x\",\n document: \"\",\n});\nconsole.log(createAPIDocumentVersion);" |
2525 | 2525 | }, |
2526 | 2526 | { |
2527 | 2527 | "label": "Shell", |
|
2671 | 2671 | ], |
2672 | 2672 | "x-codeSamples": [ |
2673 | 2673 | { |
2674 | | - "label": "TypeScript", |
2675 | 2674 | "lang": "TypeScript", |
2676 | | - "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nawait client.registry.createAPIDocumentAccessGroup(\"namespace\", \"slug\", {\n accessGroupSlug: \"\",\n});" |
| 2675 | + "label": "TypeScript", |
| 2676 | + "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nawait client.registry.createAPIDocumentAccessGroup(\"namespace\", \"slug\", {\n accessGroupSlug: \"xxx\",\n});" |
2677 | 2677 | }, |
2678 | 2678 | { |
2679 | 2679 | "label": "Shell", |
|
2821 | 2821 | ], |
2822 | 2822 | "x-codeSamples": [ |
2823 | 2823 | { |
2824 | | - "label": "TypeScript", |
2825 | 2824 | "lang": "TypeScript", |
2826 | | - "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nawait client.registry.deleteAPIDocumentAccessGroup(\"namespace\", \"slug\", {\n accessGroupSlug: \"\",\n});" |
| 2825 | + "label": "TypeScript", |
| 2826 | + "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nawait client.registry.deleteAPIDocumentAccessGroup(\"namespace\", \"slug\", {\n accessGroupSlug: \"xxx\",\n});" |
2827 | 2827 | }, |
2828 | 2828 | { |
2829 | 2829 | "label": "Shell", |
|
3127 | 3127 | ], |
3128 | 3128 | "x-codeSamples": [ |
3129 | 3129 | { |
3130 | | - "label": "TypeScript", |
3131 | 3130 | "lang": "TypeScript", |
3132 | | - "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nconst create = await client.schemas.create(\"namespace\", {\n title: \"\",\n version: \"\",\n slug: \"\",\n document: \"\",\n});\nconsole.log(create);" |
| 3131 | + "label": "TypeScript", |
| 3132 | + "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nconst create = await client.schemas.create(\"namespace\", {\n title: \"\",\n version: \"x\",\n slug: \"\",\n document: \"\",\n});\nconsole.log(create);" |
3133 | 3133 | }, |
3134 | 3134 | { |
3135 | 3135 | "label": "Shell", |
|
3894 | 3894 | ], |
3895 | 3895 | "x-codeSamples": [ |
3896 | 3896 | { |
3897 | | - "label": "TypeScript", |
3898 | 3897 | "lang": "TypeScript", |
3899 | | - "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nconst createVersion = await client.schemas.createVersion(\"namespace\", \"slug\", {\n version: \"\",\n document: \"\",\n});\nconsole.log(createVersion);" |
| 3898 | + "label": "TypeScript", |
| 3899 | + "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nconst createVersion = await client.schemas.createVersion(\"namespace\", \"slug\", {\n version: \"x\",\n document: \"\",\n});\nconsole.log(createVersion);" |
3900 | 3900 | }, |
3901 | 3901 | { |
3902 | 3902 | "label": "Shell", |
|
4046 | 4046 | ], |
4047 | 4047 | "x-codeSamples": [ |
4048 | 4048 | { |
4049 | | - "label": "TypeScript", |
4050 | 4049 | "lang": "TypeScript", |
4051 | | - "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nawait client.schemas.createAccessGroup(\"namespace\", \"slug\", {\n accessGroupSlug: \"\",\n});" |
| 4050 | + "label": "TypeScript", |
| 4051 | + "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nawait client.schemas.createAccessGroup(\"namespace\", \"slug\", {\n accessGroupSlug: \"xxx\",\n});" |
4052 | 4052 | }, |
4053 | 4053 | { |
4054 | 4054 | "label": "Shell", |
|
4196 | 4196 | ], |
4197 | 4197 | "x-codeSamples": [ |
4198 | 4198 | { |
4199 | | - "label": "TypeScript", |
4200 | 4199 | "lang": "TypeScript", |
4201 | | - "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nawait client.schemas.deleteAccessGroup(\"namespace\", \"slug\", {\n accessGroupSlug: \"\",\n});" |
| 4200 | + "label": "TypeScript", |
| 4201 | + "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nawait client.schemas.deleteAccessGroup(\"namespace\", \"slug\", {\n accessGroupSlug: \"xxx\",\n});" |
4202 | 4202 | }, |
4203 | 4203 | { |
4204 | 4204 | "label": "Shell", |
|
5819 | 5819 | ], |
5820 | 5820 | "x-codeSamples": [ |
5821 | 5821 | { |
5822 | | - "label": "TypeScript", |
5823 | 5822 | "lang": "TypeScript", |
5824 | | - "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nawait client.rules.createRulesetAccessGroup(\"namespace\", \"slug\", {\n accessGroupSlug: \"\",\n});" |
| 5823 | + "label": "TypeScript", |
| 5824 | + "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nawait client.rules.createRulesetAccessGroup(\"namespace\", \"slug\", {\n accessGroupSlug: \"xxx\",\n});" |
5825 | 5825 | }, |
5826 | 5826 | { |
5827 | 5827 | "label": "Shell", |
|
5969 | 5969 | ], |
5970 | 5970 | "x-codeSamples": [ |
5971 | 5971 | { |
5972 | | - "label": "TypeScript", |
5973 | 5972 | "lang": "TypeScript", |
5974 | | - "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nawait client.rules.deleteRulesetAccessGroup(\"namespace\", \"slug\", {\n accessGroupSlug: \"\",\n});" |
| 5973 | + "label": "TypeScript", |
| 5974 | + "source": "import Scalar from \"@scalar/sdk\";\n\nconst client = new Scalar({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nawait client.rules.deleteRulesetAccessGroup(\"namespace\", \"slug\", {\n accessGroupSlug: \"xxx\",\n});" |
5975 | 5975 | }, |
5976 | 5976 | { |
5977 | 5977 | "label": "Shell", |
|
0 commit comments