"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.StackoneListPlatformLogsResponse$ = exports.StackoneListPlatformLogsResponse$outboundSchema = exports.StackoneListPlatformLogsResponse$inboundSchema = exports.StackoneListPlatformLogsRequest$ = exports.StackoneListPlatformLogsRequest$outboundSchema = exports.StackoneListPlatformLogsRequest$inboundSchema = exports.StackoneListPlatformLogsQueryParamOrderDirection$ = exports.StackoneListPlatformLogsQueryParamOrderDirection$outboundSchema = exports.StackoneListPlatformLogsQueryParamOrderDirection$inboundSchema = exports.StackoneListPlatformLogsQueryParamOrderBy$ = exports.StackoneListPlatformLogsQueryParamOrderBy$outboundSchema = exports.StackoneListPlatformLogsQueryParamOrderBy$inboundSchema = exports.StackoneListPlatformLogsQueryParamFilter$ = exports.StackoneListPlatformLogsQueryParamFilter$outboundSchema = exports.StackoneListPlatformLogsQueryParamFilter$inboundSchema = exports.StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$ = exports.StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$outboundSchema = exports.StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$inboundSchema = exports.StackoneListPlatformLogsQueryParamRequestLogsOrderBy$ = exports.StackoneListPlatformLogsQueryParamRequestLogsOrderBy$outboundSchema = exports.StackoneListPlatformLogsQueryParamRequestLogsOrderBy$inboundSchema = exports.StackoneListPlatformLogsQueryParamOrderDirection = exports.StackoneListPlatformLogsQueryParamOrderBy = exports.StackoneListPlatformLogsQueryParamRequestLogsOrderDirection = exports.StackoneListPlatformLogsQueryParamRequestLogsOrderBy = void 0;
exports.stackoneListPlatformLogsQueryParamFilterToJSON = stackoneListPlatformLogsQueryParamFilterToJSON;
exports.stackoneListPlatformLogsQueryParamFilterFromJSON = stackoneListPlatformLogsQueryParamFilterFromJSON;
exports.stackoneListPlatformLogsRequestToJSON = stackoneListPlatformLogsRequestToJSON;
exports.stackoneListPlatformLogsRequestFromJSON = stackoneListPlatformLogsRequestFromJSON;
exports.stackoneListPlatformLogsResponseToJSON = stackoneListPlatformLogsResponseToJSON;
exports.stackoneListPlatformLogsResponseFromJSON = stackoneListPlatformLogsResponseFromJSON;
const z = __importStar(require("zod/v3"));
const primitives_js_1 = require("../../../lib/primitives.js");
const schemas_js_1 = require("../../../lib/schemas.js");
const shared = __importStar(require("../shared/index.js"));
/**
 * The field to order the results by.
 */
var StackoneListPlatformLogsQueryParamRequestLogsOrderBy;
(function (StackoneListPlatformLogsQueryParamRequestLogsOrderBy) {
    StackoneListPlatformLogsQueryParamRequestLogsOrderBy["Provider"] = "provider";
    StackoneListPlatformLogsQueryParamRequestLogsOrderBy["Service"] = "service";
    StackoneListPlatformLogsQueryParamRequestLogsOrderBy["Status"] = "status";
    StackoneListPlatformLogsQueryParamRequestLogsOrderBy["EventDatetime"] = "eventDatetime";
    StackoneListPlatformLogsQueryParamRequestLogsOrderBy["Duration"] = "duration";
})(StackoneListPlatformLogsQueryParamRequestLogsOrderBy || (exports.StackoneListPlatformLogsQueryParamRequestLogsOrderBy = StackoneListPlatformLogsQueryParamRequestLogsOrderBy = {}));
/**
 * The direction to order the results by.
 */
var StackoneListPlatformLogsQueryParamRequestLogsOrderDirection;
(function (StackoneListPlatformLogsQueryParamRequestLogsOrderDirection) {
    StackoneListPlatformLogsQueryParamRequestLogsOrderDirection["Asc"] = "asc";
    StackoneListPlatformLogsQueryParamRequestLogsOrderDirection["Desc"] = "desc";
})(StackoneListPlatformLogsQueryParamRequestLogsOrderDirection || (exports.StackoneListPlatformLogsQueryParamRequestLogsOrderDirection = StackoneListPlatformLogsQueryParamRequestLogsOrderDirection = {}));
/**
 * The field to order the results by.
 */
