"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 (mod) {
    if (mod && mod.__esModule) return mod;
    var result = {};
    if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
    __setModuleDefault(result, mod);
    return result;
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.stackoneListStepLogsResponseFromJSON = exports.stackoneListStepLogsResponseToJSON = exports.StackoneListStepLogsResponse$ = exports.StackoneListStepLogsResponse$outboundSchema = exports.StackoneListStepLogsResponse$inboundSchema = exports.stackoneListStepLogsRequestFromJSON = exports.stackoneListStepLogsRequestToJSON = exports.StackoneListStepLogsRequest$ = exports.StackoneListStepLogsRequest$outboundSchema = exports.StackoneListStepLogsRequest$inboundSchema = exports.StackoneListStepLogsQueryParamOrderDirection$ = exports.StackoneListStepLogsQueryParamOrderDirection$outboundSchema = exports.StackoneListStepLogsQueryParamOrderDirection$inboundSchema = exports.StackoneListStepLogsQueryParamOrderBy$ = exports.StackoneListStepLogsQueryParamOrderBy$outboundSchema = exports.StackoneListStepLogsQueryParamOrderBy$inboundSchema = exports.StackoneListStepLogsQueryParamInclude$ = exports.StackoneListStepLogsQueryParamInclude$outboundSchema = exports.StackoneListStepLogsQueryParamInclude$inboundSchema = exports.queryParamFilterFromJSON = exports.queryParamFilterToJSON = exports.QueryParamFilter$ = exports.QueryParamFilter$outboundSchema = exports.QueryParamFilter$inboundSchema = exports.StackoneListStepLogsQueryParamRequestLogsOrderDirection$ = exports.StackoneListStepLogsQueryParamRequestLogsOrderDirection$outboundSchema = exports.StackoneListStepLogsQueryParamRequestLogsOrderDirection$inboundSchema = exports.StackoneListStepLogsQueryParamRequestLogsOrderBy$ = exports.StackoneListStepLogsQueryParamRequestLogsOrderBy$outboundSchema = exports.StackoneListStepLogsQueryParamRequestLogsOrderBy$inboundSchema = exports.StackoneListStepLogsQueryParamOrderDirection = exports.StackoneListStepLogsQueryParamOrderBy = exports.StackoneListStepLogsQueryParamInclude = exports.StackoneListStepLogsQueryParamRequestLogsOrderDirection = exports.StackoneListStepLogsQueryParamRequestLogsOrderBy = void 0;
const z = __importStar(require("zod"));
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 StackoneListStepLogsQueryParamRequestLogsOrderBy;
(function (StackoneListStepLogsQueryParamRequestLogsOrderBy) {
    StackoneListStepLogsQueryParamRequestLogsOrderBy["Provider"] = "provider";
    StackoneListStepLogsQueryParamRequestLogsOrderBy["Service"] = "service";
    StackoneListStepLogsQueryParamRequestLogsOrderBy["Status"] = "status";
    StackoneListStepLogsQueryParamRequestLogsOrderBy["EventDatetime"] = "eventDatetime";
    StackoneListStepLogsQueryParamRequestLogsOrderBy["Duration"] = "duration";
})(StackoneListStepLogsQueryParamRequestLogsOrderBy || (exports.StackoneListStepLogsQueryParamRequestLogsOrderBy = StackoneListStepLogsQueryParamRequestLogsOrderBy = {}));
/**
 * The direction to order the results by.
 */
var StackoneListStepLogsQueryParamRequestLogsOrderDirection;
(function (StackoneListStepLogsQueryParamRequestLogsOrderDirection) {
    StackoneListStepLogsQueryParamRequestLogsOrderDirection["Asc"] = "asc";
    StackoneListStepLogsQueryParamRequestLogsOrderDirection["Desc"] = "desc";
})(StackoneListStepLogsQueryParamRequestLogsOrderDirection || (exports.StackoneListStepLogsQueryParamRequestLogsOrderDirection = StackoneListStepLogsQueryParamRequestLogsOrderDirection = {}));
/**
 * The include parameter allows you to include additional data in the response.
 */
