Moved files into package.json project setup

This commit is contained in:
JasonLandbridge
2024-08-30 10:10:26 +02:00
parent 89547c8bcc
commit 8a90da8192
85 changed files with 5 additions and 10442 deletions

View File

@@ -0,0 +1,26 @@
get:
tags:
- Authentication
summary: Get Source Connection Information
description: |
If a caller requires connection details and a transient token for a source that is known to the server, for example a cloud media provider or shared PMS, then this endpoint can be called. This endpoint is only accessible with either an admin token or a valid transient token generated from an admin token.
Note: requires Plex Media Server >= 1.15.4.
operationId: getSourceConnectionInformation
parameters:
- name: source
description: The source identifier with an included prefix.
in: query
schema:
type: string
examples:
- server://client-identifier
- provider://provider-identifier
required: true
responses:
"200":
description: Source Connection Information
"400":
$ref: "../../responses/400.yaml"
"401":
$ref: "../../responses/401.yaml"

View File

@@ -0,0 +1,32 @@
get:
tags:
- Authentication
summary: Get a Transient Token.
description: |
This endpoint provides the caller with a temporary token with the same access level as the caller's token. These tokens are valid for up to 48 hours and are destroyed if the server instance is restarted.
operationId: getTransientToken
parameters:
- name: type
description: "`delegation` - This is the only supported `type` parameter."
in: query
schema:
type: string
enum:
- delegation
required: true
- name: scope
description: "`all` - This is the only supported `scope` parameter."
in: query
schema:
type: string
enum:
- all
required: true
responses:
"200":
description: A Transient Token
"400":
$ref: "../../responses/400.yaml"
"401":
$ref: "../../responses/401.yaml"