"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.DeleteResourceByPublicIdsRequestUnion$ = exports.DeleteResourceByPublicIdsRequestUnion$outboundSchema = exports.DeleteResourceByPublicIdsRequestUnion$inboundSchema = exports.DeleteResourceByPublicIdsRequest1$ = exports.DeleteResourceByPublicIdsRequest1$outboundSchema = exports.DeleteResourceByPublicIdsRequest1$inboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType1$ = exports.DeleteResourceByPublicIdsRequestResourceType1$outboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType1$inboundSchema = exports.DeleteResourceByPublicIdsRequest2$ = exports.DeleteResourceByPublicIdsRequest2$outboundSchema = exports.DeleteResourceByPublicIdsRequest2$inboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType2$ = exports.DeleteResourceByPublicIdsRequestResourceType2$outboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType2$inboundSchema = exports.DeleteResourceByPublicIdsRequest3$ = exports.DeleteResourceByPublicIdsRequest3$outboundSchema = exports.DeleteResourceByPublicIdsRequest3$inboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType3$ = exports.DeleteResourceByPublicIdsRequestResourceType3$outboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType3$inboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType1 = exports.DeleteResourceByPublicIdsRequestResourceType2 = exports.DeleteResourceByPublicIdsRequestResourceType3 = void 0;
exports.deleteResourceByPublicIdsRequest3ToJSON = deleteResourceByPublicIdsRequest3ToJSON;
exports.deleteResourceByPublicIdsRequest3FromJSON = deleteResourceByPublicIdsRequest3FromJSON;
exports.deleteResourceByPublicIdsRequest2ToJSON = deleteResourceByPublicIdsRequest2ToJSON;
exports.deleteResourceByPublicIdsRequest2FromJSON = deleteResourceByPublicIdsRequest2FromJSON;
exports.deleteResourceByPublicIdsRequest1ToJSON = deleteResourceByPublicIdsRequest1ToJSON;
exports.deleteResourceByPublicIdsRequest1FromJSON = deleteResourceByPublicIdsRequest1FromJSON;
exports.deleteResourceByPublicIdsRequestUnionToJSON = deleteResourceByPublicIdsRequestUnionToJSON;
exports.deleteResourceByPublicIdsRequestUnionFromJSON = deleteResourceByPublicIdsRequestUnionFromJSON;
const z = __importStar(require("zod"));
const primitives_js_1 = require("../../lib/primitives.js");
const schemas_js_1 = require("../../lib/schemas.js");
/**
 * The type of asset. Relevant as a parameter only when using the SDKs (the resource_type is included in the endpoint URL when using the REST API). Note: use video for all video and audio assets, such as .mp3. Default: image.
 */
exports.DeleteResourceByPublicIdsRequestResourceType3 = {
    Image: "image",
    Video: "video",
    Raw: "raw",
};
/**
 * The type of asset. Relevant as a parameter only when using the SDKs (the resource_type is included in the endpoint URL when using the REST API). Note: use video for all video and audio assets, such as .mp3. Default: image.
 */
exports.DeleteResourceByPublicIdsRequestResourceType2 = {
    Image: "image",
    Video: "video",
    Raw: "raw",
};
/**
 * The type of asset. Relevant as a parameter only when using the SDKs (the resource_type is included in the endpoint URL when using the REST API). Note: use video for all video and audio assets, such as .mp3. Default: image.
 */
exports.DeleteResourceByPublicIdsRequestResourceType1 = {
    Image: "image",
    Video: "video",
    Raw: "raw",
};
/** @internal */
exports.DeleteResourceByPublicIdsRequestResourceType3$inboundSchema = z
    .nativeEnum(exports.DeleteResourceByPublicIdsRequestResourceType3);
