Skip to content

Commit f8d0aae

Browse files
committed
feat: scalar-typescript-sdk-cli@0.2.7
1 parent 8af2e46 commit f8d0aae

18 files changed

Lines changed: 159 additions & 41 deletions

.github/workflows/sdk-ci.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
name: CLI SDK CI
2+
3+
on:
4+
push:
5+
pull_request:
6+
7+
jobs:
8+
verify:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4.3.1
12+
- uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
13+
with:
14+
node-version: "20"
15+
- run: npm install
16+
- run: npm run build

.scalar/sdk-sync.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"build": "fsFsD0KdObN6oquV3KEHQ",
2+
"build": "qHulKPu8st12EXA7HYoJ9",
33
"slug": "scalar-typescript-sdk-cli",
44
"version": "0.2.7"
55
}

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -171,11 +171,3 @@ Generated clients support request timeouts and retry temporary failures such as
171171
- Node.js 20 or newer
172172

173173
Powered by Scalar.
174-
175-
176-
## Contributions
177-
178-
This SDK is generated programmatically. Manual edits to generated files will be
179-
overwritten on the next build.
180-
181-
### SDK created by [Scalar](https://www.scalar.com/?utm_source=scalar-typescript-sdk-cli&utm_campaign=sdk)

VERSIONING.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Versioning
2+
3+
This SDK is configured with the `manual` versioning policy.
4+
5+
- `manual`: package versions are set explicitly before release.
6+
- `semver`: releases should follow semantic versioning based on API and SDK surface changes.
7+
- `calendar`: releases should use a calendar-derived version chosen by the release workflow or maintainer.

openapi.augmented.json

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1406,9 +1406,9 @@
14061406
],
14071407
"x-codeSamples": [
14081408
{
1409-
"label": "TypeScript",
14101409
"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);"
14121412
},
14131413
{
14141414
"label": "Shell",
@@ -2519,9 +2519,9 @@
25192519
],
25202520
"x-codeSamples": [
25212521
{
2522-
"label": "TypeScript",
25232522
"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);"
25252525
},
25262526
{
25272527
"label": "Shell",
@@ -2671,9 +2671,9 @@
26712671
],
26722672
"x-codeSamples": [
26732673
{
2674-
"label": "TypeScript",
26752674
"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});"
26772677
},
26782678
{
26792679
"label": "Shell",
@@ -2821,9 +2821,9 @@
28212821
],
28222822
"x-codeSamples": [
28232823
{
2824-
"label": "TypeScript",
28252824
"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});"
28272827
},
28282828
{
28292829
"label": "Shell",
@@ -3127,9 +3127,9 @@
31273127
],
31283128
"x-codeSamples": [
31293129
{
3130-
"label": "TypeScript",
31313130
"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);"
31333133
},
31343134
{
31353135
"label": "Shell",
@@ -3894,9 +3894,9 @@
38943894
],
38953895
"x-codeSamples": [
38963896
{
3897-
"label": "TypeScript",
38983897
"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);"
39003900
},
39013901
{
39023902
"label": "Shell",
@@ -4046,9 +4046,9 @@
40464046
],
40474047
"x-codeSamples": [
40484048
{
4049-
"label": "TypeScript",
40504049
"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});"
40524052
},
40534053
{
40544054
"label": "Shell",
@@ -4196,9 +4196,9 @@
41964196
],
41974197
"x-codeSamples": [
41984198
{
4199-
"label": "TypeScript",
42004199
"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});"
42024202
},
42034203
{
42044204
"label": "Shell",
@@ -5819,9 +5819,9 @@
58195819
],
58205820
"x-codeSamples": [
58215821
{
5822-
"label": "TypeScript",
58235822
"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});"
58255825
},
58265826
{
58275827
"label": "Shell",
@@ -5969,9 +5969,9 @@
59695969
],
59705970
"x-codeSamples": [
59715971
{
5972-
"label": "TypeScript",
59735972
"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});"
59755975
},
59765976
{
59775977
"label": "Shell",

scalar-sdk.manifest.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ScalarApi",
33
"slug": "scalarApi",
44
"version": "0.2.6",
5-
"generatorVersion": "0.15.2",
5+
"generatorVersion": "0.16.5",
66
"servers": [
77
"https://access.scalar.com"
88
],

src/sdk/core/api-promise.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// File generated from our OpenAPI spec by Scalar. See README.md for details.
2+
3+
export { APIPromise, defaultParseResponse } from '../api-promise';
4+
export type { APIResponseProps, ParseResponse } from '../api-promise';

src/sdk/core/resource.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
// File generated from our OpenAPI spec by Scalar. See README.md for details.
2+
3+
export { APIResource } from '../resource';

src/sdk/internal/parse.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
// File generated from our OpenAPI spec by Scalar. See README.md for details.
2+
3+
export { defaultParseResponse } from '../api-promise';
4+
export type { APIResponseProps, ParseResponse } from '../api-promise';

src/sdk/internal/utils.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// File generated from our OpenAPI spec by Scalar. See README.md for details.
2+
3+
export * from './utils/values';
4+
export * from './utils/base64';
5+
export * from './utils/env';
6+
export * from './utils/log';
7+
export * from './utils/uuid';
8+
export * from './utils/sleep';
9+
export * from './utils/query';

0 commit comments

Comments
 (0)