Compare commits

..

4 Commits

Author SHA1 Message Date
speakeasybot
9e28d57f15 ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.209.3 2024-03-15 15:04:11 +00:00
Luke Hagar
9da9389549 migrated speakeasy to v15 2024-03-15 09:56:46 -05:00
speakeasy-github
fd886229c2 chore: update dependencies 2024-03-14 00:27:53 +00:00
speakeasybot
8a8615f241 ci: regenerated with OpenAPI Doc 0.0.3, Speakeasy CLI 1.209.2 2024-03-14 00:26:50 +00:00
9 changed files with 69 additions and 42 deletions

View File

@@ -15,15 +15,10 @@ permissions:
- cron: 0 0 * * *
jobs:
generate:
uses: speakeasy-api/sdk-generation-action/.github/workflows/sdk-generation.yaml@v14
uses: speakeasy-api/sdk-generation-action/.github/workflows/workflow-executor.yaml@v15
with:
force: ${{ github.event.inputs.force }}
languages: |
- typescript
mode: direct
openapi_docs: |
- https://raw.githubusercontent.com/LukeHagar/plex-api-spec/main/plex-media-server-spec-dereferenced.yaml
publish_typescript: true
speakeasy_version: latest
secrets:
github_access_token: ${{ secrets.GITHUB_TOKEN }}

View File

@@ -3,10 +3,10 @@ id: 16f22cbf-f23f-4419-8924-3a4b06381947
management:
docChecksum: e34dac84738ebf2d447ea2b9055a6eeb
docVersion: 0.0.3
speakeasyVersion: 1.207.1
generationVersion: 2.280.6
releaseVersion: 0.10.1
configChecksum: 726b0f7d4f020a007a232a1cfe026ef0
speakeasyVersion: 1.209.3
generationVersion: 2.281.2
releaseVersion: 0.10.3
configChecksum: 53d679e5b2a184e4f2eb4a8641521f70
repoURL: https://github.com/LukeHagar/plexjs.git
repoSubDirectory: .
installationURL: https://github.com/LukeHagar/plexjs
@@ -16,11 +16,11 @@ features:
constsAndDefaults: 0.1.5
core: 3.6.1
flattening: 2.81.1
globalSecurity: 2.82.4
globalSecurity: 2.82.6
globalServerURLs: 2.82.4
methodServerURLs: 2.82.1
nameOverrides: 2.81.1
responseFormat: 0.2.1
responseFormat: 0.2.2
generatedFiles:
- src/sdk/server.ts
- src/sdk/media.ts

12
.speakeasy/workflow.yaml Normal file
View File

@@ -0,0 +1,12 @@
workflowVersion: 1.0.0
sources:
my-source:
inputs:
- location: https://raw.githubusercontent.com/LukeHagar/plex-api-spec/main/plex-media-server-spec-dereferenced.yaml
targets:
plexjs:
target: typescript
source: my-source
publish:
npm:
token: $NPM_TOKEN

View File

@@ -239,3 +239,23 @@ Based on:
- [typescript v0.10.1] .
### Releases
- [NPM v0.10.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.10.1 - .
## 2024-03-14 00:25:24
### Changes
Based on:
- OpenAPI Doc 0.0.3
- Speakeasy CLI 1.209.2 (2.281.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.10.2] .
### Releases
- [NPM v0.10.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.10.2 - .
## 2024-03-15 15:02:11
### Changes
Based on:
- OpenAPI Doc
- Speakeasy CLI 1.209.3 (2.281.2) https://github.com/speakeasy-api/speakeasy
### Generated
- [typescript v0.10.3] .
### Releases
- [NPM v0.10.3] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.10.3 - .

View File

@@ -12,7 +12,7 @@ generation:
auth:
oAuth2ClientCredentialsEnabled: false
typescript:
version: 0.10.1
version: 0.10.3
additionalDependencies:
dependencies: {}
devDependencies: {}

4
package-lock.json generated
View File

@@ -1,12 +1,12 @@
{
"name": "@lukehagar/plexjs",
"version": "0.10.1",
"version": "0.10.3",
"lockfileVersion": 2,
"requires": true,
"packages": {
"": {
"name": "@lukehagar/plexjs",
"version": "0.10.1",
"version": "0.10.3",
"devDependencies": {
"@types/jsonpath": "^0.2.4",
"@typescript-eslint/eslint-plugin": "^6.13.2",

View File

@@ -1,6 +1,6 @@
{
"name": "@lukehagar/plexjs",
"version": "0.10.1",
"version": "0.10.3",
"author": "LukeHagar",
"main": "./index.js",
"sideEffects": false,

View File

@@ -82,7 +82,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
export const SDK_METADATA = Object.freeze({
language: "typescript",
openapiDocVersion: "0.0.3",
sdkVersion: "0.10.1",
genVersion: "2.280.6",
userAgent: "speakeasy-sdk/typescript 0.10.1 2.280.6 0.0.3 @lukehagar/plexjs",
sdkVersion: "0.10.3",
genVersion: "2.281.2",
userAgent: "speakeasy-sdk/typescript 0.10.3 2.281.2 0.0.3 @lukehagar/plexjs",
});

View File

@@ -73,7 +73,7 @@ export class ClientSDK {
const username = security?.basic.username || "";
const password = security?.basic.password || "";
if (username) {
if (username || password) {
const encoded = stringToBase64([username, password].join(":"));
headers.set("Authorization", `Basic ${encoded}`);
}