var StackoneListStepLogsQueryParamInclude;
(function (StackoneListStepLogsQueryParamInclude) {
    StackoneListStepLogsQueryParamInclude["StepLogs"] = "step_logs";
    StackoneListStepLogsQueryParamInclude["AdvancedLogs"] = "advanced_logs";
})(StackoneListStepLogsQueryParamInclude || (exports.StackoneListStepLogsQueryParamInclude = StackoneListStepLogsQueryParamInclude = {}));
/**
 * The field to order the results by.
 */
var StackoneListStepLogsQueryParamOrderBy;
(function (StackoneListStepLogsQueryParamOrderBy) {
    StackoneListStepLogsQueryParamOrderBy["Provider"] = "provider";
    StackoneListStepLogsQueryParamOrderBy["Service"] = "service";
    StackoneListStepLogsQueryParamOrderBy["Status"] = "status";
    StackoneListStepLogsQueryParamOrderBy["EventDatetime"] = "eventDatetime";
    StackoneListStepLogsQueryParamOrderBy["Duration"] = "duration";
})(StackoneListStepLogsQueryParamOrderBy || (exports.StackoneListStepLogsQueryParamOrderBy = StackoneListStepLogsQueryParamOrderBy = {}));
/**
 * The direction to order the results by.
 */
var StackoneListStepLogsQueryParamOrderDirection;
(function (StackoneListStepLogsQueryParamOrderDirection) {
    StackoneListStepLogsQueryParamOrderDirection["Asc"] = "asc";
    StackoneListStepLogsQueryParamOrderDirection["Desc"] = "desc";
})(StackoneListStepLogsQueryParamOrderDirection || (exports.StackoneListStepLogsQueryParamOrderDirection = StackoneListStepLogsQueryParamOrderDirection = {}));
/** @internal */
exports.StackoneListStepLogsQueryParamRequestLogsOrderBy$inboundSchema = z
    .nativeEnum(StackoneListStepLogsQueryParamRequestLogsOrderBy);
