mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
fa999ea454 | ||
|
|
b562d2a68e |
@@ -1,12 +1,12 @@
|
||||
lockVersion: 2.0.0
|
||||
id: 16f22cbf-f23f-4419-8924-3a4b06381947
|
||||
management:
|
||||
docChecksum: 45c73686e6dbe8c29b7e2857b6194ccf
|
||||
docChecksum: 1e8e82037a237e1d1467721fbd2c7ab0
|
||||
docVersion: 0.0.3
|
||||
speakeasyVersion: internal
|
||||
generationVersion: 2.237.2
|
||||
releaseVersion: 0.4.1
|
||||
configChecksum: 2bbf5255fdb0ef20c753ed46816eda5b
|
||||
generationVersion: 2.237.3
|
||||
releaseVersion: 0.5.0
|
||||
configChecksum: ad00024d316f6c8b4b52b685d3907cf2
|
||||
repoURL: https://github.com/LukeHagar/plexjs.git
|
||||
repoSubDirectory: .
|
||||
installationURL: https://github.com/LukeHagar/plexjs
|
||||
@@ -19,6 +19,7 @@ features:
|
||||
globalSecurity: 2.82.2
|
||||
globalServerURLs: 2.82.1
|
||||
nameOverrides: 2.81.1
|
||||
unions: 2.85.0
|
||||
generatedFiles:
|
||||
- src/sdk/server.ts
|
||||
- src/sdk/media.ts
|
||||
@@ -181,6 +182,11 @@ generatedFiles:
|
||||
- docs/models/operations/mediacontainer.md
|
||||
- docs/models/operations/getservercapabilitiesresponsebody.md
|
||||
- docs/models/operations/getservercapabilitiesresponse.md
|
||||
- docs/models/operations/two.md
|
||||
- docs/models/operations/one.md
|
||||
- docs/models/operations/setting.md
|
||||
- docs/models/operations/getserverpreferencesmediacontainer.md
|
||||
- docs/models/operations/getserverpreferencesresponsebody.md
|
||||
- docs/models/operations/getserverpreferencesresponse.md
|
||||
- docs/models/operations/server.md
|
||||
- docs/models/operations/getavailableclientsmediacontainer.md
|
||||
@@ -272,6 +278,15 @@ generatedFiles:
|
||||
- docs/models/operations/getlibrariesresponse.md
|
||||
- docs/models/operations/includedetails.md
|
||||
- docs/models/operations/getlibraryrequest.md
|
||||
- docs/models/operations/getlibrarydirectory.md
|
||||
- docs/models/operations/filter.md
|
||||
- docs/models/operations/sort.md
|
||||
- docs/models/operations/field.md
|
||||
- docs/models/operations/getlibrarytype.md
|
||||
- docs/models/operations/operator.md
|
||||
- docs/models/operations/fieldtype.md
|
||||
- docs/models/operations/getlibrarymediacontainer.md
|
||||
- docs/models/operations/getlibraryresponsebody.md
|
||||
- docs/models/operations/getlibraryresponse.md
|
||||
- docs/models/operations/deletelibraryrequest.md
|
||||
- docs/models/operations/deletelibraryresponse.md
|
||||
|
||||
20
RELEASES.md
20
RELEASES.md
@@ -99,3 +99,23 @@ Based on:
|
||||
- [typescript v0.4.1] .
|
||||
### Releases
|
||||
- [NPM v0.4.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.4.1 - .
|
||||
|
||||
## 2024-01-19 17:27:25
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc 0.0.3
|
||||
- Speakeasy CLI 1.147.0 (2.237.2) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [typescript v0.4.2] .
|
||||
### Releases
|
||||
- [NPM v0.4.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.4.2 - .
|
||||
|
||||
## 2024-01-20 03:10:24
|
||||
### Changes
|
||||
Based on:
|
||||
- OpenAPI Doc 0.0.3
|
||||
- Speakeasy CLI 1.148.0 (2.237.3) https://github.com/speakeasy-api/speakeasy
|
||||
### Generated
|
||||
- [typescript v0.5.0] .
|
||||
### Releases
|
||||
- [NPM v0.5.0] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.5.0 - .
|
||||
11
docs/models/operations/field.md
Normal file
11
docs/models/operations/field.md
Normal file
@@ -0,0 +1,11 @@
|
||||
# Field
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||
| `key` | *string* | :heavy_minus_sign: | N/A | label |
|
||||
| `title` | *string* | :heavy_minus_sign: | N/A | Label |
|
||||
| `type` | *string* | :heavy_minus_sign: | N/A | tag |
|
||||
| `subType` | *string* | :heavy_minus_sign: | N/A | bitrate |
|
||||
9
docs/models/operations/fieldtype.md
Normal file
9
docs/models/operations/fieldtype.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# FieldType
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ | ------------------------------------------------------------ |
|
||||
| `type` | *string* | :heavy_minus_sign: | N/A | resolution |
|
||||
| `operator` | [operations.Operator](../../models/operations/operator.md)[] | :heavy_minus_sign: | N/A | [{"key":"=","title":"is"}] |
|
||||
12
docs/models/operations/filter.md
Normal file
12
docs/models/operations/filter.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# Filter
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------- | ------------------------- | ------------------------- | ------------------------- | ------------------------- |
|
||||
| `filter` | *string* | :heavy_minus_sign: | N/A | label |
|
||||
| `filterType` | *string* | :heavy_minus_sign: | N/A | string |
|
||||
| `key` | *string* | :heavy_minus_sign: | N/A | /library/sections/1/label |
|
||||
| `title` | *string* | :heavy_minus_sign: | N/A | Labels |
|
||||
| `type` | *string* | :heavy_minus_sign: | N/A | filter |
|
||||
12
docs/models/operations/getlibrarydirectory.md
Normal file
12
docs/models/operations/getlibrarydirectory.md
Normal file
@@ -0,0 +1,12 @@
|
||||
# GetLibraryDirectory
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||
| `key` | *string* | :heavy_minus_sign: | N/A | search?type=1 |
|
||||
| `title` | *string* | :heavy_minus_sign: | N/A | Search... |
|
||||
| `secondary` | *boolean* | :heavy_minus_sign: | N/A | true |
|
||||
| `prompt` | *string* | :heavy_minus_sign: | N/A | Search Movies |
|
||||
| `search` | *boolean* | :heavy_minus_sign: | N/A | true |
|
||||
22
docs/models/operations/getlibrarymediacontainer.md
Normal file
22
docs/models/operations/getlibrarymediacontainer.md
Normal file
File diff suppressed because one or more lines are too long
@@ -4,7 +4,8 @@
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||
| -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------- |
|
||||
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
||||
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
||||
| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
||||
| `object` | [operations.GetLibraryResponseBody](../../models/operations/getlibraryresponsebody.md) | :heavy_minus_sign: | The details of the library |
|
||||
10
docs/models/operations/getlibraryresponsebody.md
Normal file
10
docs/models/operations/getlibraryresponsebody.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# GetLibraryResponseBody
|
||||
|
||||
The details of the library
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------ |
|
||||
| `mediaContainer` | [operations.GetLibraryMediaContainer](../../models/operations/getlibrarymediacontainer.md) | :heavy_minus_sign: | N/A |
|
||||
14
docs/models/operations/getlibrarytype.md
Normal file
14
docs/models/operations/getlibrarytype.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# GetLibraryType
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `key` | *string* | :heavy_minus_sign: | N/A | /library/sections/1/all?type=1 |
|
||||
| `type` | *string* | :heavy_minus_sign: | N/A | movie |
|
||||
| `title` | *string* | :heavy_minus_sign: | N/A | Movies |
|
||||
| `active` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||
| `filter` | [operations.Filter](../../models/operations/filter.md)[] | :heavy_minus_sign: | N/A | [{"filter":"label","filterType":"string","key":"/library/sections/1/label","title":"Labels","type":"filter"}] |
|
||||
| `sort` | [operations.Sort](../../models/operations/sort.md)[] | :heavy_minus_sign: | N/A | [{"default":"asc","defaultDirection":"desc","descKey":"random:desc","firstCharacterKey":"/library/sections/1/firstCharacter","key":"random","title":"Randomly"}] |
|
||||
| `field` | [operations.Field](../../models/operations/field.md)[] | :heavy_minus_sign: | N/A | [{"key":"label","subType":"bitrate","title":"Label","type":"tag"}] |
|
||||
@@ -0,0 +1,9 @@
|
||||
# GetServerPreferencesMediaContainer
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `size` | *number* | :heavy_minus_sign: | N/A | 161 |
|
||||
| `setting` | *operations.Setting*[] | :heavy_minus_sign: | N/A | [{"advanced":false,"default":"","group":"general","hidden":false,"id":"FriendlyName","label":"Friendly name","summary":"This name will be used to identify this media server to other computers on your network. If you leave it blank, your computer's name will be used instead.","type":"text","value":"Hera"},{"advanced":false,"default":3600,"enumValues":"900:every 15 minutes\|1800:every 30 minutes\|3600:hourly\|7200:every 2 hours\|21600:every 6 hours\|43200:every 12 hours\|86400:daily","group":"library","hidden":false,"id":"ScheduledLibraryUpdateInterval","label":"Library scan interval","summary":"","type":"int","value":3600}] |
|
||||
@@ -4,7 +4,8 @@
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- | --------------------------------------------------------------------- |
|
||||
| ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------- |
|
||||
| `contentType` | *string* | :heavy_check_mark: | HTTP response content type for this operation |
|
||||
| `statusCode` | *number* | :heavy_check_mark: | HTTP response status code for this operation |
|
||||
| `rawResponse` | [Response](https://developer.mozilla.org/en-US/docs/Web/API/Response) | :heavy_check_mark: | Raw HTTP response; suitable for custom response parsing |
|
||||
| `object` | [operations.GetServerPreferencesResponseBody](../../models/operations/getserverpreferencesresponsebody.md) | :heavy_minus_sign: | Server Preferences |
|
||||
10
docs/models/operations/getserverpreferencesresponsebody.md
Normal file
10
docs/models/operations/getserverpreferencesresponsebody.md
Normal file
@@ -0,0 +1,10 @@
|
||||
# GetServerPreferencesResponseBody
|
||||
|
||||
Server Preferences
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description |
|
||||
| -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------- |
|
||||
| `mediaContainer` | [operations.GetServerPreferencesMediaContainer](../../models/operations/getserverpreferencesmediacontainer.md) | :heavy_minus_sign: | N/A |
|
||||
16
docs/models/operations/one.md
Normal file
16
docs/models/operations/one.md
Normal file
@@ -0,0 +1,16 @@
|
||||
# One
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `id` | *string* | :heavy_minus_sign: | N/A | FriendlyName |
|
||||
| `label` | *string* | :heavy_minus_sign: | N/A | Friendly name |
|
||||
| `summary` | *string* | :heavy_minus_sign: | N/A | This name will be used to identify this media server to other computers on your network. If you leave it blank, your computer's name will be used instead. |
|
||||
| `type` | *string* | :heavy_minus_sign: | N/A | text |
|
||||
| `default` | *string* | :heavy_minus_sign: | N/A | |
|
||||
| `value` | *string* | :heavy_minus_sign: | N/A | Hera |
|
||||
| `hidden` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||
| `advanced` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||
| `group` | *string* | :heavy_minus_sign: | N/A | general |
|
||||
9
docs/models/operations/operator.md
Normal file
9
docs/models/operations/operator.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Operator
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------ | ------------------ | ------------------ | ------------------ | ------------------ |
|
||||
| `key` | *string* | :heavy_minus_sign: | N/A | = |
|
||||
| `title` | *string* | :heavy_minus_sign: | N/A | is |
|
||||
2
docs/models/operations/setting.md
Normal file
2
docs/models/operations/setting.md
Normal file
@@ -0,0 +1,2 @@
|
||||
# Setting
|
||||
|
||||
13
docs/models/operations/sort.md
Normal file
13
docs/models/operations/sort.md
Normal file
@@ -0,0 +1,13 @@
|
||||
# Sort
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- | ---------------------------------- |
|
||||
| `default` | *string* | :heavy_minus_sign: | N/A | asc |
|
||||
| `defaultDirection` | *string* | :heavy_minus_sign: | N/A | desc |
|
||||
| `descKey` | *string* | :heavy_minus_sign: | N/A | random:desc |
|
||||
| `firstCharacterKey` | *string* | :heavy_minus_sign: | N/A | /library/sections/1/firstCharacter |
|
||||
| `key` | *string* | :heavy_minus_sign: | N/A | random |
|
||||
| `title` | *string* | :heavy_minus_sign: | N/A | Randomly |
|
||||
17
docs/models/operations/two.md
Normal file
17
docs/models/operations/two.md
Normal file
@@ -0,0 +1,17 @@
|
||||
# Two
|
||||
|
||||
|
||||
## Fields
|
||||
|
||||
| Field | Type | Required | Description | Example |
|
||||
| ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| `id` | *string* | :heavy_minus_sign: | N/A | ScheduledLibraryUpdateInterval |
|
||||
| `label` | *string* | :heavy_minus_sign: | N/A | Library scan interval |
|
||||
| `summary` | *string* | :heavy_minus_sign: | N/A | |
|
||||
| `type` | *string* | :heavy_minus_sign: | N/A | int |
|
||||
| `default` | *number* | :heavy_minus_sign: | N/A | 3600 |
|
||||
| `value` | *number* | :heavy_minus_sign: | N/A | 3600 |
|
||||
| `hidden` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||
| `advanced` | *boolean* | :heavy_minus_sign: | N/A | false |
|
||||
| `group` | *string* | :heavy_minus_sign: | N/A | library |
|
||||
| `enumValues` | *string* | :heavy_minus_sign: | N/A | 900:every 15 minutes\|1800:every 30 minutes\|3600:hourly\|7200:every 2 hours\|21600:every 6 hours\|43200:every 12 hours\|86400:daily |
|
||||
2
gen.yaml
2
gen.yaml
@@ -8,7 +8,7 @@ generation:
|
||||
fixes:
|
||||
nameResolutionDec2023: false
|
||||
typescript:
|
||||
version: 0.4.1
|
||||
version: 0.5.0
|
||||
author: LukeHagar
|
||||
clientServerStatusCodesAsErrors: true
|
||||
flattenGlobalSecurity: true
|
||||
|
||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
||||
{
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.4.1",
|
||||
"version": "0.5.0",
|
||||
"lockfileVersion": 3,
|
||||
"requires": true,
|
||||
"packages": {
|
||||
"": {
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.4.1",
|
||||
"version": "0.5.0",
|
||||
"dependencies": {
|
||||
"decimal.js": "^10.4.3",
|
||||
"jsonpath": "^1.1.1"
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"type": "commonjs",
|
||||
"name": "@lukehagar/plexjs",
|
||||
"version": "0.4.1",
|
||||
"version": "0.5.0",
|
||||
"author": "LukeHagar",
|
||||
"main": "./index.js",
|
||||
"sideEffects": false,
|
||||
|
||||
@@ -79,7 +79,7 @@ export function serverURLFromOptions(options: SDKOptions): URL {
|
||||
export const SDK_METADATA = Object.freeze({
|
||||
language: "typescript",
|
||||
openapiDocVersion: "0.0.3",
|
||||
sdkVersion: "0.4.1",
|
||||
genVersion: "2.237.2",
|
||||
userAgent: "speakeasy-sdk/typescript 0.4.1 2.237.2 0.0.3 @lukehagar/plexjs",
|
||||
sdkVersion: "0.5.0",
|
||||
genVersion: "2.237.3",
|
||||
userAgent: "speakeasy-sdk/typescript 0.5.0 2.237.3 0.0.3 @lukehagar/plexjs",
|
||||
});
|
||||
|
||||
@@ -31,6 +31,83 @@ export type GetLibraryRequest = {
|
||||
includeDetails?: IncludeDetails | undefined;
|
||||
};
|
||||
|
||||
export type GetLibraryDirectory = {
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
secondary?: boolean | undefined;
|
||||
prompt?: string | undefined;
|
||||
search?: boolean | undefined;
|
||||
};
|
||||
|
||||
export type Filter = {
|
||||
filter?: string | undefined;
|
||||
filterType?: string | undefined;
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
type?: string | undefined;
|
||||
};
|
||||
|
||||
export type Sort = {
|
||||
default?: string | undefined;
|
||||
defaultDirection?: string | undefined;
|
||||
descKey?: string | undefined;
|
||||
firstCharacterKey?: string | undefined;
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
};
|
||||
|
||||
export type Field = {
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
type?: string | undefined;
|
||||
subType?: string | undefined;
|
||||
};
|
||||
|
||||
export type GetLibraryType = {
|
||||
key?: string | undefined;
|
||||
type?: string | undefined;
|
||||
title?: string | undefined;
|
||||
active?: boolean | undefined;
|
||||
filter?: Array<Filter> | undefined;
|
||||
sort?: Array<Sort> | undefined;
|
||||
field?: Array<Field> | undefined;
|
||||
};
|
||||
|
||||
export type Operator = {
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
};
|
||||
|
||||
export type FieldType = {
|
||||
type?: string | undefined;
|
||||
operator?: Array<Operator> | undefined;
|
||||
};
|
||||
|
||||
export type GetLibraryMediaContainer = {
|
||||
size?: number | undefined;
|
||||
allowSync?: boolean | undefined;
|
||||
art?: string | undefined;
|
||||
content?: string | undefined;
|
||||
identifier?: string | undefined;
|
||||
librarySectionID?: number | undefined;
|
||||
mediaTagPrefix?: string | undefined;
|
||||
mediaTagVersion?: number | undefined;
|
||||
thumb?: string | undefined;
|
||||
title1?: string | undefined;
|
||||
viewGroup?: string | undefined;
|
||||
viewMode?: number | undefined;
|
||||
directory?: Array<GetLibraryDirectory> | undefined;
|
||||
type?: Array<GetLibraryType> | undefined;
|
||||
fieldType?: Array<FieldType> | undefined;
|
||||
};
|
||||
|
||||
/**
|
||||
* The details of the library
|
||||
*/
|
||||
export type GetLibraryResponseBody = {
|
||||
mediaContainer?: GetLibraryMediaContainer | undefined;
|
||||
};
|
||||
|
||||
export type GetLibraryResponse = {
|
||||
/**
|
||||
* HTTP response content type for this operation
|
||||
@@ -44,6 +121,10 @@ export type GetLibraryResponse = {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
rawResponse: Response;
|
||||
/**
|
||||
* The details of the library
|
||||
*/
|
||||
object?: GetLibraryResponseBody | undefined;
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
@@ -86,12 +167,536 @@ export namespace GetLibraryRequest$ {
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace GetLibraryDirectory$ {
|
||||
export type Inbound = {
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
secondary?: boolean | undefined;
|
||||
prompt?: string | undefined;
|
||||
search?: boolean | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<GetLibraryDirectory, z.ZodTypeDef, Inbound> = z
|
||||
.object({
|
||||
key: z.string().optional(),
|
||||
title: z.string().optional(),
|
||||
secondary: z.boolean().optional(),
|
||||
prompt: z.string().optional(),
|
||||
search: z.boolean().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.key === undefined ? null : { key: v.key }),
|
||||
...(v.title === undefined ? null : { title: v.title }),
|
||||
...(v.secondary === undefined ? null : { secondary: v.secondary }),
|
||||
...(v.prompt === undefined ? null : { prompt: v.prompt }),
|
||||
...(v.search === undefined ? null : { search: v.search }),
|
||||
};
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
secondary?: boolean | undefined;
|
||||
prompt?: string | undefined;
|
||||
search?: boolean | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryDirectory> = z
|
||||
.object({
|
||||
key: z.string().optional(),
|
||||
title: z.string().optional(),
|
||||
secondary: z.boolean().optional(),
|
||||
prompt: z.string().optional(),
|
||||
search: z.boolean().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.key === undefined ? null : { key: v.key }),
|
||||
...(v.title === undefined ? null : { title: v.title }),
|
||||
...(v.secondary === undefined ? null : { secondary: v.secondary }),
|
||||
...(v.prompt === undefined ? null : { prompt: v.prompt }),
|
||||
...(v.search === undefined ? null : { search: v.search }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace Filter$ {
|
||||
export type Inbound = {
|
||||
filter?: string | undefined;
|
||||
filterType?: string | undefined;
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
type?: string | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<Filter, z.ZodTypeDef, Inbound> = z
|
||||
.object({
|
||||
filter: z.string().optional(),
|
||||
filterType: z.string().optional(),
|
||||
key: z.string().optional(),
|
||||
title: z.string().optional(),
|
||||
type: z.string().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.filter === undefined ? null : { filter: v.filter }),
|
||||
...(v.filterType === undefined ? null : { filterType: v.filterType }),
|
||||
...(v.key === undefined ? null : { key: v.key }),
|
||||
...(v.title === undefined ? null : { title: v.title }),
|
||||
...(v.type === undefined ? null : { type: v.type }),
|
||||
};
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
filter?: string | undefined;
|
||||
filterType?: string | undefined;
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
type?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Filter> = z
|
||||
.object({
|
||||
filter: z.string().optional(),
|
||||
filterType: z.string().optional(),
|
||||
key: z.string().optional(),
|
||||
title: z.string().optional(),
|
||||
type: z.string().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.filter === undefined ? null : { filter: v.filter }),
|
||||
...(v.filterType === undefined ? null : { filterType: v.filterType }),
|
||||
...(v.key === undefined ? null : { key: v.key }),
|
||||
...(v.title === undefined ? null : { title: v.title }),
|
||||
...(v.type === undefined ? null : { type: v.type }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace Sort$ {
|
||||
export type Inbound = {
|
||||
default?: string | undefined;
|
||||
defaultDirection?: string | undefined;
|
||||
descKey?: string | undefined;
|
||||
firstCharacterKey?: string | undefined;
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<Sort, z.ZodTypeDef, Inbound> = z
|
||||
.object({
|
||||
default: z.string().optional(),
|
||||
defaultDirection: z.string().optional(),
|
||||
descKey: z.string().optional(),
|
||||
firstCharacterKey: z.string().optional(),
|
||||
key: z.string().optional(),
|
||||
title: z.string().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.default === undefined ? null : { default: v.default }),
|
||||
...(v.defaultDirection === undefined
|
||||
? null
|
||||
: { defaultDirection: v.defaultDirection }),
|
||||
...(v.descKey === undefined ? null : { descKey: v.descKey }),
|
||||
...(v.firstCharacterKey === undefined
|
||||
? null
|
||||
: { firstCharacterKey: v.firstCharacterKey }),
|
||||
...(v.key === undefined ? null : { key: v.key }),
|
||||
...(v.title === undefined ? null : { title: v.title }),
|
||||
};
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
default?: string | undefined;
|
||||
defaultDirection?: string | undefined;
|
||||
descKey?: string | undefined;
|
||||
firstCharacterKey?: string | undefined;
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Sort> = z
|
||||
.object({
|
||||
default: z.string().optional(),
|
||||
defaultDirection: z.string().optional(),
|
||||
descKey: z.string().optional(),
|
||||
firstCharacterKey: z.string().optional(),
|
||||
key: z.string().optional(),
|
||||
title: z.string().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.default === undefined ? null : { default: v.default }),
|
||||
...(v.defaultDirection === undefined
|
||||
? null
|
||||
: { defaultDirection: v.defaultDirection }),
|
||||
...(v.descKey === undefined ? null : { descKey: v.descKey }),
|
||||
...(v.firstCharacterKey === undefined
|
||||
? null
|
||||
: { firstCharacterKey: v.firstCharacterKey }),
|
||||
...(v.key === undefined ? null : { key: v.key }),
|
||||
...(v.title === undefined ? null : { title: v.title }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace Field$ {
|
||||
export type Inbound = {
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
type?: string | undefined;
|
||||
subType?: string | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<Field, z.ZodTypeDef, Inbound> = z
|
||||
.object({
|
||||
key: z.string().optional(),
|
||||
title: z.string().optional(),
|
||||
type: z.string().optional(),
|
||||
subType: z.string().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.key === undefined ? null : { key: v.key }),
|
||||
...(v.title === undefined ? null : { title: v.title }),
|
||||
...(v.type === undefined ? null : { type: v.type }),
|
||||
...(v.subType === undefined ? null : { subType: v.subType }),
|
||||
};
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
type?: string | undefined;
|
||||
subType?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Field> = z
|
||||
.object({
|
||||
key: z.string().optional(),
|
||||
title: z.string().optional(),
|
||||
type: z.string().optional(),
|
||||
subType: z.string().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.key === undefined ? null : { key: v.key }),
|
||||
...(v.title === undefined ? null : { title: v.title }),
|
||||
...(v.type === undefined ? null : { type: v.type }),
|
||||
...(v.subType === undefined ? null : { subType: v.subType }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace GetLibraryType$ {
|
||||
export type Inbound = {
|
||||
key?: string | undefined;
|
||||
type?: string | undefined;
|
||||
title?: string | undefined;
|
||||
active?: boolean | undefined;
|
||||
Filter?: Array<Filter$.Inbound> | undefined;
|
||||
Sort?: Array<Sort$.Inbound> | undefined;
|
||||
Field?: Array<Field$.Inbound> | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<GetLibraryType, z.ZodTypeDef, Inbound> = z
|
||||
.object({
|
||||
key: z.string().optional(),
|
||||
type: z.string().optional(),
|
||||
title: z.string().optional(),
|
||||
active: z.boolean().optional(),
|
||||
Filter: z.array(z.lazy(() => Filter$.inboundSchema)).optional(),
|
||||
Sort: z.array(z.lazy(() => Sort$.inboundSchema)).optional(),
|
||||
Field: z.array(z.lazy(() => Field$.inboundSchema)).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.key === undefined ? null : { key: v.key }),
|
||||
...(v.type === undefined ? null : { type: v.type }),
|
||||
...(v.title === undefined ? null : { title: v.title }),
|
||||
...(v.active === undefined ? null : { active: v.active }),
|
||||
...(v.Filter === undefined ? null : { filter: v.Filter }),
|
||||
...(v.Sort === undefined ? null : { sort: v.Sort }),
|
||||
...(v.Field === undefined ? null : { field: v.Field }),
|
||||
};
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
key?: string | undefined;
|
||||
type?: string | undefined;
|
||||
title?: string | undefined;
|
||||
active?: boolean | undefined;
|
||||
Filter?: Array<Filter$.Outbound> | undefined;
|
||||
Sort?: Array<Sort$.Outbound> | undefined;
|
||||
Field?: Array<Field$.Outbound> | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryType> = z
|
||||
.object({
|
||||
key: z.string().optional(),
|
||||
type: z.string().optional(),
|
||||
title: z.string().optional(),
|
||||
active: z.boolean().optional(),
|
||||
filter: z.array(z.lazy(() => Filter$.outboundSchema)).optional(),
|
||||
sort: z.array(z.lazy(() => Sort$.outboundSchema)).optional(),
|
||||
field: z.array(z.lazy(() => Field$.outboundSchema)).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.key === undefined ? null : { key: v.key }),
|
||||
...(v.type === undefined ? null : { type: v.type }),
|
||||
...(v.title === undefined ? null : { title: v.title }),
|
||||
...(v.active === undefined ? null : { active: v.active }),
|
||||
...(v.filter === undefined ? null : { Filter: v.filter }),
|
||||
...(v.sort === undefined ? null : { Sort: v.sort }),
|
||||
...(v.field === undefined ? null : { Field: v.field }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace Operator$ {
|
||||
export type Inbound = {
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<Operator, z.ZodTypeDef, Inbound> = z
|
||||
.object({
|
||||
key: z.string().optional(),
|
||||
title: z.string().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.key === undefined ? null : { key: v.key }),
|
||||
...(v.title === undefined ? null : { title: v.title }),
|
||||
};
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
key?: string | undefined;
|
||||
title?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Operator> = z
|
||||
.object({
|
||||
key: z.string().optional(),
|
||||
title: z.string().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.key === undefined ? null : { key: v.key }),
|
||||
...(v.title === undefined ? null : { title: v.title }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace FieldType$ {
|
||||
export type Inbound = {
|
||||
type?: string | undefined;
|
||||
Operator?: Array<Operator$.Inbound> | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<FieldType, z.ZodTypeDef, Inbound> = z
|
||||
.object({
|
||||
type: z.string().optional(),
|
||||
Operator: z.array(z.lazy(() => Operator$.inboundSchema)).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.type === undefined ? null : { type: v.type }),
|
||||
...(v.Operator === undefined ? null : { operator: v.Operator }),
|
||||
};
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
type?: string | undefined;
|
||||
Operator?: Array<Operator$.Outbound> | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, FieldType> = z
|
||||
.object({
|
||||
type: z.string().optional(),
|
||||
operator: z.array(z.lazy(() => Operator$.outboundSchema)).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.type === undefined ? null : { type: v.type }),
|
||||
...(v.operator === undefined ? null : { Operator: v.operator }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace GetLibraryMediaContainer$ {
|
||||
export type Inbound = {
|
||||
size?: number | undefined;
|
||||
allowSync?: boolean | undefined;
|
||||
art?: string | undefined;
|
||||
content?: string | undefined;
|
||||
identifier?: string | undefined;
|
||||
librarySectionID?: number | undefined;
|
||||
mediaTagPrefix?: string | undefined;
|
||||
mediaTagVersion?: number | undefined;
|
||||
thumb?: string | undefined;
|
||||
title1?: string | undefined;
|
||||
viewGroup?: string | undefined;
|
||||
viewMode?: number | undefined;
|
||||
Directory?: Array<GetLibraryDirectory$.Inbound> | undefined;
|
||||
Type?: Array<GetLibraryType$.Inbound> | undefined;
|
||||
FieldType?: Array<FieldType$.Inbound> | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<GetLibraryMediaContainer, z.ZodTypeDef, Inbound> = z
|
||||
.object({
|
||||
size: z.number().int().optional(),
|
||||
allowSync: z.boolean().optional(),
|
||||
art: z.string().optional(),
|
||||
content: z.string().optional(),
|
||||
identifier: z.string().optional(),
|
||||
librarySectionID: z.number().int().optional(),
|
||||
mediaTagPrefix: z.string().optional(),
|
||||
mediaTagVersion: z.number().int().optional(),
|
||||
thumb: z.string().optional(),
|
||||
title1: z.string().optional(),
|
||||
viewGroup: z.string().optional(),
|
||||
viewMode: z.number().int().optional(),
|
||||
Directory: z.array(z.lazy(() => GetLibraryDirectory$.inboundSchema)).optional(),
|
||||
Type: z.array(z.lazy(() => GetLibraryType$.inboundSchema)).optional(),
|
||||
FieldType: z.array(z.lazy(() => FieldType$.inboundSchema)).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.size === undefined ? null : { size: v.size }),
|
||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
||||
...(v.art === undefined ? null : { art: v.art }),
|
||||
...(v.content === undefined ? null : { content: v.content }),
|
||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
||||
...(v.librarySectionID === undefined
|
||||
? null
|
||||
: { librarySectionID: v.librarySectionID }),
|
||||
...(v.mediaTagPrefix === undefined ? null : { mediaTagPrefix: v.mediaTagPrefix }),
|
||||
...(v.mediaTagVersion === undefined
|
||||
? null
|
||||
: { mediaTagVersion: v.mediaTagVersion }),
|
||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
||||
...(v.title1 === undefined ? null : { title1: v.title1 }),
|
||||
...(v.viewGroup === undefined ? null : { viewGroup: v.viewGroup }),
|
||||
...(v.viewMode === undefined ? null : { viewMode: v.viewMode }),
|
||||
...(v.Directory === undefined ? null : { directory: v.Directory }),
|
||||
...(v.Type === undefined ? null : { type: v.Type }),
|
||||
...(v.FieldType === undefined ? null : { fieldType: v.FieldType }),
|
||||
};
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
size?: number | undefined;
|
||||
allowSync?: boolean | undefined;
|
||||
art?: string | undefined;
|
||||
content?: string | undefined;
|
||||
identifier?: string | undefined;
|
||||
librarySectionID?: number | undefined;
|
||||
mediaTagPrefix?: string | undefined;
|
||||
mediaTagVersion?: number | undefined;
|
||||
thumb?: string | undefined;
|
||||
title1?: string | undefined;
|
||||
viewGroup?: string | undefined;
|
||||
viewMode?: number | undefined;
|
||||
Directory?: Array<GetLibraryDirectory$.Outbound> | undefined;
|
||||
Type?: Array<GetLibraryType$.Outbound> | undefined;
|
||||
FieldType?: Array<FieldType$.Outbound> | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryMediaContainer> = z
|
||||
.object({
|
||||
size: z.number().int().optional(),
|
||||
allowSync: z.boolean().optional(),
|
||||
art: z.string().optional(),
|
||||
content: z.string().optional(),
|
||||
identifier: z.string().optional(),
|
||||
librarySectionID: z.number().int().optional(),
|
||||
mediaTagPrefix: z.string().optional(),
|
||||
mediaTagVersion: z.number().int().optional(),
|
||||
thumb: z.string().optional(),
|
||||
title1: z.string().optional(),
|
||||
viewGroup: z.string().optional(),
|
||||
viewMode: z.number().int().optional(),
|
||||
directory: z.array(z.lazy(() => GetLibraryDirectory$.outboundSchema)).optional(),
|
||||
type: z.array(z.lazy(() => GetLibraryType$.outboundSchema)).optional(),
|
||||
fieldType: z.array(z.lazy(() => FieldType$.outboundSchema)).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.size === undefined ? null : { size: v.size }),
|
||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
||||
...(v.art === undefined ? null : { art: v.art }),
|
||||
...(v.content === undefined ? null : { content: v.content }),
|
||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
||||
...(v.librarySectionID === undefined
|
||||
? null
|
||||
: { librarySectionID: v.librarySectionID }),
|
||||
...(v.mediaTagPrefix === undefined ? null : { mediaTagPrefix: v.mediaTagPrefix }),
|
||||
...(v.mediaTagVersion === undefined
|
||||
? null
|
||||
: { mediaTagVersion: v.mediaTagVersion }),
|
||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
||||
...(v.title1 === undefined ? null : { title1: v.title1 }),
|
||||
...(v.viewGroup === undefined ? null : { viewGroup: v.viewGroup }),
|
||||
...(v.viewMode === undefined ? null : { viewMode: v.viewMode }),
|
||||
...(v.directory === undefined ? null : { Directory: v.directory }),
|
||||
...(v.type === undefined ? null : { Type: v.type }),
|
||||
...(v.fieldType === undefined ? null : { FieldType: v.fieldType }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace GetLibraryResponseBody$ {
|
||||
export type Inbound = {
|
||||
MediaContainer?: GetLibraryMediaContainer$.Inbound | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<GetLibraryResponseBody, z.ZodTypeDef, Inbound> = z
|
||||
.object({
|
||||
MediaContainer: z.lazy(() => GetLibraryMediaContainer$.inboundSchema).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.MediaContainer === undefined ? null : { mediaContainer: v.MediaContainer }),
|
||||
};
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
MediaContainer?: GetLibraryMediaContainer$.Outbound | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryResponseBody> = z
|
||||
.object({
|
||||
mediaContainer: z.lazy(() => GetLibraryMediaContainer$.outboundSchema).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace GetLibraryResponse$ {
|
||||
export type Inbound = {
|
||||
ContentType: string;
|
||||
StatusCode: number;
|
||||
RawResponse: Response;
|
||||
object?: GetLibraryResponseBody$.Inbound | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<GetLibraryResponse, z.ZodTypeDef, Inbound> = z
|
||||
@@ -99,12 +704,14 @@ export namespace GetLibraryResponse$ {
|
||||
ContentType: z.string(),
|
||||
StatusCode: z.number().int(),
|
||||
RawResponse: z.instanceof(Response),
|
||||
object: z.lazy(() => GetLibraryResponseBody$.inboundSchema).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
contentType: v.ContentType,
|
||||
statusCode: v.StatusCode,
|
||||
rawResponse: v.RawResponse,
|
||||
...(v.object === undefined ? null : { object: v.object }),
|
||||
};
|
||||
});
|
||||
|
||||
@@ -112,6 +719,7 @@ export namespace GetLibraryResponse$ {
|
||||
ContentType: string;
|
||||
StatusCode: number;
|
||||
RawResponse: never;
|
||||
object?: GetLibraryResponseBody$.Outbound | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryResponse> = z
|
||||
@@ -121,12 +729,14 @@ export namespace GetLibraryResponse$ {
|
||||
rawResponse: z.instanceof(Response).transform(() => {
|
||||
throw new Error("Response cannot be serialized");
|
||||
}),
|
||||
object: z.lazy(() => GetLibraryResponseBody$.outboundSchema).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
ContentType: v.contentType,
|
||||
StatusCode: v.statusCode,
|
||||
RawResponse: v.rawResponse,
|
||||
...(v.object === undefined ? null : { object: v.object }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
@@ -4,6 +4,45 @@
|
||||
|
||||
import { z } from "zod";
|
||||
|
||||
export type Two = {
|
||||
id?: string | undefined;
|
||||
label?: string | undefined;
|
||||
summary?: string | undefined;
|
||||
type?: string | undefined;
|
||||
default?: number | undefined;
|
||||
value?: number | undefined;
|
||||
hidden?: boolean | undefined;
|
||||
advanced?: boolean | undefined;
|
||||
group?: string | undefined;
|
||||
enumValues?: string | undefined;
|
||||
};
|
||||
|
||||
export type One = {
|
||||
id?: string | undefined;
|
||||
label?: string | undefined;
|
||||
summary?: string | undefined;
|
||||
type?: string | undefined;
|
||||
default?: string | undefined;
|
||||
value?: string | undefined;
|
||||
hidden?: boolean | undefined;
|
||||
advanced?: boolean | undefined;
|
||||
group?: string | undefined;
|
||||
};
|
||||
|
||||
export type Setting = One | Two;
|
||||
|
||||
export type GetServerPreferencesMediaContainer = {
|
||||
size?: number | undefined;
|
||||
setting?: Array<One | Two> | undefined;
|
||||
};
|
||||
|
||||
/**
|
||||
* Server Preferences
|
||||
*/
|
||||
export type GetServerPreferencesResponseBody = {
|
||||
mediaContainer?: GetServerPreferencesMediaContainer | undefined;
|
||||
};
|
||||
|
||||
export type GetServerPreferencesResponse = {
|
||||
/**
|
||||
* HTTP response content type for this operation
|
||||
@@ -17,14 +56,295 @@ export type GetServerPreferencesResponse = {
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
rawResponse: Response;
|
||||
/**
|
||||
* Server Preferences
|
||||
*/
|
||||
object?: GetServerPreferencesResponseBody | undefined;
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
export namespace Two$ {
|
||||
export type Inbound = {
|
||||
id?: string | undefined;
|
||||
label?: string | undefined;
|
||||
summary?: string | undefined;
|
||||
type?: string | undefined;
|
||||
default?: number | undefined;
|
||||
value?: number | undefined;
|
||||
hidden?: boolean | undefined;
|
||||
advanced?: boolean | undefined;
|
||||
group?: string | undefined;
|
||||
enumValues?: string | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<Two, z.ZodTypeDef, Inbound> = z
|
||||
.object({
|
||||
id: z.string().optional(),
|
||||
label: z.string().optional(),
|
||||
summary: z.string().optional(),
|
||||
type: z.string().optional(),
|
||||
default: z.number().int().optional(),
|
||||
value: z.number().int().optional(),
|
||||
hidden: z.boolean().optional(),
|
||||
advanced: z.boolean().optional(),
|
||||
group: z.string().optional(),
|
||||
enumValues: z.string().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.id === undefined ? null : { id: v.id }),
|
||||
...(v.label === undefined ? null : { label: v.label }),
|
||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
||||
...(v.type === undefined ? null : { type: v.type }),
|
||||
...(v.default === undefined ? null : { default: v.default }),
|
||||
...(v.value === undefined ? null : { value: v.value }),
|
||||
...(v.hidden === undefined ? null : { hidden: v.hidden }),
|
||||
...(v.advanced === undefined ? null : { advanced: v.advanced }),
|
||||
...(v.group === undefined ? null : { group: v.group }),
|
||||
...(v.enumValues === undefined ? null : { enumValues: v.enumValues }),
|
||||
};
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
id?: string | undefined;
|
||||
label?: string | undefined;
|
||||
summary?: string | undefined;
|
||||
type?: string | undefined;
|
||||
default?: number | undefined;
|
||||
value?: number | undefined;
|
||||
hidden?: boolean | undefined;
|
||||
advanced?: boolean | undefined;
|
||||
group?: string | undefined;
|
||||
enumValues?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Two> = z
|
||||
.object({
|
||||
id: z.string().optional(),
|
||||
label: z.string().optional(),
|
||||
summary: z.string().optional(),
|
||||
type: z.string().optional(),
|
||||
default: z.number().int().optional(),
|
||||
value: z.number().int().optional(),
|
||||
hidden: z.boolean().optional(),
|
||||
advanced: z.boolean().optional(),
|
||||
group: z.string().optional(),
|
||||
enumValues: z.string().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.id === undefined ? null : { id: v.id }),
|
||||
...(v.label === undefined ? null : { label: v.label }),
|
||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
||||
...(v.type === undefined ? null : { type: v.type }),
|
||||
...(v.default === undefined ? null : { default: v.default }),
|
||||
...(v.value === undefined ? null : { value: v.value }),
|
||||
...(v.hidden === undefined ? null : { hidden: v.hidden }),
|
||||
...(v.advanced === undefined ? null : { advanced: v.advanced }),
|
||||
...(v.group === undefined ? null : { group: v.group }),
|
||||
...(v.enumValues === undefined ? null : { enumValues: v.enumValues }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace One$ {
|
||||
export type Inbound = {
|
||||
id?: string | undefined;
|
||||
label?: string | undefined;
|
||||
summary?: string | undefined;
|
||||
type?: string | undefined;
|
||||
default?: string | undefined;
|
||||
value?: string | undefined;
|
||||
hidden?: boolean | undefined;
|
||||
advanced?: boolean | undefined;
|
||||
group?: string | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<One, z.ZodTypeDef, Inbound> = z
|
||||
.object({
|
||||
id: z.string().optional(),
|
||||
label: z.string().optional(),
|
||||
summary: z.string().optional(),
|
||||
type: z.string().optional(),
|
||||
default: z.string().optional(),
|
||||
value: z.string().optional(),
|
||||
hidden: z.boolean().optional(),
|
||||
advanced: z.boolean().optional(),
|
||||
group: z.string().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.id === undefined ? null : { id: v.id }),
|
||||
...(v.label === undefined ? null : { label: v.label }),
|
||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
||||
...(v.type === undefined ? null : { type: v.type }),
|
||||
...(v.default === undefined ? null : { default: v.default }),
|
||||
...(v.value === undefined ? null : { value: v.value }),
|
||||
...(v.hidden === undefined ? null : { hidden: v.hidden }),
|
||||
...(v.advanced === undefined ? null : { advanced: v.advanced }),
|
||||
...(v.group === undefined ? null : { group: v.group }),
|
||||
};
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
id?: string | undefined;
|
||||
label?: string | undefined;
|
||||
summary?: string | undefined;
|
||||
type?: string | undefined;
|
||||
default?: string | undefined;
|
||||
value?: string | undefined;
|
||||
hidden?: boolean | undefined;
|
||||
advanced?: boolean | undefined;
|
||||
group?: string | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, One> = z
|
||||
.object({
|
||||
id: z.string().optional(),
|
||||
label: z.string().optional(),
|
||||
summary: z.string().optional(),
|
||||
type: z.string().optional(),
|
||||
default: z.string().optional(),
|
||||
value: z.string().optional(),
|
||||
hidden: z.boolean().optional(),
|
||||
advanced: z.boolean().optional(),
|
||||
group: z.string().optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.id === undefined ? null : { id: v.id }),
|
||||
...(v.label === undefined ? null : { label: v.label }),
|
||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
||||
...(v.type === undefined ? null : { type: v.type }),
|
||||
...(v.default === undefined ? null : { default: v.default }),
|
||||
...(v.value === undefined ? null : { value: v.value }),
|
||||
...(v.hidden === undefined ? null : { hidden: v.hidden }),
|
||||
...(v.advanced === undefined ? null : { advanced: v.advanced }),
|
||||
...(v.group === undefined ? null : { group: v.group }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace Setting$ {
|
||||
export type Inbound = One$.Inbound | Two$.Inbound;
|
||||
|
||||
export type Outbound = One$.Outbound | Two$.Outbound;
|
||||
|
||||
export const inboundSchema: z.ZodType<Setting, z.ZodTypeDef, Inbound> = z.union([
|
||||
z.lazy(() => One$.inboundSchema),
|
||||
z.lazy(() => Two$.inboundSchema),
|
||||
]);
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Setting> = z.union([
|
||||
z.lazy(() => One$.outboundSchema),
|
||||
z.lazy(() => Two$.outboundSchema),
|
||||
]);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace GetServerPreferencesMediaContainer$ {
|
||||
export type Inbound = {
|
||||
size?: number | undefined;
|
||||
Setting?: Array<One$.Inbound | Two$.Inbound> | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<
|
||||
GetServerPreferencesMediaContainer,
|
||||
z.ZodTypeDef,
|
||||
Inbound
|
||||
> = z
|
||||
.object({
|
||||
size: z.number().int().optional(),
|
||||
Setting: z
|
||||
.array(
|
||||
z.union([z.lazy(() => One$.inboundSchema), z.lazy(() => Two$.inboundSchema)])
|
||||
)
|
||||
.optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.size === undefined ? null : { size: v.size }),
|
||||
...(v.Setting === undefined ? null : { setting: v.Setting }),
|
||||
};
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
size?: number | undefined;
|
||||
Setting?: Array<One$.Outbound | Two$.Outbound> | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<
|
||||
Outbound,
|
||||
z.ZodTypeDef,
|
||||
GetServerPreferencesMediaContainer
|
||||
> = z
|
||||
.object({
|
||||
size: z.number().int().optional(),
|
||||
setting: z
|
||||
.array(
|
||||
z.union([z.lazy(() => One$.outboundSchema), z.lazy(() => Two$.outboundSchema)])
|
||||
)
|
||||
.optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.size === undefined ? null : { size: v.size }),
|
||||
...(v.setting === undefined ? null : { Setting: v.setting }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace GetServerPreferencesResponseBody$ {
|
||||
export type Inbound = {
|
||||
MediaContainer?: GetServerPreferencesMediaContainer$.Inbound | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<GetServerPreferencesResponseBody, z.ZodTypeDef, Inbound> =
|
||||
z
|
||||
.object({
|
||||
MediaContainer: z
|
||||
.lazy(() => GetServerPreferencesMediaContainer$.inboundSchema)
|
||||
.optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.MediaContainer === undefined
|
||||
? null
|
||||
: { mediaContainer: v.MediaContainer }),
|
||||
};
|
||||
});
|
||||
|
||||
export type Outbound = {
|
||||
MediaContainer?: GetServerPreferencesMediaContainer$.Outbound | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<
|
||||
Outbound,
|
||||
z.ZodTypeDef,
|
||||
GetServerPreferencesResponseBody
|
||||
> = z
|
||||
.object({
|
||||
mediaContainer: z
|
||||
.lazy(() => GetServerPreferencesMediaContainer$.outboundSchema)
|
||||
.optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export namespace GetServerPreferencesResponse$ {
|
||||
export type Inbound = {
|
||||
ContentType: string;
|
||||
StatusCode: number;
|
||||
RawResponse: Response;
|
||||
object?: GetServerPreferencesResponseBody$.Inbound | undefined;
|
||||
};
|
||||
|
||||
export const inboundSchema: z.ZodType<GetServerPreferencesResponse, z.ZodTypeDef, Inbound> = z
|
||||
@@ -32,12 +352,14 @@ export namespace GetServerPreferencesResponse$ {
|
||||
ContentType: z.string(),
|
||||
StatusCode: z.number().int(),
|
||||
RawResponse: z.instanceof(Response),
|
||||
object: z.lazy(() => GetServerPreferencesResponseBody$.inboundSchema).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
contentType: v.ContentType,
|
||||
statusCode: v.StatusCode,
|
||||
rawResponse: v.RawResponse,
|
||||
...(v.object === undefined ? null : { object: v.object }),
|
||||
};
|
||||
});
|
||||
|
||||
@@ -45,6 +367,7 @@ export namespace GetServerPreferencesResponse$ {
|
||||
ContentType: string;
|
||||
StatusCode: number;
|
||||
RawResponse: never;
|
||||
object?: GetServerPreferencesResponseBody$.Outbound | undefined;
|
||||
};
|
||||
|
||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetServerPreferencesResponse> = z
|
||||
@@ -54,12 +377,14 @@ export namespace GetServerPreferencesResponse$ {
|
||||
rawResponse: z.instanceof(Response).transform(() => {
|
||||
throw new Error("Response cannot be serialized");
|
||||
}),
|
||||
object: z.lazy(() => GetServerPreferencesResponseBody$.outboundSchema).optional(),
|
||||
})
|
||||
.transform((v) => {
|
||||
return {
|
||||
ContentType: v.contentType,
|
||||
StatusCode: v.statusCode,
|
||||
RawResponse: v.rawResponse,
|
||||
...(v.object === undefined ? null : { object: v.object }),
|
||||
};
|
||||
});
|
||||
}
|
||||
|
||||
@@ -299,8 +299,13 @@ export class Library extends ClientSDK {
|
||||
RawResponse: response,
|
||||
};
|
||||
|
||||
if (this.matchStatusCode(response, 200)) {
|
||||
// fallthrough
|
||||
if (this.matchResponse(response, 200, "application/json")) {
|
||||
const responseBody = await response.json();
|
||||
const result = operations.GetLibraryResponse$.inboundSchema.parse({
|
||||
...responseFields$,
|
||||
object: responseBody,
|
||||
});
|
||||
return result;
|
||||
} else if (this.matchResponse(response, 401, "application/json")) {
|
||||
const responseBody = await response.json();
|
||||
const result = errors.GetLibraryResponseBody$.inboundSchema.parse({
|
||||
@@ -312,8 +317,6 @@ export class Library extends ClientSDK {
|
||||
const responseBody = await response.text();
|
||||
throw new errors.SDKError("Unexpected API response", response, responseBody);
|
||||
}
|
||||
|
||||
return operations.GetLibraryResponse$.inboundSchema.parse(responseFields$);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -113,8 +113,13 @@ export class Server extends ClientSDK {
|
||||
RawResponse: response,
|
||||
};
|
||||
|
||||
if (this.matchStatusCode(response, 200)) {
|
||||
// fallthrough
|
||||
if (this.matchResponse(response, 200, "application/json")) {
|
||||
const responseBody = await response.json();
|
||||
const result = operations.GetServerPreferencesResponse$.inboundSchema.parse({
|
||||
...responseFields$,
|
||||
object: responseBody,
|
||||
});
|
||||
return result;
|
||||
} else if (this.matchResponse(response, 401, "application/json")) {
|
||||
const responseBody = await response.json();
|
||||
const result = errors.GetServerPreferencesResponseBody$.inboundSchema.parse({
|
||||
@@ -126,8 +131,6 @@ export class Server extends ClientSDK {
|
||||
const responseBody = await response.text();
|
||||
throw new errors.SDKError("Unexpected API response", response, responseBody);
|
||||
}
|
||||
|
||||
return operations.GetServerPreferencesResponse$.inboundSchema.parse(responseFields$);
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user