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 UserHomeSettingsPartialUpdateInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    uuid: Schema.String.pipe(T.PathParam()),
    tabs: Schema.optional(Schema.Array(Schema.Struct({
        id: Schema.optional(Schema.String),
        pathname: Schema.optional(Schema.String),
        search: Schema.optional(Schema.String),
        hash: Schema.optional(Schema.String),
        title: Schema.optional(Schema.String),
        customTitle: Schema.optional(Schema.NullOr(Schema.String)),
        iconType: Schema.optional(Schema.String),
        sceneId: Schema.optional(Schema.NullOr(Schema.String)),
        sceneKey: Schema.optional(Schema.NullOr(Schema.String)),
        sceneParams: Schema.optional(Schema.Unknown),
        pinned: Schema.optional(Schema.Boolean),
    }))),
    homepage: Schema.optional(Schema.NullOr(Schema.Struct({
        id: Schema.optional(Schema.String),
        pathname: Schema.optional(Schema.String),
        search: Schema.optional(Schema.String),
        hash: Schema.optional(Schema.String),
        title: Schema.optional(Schema.String),
        customTitle: Schema.optional(Schema.NullOr(Schema.String)),
        iconType: Schema.optional(Schema.String),
        sceneId: Schema.optional(Schema.NullOr(Schema.String)),
        sceneKey: Schema.optional(Schema.NullOr(Schema.String)),
        sceneParams: Schema.optional(Schema.Unknown),
        pinned: Schema.optional(Schema.Boolean),
    }))),
}).pipe(T.Http({ method: "PATCH", path: "/api/user_home_settings/{uuid}/" }));
// Output Schema
export const UserHomeSettingsPartialUpdateOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    tabs: Schema.optional(Schema.Array(Schema.Struct({
        id: Schema.optional(Schema.String),
        pathname: Schema.optional(Schema.String),
        search: Schema.optional(Schema.String),
        hash: Schema.optional(Schema.String),
        title: Schema.optional(Schema.String),
        customTitle: Schema.optional(Schema.NullOr(Schema.String)),
        iconType: Schema.optional(Schema.String),
        sceneId: Schema.optional(Schema.NullOr(Schema.String)),
        sceneKey: Schema.optional(Schema.NullOr(Schema.String)),
        sceneParams: Schema.optional(Schema.Unknown),
        pinned: Schema.optional(Schema.Boolean),
    }))),
    homepage: Schema.optional(Schema.NullOr(Schema.Struct({
        id: Schema.optional(Schema.String),
        pathname: Schema.optional(Schema.String),
        search: Schema.optional(Schema.String),
        hash: Schema.optional(Schema.String),
        title: Schema.optional(Schema.String),
        customTitle: Schema.optional(Schema.NullOr(Schema.String)),
        iconType: Schema.optional(Schema.String),
        sceneId: Schema.optional(Schema.NullOr(Schema.String)),
        sceneKey: Schema.optional(Schema.NullOr(Schema.String)),
        sceneParams: Schema.optional(Schema.Unknown),
        pinned: Schema.optional(Schema.Boolean),
    }))),
});
// The operation
export const userHomeSettingsPartialUpdate = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: UserHomeSettingsPartialUpdateInput,
    outputSchema: UserHomeSettingsPartialUpdateOutput,
    errors: [BadRequest, Forbidden, NotFound],
}));
//# sourceMappingURL=userHomeSettingsPartialUpdate.js.map