/** @internal */
exports.StackoneListStepLogsQueryParamRequestLogsOrderBy$outboundSchema = exports.StackoneListStepLogsQueryParamRequestLogsOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var StackoneListStepLogsQueryParamRequestLogsOrderBy$;
(function (StackoneListStepLogsQueryParamRequestLogsOrderBy$) {
    /** @deprecated use `StackoneListStepLogsQueryParamRequestLogsOrderBy$inboundSchema` instead. */
    StackoneListStepLogsQueryParamRequestLogsOrderBy$.inboundSchema = exports.StackoneListStepLogsQueryParamRequestLogsOrderBy$inboundSchema;
    /** @deprecated use `StackoneListStepLogsQueryParamRequestLogsOrderBy$outboundSchema` instead. */
    StackoneListStepLogsQueryParamRequestLogsOrderBy$.outboundSchema = exports.StackoneListStepLogsQueryParamRequestLogsOrderBy$outboundSchema;
})(StackoneListStepLogsQueryParamRequestLogsOrderBy$ || (exports.StackoneListStepLogsQueryParamRequestLogsOrderBy$ = StackoneListStepLogsQueryParamRequestLogsOrderBy$ = {}));
/** @internal */
exports.StackoneListStepLogsQueryParamRequestLogsOrderDirection$inboundSchema = z.nativeEnum(StackoneListStepLogsQueryParamRequestLogsOrderDirection);
/** @internal */
exports.StackoneListStepLogsQueryParamRequestLogsOrderDirection$outboundSchema = exports.StackoneListStepLogsQueryParamRequestLogsOrderDirection$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var StackoneListStepLogsQueryParamRequestLogsOrderDirection$;
(function (StackoneListStepLogsQueryParamRequestLogsOrderDirection$) {
    /** @deprecated use `StackoneListStepLogsQueryParamRequestLogsOrderDirection$inboundSchema` instead. */
    StackoneListStepLogsQueryParamRequestLogsOrderDirection$.inboundSchema = exports.StackoneListStepLogsQueryParamRequestLogsOrderDirection$inboundSchema;
    /** @deprecated use `StackoneListStepLogsQueryParamRequestLogsOrderDirection$outboundSchema` instead. */
    StackoneListStepLogsQueryParamRequestLogsOrderDirection$.outboundSchema = exports.StackoneListStepLogsQueryParamRequestLogsOrderDirection$outboundSchema;
})(StackoneListStepLogsQueryParamRequestLogsOrderDirection$ || (exports.StackoneListStepLogsQueryParamRequestLogsOrderDirection$ = StackoneListStepLogsQueryParamRequestLogsOrderDirection$ = {}));
/** @internal */
exports.QueryParamFilter$inboundSchema = z.object({
    account_ids: z.nullable(z.string()).optional(),
    actions: z.nullable(z.string()).optional(),
    child_resources: z.nullable(z.string()).optional(),
    end_date: z.nullable(z.string()).optional(),
    http_methods: z.nullable(z.string()).optional(),
    order_by: z.nullable(exports.StackoneListStepLogsQueryParamRequestLogsOrderBy$inboundSchema).optional(),
    order_direction: z.nullable(exports.StackoneListStepLogsQueryParamRequestLogsOrderDirection$inboundSchema).optional(),
    providers: z.nullable(z.string()).optional(),
    request_ids: z.nullable(z.string()).optional(),
    resources: z.nullable(z.string()).optional(),
    services: z.nullable(z.string()).optional(),
    start_date: z.nullable(z.string()).optional(),
    status_codes: z.nullable(z.string()).optional(),
    sub_resources: z.nullable(z.string()).optional(),
    success: z.nullable(z.boolean()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "account_ids": "accountIds",
        "child_resources": "childResources",
        "end_date": "endDate",
        "http_methods": "httpMethods",
        "order_by": "orderBy",
        "order_direction": "orderDirection",
        "request_ids": "requestIds",
        "start_date": "startDate",
        "status_codes": "statusCodes",
        "sub_resources": "subResources",
    });
});
/** @internal */
exports.QueryParamFilter$outboundSchema = z.object({
    accountIds: z.nullable(z.string()).optional(),
    actions: z.nullable(z.string()).optional(),
    childResources: z.nullable(z.string()).optional(),
    endDate: z.nullable(z.string()).optional(),
    httpMethods: z.nullable(z.string()).optional(),
    orderBy: z.nullable(exports.StackoneListStepLogsQueryParamRequestLogsOrderBy$outboundSchema).optional(),
    orderDirection: z.nullable(exports.StackoneListStepLogsQueryParamRequestLogsOrderDirection$outboundSchema).optional(),
    providers: z.nullable(z.string()).optional(),
    requestIds: z.nullable(z.string()).optional(),
    resources: z.nullable(z.string()).optional(),
    services: z.nullable(z.string()).optional(),
    startDate: z.nullable(z.string()).optional(),
    statusCodes: z.nullable(z.string()).optional(),
    subResources: z.nullable(z.string()).optional(),
    success: z.nullable(z.boolean()).optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        accountIds: "account_ids",
        childResources: "child_resources",
        endDate: "end_date",
        httpMethods: "http_methods",
        orderBy: "order_by",
        orderDirection: "order_direction",
        requestIds: "request_ids",
        startDate: "start_date",
        statusCodes: "status_codes",
        subResources: "sub_resources",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var QueryParamFilter$;
(function (QueryParamFilter$) {
    /** @deprecated use `QueryParamFilter$inboundSchema` instead. */
    QueryParamFilter$.inboundSchema = exports.QueryParamFilter$inboundSchema;
    /** @deprecated use `QueryParamFilter$outboundSchema` instead. */
    QueryParamFilter$.outboundSchema = exports.QueryParamFilter$outboundSchema;
})(QueryParamFilter$ || (exports.QueryParamFilter$ = QueryParamFilter$ = {}));
function queryParamFilterToJSON(queryParamFilter) {
    return JSON.stringify(exports.QueryParamFilter$outboundSchema.parse(queryParamFilter));
}
exports.queryParamFilterToJSON = queryParamFilterToJSON;
function queryParamFilterFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.QueryParamFilter$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'QueryParamFilter' from JSON`);
}
exports.queryParamFilterFromJSON = queryParamFilterFromJSON;
/** @internal */
exports.StackoneListStepLogsQueryParamInclude$inboundSchema = z.nativeEnum(StackoneListStepLogsQueryParamInclude);
/** @internal */
exports.StackoneListStepLogsQueryParamInclude$outboundSchema = exports.StackoneListStepLogsQueryParamInclude$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var StackoneListStepLogsQueryParamInclude$;
(function (StackoneListStepLogsQueryParamInclude$) {
    /** @deprecated use `StackoneListStepLogsQueryParamInclude$inboundSchema` instead. */
    StackoneListStepLogsQueryParamInclude$.inboundSchema = exports.StackoneListStepLogsQueryParamInclude$inboundSchema;
    /** @deprecated use `StackoneListStepLogsQueryParamInclude$outboundSchema` instead. */
    StackoneListStepLogsQueryParamInclude$.outboundSchema = exports.StackoneListStepLogsQueryParamInclude$outboundSchema;
})(StackoneListStepLogsQueryParamInclude$ || (exports.StackoneListStepLogsQueryParamInclude$ = StackoneListStepLogsQueryParamInclude$ = {}));
/** @internal */
exports.StackoneListStepLogsQueryParamOrderBy$inboundSchema = z.nativeEnum(StackoneListStepLogsQueryParamOrderBy);
/** @internal */
exports.StackoneListStepLogsQueryParamOrderBy$outboundSchema = exports.StackoneListStepLogsQueryParamOrderBy$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var StackoneListStepLogsQueryParamOrderBy$;
(function (StackoneListStepLogsQueryParamOrderBy$) {
    /** @deprecated use `StackoneListStepLogsQueryParamOrderBy$inboundSchema` instead. */
    StackoneListStepLogsQueryParamOrderBy$.inboundSchema = exports.StackoneListStepLogsQueryParamOrderBy$inboundSchema;
    /** @deprecated use `StackoneListStepLogsQueryParamOrderBy$outboundSchema` instead. */
    StackoneListStepLogsQueryParamOrderBy$.outboundSchema = exports.StackoneListStepLogsQueryParamOrderBy$outboundSchema;
})(StackoneListStepLogsQueryParamOrderBy$ || (exports.StackoneListStepLogsQueryParamOrderBy$ = StackoneListStepLogsQueryParamOrderBy$ = {}));
/** @internal */
exports.StackoneListStepLogsQueryParamOrderDirection$inboundSchema = z
    .nativeEnum(StackoneListStepLogsQueryParamOrderDirection);
/** @internal */
exports.StackoneListStepLogsQueryParamOrderDirection$outboundSchema = exports.StackoneListStepLogsQueryParamOrderDirection$inboundSchema;
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var StackoneListStepLogsQueryParamOrderDirection$;
(function (StackoneListStepLogsQueryParamOrderDirection$) {
    /** @deprecated use `StackoneListStepLogsQueryParamOrderDirection$inboundSchema` instead. */
    StackoneListStepLogsQueryParamOrderDirection$.inboundSchema = exports.StackoneListStepLogsQueryParamOrderDirection$inboundSchema;
    /** @deprecated use `StackoneListStepLogsQueryParamOrderDirection$outboundSchema` instead. */
    StackoneListStepLogsQueryParamOrderDirection$.outboundSchema = exports.StackoneListStepLogsQueryParamOrderDirection$outboundSchema;
})(StackoneListStepLogsQueryParamOrderDirection$ || (exports.StackoneListStepLogsQueryParamOrderDirection$ = StackoneListStepLogsQueryParamOrderDirection$ = {}));
/** @internal */
exports.StackoneListStepLogsRequest$inboundSchema = z.object({
    filter: z.nullable(z.lazy(() => exports.QueryParamFilter$inboundSchema)).optional(),
    include: z.nullable(exports.StackoneListStepLogsQueryParamInclude$inboundSchema)
        .optional(),
    next: z.nullable(z.string()).optional(),
    order_by: z.nullable(exports.StackoneListStepLogsQueryParamOrderBy$inboundSchema)
        .optional(),
    order_direction: z.nullable(exports.StackoneListStepLogsQueryParamOrderDirection$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.StackoneListStepLogsRequest$outboundSchema = z.object({
    filter: z.nullable(z.lazy(() => exports.QueryParamFilter$outboundSchema)).optional(),
    include: z.nullable(exports.StackoneListStepLogsQueryParamInclude$outboundSchema)
        .optional(),
    next: z.nullable(z.string()).optional(),
    orderBy: z.nullable(exports.StackoneListStepLogsQueryParamOrderBy$outboundSchema)
        .optional(),
    orderDirection: z.nullable(exports.StackoneListStepLogsQueryParamOrderDirection$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 StackoneListStepLogsRequest$;
(function (StackoneListStepLogsRequest$) {
    /** @deprecated use `StackoneListStepLogsRequest$inboundSchema` instead. */
    StackoneListStepLogsRequest$.inboundSchema = exports.StackoneListStepLogsRequest$inboundSchema;
    /** @deprecated use `StackoneListStepLogsRequest$outboundSchema` instead. */
    StackoneListStepLogsRequest$.outboundSchema = exports.StackoneListStepLogsRequest$outboundSchema;
})(StackoneListStepLogsRequest$ || (exports.StackoneListStepLogsRequest$ = StackoneListStepLogsRequest$ = {}));
function stackoneListStepLogsRequestToJSON(stackoneListStepLogsRequest) {
    return JSON.stringify(exports.StackoneListStepLogsRequest$outboundSchema.parse(stackoneListStepLogsRequest));
}
exports.stackoneListStepLogsRequestToJSON = stackoneListStepLogsRequestToJSON;
function stackoneListStepLogsRequestFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.StackoneListStepLogsRequest$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StackoneListStepLogsRequest' from JSON`);
}
exports.stackoneListStepLogsRequestFromJSON = stackoneListStepLogsRequestFromJSON;
/** @internal */
exports.StackoneListStepLogsResponse$inboundSchema = z.object({
    ContentType: z.string(),
    Headers: z.record(z.array(z.string())),
    StatusCode: z.number().int(),
    RawResponse: z.instanceof(Response),
    StepLogsPaginated: shared.StepLogsPaginated$inboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        "ContentType": "contentType",
        "Headers": "headers",
        "StatusCode": "statusCode",
        "RawResponse": "rawResponse",
        "StepLogsPaginated": "stepLogsPaginated",
    });
});
/** @internal */
exports.StackoneListStepLogsResponse$outboundSchema = z.object({
    contentType: z.string(),
    headers: z.record(z.array(z.string())),
    statusCode: z.number().int(),
    rawResponse: z.instanceof(Response).transform(() => {
        throw new Error("Response cannot be serialized");
    }),
    stepLogsPaginated: shared.StepLogsPaginated$outboundSchema.optional(),
}).transform((v) => {
    return (0, primitives_js_1.remap)(v, {
        contentType: "ContentType",
        headers: "Headers",
        statusCode: "StatusCode",
        rawResponse: "RawResponse",
        stepLogsPaginated: "StepLogsPaginated",
    });
});
/**
 * @internal
 * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
 */
