diff --git a/api.md b/api.md index 9c2b0e4..6abde01 100644 --- a/api.md +++ b/api.md @@ -464,7 +464,7 @@ const uID = await client.loginPortals.create({ theme: "", companyName: "", logo: "", - logoUrl: "", + logoURL: "", favicon: "", termsLink: "", privacyLink: "", diff --git a/openapi.augmented.json b/openapi.augmented.json index 20a85dc..36edaf8 100644 --- a/openapi.augmented.json +++ b/openapi.augmented.json @@ -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", diff --git a/package.json b/package.json index 7e66d26..9145452 100644 --- a/package.json +++ b/package.json @@ -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", diff --git a/scalar-sdk.manifest.json b/scalar-sdk.manifest.json index 6fd1088..ac88fcc 100644 --- a/scalar-sdk.manifest.json +++ b/scalar-sdk.manifest.json @@ -1,7 +1,7 @@ { "name": "ScalarApi", "slug": "scalarApi", - "version": "0.2.1", + "version": "0.2.3", "servers": [ "https://access.scalar.com" ], diff --git a/src/resources/login-portals.ts b/src/resources/login-portals.ts index a13798c..7fcb869 100644 --- a/src/resources/login-portals.ts +++ b/src/resources/login-portals.ts @@ -88,7 +88,7 @@ export class LoginPortals extends APIResource { * theme: "", * companyName: "", * logo: "", - * logoUrl: "", + * logoURL: "", * favicon: "", * termsLink: "", * privacyLink: "", diff --git a/tests/smoke-test.ts b/tests/smoke-test.ts index 0d62ffb..a86bdfb 100644 --- a/tests/smoke-test.ts +++ b/tests/smoke-test.ts @@ -334,7 +334,7 @@ const cases: { operation: string; method: string; path: string; run: () => Promi theme: "", companyName: "", logo: "", - logoUrl: "", + logoURL: "", favicon: "", termsLink: "", privacyLink: "",