var StackoneListPlatformLogsQueryParamOrderBy;
(function (StackoneListPlatformLogsQueryParamOrderBy) {
    StackoneListPlatformLogsQueryParamOrderBy["Provider"] = "provider";
    StackoneListPlatformLogsQueryParamOrderBy["Service"] = "service";
    StackoneListPlatformLogsQueryParamOrderBy["Status"] = "status";
    StackoneListPlatformLogsQueryParamOrderBy["EventDatetime"] = "eventDatetime";
    StackoneListPlatformLogsQueryParamOrderBy["Duration"] = "duration";
})(StackoneListPlatformLogsQueryParamOrderBy || (exports.StackoneListPlatformLogsQueryParamOrderBy = StackoneListPlatformLogsQueryParamOrderBy = {}));
/**
 * The direction to order the results by.
 */
var StackoneListPlatformLogsQueryParamOrderDirection;
(function (StackoneListPlatformLogsQueryParamOrderDirection) {
    StackoneListPlatformLogsQueryParamOrderDirection["Asc"] = "asc";
    StackoneListPlatformLogsQueryParamOrderDirection["Desc"] = "desc";
})(StackoneListPlatformLogsQueryParamOrderDirection || (exports.StackoneListPlatformLogsQueryParamOrderDirection = StackoneListPlatformLogsQueryParamOrderDirection = {}));
/** @internal */
exports.StackoneListPlatformLogsQueryParamRequestLogsOrderBy$inboundSchema = z.nativeEnum(StackoneListPlatformLogsQueryParamRequestLogsOrderBy);
/** @internal */
exports.StackoneListPlatformLogsQueryParamRequestLogsOrderBy$outboundSchema = exports.StackoneListPlatformLogsQueryParamRequestLogsOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var StackoneListPlatformLogsQueryParamRequestLogsOrderBy$;
(function (StackoneListPlatformLogsQueryParamRequestLogsOrderBy$) {
    /** @deprecated use `StackoneListPlatformLogsQueryParamRequestLogsOrderBy$inboundSchema` instead. */
    StackoneListPlatformLogsQueryParamRequestLogsOrderBy$.inboundSchema = exports.StackoneListPlatformLogsQueryParamRequestLogsOrderBy$inboundSchema;
    /** @deprecated use `StackoneListPlatformLogsQueryParamRequestLogsOrderBy$outboundSchema` instead. */
    StackoneListPlatformLogsQueryParamRequestLogsOrderBy$.outboundSchema = exports.StackoneListPlatformLogsQueryParamRequestLogsOrderBy$outboundSchema;
})(StackoneListPlatformLogsQueryParamRequestLogsOrderBy$ || (exports.StackoneListPlatformLogsQueryParamRequestLogsOrderBy$ = StackoneListPlatformLogsQueryParamRequestLogsOrderBy$ = {}));
/** @internal */
exports.StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$inboundSchema = z.nativeEnum(StackoneListPlatformLogsQueryParamRequestLogsOrderDirection);
/** @internal */
exports.StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$outboundSchema = exports.StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$;
(function (StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$) {
    /** @deprecated use `StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$inboundSchema` instead. */
    StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$.inboundSchema = exports.StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$inboundSchema;
    /** @deprecated use `StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$outboundSchema` instead. */
    StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$.outboundSchema = exports.StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$outboundSchema;
})(StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$ || (exports.StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$ = StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$ = {}));
/** @internal */
exports.StackoneListPlatformLogsQueryParamFilter$inboundSchema = z.object({
    account_ids: z.nullable(z.string()).optional(),
    actions: z.nullable(z.string()).optional(),
    categories: z.nullable(z.string()).optional(),
    end_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    http_methods: z.nullable(z.string()).optional(),
    order_by: z.nullable(exports.StackoneListPlatformLogsQueryParamRequestLogsOrderBy$inboundSchema).optional(),
    order_direction: z.nullable(exports.StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$inboundSchema).optional(),
    request_ids: z.nullable(z.string()).optional(),
    resources: z.nullable(z.string()).optional(),
    source_ids: z.nullable(z.string()).optional(),
    source_types: z.nullable(z.string()).optional(),
    source_values: z.nullable(z.string()).optional(),
    start_date: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))).optional(),
    status_codes: z.nullable(z.string()).optional(),
    success: z.nullable(z.boolean()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "account_ids": "accountIds",
        "end_date": "endDate",
        "http_methods": "httpMethods",
        "order_by": "orderBy",
        "order_direction": "orderDirection",
        "request_ids": "requestIds",
        "source_ids": "sourceIds",
        "source_types": "sourceTypes",
        "source_values": "sourceValues",
        "start_date": "startDate",
        "status_codes": "statusCodes",
    });
});
/** @internal */
exports.StackoneListPlatformLogsQueryParamFilter$outboundSchema = z.object({
    accountIds: z.nullable(z.string()).optional(),
    actions: z.nullable(z.string()).optional(),
    categories: z.nullable(z.string()).optional(),
    endDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    httpMethods: z.nullable(z.string()).optional(),
    orderBy: z.nullable(exports.StackoneListPlatformLogsQueryParamRequestLogsOrderBy$outboundSchema).optional(),
    orderDirection: z.nullable(exports.StackoneListPlatformLogsQueryParamRequestLogsOrderDirection$outboundSchema).optional(),
    requestIds: z.nullable(z.string()).optional(),
    resources: z.nullable(z.string()).optional(),
    sourceIds: z.nullable(z.string()).optional(),
    sourceTypes: z.nullable(z.string()).optional(),
    sourceValues: z.nullable(z.string()).optional(),
    startDate: z.nullable(z.date().transform(v => v.toISOString())).optional(),
    statusCodes: z.nullable(z.string()).optional(),
    success: z.nullable(z.boolean()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        accountIds: "account_ids",
        endDate: "end_date",
        httpMethods: "http_methods",
        orderBy: "order_by",
        orderDirection: "order_direction",
        requestIds: "request_ids",
        sourceIds: "source_ids",
        sourceTypes: "source_types",
        sourceValues: "source_values",
        startDate: "start_date",
        statusCodes: "status_codes",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var StackoneListPlatformLogsQueryParamFilter$;
(function (StackoneListPlatformLogsQueryParamFilter$) {
    /** @deprecated use `StackoneListPlatformLogsQueryParamFilter$inboundSchema` instead. */
    StackoneListPlatformLogsQueryParamFilter$.inboundSchema = exports.StackoneListPlatformLogsQueryParamFilter$inboundSchema;
    /** @deprecated use `StackoneListPlatformLogsQueryParamFilter$outboundSchema` instead. */
    StackoneListPlatformLogsQueryParamFilter$.outboundSchema = exports.StackoneListPlatformLogsQueryParamFilter$outboundSchema;
})(StackoneListPlatformLogsQueryParamFilter$ || (exports.StackoneListPlatformLogsQueryParamFilter$ = StackoneListPlatformLogsQueryParamFilter$ = {}));
function stackoneListPlatformLogsQueryParamFilterToJSON(stackoneListPlatformLogsQueryParamFilter) {
    return JSON.stringify(exports.StackoneListPlatformLogsQueryParamFilter$outboundSchema.parse(stackoneListPlatformLogsQueryParamFilter));
}
function stackoneListPlatformLogsQueryParamFilterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.StackoneListPlatformLogsQueryParamFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StackoneListPlatformLogsQueryParamFilter' from JSON`);
}
/** @internal */
exports.StackoneListPlatformLogsQueryParamOrderBy$inboundSchema = z
    .nativeEnum(StackoneListPlatformLogsQueryParamOrderBy);
/** @internal */
exports.StackoneListPlatformLogsQueryParamOrderBy$outboundSchema = exports.StackoneListPlatformLogsQueryParamOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var StackoneListPlatformLogsQueryParamOrderBy$;
(function (StackoneListPlatformLogsQueryParamOrderBy$) {
    /** @deprecated use `StackoneListPlatformLogsQueryParamOrderBy$inboundSchema` instead. */
    StackoneListPlatformLogsQueryParamOrderBy$.inboundSchema = exports.StackoneListPlatformLogsQueryParamOrderBy$inboundSchema;
    /** @deprecated use `StackoneListPlatformLogsQueryParamOrderBy$outboundSchema` instead. */
    StackoneListPlatformLogsQueryParamOrderBy$.outboundSchema = exports.StackoneListPlatformLogsQueryParamOrderBy$outboundSchema;
})(StackoneListPlatformLogsQueryParamOrderBy$ || (exports.StackoneListPlatformLogsQueryParamOrderBy$ = StackoneListPlatformLogsQueryParamOrderBy$ = {}));
/** @internal */
exports.StackoneListPlatformLogsQueryParamOrderDirection$inboundSchema = z
    .nativeEnum(StackoneListPlatformLogsQueryParamOrderDirection);
/** @internal */
exports.StackoneListPlatformLogsQueryParamOrderDirection$outboundSchema = exports.StackoneListPlatformLogsQueryParamOrderDirection$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var StackoneListPlatformLogsQueryParamOrderDirection$;
(function (StackoneListPlatformLogsQueryParamOrderDirection$) {
    /** @deprecated use `StackoneListPlatformLogsQueryParamOrderDirection$inboundSchema` instead. */
    StackoneListPlatformLogsQueryParamOrderDirection$.inboundSchema = exports.StackoneListPlatformLogsQueryParamOrderDirection$inboundSchema;
    /** @deprecated use `StackoneListPlatformLogsQueryParamOrderDirection$outboundSchema` instead. */
    StackoneListPlatformLogsQueryParamOrderDirection$.outboundSchema = exports.StackoneListPlatformLogsQueryParamOrderDirection$outboundSchema;
})(StackoneListPlatformLogsQueryParamOrderDirection$ || (exports.StackoneListPlatformLogsQueryParamOrderDirection$ = StackoneListPlatformLogsQueryParamOrderDirection$ = {}));
/** @internal */
exports.StackoneListPlatformLogsRequest$inboundSchema = z.object({
    filter: z.nullable(z.lazy(() => exports.StackoneListPlatformLogsQueryParamFilter$inboundSchema)).optional(),
    next: z.nullable(z.string()).optional(),
    order_by: z.nullable(exports.StackoneListPlatformLogsQueryParamOrderBy$inboundSchema)
        .optional(),
    order_direction: z.nullable(exports.StackoneListPlatformLogsQueryParamOrderDirection$inboundSchema).optional(),
    page_size: z.nullable(z.number()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "order_by": "orderBy",
        "order_direction": "orderDirection",
        "page_size": "pageSize",
    });
});
/** @internal */
exports.StackoneListPlatformLogsRequest$outboundSchema = z.object({
    filter: z.nullable(z.lazy(() => exports.StackoneListPlatformLogsQueryParamFilter$outboundSchema)).optional(),
    next: z.nullable(z.string()).optional(),
    orderBy: z.nullable(exports.StackoneListPlatformLogsQueryParamOrderBy$outboundSchema)
        .optional(),
    orderDirection: z.nullable(exports.StackoneListPlatformLogsQueryParamOrderDirection$outboundSchema).optional(),
    pageSize: z.nullable(z.number()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        orderBy: "order_by",
        orderDirection: "order_direction",
        pageSize: "page_size",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var StackoneListPlatformLogsRequest$;
(function (StackoneListPlatformLogsRequest$) {
    /** @deprecated use `StackoneListPlatformLogsRequest$inboundSchema` instead. */
    StackoneListPlatformLogsRequest$.inboundSchema = exports.StackoneListPlatformLogsRequest$inboundSchema;
    /** @deprecated use `StackoneListPlatformLogsRequest$outboundSchema` instead. */
    StackoneListPlatformLogsRequest$.outboundSchema = exports.StackoneListPlatformLogsRequest$outboundSchema;
})(StackoneListPlatformLogsRequest$ || (exports.StackoneListPlatformLogsRequest$ = StackoneListPlatformLogsRequest$ = {}));
function stackoneListPlatformLogsRequestToJSON(stackoneListPlatformLogsRequest) {
    return JSON.stringify(exports.StackoneListPlatformLogsRequest$outboundSchema.parse(stackoneListPlatformLogsRequest));
}
function stackoneListPlatformLogsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.StackoneListPlatformLogsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StackoneListPlatformLogsRequest' from JSON`);
}
/** @internal */
exports.StackoneListPlatformLogsResponse$inboundSchema = z.object({
    ContentType: z.string(),
    Headers: z.record(z.array(z.string())).default({}),
    PlatformLogsPaginated: shared.PlatformLogsPaginated$inboundSchema.optional(),
    StatusCode: z.number().int(),
    RawResponse: z.instanceof(Response),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "ContentType": "contentType",
        "Headers": "headers",
        "PlatformLogsPaginated": "platformLogsPaginated",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
    });
});
/** @internal */
exports.StackoneListPlatformLogsResponse$outboundSchema = z.object({
    contentType: z.string(),
    headers: z.record(z.array(z.string())),
    platformLogsPaginated: shared.PlatformLogsPaginated$outboundSchema.optional(),
    statusCode: z.number().int(),
    rawResponse: z.instanceof(Response).transform(() => {
        throw new Error("Response cannot be serialized");
    }),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentType: "ContentType",
        headers: "Headers",
        platformLogsPaginated: "PlatformLogsPaginated",
        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.
 */
var StackoneListPlatformLogsResponse$;
(function (StackoneListPlatformLogsResponse$) {
    /** @deprecated use `StackoneListPlatformLogsResponse$inboundSchema` instead. */
    StackoneListPlatformLogsResponse$.inboundSchema = exports.StackoneListPlatformLogsResponse$inboundSchema;
    /** @deprecated use `StackoneListPlatformLogsResponse$outboundSchema` instead. */
    StackoneListPlatformLogsResponse$.outboundSchema = exports.StackoneListPlatformLogsResponse$outboundSchema;
})(StackoneListPlatformLogsResponse$ || (exports.StackoneListPlatformLogsResponse$ = StackoneListPlatformLogsResponse$ = {}));
function stackoneListPlatformLogsResponseToJSON(stackoneListPlatformLogsResponse) {
    return JSON.stringify(exports.StackoneListPlatformLogsResponse$outboundSchema.parse(stackoneListPlatformLogsResponse));
}
function stackoneListPlatformLogsResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.StackoneListPlatformLogsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StackoneListPlatformLogsResponse' from JSON`);
}
//# sourceMappingURL=stackonelistplatformlogs.js.map