mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-06 12:37:46 +00:00
Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
738f7c347d | ||
|
|
5a3c016a7f | ||
|
|
bb1b355abf | ||
|
|
78522ed5bf | ||
|
|
8a524cf9e6 | ||
|
|
7e8aef026b | ||
|
|
886f24cade | ||
|
|
9c33aaa04f | ||
|
|
fc2f619cff | ||
|
|
2344b8fb5e | ||
|
|
2d0e878983 | ||
|
|
a96e359e00 |
@@ -3,10 +3,10 @@ id: 16f22cbf-f23f-4419-8924-3a4b06381947
|
|||||||
management:
|
management:
|
||||||
docChecksum: 911d74baa0d06121d2ce2c71d94e977a
|
docChecksum: 911d74baa0d06121d2ce2c71d94e977a
|
||||||
docVersion: 0.0.3
|
docVersion: 0.0.3
|
||||||
speakeasyVersion: 1.296.1
|
speakeasyVersion: 1.300.0
|
||||||
generationVersion: 2.338.1
|
generationVersion: 2.338.14
|
||||||
releaseVersion: 0.16.1
|
releaseVersion: 0.16.4
|
||||||
configChecksum: 7fbc95be2401a071c1ac3fa61741a640
|
configChecksum: 1dd152d0b7683cd3ad5f8f7a08553e72
|
||||||
repoURL: https://github.com/LukeHagar/plexjs.git
|
repoURL: https://github.com/LukeHagar/plexjs.git
|
||||||
repoSubDirectory: .
|
repoSubDirectory: .
|
||||||
installationURL: https://github.com/LukeHagar/plexjs
|
installationURL: https://github.com/LukeHagar/plexjs
|
||||||
@@ -15,7 +15,7 @@ features:
|
|||||||
typescript:
|
typescript:
|
||||||
additionalDependencies: 0.1.0
|
additionalDependencies: 0.1.0
|
||||||
constsAndDefaults: 0.1.5
|
constsAndDefaults: 0.1.5
|
||||||
core: 3.9.9
|
core: 3.9.12
|
||||||
flattening: 2.81.1
|
flattening: 2.81.1
|
||||||
globalSecurity: 2.82.9
|
globalSecurity: 2.82.9
|
||||||
globalSecurityCallbacks: 0.1.0
|
globalSecurityCallbacks: 0.1.0
|
||||||
@@ -54,6 +54,7 @@ generatedFiles:
|
|||||||
- src/lib/encodings.ts
|
- src/lib/encodings.ts
|
||||||
- src/lib/http.ts
|
- src/lib/http.ts
|
||||||
- src/lib/is-plain-object.ts
|
- src/lib/is-plain-object.ts
|
||||||
|
- src/lib/primitives.ts
|
||||||
- src/lib/retries.ts
|
- src/lib/retries.ts
|
||||||
- src/lib/schemas.ts
|
- src/lib/schemas.ts
|
||||||
- src/lib/sdks.ts
|
- src/lib/sdks.ts
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ generation:
|
|||||||
auth:
|
auth:
|
||||||
oAuth2ClientCredentialsEnabled: false
|
oAuth2ClientCredentialsEnabled: false
|
||||||
typescript:
|
typescript:
|
||||||
version: 0.16.1
|
version: 0.16.4
|
||||||
additionalDependencies:
|
additionalDependencies:
|
||||||
dependencies: {}
|
dependencies: {}
|
||||||
devDependencies: {}
|
devDependencies: {}
|
||||||
|
|||||||
@@ -1,9 +1,9 @@
|
|||||||
speakeasyVersion: 1.296.1
|
speakeasyVersion: 1.300.0
|
||||||
sources:
|
sources:
|
||||||
my-source:
|
my-source:
|
||||||
sourceNamespace: my-source
|
sourceNamespace: my-source
|
||||||
sourceRevisionDigest: sha256:ec7ac9d43c42e220b480bae1c452adc45df61b7acbec77cff8b9a070785de79f
|
sourceRevisionDigest: sha256:31ee48b100bebabe13cfbe15c880f40812cd1db5d9b81e28dcf0e9d4ea6aff79
|
||||||
sourceBlobDigest: sha256:11fa9798b0349b8f7cbe9d917f15df603756a001ffaf8880ec204f2a8f57f8f0
|
sourceBlobDigest: sha256:9d2bf709e5a90650a617963ce8fa023f7f08a9ee25df905c715895cde1605161
|
||||||
tags:
|
tags:
|
||||||
- latest
|
- latest
|
||||||
- main
|
- main
|
||||||
@@ -11,8 +11,8 @@ targets:
|
|||||||
plexjs:
|
plexjs:
|
||||||
source: my-source
|
source: my-source
|
||||||
sourceNamespace: my-source
|
sourceNamespace: my-source
|
||||||
sourceRevisionDigest: sha256:ec7ac9d43c42e220b480bae1c452adc45df61b7acbec77cff8b9a070785de79f
|
sourceRevisionDigest: sha256:31ee48b100bebabe13cfbe15c880f40812cd1db5d9b81e28dcf0e9d4ea6aff79
|
||||||
sourceBlobDigest: sha256:11fa9798b0349b8f7cbe9d917f15df603756a001ffaf8880ec204f2a8f57f8f0
|
sourceBlobDigest: sha256:9d2bf709e5a90650a617963ce8fa023f7f08a9ee25df905c715895cde1605161
|
||||||
outLocation: /github/workspace/repo
|
outLocation: /github/workspace/repo
|
||||||
workflow:
|
workflow:
|
||||||
workflowVersion: 1.0.0
|
workflowVersion: 1.0.0
|
||||||
|
|||||||
120
RELEASES.md
120
RELEASES.md
@@ -599,3 +599,123 @@ Based on:
|
|||||||
- [typescript v0.16.1] .
|
- [typescript v0.16.1] .
|
||||||
### Releases
|
### Releases
|
||||||
- [NPM v0.16.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.1 - .
|
- [NPM v0.16.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.1 - .
|
||||||
|
|
||||||
|
## 2024-05-26 00:31:02
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.296.1 (2.338.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.16.1] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.16.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.1 - .
|
||||||
|
|
||||||
|
## 2024-05-27 00:28:56
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.296.1 (2.338.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.16.1] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.16.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.1 - .
|
||||||
|
|
||||||
|
## 2024-05-28 00:28:13
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.296.1 (2.338.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.16.1] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.16.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.1 - .
|
||||||
|
|
||||||
|
## 2024-05-29 00:29:15
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.296.1 (2.338.1) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.16.1] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.16.1] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.1 - .
|
||||||
|
|
||||||
|
## 2024-05-30 00:28:36
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.299.1 (2.338.5) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.16.2] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.16.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.2 - .
|
||||||
|
|
||||||
|
## 2024-05-31 00:27:50
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.299.3 (2.338.7) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.16.2] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.16.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.2 - .
|
||||||
|
|
||||||
|
## 2024-06-01 00:30:42
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.299.4 (2.338.7) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.16.2] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.16.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.2 - .
|
||||||
|
|
||||||
|
## 2024-06-02 00:31:00
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.299.4 (2.338.7) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.16.2] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.16.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.2 - .
|
||||||
|
|
||||||
|
## 2024-06-03 00:29:24
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.299.4 (2.338.7) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.16.2] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.16.2] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.2 - .
|
||||||
|
|
||||||
|
## 2024-06-04 00:28:27
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.299.6 (2.338.12) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.16.3] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.16.3] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.3 - .
|
||||||
|
|
||||||
|
## 2024-06-05 00:28:12
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.299.7 (2.338.12) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.16.3] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.16.3] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.3 - .
|
||||||
|
|
||||||
|
## 2024-06-06 00:28:24
|
||||||
|
### Changes
|
||||||
|
Based on:
|
||||||
|
- OpenAPI Doc
|
||||||
|
- Speakeasy CLI 1.300.0 (2.338.14) https://github.com/speakeasy-api/speakeasy
|
||||||
|
### Generated
|
||||||
|
- [typescript v0.16.4] .
|
||||||
|
### Releases
|
||||||
|
- [NPM v0.16.4] https://www.npmjs.com/package/@lukehagar/plexjs/v/0.16.4 - .
|
||||||
1790
codeSamples.yaml
1790
codeSamples.yaml
File diff suppressed because it is too large
Load Diff
2
jsr.json
2
jsr.json
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
{
|
{
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.16.1",
|
"version": "0.16.4",
|
||||||
"exports": {
|
"exports": {
|
||||||
".": "./src/index.ts",
|
".": "./src/index.ts",
|
||||||
"./models/errors": "./src/models/errors/index.ts",
|
"./models/errors": "./src/models/errors/index.ts",
|
||||||
|
|||||||
4
package-lock.json
generated
4
package-lock.json
generated
@@ -1,12 +1,12 @@
|
|||||||
{
|
{
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.16.1",
|
"version": "0.16.4",
|
||||||
"lockfileVersion": 2,
|
"lockfileVersion": 2,
|
||||||
"requires": true,
|
"requires": true,
|
||||||
"packages": {
|
"packages": {
|
||||||
"": {
|
"": {
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.16.1",
|
"version": "0.16.4",
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@types/jsonpath": "^0.2.4",
|
"@types/jsonpath": "^0.2.4",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.7.1",
|
"@typescript-eslint/eslint-plugin": "^7.7.1",
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "@lukehagar/plexjs",
|
"name": "@lukehagar/plexjs",
|
||||||
"version": "0.16.1",
|
"version": "0.16.4",
|
||||||
"author": "LukeHagar",
|
"author": "LukeHagar",
|
||||||
"main": "./index.js",
|
"main": "./index.js",
|
||||||
"sideEffects": false,
|
"sideEffects": false,
|
||||||
|
|||||||
@@ -87,7 +87,7 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|||||||
export const SDK_METADATA = {
|
export const SDK_METADATA = {
|
||||||
language: "typescript",
|
language: "typescript",
|
||||||
openapiDocVersion: "0.0.3",
|
openapiDocVersion: "0.0.3",
|
||||||
sdkVersion: "0.16.1",
|
sdkVersion: "0.16.4",
|
||||||
genVersion: "2.338.1",
|
genVersion: "2.338.14",
|
||||||
userAgent: "speakeasy-sdk/typescript 0.16.1 2.338.1 0.0.3 @lukehagar/plexjs",
|
userAgent: "speakeasy-sdk/typescript 0.16.4 2.338.14 0.0.3 @lukehagar/plexjs",
|
||||||
} as const;
|
} as const;
|
||||||
|
|||||||
40
src/lib/primitives.ts
Normal file
40
src/lib/primitives.ts
Normal file
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
|
*/
|
||||||
|
|
||||||
|
export type Remap<Inp, Mapping extends { [k in keyof Inp]?: string | null }> = {
|
||||||
|
[k in keyof Inp as Mapping[k] extends string /* if we have a string mapping for this key then use it */
|
||||||
|
? Mapping[k]
|
||||||
|
: Mapping[k] extends null /* if the mapping is to `null` then drop the key */
|
||||||
|
? never
|
||||||
|
: k /* otherwise keep the key as-is */]: Inp[k];
|
||||||
|
};
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Converts or omits an object's keys according to a mapping.
|
||||||
|
*
|
||||||
|
* @param inp An object whose keys will be remapped
|
||||||
|
* @param mappings A mapping of original keys to new keys. If a key is not present in the mapping, it will be left as is. If a key is mapped to `null`, it will be removed in the resulting object.
|
||||||
|
* @returns A new object with keys remapped or omitted according to the mappings
|
||||||
|
*/
|
||||||
|
export function remap<
|
||||||
|
Inp extends Record<string, unknown>,
|
||||||
|
const Mapping extends { [k in keyof Inp]?: string | null },
|
||||||
|
>(inp: Inp, mappings: Mapping): Remap<Inp, Mapping> {
|
||||||
|
let out: any = {};
|
||||||
|
|
||||||
|
if (!Object.keys(mappings).length) {
|
||||||
|
out = inp;
|
||||||
|
return out;
|
||||||
|
}
|
||||||
|
|
||||||
|
for (const [k, v] of Object.entries(inp)) {
|
||||||
|
const j = mappings[k];
|
||||||
|
if (j === null) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
out[j ?? k] = v;
|
||||||
|
}
|
||||||
|
|
||||||
|
return out;
|
||||||
|
}
|
||||||
@@ -2,8 +2,8 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import { ZodError } from "zod";
|
import { output, ZodEffects, ZodError, ZodObject, ZodRawShape, ZodTypeAny } from "zod";
|
||||||
import * as errors from "../models/errors";
|
import { SDKValidationError } from "../models/errors/sdkvalidationerror";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Utility function that executes some code which may throw a ZodError. It
|
* Utility function that executes some code which may throw a ZodError. It
|
||||||
@@ -15,8 +15,42 @@ export function parse<Inp, Out>(rawValue: Inp, fn: (value: Inp) => Out, errorMes
|
|||||||
return fn(rawValue);
|
return fn(rawValue);
|
||||||
} catch (err) {
|
} catch (err) {
|
||||||
if (err instanceof ZodError) {
|
if (err instanceof ZodError) {
|
||||||
throw new errors.SDKValidationError(errorMessage, err, rawValue);
|
throw new SDKValidationError(errorMessage, err, rawValue);
|
||||||
}
|
}
|
||||||
throw err;
|
throw err;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function collectExtraKeys<
|
||||||
|
Shape extends ZodRawShape,
|
||||||
|
Catchall extends ZodTypeAny,
|
||||||
|
K extends string
|
||||||
|
>(
|
||||||
|
obj: ZodObject<Shape, "strip", Catchall>,
|
||||||
|
extrasKey: K
|
||||||
|
): ZodEffects<
|
||||||
|
typeof obj,
|
||||||
|
output<ZodObject<Shape, "strict">> & {
|
||||||
|
[k in K]: Record<string, output<Catchall>>;
|
||||||
|
}
|
||||||
|
> {
|
||||||
|
return obj.transform((val) => {
|
||||||
|
const extras: Record<string, output<Catchall>> = {};
|
||||||
|
const { shape } = obj;
|
||||||
|
for (const [key] of Object.entries(val)) {
|
||||||
|
if (key in shape) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
const v = val[key];
|
||||||
|
if (typeof v === "undefined") {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
|
extras[key] = v;
|
||||||
|
delete val[key];
|
||||||
|
}
|
||||||
|
|
||||||
|
return { ...val, [extrasKey]: extras };
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|||||||
@@ -10,27 +10,15 @@ export type Security = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Security$ {
|
export namespace Security$ {
|
||||||
export const inboundSchema: z.ZodType<Security, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Security, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
accessToken: z.string(),
|
||||||
accessToken: z.string(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
accessToken: v.accessToken,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
accessToken: string;
|
accessToken: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Security> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Security> = z.object({
|
||||||
.object({
|
accessToken: z.string(),
|
||||||
accessToken: z.string(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
accessToken: v.accessToken,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type AddPlaylistContentsErrors = {
|
export type AddPlaylistContentsErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class AddPlaylistContentsResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace AddPlaylistContentsErrors$ {
|
export namespace AddPlaylistContentsErrors$ {
|
||||||
export const inboundSchema: z.ZodType<AddPlaylistContentsErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<AddPlaylistContentsErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace AddPlaylistContentsErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, AddPlaylistContentsErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, AddPlaylistContentsErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,10 +87,11 @@ export namespace AddPlaylistContentsResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new AddPlaylistContentsResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new AddPlaylistContentsResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -132,10 +120,9 @@ export namespace AddPlaylistContentsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type ApplyUpdatesErrors = {
|
export type ApplyUpdatesErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class ApplyUpdatesResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ApplyUpdatesErrors$ {
|
export namespace ApplyUpdatesErrors$ {
|
||||||
export const inboundSchema: z.ZodType<ApplyUpdatesErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ApplyUpdatesErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace ApplyUpdatesErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ApplyUpdatesErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ApplyUpdatesErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace ApplyUpdatesResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new ApplyUpdatesResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new ApplyUpdatesResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace ApplyUpdatesResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type CancelServerActivitiesErrors = {
|
export type CancelServerActivitiesErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class CancelServerActivitiesResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CancelServerActivitiesErrors$ {
|
export namespace CancelServerActivitiesErrors$ {
|
||||||
export const inboundSchema: z.ZodType<CancelServerActivitiesErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<CancelServerActivitiesErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace CancelServerActivitiesErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CancelServerActivitiesErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CancelServerActivitiesErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,10 +90,11 @@ export namespace CancelServerActivitiesResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new CancelServerActivitiesResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new CancelServerActivitiesResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -135,10 +123,9 @@ export namespace CancelServerActivitiesResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type CheckForUpdatesErrors = {
|
export type CheckForUpdatesErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class CheckForUpdatesResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CheckForUpdatesErrors$ {
|
export namespace CheckForUpdatesErrors$ {
|
||||||
export const inboundSchema: z.ZodType<CheckForUpdatesErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<CheckForUpdatesErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,18 +69,11 @@ export namespace CheckForUpdatesErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CheckForUpdatesErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CheckForUpdatesErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,10 +85,11 @@ export namespace CheckForUpdatesResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new CheckForUpdatesResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new CheckForUpdatesResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +112,9 @@ export namespace CheckForUpdatesResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type ClearPlaylistContentsErrors = {
|
export type ClearPlaylistContentsErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class ClearPlaylistContentsResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ClearPlaylistContentsErrors$ {
|
export namespace ClearPlaylistContentsErrors$ {
|
||||||
export const inboundSchema: z.ZodType<ClearPlaylistContentsErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ClearPlaylistContentsErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace ClearPlaylistContentsErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClearPlaylistContentsErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClearPlaylistContentsErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -103,10 +90,11 @@ export namespace ClearPlaylistContentsResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new ClearPlaylistContentsResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new ClearPlaylistContentsResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -135,10 +123,9 @@ export namespace ClearPlaylistContentsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type CreatePlaylistErrors = {
|
export type CreatePlaylistErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class CreatePlaylistResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CreatePlaylistErrors$ {
|
export namespace CreatePlaylistErrors$ {
|
||||||
export const inboundSchema: z.ZodType<CreatePlaylistErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<CreatePlaylistErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,13 @@ export namespace CreatePlaylistErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreatePlaylistErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreatePlaylistErrors> = z.object(
|
||||||
.object({
|
{
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +86,11 @@ export namespace CreatePlaylistResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new CreatePlaylistResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new CreatePlaylistResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +113,9 @@ export namespace CreatePlaylistResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type DeleteLibraryErrors = {
|
export type DeleteLibraryErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class DeleteLibraryResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace DeleteLibraryErrors$ {
|
export namespace DeleteLibraryErrors$ {
|
||||||
export const inboundSchema: z.ZodType<DeleteLibraryErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<DeleteLibraryErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace DeleteLibraryErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteLibraryErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteLibraryErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace DeleteLibraryResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new DeleteLibraryResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new DeleteLibraryResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace DeleteLibraryResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type DeletePlaylistErrors = {
|
export type DeletePlaylistErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class DeletePlaylistResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace DeletePlaylistErrors$ {
|
export namespace DeletePlaylistErrors$ {
|
||||||
export const inboundSchema: z.ZodType<DeletePlaylistErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<DeletePlaylistErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,13 @@ export namespace DeletePlaylistErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeletePlaylistErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeletePlaylistErrors> = z.object(
|
||||||
.object({
|
{
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +86,11 @@ export namespace DeletePlaylistResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new DeletePlaylistResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new DeletePlaylistResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +113,9 @@ export namespace DeletePlaylistResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type EnablePaperTrailErrors = {
|
export type EnablePaperTrailErrors = {
|
||||||
@@ -56,19 +57,13 @@ export class EnablePaperTrailResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace EnablePaperTrailErrors$ {
|
export namespace EnablePaperTrailErrors$ {
|
||||||
export const inboundSchema: z.ZodType<EnablePaperTrailErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<EnablePaperTrailErrors, z.ZodTypeDef, unknown> = z.object(
|
||||||
.object({
|
{
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,18 +71,11 @@ export namespace EnablePaperTrailErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, EnablePaperTrailErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, EnablePaperTrailErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,10 +87,11 @@ export namespace EnablePaperTrailResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new EnablePaperTrailResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new EnablePaperTrailResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -127,10 +116,9 @@ export namespace EnablePaperTrailResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetAvailableClientsErrors = {
|
export type GetAvailableClientsErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class GetAvailableClientsResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetAvailableClientsErrors$ {
|
export namespace GetAvailableClientsErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetAvailableClientsErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetAvailableClientsErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace GetAvailableClientsErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetAvailableClientsErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetAvailableClientsErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,10 +87,11 @@ export namespace GetAvailableClientsResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetAvailableClientsResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetAvailableClientsResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -132,10 +120,9 @@ export namespace GetAvailableClientsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetButlerTasksErrors = {
|
export type GetButlerTasksErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetButlerTasksResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetButlerTasksErrors$ {
|
export namespace GetButlerTasksErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetButlerTasksErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetButlerTasksErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,13 @@ export namespace GetButlerTasksErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetButlerTasksErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetButlerTasksErrors> = z.object(
|
||||||
.object({
|
{
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +86,11 @@ export namespace GetButlerTasksResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetButlerTasksResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetButlerTasksResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +113,9 @@ export namespace GetButlerTasksResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetDevicesErrors = {
|
export type GetDevicesErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetDevicesResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetDevicesErrors$ {
|
export namespace GetDevicesErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetDevicesErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetDevicesErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetDevicesErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetDevicesErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetDevicesErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetDevicesResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetDevicesResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetDevicesResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetDevicesResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetFileHashErrors = {
|
export type GetFileHashErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetFileHashResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetFileHashErrors$ {
|
export namespace GetFileHashErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetFileHashErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetFileHashErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetFileHashErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetFileHashErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetFileHashErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetFileHashResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetFileHashResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetFileHashResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetFileHashResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetGlobalHubsErrors = {
|
export type GetGlobalHubsErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetGlobalHubsResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetGlobalHubsErrors$ {
|
export namespace GetGlobalHubsErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetGlobalHubsErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetGlobalHubsErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetGlobalHubsErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetGlobalHubsErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetGlobalHubsErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetGlobalHubsResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetGlobalHubsResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetGlobalHubsResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetGlobalHubsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetLibrariesErrors = {
|
export type GetLibrariesErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetLibrariesResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibrariesErrors$ {
|
export namespace GetLibrariesErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibrariesErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibrariesErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetLibrariesErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibrariesErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibrariesErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetLibrariesResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetLibrariesResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetLibrariesResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetLibrariesResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetLibraryErrors = {
|
export type GetLibraryErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetLibraryResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryErrors$ {
|
export namespace GetLibraryErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetLibraryErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetLibraryResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetLibraryResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetLibraryResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetLibraryResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetLibraryHubsErrors = {
|
export type GetLibraryHubsErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetLibraryHubsResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryHubsErrors$ {
|
export namespace GetLibraryHubsErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryHubsErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryHubsErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,13 @@ export namespace GetLibraryHubsErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsErrors> = z.object(
|
||||||
.object({
|
{
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +86,11 @@ export namespace GetLibraryHubsResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetLibraryHubsResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetLibraryHubsResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +113,9 @@ export namespace GetLibraryHubsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetLibraryItemsErrors = {
|
export type GetLibraryItemsErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetLibraryItemsResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryItemsErrors$ {
|
export namespace GetLibraryItemsErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryItemsErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryItemsErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,18 +69,11 @@ export namespace GetLibraryItemsErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,10 +85,11 @@ export namespace GetLibraryItemsResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetLibraryItemsResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetLibraryItemsResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +112,9 @@ export namespace GetLibraryItemsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetMetadataErrors = {
|
export type GetMetadataErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetMetadataResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetMetadataErrors$ {
|
export namespace GetMetadataErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetMetadataErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetMetadataErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetMetadataErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMetadataErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMetadataErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetMetadataResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetMetadataResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetMetadataResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetMetadataResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetMetadataChildrenErrors = {
|
export type GetMetadataChildrenErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class GetMetadataChildrenResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetMetadataChildrenErrors$ {
|
export namespace GetMetadataChildrenErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetMetadataChildrenErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetMetadataChildrenErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace GetMetadataChildrenErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMetadataChildrenErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMetadataChildrenErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,10 +87,11 @@ export namespace GetMetadataChildrenResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetMetadataChildrenResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetMetadataChildrenResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -132,10 +120,9 @@ export namespace GetMetadataChildrenResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetMyPlexAccountErrors = {
|
export type GetMyPlexAccountErrors = {
|
||||||
@@ -56,19 +57,13 @@ export class GetMyPlexAccountResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetMyPlexAccountErrors$ {
|
export namespace GetMyPlexAccountErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetMyPlexAccountErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetMyPlexAccountErrors, z.ZodTypeDef, unknown> = z.object(
|
||||||
.object({
|
{
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,18 +71,11 @@ export namespace GetMyPlexAccountErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMyPlexAccountErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMyPlexAccountErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,10 +87,11 @@ export namespace GetMyPlexAccountResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetMyPlexAccountResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetMyPlexAccountResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -127,10 +116,9 @@ export namespace GetMyPlexAccountResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetOnDeckErrors = {
|
export type GetOnDeckErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetOnDeckResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetOnDeckErrors$ {
|
export namespace GetOnDeckErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetOnDeckErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetOnDeckErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetOnDeckErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetOnDeckErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetOnDeckErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetOnDeckResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetOnDeckResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetOnDeckResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetOnDeckResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetPinErrors = {
|
export type GetPinErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetPinResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPinErrors$ {
|
export namespace GetPinErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetPinErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPinErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetPinErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPinErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPinErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetPinResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetPinResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetPinResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetPinResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetPlaylistErrors = {
|
export type GetPlaylistErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetPlaylistResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPlaylistErrors$ {
|
export namespace GetPlaylistErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetPlaylistErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPlaylistErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetPlaylistErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetPlaylistResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetPlaylistResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetPlaylistResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetPlaylistResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetPlaylistContentsErrors = {
|
export type GetPlaylistContentsErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class GetPlaylistContentsResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPlaylistContentsErrors$ {
|
export namespace GetPlaylistContentsErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetPlaylistContentsErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPlaylistContentsErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace GetPlaylistContentsErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,10 +87,11 @@ export namespace GetPlaylistContentsResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetPlaylistContentsResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetPlaylistContentsResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -132,10 +120,9 @@ export namespace GetPlaylistContentsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetPlaylistsErrors = {
|
export type GetPlaylistsErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetPlaylistsResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPlaylistsErrors$ {
|
export namespace GetPlaylistsErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetPlaylistsErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPlaylistsErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetPlaylistsErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistsErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistsErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetPlaylistsResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetPlaylistsResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetPlaylistsResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetPlaylistsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetRecentlyAddedErrors = {
|
export type GetRecentlyAddedErrors = {
|
||||||
@@ -56,19 +57,13 @@ export class GetRecentlyAddedResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetRecentlyAddedErrors$ {
|
export namespace GetRecentlyAddedErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetRecentlyAddedErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetRecentlyAddedErrors, z.ZodTypeDef, unknown> = z.object(
|
||||||
.object({
|
{
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,18 +71,11 @@ export namespace GetRecentlyAddedErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetRecentlyAddedErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetRecentlyAddedErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,10 +87,11 @@ export namespace GetRecentlyAddedResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetRecentlyAddedResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetRecentlyAddedResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -127,10 +116,9 @@ export namespace GetRecentlyAddedResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetResizedPhotoErrors = {
|
export type GetResizedPhotoErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetResizedPhotoResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetResizedPhotoErrors$ {
|
export namespace GetResizedPhotoErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetResizedPhotoErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetResizedPhotoErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,18 +69,11 @@ export namespace GetResizedPhotoErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetResizedPhotoErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetResizedPhotoErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,10 +85,11 @@ export namespace GetResizedPhotoResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetResizedPhotoResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetResizedPhotoResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +112,9 @@ export namespace GetResizedPhotoResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetSearchResultsErrors = {
|
export type GetSearchResultsErrors = {
|
||||||
@@ -56,19 +57,13 @@ export class GetSearchResultsResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetSearchResultsErrors$ {
|
export namespace GetSearchResultsErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetSearchResultsErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetSearchResultsErrors, z.ZodTypeDef, unknown> = z.object(
|
||||||
.object({
|
{
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,18 +71,11 @@ export namespace GetSearchResultsErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetSearchResultsErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetSearchResultsErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,10 +87,11 @@ export namespace GetSearchResultsResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetSearchResultsResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetSearchResultsResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -127,10 +116,9 @@ export namespace GetSearchResultsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetServerActivitiesErrors = {
|
export type GetServerActivitiesErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class GetServerActivitiesResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetServerActivitiesErrors$ {
|
export namespace GetServerActivitiesErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetServerActivitiesErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetServerActivitiesErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace GetServerActivitiesErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetServerActivitiesErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetServerActivitiesErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,10 +87,11 @@ export namespace GetServerActivitiesResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetServerActivitiesResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetServerActivitiesResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -132,10 +120,9 @@ export namespace GetServerActivitiesResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type Errors = {
|
export type Errors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetServerCapabilitiesResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Errors$ {
|
export namespace Errors$ {
|
||||||
export const inboundSchema: z.ZodType<Errors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Errors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace Errors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Errors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Errors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -103,10 +88,11 @@ export namespace GetServerCapabilitiesResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetServerCapabilitiesResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetServerCapabilitiesResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -133,10 +119,9 @@ export namespace GetServerCapabilitiesResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetServerIdentityErrors = {
|
export type GetServerIdentityErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class GetServerIdentityResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetServerIdentityErrors$ {
|
export namespace GetServerIdentityErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetServerIdentityErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetServerIdentityErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace GetServerIdentityErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetServerIdentityErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetServerIdentityErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,10 +86,11 @@ export namespace GetServerIdentityResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetServerIdentityResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetServerIdentityResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -128,12 +116,9 @@ export namespace GetServerIdentityResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined
|
});
|
||||||
? null
|
|
||||||
: { RawResponse: v.rawResponse }),
|
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetServerListErrors = {
|
export type GetServerListErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetServerListResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetServerListErrors$ {
|
export namespace GetServerListErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetServerListErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetServerListErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetServerListErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetServerListErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetServerListErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetServerListResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetServerListResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetServerListResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetServerListResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetServerPreferencesErrors = {
|
export type GetServerPreferencesErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class GetServerPreferencesResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetServerPreferencesErrors$ {
|
export namespace GetServerPreferencesErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetServerPreferencesErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetServerPreferencesErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace GetServerPreferencesErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetServerPreferencesErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetServerPreferencesErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,10 +87,11 @@ export namespace GetServerPreferencesResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetServerPreferencesResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetServerPreferencesResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -132,10 +120,9 @@ export namespace GetServerPreferencesResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetSessionHistoryErrors = {
|
export type GetSessionHistoryErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class GetSessionHistoryResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetSessionHistoryErrors$ {
|
export namespace GetSessionHistoryErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetSessionHistoryErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetSessionHistoryErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace GetSessionHistoryErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetSessionHistoryErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetSessionHistoryErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,10 +86,11 @@ export namespace GetSessionHistoryResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetSessionHistoryResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetSessionHistoryResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -128,12 +116,9 @@ export namespace GetSessionHistoryResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined
|
});
|
||||||
? null
|
|
||||||
: { RawResponse: v.rawResponse }),
|
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetSessionsErrors = {
|
export type GetSessionsErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetSessionsResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetSessionsErrors$ {
|
export namespace GetSessionsErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetSessionsErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetSessionsErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetSessionsErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetSessionsErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetSessionsErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetSessionsResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetSessionsResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetSessionsResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetSessionsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetSourceConnectionInformationErrors = {
|
export type GetSourceConnectionInformationErrors = {
|
||||||
@@ -60,19 +61,11 @@ export namespace GetSourceConnectionInformationErrors$ {
|
|||||||
GetSourceConnectionInformationErrors,
|
GetSourceConnectionInformationErrors,
|
||||||
z.ZodTypeDef,
|
z.ZodTypeDef,
|
||||||
unknown
|
unknown
|
||||||
> = z
|
> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -84,19 +77,11 @@ export namespace GetSourceConnectionInformationErrors$ {
|
|||||||
Outbound,
|
Outbound,
|
||||||
z.ZodTypeDef,
|
z.ZodTypeDef,
|
||||||
GetSourceConnectionInformationErrors
|
GetSourceConnectionInformationErrors
|
||||||
> = z
|
> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -113,10 +98,11 @@ export namespace GetSourceConnectionInformationResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetSourceConnectionInformationResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetSourceConnectionInformationResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -145,10 +131,9 @@ export namespace GetSourceConnectionInformationResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetStatisticsErrors = {
|
export type GetStatisticsErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetStatisticsResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetStatisticsErrors$ {
|
export namespace GetStatisticsErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetStatisticsErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetStatisticsErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetStatisticsErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetStatisticsErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetStatisticsErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetStatisticsResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetStatisticsResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetStatisticsResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetStatisticsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetTimelineErrors = {
|
export type GetTimelineErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetTimelineResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetTimelineErrors$ {
|
export namespace GetTimelineErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetTimelineErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetTimelineErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetTimelineErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetTimelineErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetTimelineErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetTimelineResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetTimelineResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetTimelineResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetTimelineResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetTokenErrors = {
|
export type GetTokenErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetTokenResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetTokenErrors$ {
|
export namespace GetTokenErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetTokenErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetTokenErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace GetTokenErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetTokenErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetTokenErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace GetTokenResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetTokenResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetTokenResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace GetTokenResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetTranscodeSessionsErrors = {
|
export type GetTranscodeSessionsErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class GetTranscodeSessionsResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetTranscodeSessionsErrors$ {
|
export namespace GetTranscodeSessionsErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetTranscodeSessionsErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetTranscodeSessionsErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace GetTranscodeSessionsErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetTranscodeSessionsErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetTranscodeSessionsErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,10 +87,11 @@ export namespace GetTranscodeSessionsResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetTranscodeSessionsResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetTranscodeSessionsResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -132,10 +120,9 @@ export namespace GetTranscodeSessionsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetTransientTokenErrors = {
|
export type GetTransientTokenErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class GetTransientTokenResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetTransientTokenErrors$ {
|
export namespace GetTransientTokenErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetTransientTokenErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetTransientTokenErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace GetTransientTokenErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetTransientTokenErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetTransientTokenErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,10 +86,11 @@ export namespace GetTransientTokenResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetTransientTokenResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetTransientTokenResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -128,12 +116,9 @@ export namespace GetTransientTokenResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined
|
});
|
||||||
? null
|
|
||||||
: { RawResponse: v.rawResponse }),
|
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetUpdateStatusErrors = {
|
export type GetUpdateStatusErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class GetUpdateStatusResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetUpdateStatusErrors$ {
|
export namespace GetUpdateStatusErrors$ {
|
||||||
export const inboundSchema: z.ZodType<GetUpdateStatusErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetUpdateStatusErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,18 +69,11 @@ export namespace GetUpdateStatusErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetUpdateStatusErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetUpdateStatusErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,10 +85,11 @@ export namespace GetUpdateStatusResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new GetUpdateStatusResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new GetUpdateStatusResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +112,9 @@ export namespace GetUpdateStatusResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type LogLineErrors = {
|
export type LogLineErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class LogLineResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace LogLineErrors$ {
|
export namespace LogLineErrors$ {
|
||||||
export const inboundSchema: z.ZodType<LogLineErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<LogLineErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace LogLineErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LogLineErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LogLineErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace LogLineResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new LogLineResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new LogLineResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace LogLineResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type LogMultiLineErrors = {
|
export type LogMultiLineErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class LogMultiLineResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace LogMultiLineErrors$ {
|
export namespace LogMultiLineErrors$ {
|
||||||
export const inboundSchema: z.ZodType<LogMultiLineErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<LogMultiLineErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace LogMultiLineErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LogMultiLineErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, LogMultiLineErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace LogMultiLineResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new LogMultiLineResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new LogMultiLineResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace LogMultiLineResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type MarkPlayedErrors = {
|
export type MarkPlayedErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class MarkPlayedResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace MarkPlayedErrors$ {
|
export namespace MarkPlayedErrors$ {
|
||||||
export const inboundSchema: z.ZodType<MarkPlayedErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<MarkPlayedErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace MarkPlayedErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, MarkPlayedErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, MarkPlayedErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace MarkPlayedResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new MarkPlayedResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new MarkPlayedResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace MarkPlayedResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type MarkUnplayedErrors = {
|
export type MarkUnplayedErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class MarkUnplayedResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace MarkUnplayedErrors$ {
|
export namespace MarkUnplayedErrors$ {
|
||||||
export const inboundSchema: z.ZodType<MarkUnplayedErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<MarkUnplayedErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace MarkUnplayedErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, MarkUnplayedErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, MarkUnplayedErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace MarkUnplayedResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new MarkUnplayedResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new MarkUnplayedResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace MarkUnplayedResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type PerformSearchErrors = {
|
export type PerformSearchErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class PerformSearchResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace PerformSearchErrors$ {
|
export namespace PerformSearchErrors$ {
|
||||||
export const inboundSchema: z.ZodType<PerformSearchErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<PerformSearchErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace PerformSearchErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, PerformSearchErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, PerformSearchErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace PerformSearchResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new PerformSearchResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new PerformSearchResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace PerformSearchResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type PerformVoiceSearchErrors = {
|
export type PerformVoiceSearchErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class PerformVoiceSearchResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace PerformVoiceSearchErrors$ {
|
export namespace PerformVoiceSearchErrors$ {
|
||||||
export const inboundSchema: z.ZodType<PerformVoiceSearchErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<PerformVoiceSearchErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace PerformVoiceSearchErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, PerformVoiceSearchErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, PerformVoiceSearchErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,10 +86,11 @@ export namespace PerformVoiceSearchResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new PerformVoiceSearchResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new PerformVoiceSearchResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -128,12 +116,9 @@ export namespace PerformVoiceSearchResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined
|
});
|
||||||
? null
|
|
||||||
: { RawResponse: v.rawResponse }),
|
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type RefreshLibraryErrors = {
|
export type RefreshLibraryErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class RefreshLibraryResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace RefreshLibraryErrors$ {
|
export namespace RefreshLibraryErrors$ {
|
||||||
export const inboundSchema: z.ZodType<RefreshLibraryErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<RefreshLibraryErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,13 @@ export namespace RefreshLibraryErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, RefreshLibraryErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, RefreshLibraryErrors> = z.object(
|
||||||
.object({
|
{
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +86,11 @@ export namespace RefreshLibraryResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new RefreshLibraryResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new RefreshLibraryResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +113,9 @@ export namespace RefreshLibraryResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type SearchLibraryErrors = {
|
export type SearchLibraryErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class SearchLibraryResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace SearchLibraryErrors$ {
|
export namespace SearchLibraryErrors$ {
|
||||||
export const inboundSchema: z.ZodType<SearchLibraryErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<SearchLibraryErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace SearchLibraryErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SearchLibraryErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, SearchLibraryErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace SearchLibraryResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new SearchLibraryResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new SearchLibraryResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace SearchLibraryResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type StartAllTasksErrors = {
|
export type StartAllTasksErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class StartAllTasksResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace StartAllTasksErrors$ {
|
export namespace StartAllTasksErrors$ {
|
||||||
export const inboundSchema: z.ZodType<StartAllTasksErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<StartAllTasksErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace StartAllTasksErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, StartAllTasksErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, StartAllTasksErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace StartAllTasksResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new StartAllTasksResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new StartAllTasksResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace StartAllTasksResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type StartTaskErrors = {
|
export type StartTaskErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class StartTaskResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace StartTaskErrors$ {
|
export namespace StartTaskErrors$ {
|
||||||
export const inboundSchema: z.ZodType<StartTaskErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<StartTaskErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace StartTaskErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, StartTaskErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, StartTaskErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace StartTaskResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new StartTaskResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new StartTaskResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace StartTaskResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type StartUniversalTranscodeErrors = {
|
export type StartUniversalTranscodeErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class StartUniversalTranscodeResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace StartUniversalTranscodeErrors$ {
|
export namespace StartUniversalTranscodeErrors$ {
|
||||||
export const inboundSchema: z.ZodType<StartUniversalTranscodeErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<StartUniversalTranscodeErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -77,19 +71,11 @@ export namespace StartUniversalTranscodeErrors$ {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, StartUniversalTranscodeErrors> =
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, StartUniversalTranscodeErrors> =
|
||||||
z
|
z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -104,10 +90,11 @@ export namespace StartUniversalTranscodeResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new StartUniversalTranscodeResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new StartUniversalTranscodeResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -136,10 +123,9 @@ export namespace StartUniversalTranscodeResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type StopAllTasksErrors = {
|
export type StopAllTasksErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class StopAllTasksResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace StopAllTasksErrors$ {
|
export namespace StopAllTasksErrors$ {
|
||||||
export const inboundSchema: z.ZodType<StopAllTasksErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<StopAllTasksErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace StopAllTasksErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, StopAllTasksErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, StopAllTasksErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace StopAllTasksResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new StopAllTasksResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new StopAllTasksResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace StopAllTasksResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type StopTaskErrors = {
|
export type StopTaskErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class StopTaskResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace StopTaskErrors$ {
|
export namespace StopTaskErrors$ {
|
||||||
export const inboundSchema: z.ZodType<StopTaskErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<StopTaskErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,11 @@ export namespace StopTaskErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, StopTaskErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, StopTaskErrors> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +84,11 @@ export namespace StopTaskResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new StopTaskResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new StopTaskResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +111,9 @@ export namespace StopTaskResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type StopTranscodeSessionErrors = {
|
export type StopTranscodeSessionErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class StopTranscodeSessionResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace StopTranscodeSessionErrors$ {
|
export namespace StopTranscodeSessionErrors$ {
|
||||||
export const inboundSchema: z.ZodType<StopTranscodeSessionErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<StopTranscodeSessionErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace StopTranscodeSessionErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, StopTranscodeSessionErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, StopTranscodeSessionErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -100,10 +87,11 @@ export namespace StopTranscodeSessionResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new StopTranscodeSessionResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new StopTranscodeSessionResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -132,10 +120,9 @@ export namespace StopTranscodeSessionResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type UpdatePlaylistErrors = {
|
export type UpdatePlaylistErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class UpdatePlaylistResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace UpdatePlaylistErrors$ {
|
export namespace UpdatePlaylistErrors$ {
|
||||||
export const inboundSchema: z.ZodType<UpdatePlaylistErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<UpdatePlaylistErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,13 @@ export namespace UpdatePlaylistErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdatePlaylistErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdatePlaylistErrors> = z.object(
|
||||||
.object({
|
{
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +86,11 @@ export namespace UpdatePlaylistResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new UpdatePlaylistResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new UpdatePlaylistResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +113,9 @@ export namespace UpdatePlaylistResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type UpdatePlayProgressErrors = {
|
export type UpdatePlayProgressErrors = {
|
||||||
@@ -56,18 +57,11 @@ export class UpdatePlayProgressResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace UpdatePlayProgressErrors$ {
|
export namespace UpdatePlayProgressErrors$ {
|
||||||
export const inboundSchema: z.ZodType<UpdatePlayProgressErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<UpdatePlayProgressErrors, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -76,18 +70,11 @@ export namespace UpdatePlayProgressErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdatePlayProgressErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UpdatePlayProgressErrors> =
|
||||||
.object({
|
z.object({
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -99,10 +86,11 @@ export namespace UpdatePlayProgressResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new UpdatePlayProgressResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new UpdatePlayProgressResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -128,12 +116,9 @@ export namespace UpdatePlayProgressResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined
|
});
|
||||||
? null
|
|
||||||
: { RawResponse: v.rawResponse }),
|
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type UploadPlaylistErrors = {
|
export type UploadPlaylistErrors = {
|
||||||
@@ -56,19 +57,11 @@ export class UploadPlaylistResponseBody extends Error {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace UploadPlaylistErrors$ {
|
export namespace UploadPlaylistErrors$ {
|
||||||
export const inboundSchema: z.ZodType<UploadPlaylistErrors, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<UploadPlaylistErrors, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
code: z.number().optional(),
|
||||||
code: z.number().optional(),
|
message: z.string().optional(),
|
||||||
message: z.string().optional(),
|
status: z.number().optional(),
|
||||||
status: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
code?: number | undefined;
|
code?: number | undefined;
|
||||||
@@ -76,19 +69,13 @@ export namespace UploadPlaylistErrors$ {
|
|||||||
status?: number | undefined;
|
status?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UploadPlaylistErrors> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, UploadPlaylistErrors> = z.object(
|
||||||
.object({
|
{
|
||||||
code: z.number().optional(),
|
code: z.number().optional(),
|
||||||
message: z.string().optional(),
|
message: z.string().optional(),
|
||||||
status: z.number().optional(),
|
status: z.number().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.message === undefined ? null : { message: v.message }),
|
|
||||||
...(v.status === undefined ? null : { status: v.status }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,10 +86,11 @@ export namespace UploadPlaylistResponseBody$ {
|
|||||||
RawResponse: z.instanceof(Response).optional(),
|
RawResponse: z.instanceof(Response).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return new UploadPlaylistResponseBody({
|
const remapped = remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
RawResponse: "rawResponse",
|
||||||
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
|
|
||||||
});
|
});
|
||||||
|
|
||||||
|
return new UploadPlaylistResponseBody(remapped);
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -125,10 +113,9 @@ export namespace UploadPlaylistResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.errors === undefined ? null : { errors: v.errors }),
|
rawResponse: "RawResponse",
|
||||||
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
|
});
|
||||||
};
|
|
||||||
})
|
})
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type AddPlaylistContentsRequest = {
|
export type AddPlaylistContentsRequest = {
|
||||||
@@ -70,18 +71,11 @@ export type AddPlaylistContentsResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace AddPlaylistContentsRequest$ {
|
export namespace AddPlaylistContentsRequest$ {
|
||||||
export const inboundSchema: z.ZodType<AddPlaylistContentsRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<AddPlaylistContentsRequest, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
playlistID: z.number(),
|
playlistID: z.number(),
|
||||||
uri: z.string(),
|
uri: z.string(),
|
||||||
playQueueID: z.number().optional(),
|
playQueueID: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
playlistID: v.playlistID,
|
|
||||||
uri: v.uri,
|
|
||||||
...(v.playQueueID === undefined ? null : { playQueueID: v.playQueueID }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -90,25 +84,18 @@ export namespace AddPlaylistContentsRequest$ {
|
|||||||
playQueueID?: number | undefined;
|
playQueueID?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, AddPlaylistContentsRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, AddPlaylistContentsRequest> =
|
||||||
.object({
|
z.object({
|
||||||
playlistID: z.number(),
|
playlistID: z.number(),
|
||||||
uri: z.string(),
|
uri: z.string(),
|
||||||
playQueueID: z.number().optional(),
|
playQueueID: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
playlistID: v.playlistID,
|
|
||||||
uri: v.uri,
|
|
||||||
...(v.playQueueID === undefined ? null : { playQueueID: v.playQueueID }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace AddPlaylistContentsMetadata$ {
|
export namespace AddPlaylistContentsMetadata$ {
|
||||||
export const inboundSchema: z.ZodType<AddPlaylistContentsMetadata, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<AddPlaylistContentsMetadata, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
ratingKey: z.string().optional(),
|
ratingKey: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
guid: z.string().optional(),
|
guid: z.string().optional(),
|
||||||
@@ -122,23 +109,6 @@ export namespace AddPlaylistContentsMetadata$ {
|
|||||||
leafCount: z.number().int().optional(),
|
leafCount: z.number().int().optional(),
|
||||||
addedAt: z.number().int().optional(),
|
addedAt: z.number().int().optional(),
|
||||||
updatedAt: z.number().int().optional(),
|
updatedAt: z.number().int().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.smart === undefined ? null : { smart: v.smart }),
|
|
||||||
...(v.playlistType === undefined ? null : { playlistType: v.playlistType }),
|
|
||||||
...(v.composite === undefined ? null : { composite: v.composite }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -157,8 +127,8 @@ export namespace AddPlaylistContentsMetadata$ {
|
|||||||
updatedAt?: number | undefined;
|
updatedAt?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, AddPlaylistContentsMetadata> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, AddPlaylistContentsMetadata> =
|
||||||
.object({
|
z.object({
|
||||||
ratingKey: z.string().optional(),
|
ratingKey: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
guid: z.string().optional(),
|
guid: z.string().optional(),
|
||||||
@@ -172,23 +142,6 @@ export namespace AddPlaylistContentsMetadata$ {
|
|||||||
leafCount: z.number().int().optional(),
|
leafCount: z.number().int().optional(),
|
||||||
addedAt: z.number().int().optional(),
|
addedAt: z.number().int().optional(),
|
||||||
updatedAt: z.number().int().optional(),
|
updatedAt: z.number().int().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.smart === undefined ? null : { smart: v.smart }),
|
|
||||||
...(v.playlistType === undefined ? null : { playlistType: v.playlistType }),
|
|
||||||
...(v.composite === undefined ? null : { composite: v.composite }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -206,14 +159,9 @@ export namespace AddPlaylistContentsMediaContainer$ {
|
|||||||
Metadata: z.array(z.lazy(() => AddPlaylistContentsMetadata$.inboundSchema)).optional(),
|
Metadata: z.array(z.lazy(() => AddPlaylistContentsMetadata$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Metadata: "metadata",
|
||||||
...(v.leafCountAdded === undefined ? null : { leafCountAdded: v.leafCountAdded }),
|
});
|
||||||
...(v.leafCountRequested === undefined
|
|
||||||
? null
|
|
||||||
: { leafCountRequested: v.leafCountRequested }),
|
|
||||||
...(v.Metadata === undefined ? null : { metadata: v.Metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -235,14 +183,9 @@ export namespace AddPlaylistContentsMediaContainer$ {
|
|||||||
metadata: z.array(z.lazy(() => AddPlaylistContentsMetadata$.outboundSchema)).optional(),
|
metadata: z.array(z.lazy(() => AddPlaylistContentsMetadata$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
metadata: "Metadata",
|
||||||
...(v.leafCountAdded === undefined ? null : { leafCountAdded: v.leafCountAdded }),
|
});
|
||||||
...(v.leafCountRequested === undefined
|
|
||||||
? null
|
|
||||||
: { leafCountRequested: v.leafCountRequested }),
|
|
||||||
...(v.metadata === undefined ? null : { Metadata: v.metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -256,11 +199,9 @@ export namespace AddPlaylistContentsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined
|
MediaContainer: "mediaContainer",
|
||||||
? null
|
});
|
||||||
: { mediaContainer: v.MediaContainer }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -278,9 +219,9 @@ export namespace AddPlaylistContentsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -294,12 +235,11 @@ export namespace AddPlaylistContentsResponse$ {
|
|||||||
object: z.lazy(() => AddPlaylistContentsResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => AddPlaylistContentsResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -319,11 +259,10 @@ export namespace AddPlaylistContentsResponse$ {
|
|||||||
object: z.lazy(() => AddPlaylistContentsResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => AddPlaylistContentsResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -60,34 +61,20 @@ export namespace Skip$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ApplyUpdatesRequest$ {
|
export namespace ApplyUpdatesRequest$ {
|
||||||
export const inboundSchema: z.ZodType<ApplyUpdatesRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ApplyUpdatesRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
tonight: Tonight$.inboundSchema.optional(),
|
||||||
tonight: Tonight$.inboundSchema.optional(),
|
skip: Skip$.inboundSchema.optional(),
|
||||||
skip: Skip$.inboundSchema.optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tonight === undefined ? null : { tonight: v.tonight }),
|
|
||||||
...(v.skip === undefined ? null : { skip: v.skip }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tonight?: number | undefined;
|
tonight?: number | undefined;
|
||||||
skip?: number | undefined;
|
skip?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ApplyUpdatesRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ApplyUpdatesRequest> = z.object({
|
||||||
.object({
|
tonight: Tonight$.outboundSchema.optional(),
|
||||||
tonight: Tonight$.outboundSchema.optional(),
|
skip: Skip$.outboundSchema.optional(),
|
||||||
skip: Skip$.outboundSchema.optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tonight === undefined ? null : { tonight: v.tonight }),
|
|
||||||
...(v.skip === undefined ? null : { skip: v.skip }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -99,11 +86,11 @@ export namespace ApplyUpdatesResponse$ {
|
|||||||
RawResponse: z.instanceof(Response),
|
RawResponse: z.instanceof(Response),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -121,10 +108,10 @@ export namespace ApplyUpdatesResponse$ {
|
|||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type CancelServerActivitiesRequest = {
|
export type CancelServerActivitiesRequest = {
|
||||||
@@ -28,14 +29,9 @@ export type CancelServerActivitiesResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CancelServerActivitiesRequest$ {
|
export namespace CancelServerActivitiesRequest$ {
|
||||||
export const inboundSchema: z.ZodType<CancelServerActivitiesRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<CancelServerActivitiesRequest, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
activityUUID: z.string(),
|
activityUUID: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
activityUUID: v.activityUUID,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -43,15 +39,9 @@ export namespace CancelServerActivitiesRequest$ {
|
|||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CancelServerActivitiesRequest> =
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CancelServerActivitiesRequest> =
|
||||||
z
|
z.object({
|
||||||
.object({
|
activityUUID: z.string(),
|
||||||
activityUUID: z.string(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
activityUUID: v.activityUUID,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -63,11 +53,11 @@ export namespace CancelServerActivitiesResponse$ {
|
|||||||
RawResponse: z.instanceof(Response),
|
RawResponse: z.instanceof(Response),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -86,10 +76,10 @@ export namespace CancelServerActivitiesResponse$ {
|
|||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -42,28 +43,19 @@ export namespace Download$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CheckForUpdatesRequest$ {
|
export namespace CheckForUpdatesRequest$ {
|
||||||
export const inboundSchema: z.ZodType<CheckForUpdatesRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<CheckForUpdatesRequest, z.ZodTypeDef, unknown> = z.object(
|
||||||
.object({
|
{
|
||||||
download: Download$.inboundSchema.optional(),
|
download: Download$.inboundSchema.optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.download === undefined ? null : { download: v.download }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
download?: number | undefined;
|
download?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CheckForUpdatesRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CheckForUpdatesRequest> =
|
||||||
.object({
|
z.object({
|
||||||
download: Download$.outboundSchema.optional(),
|
download: Download$.outboundSchema.optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.download === undefined ? null : { download: v.download }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -76,11 +68,11 @@ export namespace CheckForUpdatesResponse$ {
|
|||||||
RawResponse: z.instanceof(Response),
|
RawResponse: z.instanceof(Response),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -98,10 +90,10 @@ export namespace CheckForUpdatesResponse$ {
|
|||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type ClearPlaylistContentsRequest = {
|
export type ClearPlaylistContentsRequest = {
|
||||||
@@ -28,28 +29,18 @@ export type ClearPlaylistContentsResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ClearPlaylistContentsRequest$ {
|
export namespace ClearPlaylistContentsRequest$ {
|
||||||
export const inboundSchema: z.ZodType<ClearPlaylistContentsRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ClearPlaylistContentsRequest, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
playlistID: z.number(),
|
playlistID: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
playlistID: v.playlistID,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
playlistID: number;
|
playlistID: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClearPlaylistContentsRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ClearPlaylistContentsRequest> =
|
||||||
.object({
|
z.object({
|
||||||
playlistID: z.number(),
|
playlistID: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
playlistID: v.playlistID,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,11 +53,11 @@ export namespace ClearPlaylistContentsResponse$ {
|
|||||||
RawResponse: z.instanceof(Response),
|
RawResponse: z.instanceof(Response),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -85,10 +76,10 @@ export namespace ClearPlaylistContentsResponse$ {
|
|||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -108,23 +109,13 @@ export namespace Smart$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CreatePlaylistRequest$ {
|
export namespace CreatePlaylistRequest$ {
|
||||||
export const inboundSchema: z.ZodType<CreatePlaylistRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<CreatePlaylistRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
title: z.string(),
|
||||||
title: z.string(),
|
type: QueryParamType$.inboundSchema,
|
||||||
type: QueryParamType$.inboundSchema,
|
smart: Smart$.inboundSchema,
|
||||||
smart: Smart$.inboundSchema,
|
uri: z.string(),
|
||||||
uri: z.string(),
|
playQueueID: z.number().optional(),
|
||||||
playQueueID: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
title: v.title,
|
|
||||||
type: v.type,
|
|
||||||
smart: v.smart,
|
|
||||||
uri: v.uri,
|
|
||||||
...(v.playQueueID === undefined ? null : { playQueueID: v.playQueueID }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
title: string;
|
title: string;
|
||||||
@@ -134,29 +125,20 @@ export namespace CreatePlaylistRequest$ {
|
|||||||
playQueueID?: number | undefined;
|
playQueueID?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreatePlaylistRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreatePlaylistRequest> =
|
||||||
.object({
|
z.object({
|
||||||
title: z.string(),
|
title: z.string(),
|
||||||
type: QueryParamType$.outboundSchema,
|
type: QueryParamType$.outboundSchema,
|
||||||
smart: Smart$.outboundSchema,
|
smart: Smart$.outboundSchema,
|
||||||
uri: z.string(),
|
uri: z.string(),
|
||||||
playQueueID: z.number().optional(),
|
playQueueID: z.number().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
title: v.title,
|
|
||||||
type: v.type,
|
|
||||||
smart: v.smart,
|
|
||||||
uri: v.uri,
|
|
||||||
...(v.playQueueID === undefined ? null : { playQueueID: v.playQueueID }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace CreatePlaylistMetadata$ {
|
export namespace CreatePlaylistMetadata$ {
|
||||||
export const inboundSchema: z.ZodType<CreatePlaylistMetadata, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<CreatePlaylistMetadata, z.ZodTypeDef, unknown> = z.object(
|
||||||
.object({
|
{
|
||||||
ratingKey: z.string().optional(),
|
ratingKey: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
guid: z.string().optional(),
|
guid: z.string().optional(),
|
||||||
@@ -173,27 +155,8 @@ export namespace CreatePlaylistMetadata$ {
|
|||||||
updatedAt: z.number().int().optional(),
|
updatedAt: z.number().int().optional(),
|
||||||
composite: z.string().optional(),
|
composite: z.string().optional(),
|
||||||
duration: z.number().int().optional(),
|
duration: z.number().int().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.smart === undefined ? null : { smart: v.smart }),
|
|
||||||
...(v.playlistType === undefined ? null : { playlistType: v.playlistType }),
|
|
||||||
...(v.icon === undefined ? null : { icon: v.icon }),
|
|
||||||
...(v.viewCount === undefined ? null : { viewCount: v.viewCount }),
|
|
||||||
...(v.lastViewedAt === undefined ? null : { lastViewedAt: v.lastViewedAt }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.composite === undefined ? null : { composite: v.composite }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
ratingKey?: string | undefined;
|
ratingKey?: string | undefined;
|
||||||
@@ -214,8 +177,8 @@ export namespace CreatePlaylistMetadata$ {
|
|||||||
duration?: number | undefined;
|
duration?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreatePlaylistMetadata> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, CreatePlaylistMetadata> =
|
||||||
.object({
|
z.object({
|
||||||
ratingKey: z.string().optional(),
|
ratingKey: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
guid: z.string().optional(),
|
guid: z.string().optional(),
|
||||||
@@ -232,26 +195,6 @@ export namespace CreatePlaylistMetadata$ {
|
|||||||
updatedAt: z.number().int().optional(),
|
updatedAt: z.number().int().optional(),
|
||||||
composite: z.string().optional(),
|
composite: z.string().optional(),
|
||||||
duration: z.number().int().optional(),
|
duration: z.number().int().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.smart === undefined ? null : { smart: v.smart }),
|
|
||||||
...(v.playlistType === undefined ? null : { playlistType: v.playlistType }),
|
|
||||||
...(v.icon === undefined ? null : { icon: v.icon }),
|
|
||||||
...(v.viewCount === undefined ? null : { viewCount: v.viewCount }),
|
|
||||||
...(v.lastViewedAt === undefined ? null : { lastViewedAt: v.lastViewedAt }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.composite === undefined ? null : { composite: v.composite }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -263,10 +206,9 @@ export namespace CreatePlaylistMediaContainer$ {
|
|||||||
Metadata: z.array(z.lazy(() => CreatePlaylistMetadata$.inboundSchema)).optional(),
|
Metadata: z.array(z.lazy(() => CreatePlaylistMetadata$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Metadata: "metadata",
|
||||||
...(v.Metadata === undefined ? null : { metadata: v.Metadata }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -280,10 +222,9 @@ export namespace CreatePlaylistMediaContainer$ {
|
|||||||
metadata: z.array(z.lazy(() => CreatePlaylistMetadata$.outboundSchema)).optional(),
|
metadata: z.array(z.lazy(() => CreatePlaylistMetadata$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
metadata: "Metadata",
|
||||||
...(v.metadata === undefined ? null : { Metadata: v.metadata }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -294,9 +235,9 @@ export namespace CreatePlaylistResponseBody$ {
|
|||||||
MediaContainer: z.lazy(() => CreatePlaylistMediaContainer$.inboundSchema).optional(),
|
MediaContainer: z.lazy(() => CreatePlaylistMediaContainer$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined ? null : { mediaContainer: v.MediaContainer }),
|
MediaContainer: "mediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -308,9 +249,9 @@ export namespace CreatePlaylistResponseBody$ {
|
|||||||
mediaContainer: z.lazy(() => CreatePlaylistMediaContainer$.outboundSchema).optional(),
|
mediaContainer: z.lazy(() => CreatePlaylistMediaContainer$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -324,12 +265,11 @@ export namespace CreatePlaylistResponse$ {
|
|||||||
object: z.lazy(() => CreatePlaylistResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => CreatePlaylistResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -349,11 +289,10 @@ export namespace CreatePlaylistResponse$ {
|
|||||||
object: z.lazy(() => CreatePlaylistResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => CreatePlaylistResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type DeleteLibraryRequest = {
|
export type DeleteLibraryRequest = {
|
||||||
@@ -28,29 +29,19 @@ export type DeleteLibraryResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace DeleteLibraryRequest$ {
|
export namespace DeleteLibraryRequest$ {
|
||||||
export const inboundSchema: z.ZodType<DeleteLibraryRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<DeleteLibraryRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
sectionId: z.number(),
|
||||||
sectionId: z.number(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
sectionId: v.sectionId,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
sectionId: number;
|
sectionId: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteLibraryRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeleteLibraryRequest> = z.object(
|
||||||
.object({
|
{
|
||||||
sectionId: z.number(),
|
sectionId: z.number(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
sectionId: v.sectionId,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -62,11 +53,11 @@ export namespace DeleteLibraryResponse$ {
|
|||||||
RawResponse: z.instanceof(Response),
|
RawResponse: z.instanceof(Response),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -84,10 +75,10 @@ export namespace DeleteLibraryResponse$ {
|
|||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type DeletePlaylistRequest = {
|
export type DeletePlaylistRequest = {
|
||||||
@@ -28,28 +29,17 @@ export type DeletePlaylistResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace DeletePlaylistRequest$ {
|
export namespace DeletePlaylistRequest$ {
|
||||||
export const inboundSchema: z.ZodType<DeletePlaylistRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<DeletePlaylistRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
playlistID: z.number(),
|
||||||
playlistID: z.number(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
playlistID: v.playlistID,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
playlistID: number;
|
playlistID: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeletePlaylistRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, DeletePlaylistRequest> =
|
||||||
.object({
|
z.object({
|
||||||
playlistID: z.number(),
|
playlistID: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
playlistID: v.playlistID,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -62,11 +52,11 @@ export namespace DeletePlaylistResponse$ {
|
|||||||
RawResponse: z.instanceof(Response),
|
RawResponse: z.instanceof(Response),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -84,10 +74,10 @@ export namespace DeletePlaylistResponse$ {
|
|||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type EnablePaperTrailResponse = {
|
export type EnablePaperTrailResponse = {
|
||||||
@@ -28,11 +29,11 @@ export namespace EnablePaperTrailResponse$ {
|
|||||||
RawResponse: z.instanceof(Response),
|
RawResponse: z.instanceof(Response),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -50,10 +51,10 @@ export namespace EnablePaperTrailResponse$ {
|
|||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type Server = {
|
export type Server = {
|
||||||
@@ -51,41 +52,19 @@ export type GetAvailableClientsResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Server$ {
|
export namespace Server$ {
|
||||||
export const inboundSchema: z.ZodType<Server, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Server, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
name: z.string().optional(),
|
||||||
name: z.string().optional(),
|
host: z.string().optional(),
|
||||||
host: z.string().optional(),
|
address: z.string().optional(),
|
||||||
address: z.string().optional(),
|
port: z.number().optional(),
|
||||||
port: z.number().optional(),
|
machineIdentifier: z.string().optional(),
|
||||||
machineIdentifier: z.string().optional(),
|
version: z.string().optional(),
|
||||||
version: z.string().optional(),
|
protocol: z.string().optional(),
|
||||||
protocol: z.string().optional(),
|
product: z.string().optional(),
|
||||||
product: z.string().optional(),
|
deviceClass: z.string().optional(),
|
||||||
deviceClass: z.string().optional(),
|
protocolVersion: z.number().optional(),
|
||||||
protocolVersion: z.number().optional(),
|
protocolCapabilities: z.string().optional(),
|
||||||
protocolCapabilities: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.name === undefined ? null : { name: v.name }),
|
|
||||||
...(v.host === undefined ? null : { host: v.host }),
|
|
||||||
...(v.address === undefined ? null : { address: v.address }),
|
|
||||||
...(v.port === undefined ? null : { port: v.port }),
|
|
||||||
...(v.machineIdentifier === undefined
|
|
||||||
? null
|
|
||||||
: { machineIdentifier: v.machineIdentifier }),
|
|
||||||
...(v.version === undefined ? null : { version: v.version }),
|
|
||||||
...(v.protocol === undefined ? null : { protocol: v.protocol }),
|
|
||||||
...(v.product === undefined ? null : { product: v.product }),
|
|
||||||
...(v.deviceClass === undefined ? null : { deviceClass: v.deviceClass }),
|
|
||||||
...(v.protocolVersion === undefined
|
|
||||||
? null
|
|
||||||
: { protocolVersion: v.protocolVersion }),
|
|
||||||
...(v.protocolCapabilities === undefined
|
|
||||||
? null
|
|
||||||
: { protocolCapabilities: v.protocolCapabilities }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
name?: string | undefined;
|
name?: string | undefined;
|
||||||
@@ -101,41 +80,19 @@ export namespace Server$ {
|
|||||||
protocolCapabilities?: string | undefined;
|
protocolCapabilities?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Server> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Server> = z.object({
|
||||||
.object({
|
name: z.string().optional(),
|
||||||
name: z.string().optional(),
|
host: z.string().optional(),
|
||||||
host: z.string().optional(),
|
address: z.string().optional(),
|
||||||
address: z.string().optional(),
|
port: z.number().optional(),
|
||||||
port: z.number().optional(),
|
machineIdentifier: z.string().optional(),
|
||||||
machineIdentifier: z.string().optional(),
|
version: z.string().optional(),
|
||||||
version: z.string().optional(),
|
protocol: z.string().optional(),
|
||||||
protocol: z.string().optional(),
|
product: z.string().optional(),
|
||||||
product: z.string().optional(),
|
deviceClass: z.string().optional(),
|
||||||
deviceClass: z.string().optional(),
|
protocolVersion: z.number().optional(),
|
||||||
protocolVersion: z.number().optional(),
|
protocolCapabilities: z.string().optional(),
|
||||||
protocolCapabilities: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.name === undefined ? null : { name: v.name }),
|
|
||||||
...(v.host === undefined ? null : { host: v.host }),
|
|
||||||
...(v.address === undefined ? null : { address: v.address }),
|
|
||||||
...(v.port === undefined ? null : { port: v.port }),
|
|
||||||
...(v.machineIdentifier === undefined
|
|
||||||
? null
|
|
||||||
: { machineIdentifier: v.machineIdentifier }),
|
|
||||||
...(v.version === undefined ? null : { version: v.version }),
|
|
||||||
...(v.protocol === undefined ? null : { protocol: v.protocol }),
|
|
||||||
...(v.product === undefined ? null : { product: v.product }),
|
|
||||||
...(v.deviceClass === undefined ? null : { deviceClass: v.deviceClass }),
|
|
||||||
...(v.protocolVersion === undefined
|
|
||||||
? null
|
|
||||||
: { protocolVersion: v.protocolVersion }),
|
|
||||||
...(v.protocolCapabilities === undefined
|
|
||||||
? null
|
|
||||||
: { protocolCapabilities: v.protocolCapabilities }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -150,10 +107,9 @@ export namespace GetAvailableClientsMediaContainer$ {
|
|||||||
Server: z.array(z.lazy(() => Server$.inboundSchema)).optional(),
|
Server: z.array(z.lazy(() => Server$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Server: "server",
|
||||||
...(v.Server === undefined ? null : { server: v.Server }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -171,10 +127,9 @@ export namespace GetAvailableClientsMediaContainer$ {
|
|||||||
server: z.array(z.lazy(() => Server$.outboundSchema)).optional(),
|
server: z.array(z.lazy(() => Server$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
server: "Server",
|
||||||
...(v.server === undefined ? null : { Server: v.server }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -188,11 +143,9 @@ export namespace GetAvailableClientsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined
|
MediaContainer: "mediaContainer",
|
||||||
? null
|
});
|
||||||
: { mediaContainer: v.MediaContainer }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -210,9 +163,9 @@ export namespace GetAvailableClientsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -226,12 +179,11 @@ export namespace GetAvailableClientsResponse$ {
|
|||||||
object: z.lazy(() => GetAvailableClientsResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetAvailableClientsResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -251,11 +203,10 @@ export namespace GetAvailableClientsResponse$ {
|
|||||||
object: z.lazy(() => GetAvailableClientsResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetAvailableClientsResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type ButlerTask = {
|
export type ButlerTask = {
|
||||||
@@ -45,27 +46,14 @@ export type GetButlerTasksResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace ButlerTask$ {
|
export namespace ButlerTask$ {
|
||||||
export const inboundSchema: z.ZodType<ButlerTask, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<ButlerTask, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
name: z.string().optional(),
|
||||||
name: z.string().optional(),
|
interval: z.number().optional(),
|
||||||
interval: z.number().optional(),
|
scheduleRandomized: z.boolean().optional(),
|
||||||
scheduleRandomized: z.boolean().optional(),
|
enabled: z.boolean().optional(),
|
||||||
enabled: z.boolean().optional(),
|
title: z.string().optional(),
|
||||||
title: z.string().optional(),
|
description: z.string().optional(),
|
||||||
description: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.name === undefined ? null : { name: v.name }),
|
|
||||||
...(v.interval === undefined ? null : { interval: v.interval }),
|
|
||||||
...(v.scheduleRandomized === undefined
|
|
||||||
? null
|
|
||||||
: { scheduleRandomized: v.scheduleRandomized }),
|
|
||||||
...(v.enabled === undefined ? null : { enabled: v.enabled }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.description === undefined ? null : { description: v.description }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
name?: string | undefined;
|
name?: string | undefined;
|
||||||
@@ -76,27 +64,14 @@ export namespace ButlerTask$ {
|
|||||||
description?: string | undefined;
|
description?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ButlerTask> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, ButlerTask> = z.object({
|
||||||
.object({
|
name: z.string().optional(),
|
||||||
name: z.string().optional(),
|
interval: z.number().optional(),
|
||||||
interval: z.number().optional(),
|
scheduleRandomized: z.boolean().optional(),
|
||||||
scheduleRandomized: z.boolean().optional(),
|
enabled: z.boolean().optional(),
|
||||||
enabled: z.boolean().optional(),
|
title: z.string().optional(),
|
||||||
title: z.string().optional(),
|
description: z.string().optional(),
|
||||||
description: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.name === undefined ? null : { name: v.name }),
|
|
||||||
...(v.interval === undefined ? null : { interval: v.interval }),
|
|
||||||
...(v.scheduleRandomized === undefined
|
|
||||||
? null
|
|
||||||
: { scheduleRandomized: v.scheduleRandomized }),
|
|
||||||
...(v.enabled === undefined ? null : { enabled: v.enabled }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.description === undefined ? null : { description: v.description }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -106,9 +81,9 @@ export namespace ButlerTasks$ {
|
|||||||
ButlerTask: z.array(z.lazy(() => ButlerTask$.inboundSchema)).optional(),
|
ButlerTask: z.array(z.lazy(() => ButlerTask$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.ButlerTask === undefined ? null : { butlerTask: v.ButlerTask }),
|
ButlerTask: "butlerTask",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -120,9 +95,9 @@ export namespace ButlerTasks$ {
|
|||||||
butlerTask: z.array(z.lazy(() => ButlerTask$.outboundSchema)).optional(),
|
butlerTask: z.array(z.lazy(() => ButlerTask$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.butlerTask === undefined ? null : { ButlerTask: v.butlerTask }),
|
butlerTask: "ButlerTask",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -133,9 +108,9 @@ export namespace GetButlerTasksResponseBody$ {
|
|||||||
ButlerTasks: z.lazy(() => ButlerTasks$.inboundSchema).optional(),
|
ButlerTasks: z.lazy(() => ButlerTasks$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.ButlerTasks === undefined ? null : { butlerTasks: v.ButlerTasks }),
|
ButlerTasks: "butlerTasks",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -147,9 +122,9 @@ export namespace GetButlerTasksResponseBody$ {
|
|||||||
butlerTasks: z.lazy(() => ButlerTasks$.outboundSchema).optional(),
|
butlerTasks: z.lazy(() => ButlerTasks$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.butlerTasks === undefined ? null : { ButlerTasks: v.butlerTasks }),
|
butlerTasks: "ButlerTasks",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -163,12 +138,11 @@ export namespace GetButlerTasksResponse$ {
|
|||||||
object: z.lazy(() => GetButlerTasksResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetButlerTasksResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -188,11 +162,10 @@ export namespace GetButlerTasksResponse$ {
|
|||||||
object: z.lazy(() => GetButlerTasksResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetButlerTasksResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type Device = {
|
export type Device = {
|
||||||
@@ -46,25 +47,13 @@ export type GetDevicesResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Device$ {
|
export namespace Device$ {
|
||||||
export const inboundSchema: z.ZodType<Device, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Device, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
id: z.number().optional(),
|
||||||
id: z.number().optional(),
|
name: z.string().optional(),
|
||||||
name: z.string().optional(),
|
platform: z.string().optional(),
|
||||||
platform: z.string().optional(),
|
clientIdentifier: z.string().optional(),
|
||||||
clientIdentifier: z.string().optional(),
|
createdAt: z.number().optional(),
|
||||||
createdAt: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.name === undefined ? null : { name: v.name }),
|
|
||||||
...(v.platform === undefined ? null : { platform: v.platform }),
|
|
||||||
...(v.clientIdentifier === undefined
|
|
||||||
? null
|
|
||||||
: { clientIdentifier: v.clientIdentifier }),
|
|
||||||
...(v.createdAt === undefined ? null : { createdAt: v.createdAt }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
id?: number | undefined;
|
id?: number | undefined;
|
||||||
@@ -74,25 +63,13 @@ export namespace Device$ {
|
|||||||
createdAt?: number | undefined;
|
createdAt?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Device> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Device> = z.object({
|
||||||
.object({
|
id: z.number().optional(),
|
||||||
id: z.number().optional(),
|
name: z.string().optional(),
|
||||||
name: z.string().optional(),
|
platform: z.string().optional(),
|
||||||
platform: z.string().optional(),
|
clientIdentifier: z.string().optional(),
|
||||||
clientIdentifier: z.string().optional(),
|
createdAt: z.number().optional(),
|
||||||
createdAt: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.name === undefined ? null : { name: v.name }),
|
|
||||||
...(v.platform === undefined ? null : { platform: v.platform }),
|
|
||||||
...(v.clientIdentifier === undefined
|
|
||||||
? null
|
|
||||||
: { clientIdentifier: v.clientIdentifier }),
|
|
||||||
...(v.createdAt === undefined ? null : { createdAt: v.createdAt }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -104,11 +81,9 @@ export namespace GetDevicesMediaContainer$ {
|
|||||||
Device: z.array(z.lazy(() => Device$.inboundSchema)).optional(),
|
Device: z.array(z.lazy(() => Device$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Device: "device",
|
||||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
});
|
||||||
...(v.Device === undefined ? null : { device: v.Device }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -124,11 +99,9 @@ export namespace GetDevicesMediaContainer$ {
|
|||||||
device: z.array(z.lazy(() => Device$.outboundSchema)).optional(),
|
device: z.array(z.lazy(() => Device$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
device: "Device",
|
||||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
});
|
||||||
...(v.device === undefined ? null : { Device: v.device }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -139,9 +112,9 @@ export namespace GetDevicesResponseBody$ {
|
|||||||
MediaContainer: z.lazy(() => GetDevicesMediaContainer$.inboundSchema).optional(),
|
MediaContainer: z.lazy(() => GetDevicesMediaContainer$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined ? null : { mediaContainer: v.MediaContainer }),
|
MediaContainer: "mediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -153,9 +126,9 @@ export namespace GetDevicesResponseBody$ {
|
|||||||
mediaContainer: z.lazy(() => GetDevicesMediaContainer$.outboundSchema).optional(),
|
mediaContainer: z.lazy(() => GetDevicesMediaContainer$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -169,12 +142,11 @@ export namespace GetDevicesResponse$ {
|
|||||||
object: z.lazy(() => GetDevicesResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetDevicesResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -194,11 +166,10 @@ export namespace GetDevicesResponse$ {
|
|||||||
object: z.lazy(() => GetDevicesResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetDevicesResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetFileHashRequest = {
|
export type GetFileHashRequest = {
|
||||||
@@ -32,34 +33,20 @@ export type GetFileHashResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetFileHashRequest$ {
|
export namespace GetFileHashRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetFileHashRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetFileHashRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
url: z.string(),
|
||||||
url: z.string(),
|
type: z.number().optional(),
|
||||||
type: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
url: string;
|
url: string;
|
||||||
type?: number | undefined;
|
type?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetFileHashRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetFileHashRequest> = z.object({
|
||||||
.object({
|
url: z.string(),
|
||||||
url: z.string(),
|
type: z.number().optional(),
|
||||||
type: z.number().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
url: v.url,
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -71,11 +58,11 @@ export namespace GetFileHashResponse$ {
|
|||||||
RawResponse: z.instanceof(Response),
|
RawResponse: z.instanceof(Response),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -93,10 +80,10 @@ export namespace GetFileHashResponse$ {
|
|||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -98,79 +99,45 @@ export namespace OnlyTransient$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetGlobalHubsRequest$ {
|
export namespace GetGlobalHubsRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetGlobalHubsRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetGlobalHubsRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
count: z.number().optional(),
|
||||||
count: z.number().optional(),
|
onlyTransient: OnlyTransient$.inboundSchema.optional(),
|
||||||
onlyTransient: OnlyTransient$.inboundSchema.optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.count === undefined ? null : { count: v.count }),
|
|
||||||
...(v.onlyTransient === undefined ? null : { onlyTransient: v.onlyTransient }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
count?: number | undefined;
|
count?: number | undefined;
|
||||||
onlyTransient?: number | undefined;
|
onlyTransient?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetGlobalHubsRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetGlobalHubsRequest> = z.object(
|
||||||
.object({
|
{
|
||||||
count: z.number().optional(),
|
count: z.number().optional(),
|
||||||
onlyTransient: OnlyTransient$.outboundSchema.optional(),
|
onlyTransient: OnlyTransient$.outboundSchema.optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.count === undefined ? null : { count: v.count }),
|
|
||||||
...(v.onlyTransient === undefined ? null : { onlyTransient: v.onlyTransient }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetGlobalHubsMetadata$ {
|
export namespace GetGlobalHubsMetadata$ {
|
||||||
export const inboundSchema: z.ZodType<GetGlobalHubsMetadata, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetGlobalHubsMetadata, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
ratingKey: z.string().optional(),
|
||||||
ratingKey: z.string().optional(),
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
guid: z.string().optional(),
|
||||||
guid: z.string().optional(),
|
type: z.string().optional(),
|
||||||
type: z.string().optional(),
|
title: z.string().optional(),
|
||||||
title: z.string().optional(),
|
titleSort: z.string().optional(),
|
||||||
titleSort: z.string().optional(),
|
summary: z.string().optional(),
|
||||||
summary: z.string().optional(),
|
smart: z.boolean().optional(),
|
||||||
smart: z.boolean().optional(),
|
playlistType: z.string().optional(),
|
||||||
playlistType: z.string().optional(),
|
composite: z.string().optional(),
|
||||||
composite: z.string().optional(),
|
icon: z.string().optional(),
|
||||||
icon: z.string().optional(),
|
viewCount: z.number().int().optional(),
|
||||||
viewCount: z.number().int().optional(),
|
lastViewedAt: z.number().int().optional(),
|
||||||
lastViewedAt: z.number().int().optional(),
|
duration: z.number().int().optional(),
|
||||||
duration: z.number().int().optional(),
|
leafCount: z.number().int().optional(),
|
||||||
leafCount: z.number().int().optional(),
|
addedAt: z.number().int().optional(),
|
||||||
addedAt: z.number().int().optional(),
|
updatedAt: z.number().int().optional(),
|
||||||
updatedAt: z.number().int().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.titleSort === undefined ? null : { titleSort: v.titleSort }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.smart === undefined ? null : { smart: v.smart }),
|
|
||||||
...(v.playlistType === undefined ? null : { playlistType: v.playlistType }),
|
|
||||||
...(v.composite === undefined ? null : { composite: v.composite }),
|
|
||||||
...(v.icon === undefined ? null : { icon: v.icon }),
|
|
||||||
...(v.viewCount === undefined ? null : { viewCount: v.viewCount }),
|
|
||||||
...(v.lastViewedAt === undefined ? null : { lastViewedAt: v.lastViewedAt }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
ratingKey?: string | undefined;
|
ratingKey?: string | undefined;
|
||||||
@@ -192,8 +159,8 @@ export namespace GetGlobalHubsMetadata$ {
|
|||||||
updatedAt?: number | undefined;
|
updatedAt?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetGlobalHubsMetadata> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetGlobalHubsMetadata> =
|
||||||
.object({
|
z.object({
|
||||||
ratingKey: z.string().optional(),
|
ratingKey: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
guid: z.string().optional(),
|
guid: z.string().optional(),
|
||||||
@@ -211,27 +178,6 @@ export namespace GetGlobalHubsMetadata$ {
|
|||||||
leafCount: z.number().int().optional(),
|
leafCount: z.number().int().optional(),
|
||||||
addedAt: z.number().int().optional(),
|
addedAt: z.number().int().optional(),
|
||||||
updatedAt: z.number().int().optional(),
|
updatedAt: z.number().int().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.titleSort === undefined ? null : { titleSort: v.titleSort }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.smart === undefined ? null : { smart: v.smart }),
|
|
||||||
...(v.playlistType === undefined ? null : { playlistType: v.playlistType }),
|
|
||||||
...(v.composite === undefined ? null : { composite: v.composite }),
|
|
||||||
...(v.icon === undefined ? null : { icon: v.icon }),
|
|
||||||
...(v.viewCount === undefined ? null : { viewCount: v.viewCount }),
|
|
||||||
...(v.lastViewedAt === undefined ? null : { lastViewedAt: v.lastViewedAt }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -252,19 +198,9 @@ export namespace Hub$ {
|
|||||||
Metadata: z.array(z.lazy(() => GetGlobalHubsMetadata$.inboundSchema)).optional(),
|
Metadata: z.array(z.lazy(() => GetGlobalHubsMetadata$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.hubKey === undefined ? null : { hubKey: v.hubKey }),
|
Metadata: "metadata",
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
});
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.hubIdentifier === undefined ? null : { hubIdentifier: v.hubIdentifier }),
|
|
||||||
...(v.context === undefined ? null : { context: v.context }),
|
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
|
||||||
...(v.more === undefined ? null : { more: v.more }),
|
|
||||||
...(v.style === undefined ? null : { style: v.style }),
|
|
||||||
...(v.promoted === undefined ? null : { promoted: v.promoted }),
|
|
||||||
...(v.Metadata === undefined ? null : { metadata: v.Metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -296,19 +232,9 @@ export namespace Hub$ {
|
|||||||
metadata: z.array(z.lazy(() => GetGlobalHubsMetadata$.outboundSchema)).optional(),
|
metadata: z.array(z.lazy(() => GetGlobalHubsMetadata$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.hubKey === undefined ? null : { hubKey: v.hubKey }),
|
metadata: "Metadata",
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
});
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.hubIdentifier === undefined ? null : { hubIdentifier: v.hubIdentifier }),
|
|
||||||
...(v.context === undefined ? null : { context: v.context }),
|
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
|
||||||
...(v.more === undefined ? null : { more: v.more }),
|
|
||||||
...(v.style === undefined ? null : { style: v.style }),
|
|
||||||
...(v.promoted === undefined ? null : { promoted: v.promoted }),
|
|
||||||
...(v.metadata === undefined ? null : { Metadata: v.metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -322,12 +248,9 @@ export namespace GetGlobalHubsMediaContainer$ {
|
|||||||
Hub: z.array(z.lazy(() => Hub$.inboundSchema)).optional(),
|
Hub: z.array(z.lazy(() => Hub$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Hub: "hub",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
});
|
||||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
|
||||||
...(v.Hub === undefined ? null : { hub: v.Hub }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -345,12 +268,9 @@ export namespace GetGlobalHubsMediaContainer$ {
|
|||||||
hub: z.array(z.lazy(() => Hub$.outboundSchema)).optional(),
|
hub: z.array(z.lazy(() => Hub$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
hub: "Hub",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
});
|
||||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
|
||||||
...(v.hub === undefined ? null : { Hub: v.hub }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -361,9 +281,9 @@ export namespace GetGlobalHubsResponseBody$ {
|
|||||||
MediaContainer: z.lazy(() => GetGlobalHubsMediaContainer$.inboundSchema).optional(),
|
MediaContainer: z.lazy(() => GetGlobalHubsMediaContainer$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined ? null : { mediaContainer: v.MediaContainer }),
|
MediaContainer: "mediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -375,9 +295,9 @@ export namespace GetGlobalHubsResponseBody$ {
|
|||||||
mediaContainer: z.lazy(() => GetGlobalHubsMediaContainer$.outboundSchema).optional(),
|
mediaContainer: z.lazy(() => GetGlobalHubsMediaContainer$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -391,12 +311,11 @@ export namespace GetGlobalHubsResponse$ {
|
|||||||
object: z.lazy(() => GetGlobalHubsResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetGlobalHubsResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -416,11 +335,10 @@ export namespace GetGlobalHubsResponse$ {
|
|||||||
object: z.lazy(() => GetGlobalHubsResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetGlobalHubsResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetLibrariesLocation = {
|
export type GetLibrariesLocation = {
|
||||||
@@ -68,34 +69,22 @@ export type GetLibrariesResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibrariesLocation$ {
|
export namespace GetLibrariesLocation$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibrariesLocation, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibrariesLocation, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
id: z.number().int().optional(),
|
||||||
id: z.number().int().optional(),
|
path: z.string().optional(),
|
||||||
path: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.path === undefined ? null : { path: v.path }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
id?: number | undefined;
|
id?: number | undefined;
|
||||||
path?: string | undefined;
|
path?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibrariesLocation> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibrariesLocation> = z.object(
|
||||||
.object({
|
{
|
||||||
id: z.number().int().optional(),
|
id: z.number().int().optional(),
|
||||||
path: z.string().optional(),
|
path: z.string().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.path === undefined ? null : { path: v.path }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -125,31 +114,9 @@ export namespace GetLibrariesDirectory$ {
|
|||||||
Location: z.array(z.lazy(() => GetLibrariesLocation$.inboundSchema)).optional(),
|
Location: z.array(z.lazy(() => GetLibrariesLocation$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
Location: "location",
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
});
|
||||||
...(v.composite === undefined ? null : { composite: v.composite }),
|
|
||||||
...(v.filters === undefined ? null : { filters: v.filters }),
|
|
||||||
...(v.refreshing === undefined ? null : { refreshing: v.refreshing }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.agent === undefined ? null : { agent: v.agent }),
|
|
||||||
...(v.scanner === undefined ? null : { scanner: v.scanner }),
|
|
||||||
...(v.language === undefined ? null : { language: v.language }),
|
|
||||||
...(v.uuid === undefined ? null : { uuid: v.uuid }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.createdAt === undefined ? null : { createdAt: v.createdAt }),
|
|
||||||
...(v.scannedAt === undefined ? null : { scannedAt: v.scannedAt }),
|
|
||||||
...(v.content === undefined ? null : { content: v.content }),
|
|
||||||
...(v.directory === undefined ? null : { directory: v.directory }),
|
|
||||||
...(v.contentChangedAt === undefined
|
|
||||||
? null
|
|
||||||
: { contentChangedAt: v.contentChangedAt }),
|
|
||||||
...(v.hidden === undefined ? null : { hidden: v.hidden }),
|
|
||||||
...(v.Location === undefined ? null : { location: v.Location }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -201,31 +168,9 @@ export namespace GetLibrariesDirectory$ {
|
|||||||
location: z.array(z.lazy(() => GetLibrariesLocation$.outboundSchema)).optional(),
|
location: z.array(z.lazy(() => GetLibrariesLocation$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
location: "Location",
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
});
|
||||||
...(v.composite === undefined ? null : { composite: v.composite }),
|
|
||||||
...(v.filters === undefined ? null : { filters: v.filters }),
|
|
||||||
...(v.refreshing === undefined ? null : { refreshing: v.refreshing }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.agent === undefined ? null : { agent: v.agent }),
|
|
||||||
...(v.scanner === undefined ? null : { scanner: v.scanner }),
|
|
||||||
...(v.language === undefined ? null : { language: v.language }),
|
|
||||||
...(v.uuid === undefined ? null : { uuid: v.uuid }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.createdAt === undefined ? null : { createdAt: v.createdAt }),
|
|
||||||
...(v.scannedAt === undefined ? null : { scannedAt: v.scannedAt }),
|
|
||||||
...(v.content === undefined ? null : { content: v.content }),
|
|
||||||
...(v.directory === undefined ? null : { directory: v.directory }),
|
|
||||||
...(v.contentChangedAt === undefined
|
|
||||||
? null
|
|
||||||
: { contentChangedAt: v.contentChangedAt }),
|
|
||||||
...(v.hidden === undefined ? null : { hidden: v.hidden }),
|
|
||||||
...(v.location === undefined ? null : { Location: v.location }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -239,12 +184,9 @@ export namespace GetLibrariesMediaContainer$ {
|
|||||||
Directory: z.array(z.lazy(() => GetLibrariesDirectory$.inboundSchema)).optional(),
|
Directory: z.array(z.lazy(() => GetLibrariesDirectory$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Directory: "directory",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
});
|
||||||
...(v.title1 === undefined ? null : { title1: v.title1 }),
|
|
||||||
...(v.Directory === undefined ? null : { directory: v.Directory }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -262,12 +204,9 @@ export namespace GetLibrariesMediaContainer$ {
|
|||||||
directory: z.array(z.lazy(() => GetLibrariesDirectory$.outboundSchema)).optional(),
|
directory: z.array(z.lazy(() => GetLibrariesDirectory$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
directory: "Directory",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
});
|
||||||
...(v.title1 === undefined ? null : { title1: v.title1 }),
|
|
||||||
...(v.directory === undefined ? null : { Directory: v.directory }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -278,9 +217,9 @@ export namespace GetLibrariesResponseBody$ {
|
|||||||
MediaContainer: z.lazy(() => GetLibrariesMediaContainer$.inboundSchema).optional(),
|
MediaContainer: z.lazy(() => GetLibrariesMediaContainer$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined ? null : { mediaContainer: v.MediaContainer }),
|
MediaContainer: "mediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -292,9 +231,9 @@ export namespace GetLibrariesResponseBody$ {
|
|||||||
mediaContainer: z.lazy(() => GetLibrariesMediaContainer$.outboundSchema).optional(),
|
mediaContainer: z.lazy(() => GetLibrariesMediaContainer$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -308,12 +247,11 @@ export namespace GetLibrariesResponse$ {
|
|||||||
object: z.lazy(() => GetLibrariesResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetLibrariesResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -333,11 +271,10 @@ export namespace GetLibrariesResponse$ {
|
|||||||
object: z.lazy(() => GetLibrariesResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetLibrariesResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -135,55 +136,31 @@ export namespace IncludeDetails$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryRequest$ {
|
export namespace GetLibraryRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
sectionId: z.number(),
|
||||||
sectionId: z.number(),
|
includeDetails: IncludeDetails$.inboundSchema.default(IncludeDetails.Zero),
|
||||||
includeDetails: IncludeDetails$.inboundSchema.default(IncludeDetails.Zero),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
sectionId: v.sectionId,
|
|
||||||
includeDetails: v.includeDetails,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
sectionId: number;
|
sectionId: number;
|
||||||
includeDetails: number;
|
includeDetails: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryRequest> = z.object({
|
||||||
.object({
|
sectionId: z.number(),
|
||||||
sectionId: z.number(),
|
includeDetails: IncludeDetails$.outboundSchema.default(IncludeDetails.Zero),
|
||||||
includeDetails: IncludeDetails$.outboundSchema.default(IncludeDetails.Zero),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
sectionId: v.sectionId,
|
|
||||||
includeDetails: v.includeDetails,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryDirectory$ {
|
export namespace GetLibraryDirectory$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryDirectory, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryDirectory, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
title: z.string().optional(),
|
||||||
title: z.string().optional(),
|
secondary: z.boolean().optional(),
|
||||||
secondary: z.boolean().optional(),
|
prompt: z.string().optional(),
|
||||||
prompt: z.string().optional(),
|
search: z.boolean().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 = {
|
export type Outbound = {
|
||||||
key?: string | undefined;
|
key?: string | undefined;
|
||||||
@@ -193,44 +170,24 @@ export namespace GetLibraryDirectory$ {
|
|||||||
search?: boolean | undefined;
|
search?: boolean | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryDirectory> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryDirectory> = z.object({
|
||||||
.object({
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
title: z.string().optional(),
|
||||||
title: z.string().optional(),
|
secondary: z.boolean().optional(),
|
||||||
secondary: z.boolean().optional(),
|
prompt: z.string().optional(),
|
||||||
prompt: z.string().optional(),
|
search: z.boolean().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 */
|
/** @internal */
|
||||||
export namespace Filter$ {
|
export namespace Filter$ {
|
||||||
export const inboundSchema: z.ZodType<Filter, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Filter, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
filter: z.string().optional(),
|
||||||
filter: z.string().optional(),
|
filterType: z.string().optional(),
|
||||||
filterType: z.string().optional(),
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
title: z.string().optional(),
|
||||||
title: z.string().optional(),
|
type: 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 = {
|
export type Outbound = {
|
||||||
filter?: string | undefined;
|
filter?: string | undefined;
|
||||||
@@ -240,50 +197,25 @@ export namespace Filter$ {
|
|||||||
type?: string | undefined;
|
type?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Filter> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Filter> = z.object({
|
||||||
.object({
|
filter: z.string().optional(),
|
||||||
filter: z.string().optional(),
|
filterType: z.string().optional(),
|
||||||
filterType: z.string().optional(),
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
title: z.string().optional(),
|
||||||
title: z.string().optional(),
|
type: 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 */
|
/** @internal */
|
||||||
export namespace Sort$ {
|
export namespace Sort$ {
|
||||||
export const inboundSchema: z.ZodType<Sort, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Sort, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
default: z.string().optional(),
|
||||||
default: z.string().optional(),
|
defaultDirection: z.string().optional(),
|
||||||
defaultDirection: z.string().optional(),
|
descKey: z.string().optional(),
|
||||||
descKey: z.string().optional(),
|
firstCharacterKey: z.string().optional(),
|
||||||
firstCharacterKey: z.string().optional(),
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
title: 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 = {
|
export type Outbound = {
|
||||||
default?: string | undefined;
|
default?: string | undefined;
|
||||||
@@ -294,48 +226,24 @@ export namespace Sort$ {
|
|||||||
title?: string | undefined;
|
title?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Sort> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Sort> = z.object({
|
||||||
.object({
|
default: z.string().optional(),
|
||||||
default: z.string().optional(),
|
defaultDirection: z.string().optional(),
|
||||||
defaultDirection: z.string().optional(),
|
descKey: z.string().optional(),
|
||||||
descKey: z.string().optional(),
|
firstCharacterKey: z.string().optional(),
|
||||||
firstCharacterKey: z.string().optional(),
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
title: 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 */
|
/** @internal */
|
||||||
export namespace Field$ {
|
export namespace Field$ {
|
||||||
export const inboundSchema: z.ZodType<Field, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Field, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
title: z.string().optional(),
|
||||||
title: z.string().optional(),
|
type: z.string().optional(),
|
||||||
type: z.string().optional(),
|
subType: 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 = {
|
export type Outbound = {
|
||||||
key?: string | undefined;
|
key?: string | undefined;
|
||||||
@@ -344,21 +252,12 @@ export namespace Field$ {
|
|||||||
subType?: string | undefined;
|
subType?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Field> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Field> = z.object({
|
||||||
.object({
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
title: z.string().optional(),
|
||||||
title: z.string().optional(),
|
type: z.string().optional(),
|
||||||
type: z.string().optional(),
|
subType: 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 */
|
/** @internal */
|
||||||
@@ -374,15 +273,11 @@ export namespace GetLibraryType$ {
|
|||||||
Field: z.array(z.lazy(() => Field$.inboundSchema)).optional(),
|
Field: z.array(z.lazy(() => Field$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
Filter: "filter",
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
Sort: "sort",
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
Field: "field",
|
||||||
...(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 = {
|
export type Outbound = {
|
||||||
@@ -406,48 +301,30 @@ export namespace GetLibraryType$ {
|
|||||||
field: z.array(z.lazy(() => Field$.outboundSchema)).optional(),
|
field: z.array(z.lazy(() => Field$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
filter: "Filter",
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
sort: "Sort",
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
field: "Field",
|
||||||
...(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 */
|
/** @internal */
|
||||||
export namespace Operator$ {
|
export namespace Operator$ {
|
||||||
export const inboundSchema: z.ZodType<Operator, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Operator, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
title: 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 = {
|
export type Outbound = {
|
||||||
key?: string | undefined;
|
key?: string | undefined;
|
||||||
title?: string | undefined;
|
title?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Operator> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Operator> = z.object({
|
||||||
.object({
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
title: 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 */
|
/** @internal */
|
||||||
@@ -458,10 +335,9 @@ export namespace FieldType$ {
|
|||||||
Operator: z.array(z.lazy(() => Operator$.inboundSchema)).optional(),
|
Operator: z.array(z.lazy(() => Operator$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
Operator: "operator",
|
||||||
...(v.Operator === undefined ? null : { operator: v.Operator }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -475,10 +351,9 @@ export namespace FieldType$ {
|
|||||||
operator: z.array(z.lazy(() => Operator$.outboundSchema)).optional(),
|
operator: z.array(z.lazy(() => Operator$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
operator: "Operator",
|
||||||
...(v.operator === undefined ? null : { Operator: v.operator }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -503,27 +378,11 @@ export namespace GetLibraryMediaContainer$ {
|
|||||||
FieldType: z.array(z.lazy(() => FieldType$.inboundSchema)).optional(),
|
FieldType: z.array(z.lazy(() => FieldType$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Directory: "directory",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
Type: "type",
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
FieldType: "fieldType",
|
||||||
...(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 = {
|
export type Outbound = {
|
||||||
@@ -563,27 +422,11 @@ export namespace GetLibraryMediaContainer$ {
|
|||||||
fieldType: z.array(z.lazy(() => FieldType$.outboundSchema)).optional(),
|
fieldType: z.array(z.lazy(() => FieldType$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
directory: "Directory",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
type: "Type",
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
fieldType: "FieldType",
|
||||||
...(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 }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -594,9 +437,9 @@ export namespace GetLibraryResponseBody$ {
|
|||||||
MediaContainer: z.lazy(() => GetLibraryMediaContainer$.inboundSchema).optional(),
|
MediaContainer: z.lazy(() => GetLibraryMediaContainer$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined ? null : { mediaContainer: v.MediaContainer }),
|
MediaContainer: "mediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -608,9 +451,9 @@ export namespace GetLibraryResponseBody$ {
|
|||||||
mediaContainer: z.lazy(() => GetLibraryMediaContainer$.outboundSchema).optional(),
|
mediaContainer: z.lazy(() => GetLibraryMediaContainer$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -624,12 +467,11 @@ export namespace GetLibraryResponse$ {
|
|||||||
object: z.lazy(() => GetLibraryResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetLibraryResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -649,11 +491,10 @@ export namespace GetLibraryResponse$ {
|
|||||||
object: z.lazy(() => GetLibraryResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetLibraryResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import { RFCDate } from "../../types";
|
import { RFCDate } from "../../types";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
@@ -177,19 +178,11 @@ export namespace QueryParamOnlyTransient$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryHubsRequest$ {
|
export namespace GetLibraryHubsRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryHubsRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryHubsRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
sectionId: z.number(),
|
||||||
sectionId: z.number(),
|
count: z.number().optional(),
|
||||||
count: z.number().optional(),
|
onlyTransient: QueryParamOnlyTransient$.inboundSchema.optional(),
|
||||||
onlyTransient: QueryParamOnlyTransient$.inboundSchema.optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
sectionId: v.sectionId,
|
|
||||||
...(v.count === undefined ? null : { count: v.count }),
|
|
||||||
...(v.onlyTransient === undefined ? null : { onlyTransient: v.onlyTransient }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
sectionId: number;
|
sectionId: number;
|
||||||
@@ -197,54 +190,28 @@ export namespace GetLibraryHubsRequest$ {
|
|||||||
onlyTransient?: number | undefined;
|
onlyTransient?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsRequest> =
|
||||||
.object({
|
z.object({
|
||||||
sectionId: z.number(),
|
sectionId: z.number(),
|
||||||
count: z.number().optional(),
|
count: z.number().optional(),
|
||||||
onlyTransient: QueryParamOnlyTransient$.outboundSchema.optional(),
|
onlyTransient: QueryParamOnlyTransient$.outboundSchema.optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
sectionId: v.sectionId,
|
|
||||||
...(v.count === undefined ? null : { count: v.count }),
|
|
||||||
...(v.onlyTransient === undefined ? null : { onlyTransient: v.onlyTransient }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryHubsPart$ {
|
export namespace GetLibraryHubsPart$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryHubsPart, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryHubsPart, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
id: z.number().int().optional(),
|
||||||
id: z.number().int().optional(),
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
duration: z.number().int().optional(),
|
||||||
duration: z.number().int().optional(),
|
file: z.string().optional(),
|
||||||
file: z.string().optional(),
|
size: z.number().int().optional(),
|
||||||
size: z.number().int().optional(),
|
audioProfile: z.string().optional(),
|
||||||
audioProfile: z.string().optional(),
|
container: z.string().optional(),
|
||||||
container: z.string().optional(),
|
has64bitOffsets: z.boolean().optional(),
|
||||||
has64bitOffsets: z.boolean().optional(),
|
optimizedForStreaming: z.boolean().optional(),
|
||||||
optimizedForStreaming: z.boolean().optional(),
|
videoProfile: z.string().optional(),
|
||||||
videoProfile: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.file === undefined ? null : { file: v.file }),
|
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
|
||||||
...(v.audioProfile === undefined ? null : { audioProfile: v.audioProfile }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.has64bitOffsets === undefined
|
|
||||||
? null
|
|
||||||
: { has64bitOffsets: v.has64bitOffsets }),
|
|
||||||
...(v.optimizedForStreaming === undefined
|
|
||||||
? null
|
|
||||||
: { optimizedForStreaming: v.optimizedForStreaming }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
id?: number | undefined;
|
id?: number | undefined;
|
||||||
@@ -259,37 +226,18 @@ export namespace GetLibraryHubsPart$ {
|
|||||||
videoProfile?: string | undefined;
|
videoProfile?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsPart> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsPart> = z.object({
|
||||||
.object({
|
id: z.number().int().optional(),
|
||||||
id: z.number().int().optional(),
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
duration: z.number().int().optional(),
|
||||||
duration: z.number().int().optional(),
|
file: z.string().optional(),
|
||||||
file: z.string().optional(),
|
size: z.number().int().optional(),
|
||||||
size: z.number().int().optional(),
|
audioProfile: z.string().optional(),
|
||||||
audioProfile: z.string().optional(),
|
container: z.string().optional(),
|
||||||
container: z.string().optional(),
|
has64bitOffsets: z.boolean().optional(),
|
||||||
has64bitOffsets: z.boolean().optional(),
|
optimizedForStreaming: z.boolean().optional(),
|
||||||
optimizedForStreaming: z.boolean().optional(),
|
videoProfile: z.string().optional(),
|
||||||
videoProfile: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.file === undefined ? null : { file: v.file }),
|
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
|
||||||
...(v.audioProfile === undefined ? null : { audioProfile: v.audioProfile }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.has64bitOffsets === undefined
|
|
||||||
? null
|
|
||||||
: { has64bitOffsets: v.has64bitOffsets }),
|
|
||||||
...(v.optimizedForStreaming === undefined
|
|
||||||
? null
|
|
||||||
: { optimizedForStreaming: v.optimizedForStreaming }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -315,31 +263,9 @@ export namespace GetLibraryHubsMedia$ {
|
|||||||
Part: z.array(z.lazy(() => GetLibraryHubsPart$.inboundSchema)).optional(),
|
Part: z.array(z.lazy(() => GetLibraryHubsPart$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
Part: "part",
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
});
|
||||||
...(v.bitrate === undefined ? null : { bitrate: v.bitrate }),
|
|
||||||
...(v.width === undefined ? null : { width: v.width }),
|
|
||||||
...(v.height === undefined ? null : { height: v.height }),
|
|
||||||
...(v.aspectRatio === undefined ? null : { aspectRatio: v.aspectRatio }),
|
|
||||||
...(v.audioChannels === undefined ? null : { audioChannels: v.audioChannels }),
|
|
||||||
...(v.audioCodec === undefined ? null : { audioCodec: v.audioCodec }),
|
|
||||||
...(v.videoCodec === undefined ? null : { videoCodec: v.videoCodec }),
|
|
||||||
...(v.videoResolution === undefined
|
|
||||||
? null
|
|
||||||
: { videoResolution: v.videoResolution }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.videoFrameRate === undefined ? null : { videoFrameRate: v.videoFrameRate }),
|
|
||||||
...(v.optimizedForStreaming === undefined
|
|
||||||
? null
|
|
||||||
: { optimizedForStreaming: v.optimizedForStreaming }),
|
|
||||||
...(v.audioProfile === undefined ? null : { audioProfile: v.audioProfile }),
|
|
||||||
...(v.has64bitOffsets === undefined
|
|
||||||
? null
|
|
||||||
: { has64bitOffsets: v.has64bitOffsets }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
...(v.Part === undefined ? null : { part: v.Part }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -383,167 +309,91 @@ export namespace GetLibraryHubsMedia$ {
|
|||||||
part: z.array(z.lazy(() => GetLibraryHubsPart$.outboundSchema)).optional(),
|
part: z.array(z.lazy(() => GetLibraryHubsPart$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
part: "Part",
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
});
|
||||||
...(v.bitrate === undefined ? null : { bitrate: v.bitrate }),
|
|
||||||
...(v.width === undefined ? null : { width: v.width }),
|
|
||||||
...(v.height === undefined ? null : { height: v.height }),
|
|
||||||
...(v.aspectRatio === undefined ? null : { aspectRatio: v.aspectRatio }),
|
|
||||||
...(v.audioChannels === undefined ? null : { audioChannels: v.audioChannels }),
|
|
||||||
...(v.audioCodec === undefined ? null : { audioCodec: v.audioCodec }),
|
|
||||||
...(v.videoCodec === undefined ? null : { videoCodec: v.videoCodec }),
|
|
||||||
...(v.videoResolution === undefined
|
|
||||||
? null
|
|
||||||
: { videoResolution: v.videoResolution }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.videoFrameRate === undefined ? null : { videoFrameRate: v.videoFrameRate }),
|
|
||||||
...(v.optimizedForStreaming === undefined
|
|
||||||
? null
|
|
||||||
: { optimizedForStreaming: v.optimizedForStreaming }),
|
|
||||||
...(v.audioProfile === undefined ? null : { audioProfile: v.audioProfile }),
|
|
||||||
...(v.has64bitOffsets === undefined
|
|
||||||
? null
|
|
||||||
: { has64bitOffsets: v.has64bitOffsets }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
...(v.part === undefined ? null : { Part: v.part }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryHubsGenre$ {
|
export namespace GetLibraryHubsGenre$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryHubsGenre, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryHubsGenre, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsGenre> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsGenre> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryHubsCountry$ {
|
export namespace GetLibraryHubsCountry$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryHubsCountry, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryHubsCountry, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsCountry> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsCountry> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryHubsDirector$ {
|
export namespace GetLibraryHubsDirector$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryHubsDirector, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryHubsDirector, z.ZodTypeDef, unknown> = z.object(
|
||||||
.object({
|
{
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsDirector> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsDirector> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryHubsRole$ {
|
export namespace GetLibraryHubsRole$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryHubsRole, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryHubsRole, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsRole> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsRole> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryHubsWriter$ {
|
export namespace GetLibraryHubsWriter$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryHubsWriter, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryHubsWriter, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsWriter> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryHubsWriter> = z.object(
|
||||||
.object({
|
{
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -589,54 +439,14 @@ export namespace GetLibraryHubsMetadata$ {
|
|||||||
chapterSource: z.string().optional(),
|
chapterSource: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
Media: "media",
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
Genre: "genre",
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
Country: "country",
|
||||||
...(v.studio === undefined ? null : { studio: v.studio }),
|
Director: "director",
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
Role: "role",
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
Writer: "writer",
|
||||||
...(v.librarySectionTitle === undefined
|
});
|
||||||
? null
|
|
||||||
: { librarySectionTitle: v.librarySectionTitle }),
|
|
||||||
...(v.librarySectionID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionID: v.librarySectionID }),
|
|
||||||
...(v.librarySectionKey === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionKey: v.librarySectionKey }),
|
|
||||||
...(v.contentRating === undefined ? null : { contentRating: v.contentRating }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.rating === undefined ? null : { rating: v.rating }),
|
|
||||||
...(v.audienceRating === undefined ? null : { audienceRating: v.audienceRating }),
|
|
||||||
...(v.viewCount === undefined ? null : { viewCount: v.viewCount }),
|
|
||||||
...(v.lastViewedAt === undefined ? null : { lastViewedAt: v.lastViewedAt }),
|
|
||||||
...(v.year === undefined ? null : { year: v.year }),
|
|
||||||
...(v.tagline === undefined ? null : { tagline: v.tagline }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.originallyAvailableAt === undefined
|
|
||||||
? null
|
|
||||||
: { originallyAvailableAt: v.originallyAvailableAt }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.audienceRatingImage === undefined
|
|
||||||
? null
|
|
||||||
: { audienceRatingImage: v.audienceRatingImage }),
|
|
||||||
...(v.primaryExtraKey === undefined
|
|
||||||
? null
|
|
||||||
: { primaryExtraKey: v.primaryExtraKey }),
|
|
||||||
...(v.ratingImage === undefined ? null : { ratingImage: v.ratingImage }),
|
|
||||||
...(v.Media === undefined ? null : { media: v.Media }),
|
|
||||||
...(v.Genre === undefined ? null : { genre: v.Genre }),
|
|
||||||
...(v.Country === undefined ? null : { country: v.Country }),
|
|
||||||
...(v.Director === undefined ? null : { director: v.Director }),
|
|
||||||
...(v.Role === undefined ? null : { role: v.Role }),
|
|
||||||
...(v.Writer === undefined ? null : { writer: v.Writer }),
|
|
||||||
...(v.skipCount === undefined ? null : { skipCount: v.skipCount }),
|
|
||||||
...(v.chapterSource === undefined ? null : { chapterSource: v.chapterSource }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -717,54 +527,14 @@ export namespace GetLibraryHubsMetadata$ {
|
|||||||
chapterSource: z.string().optional(),
|
chapterSource: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
media: "Media",
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
genre: "Genre",
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
country: "Country",
|
||||||
...(v.studio === undefined ? null : { studio: v.studio }),
|
director: "Director",
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
role: "Role",
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
writer: "Writer",
|
||||||
...(v.librarySectionTitle === undefined
|
});
|
||||||
? null
|
|
||||||
: { librarySectionTitle: v.librarySectionTitle }),
|
|
||||||
...(v.librarySectionID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionID: v.librarySectionID }),
|
|
||||||
...(v.librarySectionKey === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionKey: v.librarySectionKey }),
|
|
||||||
...(v.contentRating === undefined ? null : { contentRating: v.contentRating }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.rating === undefined ? null : { rating: v.rating }),
|
|
||||||
...(v.audienceRating === undefined ? null : { audienceRating: v.audienceRating }),
|
|
||||||
...(v.viewCount === undefined ? null : { viewCount: v.viewCount }),
|
|
||||||
...(v.lastViewedAt === undefined ? null : { lastViewedAt: v.lastViewedAt }),
|
|
||||||
...(v.year === undefined ? null : { year: v.year }),
|
|
||||||
...(v.tagline === undefined ? null : { tagline: v.tagline }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.originallyAvailableAt === undefined
|
|
||||||
? null
|
|
||||||
: { originallyAvailableAt: v.originallyAvailableAt }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.audienceRatingImage === undefined
|
|
||||||
? null
|
|
||||||
: { audienceRatingImage: v.audienceRatingImage }),
|
|
||||||
...(v.primaryExtraKey === undefined
|
|
||||||
? null
|
|
||||||
: { primaryExtraKey: v.primaryExtraKey }),
|
|
||||||
...(v.ratingImage === undefined ? null : { ratingImage: v.ratingImage }),
|
|
||||||
...(v.media === undefined ? null : { Media: v.media }),
|
|
||||||
...(v.genre === undefined ? null : { Genre: v.genre }),
|
|
||||||
...(v.country === undefined ? null : { Country: v.country }),
|
|
||||||
...(v.director === undefined ? null : { Director: v.director }),
|
|
||||||
...(v.role === undefined ? null : { Role: v.role }),
|
|
||||||
...(v.writer === undefined ? null : { Writer: v.writer }),
|
|
||||||
...(v.skipCount === undefined ? null : { skipCount: v.skipCount }),
|
|
||||||
...(v.chapterSource === undefined ? null : { chapterSource: v.chapterSource }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -786,20 +556,9 @@ export namespace GetLibraryHubsHub$ {
|
|||||||
random: z.boolean().optional(),
|
random: z.boolean().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
Metadata: "metadata",
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
});
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.hubIdentifier === undefined ? null : { hubIdentifier: v.hubIdentifier }),
|
|
||||||
...(v.context === undefined ? null : { context: v.context }),
|
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
|
||||||
...(v.more === undefined ? null : { more: v.more }),
|
|
||||||
...(v.style === undefined ? null : { style: v.style }),
|
|
||||||
...(v.hubKey === undefined ? null : { hubKey: v.hubKey }),
|
|
||||||
...(v.Metadata === undefined ? null : { metadata: v.Metadata }),
|
|
||||||
...(v.promoted === undefined ? null : { promoted: v.promoted }),
|
|
||||||
...(v.random === undefined ? null : { random: v.random }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -833,20 +592,9 @@ export namespace GetLibraryHubsHub$ {
|
|||||||
random: z.boolean().optional(),
|
random: z.boolean().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
metadata: "Metadata",
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
});
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.hubIdentifier === undefined ? null : { hubIdentifier: v.hubIdentifier }),
|
|
||||||
...(v.context === undefined ? null : { context: v.context }),
|
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
|
||||||
...(v.more === undefined ? null : { more: v.more }),
|
|
||||||
...(v.style === undefined ? null : { style: v.style }),
|
|
||||||
...(v.hubKey === undefined ? null : { hubKey: v.hubKey }),
|
|
||||||
...(v.metadata === undefined ? null : { Metadata: v.metadata }),
|
|
||||||
...(v.promoted === undefined ? null : { promoted: v.promoted }),
|
|
||||||
...(v.random === undefined ? null : { random: v.random }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -863,21 +611,9 @@ export namespace GetLibraryHubsMediaContainer$ {
|
|||||||
Hub: z.array(z.lazy(() => GetLibraryHubsHub$.inboundSchema)).optional(),
|
Hub: z.array(z.lazy(() => GetLibraryHubsHub$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Hub: "hub",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
});
|
||||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
|
||||||
...(v.librarySectionID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionID: v.librarySectionID }),
|
|
||||||
...(v.librarySectionTitle === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionTitle: v.librarySectionTitle }),
|
|
||||||
...(v.librarySectionUUID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionUUID: v.librarySectionUUID }),
|
|
||||||
...(v.Hub === undefined ? null : { hub: v.Hub }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -901,21 +637,9 @@ export namespace GetLibraryHubsMediaContainer$ {
|
|||||||
hub: z.array(z.lazy(() => GetLibraryHubsHub$.outboundSchema)).optional(),
|
hub: z.array(z.lazy(() => GetLibraryHubsHub$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
hub: "Hub",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
});
|
||||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
|
||||||
...(v.librarySectionID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionID: v.librarySectionID }),
|
|
||||||
...(v.librarySectionTitle === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionTitle: v.librarySectionTitle }),
|
|
||||||
...(v.librarySectionUUID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionUUID: v.librarySectionUUID }),
|
|
||||||
...(v.hub === undefined ? null : { Hub: v.hub }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -926,9 +650,9 @@ export namespace GetLibraryHubsResponseBody$ {
|
|||||||
MediaContainer: z.lazy(() => GetLibraryHubsMediaContainer$.inboundSchema).optional(),
|
MediaContainer: z.lazy(() => GetLibraryHubsMediaContainer$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined ? null : { mediaContainer: v.MediaContainer }),
|
MediaContainer: "mediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -940,9 +664,9 @@ export namespace GetLibraryHubsResponseBody$ {
|
|||||||
mediaContainer: z.lazy(() => GetLibraryHubsMediaContainer$.outboundSchema).optional(),
|
mediaContainer: z.lazy(() => GetLibraryHubsMediaContainer$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -956,12 +680,11 @@ export namespace GetLibraryHubsResponse$ {
|
|||||||
object: z.lazy(() => GetLibraryHubsResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetLibraryHubsResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -981,11 +704,10 @@ export namespace GetLibraryHubsResponse$ {
|
|||||||
object: z.lazy(() => GetLibraryHubsResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetLibraryHubsResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import { RFCDate } from "../../types";
|
import { RFCDate } from "../../types";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
@@ -201,59 +202,36 @@ export namespace Tag$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryItemsRequest$ {
|
export namespace GetLibraryItemsRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryItemsRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryItemsRequest, z.ZodTypeDef, unknown> = z.object(
|
||||||
.object({
|
{
|
||||||
sectionId: z.number().int(),
|
sectionId: z.number().int(),
|
||||||
tag: Tag$.inboundSchema,
|
tag: Tag$.inboundSchema,
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
sectionId: v.sectionId,
|
|
||||||
tag: v.tag,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
sectionId: number;
|
sectionId: number;
|
||||||
tag: string;
|
tag: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsRequest> =
|
||||||
.object({
|
z.object({
|
||||||
sectionId: z.number().int(),
|
sectionId: z.number().int(),
|
||||||
tag: Tag$.outboundSchema,
|
tag: Tag$.outboundSchema,
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
sectionId: v.sectionId,
|
|
||||||
tag: v.tag,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryItemsPart$ {
|
export namespace GetLibraryItemsPart$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryItemsPart, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryItemsPart, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
id: z.number().int().optional(),
|
||||||
id: z.number().int().optional(),
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
duration: z.number().int().optional(),
|
||||||
duration: z.number().int().optional(),
|
file: z.string().optional(),
|
||||||
file: z.string().optional(),
|
size: z.number().int().optional(),
|
||||||
size: z.number().int().optional(),
|
container: z.string().optional(),
|
||||||
container: z.string().optional(),
|
videoProfile: z.string().optional(),
|
||||||
videoProfile: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.file === undefined ? null : { file: v.file }),
|
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
id?: number | undefined;
|
id?: number | undefined;
|
||||||
@@ -265,27 +243,15 @@ export namespace GetLibraryItemsPart$ {
|
|||||||
videoProfile?: string | undefined;
|
videoProfile?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsPart> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsPart> = z.object({
|
||||||
.object({
|
id: z.number().int().optional(),
|
||||||
id: z.number().int().optional(),
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
duration: z.number().int().optional(),
|
||||||
duration: z.number().int().optional(),
|
file: z.string().optional(),
|
||||||
file: z.string().optional(),
|
size: z.number().int().optional(),
|
||||||
size: z.number().int().optional(),
|
container: z.string().optional(),
|
||||||
container: z.string().optional(),
|
videoProfile: z.string().optional(),
|
||||||
videoProfile: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.file === undefined ? null : { file: v.file }),
|
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -308,24 +274,9 @@ export namespace GetLibraryItemsMedia$ {
|
|||||||
Part: z.array(z.lazy(() => GetLibraryItemsPart$.inboundSchema)).optional(),
|
Part: z.array(z.lazy(() => GetLibraryItemsPart$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
Part: "part",
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
});
|
||||||
...(v.bitrate === undefined ? null : { bitrate: v.bitrate }),
|
|
||||||
...(v.width === undefined ? null : { width: v.width }),
|
|
||||||
...(v.height === undefined ? null : { height: v.height }),
|
|
||||||
...(v.aspectRatio === undefined ? null : { aspectRatio: v.aspectRatio }),
|
|
||||||
...(v.audioChannels === undefined ? null : { audioChannels: v.audioChannels }),
|
|
||||||
...(v.audioCodec === undefined ? null : { audioCodec: v.audioCodec }),
|
|
||||||
...(v.videoCodec === undefined ? null : { videoCodec: v.videoCodec }),
|
|
||||||
...(v.videoResolution === undefined
|
|
||||||
? null
|
|
||||||
: { videoResolution: v.videoResolution }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.videoFrameRate === undefined ? null : { videoFrameRate: v.videoFrameRate }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
...(v.Part === undefined ? null : { part: v.Part }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -363,160 +314,93 @@ export namespace GetLibraryItemsMedia$ {
|
|||||||
part: z.array(z.lazy(() => GetLibraryItemsPart$.outboundSchema)).optional(),
|
part: z.array(z.lazy(() => GetLibraryItemsPart$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
part: "Part",
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
});
|
||||||
...(v.bitrate === undefined ? null : { bitrate: v.bitrate }),
|
|
||||||
...(v.width === undefined ? null : { width: v.width }),
|
|
||||||
...(v.height === undefined ? null : { height: v.height }),
|
|
||||||
...(v.aspectRatio === undefined ? null : { aspectRatio: v.aspectRatio }),
|
|
||||||
...(v.audioChannels === undefined ? null : { audioChannels: v.audioChannels }),
|
|
||||||
...(v.audioCodec === undefined ? null : { audioCodec: v.audioCodec }),
|
|
||||||
...(v.videoCodec === undefined ? null : { videoCodec: v.videoCodec }),
|
|
||||||
...(v.videoResolution === undefined
|
|
||||||
? null
|
|
||||||
: { videoResolution: v.videoResolution }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.videoFrameRate === undefined ? null : { videoFrameRate: v.videoFrameRate }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
...(v.part === undefined ? null : { Part: v.part }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryItemsGenre$ {
|
export namespace GetLibraryItemsGenre$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryItemsGenre, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryItemsGenre, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsGenre> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsGenre> = z.object(
|
||||||
.object({
|
{
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryItemsCountry$ {
|
export namespace GetLibraryItemsCountry$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryItemsCountry, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryItemsCountry, z.ZodTypeDef, unknown> = z.object(
|
||||||
.object({
|
{
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsCountry> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsCountry> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryItemsDirector$ {
|
export namespace GetLibraryItemsDirector$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryItemsDirector, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryItemsDirector, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsDirector> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsDirector> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryItemsWriter$ {
|
export namespace GetLibraryItemsWriter$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryItemsWriter, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryItemsWriter, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsWriter> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsWriter> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetLibraryItemsRole$ {
|
export namespace GetLibraryItemsRole$ {
|
||||||
export const inboundSchema: z.ZodType<GetLibraryItemsRole, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetLibraryItemsRole, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsRole> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetLibraryItemsRole> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -585,89 +469,14 @@ export namespace GetLibraryItemsMetadata$ {
|
|||||||
parentTheme: z.string().optional(),
|
parentTheme: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
Media: "media",
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
Genre: "genre",
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
Country: "country",
|
||||||
...(v.studio === undefined ? null : { studio: v.studio }),
|
Director: "director",
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
Writer: "writer",
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
Role: "role",
|
||||||
...(v.contentRating === undefined ? null : { contentRating: v.contentRating }),
|
});
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.rating === undefined ? null : { rating: v.rating }),
|
|
||||||
...(v.audienceRating === undefined ? null : { audienceRating: v.audienceRating }),
|
|
||||||
...(v.year === undefined ? null : { year: v.year }),
|
|
||||||
...(v.tagline === undefined ? null : { tagline: v.tagline }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.originallyAvailableAt === undefined
|
|
||||||
? null
|
|
||||||
: { originallyAvailableAt: v.originallyAvailableAt }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.audienceRatingImage === undefined
|
|
||||||
? null
|
|
||||||
: { audienceRatingImage: v.audienceRatingImage }),
|
|
||||||
...(v.chapterSource === undefined ? null : { chapterSource: v.chapterSource }),
|
|
||||||
...(v.primaryExtraKey === undefined
|
|
||||||
? null
|
|
||||||
: { primaryExtraKey: v.primaryExtraKey }),
|
|
||||||
...(v.ratingImage === undefined ? null : { ratingImage: v.ratingImage }),
|
|
||||||
...(v.grandparentRatingKey === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentRatingKey: v.grandparentRatingKey }),
|
|
||||||
...(v.grandparentGuid === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentGuid: v.grandparentGuid }),
|
|
||||||
...(v.grandparentKey === undefined ? null : { grandparentKey: v.grandparentKey }),
|
|
||||||
...(v.grandparentTitle === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentTitle: v.grandparentTitle }),
|
|
||||||
...(v.grandparentThumb === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentThumb: v.grandparentThumb }),
|
|
||||||
...(v.grandparentArt === undefined ? null : { grandparentArt: v.grandparentArt }),
|
|
||||||
...(v.grandparentTheme === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentTheme: v.grandparentTheme }),
|
|
||||||
...(v.Media === undefined ? null : { media: v.Media }),
|
|
||||||
...(v.Genre === undefined ? null : { genre: v.Genre }),
|
|
||||||
...(v.Country === undefined ? null : { country: v.Country }),
|
|
||||||
...(v.Director === undefined ? null : { director: v.Director }),
|
|
||||||
...(v.Writer === undefined ? null : { writer: v.Writer }),
|
|
||||||
...(v.Role === undefined ? null : { role: v.Role }),
|
|
||||||
...(v.titleSort === undefined ? null : { titleSort: v.titleSort }),
|
|
||||||
...(v.viewCount === undefined ? null : { viewCount: v.viewCount }),
|
|
||||||
...(v.lastViewedAt === undefined ? null : { lastViewedAt: v.lastViewedAt }),
|
|
||||||
...(v.originalTitle === undefined ? null : { originalTitle: v.originalTitle }),
|
|
||||||
...(v.viewOffset === undefined ? null : { viewOffset: v.viewOffset }),
|
|
||||||
...(v.skipCount === undefined ? null : { skipCount: v.skipCount }),
|
|
||||||
...(v.index === undefined ? null : { index: v.index }),
|
|
||||||
...(v.theme === undefined ? null : { theme: v.theme }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.viewedLeafCount === undefined
|
|
||||||
? null
|
|
||||||
: { viewedLeafCount: v.viewedLeafCount }),
|
|
||||||
...(v.childCount === undefined ? null : { childCount: v.childCount }),
|
|
||||||
...(v.hasPremiumExtras === undefined
|
|
||||||
? null
|
|
||||||
: { hasPremiumExtras: v.hasPremiumExtras }),
|
|
||||||
...(v.hasPremiumPrimaryExtra === undefined
|
|
||||||
? null
|
|
||||||
: { hasPremiumPrimaryExtra: v.hasPremiumPrimaryExtra }),
|
|
||||||
...(v.parentRatingKey === undefined
|
|
||||||
? null
|
|
||||||
: { parentRatingKey: v.parentRatingKey }),
|
|
||||||
...(v.parentGuid === undefined ? null : { parentGuid: v.parentGuid }),
|
|
||||||
...(v.parentStudio === undefined ? null : { parentStudio: v.parentStudio }),
|
|
||||||
...(v.parentKey === undefined ? null : { parentKey: v.parentKey }),
|
|
||||||
...(v.parentTitle === undefined ? null : { parentTitle: v.parentTitle }),
|
|
||||||
...(v.parentIndex === undefined ? null : { parentIndex: v.parentIndex }),
|
|
||||||
...(v.parentYear === undefined ? null : { parentYear: v.parentYear }),
|
|
||||||
...(v.parentThumb === undefined ? null : { parentThumb: v.parentThumb }),
|
|
||||||
...(v.parentTheme === undefined ? null : { parentTheme: v.parentTheme }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -794,89 +603,14 @@ export namespace GetLibraryItemsMetadata$ {
|
|||||||
parentTheme: z.string().optional(),
|
parentTheme: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
media: "Media",
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
genre: "Genre",
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
country: "Country",
|
||||||
...(v.studio === undefined ? null : { studio: v.studio }),
|
director: "Director",
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
writer: "Writer",
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
role: "Role",
|
||||||
...(v.contentRating === undefined ? null : { contentRating: v.contentRating }),
|
});
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.rating === undefined ? null : { rating: v.rating }),
|
|
||||||
...(v.audienceRating === undefined ? null : { audienceRating: v.audienceRating }),
|
|
||||||
...(v.year === undefined ? null : { year: v.year }),
|
|
||||||
...(v.tagline === undefined ? null : { tagline: v.tagline }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.originallyAvailableAt === undefined
|
|
||||||
? null
|
|
||||||
: { originallyAvailableAt: v.originallyAvailableAt }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.audienceRatingImage === undefined
|
|
||||||
? null
|
|
||||||
: { audienceRatingImage: v.audienceRatingImage }),
|
|
||||||
...(v.chapterSource === undefined ? null : { chapterSource: v.chapterSource }),
|
|
||||||
...(v.primaryExtraKey === undefined
|
|
||||||
? null
|
|
||||||
: { primaryExtraKey: v.primaryExtraKey }),
|
|
||||||
...(v.ratingImage === undefined ? null : { ratingImage: v.ratingImage }),
|
|
||||||
...(v.grandparentRatingKey === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentRatingKey: v.grandparentRatingKey }),
|
|
||||||
...(v.grandparentGuid === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentGuid: v.grandparentGuid }),
|
|
||||||
...(v.grandparentKey === undefined ? null : { grandparentKey: v.grandparentKey }),
|
|
||||||
...(v.grandparentTitle === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentTitle: v.grandparentTitle }),
|
|
||||||
...(v.grandparentThumb === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentThumb: v.grandparentThumb }),
|
|
||||||
...(v.grandparentArt === undefined ? null : { grandparentArt: v.grandparentArt }),
|
|
||||||
...(v.grandparentTheme === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentTheme: v.grandparentTheme }),
|
|
||||||
...(v.media === undefined ? null : { Media: v.media }),
|
|
||||||
...(v.genre === undefined ? null : { Genre: v.genre }),
|
|
||||||
...(v.country === undefined ? null : { Country: v.country }),
|
|
||||||
...(v.director === undefined ? null : { Director: v.director }),
|
|
||||||
...(v.writer === undefined ? null : { Writer: v.writer }),
|
|
||||||
...(v.role === undefined ? null : { Role: v.role }),
|
|
||||||
...(v.titleSort === undefined ? null : { titleSort: v.titleSort }),
|
|
||||||
...(v.viewCount === undefined ? null : { viewCount: v.viewCount }),
|
|
||||||
...(v.lastViewedAt === undefined ? null : { lastViewedAt: v.lastViewedAt }),
|
|
||||||
...(v.originalTitle === undefined ? null : { originalTitle: v.originalTitle }),
|
|
||||||
...(v.viewOffset === undefined ? null : { viewOffset: v.viewOffset }),
|
|
||||||
...(v.skipCount === undefined ? null : { skipCount: v.skipCount }),
|
|
||||||
...(v.index === undefined ? null : { index: v.index }),
|
|
||||||
...(v.theme === undefined ? null : { theme: v.theme }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.viewedLeafCount === undefined
|
|
||||||
? null
|
|
||||||
: { viewedLeafCount: v.viewedLeafCount }),
|
|
||||||
...(v.childCount === undefined ? null : { childCount: v.childCount }),
|
|
||||||
...(v.hasPremiumExtras === undefined
|
|
||||||
? null
|
|
||||||
: { hasPremiumExtras: v.hasPremiumExtras }),
|
|
||||||
...(v.hasPremiumPrimaryExtra === undefined
|
|
||||||
? null
|
|
||||||
: { hasPremiumPrimaryExtra: v.hasPremiumPrimaryExtra }),
|
|
||||||
...(v.parentRatingKey === undefined
|
|
||||||
? null
|
|
||||||
: { parentRatingKey: v.parentRatingKey }),
|
|
||||||
...(v.parentGuid === undefined ? null : { parentGuid: v.parentGuid }),
|
|
||||||
...(v.parentStudio === undefined ? null : { parentStudio: v.parentStudio }),
|
|
||||||
...(v.parentKey === undefined ? null : { parentKey: v.parentKey }),
|
|
||||||
...(v.parentTitle === undefined ? null : { parentTitle: v.parentTitle }),
|
|
||||||
...(v.parentIndex === undefined ? null : { parentIndex: v.parentIndex }),
|
|
||||||
...(v.parentYear === undefined ? null : { parentYear: v.parentYear }),
|
|
||||||
...(v.parentThumb === undefined ? null : { parentThumb: v.parentThumb }),
|
|
||||||
...(v.parentTheme === undefined ? null : { parentTheme: v.parentTheme }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -902,32 +636,9 @@ export namespace GetLibraryItemsMediaContainer$ {
|
|||||||
Metadata: z.array(z.lazy(() => GetLibraryItemsMetadata$.inboundSchema)).optional(),
|
Metadata: z.array(z.lazy(() => GetLibraryItemsMetadata$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Metadata: "metadata",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
});
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
|
||||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
|
||||||
...(v.librarySectionID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionID: v.librarySectionID }),
|
|
||||||
...(v.librarySectionTitle === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionTitle: v.librarySectionTitle }),
|
|
||||||
...(v.librarySectionUUID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionUUID: v.librarySectionUUID }),
|
|
||||||
...(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.title2 === undefined ? null : { title2: v.title2 }),
|
|
||||||
...(v.viewGroup === undefined ? null : { viewGroup: v.viewGroup }),
|
|
||||||
...(v.viewMode === undefined ? null : { viewMode: v.viewMode }),
|
|
||||||
...(v.mixedParents === undefined ? null : { mixedParents: v.mixedParents }),
|
|
||||||
...(v.Metadata === undefined ? null : { metadata: v.Metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -970,34 +681,9 @@ export namespace GetLibraryItemsMediaContainer$ {
|
|||||||
metadata: z.array(z.lazy(() => GetLibraryItemsMetadata$.outboundSchema)).optional(),
|
metadata: z.array(z.lazy(() => GetLibraryItemsMetadata$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
metadata: "Metadata",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
});
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
|
||||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
|
||||||
...(v.librarySectionID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionID: v.librarySectionID }),
|
|
||||||
...(v.librarySectionTitle === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionTitle: v.librarySectionTitle }),
|
|
||||||
...(v.librarySectionUUID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionUUID: v.librarySectionUUID }),
|
|
||||||
...(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.title2 === undefined ? null : { title2: v.title2 }),
|
|
||||||
...(v.viewGroup === undefined ? null : { viewGroup: v.viewGroup }),
|
|
||||||
...(v.viewMode === undefined ? null : { viewMode: v.viewMode }),
|
|
||||||
...(v.mixedParents === undefined ? null : { mixedParents: v.mixedParents }),
|
|
||||||
...(v.metadata === undefined ? null : { Metadata: v.metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1008,9 +694,9 @@ export namespace GetLibraryItemsResponseBody$ {
|
|||||||
MediaContainer: z.lazy(() => GetLibraryItemsMediaContainer$.inboundSchema).optional(),
|
MediaContainer: z.lazy(() => GetLibraryItemsMediaContainer$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined ? null : { mediaContainer: v.MediaContainer }),
|
MediaContainer: "mediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -1022,9 +708,9 @@ export namespace GetLibraryItemsResponseBody$ {
|
|||||||
mediaContainer: z.lazy(() => GetLibraryItemsMediaContainer$.outboundSchema).optional(),
|
mediaContainer: z.lazy(() => GetLibraryItemsMediaContainer$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -1038,12 +724,11 @@ export namespace GetLibraryItemsResponse$ {
|
|||||||
object: z.lazy(() => GetLibraryItemsResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetLibraryItemsResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -1063,11 +748,10 @@ export namespace GetLibraryItemsResponse$ {
|
|||||||
object: z.lazy(() => GetLibraryItemsResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetLibraryItemsResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
File diff suppressed because it is too large
Load Diff
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetMetadataChildrenRequest = {
|
export type GetMetadataChildrenRequest = {
|
||||||
@@ -103,51 +104,30 @@ export type GetMetadataChildrenResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetMetadataChildrenRequest$ {
|
export namespace GetMetadataChildrenRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetMetadataChildrenRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetMetadataChildrenRequest, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
ratingKey: z.number(),
|
ratingKey: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
ratingKey: v.ratingKey,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
ratingKey: number;
|
ratingKey: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMetadataChildrenRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMetadataChildrenRequest> =
|
||||||
.object({
|
z.object({
|
||||||
ratingKey: z.number(),
|
ratingKey: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
ratingKey: v.ratingKey,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetMetadataChildrenDirectory$ {
|
export namespace GetMetadataChildrenDirectory$ {
|
||||||
export const inboundSchema: z.ZodType<GetMetadataChildrenDirectory, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetMetadataChildrenDirectory, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
leafCount: z.number().int().optional(),
|
leafCount: z.number().int().optional(),
|
||||||
thumb: z.string().optional(),
|
thumb: z.string().optional(),
|
||||||
viewedLeafCount: z.number().int().optional(),
|
viewedLeafCount: z.number().int().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
title: z.string().optional(),
|
title: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.viewedLeafCount === undefined
|
|
||||||
? null
|
|
||||||
: { viewedLeafCount: v.viewedLeafCount }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -158,31 +138,20 @@ export namespace GetMetadataChildrenDirectory$ {
|
|||||||
title?: string | undefined;
|
title?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMetadataChildrenDirectory> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMetadataChildrenDirectory> =
|
||||||
.object({
|
z.object({
|
||||||
leafCount: z.number().int().optional(),
|
leafCount: z.number().int().optional(),
|
||||||
thumb: z.string().optional(),
|
thumb: z.string().optional(),
|
||||||
viewedLeafCount: z.number().int().optional(),
|
viewedLeafCount: z.number().int().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
title: z.string().optional(),
|
title: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.viewedLeafCount === undefined
|
|
||||||
? null
|
|
||||||
: { viewedLeafCount: v.viewedLeafCount }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetMetadataChildrenMetadata$ {
|
export namespace GetMetadataChildrenMetadata$ {
|
||||||
export const inboundSchema: z.ZodType<GetMetadataChildrenMetadata, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetMetadataChildrenMetadata, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
ratingKey: z.string().optional(),
|
ratingKey: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
parentRatingKey: z.string().optional(),
|
parentRatingKey: z.string().optional(),
|
||||||
@@ -210,41 +179,6 @@ export namespace GetMetadataChildrenMetadata$ {
|
|||||||
userRating: z.number().int().optional(),
|
userRating: z.number().int().optional(),
|
||||||
skipCount: z.number().int().optional(),
|
skipCount: z.number().int().optional(),
|
||||||
lastRatedAt: z.number().int().optional(),
|
lastRatedAt: z.number().int().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.parentRatingKey === undefined
|
|
||||||
? null
|
|
||||||
: { parentRatingKey: v.parentRatingKey }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.parentGuid === undefined ? null : { parentGuid: v.parentGuid }),
|
|
||||||
...(v.parentStudio === undefined ? null : { parentStudio: v.parentStudio }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.parentKey === undefined ? null : { parentKey: v.parentKey }),
|
|
||||||
...(v.parentTitle === undefined ? null : { parentTitle: v.parentTitle }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.index === undefined ? null : { index: v.index }),
|
|
||||||
...(v.parentIndex === undefined ? null : { parentIndex: v.parentIndex }),
|
|
||||||
...(v.viewCount === undefined ? null : { viewCount: v.viewCount }),
|
|
||||||
...(v.lastViewedAt === undefined ? null : { lastViewedAt: v.lastViewedAt }),
|
|
||||||
...(v.parentYear === undefined ? null : { parentYear: v.parentYear }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
|
||||||
...(v.parentThumb === undefined ? null : { parentThumb: v.parentThumb }),
|
|
||||||
...(v.parentTheme === undefined ? null : { parentTheme: v.parentTheme }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.viewedLeafCount === undefined
|
|
||||||
? null
|
|
||||||
: { viewedLeafCount: v.viewedLeafCount }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.userRating === undefined ? null : { userRating: v.userRating }),
|
|
||||||
...(v.skipCount === undefined ? null : { skipCount: v.skipCount }),
|
|
||||||
...(v.lastRatedAt === undefined ? null : { lastRatedAt: v.lastRatedAt }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -277,8 +211,8 @@ export namespace GetMetadataChildrenMetadata$ {
|
|||||||
lastRatedAt?: number | undefined;
|
lastRatedAt?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMetadataChildrenMetadata> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetMetadataChildrenMetadata> =
|
||||||
.object({
|
z.object({
|
||||||
ratingKey: z.string().optional(),
|
ratingKey: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
parentRatingKey: z.string().optional(),
|
parentRatingKey: z.string().optional(),
|
||||||
@@ -306,41 +240,6 @@ export namespace GetMetadataChildrenMetadata$ {
|
|||||||
userRating: z.number().int().optional(),
|
userRating: z.number().int().optional(),
|
||||||
skipCount: z.number().int().optional(),
|
skipCount: z.number().int().optional(),
|
||||||
lastRatedAt: z.number().int().optional(),
|
lastRatedAt: z.number().int().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.parentRatingKey === undefined
|
|
||||||
? null
|
|
||||||
: { parentRatingKey: v.parentRatingKey }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.parentGuid === undefined ? null : { parentGuid: v.parentGuid }),
|
|
||||||
...(v.parentStudio === undefined ? null : { parentStudio: v.parentStudio }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.parentKey === undefined ? null : { parentKey: v.parentKey }),
|
|
||||||
...(v.parentTitle === undefined ? null : { parentTitle: v.parentTitle }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.index === undefined ? null : { index: v.index }),
|
|
||||||
...(v.parentIndex === undefined ? null : { parentIndex: v.parentIndex }),
|
|
||||||
...(v.viewCount === undefined ? null : { viewCount: v.viewCount }),
|
|
||||||
...(v.lastViewedAt === undefined ? null : { lastViewedAt: v.lastViewedAt }),
|
|
||||||
...(v.parentYear === undefined ? null : { parentYear: v.parentYear }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
|
||||||
...(v.parentThumb === undefined ? null : { parentThumb: v.parentThumb }),
|
|
||||||
...(v.parentTheme === undefined ? null : { parentTheme: v.parentTheme }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.viewedLeafCount === undefined
|
|
||||||
? null
|
|
||||||
: { viewedLeafCount: v.viewedLeafCount }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.userRating === undefined ? null : { userRating: v.userRating }),
|
|
||||||
...(v.skipCount === undefined ? null : { skipCount: v.skipCount }),
|
|
||||||
...(v.lastRatedAt === undefined ? null : { lastRatedAt: v.lastRatedAt }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -379,39 +278,10 @@ export namespace GetMetadataChildrenMediaContainer$ {
|
|||||||
Metadata: z.array(z.lazy(() => GetMetadataChildrenMetadata$.inboundSchema)).optional(),
|
Metadata: z.array(z.lazy(() => GetMetadataChildrenMetadata$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Directory: "directory",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
Metadata: "metadata",
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
});
|
||||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.librarySectionID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionID: v.librarySectionID }),
|
|
||||||
...(v.librarySectionTitle === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionTitle: v.librarySectionTitle }),
|
|
||||||
...(v.librarySectionUUID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionUUID: v.librarySectionUUID }),
|
|
||||||
...(v.mediaTagPrefix === undefined ? null : { mediaTagPrefix: v.mediaTagPrefix }),
|
|
||||||
...(v.mediaTagVersion === undefined
|
|
||||||
? null
|
|
||||||
: { mediaTagVersion: v.mediaTagVersion }),
|
|
||||||
...(v.nocache === undefined ? null : { nocache: v.nocache }),
|
|
||||||
...(v.parentIndex === undefined ? null : { parentIndex: v.parentIndex }),
|
|
||||||
...(v.parentTitle === undefined ? null : { parentTitle: v.parentTitle }),
|
|
||||||
...(v.parentYear === undefined ? null : { parentYear: v.parentYear }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.theme === undefined ? null : { theme: v.theme }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.title1 === undefined ? null : { title1: v.title1 }),
|
|
||||||
...(v.title2 === undefined ? null : { title2: v.title2 }),
|
|
||||||
...(v.viewGroup === undefined ? null : { viewGroup: v.viewGroup }),
|
|
||||||
...(v.viewMode === undefined ? null : { viewMode: v.viewMode }),
|
|
||||||
...(v.Directory === undefined ? null : { directory: v.Directory }),
|
|
||||||
...(v.Metadata === undefined ? null : { metadata: v.Metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -473,39 +343,10 @@ export namespace GetMetadataChildrenMediaContainer$ {
|
|||||||
metadata: z.array(z.lazy(() => GetMetadataChildrenMetadata$.outboundSchema)).optional(),
|
metadata: z.array(z.lazy(() => GetMetadataChildrenMetadata$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
directory: "Directory",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
metadata: "Metadata",
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
});
|
||||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.librarySectionID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionID: v.librarySectionID }),
|
|
||||||
...(v.librarySectionTitle === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionTitle: v.librarySectionTitle }),
|
|
||||||
...(v.librarySectionUUID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionUUID: v.librarySectionUUID }),
|
|
||||||
...(v.mediaTagPrefix === undefined ? null : { mediaTagPrefix: v.mediaTagPrefix }),
|
|
||||||
...(v.mediaTagVersion === undefined
|
|
||||||
? null
|
|
||||||
: { mediaTagVersion: v.mediaTagVersion }),
|
|
||||||
...(v.nocache === undefined ? null : { nocache: v.nocache }),
|
|
||||||
...(v.parentIndex === undefined ? null : { parentIndex: v.parentIndex }),
|
|
||||||
...(v.parentTitle === undefined ? null : { parentTitle: v.parentTitle }),
|
|
||||||
...(v.parentYear === undefined ? null : { parentYear: v.parentYear }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.theme === undefined ? null : { theme: v.theme }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.title1 === undefined ? null : { title1: v.title1 }),
|
|
||||||
...(v.title2 === undefined ? null : { title2: v.title2 }),
|
|
||||||
...(v.viewGroup === undefined ? null : { viewGroup: v.viewGroup }),
|
|
||||||
...(v.viewMode === undefined ? null : { viewMode: v.viewMode }),
|
|
||||||
...(v.directory === undefined ? null : { Directory: v.directory }),
|
|
||||||
...(v.metadata === undefined ? null : { Metadata: v.metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -519,11 +360,9 @@ export namespace GetMetadataChildrenResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined
|
MediaContainer: "mediaContainer",
|
||||||
? null
|
});
|
||||||
: { mediaContainer: v.MediaContainer }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -541,9 +380,9 @@ export namespace GetMetadataChildrenResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -557,12 +396,11 @@ export namespace GetMetadataChildrenResponse$ {
|
|||||||
object: z.lazy(() => GetMetadataChildrenResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetMetadataChildrenResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -582,11 +420,10 @@ export namespace GetMetadataChildrenResponse$ {
|
|||||||
object: z.lazy(() => GetMetadataChildrenResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetMetadataChildrenResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type MyPlex = {
|
export type MyPlex = {
|
||||||
@@ -47,43 +48,20 @@ export type GetMyPlexAccountResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace MyPlex$ {
|
export namespace MyPlex$ {
|
||||||
export const inboundSchema: z.ZodType<MyPlex, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<MyPlex, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
authToken: z.string().optional(),
|
||||||
authToken: z.string().optional(),
|
username: z.string().optional(),
|
||||||
username: z.string().optional(),
|
mappingState: z.string().optional(),
|
||||||
mappingState: z.string().optional(),
|
mappingError: z.string().optional(),
|
||||||
mappingError: z.string().optional(),
|
signInState: z.string().optional(),
|
||||||
signInState: z.string().optional(),
|
publicAddress: z.string().optional(),
|
||||||
publicAddress: z.string().optional(),
|
publicPort: z.number().optional(),
|
||||||
publicPort: z.number().optional(),
|
privateAddress: z.string().optional(),
|
||||||
privateAddress: z.string().optional(),
|
privatePort: z.number().optional(),
|
||||||
privatePort: z.number().optional(),
|
subscriptionFeatures: z.string().optional(),
|
||||||
subscriptionFeatures: z.string().optional(),
|
subscriptionActive: z.boolean().optional(),
|
||||||
subscriptionActive: z.boolean().optional(),
|
subscriptionState: z.string().optional(),
|
||||||
subscriptionState: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.authToken === undefined ? null : { authToken: v.authToken }),
|
|
||||||
...(v.username === undefined ? null : { username: v.username }),
|
|
||||||
...(v.mappingState === undefined ? null : { mappingState: v.mappingState }),
|
|
||||||
...(v.mappingError === undefined ? null : { mappingError: v.mappingError }),
|
|
||||||
...(v.signInState === undefined ? null : { signInState: v.signInState }),
|
|
||||||
...(v.publicAddress === undefined ? null : { publicAddress: v.publicAddress }),
|
|
||||||
...(v.publicPort === undefined ? null : { publicPort: v.publicPort }),
|
|
||||||
...(v.privateAddress === undefined ? null : { privateAddress: v.privateAddress }),
|
|
||||||
...(v.privatePort === undefined ? null : { privatePort: v.privatePort }),
|
|
||||||
...(v.subscriptionFeatures === undefined
|
|
||||||
? null
|
|
||||||
: { subscriptionFeatures: v.subscriptionFeatures }),
|
|
||||||
...(v.subscriptionActive === undefined
|
|
||||||
? null
|
|
||||||
: { subscriptionActive: v.subscriptionActive }),
|
|
||||||
...(v.subscriptionState === undefined
|
|
||||||
? null
|
|
||||||
: { subscriptionState: v.subscriptionState }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
authToken?: string | undefined;
|
authToken?: string | undefined;
|
||||||
@@ -100,43 +78,20 @@ export namespace MyPlex$ {
|
|||||||
subscriptionState?: string | undefined;
|
subscriptionState?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, MyPlex> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, MyPlex> = z.object({
|
||||||
.object({
|
authToken: z.string().optional(),
|
||||||
authToken: z.string().optional(),
|
username: z.string().optional(),
|
||||||
username: z.string().optional(),
|
mappingState: z.string().optional(),
|
||||||
mappingState: z.string().optional(),
|
mappingError: z.string().optional(),
|
||||||
mappingError: z.string().optional(),
|
signInState: z.string().optional(),
|
||||||
signInState: z.string().optional(),
|
publicAddress: z.string().optional(),
|
||||||
publicAddress: z.string().optional(),
|
publicPort: z.number().optional(),
|
||||||
publicPort: z.number().optional(),
|
privateAddress: z.string().optional(),
|
||||||
privateAddress: z.string().optional(),
|
privatePort: z.number().optional(),
|
||||||
privatePort: z.number().optional(),
|
subscriptionFeatures: z.string().optional(),
|
||||||
subscriptionFeatures: z.string().optional(),
|
subscriptionActive: z.boolean().optional(),
|
||||||
subscriptionActive: z.boolean().optional(),
|
subscriptionState: z.string().optional(),
|
||||||
subscriptionState: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.authToken === undefined ? null : { authToken: v.authToken }),
|
|
||||||
...(v.username === undefined ? null : { username: v.username }),
|
|
||||||
...(v.mappingState === undefined ? null : { mappingState: v.mappingState }),
|
|
||||||
...(v.mappingError === undefined ? null : { mappingError: v.mappingError }),
|
|
||||||
...(v.signInState === undefined ? null : { signInState: v.signInState }),
|
|
||||||
...(v.publicAddress === undefined ? null : { publicAddress: v.publicAddress }),
|
|
||||||
...(v.publicPort === undefined ? null : { publicPort: v.publicPort }),
|
|
||||||
...(v.privateAddress === undefined ? null : { privateAddress: v.privateAddress }),
|
|
||||||
...(v.privatePort === undefined ? null : { privatePort: v.privatePort }),
|
|
||||||
...(v.subscriptionFeatures === undefined
|
|
||||||
? null
|
|
||||||
: { subscriptionFeatures: v.subscriptionFeatures }),
|
|
||||||
...(v.subscriptionActive === undefined
|
|
||||||
? null
|
|
||||||
: { subscriptionActive: v.subscriptionActive }),
|
|
||||||
...(v.subscriptionState === undefined
|
|
||||||
? null
|
|
||||||
: { subscriptionState: v.subscriptionState }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -146,9 +101,9 @@ export namespace GetMyPlexAccountResponseBody$ {
|
|||||||
MyPlex: z.lazy(() => MyPlex$.inboundSchema).optional(),
|
MyPlex: z.lazy(() => MyPlex$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MyPlex === undefined ? null : { myPlex: v.MyPlex }),
|
MyPlex: "myPlex",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -160,9 +115,9 @@ export namespace GetMyPlexAccountResponseBody$ {
|
|||||||
myPlex: z.lazy(() => MyPlex$.outboundSchema).optional(),
|
myPlex: z.lazy(() => MyPlex$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.myPlex === undefined ? null : { MyPlex: v.myPlex }),
|
myPlex: "MyPlex",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -176,12 +131,11 @@ export namespace GetMyPlexAccountResponse$ {
|
|||||||
object: z.lazy(() => GetMyPlexAccountResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetMyPlexAccountResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -201,11 +155,10 @@ export namespace GetMyPlexAccountResponse$ {
|
|||||||
object: z.lazy(() => GetMyPlexAccountResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetMyPlexAccountResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetOnDeckStream = {
|
export type GetOnDeckStream = {
|
||||||
@@ -141,63 +142,31 @@ export type GetOnDeckResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetOnDeckStream$ {
|
export namespace GetOnDeckStream$ {
|
||||||
export const inboundSchema: z.ZodType<GetOnDeckStream, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetOnDeckStream, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
id: z.number().optional(),
|
||||||
id: z.number().optional(),
|
streamType: z.number().optional(),
|
||||||
streamType: z.number().optional(),
|
default: z.boolean().optional(),
|
||||||
default: z.boolean().optional(),
|
codec: z.string().optional(),
|
||||||
codec: z.string().optional(),
|
index: z.number().optional(),
|
||||||
index: z.number().optional(),
|
bitrate: z.number().optional(),
|
||||||
bitrate: z.number().optional(),
|
language: z.string().optional(),
|
||||||
language: z.string().optional(),
|
languageTag: z.string().optional(),
|
||||||
languageTag: z.string().optional(),
|
languageCode: z.string().optional(),
|
||||||
languageCode: z.string().optional(),
|
bitDepth: z.number().optional(),
|
||||||
bitDepth: z.number().optional(),
|
chromaLocation: z.string().optional(),
|
||||||
chromaLocation: z.string().optional(),
|
chromaSubsampling: z.string().optional(),
|
||||||
chromaSubsampling: z.string().optional(),
|
codedHeight: z.number().optional(),
|
||||||
codedHeight: z.number().optional(),
|
codedWidth: z.number().optional(),
|
||||||
codedWidth: z.number().optional(),
|
colorRange: z.string().optional(),
|
||||||
colorRange: z.string().optional(),
|
frameRate: z.number().optional(),
|
||||||
frameRate: z.number().optional(),
|
height: z.number().optional(),
|
||||||
height: z.number().optional(),
|
level: z.number().optional(),
|
||||||
level: z.number().optional(),
|
profile: z.string().optional(),
|
||||||
profile: z.string().optional(),
|
refFrames: z.number().optional(),
|
||||||
refFrames: z.number().optional(),
|
width: z.number().optional(),
|
||||||
width: z.number().optional(),
|
displayTitle: z.string().optional(),
|
||||||
displayTitle: z.string().optional(),
|
extendedDisplayTitle: z.string().optional(),
|
||||||
extendedDisplayTitle: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.streamType === undefined ? null : { streamType: v.streamType }),
|
|
||||||
...(v.default === undefined ? null : { default: v.default }),
|
|
||||||
...(v.codec === undefined ? null : { codec: v.codec }),
|
|
||||||
...(v.index === undefined ? null : { index: v.index }),
|
|
||||||
...(v.bitrate === undefined ? null : { bitrate: v.bitrate }),
|
|
||||||
...(v.language === undefined ? null : { language: v.language }),
|
|
||||||
...(v.languageTag === undefined ? null : { languageTag: v.languageTag }),
|
|
||||||
...(v.languageCode === undefined ? null : { languageCode: v.languageCode }),
|
|
||||||
...(v.bitDepth === undefined ? null : { bitDepth: v.bitDepth }),
|
|
||||||
...(v.chromaLocation === undefined ? null : { chromaLocation: v.chromaLocation }),
|
|
||||||
...(v.chromaSubsampling === undefined
|
|
||||||
? null
|
|
||||||
: { chromaSubsampling: v.chromaSubsampling }),
|
|
||||||
...(v.codedHeight === undefined ? null : { codedHeight: v.codedHeight }),
|
|
||||||
...(v.codedWidth === undefined ? null : { codedWidth: v.codedWidth }),
|
|
||||||
...(v.colorRange === undefined ? null : { colorRange: v.colorRange }),
|
|
||||||
...(v.frameRate === undefined ? null : { frameRate: v.frameRate }),
|
|
||||||
...(v.height === undefined ? null : { height: v.height }),
|
|
||||||
...(v.level === undefined ? null : { level: v.level }),
|
|
||||||
...(v.profile === undefined ? null : { profile: v.profile }),
|
|
||||||
...(v.refFrames === undefined ? null : { refFrames: v.refFrames }),
|
|
||||||
...(v.width === undefined ? null : { width: v.width }),
|
|
||||||
...(v.displayTitle === undefined ? null : { displayTitle: v.displayTitle }),
|
|
||||||
...(v.extendedDisplayTitle === undefined
|
|
||||||
? null
|
|
||||||
: { extendedDisplayTitle: v.extendedDisplayTitle }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
id?: number | undefined;
|
id?: number | undefined;
|
||||||
@@ -225,63 +194,31 @@ export namespace GetOnDeckStream$ {
|
|||||||
extendedDisplayTitle?: string | undefined;
|
extendedDisplayTitle?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetOnDeckStream> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetOnDeckStream> = z.object({
|
||||||
.object({
|
id: z.number().optional(),
|
||||||
id: z.number().optional(),
|
streamType: z.number().optional(),
|
||||||
streamType: z.number().optional(),
|
default: z.boolean().optional(),
|
||||||
default: z.boolean().optional(),
|
codec: z.string().optional(),
|
||||||
codec: z.string().optional(),
|
index: z.number().optional(),
|
||||||
index: z.number().optional(),
|
bitrate: z.number().optional(),
|
||||||
bitrate: z.number().optional(),
|
language: z.string().optional(),
|
||||||
language: z.string().optional(),
|
languageTag: z.string().optional(),
|
||||||
languageTag: z.string().optional(),
|
languageCode: z.string().optional(),
|
||||||
languageCode: z.string().optional(),
|
bitDepth: z.number().optional(),
|
||||||
bitDepth: z.number().optional(),
|
chromaLocation: z.string().optional(),
|
||||||
chromaLocation: z.string().optional(),
|
chromaSubsampling: z.string().optional(),
|
||||||
chromaSubsampling: z.string().optional(),
|
codedHeight: z.number().optional(),
|
||||||
codedHeight: z.number().optional(),
|
codedWidth: z.number().optional(),
|
||||||
codedWidth: z.number().optional(),
|
colorRange: z.string().optional(),
|
||||||
colorRange: z.string().optional(),
|
frameRate: z.number().optional(),
|
||||||
frameRate: z.number().optional(),
|
height: z.number().optional(),
|
||||||
height: z.number().optional(),
|
level: z.number().optional(),
|
||||||
level: z.number().optional(),
|
profile: z.string().optional(),
|
||||||
profile: z.string().optional(),
|
refFrames: z.number().optional(),
|
||||||
refFrames: z.number().optional(),
|
width: z.number().optional(),
|
||||||
width: z.number().optional(),
|
displayTitle: z.string().optional(),
|
||||||
displayTitle: z.string().optional(),
|
extendedDisplayTitle: z.string().optional(),
|
||||||
extendedDisplayTitle: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.streamType === undefined ? null : { streamType: v.streamType }),
|
|
||||||
...(v.default === undefined ? null : { default: v.default }),
|
|
||||||
...(v.codec === undefined ? null : { codec: v.codec }),
|
|
||||||
...(v.index === undefined ? null : { index: v.index }),
|
|
||||||
...(v.bitrate === undefined ? null : { bitrate: v.bitrate }),
|
|
||||||
...(v.language === undefined ? null : { language: v.language }),
|
|
||||||
...(v.languageTag === undefined ? null : { languageTag: v.languageTag }),
|
|
||||||
...(v.languageCode === undefined ? null : { languageCode: v.languageCode }),
|
|
||||||
...(v.bitDepth === undefined ? null : { bitDepth: v.bitDepth }),
|
|
||||||
...(v.chromaLocation === undefined ? null : { chromaLocation: v.chromaLocation }),
|
|
||||||
...(v.chromaSubsampling === undefined
|
|
||||||
? null
|
|
||||||
: { chromaSubsampling: v.chromaSubsampling }),
|
|
||||||
...(v.codedHeight === undefined ? null : { codedHeight: v.codedHeight }),
|
|
||||||
...(v.codedWidth === undefined ? null : { codedWidth: v.codedWidth }),
|
|
||||||
...(v.colorRange === undefined ? null : { colorRange: v.colorRange }),
|
|
||||||
...(v.frameRate === undefined ? null : { frameRate: v.frameRate }),
|
|
||||||
...(v.height === undefined ? null : { height: v.height }),
|
|
||||||
...(v.level === undefined ? null : { level: v.level }),
|
|
||||||
...(v.profile === undefined ? null : { profile: v.profile }),
|
|
||||||
...(v.refFrames === undefined ? null : { refFrames: v.refFrames }),
|
|
||||||
...(v.width === undefined ? null : { width: v.width }),
|
|
||||||
...(v.displayTitle === undefined ? null : { displayTitle: v.displayTitle }),
|
|
||||||
...(v.extendedDisplayTitle === undefined
|
|
||||||
? null
|
|
||||||
: { extendedDisplayTitle: v.extendedDisplayTitle }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -299,17 +236,9 @@ export namespace GetOnDeckPart$ {
|
|||||||
Stream: z.array(z.lazy(() => GetOnDeckStream$.inboundSchema)).optional(),
|
Stream: z.array(z.lazy(() => GetOnDeckStream$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
Stream: "stream",
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
});
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.file === undefined ? null : { file: v.file }),
|
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
|
||||||
...(v.audioProfile === undefined ? null : { audioProfile: v.audioProfile }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
...(v.Stream === undefined ? null : { stream: v.Stream }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -337,17 +266,9 @@ export namespace GetOnDeckPart$ {
|
|||||||
stream: z.array(z.lazy(() => GetOnDeckStream$.outboundSchema)).optional(),
|
stream: z.array(z.lazy(() => GetOnDeckStream$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
stream: "Stream",
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
});
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.file === undefined ? null : { file: v.file }),
|
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
|
||||||
...(v.audioProfile === undefined ? null : { audioProfile: v.audioProfile }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
...(v.stream === undefined ? null : { Stream: v.stream }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -372,25 +293,9 @@ export namespace GetOnDeckMedia$ {
|
|||||||
Part: z.array(z.lazy(() => GetOnDeckPart$.inboundSchema)).optional(),
|
Part: z.array(z.lazy(() => GetOnDeckPart$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
Part: "part",
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
});
|
||||||
...(v.bitrate === undefined ? null : { bitrate: v.bitrate }),
|
|
||||||
...(v.width === undefined ? null : { width: v.width }),
|
|
||||||
...(v.height === undefined ? null : { height: v.height }),
|
|
||||||
...(v.aspectRatio === undefined ? null : { aspectRatio: v.aspectRatio }),
|
|
||||||
...(v.audioChannels === undefined ? null : { audioChannels: v.audioChannels }),
|
|
||||||
...(v.audioCodec === undefined ? null : { audioCodec: v.audioCodec }),
|
|
||||||
...(v.videoCodec === undefined ? null : { videoCodec: v.videoCodec }),
|
|
||||||
...(v.videoResolution === undefined
|
|
||||||
? null
|
|
||||||
: { videoResolution: v.videoResolution }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.videoFrameRate === undefined ? null : { videoFrameRate: v.videoFrameRate }),
|
|
||||||
...(v.audioProfile === undefined ? null : { audioProfile: v.audioProfile }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
...(v.Part === undefined ? null : { part: v.Part }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -430,53 +335,25 @@ export namespace GetOnDeckMedia$ {
|
|||||||
part: z.array(z.lazy(() => GetOnDeckPart$.outboundSchema)).optional(),
|
part: z.array(z.lazy(() => GetOnDeckPart$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
part: "Part",
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
});
|
||||||
...(v.bitrate === undefined ? null : { bitrate: v.bitrate }),
|
|
||||||
...(v.width === undefined ? null : { width: v.width }),
|
|
||||||
...(v.height === undefined ? null : { height: v.height }),
|
|
||||||
...(v.aspectRatio === undefined ? null : { aspectRatio: v.aspectRatio }),
|
|
||||||
...(v.audioChannels === undefined ? null : { audioChannels: v.audioChannels }),
|
|
||||||
...(v.audioCodec === undefined ? null : { audioCodec: v.audioCodec }),
|
|
||||||
...(v.videoCodec === undefined ? null : { videoCodec: v.videoCodec }),
|
|
||||||
...(v.videoResolution === undefined
|
|
||||||
? null
|
|
||||||
: { videoResolution: v.videoResolution }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.videoFrameRate === undefined ? null : { videoFrameRate: v.videoFrameRate }),
|
|
||||||
...(v.audioProfile === undefined ? null : { audioProfile: v.audioProfile }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
...(v.part === undefined ? null : { Part: v.part }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetOnDeckGuids$ {
|
export namespace GetOnDeckGuids$ {
|
||||||
export const inboundSchema: z.ZodType<GetOnDeckGuids, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetOnDeckGuids, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
id: z.string().optional(),
|
||||||
id: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
id?: string | undefined;
|
id?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetOnDeckGuids> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetOnDeckGuids> = z.object({
|
||||||
.object({
|
id: z.string().optional(),
|
||||||
id: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -525,66 +402,9 @@ export namespace GetOnDeckMetadata$ {
|
|||||||
guids: z.array(z.lazy(() => GetOnDeckGuids$.inboundSchema)).optional(),
|
guids: z.array(z.lazy(() => GetOnDeckGuids$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
Media: "media",
|
||||||
...(v.librarySectionID === undefined
|
});
|
||||||
? null
|
|
||||||
: { librarySectionID: v.librarySectionID }),
|
|
||||||
...(v.librarySectionTitle === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionTitle: v.librarySectionTitle }),
|
|
||||||
...(v.librarySectionUUID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionUUID: v.librarySectionUUID }),
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.parentRatingKey === undefined
|
|
||||||
? null
|
|
||||||
: { parentRatingKey: v.parentRatingKey }),
|
|
||||||
...(v.grandparentRatingKey === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentRatingKey: v.grandparentRatingKey }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.parentGuid === undefined ? null : { parentGuid: v.parentGuid }),
|
|
||||||
...(v.grandparentGuid === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentGuid: v.grandparentGuid }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.grandparentKey === undefined ? null : { grandparentKey: v.grandparentKey }),
|
|
||||||
...(v.parentKey === undefined ? null : { parentKey: v.parentKey }),
|
|
||||||
...(v.librarySectionKey === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionKey: v.librarySectionKey }),
|
|
||||||
...(v.grandparentTitle === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentTitle: v.grandparentTitle }),
|
|
||||||
...(v.parentTitle === undefined ? null : { parentTitle: v.parentTitle }),
|
|
||||||
...(v.contentRating === undefined ? null : { contentRating: v.contentRating }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.index === undefined ? null : { index: v.index }),
|
|
||||||
...(v.parentIndex === undefined ? null : { parentIndex: v.parentIndex }),
|
|
||||||
...(v.lastViewedAt === undefined ? null : { lastViewedAt: v.lastViewedAt }),
|
|
||||||
...(v.year === undefined ? null : { year: v.year }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
|
||||||
...(v.parentThumb === undefined ? null : { parentThumb: v.parentThumb }),
|
|
||||||
...(v.grandparentThumb === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentThumb: v.grandparentThumb }),
|
|
||||||
...(v.grandparentArt === undefined ? null : { grandparentArt: v.grandparentArt }),
|
|
||||||
...(v.grandparentTheme === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentTheme: v.grandparentTheme }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.originallyAvailableAt === undefined
|
|
||||||
? null
|
|
||||||
: { originallyAvailableAt: v.originallyAvailableAt }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.Media === undefined ? null : { media: v.Media }),
|
|
||||||
...(v.guids === undefined ? null : { guids: v.guids }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -669,66 +489,9 @@ export namespace GetOnDeckMetadata$ {
|
|||||||
guids: z.array(z.lazy(() => GetOnDeckGuids$.outboundSchema)).optional(),
|
guids: z.array(z.lazy(() => GetOnDeckGuids$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
media: "Media",
|
||||||
...(v.librarySectionID === undefined
|
});
|
||||||
? null
|
|
||||||
: { librarySectionID: v.librarySectionID }),
|
|
||||||
...(v.librarySectionTitle === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionTitle: v.librarySectionTitle }),
|
|
||||||
...(v.librarySectionUUID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionUUID: v.librarySectionUUID }),
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.parentRatingKey === undefined
|
|
||||||
? null
|
|
||||||
: { parentRatingKey: v.parentRatingKey }),
|
|
||||||
...(v.grandparentRatingKey === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentRatingKey: v.grandparentRatingKey }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.parentGuid === undefined ? null : { parentGuid: v.parentGuid }),
|
|
||||||
...(v.grandparentGuid === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentGuid: v.grandparentGuid }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.grandparentKey === undefined ? null : { grandparentKey: v.grandparentKey }),
|
|
||||||
...(v.parentKey === undefined ? null : { parentKey: v.parentKey }),
|
|
||||||
...(v.librarySectionKey === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionKey: v.librarySectionKey }),
|
|
||||||
...(v.grandparentTitle === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentTitle: v.grandparentTitle }),
|
|
||||||
...(v.parentTitle === undefined ? null : { parentTitle: v.parentTitle }),
|
|
||||||
...(v.contentRating === undefined ? null : { contentRating: v.contentRating }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.index === undefined ? null : { index: v.index }),
|
|
||||||
...(v.parentIndex === undefined ? null : { parentIndex: v.parentIndex }),
|
|
||||||
...(v.lastViewedAt === undefined ? null : { lastViewedAt: v.lastViewedAt }),
|
|
||||||
...(v.year === undefined ? null : { year: v.year }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
|
||||||
...(v.parentThumb === undefined ? null : { parentThumb: v.parentThumb }),
|
|
||||||
...(v.grandparentThumb === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentThumb: v.grandparentThumb }),
|
|
||||||
...(v.grandparentArt === undefined ? null : { grandparentArt: v.grandparentArt }),
|
|
||||||
...(v.grandparentTheme === undefined
|
|
||||||
? null
|
|
||||||
: { grandparentTheme: v.grandparentTheme }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.originallyAvailableAt === undefined
|
|
||||||
? null
|
|
||||||
: { originallyAvailableAt: v.originallyAvailableAt }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.media === undefined ? null : { Media: v.media }),
|
|
||||||
...(v.guids === undefined ? null : { guids: v.guids }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -745,17 +508,9 @@ export namespace GetOnDeckMediaContainer$ {
|
|||||||
Metadata: z.array(z.lazy(() => GetOnDeckMetadata$.inboundSchema)).optional(),
|
Metadata: z.array(z.lazy(() => GetOnDeckMetadata$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Metadata: "metadata",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
});
|
||||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
|
||||||
...(v.mediaTagPrefix === undefined ? null : { mediaTagPrefix: v.mediaTagPrefix }),
|
|
||||||
...(v.mediaTagVersion === undefined
|
|
||||||
? null
|
|
||||||
: { mediaTagVersion: v.mediaTagVersion }),
|
|
||||||
...(v.mixedParents === undefined ? null : { mixedParents: v.mixedParents }),
|
|
||||||
...(v.Metadata === undefined ? null : { metadata: v.Metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -779,17 +534,9 @@ export namespace GetOnDeckMediaContainer$ {
|
|||||||
metadata: z.array(z.lazy(() => GetOnDeckMetadata$.outboundSchema)).optional(),
|
metadata: z.array(z.lazy(() => GetOnDeckMetadata$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
metadata: "Metadata",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
});
|
||||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
|
||||||
...(v.mediaTagPrefix === undefined ? null : { mediaTagPrefix: v.mediaTagPrefix }),
|
|
||||||
...(v.mediaTagVersion === undefined
|
|
||||||
? null
|
|
||||||
: { mediaTagVersion: v.mediaTagVersion }),
|
|
||||||
...(v.mixedParents === undefined ? null : { mixedParents: v.mixedParents }),
|
|
||||||
...(v.metadata === undefined ? null : { Metadata: v.metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -800,9 +547,9 @@ export namespace GetOnDeckResponseBody$ {
|
|||||||
MediaContainer: z.lazy(() => GetOnDeckMediaContainer$.inboundSchema).optional(),
|
MediaContainer: z.lazy(() => GetOnDeckMediaContainer$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined ? null : { mediaContainer: v.MediaContainer }),
|
MediaContainer: "mediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -814,9 +561,9 @@ export namespace GetOnDeckResponseBody$ {
|
|||||||
mediaContainer: z.lazy(() => GetOnDeckMediaContainer$.outboundSchema).optional(),
|
mediaContainer: z.lazy(() => GetOnDeckMediaContainer$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -830,12 +577,11 @@ export namespace GetOnDeckResponse$ {
|
|||||||
object: z.lazy(() => GetOnDeckResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetOnDeckResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -855,11 +601,10 @@ export namespace GetOnDeckResponse$ {
|
|||||||
object: z.lazy(() => GetOnDeckResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetOnDeckResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export const GetPinServerList = ["https://plex.tv/api/v2"] as const;
|
export const GetPinServerList = ["https://plex.tv/api/v2"] as const;
|
||||||
@@ -107,9 +108,9 @@ export namespace GetPinGlobals$ {
|
|||||||
"X-Plex-Client-Identifier": z.string(),
|
"X-Plex-Client-Identifier": z.string(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
xPlexClientIdentifier: v["X-Plex-Client-Identifier"],
|
"X-Plex-Client-Identifier": "xPlexClientIdentifier",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -121,9 +122,9 @@ export namespace GetPinGlobals$ {
|
|||||||
xPlexClientIdentifier: z.string(),
|
xPlexClientIdentifier: z.string(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
"X-Plex-Client-Identifier": v.xPlexClientIdentifier,
|
xPlexClientIdentifier: "X-Plex-Client-Identifier",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -135,12 +136,9 @@ export namespace GetPinRequest$ {
|
|||||||
"X-Plex-Client-Identifier": z.string().optional(),
|
"X-Plex-Client-Identifier": z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
strong: v.strong,
|
"X-Plex-Client-Identifier": "xPlexClientIdentifier",
|
||||||
...(v["X-Plex-Client-Identifier"] === undefined
|
});
|
||||||
? null
|
|
||||||
: { xPlexClientIdentifier: v["X-Plex-Client-Identifier"] }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -154,12 +152,9 @@ export namespace GetPinRequest$ {
|
|||||||
xPlexClientIdentifier: z.string().optional(),
|
xPlexClientIdentifier: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
strong: v.strong,
|
xPlexClientIdentifier: "X-Plex-Client-Identifier",
|
||||||
...(v.xPlexClientIdentifier === undefined
|
});
|
||||||
? null
|
|
||||||
: { "X-Plex-Client-Identifier": v.xPlexClientIdentifier }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -179,22 +174,13 @@ export namespace Location$ {
|
|||||||
coordinates: z.string().optional(),
|
coordinates: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
european_union_member: "europeanUnionMember",
|
||||||
...(v.european_union_member === undefined
|
continent_code: "continentCode",
|
||||||
? null
|
time_zone: "timeZone",
|
||||||
: { europeanUnionMember: v.european_union_member }),
|
postal_code: "postalCode",
|
||||||
...(v.continent_code === undefined ? null : { continentCode: v.continent_code }),
|
in_privacy_restricted_country: "inPrivacyRestrictedCountry",
|
||||||
...(v.country === undefined ? null : { country: v.country }),
|
});
|
||||||
...(v.city === undefined ? null : { city: v.city }),
|
|
||||||
...(v.time_zone === undefined ? null : { timeZone: v.time_zone }),
|
|
||||||
...(v.postal_code === undefined ? null : { postalCode: v.postal_code }),
|
|
||||||
...(v.in_privacy_restricted_country === undefined
|
|
||||||
? null
|
|
||||||
: { inPrivacyRestrictedCountry: v.in_privacy_restricted_country }),
|
|
||||||
...(v.subdivisions === undefined ? null : { subdivisions: v.subdivisions }),
|
|
||||||
...(v.coordinates === undefined ? null : { coordinates: v.coordinates }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -224,70 +210,40 @@ export namespace Location$ {
|
|||||||
coordinates: z.string().optional(),
|
coordinates: z.string().optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
europeanUnionMember: "european_union_member",
|
||||||
...(v.europeanUnionMember === undefined
|
continentCode: "continent_code",
|
||||||
? null
|
timeZone: "time_zone",
|
||||||
: { european_union_member: v.europeanUnionMember }),
|
postalCode: "postal_code",
|
||||||
...(v.continentCode === undefined ? null : { continent_code: v.continentCode }),
|
inPrivacyRestrictedCountry: "in_privacy_restricted_country",
|
||||||
...(v.country === undefined ? null : { country: v.country }),
|
});
|
||||||
...(v.city === undefined ? null : { city: v.city }),
|
|
||||||
...(v.timeZone === undefined ? null : { time_zone: v.timeZone }),
|
|
||||||
...(v.postalCode === undefined ? null : { postal_code: v.postalCode }),
|
|
||||||
...(v.inPrivacyRestrictedCountry === undefined
|
|
||||||
? null
|
|
||||||
: { in_privacy_restricted_country: v.inPrivacyRestrictedCountry }),
|
|
||||||
...(v.subdivisions === undefined ? null : { subdivisions: v.subdivisions }),
|
|
||||||
...(v.coordinates === undefined ? null : { coordinates: v.coordinates }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPinResponseBody$ {
|
export namespace GetPinResponseBody$ {
|
||||||
export const inboundSchema: z.ZodType<GetPinResponseBody, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPinResponseBody, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
id: z.number().optional(),
|
||||||
id: z.number().optional(),
|
code: z.string().optional(),
|
||||||
code: z.string().optional(),
|
product: z.string().optional(),
|
||||||
product: z.string().optional(),
|
trusted: z.boolean().optional(),
|
||||||
trusted: z.boolean().optional(),
|
qr: z.string().optional(),
|
||||||
qr: z.string().optional(),
|
clientIdentifier: z.string().optional(),
|
||||||
clientIdentifier: z.string().optional(),
|
location: z.lazy(() => Location$.inboundSchema).optional(),
|
||||||
location: z.lazy(() => Location$.inboundSchema).optional(),
|
expiresIn: z.number().optional(),
|
||||||
expiresIn: z.number().optional(),
|
createdAt: z
|
||||||
createdAt: z
|
.string()
|
||||||
.string()
|
.datetime({ offset: true })
|
||||||
.datetime({ offset: true })
|
.transform((v) => new Date(v))
|
||||||
.transform((v) => new Date(v))
|
.optional(),
|
||||||
.optional(),
|
expiresAt: z
|
||||||
expiresAt: z
|
.string()
|
||||||
.string()
|
.datetime({ offset: true })
|
||||||
.datetime({ offset: true })
|
.transform((v) => new Date(v))
|
||||||
.transform((v) => new Date(v))
|
.optional(),
|
||||||
.optional(),
|
authToken: z.string().optional(),
|
||||||
authToken: z.string().optional(),
|
newRegistration: z.string().optional(),
|
||||||
newRegistration: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.product === undefined ? null : { product: v.product }),
|
|
||||||
...(v.trusted === undefined ? null : { trusted: v.trusted }),
|
|
||||||
...(v.qr === undefined ? null : { qr: v.qr }),
|
|
||||||
...(v.clientIdentifier === undefined
|
|
||||||
? null
|
|
||||||
: { clientIdentifier: v.clientIdentifier }),
|
|
||||||
...(v.location === undefined ? null : { location: v.location }),
|
|
||||||
...(v.expiresIn === undefined ? null : { expiresIn: v.expiresIn }),
|
|
||||||
...(v.createdAt === undefined ? null : { createdAt: v.createdAt }),
|
|
||||||
...(v.expiresAt === undefined ? null : { expiresAt: v.expiresAt }),
|
|
||||||
...(v.authToken === undefined ? null : { authToken: v.authToken }),
|
|
||||||
...(v.newRegistration === undefined
|
|
||||||
? null
|
|
||||||
: { newRegistration: v.newRegistration }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
id?: number | undefined;
|
id?: number | undefined;
|
||||||
@@ -304,47 +260,26 @@ export namespace GetPinResponseBody$ {
|
|||||||
newRegistration?: string | undefined;
|
newRegistration?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPinResponseBody> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPinResponseBody> = z.object({
|
||||||
.object({
|
id: z.number().optional(),
|
||||||
id: z.number().optional(),
|
code: z.string().optional(),
|
||||||
code: z.string().optional(),
|
product: z.string().optional(),
|
||||||
product: z.string().optional(),
|
trusted: z.boolean().optional(),
|
||||||
trusted: z.boolean().optional(),
|
qr: z.string().optional(),
|
||||||
qr: z.string().optional(),
|
clientIdentifier: z.string().optional(),
|
||||||
clientIdentifier: z.string().optional(),
|
location: z.lazy(() => Location$.outboundSchema).optional(),
|
||||||
location: z.lazy(() => Location$.outboundSchema).optional(),
|
expiresIn: z.number().optional(),
|
||||||
expiresIn: z.number().optional(),
|
createdAt: z
|
||||||
createdAt: z
|
.date()
|
||||||
.date()
|
.transform((v) => v.toISOString())
|
||||||
.transform((v) => v.toISOString())
|
.optional(),
|
||||||
.optional(),
|
expiresAt: z
|
||||||
expiresAt: z
|
.date()
|
||||||
.date()
|
.transform((v) => v.toISOString())
|
||||||
.transform((v) => v.toISOString())
|
.optional(),
|
||||||
.optional(),
|
authToken: z.string().optional(),
|
||||||
authToken: z.string().optional(),
|
newRegistration: z.string().optional(),
|
||||||
newRegistration: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.code === undefined ? null : { code: v.code }),
|
|
||||||
...(v.product === undefined ? null : { product: v.product }),
|
|
||||||
...(v.trusted === undefined ? null : { trusted: v.trusted }),
|
|
||||||
...(v.qr === undefined ? null : { qr: v.qr }),
|
|
||||||
...(v.clientIdentifier === undefined
|
|
||||||
? null
|
|
||||||
: { clientIdentifier: v.clientIdentifier }),
|
|
||||||
...(v.location === undefined ? null : { location: v.location }),
|
|
||||||
...(v.expiresIn === undefined ? null : { expiresIn: v.expiresIn }),
|
|
||||||
...(v.createdAt === undefined ? null : { createdAt: v.createdAt }),
|
|
||||||
...(v.expiresAt === undefined ? null : { expiresAt: v.expiresAt }),
|
|
||||||
...(v.authToken === undefined ? null : { authToken: v.authToken }),
|
|
||||||
...(v.newRegistration === undefined
|
|
||||||
? null
|
|
||||||
: { newRegistration: v.newRegistration }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -357,12 +292,11 @@ export namespace GetPinResponse$ {
|
|||||||
object: z.lazy(() => GetPinResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetPinResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -382,11 +316,10 @@ export namespace GetPinResponse$ {
|
|||||||
object: z.lazy(() => GetPinResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetPinResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type GetPlaylistRequest = {
|
export type GetPlaylistRequest = {
|
||||||
@@ -62,70 +63,38 @@ export type GetPlaylistResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPlaylistRequest$ {
|
export namespace GetPlaylistRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetPlaylistRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPlaylistRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
playlistID: z.number(),
|
||||||
playlistID: z.number(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
playlistID: v.playlistID,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
playlistID: number;
|
playlistID: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistRequest> = z.object({
|
||||||
.object({
|
playlistID: z.number(),
|
||||||
playlistID: z.number(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
playlistID: v.playlistID,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPlaylistMetadata$ {
|
export namespace GetPlaylistMetadata$ {
|
||||||
export const inboundSchema: z.ZodType<GetPlaylistMetadata, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPlaylistMetadata, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
content: z.string().optional(),
|
||||||
content: z.string().optional(),
|
ratingKey: z.string().optional(),
|
||||||
ratingKey: z.string().optional(),
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
guid: z.string().optional(),
|
||||||
guid: z.string().optional(),
|
type: z.string().optional(),
|
||||||
type: z.string().optional(),
|
title: z.string().optional(),
|
||||||
title: z.string().optional(),
|
summary: z.string().optional(),
|
||||||
summary: z.string().optional(),
|
smart: z.boolean().optional(),
|
||||||
smart: z.boolean().optional(),
|
playlistType: z.string().optional(),
|
||||||
playlistType: z.string().optional(),
|
composite: z.string().optional(),
|
||||||
composite: z.string().optional(),
|
icon: z.string().optional(),
|
||||||
icon: z.string().optional(),
|
duration: z.number().int().optional(),
|
||||||
duration: z.number().int().optional(),
|
leafCount: z.number().int().optional(),
|
||||||
leafCount: z.number().int().optional(),
|
addedAt: z.number().int().optional(),
|
||||||
addedAt: z.number().int().optional(),
|
updatedAt: z.number().int().optional(),
|
||||||
updatedAt: z.number().int().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.content === undefined ? null : { content: v.content }),
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.smart === undefined ? null : { smart: v.smart }),
|
|
||||||
...(v.playlistType === undefined ? null : { playlistType: v.playlistType }),
|
|
||||||
...(v.composite === undefined ? null : { composite: v.composite }),
|
|
||||||
...(v.icon === undefined ? null : { icon: v.icon }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
content?: string | undefined;
|
content?: string | undefined;
|
||||||
@@ -145,43 +114,23 @@ export namespace GetPlaylistMetadata$ {
|
|||||||
updatedAt?: number | undefined;
|
updatedAt?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistMetadata> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistMetadata> = z.object({
|
||||||
.object({
|
content: z.string().optional(),
|
||||||
content: z.string().optional(),
|
ratingKey: z.string().optional(),
|
||||||
ratingKey: z.string().optional(),
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
guid: z.string().optional(),
|
||||||
guid: z.string().optional(),
|
type: z.string().optional(),
|
||||||
type: z.string().optional(),
|
title: z.string().optional(),
|
||||||
title: z.string().optional(),
|
summary: z.string().optional(),
|
||||||
summary: z.string().optional(),
|
smart: z.boolean().optional(),
|
||||||
smart: z.boolean().optional(),
|
playlistType: z.string().optional(),
|
||||||
playlistType: z.string().optional(),
|
composite: z.string().optional(),
|
||||||
composite: z.string().optional(),
|
icon: z.string().optional(),
|
||||||
icon: z.string().optional(),
|
duration: z.number().int().optional(),
|
||||||
duration: z.number().int().optional(),
|
leafCount: z.number().int().optional(),
|
||||||
leafCount: z.number().int().optional(),
|
addedAt: z.number().int().optional(),
|
||||||
addedAt: z.number().int().optional(),
|
updatedAt: z.number().int().optional(),
|
||||||
updatedAt: z.number().int().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.content === undefined ? null : { content: v.content }),
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.smart === undefined ? null : { smart: v.smart }),
|
|
||||||
...(v.playlistType === undefined ? null : { playlistType: v.playlistType }),
|
|
||||||
...(v.composite === undefined ? null : { composite: v.composite }),
|
|
||||||
...(v.icon === undefined ? null : { icon: v.icon }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -192,10 +141,9 @@ export namespace GetPlaylistMediaContainer$ {
|
|||||||
Metadata: z.array(z.lazy(() => GetPlaylistMetadata$.inboundSchema)).optional(),
|
Metadata: z.array(z.lazy(() => GetPlaylistMetadata$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Metadata: "metadata",
|
||||||
...(v.Metadata === undefined ? null : { metadata: v.Metadata }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -209,10 +157,9 @@ export namespace GetPlaylistMediaContainer$ {
|
|||||||
metadata: z.array(z.lazy(() => GetPlaylistMetadata$.outboundSchema)).optional(),
|
metadata: z.array(z.lazy(() => GetPlaylistMetadata$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
metadata: "Metadata",
|
||||||
...(v.metadata === undefined ? null : { Metadata: v.metadata }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -223,9 +170,9 @@ export namespace GetPlaylistResponseBody$ {
|
|||||||
MediaContainer: z.lazy(() => GetPlaylistMediaContainer$.inboundSchema).optional(),
|
MediaContainer: z.lazy(() => GetPlaylistMediaContainer$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined ? null : { mediaContainer: v.MediaContainer }),
|
MediaContainer: "mediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -237,9 +184,9 @@ export namespace GetPlaylistResponseBody$ {
|
|||||||
mediaContainer: z.lazy(() => GetPlaylistMediaContainer$.outboundSchema).optional(),
|
mediaContainer: z.lazy(() => GetPlaylistMediaContainer$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -253,12 +200,11 @@ export namespace GetPlaylistResponse$ {
|
|||||||
object: z.lazy(() => GetPlaylistResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetPlaylistResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -278,11 +224,10 @@ export namespace GetPlaylistResponse$ {
|
|||||||
object: z.lazy(() => GetPlaylistResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetPlaylistResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import { RFCDate } from "../../types";
|
import { RFCDate } from "../../types";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
@@ -144,16 +145,10 @@ export type GetPlaylistContentsResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPlaylistContentsRequest$ {
|
export namespace GetPlaylistContentsRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetPlaylistContentsRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPlaylistContentsRequest, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
playlistID: z.number(),
|
playlistID: z.number(),
|
||||||
type: z.number(),
|
type: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
playlistID: v.playlistID,
|
|
||||||
type: v.type,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -161,23 +156,17 @@ export namespace GetPlaylistContentsRequest$ {
|
|||||||
type: number;
|
type: number;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsRequest> =
|
||||||
.object({
|
z.object({
|
||||||
playlistID: z.number(),
|
playlistID: z.number(),
|
||||||
type: z.number(),
|
type: z.number(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
playlistID: v.playlistID,
|
|
||||||
type: v.type,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPlaylistContentsPart$ {
|
export namespace GetPlaylistContentsPart$ {
|
||||||
export const inboundSchema: z.ZodType<GetPlaylistContentsPart, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPlaylistContentsPart, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
id: z.number().int().optional(),
|
id: z.number().int().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
duration: z.number().int().optional(),
|
duration: z.number().int().optional(),
|
||||||
@@ -188,24 +177,6 @@ export namespace GetPlaylistContentsPart$ {
|
|||||||
has64bitOffsets: z.boolean().optional(),
|
has64bitOffsets: z.boolean().optional(),
|
||||||
optimizedForStreaming: z.boolean().optional(),
|
optimizedForStreaming: z.boolean().optional(),
|
||||||
videoProfile: z.string().optional(),
|
videoProfile: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.file === undefined ? null : { file: v.file }),
|
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
|
||||||
...(v.audioProfile === undefined ? null : { audioProfile: v.audioProfile }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.has64bitOffsets === undefined
|
|
||||||
? null
|
|
||||||
: { has64bitOffsets: v.has64bitOffsets }),
|
|
||||||
...(v.optimizedForStreaming === undefined
|
|
||||||
? null
|
|
||||||
: { optimizedForStreaming: v.optimizedForStreaming }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -221,8 +192,8 @@ export namespace GetPlaylistContentsPart$ {
|
|||||||
videoProfile?: string | undefined;
|
videoProfile?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsPart> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsPart> =
|
||||||
.object({
|
z.object({
|
||||||
id: z.number().int().optional(),
|
id: z.number().int().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
duration: z.number().int().optional(),
|
duration: z.number().int().optional(),
|
||||||
@@ -233,24 +204,6 @@ export namespace GetPlaylistContentsPart$ {
|
|||||||
has64bitOffsets: z.boolean().optional(),
|
has64bitOffsets: z.boolean().optional(),
|
||||||
optimizedForStreaming: z.boolean().optional(),
|
optimizedForStreaming: z.boolean().optional(),
|
||||||
videoProfile: z.string().optional(),
|
videoProfile: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.file === undefined ? null : { file: v.file }),
|
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
|
||||||
...(v.audioProfile === undefined ? null : { audioProfile: v.audioProfile }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.has64bitOffsets === undefined
|
|
||||||
? null
|
|
||||||
: { has64bitOffsets: v.has64bitOffsets }),
|
|
||||||
...(v.optimizedForStreaming === undefined
|
|
||||||
? null
|
|
||||||
: { optimizedForStreaming: v.optimizedForStreaming }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -277,31 +230,9 @@ export namespace GetPlaylistContentsMedia$ {
|
|||||||
Part: z.array(z.lazy(() => GetPlaylistContentsPart$.inboundSchema)).optional(),
|
Part: z.array(z.lazy(() => GetPlaylistContentsPart$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
Part: "part",
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
});
|
||||||
...(v.bitrate === undefined ? null : { bitrate: v.bitrate }),
|
|
||||||
...(v.width === undefined ? null : { width: v.width }),
|
|
||||||
...(v.height === undefined ? null : { height: v.height }),
|
|
||||||
...(v.aspectRatio === undefined ? null : { aspectRatio: v.aspectRatio }),
|
|
||||||
...(v.audioChannels === undefined ? null : { audioChannels: v.audioChannels }),
|
|
||||||
...(v.audioCodec === undefined ? null : { audioCodec: v.audioCodec }),
|
|
||||||
...(v.videoCodec === undefined ? null : { videoCodec: v.videoCodec }),
|
|
||||||
...(v.videoResolution === undefined
|
|
||||||
? null
|
|
||||||
: { videoResolution: v.videoResolution }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.videoFrameRate === undefined ? null : { videoFrameRate: v.videoFrameRate }),
|
|
||||||
...(v.optimizedForStreaming === undefined
|
|
||||||
? null
|
|
||||||
: { optimizedForStreaming: v.optimizedForStreaming }),
|
|
||||||
...(v.audioProfile === undefined ? null : { audioProfile: v.audioProfile }),
|
|
||||||
...(v.has64bitOffsets === undefined
|
|
||||||
? null
|
|
||||||
: { has64bitOffsets: v.has64bitOffsets }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
...(v.Part === undefined ? null : { part: v.Part }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -345,166 +276,94 @@ export namespace GetPlaylistContentsMedia$ {
|
|||||||
part: z.array(z.lazy(() => GetPlaylistContentsPart$.outboundSchema)).optional(),
|
part: z.array(z.lazy(() => GetPlaylistContentsPart$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
part: "Part",
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
});
|
||||||
...(v.bitrate === undefined ? null : { bitrate: v.bitrate }),
|
|
||||||
...(v.width === undefined ? null : { width: v.width }),
|
|
||||||
...(v.height === undefined ? null : { height: v.height }),
|
|
||||||
...(v.aspectRatio === undefined ? null : { aspectRatio: v.aspectRatio }),
|
|
||||||
...(v.audioChannels === undefined ? null : { audioChannels: v.audioChannels }),
|
|
||||||
...(v.audioCodec === undefined ? null : { audioCodec: v.audioCodec }),
|
|
||||||
...(v.videoCodec === undefined ? null : { videoCodec: v.videoCodec }),
|
|
||||||
...(v.videoResolution === undefined
|
|
||||||
? null
|
|
||||||
: { videoResolution: v.videoResolution }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.videoFrameRate === undefined ? null : { videoFrameRate: v.videoFrameRate }),
|
|
||||||
...(v.optimizedForStreaming === undefined
|
|
||||||
? null
|
|
||||||
: { optimizedForStreaming: v.optimizedForStreaming }),
|
|
||||||
...(v.audioProfile === undefined ? null : { audioProfile: v.audioProfile }),
|
|
||||||
...(v.has64bitOffsets === undefined
|
|
||||||
? null
|
|
||||||
: { has64bitOffsets: v.has64bitOffsets }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
...(v.part === undefined ? null : { Part: v.part }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPlaylistContentsGenre$ {
|
export namespace GetPlaylistContentsGenre$ {
|
||||||
export const inboundSchema: z.ZodType<GetPlaylistContentsGenre, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPlaylistContentsGenre, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsGenre> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsGenre> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPlaylistContentsCountry$ {
|
export namespace GetPlaylistContentsCountry$ {
|
||||||
export const inboundSchema: z.ZodType<GetPlaylistContentsCountry, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPlaylistContentsCountry, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsCountry> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsCountry> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPlaylistContentsDirector$ {
|
export namespace GetPlaylistContentsDirector$ {
|
||||||
export const inboundSchema: z.ZodType<GetPlaylistContentsDirector, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPlaylistContentsDirector, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsDirector> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsDirector> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPlaylistContentsWriter$ {
|
export namespace GetPlaylistContentsWriter$ {
|
||||||
export const inboundSchema: z.ZodType<GetPlaylistContentsWriter, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPlaylistContentsWriter, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsWriter> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsWriter> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPlaylistContentsRole$ {
|
export namespace GetPlaylistContentsRole$ {
|
||||||
export const inboundSchema: z.ZodType<GetPlaylistContentsRole, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPlaylistContentsRole, z.ZodTypeDef, unknown> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsRole> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistContentsRole> =
|
||||||
.object({
|
z.object({
|
||||||
tag: z.string().optional(),
|
tag: z.string().optional(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -549,54 +408,14 @@ export namespace GetPlaylistContentsMetadata$ {
|
|||||||
Role: z.array(z.lazy(() => GetPlaylistContentsRole$.inboundSchema)).optional(),
|
Role: z.array(z.lazy(() => GetPlaylistContentsRole$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
Media: "media",
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
Genre: "genre",
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
Country: "country",
|
||||||
...(v.studio === undefined ? null : { studio: v.studio }),
|
Director: "director",
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
Writer: "writer",
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
Role: "role",
|
||||||
...(v.titleSort === undefined ? null : { titleSort: v.titleSort }),
|
});
|
||||||
...(v.librarySectionTitle === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionTitle: v.librarySectionTitle }),
|
|
||||||
...(v.librarySectionID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionID: v.librarySectionID }),
|
|
||||||
...(v.librarySectionKey === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionKey: v.librarySectionKey }),
|
|
||||||
...(v.contentRating === undefined ? null : { contentRating: v.contentRating }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.rating === undefined ? null : { rating: v.rating }),
|
|
||||||
...(v.audienceRating === undefined ? null : { audienceRating: v.audienceRating }),
|
|
||||||
...(v.year === undefined ? null : { year: v.year }),
|
|
||||||
...(v.tagline === undefined ? null : { tagline: v.tagline }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.originallyAvailableAt === undefined
|
|
||||||
? null
|
|
||||||
: { originallyAvailableAt: v.originallyAvailableAt }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.audienceRatingImage === undefined
|
|
||||||
? null
|
|
||||||
: { audienceRatingImage: v.audienceRatingImage }),
|
|
||||||
...(v.hasPremiumExtras === undefined
|
|
||||||
? null
|
|
||||||
: { hasPremiumExtras: v.hasPremiumExtras }),
|
|
||||||
...(v.hasPremiumPrimaryExtra === undefined
|
|
||||||
? null
|
|
||||||
: { hasPremiumPrimaryExtra: v.hasPremiumPrimaryExtra }),
|
|
||||||
...(v.ratingImage === undefined ? null : { ratingImage: v.ratingImage }),
|
|
||||||
...(v.Media === undefined ? null : { media: v.Media }),
|
|
||||||
...(v.Genre === undefined ? null : { genre: v.Genre }),
|
|
||||||
...(v.Country === undefined ? null : { country: v.Country }),
|
|
||||||
...(v.Director === undefined ? null : { director: v.Director }),
|
|
||||||
...(v.Writer === undefined ? null : { writer: v.Writer }),
|
|
||||||
...(v.Role === undefined ? null : { role: v.Role }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -673,54 +492,14 @@ export namespace GetPlaylistContentsMetadata$ {
|
|||||||
role: z.array(z.lazy(() => GetPlaylistContentsRole$.outboundSchema)).optional(),
|
role: z.array(z.lazy(() => GetPlaylistContentsRole$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
media: "Media",
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
genre: "Genre",
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
country: "Country",
|
||||||
...(v.studio === undefined ? null : { studio: v.studio }),
|
director: "Director",
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
writer: "Writer",
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
role: "Role",
|
||||||
...(v.titleSort === undefined ? null : { titleSort: v.titleSort }),
|
});
|
||||||
...(v.librarySectionTitle === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionTitle: v.librarySectionTitle }),
|
|
||||||
...(v.librarySectionID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionID: v.librarySectionID }),
|
|
||||||
...(v.librarySectionKey === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionKey: v.librarySectionKey }),
|
|
||||||
...(v.contentRating === undefined ? null : { contentRating: v.contentRating }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.rating === undefined ? null : { rating: v.rating }),
|
|
||||||
...(v.audienceRating === undefined ? null : { audienceRating: v.audienceRating }),
|
|
||||||
...(v.year === undefined ? null : { year: v.year }),
|
|
||||||
...(v.tagline === undefined ? null : { tagline: v.tagline }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.originallyAvailableAt === undefined
|
|
||||||
? null
|
|
||||||
: { originallyAvailableAt: v.originallyAvailableAt }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.audienceRatingImage === undefined
|
|
||||||
? null
|
|
||||||
: { audienceRatingImage: v.audienceRatingImage }),
|
|
||||||
...(v.hasPremiumExtras === undefined
|
|
||||||
? null
|
|
||||||
: { hasPremiumExtras: v.hasPremiumExtras }),
|
|
||||||
...(v.hasPremiumPrimaryExtra === undefined
|
|
||||||
? null
|
|
||||||
: { hasPremiumPrimaryExtra: v.hasPremiumPrimaryExtra }),
|
|
||||||
...(v.ratingImage === undefined ? null : { ratingImage: v.ratingImage }),
|
|
||||||
...(v.media === undefined ? null : { Media: v.media }),
|
|
||||||
...(v.genre === undefined ? null : { Genre: v.genre }),
|
|
||||||
...(v.country === undefined ? null : { Country: v.country }),
|
|
||||||
...(v.director === undefined ? null : { Director: v.director }),
|
|
||||||
...(v.writer === undefined ? null : { Writer: v.writer }),
|
|
||||||
...(v.role === undefined ? null : { Role: v.role }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -743,17 +522,9 @@ export namespace GetPlaylistContentsMediaContainer$ {
|
|||||||
Metadata: z.array(z.lazy(() => GetPlaylistContentsMetadata$.inboundSchema)).optional(),
|
Metadata: z.array(z.lazy(() => GetPlaylistContentsMetadata$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Metadata: "metadata",
|
||||||
...(v.composite === undefined ? null : { composite: v.composite }),
|
});
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.playlistType === undefined ? null : { playlistType: v.playlistType }),
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.smart === undefined ? null : { smart: v.smart }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.Metadata === undefined ? null : { metadata: v.Metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -785,17 +556,9 @@ export namespace GetPlaylistContentsMediaContainer$ {
|
|||||||
metadata: z.array(z.lazy(() => GetPlaylistContentsMetadata$.outboundSchema)).optional(),
|
metadata: z.array(z.lazy(() => GetPlaylistContentsMetadata$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
metadata: "Metadata",
|
||||||
...(v.composite === undefined ? null : { composite: v.composite }),
|
});
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.playlistType === undefined ? null : { playlistType: v.playlistType }),
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.smart === undefined ? null : { smart: v.smart }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.metadata === undefined ? null : { Metadata: v.metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -809,11 +572,9 @@ export namespace GetPlaylistContentsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined
|
MediaContainer: "mediaContainer",
|
||||||
? null
|
});
|
||||||
: { mediaContainer: v.MediaContainer }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -831,9 +592,9 @@ export namespace GetPlaylistContentsResponseBody$ {
|
|||||||
.optional(),
|
.optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -847,12 +608,11 @@ export namespace GetPlaylistContentsResponse$ {
|
|||||||
object: z.lazy(() => GetPlaylistContentsResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetPlaylistContentsResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -872,11 +632,10 @@ export namespace GetPlaylistContentsResponse$ {
|
|||||||
object: z.lazy(() => GetPlaylistContentsResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetPlaylistContentsResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -96,77 +97,42 @@ export namespace QueryParamSmart$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPlaylistsRequest$ {
|
export namespace GetPlaylistsRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetPlaylistsRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPlaylistsRequest, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
playlistType: PlaylistType$.inboundSchema.optional(),
|
||||||
playlistType: PlaylistType$.inboundSchema.optional(),
|
smart: QueryParamSmart$.inboundSchema.optional(),
|
||||||
smart: QueryParamSmart$.inboundSchema.optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.playlistType === undefined ? null : { playlistType: v.playlistType }),
|
|
||||||
...(v.smart === undefined ? null : { smart: v.smart }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
playlistType?: string | undefined;
|
playlistType?: string | undefined;
|
||||||
smart?: number | undefined;
|
smart?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistsRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistsRequest> = z.object({
|
||||||
.object({
|
playlistType: PlaylistType$.outboundSchema.optional(),
|
||||||
playlistType: PlaylistType$.outboundSchema.optional(),
|
smart: QueryParamSmart$.outboundSchema.optional(),
|
||||||
smart: QueryParamSmart$.outboundSchema.optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.playlistType === undefined ? null : { playlistType: v.playlistType }),
|
|
||||||
...(v.smart === undefined ? null : { smart: v.smart }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetPlaylistsMetadata$ {
|
export namespace GetPlaylistsMetadata$ {
|
||||||
export const inboundSchema: z.ZodType<GetPlaylistsMetadata, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetPlaylistsMetadata, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
ratingKey: z.string().optional(),
|
||||||
ratingKey: z.string().optional(),
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
guid: z.string().optional(),
|
||||||
guid: z.string().optional(),
|
type: z.string().optional(),
|
||||||
type: z.string().optional(),
|
title: z.string().optional(),
|
||||||
title: z.string().optional(),
|
summary: z.string().optional(),
|
||||||
summary: z.string().optional(),
|
smart: z.boolean().optional(),
|
||||||
smart: z.boolean().optional(),
|
playlistType: z.string().optional(),
|
||||||
playlistType: z.string().optional(),
|
composite: z.string().optional(),
|
||||||
composite: z.string().optional(),
|
icon: z.string().optional(),
|
||||||
icon: z.string().optional(),
|
viewCount: z.number().int().optional(),
|
||||||
viewCount: z.number().int().optional(),
|
lastViewedAt: z.number().int().optional(),
|
||||||
lastViewedAt: z.number().int().optional(),
|
duration: z.number().int().optional(),
|
||||||
duration: z.number().int().optional(),
|
leafCount: z.number().int().optional(),
|
||||||
leafCount: z.number().int().optional(),
|
addedAt: z.number().int().optional(),
|
||||||
addedAt: z.number().int().optional(),
|
updatedAt: z.number().int().optional(),
|
||||||
updatedAt: z.number().int().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.smart === undefined ? null : { smart: v.smart }),
|
|
||||||
...(v.playlistType === undefined ? null : { playlistType: v.playlistType }),
|
|
||||||
...(v.composite === undefined ? null : { composite: v.composite }),
|
|
||||||
...(v.icon === undefined ? null : { icon: v.icon }),
|
|
||||||
...(v.viewCount === undefined ? null : { viewCount: v.viewCount }),
|
|
||||||
...(v.lastViewedAt === undefined ? null : { lastViewedAt: v.lastViewedAt }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
ratingKey?: string | undefined;
|
ratingKey?: string | undefined;
|
||||||
@@ -187,8 +153,8 @@ export namespace GetPlaylistsMetadata$ {
|
|||||||
updatedAt?: number | undefined;
|
updatedAt?: number | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistsMetadata> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetPlaylistsMetadata> = z.object(
|
||||||
.object({
|
{
|
||||||
ratingKey: z.string().optional(),
|
ratingKey: z.string().optional(),
|
||||||
key: z.string().optional(),
|
key: z.string().optional(),
|
||||||
guid: z.string().optional(),
|
guid: z.string().optional(),
|
||||||
@@ -205,27 +171,8 @@ export namespace GetPlaylistsMetadata$ {
|
|||||||
leafCount: z.number().int().optional(),
|
leafCount: z.number().int().optional(),
|
||||||
addedAt: z.number().int().optional(),
|
addedAt: z.number().int().optional(),
|
||||||
updatedAt: z.number().int().optional(),
|
updatedAt: z.number().int().optional(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.smart === undefined ? null : { smart: v.smart }),
|
|
||||||
...(v.playlistType === undefined ? null : { playlistType: v.playlistType }),
|
|
||||||
...(v.composite === undefined ? null : { composite: v.composite }),
|
|
||||||
...(v.icon === undefined ? null : { icon: v.icon }),
|
|
||||||
...(v.viewCount === undefined ? null : { viewCount: v.viewCount }),
|
|
||||||
...(v.lastViewedAt === undefined ? null : { lastViewedAt: v.lastViewedAt }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.leafCount === undefined ? null : { leafCount: v.leafCount }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -236,10 +183,9 @@ export namespace GetPlaylistsMediaContainer$ {
|
|||||||
Metadata: z.array(z.lazy(() => GetPlaylistsMetadata$.inboundSchema)).optional(),
|
Metadata: z.array(z.lazy(() => GetPlaylistsMetadata$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Metadata: "metadata",
|
||||||
...(v.Metadata === undefined ? null : { metadata: v.Metadata }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -253,10 +199,9 @@ export namespace GetPlaylistsMediaContainer$ {
|
|||||||
metadata: z.array(z.lazy(() => GetPlaylistsMetadata$.outboundSchema)).optional(),
|
metadata: z.array(z.lazy(() => GetPlaylistsMetadata$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
metadata: "Metadata",
|
||||||
...(v.metadata === undefined ? null : { Metadata: v.metadata }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -267,9 +212,9 @@ export namespace GetPlaylistsResponseBody$ {
|
|||||||
MediaContainer: z.lazy(() => GetPlaylistsMediaContainer$.inboundSchema).optional(),
|
MediaContainer: z.lazy(() => GetPlaylistsMediaContainer$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined ? null : { mediaContainer: v.MediaContainer }),
|
MediaContainer: "mediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -281,9 +226,9 @@ export namespace GetPlaylistsResponseBody$ {
|
|||||||
mediaContainer: z.lazy(() => GetPlaylistsMediaContainer$.outboundSchema).optional(),
|
mediaContainer: z.lazy(() => GetPlaylistsMediaContainer$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -297,12 +242,11 @@ export namespace GetPlaylistsResponse$ {
|
|||||||
object: z.lazy(() => GetPlaylistsResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetPlaylistsResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -322,11 +266,10 @@ export namespace GetPlaylistsResponse$ {
|
|||||||
object: z.lazy(() => GetPlaylistsResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetPlaylistsResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
export type Part = {
|
export type Part = {
|
||||||
@@ -129,37 +130,18 @@ export type GetRecentlyAddedResponse = {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Part$ {
|
export namespace Part$ {
|
||||||
export const inboundSchema: z.ZodType<Part, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Part, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
id: z.number().optional(),
|
||||||
id: z.number().optional(),
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
duration: z.number().optional(),
|
||||||
duration: z.number().optional(),
|
file: z.string().optional(),
|
||||||
file: z.string().optional(),
|
size: z.number().optional(),
|
||||||
size: z.number().optional(),
|
container: z.string().optional(),
|
||||||
container: z.string().optional(),
|
has64bitOffsets: z.boolean().optional(),
|
||||||
has64bitOffsets: z.boolean().optional(),
|
hasThumbnail: z.number().optional(),
|
||||||
hasThumbnail: z.number().optional(),
|
optimizedForStreaming: z.boolean().optional(),
|
||||||
optimizedForStreaming: z.boolean().optional(),
|
videoProfile: z.string().optional(),
|
||||||
videoProfile: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.file === undefined ? null : { file: v.file }),
|
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.has64bitOffsets === undefined
|
|
||||||
? null
|
|
||||||
: { has64bitOffsets: v.has64bitOffsets }),
|
|
||||||
...(v.hasThumbnail === undefined ? null : { hasThumbnail: v.hasThumbnail }),
|
|
||||||
...(v.optimizedForStreaming === undefined
|
|
||||||
? null
|
|
||||||
: { optimizedForStreaming: v.optimizedForStreaming }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
id?: number | undefined;
|
id?: number | undefined;
|
||||||
@@ -174,37 +156,18 @@ export namespace Part$ {
|
|||||||
videoProfile?: string | undefined;
|
videoProfile?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Part> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Part> = z.object({
|
||||||
.object({
|
id: z.number().optional(),
|
||||||
id: z.number().optional(),
|
key: z.string().optional(),
|
||||||
key: z.string().optional(),
|
duration: z.number().optional(),
|
||||||
duration: z.number().optional(),
|
file: z.string().optional(),
|
||||||
file: z.string().optional(),
|
size: z.number().optional(),
|
||||||
size: z.number().optional(),
|
container: z.string().optional(),
|
||||||
container: z.string().optional(),
|
has64bitOffsets: z.boolean().optional(),
|
||||||
has64bitOffsets: z.boolean().optional(),
|
hasThumbnail: z.number().optional(),
|
||||||
hasThumbnail: z.number().optional(),
|
optimizedForStreaming: z.boolean().optional(),
|
||||||
optimizedForStreaming: z.boolean().optional(),
|
videoProfile: z.string().optional(),
|
||||||
videoProfile: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.file === undefined ? null : { file: v.file }),
|
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.has64bitOffsets === undefined
|
|
||||||
? null
|
|
||||||
: { has64bitOffsets: v.has64bitOffsets }),
|
|
||||||
...(v.hasThumbnail === undefined ? null : { hasThumbnail: v.hasThumbnail }),
|
|
||||||
...(v.optimizedForStreaming === undefined
|
|
||||||
? null
|
|
||||||
: { optimizedForStreaming: v.optimizedForStreaming }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -229,30 +192,9 @@ export namespace Media$ {
|
|||||||
Part: z.array(z.lazy(() => Part$.inboundSchema)).optional(),
|
Part: z.array(z.lazy(() => Part$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
Part: "part",
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
});
|
||||||
...(v.bitrate === undefined ? null : { bitrate: v.bitrate }),
|
|
||||||
...(v.width === undefined ? null : { width: v.width }),
|
|
||||||
...(v.height === undefined ? null : { height: v.height }),
|
|
||||||
...(v.aspectRatio === undefined ? null : { aspectRatio: v.aspectRatio }),
|
|
||||||
...(v.audioChannels === undefined ? null : { audioChannels: v.audioChannels }),
|
|
||||||
...(v.audioCodec === undefined ? null : { audioCodec: v.audioCodec }),
|
|
||||||
...(v.videoCodec === undefined ? null : { videoCodec: v.videoCodec }),
|
|
||||||
...(v.videoResolution === undefined
|
|
||||||
? null
|
|
||||||
: { videoResolution: v.videoResolution }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.videoFrameRate === undefined ? null : { videoFrameRate: v.videoFrameRate }),
|
|
||||||
...(v.optimizedForStreaming === undefined
|
|
||||||
? null
|
|
||||||
: { optimizedForStreaming: v.optimizedForStreaming }),
|
|
||||||
...(v.has64bitOffsets === undefined
|
|
||||||
? null
|
|
||||||
: { has64bitOffsets: v.has64bitOffsets }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
...(v.Part === undefined ? null : { part: v.Part }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -294,166 +236,85 @@ export namespace Media$ {
|
|||||||
part: z.array(z.lazy(() => Part$.outboundSchema)).optional(),
|
part: z.array(z.lazy(() => Part$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.id === undefined ? null : { id: v.id }),
|
part: "Part",
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
});
|
||||||
...(v.bitrate === undefined ? null : { bitrate: v.bitrate }),
|
|
||||||
...(v.width === undefined ? null : { width: v.width }),
|
|
||||||
...(v.height === undefined ? null : { height: v.height }),
|
|
||||||
...(v.aspectRatio === undefined ? null : { aspectRatio: v.aspectRatio }),
|
|
||||||
...(v.audioChannels === undefined ? null : { audioChannels: v.audioChannels }),
|
|
||||||
...(v.audioCodec === undefined ? null : { audioCodec: v.audioCodec }),
|
|
||||||
...(v.videoCodec === undefined ? null : { videoCodec: v.videoCodec }),
|
|
||||||
...(v.videoResolution === undefined
|
|
||||||
? null
|
|
||||||
: { videoResolution: v.videoResolution }),
|
|
||||||
...(v.container === undefined ? null : { container: v.container }),
|
|
||||||
...(v.videoFrameRate === undefined ? null : { videoFrameRate: v.videoFrameRate }),
|
|
||||||
...(v.optimizedForStreaming === undefined
|
|
||||||
? null
|
|
||||||
: { optimizedForStreaming: v.optimizedForStreaming }),
|
|
||||||
...(v.has64bitOffsets === undefined
|
|
||||||
? null
|
|
||||||
: { has64bitOffsets: v.has64bitOffsets }),
|
|
||||||
...(v.videoProfile === undefined ? null : { videoProfile: v.videoProfile }),
|
|
||||||
...(v.part === undefined ? null : { Part: v.part }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Genre$ {
|
export namespace Genre$ {
|
||||||
export const inboundSchema: z.ZodType<Genre, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Genre, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Genre> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Genre> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Director$ {
|
export namespace Director$ {
|
||||||
export const inboundSchema: z.ZodType<Director, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Director, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Director> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Director> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Writer$ {
|
export namespace Writer$ {
|
||||||
export const inboundSchema: z.ZodType<Writer, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Writer, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Writer> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Writer> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Country$ {
|
export namespace Country$ {
|
||||||
export const inboundSchema: z.ZodType<Country, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Country, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Country> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Country> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace Role$ {
|
export namespace Role$ {
|
||||||
export const inboundSchema: z.ZodType<Role, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<Role, z.ZodTypeDef, unknown> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
tag?: string | undefined;
|
tag?: string | undefined;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Role> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, Role> = z.object({
|
||||||
.object({
|
tag: z.string().optional(),
|
||||||
tag: z.string().optional(),
|
});
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
...(v.tag === undefined ? null : { tag: v.tag }),
|
|
||||||
};
|
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
@@ -498,52 +359,14 @@ export namespace Metadata$ {
|
|||||||
Role: z.array(z.lazy(() => Role$.inboundSchema)).optional(),
|
Role: z.array(z.lazy(() => Role$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
Media: "media",
|
||||||
...(v.librarySectionID === undefined
|
Genre: "genre",
|
||||||
? null
|
Director: "director",
|
||||||
: { librarySectionID: v.librarySectionID }),
|
Writer: "writer",
|
||||||
...(v.librarySectionTitle === undefined
|
Country: "country",
|
||||||
? null
|
Role: "role",
|
||||||
: { librarySectionTitle: v.librarySectionTitle }),
|
});
|
||||||
...(v.librarySectionUUID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionUUID: v.librarySectionUUID }),
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.studio === undefined ? null : { studio: v.studio }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.contentRating === undefined ? null : { contentRating: v.contentRating }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.rating === undefined ? null : { rating: v.rating }),
|
|
||||||
...(v.audienceRating === undefined ? null : { audienceRating: v.audienceRating }),
|
|
||||||
...(v.year === undefined ? null : { year: v.year }),
|
|
||||||
...(v.tagline === undefined ? null : { tagline: v.tagline }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.originallyAvailableAt === undefined
|
|
||||||
? null
|
|
||||||
: { originallyAvailableAt: v.originallyAvailableAt }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.audienceRatingImage === undefined
|
|
||||||
? null
|
|
||||||
: { audienceRatingImage: v.audienceRatingImage }),
|
|
||||||
...(v.chapterSource === undefined ? null : { chapterSource: v.chapterSource }),
|
|
||||||
...(v.primaryExtraKey === undefined
|
|
||||||
? null
|
|
||||||
: { primaryExtraKey: v.primaryExtraKey }),
|
|
||||||
...(v.ratingImage === undefined ? null : { ratingImage: v.ratingImage }),
|
|
||||||
...(v.Media === undefined ? null : { media: v.Media }),
|
|
||||||
...(v.Genre === undefined ? null : { genre: v.Genre }),
|
|
||||||
...(v.Director === undefined ? null : { director: v.Director }),
|
|
||||||
...(v.Writer === undefined ? null : { writer: v.Writer }),
|
|
||||||
...(v.Country === undefined ? null : { country: v.Country }),
|
|
||||||
...(v.Role === undefined ? null : { role: v.Role }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -620,52 +443,14 @@ export namespace Metadata$ {
|
|||||||
role: z.array(z.lazy(() => Role$.outboundSchema)).optional(),
|
role: z.array(z.lazy(() => Role$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
media: "Media",
|
||||||
...(v.librarySectionID === undefined
|
genre: "Genre",
|
||||||
? null
|
director: "Director",
|
||||||
: { librarySectionID: v.librarySectionID }),
|
writer: "Writer",
|
||||||
...(v.librarySectionTitle === undefined
|
country: "Country",
|
||||||
? null
|
role: "Role",
|
||||||
: { librarySectionTitle: v.librarySectionTitle }),
|
});
|
||||||
...(v.librarySectionUUID === undefined
|
|
||||||
? null
|
|
||||||
: { librarySectionUUID: v.librarySectionUUID }),
|
|
||||||
...(v.ratingKey === undefined ? null : { ratingKey: v.ratingKey }),
|
|
||||||
...(v.key === undefined ? null : { key: v.key }),
|
|
||||||
...(v.guid === undefined ? null : { guid: v.guid }),
|
|
||||||
...(v.studio === undefined ? null : { studio: v.studio }),
|
|
||||||
...(v.type === undefined ? null : { type: v.type }),
|
|
||||||
...(v.title === undefined ? null : { title: v.title }),
|
|
||||||
...(v.contentRating === undefined ? null : { contentRating: v.contentRating }),
|
|
||||||
...(v.summary === undefined ? null : { summary: v.summary }),
|
|
||||||
...(v.rating === undefined ? null : { rating: v.rating }),
|
|
||||||
...(v.audienceRating === undefined ? null : { audienceRating: v.audienceRating }),
|
|
||||||
...(v.year === undefined ? null : { year: v.year }),
|
|
||||||
...(v.tagline === undefined ? null : { tagline: v.tagline }),
|
|
||||||
...(v.thumb === undefined ? null : { thumb: v.thumb }),
|
|
||||||
...(v.art === undefined ? null : { art: v.art }),
|
|
||||||
...(v.duration === undefined ? null : { duration: v.duration }),
|
|
||||||
...(v.originallyAvailableAt === undefined
|
|
||||||
? null
|
|
||||||
: { originallyAvailableAt: v.originallyAvailableAt }),
|
|
||||||
...(v.addedAt === undefined ? null : { addedAt: v.addedAt }),
|
|
||||||
...(v.updatedAt === undefined ? null : { updatedAt: v.updatedAt }),
|
|
||||||
...(v.audienceRatingImage === undefined
|
|
||||||
? null
|
|
||||||
: { audienceRatingImage: v.audienceRatingImage }),
|
|
||||||
...(v.chapterSource === undefined ? null : { chapterSource: v.chapterSource }),
|
|
||||||
...(v.primaryExtraKey === undefined
|
|
||||||
? null
|
|
||||||
: { primaryExtraKey: v.primaryExtraKey }),
|
|
||||||
...(v.ratingImage === undefined ? null : { ratingImage: v.ratingImage }),
|
|
||||||
...(v.media === undefined ? null : { Media: v.media }),
|
|
||||||
...(v.genre === undefined ? null : { Genre: v.genre }),
|
|
||||||
...(v.director === undefined ? null : { Director: v.director }),
|
|
||||||
...(v.writer === undefined ? null : { Writer: v.writer }),
|
|
||||||
...(v.country === undefined ? null : { Country: v.country }),
|
|
||||||
...(v.role === undefined ? null : { Role: v.role }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -682,17 +467,9 @@ export namespace GetRecentlyAddedMediaContainer$ {
|
|||||||
Metadata: z.array(z.lazy(() => Metadata$.inboundSchema)).optional(),
|
Metadata: z.array(z.lazy(() => Metadata$.inboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
Metadata: "metadata",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
});
|
||||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
|
||||||
...(v.mediaTagPrefix === undefined ? null : { mediaTagPrefix: v.mediaTagPrefix }),
|
|
||||||
...(v.mediaTagVersion === undefined
|
|
||||||
? null
|
|
||||||
: { mediaTagVersion: v.mediaTagVersion }),
|
|
||||||
...(v.mixedParents === undefined ? null : { mixedParents: v.mixedParents }),
|
|
||||||
...(v.Metadata === undefined ? null : { metadata: v.Metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -717,19 +494,9 @@ export namespace GetRecentlyAddedMediaContainer$ {
|
|||||||
metadata: z.array(z.lazy(() => Metadata$.outboundSchema)).optional(),
|
metadata: z.array(z.lazy(() => Metadata$.outboundSchema)).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.size === undefined ? null : { size: v.size }),
|
metadata: "Metadata",
|
||||||
...(v.allowSync === undefined ? null : { allowSync: v.allowSync }),
|
});
|
||||||
...(v.identifier === undefined ? null : { identifier: v.identifier }),
|
|
||||||
...(v.mediaTagPrefix === undefined
|
|
||||||
? null
|
|
||||||
: { mediaTagPrefix: v.mediaTagPrefix }),
|
|
||||||
...(v.mediaTagVersion === undefined
|
|
||||||
? null
|
|
||||||
: { mediaTagVersion: v.mediaTagVersion }),
|
|
||||||
...(v.mixedParents === undefined ? null : { mixedParents: v.mixedParents }),
|
|
||||||
...(v.metadata === undefined ? null : { Metadata: v.metadata }),
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -740,9 +507,9 @@ export namespace GetRecentlyAddedResponseBody$ {
|
|||||||
MediaContainer: z.lazy(() => GetRecentlyAddedMediaContainer$.inboundSchema).optional(),
|
MediaContainer: z.lazy(() => GetRecentlyAddedMediaContainer$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.MediaContainer === undefined ? null : { mediaContainer: v.MediaContainer }),
|
MediaContainer: "mediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -754,9 +521,9 @@ export namespace GetRecentlyAddedResponseBody$ {
|
|||||||
mediaContainer: z.lazy(() => GetRecentlyAddedMediaContainer$.outboundSchema).optional(),
|
mediaContainer: z.lazy(() => GetRecentlyAddedMediaContainer$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
...(v.mediaContainer === undefined ? null : { MediaContainer: v.mediaContainer }),
|
mediaContainer: "MediaContainer",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -770,12 +537,11 @@ export namespace GetRecentlyAddedResponse$ {
|
|||||||
object: z.lazy(() => GetRecentlyAddedResponseBody$.inboundSchema).optional(),
|
object: z.lazy(() => GetRecentlyAddedResponseBody$.inboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -795,11 +561,10 @@ export namespace GetRecentlyAddedResponse$ {
|
|||||||
object: z.lazy(() => GetRecentlyAddedResponseBody$.outboundSchema).optional(),
|
object: z.lazy(() => GetRecentlyAddedResponseBody$.outboundSchema).optional(),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
...(v.object === undefined ? null : { object: v.object }),
|
});
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -2,6 +2,7 @@
|
|||||||
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
import { remap as remap$ } from "../../lib/primitives";
|
||||||
import * as z from "zod";
|
import * as z from "zod";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -80,8 +81,8 @@ export namespace Upscale$ {
|
|||||||
|
|
||||||
/** @internal */
|
/** @internal */
|
||||||
export namespace GetResizedPhotoRequest$ {
|
export namespace GetResizedPhotoRequest$ {
|
||||||
export const inboundSchema: z.ZodType<GetResizedPhotoRequest, z.ZodTypeDef, unknown> = z
|
export const inboundSchema: z.ZodType<GetResizedPhotoRequest, z.ZodTypeDef, unknown> = z.object(
|
||||||
.object({
|
{
|
||||||
width: z.number(),
|
width: z.number(),
|
||||||
height: z.number(),
|
height: z.number(),
|
||||||
opacity: z.number().int().default(100),
|
opacity: z.number().int().default(100),
|
||||||
@@ -89,18 +90,8 @@ export namespace GetResizedPhotoRequest$ {
|
|||||||
minSize: MinSize$.inboundSchema,
|
minSize: MinSize$.inboundSchema,
|
||||||
upscale: Upscale$.inboundSchema,
|
upscale: Upscale$.inboundSchema,
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
})
|
}
|
||||||
.transform((v) => {
|
);
|
||||||
return {
|
|
||||||
width: v.width,
|
|
||||||
height: v.height,
|
|
||||||
opacity: v.opacity,
|
|
||||||
blur: v.blur,
|
|
||||||
minSize: v.minSize,
|
|
||||||
upscale: v.upscale,
|
|
||||||
url: v.url,
|
|
||||||
};
|
|
||||||
});
|
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
width: number;
|
width: number;
|
||||||
@@ -112,8 +103,8 @@ export namespace GetResizedPhotoRequest$ {
|
|||||||
url: string;
|
url: string;
|
||||||
};
|
};
|
||||||
|
|
||||||
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetResizedPhotoRequest> = z
|
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, GetResizedPhotoRequest> =
|
||||||
.object({
|
z.object({
|
||||||
width: z.number(),
|
width: z.number(),
|
||||||
height: z.number(),
|
height: z.number(),
|
||||||
opacity: z.number().int().default(100),
|
opacity: z.number().int().default(100),
|
||||||
@@ -121,17 +112,6 @@ export namespace GetResizedPhotoRequest$ {
|
|||||||
minSize: MinSize$.outboundSchema,
|
minSize: MinSize$.outboundSchema,
|
||||||
upscale: Upscale$.outboundSchema,
|
upscale: Upscale$.outboundSchema,
|
||||||
url: z.string(),
|
url: z.string(),
|
||||||
})
|
|
||||||
.transform((v) => {
|
|
||||||
return {
|
|
||||||
width: v.width,
|
|
||||||
height: v.height,
|
|
||||||
opacity: v.opacity,
|
|
||||||
blur: v.blur,
|
|
||||||
minSize: v.minSize,
|
|
||||||
upscale: v.upscale,
|
|
||||||
url: v.url,
|
|
||||||
};
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -144,11 +124,11 @@ export namespace GetResizedPhotoResponse$ {
|
|||||||
RawResponse: z.instanceof(Response),
|
RawResponse: z.instanceof(Response),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
contentType: v.ContentType,
|
ContentType: "contentType",
|
||||||
statusCode: v.StatusCode,
|
StatusCode: "statusCode",
|
||||||
rawResponse: v.RawResponse,
|
RawResponse: "rawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
export type Outbound = {
|
export type Outbound = {
|
||||||
@@ -166,10 +146,10 @@ export namespace GetResizedPhotoResponse$ {
|
|||||||
}),
|
}),
|
||||||
})
|
})
|
||||||
.transform((v) => {
|
.transform((v) => {
|
||||||
return {
|
return remap$(v, {
|
||||||
ContentType: v.contentType,
|
contentType: "ContentType",
|
||||||
StatusCode: v.statusCode,
|
statusCode: "StatusCode",
|
||||||
RawResponse: v.rawResponse,
|
rawResponse: "RawResponse",
|
||||||
};
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user