mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-11 04:20:58 +00:00
ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.656.1
This commit is contained in:
@@ -2,7 +2,7 @@
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import * as z from "zod";
|
||||
import * as z from "zod/v3";
|
||||
import { remap as remap$ } from "../../../lib/primitives.js";
|
||||
import { safeParse } from "../../../lib/schemas.js";
|
||||
import { Result as SafeParseResult } from "../../types/fp.js";
|
||||
@@ -127,149 +127,6 @@ export type DeleteHistoryResponse = {
|
||||
headers: { [k: string]: Array<string> };
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
export const DeleteHistoryGlobals$inboundSchema: z.ZodType<
|
||||
DeleteHistoryGlobals,
|
||||
z.ZodTypeDef,
|
||||
unknown
|
||||
> = z.object({
|
||||
accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml),
|
||||
"Client-Identifier": z.string().optional(),
|
||||
Product: z.string().optional(),
|
||||
Version: z.string().optional(),
|
||||
Platform: z.string().optional(),
|
||||
"Platform-Version": z.string().optional(),
|
||||
Device: z.string().optional(),
|
||||
Model: z.string().optional(),
|
||||
"Device-Vendor": z.string().optional(),
|
||||
"Device-Name": z.string().optional(),
|
||||
Marketplace: z.string().optional(),
|
||||
}).transform((v) => {
|
||||
return remap$(v, {
|
||||
"Client-Identifier": "clientIdentifier",
|
||||
"Product": "product",
|
||||
"Version": "version",
|
||||
"Platform": "platform",
|
||||
"Platform-Version": "platformVersion",
|
||||
"Device": "device",
|
||||
"Model": "model",
|
||||
"Device-Vendor": "deviceVendor",
|
||||
"Device-Name": "deviceName",
|
||||
"Marketplace": "marketplace",
|
||||
});
|
||||
});
|
||||
|
||||
/** @internal */
|
||||
export type DeleteHistoryGlobals$Outbound = {
|
||||
accepts: string;
|
||||
"Client-Identifier"?: string | undefined;
|
||||
Product?: string | undefined;
|
||||
Version?: string | undefined;
|
||||
Platform?: string | undefined;
|
||||
"Platform-Version"?: string | undefined;
|
||||
Device?: string | undefined;
|
||||
Model?: string | undefined;
|
||||
"Device-Vendor"?: string | undefined;
|
||||
"Device-Name"?: string | undefined;
|
||||
Marketplace?: string | undefined;
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
export const DeleteHistoryGlobals$outboundSchema: z.ZodType<
|
||||
DeleteHistoryGlobals$Outbound,
|
||||
z.ZodTypeDef,
|
||||
DeleteHistoryGlobals
|
||||
> = z.object({
|
||||
accepts: shared.Accepts$outboundSchema.default(shared.Accepts.ApplicationXml),
|
||||
clientIdentifier: z.string().optional(),
|
||||
product: z.string().optional(),
|
||||
version: z.string().optional(),
|
||||
platform: z.string().optional(),
|
||||
platformVersion: z.string().optional(),
|
||||
device: z.string().optional(),
|
||||
model: z.string().optional(),
|
||||
deviceVendor: z.string().optional(),
|
||||
deviceName: z.string().optional(),
|
||||
marketplace: z.string().optional(),
|
||||
}).transform((v) => {
|
||||
return remap$(v, {
|
||||
clientIdentifier: "Client-Identifier",
|
||||
product: "Product",
|
||||
version: "Version",
|
||||
platform: "Platform",
|
||||
platformVersion: "Platform-Version",
|
||||
device: "Device",
|
||||
model: "Model",
|
||||
deviceVendor: "Device-Vendor",
|
||||
deviceName: "Device-Name",
|
||||
marketplace: "Marketplace",
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
||||
*/
|
||||
export namespace DeleteHistoryGlobals$ {
|
||||
/** @deprecated use `DeleteHistoryGlobals$inboundSchema` instead. */
|
||||
export const inboundSchema = DeleteHistoryGlobals$inboundSchema;
|
||||
/** @deprecated use `DeleteHistoryGlobals$outboundSchema` instead. */
|
||||
export const outboundSchema = DeleteHistoryGlobals$outboundSchema;
|
||||
/** @deprecated use `DeleteHistoryGlobals$Outbound` instead. */
|
||||
export type Outbound = DeleteHistoryGlobals$Outbound;
|
||||
}
|
||||
|
||||
export function deleteHistoryGlobalsToJSON(
|
||||
deleteHistoryGlobals: DeleteHistoryGlobals,
|
||||
): string {
|
||||
return JSON.stringify(
|
||||
DeleteHistoryGlobals$outboundSchema.parse(deleteHistoryGlobals),
|
||||
);
|
||||
}
|
||||
|
||||
export function deleteHistoryGlobalsFromJSON(
|
||||
jsonString: string,
|
||||
): SafeParseResult<DeleteHistoryGlobals, SDKValidationError> {
|
||||
return safeParse(
|
||||
jsonString,
|
||||
(x) => DeleteHistoryGlobals$inboundSchema.parse(JSON.parse(x)),
|
||||
`Failed to parse 'DeleteHistoryGlobals' from JSON`,
|
||||
);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const DeleteHistoryRequest$inboundSchema: z.ZodType<
|
||||
DeleteHistoryRequest,
|
||||
z.ZodTypeDef,
|
||||
unknown
|
||||
> = z.object({
|
||||
accepts: shared.Accepts$inboundSchema.default(shared.Accepts.ApplicationXml),
|
||||
"Client-Identifier": z.string().optional(),
|
||||
Product: z.string().optional(),
|
||||
Version: z.string().optional(),
|
||||
Platform: z.string().optional(),
|
||||
"Platform-Version": z.string().optional(),
|
||||
Device: z.string().optional(),
|
||||
Model: z.string().optional(),
|
||||
"Device-Vendor": z.string().optional(),
|
||||
"Device-Name": z.string().optional(),
|
||||
Marketplace: z.string().optional(),
|
||||
historyId: z.number().int(),
|
||||
}).transform((v) => {
|
||||
return remap$(v, {
|
||||
"Client-Identifier": "clientIdentifier",
|
||||
"Product": "product",
|
||||
"Version": "version",
|
||||
"Platform": "platform",
|
||||
"Platform-Version": "platformVersion",
|
||||
"Device": "device",
|
||||
"Model": "model",
|
||||
"Device-Vendor": "deviceVendor",
|
||||
"Device-Name": "deviceName",
|
||||
"Marketplace": "marketplace",
|
||||
});
|
||||
});
|
||||
|
||||
/** @internal */
|
||||
export type DeleteHistoryRequest$Outbound = {
|
||||
accepts: string;
|
||||
@@ -319,19 +176,6 @@ export const DeleteHistoryRequest$outboundSchema: z.ZodType<
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
||||
*/
|
||||
export namespace DeleteHistoryRequest$ {
|
||||
/** @deprecated use `DeleteHistoryRequest$inboundSchema` instead. */
|
||||
export const inboundSchema = DeleteHistoryRequest$inboundSchema;
|
||||
/** @deprecated use `DeleteHistoryRequest$outboundSchema` instead. */
|
||||
export const outboundSchema = DeleteHistoryRequest$outboundSchema;
|
||||
/** @deprecated use `DeleteHistoryRequest$Outbound` instead. */
|
||||
export type Outbound = DeleteHistoryRequest$Outbound;
|
||||
}
|
||||
|
||||
export function deleteHistoryRequestToJSON(
|
||||
deleteHistoryRequest: DeleteHistoryRequest,
|
||||
): string {
|
||||
@@ -340,16 +184,6 @@ export function deleteHistoryRequestToJSON(
|
||||
);
|
||||
}
|
||||
|
||||
export function deleteHistoryRequestFromJSON(
|
||||
jsonString: string,
|
||||
): SafeParseResult<DeleteHistoryRequest, SDKValidationError> {
|
||||
return safeParse(
|
||||
jsonString,
|
||||
(x) => DeleteHistoryRequest$inboundSchema.parse(JSON.parse(x)),
|
||||
`Failed to parse 'DeleteHistoryRequest' from JSON`,
|
||||
);
|
||||
}
|
||||
|
||||
/** @internal */
|
||||
export const DeleteHistoryResponse$inboundSchema: z.ZodType<
|
||||
DeleteHistoryResponse,
|
||||
@@ -360,7 +194,7 @@ export const DeleteHistoryResponse$inboundSchema: z.ZodType<
|
||||
StatusCode: z.number().int(),
|
||||
RawResponse: z.instanceof(Response),
|
||||
MediaContainer: shared.MediaContainer$inboundSchema.optional(),
|
||||
Headers: z.record(z.array(z.string())),
|
||||
Headers: z.record(z.array(z.string())).default({}),
|
||||
}).transform((v) => {
|
||||
return remap$(v, {
|
||||
"ContentType": "contentType",
|
||||
@@ -371,59 +205,6 @@ export const DeleteHistoryResponse$inboundSchema: z.ZodType<
|
||||
});
|
||||
});
|
||||
|
||||
/** @internal */
|
||||
export type DeleteHistoryResponse$Outbound = {
|
||||
ContentType: string;
|
||||
StatusCode: number;
|
||||
RawResponse: never;
|
||||
MediaContainer?: shared.MediaContainer$Outbound | undefined;
|
||||
Headers: { [k: string]: Array<string> };
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
export const DeleteHistoryResponse$outboundSchema: z.ZodType<
|
||||
DeleteHistoryResponse$Outbound,
|
||||
z.ZodTypeDef,
|
||||
DeleteHistoryResponse
|
||||
> = z.object({
|
||||
contentType: z.string(),
|
||||
statusCode: z.number().int(),
|
||||
rawResponse: z.instanceof(Response).transform(() => {
|
||||
throw new Error("Response cannot be serialized");
|
||||
}),
|
||||
mediaContainer: shared.MediaContainer$outboundSchema.optional(),
|
||||
headers: z.record(z.array(z.string())),
|
||||
}).transform((v) => {
|
||||
return remap$(v, {
|
||||
contentType: "ContentType",
|
||||
statusCode: "StatusCode",
|
||||
rawResponse: "RawResponse",
|
||||
mediaContainer: "MediaContainer",
|
||||
headers: "Headers",
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
||||
*/
|
||||
export namespace DeleteHistoryResponse$ {
|
||||
/** @deprecated use `DeleteHistoryResponse$inboundSchema` instead. */
|
||||
export const inboundSchema = DeleteHistoryResponse$inboundSchema;
|
||||
/** @deprecated use `DeleteHistoryResponse$outboundSchema` instead. */
|
||||
export const outboundSchema = DeleteHistoryResponse$outboundSchema;
|
||||
/** @deprecated use `DeleteHistoryResponse$Outbound` instead. */
|
||||
export type Outbound = DeleteHistoryResponse$Outbound;
|
||||
}
|
||||
|
||||
export function deleteHistoryResponseToJSON(
|
||||
deleteHistoryResponse: DeleteHistoryResponse,
|
||||
): string {
|
||||
return JSON.stringify(
|
||||
DeleteHistoryResponse$outboundSchema.parse(deleteHistoryResponse),
|
||||
);
|
||||
}
|
||||
|
||||
export function deleteHistoryResponseFromJSON(
|
||||
jsonString: string,
|
||||
): SafeParseResult<DeleteHistoryResponse, SDKValidationError> {
|
||||
|
||||
Reference in New Issue
Block a user