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 ConversationsTicketsBulkUpdateTagsCreateInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    project_id: Schema.String.pipe(T.PathParam()),
    ids: Schema.optional(Schema.Array(Schema.Number)),
    action: Schema.optional(Schema.Literals(["add", "remove", "set"])),
    tags: Schema.optional(Schema.Array(Schema.String)),
}).pipe(T.Http({
    method: "POST",
    path: "/api/projects/{project_id}/conversations/tickets/bulk_update_tags/",
}));
// Output Schema
export const ConversationsTicketsBulkUpdateTagsCreateOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    updated: Schema.optional(Schema.Array(Schema.Struct({
        id: Schema.optional(Schema.Number),
        tags: Schema.optional(Schema.Array(Schema.String)),
    }))),
    skipped: Schema.optional(Schema.Array(Schema.Struct({
        id: Schema.optional(Schema.Number),
        reason: Schema.optional(Schema.String),
    }))),
});
// The operation
/**
 * Bulk update tags on multiple objects.
 * Accepts:
 * - {"ids": [...], "action": "add"|"remove"|"set", "tags": ["tag1", "tag2"]}
 * Actions:
 * - "add": Add tags to existing tags on each object
 * - "remove": Remove specific tags from each object
 * - "set": Replace all tags on each object with the provided list
 *
 * @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/.
 */
export const conversationsTicketsBulkUpdateTagsCreate = 
/*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: ConversationsTicketsBulkUpdateTagsCreateInput,
    outputSchema: ConversationsTicketsBulkUpdateTagsCreateOutput,
    errors: [BadRequest, Forbidden, NotFound],
}));
//# sourceMappingURL=conversationsTicketsBulkUpdateTagsCreate.js.map