Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -464,7 +464,7 @@ const uID = await client.loginPortals.create({
theme: "",
companyName: "",
logo: "",
logoUrl: "",
logoURL: "",
favicon: "",
termsLink: "",
privacyLink: "",
Expand Down
4 changes: 2 additions & 2 deletions openapi.augmented.json
Original file line number Diff line number Diff line change
Expand Up @@ -4670,9 +4670,9 @@
},
"x-codeSamples": [
{
"label": "TypeScript",
"lang": "TypeScript",
"source": "import ScalarAPI from \"@scalar/sdk\";\n\nconst client = new ScalarAPI({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nconst uID = await client.loginPortals.create({\n title: \"\",\n slug: \"\",\n email: {\n logo: \"\",\n logoSize: \"100\",\n buttonText: \"Login\",\n message: \"Click to access private documentation hosted by scalar.com\",\n title: \"Private Docs\",\n mainColor: \"#2a2f45\",\n mainBackground: \"#f6f6f6\",\n cardColor: \"2a2f45\",\n cardBackground: \"#fff\",\n buttonColor: \"#fff\",\n buttonBackground: \"#0f0f0f\",\n },\n page: {\n title: \"Scalar Private Docs\",\n description: \"Login to access your documentation\",\n head: \"\",\n script: \"\",\n theme: \"\",\n companyName: \"\",\n logo: \"\",\n logoUrl: \"\",\n favicon: \"\",\n termsLink: \"\",\n privacyLink: \"\",\n formTitle: \"Scalar Private Docs\",\n formDescription: \"Login to access your documentation\",\n formImage: \"\",\n },\n});\nconsole.log(uID);"
"label": "TypeScript",
"source": "import ScalarAPI from \"@scalar/sdk\";\n\nconst client = new ScalarAPI({\n bearerAuth: process.env[\"BEARER_AUTH\"], // defaults to the BEARER_AUTH env var\n environment: \"production\",\n});\n\nconst uID = await client.loginPortals.create({\n title: \"\",\n slug: \"\",\n email: {\n logo: \"\",\n logoSize: \"100\",\n buttonText: \"Login\",\n message: \"Click to access private documentation hosted by scalar.com\",\n title: \"Private Docs\",\n mainColor: \"#2a2f45\",\n mainBackground: \"#f6f6f6\",\n cardColor: \"2a2f45\",\n cardBackground: \"#fff\",\n buttonColor: \"#fff\",\n buttonBackground: \"#0f0f0f\",\n },\n page: {\n title: \"Scalar Private Docs\",\n description: \"Login to access your documentation\",\n head: \"\",\n script: \"\",\n theme: \"\",\n companyName: \"\",\n logo: \"\",\n logoURL: \"\",\n favicon: \"\",\n termsLink: \"\",\n privacyLink: \"\",\n formTitle: \"Scalar Private Docs\",\n formDescription: \"Login to access your documentation\",\n formImage: \"\",\n },\n});\nconsole.log(uID);"
},
{
"label": "Shell",
Expand Down
6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,11 @@
{
"name": "@scalar/sdk",
"version": "0.2.0",
"version": "0.2.3",
"description": "API for managing Scalar platform resources.",
"repository": {
"type": "git",
"url": "git+https://github.com/scalar/typescript-sdk.git"
},
"type": "module",
"sideEffects": false,
"main": "./dist/cjs/index.js",
Expand Down
2 changes: 1 addition & 1 deletion scalar-sdk.manifest.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "ScalarApi",
"slug": "scalarApi",
"version": "0.2.1",
"version": "0.2.3",
"servers": [
"https://access.scalar.com"
],
Expand Down
2 changes: 1 addition & 1 deletion src/resources/login-portals.ts
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ export class LoginPortals extends APIResource {
* theme: "",
* companyName: "",
* logo: "",
* logoUrl: "",
* logoURL: "",
* favicon: "",
* termsLink: "",
* privacyLink: "",
Expand Down
2 changes: 1 addition & 1 deletion tests/smoke-test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ const cases: { operation: string; method: string; path: string; run: () => Promi
theme: "",
companyName: "",
logo: "",
logoUrl: "",
logoURL: "",
favicon: "",
termsLink: "",
privacyLink: "",
Expand Down
Loading