mirror of
https://github.com/LukeHagar/plexjs.git
synced 2025-12-09 12:37:46 +00:00
Normalized imports, regenerated
This commit is contained in:
81
src/sdk/models/operations/startalltasks.ts
Normal file
81
src/sdk/models/operations/startalltasks.ts
Normal file
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
||||
*/
|
||||
|
||||
import { remap as remap$ } from "../../../lib/primitives.js";
|
||||
import * as z from "zod";
|
||||
|
||||
export type StartAllTasksResponse = {
|
||||
/**
|
||||
* HTTP response content type for this operation
|
||||
*/
|
||||
contentType: string;
|
||||
/**
|
||||
* HTTP response status code for this operation
|
||||
*/
|
||||
statusCode: number;
|
||||
/**
|
||||
* Raw HTTP response; suitable for custom response parsing
|
||||
*/
|
||||
rawResponse: Response;
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
export const StartAllTasksResponse$inboundSchema: z.ZodType<
|
||||
StartAllTasksResponse,
|
||||
z.ZodTypeDef,
|
||||
unknown
|
||||
> = z
|
||||
.object({
|
||||
ContentType: z.string(),
|
||||
StatusCode: z.number().int(),
|
||||
RawResponse: z.instanceof(Response),
|
||||
})
|
||||
.transform((v) => {
|
||||
return remap$(v, {
|
||||
ContentType: "contentType",
|
||||
StatusCode: "statusCode",
|
||||
RawResponse: "rawResponse",
|
||||
});
|
||||
});
|
||||
|
||||
/** @internal */
|
||||
export type StartAllTasksResponse$Outbound = {
|
||||
ContentType: string;
|
||||
StatusCode: number;
|
||||
RawResponse: never;
|
||||
};
|
||||
|
||||
/** @internal */
|
||||
export const StartAllTasksResponse$outboundSchema: z.ZodType<
|
||||
StartAllTasksResponse$Outbound,
|
||||
z.ZodTypeDef,
|
||||
StartAllTasksResponse
|
||||
> = z
|
||||
.object({
|
||||
contentType: z.string(),
|
||||
statusCode: z.number().int(),
|
||||
rawResponse: z.instanceof(Response).transform(() => {
|
||||
throw new Error("Response cannot be serialized");
|
||||
}),
|
||||
})
|
||||
.transform((v) => {
|
||||
return remap$(v, {
|
||||
contentType: "ContentType",
|
||||
statusCode: "StatusCode",
|
||||
rawResponse: "RawResponse",
|
||||
});
|
||||
});
|
||||
|
||||
/**
|
||||
* @internal
|
||||
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
||||
*/
|
||||
export namespace StartAllTasksResponse$ {
|
||||
/** @deprecated use `StartAllTasksResponse$inboundSchema` instead. */
|
||||
export const inboundSchema = StartAllTasksResponse$inboundSchema;
|
||||
/** @deprecated use `StartAllTasksResponse$outboundSchema` instead. */
|
||||
export const outboundSchema = StartAllTasksResponse$outboundSchema;
|
||||
/** @deprecated use `StartAllTasksResponse$Outbound` instead. */
|
||||
export type Outbound = StartAllTasksResponse$Outbound;
|
||||
}
|
||||
Reference in New Issue
Block a user