var StackoneListStepLogsResponse$;
(function (StackoneListStepLogsResponse$) {
    /** @deprecated use `StackoneListStepLogsResponse$inboundSchema` instead. */
    StackoneListStepLogsResponse$.inboundSchema = exports.StackoneListStepLogsResponse$inboundSchema;
    /** @deprecated use `StackoneListStepLogsResponse$outboundSchema` instead. */
    StackoneListStepLogsResponse$.outboundSchema = exports.StackoneListStepLogsResponse$outboundSchema;
})(StackoneListStepLogsResponse$ || (exports.StackoneListStepLogsResponse$ = StackoneListStepLogsResponse$ = {}));
function stackoneListStepLogsResponseToJSON(stackoneListStepLogsResponse) {
    return JSON.stringify(exports.StackoneListStepLogsResponse$outboundSchema.parse(stackoneListStepLogsResponse));
}
exports.stackoneListStepLogsResponseToJSON = stackoneListStepLogsResponseToJSON;
function stackoneListStepLogsResponseFromJSON(jsonString) {
    return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.StackoneListStepLogsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'StackoneListStepLogsResponse' from JSON`);
}
exports.stackoneListStepLogsResponseFromJSON = stackoneListStepLogsResponseFromJSON;
//# sourceMappingURL=stackoneliststeplogs.js.map