/** @internal */
exports.DeleteResourceByPublicIdsRequestResourceType3$outboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType3$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteResourceByPublicIdsRequestResourceType3$;
(function (DeleteResourceByPublicIdsRequestResourceType3$) {
    /** @deprecated use `DeleteResourceByPublicIdsRequestResourceType3$inboundSchema` instead. */
    DeleteResourceByPublicIdsRequestResourceType3$.inboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType3$inboundSchema;
    /** @deprecated use `DeleteResourceByPublicIdsRequestResourceType3$outboundSchema` instead. */
    DeleteResourceByPublicIdsRequestResourceType3$.outboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType3$outboundSchema;
})(DeleteResourceByPublicIdsRequestResourceType3$ || (exports.DeleteResourceByPublicIdsRequestResourceType3$ = DeleteResourceByPublicIdsRequestResourceType3$ = {}));
/** @internal */
exports.DeleteResourceByPublicIdsRequest3$inboundSchema = z.object({
    public_ids: z.array(z.string()).optional(),
    prefix: z.string().optional(),
    all: z.boolean(),
    resource_type: exports.DeleteResourceByPublicIdsRequestResourceType3$inboundSchema
        .default("image"),
    keep_original: z.boolean().default(false),
    invalidate: z.boolean().default(false),
    next_cursor: z.string().optional(),
    transformations: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "public_ids": "publicIds",
        "resource_type": "resourceType",
        "keep_original": "keepOriginal",
        "next_cursor": "nextCursor",
    });
});
/** @internal */
exports.DeleteResourceByPublicIdsRequest3$outboundSchema = z.object({
    publicIds: z.array(z.string()).optional(),
    prefix: z.string().optional(),
    all: z.boolean(),
    resourceType: exports.DeleteResourceByPublicIdsRequestResourceType3$outboundSchema
        .default("image"),
    keepOriginal: z.boolean().default(false),
    invalidate: z.boolean().default(false),
    nextCursor: z.string().optional(),
    transformations: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        publicIds: "public_ids",
        resourceType: "resource_type",
        keepOriginal: "keep_original",
        nextCursor: "next_cursor",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteResourceByPublicIdsRequest3$;
(function (DeleteResourceByPublicIdsRequest3$) {
    /** @deprecated use `DeleteResourceByPublicIdsRequest3$inboundSchema` instead. */
    DeleteResourceByPublicIdsRequest3$.inboundSchema = exports.DeleteResourceByPublicIdsRequest3$inboundSchema;
    /** @deprecated use `DeleteResourceByPublicIdsRequest3$outboundSchema` instead. */
    DeleteResourceByPublicIdsRequest3$.outboundSchema = exports.DeleteResourceByPublicIdsRequest3$outboundSchema;
})(DeleteResourceByPublicIdsRequest3$ || (exports.DeleteResourceByPublicIdsRequest3$ = DeleteResourceByPublicIdsRequest3$ = {}));
function deleteResourceByPublicIdsRequest3ToJSON(deleteResourceByPublicIdsRequest3) {
    return JSON.stringify(exports.DeleteResourceByPublicIdsRequest3$outboundSchema.parse(deleteResourceByPublicIdsRequest3));
}
function deleteResourceByPublicIdsRequest3FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteResourceByPublicIdsRequest3$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteResourceByPublicIdsRequest3' from JSON`);
}
/** @internal */
exports.DeleteResourceByPublicIdsRequestResourceType2$inboundSchema = z
    .nativeEnum(exports.DeleteResourceByPublicIdsRequestResourceType2);
/** @internal */
exports.DeleteResourceByPublicIdsRequestResourceType2$outboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType2$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteResourceByPublicIdsRequestResourceType2$;
(function (DeleteResourceByPublicIdsRequestResourceType2$) {
    /** @deprecated use `DeleteResourceByPublicIdsRequestResourceType2$inboundSchema` instead. */
    DeleteResourceByPublicIdsRequestResourceType2$.inboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType2$inboundSchema;
    /** @deprecated use `DeleteResourceByPublicIdsRequestResourceType2$outboundSchema` instead. */
    DeleteResourceByPublicIdsRequestResourceType2$.outboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType2$outboundSchema;
})(DeleteResourceByPublicIdsRequestResourceType2$ || (exports.DeleteResourceByPublicIdsRequestResourceType2$ = DeleteResourceByPublicIdsRequestResourceType2$ = {}));
/** @internal */
exports.DeleteResourceByPublicIdsRequest2$inboundSchema = z.object({
    public_ids: z.array(z.string()).optional(),
    prefix: z.string(),
    all: z.boolean().optional(),
    resource_type: exports.DeleteResourceByPublicIdsRequestResourceType2$inboundSchema
        .default("image"),
    keep_original: z.boolean().default(false),
    invalidate: z.boolean().default(false),
    next_cursor: z.string().optional(),
    transformations: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "public_ids": "publicIds",
        "resource_type": "resourceType",
        "keep_original": "keepOriginal",
        "next_cursor": "nextCursor",
    });
});
/** @internal */
exports.DeleteResourceByPublicIdsRequest2$outboundSchema = z.object({
    publicIds: z.array(z.string()).optional(),
    prefix: z.string(),
    all: z.boolean().optional(),
    resourceType: exports.DeleteResourceByPublicIdsRequestResourceType2$outboundSchema
        .default("image"),
    keepOriginal: z.boolean().default(false),
    invalidate: z.boolean().default(false),
    nextCursor: z.string().optional(),
    transformations: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        publicIds: "public_ids",
        resourceType: "resource_type",
        keepOriginal: "keep_original",
        nextCursor: "next_cursor",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteResourceByPublicIdsRequest2$;
(function (DeleteResourceByPublicIdsRequest2$) {
    /** @deprecated use `DeleteResourceByPublicIdsRequest2$inboundSchema` instead. */
    DeleteResourceByPublicIdsRequest2$.inboundSchema = exports.DeleteResourceByPublicIdsRequest2$inboundSchema;
    /** @deprecated use `DeleteResourceByPublicIdsRequest2$outboundSchema` instead. */
    DeleteResourceByPublicIdsRequest2$.outboundSchema = exports.DeleteResourceByPublicIdsRequest2$outboundSchema;
})(DeleteResourceByPublicIdsRequest2$ || (exports.DeleteResourceByPublicIdsRequest2$ = DeleteResourceByPublicIdsRequest2$ = {}));
function deleteResourceByPublicIdsRequest2ToJSON(deleteResourceByPublicIdsRequest2) {
    return JSON.stringify(exports.DeleteResourceByPublicIdsRequest2$outboundSchema.parse(deleteResourceByPublicIdsRequest2));
}
function deleteResourceByPublicIdsRequest2FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteResourceByPublicIdsRequest2$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteResourceByPublicIdsRequest2' from JSON`);
}
/** @internal */
exports.DeleteResourceByPublicIdsRequestResourceType1$inboundSchema = z
    .nativeEnum(exports.DeleteResourceByPublicIdsRequestResourceType1);
/** @internal */
exports.DeleteResourceByPublicIdsRequestResourceType1$outboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType1$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteResourceByPublicIdsRequestResourceType1$;
(function (DeleteResourceByPublicIdsRequestResourceType1$) {
    /** @deprecated use `DeleteResourceByPublicIdsRequestResourceType1$inboundSchema` instead. */
    DeleteResourceByPublicIdsRequestResourceType1$.inboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType1$inboundSchema;
    /** @deprecated use `DeleteResourceByPublicIdsRequestResourceType1$outboundSchema` instead. */
    DeleteResourceByPublicIdsRequestResourceType1$.outboundSchema = exports.DeleteResourceByPublicIdsRequestResourceType1$outboundSchema;
})(DeleteResourceByPublicIdsRequestResourceType1$ || (exports.DeleteResourceByPublicIdsRequestResourceType1$ = DeleteResourceByPublicIdsRequestResourceType1$ = {}));
/** @internal */
exports.DeleteResourceByPublicIdsRequest1$inboundSchema = z.object({
    public_ids: z.array(z.string()),
    prefix: z.string().optional(),
    all: z.boolean().optional(),
    resource_type: exports.DeleteResourceByPublicIdsRequestResourceType1$inboundSchema
        .default("image"),
    keep_original: z.boolean().default(false),
    invalidate: z.boolean().default(false),
    next_cursor: z.string().optional(),
    transformations: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "public_ids": "publicIds",
        "resource_type": "resourceType",
        "keep_original": "keepOriginal",
        "next_cursor": "nextCursor",
    });
});
/** @internal */
exports.DeleteResourceByPublicIdsRequest1$outboundSchema = z.object({
    publicIds: z.array(z.string()),
    prefix: z.string().optional(),
    all: z.boolean().optional(),
    resourceType: exports.DeleteResourceByPublicIdsRequestResourceType1$outboundSchema
        .default("image"),
    keepOriginal: z.boolean().default(false),
    invalidate: z.boolean().default(false),
    nextCursor: z.string().optional(),
    transformations: z.string().optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        publicIds: "public_ids",
        resourceType: "resource_type",
        keepOriginal: "keep_original",
        nextCursor: "next_cursor",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteResourceByPublicIdsRequest1$;
(function (DeleteResourceByPublicIdsRequest1$) {
    /** @deprecated use `DeleteResourceByPublicIdsRequest1$inboundSchema` instead. */
    DeleteResourceByPublicIdsRequest1$.inboundSchema = exports.DeleteResourceByPublicIdsRequest1$inboundSchema;
    /** @deprecated use `DeleteResourceByPublicIdsRequest1$outboundSchema` instead. */
    DeleteResourceByPublicIdsRequest1$.outboundSchema = exports.DeleteResourceByPublicIdsRequest1$outboundSchema;
})(DeleteResourceByPublicIdsRequest1$ || (exports.DeleteResourceByPublicIdsRequest1$ = DeleteResourceByPublicIdsRequest1$ = {}));
function deleteResourceByPublicIdsRequest1ToJSON(deleteResourceByPublicIdsRequest1) {
    return JSON.stringify(exports.DeleteResourceByPublicIdsRequest1$outboundSchema.parse(deleteResourceByPublicIdsRequest1));
}
function deleteResourceByPublicIdsRequest1FromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteResourceByPublicIdsRequest1$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteResourceByPublicIdsRequest1' from JSON`);
}
/** @internal */
exports.DeleteResourceByPublicIdsRequestUnion$inboundSchema = z.union([
    z.lazy(() => exports.DeleteResourceByPublicIdsRequest1$inboundSchema),
    z.lazy(() => exports.DeleteResourceByPublicIdsRequest2$inboundSchema),
    z.lazy(() => exports.DeleteResourceByPublicIdsRequest3$inboundSchema),
]);
/** @internal */
exports.DeleteResourceByPublicIdsRequestUnion$outboundSchema = z.union([
    z.lazy(() => exports.DeleteResourceByPublicIdsRequest1$outboundSchema),
    z.lazy(() => exports.DeleteResourceByPublicIdsRequest2$outboundSchema),
    z.lazy(() => exports.DeleteResourceByPublicIdsRequest3$outboundSchema),
]);
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var DeleteResourceByPublicIdsRequestUnion$;
(function (DeleteResourceByPublicIdsRequestUnion$) {
    /** @deprecated use `DeleteResourceByPublicIdsRequestUnion$inboundSchema` instead. */
    DeleteResourceByPublicIdsRequestUnion$.inboundSchema = exports.DeleteResourceByPublicIdsRequestUnion$inboundSchema;
    /** @deprecated use `DeleteResourceByPublicIdsRequestUnion$outboundSchema` instead. */
    DeleteResourceByPublicIdsRequestUnion$.outboundSchema = exports.DeleteResourceByPublicIdsRequestUnion$outboundSchema;
})(DeleteResourceByPublicIdsRequestUnion$ || (exports.DeleteResourceByPublicIdsRequestUnion$ = DeleteResourceByPublicIdsRequestUnion$ = {}));
function deleteResourceByPublicIdsRequestUnionToJSON(deleteResourceByPublicIdsRequestUnion) {
    return JSON.stringify(exports.DeleteResourceByPublicIdsRequestUnion$outboundSchema.parse(deleteResourceByPublicIdsRequestUnion));
}
function deleteResourceByPublicIdsRequestUnionFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DeleteResourceByPublicIdsRequestUnion$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DeleteResourceByPublicIdsRequestUnion' from JSON`);
}
//# sourceMappingURL=deleteresourcebypublicidsrequestunion.js.map