import * as Schema from "effect/Schema";
import { API } from "../../client.js";
import * as T from "../../traits.js";
import { BadRequest, Forbidden } from "../../errors.js";
// Input Schema
export const CodeInvitesRedeemCreateInput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Struct({
    code: Schema.optional(Schema.String),
}).pipe(T.Http({ method: "POST", path: "/api/code/invites/redeem/" }));
// Output Schema
export const CodeInvitesRedeemCreateOutput = 
/*@__PURE__*/ /*#__PURE__*/ Schema.Void;
// The operation
/**
 * Redeem invite code
 *
 * Redeem a PostHog Code invite code to enable access.
 */
export const codeInvitesRedeemCreate = /*@__PURE__*/ /*#__PURE__*/ API.make(() => ({
    inputSchema: CodeInvitesRedeemCreateInput,
    outputSchema: CodeInvitesRedeemCreateOutput,
    errors: [BadRequest, Forbidden],
}));
//# sourceMappingURL=codeInvitesRedeemCreate.js.map