import * as Schema from "effect/Schema";
import { API } from "../../client.js";
import * as T from "../../traits.js";
import { BadRequest, Forbidden, NotFound } from "../../errors.js";
// Input Schema
export const LogsValuesRetrieveInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    project_id: Schema.String.pipe(T.PathParam()),
    attribute_type: Schema.optional(Schema.Literals(["log", "resource"])),
    dateRange: Schema.optional(Schema.String),
    filterGroup: Schema.optional(Schema.String),
    key: Schema.String,
    serviceNames: Schema.optional(Schema.String),
    value: Schema.optional(Schema.String),
}).pipe(T.Http({ method: "GET", path: "/api/projects/{project_id}/logs/values/" }));
// Output Schema
export const LogsValuesRetrieveOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    results: Schema.optional(Schema.Array(Schema.Struct({
        id: Schema.optional(Schema.String),
        name: Schema.optional(Schema.String),
    }))),
    refreshing: Schema.optional(Schema.Boolean),
});
// The operation
/**
 *
 * @param attribute_type - Type of attribute: "log" or "resource". Defaults to "log".

* `log` - log
* `resource` - resource
 * @param dateRange - Date range to search within. Defaults to last hour.
 * @param filterGroup - Property filters to narrow which logs are scanned for values.
 * @param key - The attribute key to get values for
 * @param project_id - Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
 * @param serviceNames - Filter values to those appearing in logs from these services.
 * @param value - Search filter for attribute values
 */
export const logsValuesRetrieve = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: LogsValuesRetrieveInput,
    outputSchema: LogsValuesRetrieveOutput,
    errors: [BadRequest, Forbidden, NotFound],
}));
//# sourceMappingURL=logsValuesRetrieve.js.map