ci: regenerated with OpenAPI Doc , Speakeasy CLI 1.300.0

This commit is contained in:
speakeasybot
2024-06-06 00:30:16 +00:00
parent 5a3c016a7f
commit 738f7c347d
132 changed files with 4535 additions and 9537 deletions

View File

@@ -2,6 +2,7 @@
* Code generated by Speakeasy (https://speakeasyapi.dev). DO NOT EDIT.
*/
import { remap as remap$ } from "../../lib/primitives";
import * as z from "zod";
export type StartUniversalTranscodeErrors = {
@@ -56,18 +57,11 @@ export class StartUniversalTranscodeResponseBody extends Error {
/** @internal */
export namespace StartUniversalTranscodeErrors$ {
export const inboundSchema: z.ZodType<StartUniversalTranscodeErrors, z.ZodTypeDef, unknown> = z
.object({
export const inboundSchema: z.ZodType<StartUniversalTranscodeErrors, z.ZodTypeDef, unknown> =
z.object({
code: z.number().optional(),
message: z.string().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 = {
@@ -77,19 +71,11 @@ export namespace StartUniversalTranscodeErrors$ {
};
export const outboundSchema: z.ZodType<Outbound, z.ZodTypeDef, StartUniversalTranscodeErrors> =
z
.object({
code: z.number().optional(),
message: z.string().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 }),
};
});
z.object({
code: z.number().optional(),
message: z.string().optional(),
status: z.number().optional(),
});
}
/** @internal */
@@ -104,10 +90,11 @@ export namespace StartUniversalTranscodeResponseBody$ {
RawResponse: z.instanceof(Response).optional(),
})
.transform((v) => {
return new StartUniversalTranscodeResponseBody({
...(v.errors === undefined ? null : { errors: v.errors }),
...(v.RawResponse === undefined ? null : { rawResponse: v.RawResponse }),
const remapped = remap$(v, {
RawResponse: "rawResponse",
});
return new StartUniversalTranscodeResponseBody(remapped);
});
export type Outbound = {
@@ -136,10 +123,9 @@ export namespace StartUniversalTranscodeResponseBody$ {
.optional(),
})
.transform((v) => {
return {
...(v.errors === undefined ? null : { errors: v.errors }),
...(v.rawResponse === undefined ? null : { RawResponse: v.rawResponse }),
};
return remap$(v, {
rawResponse: "RawResponse",
});
})
);
}