import { CredentialType } from '@bubblelab/shared-schemas'; import { ServiceBubble } from '../../../types/service-bubble-class.js'; import type { BubbleContext } from '../../../types/bubble.js'; import { type ClerkParamsInput, type ClerkResult } from './clerk.schema.js'; export declare class ClerkBubble extends ServiceBubble> { static readonly service = "clerk"; static readonly authType: "apikey"; static readonly bubbleName: "clerk"; static readonly type: "service"; static readonly schema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_users">; limit: import("zod").ZodDefault>; offset: import("zod").ZodDefault>; order_by: import("zod").ZodOptional; query: import("zod").ZodOptional; email_address: import("zod").ZodOptional>; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_users"; limit: number; offset: number; credentials?: Partial> | undefined; query?: string | undefined; order_by?: string | undefined; email_address?: string[] | undefined; }, { operation: "list_users"; credentials?: Partial> | undefined; query?: string | undefined; limit?: number | undefined; offset?: number | undefined; order_by?: string | undefined; email_address?: string[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user">; user_id: import("zod").ZodString; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_user"; user_id: string; credentials?: Partial> | undefined; }, { operation: "get_user"; user_id: string; credentials?: Partial> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_user">; email_address: import("zod").ZodArray; first_name: import("zod").ZodOptional; last_name: import("zod").ZodOptional; username: import("zod").ZodOptional; password: import("zod").ZodOptional; public_metadata: import("zod").ZodOptional>; private_metadata: import("zod").ZodOptional>; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_user"; email_address: string[]; password?: string | undefined; credentials?: Partial> | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; public_metadata?: Record | undefined; private_metadata?: Record | undefined; }, { operation: "create_user"; email_address: string[]; password?: string | undefined; credentials?: Partial> | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; public_metadata?: Record | undefined; private_metadata?: Record | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_user">; user_id: import("zod").ZodString; first_name: import("zod").ZodOptional; last_name: import("zod").ZodOptional; username: import("zod").ZodOptional; public_metadata: import("zod").ZodOptional>; private_metadata: import("zod").ZodOptional>; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_user"; user_id: string; credentials?: Partial> | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; public_metadata?: Record | undefined; private_metadata?: Record | undefined; }, { operation: "update_user"; user_id: string; credentials?: Partial> | undefined; username?: string | undefined; first_name?: string | undefined; last_name?: string | undefined; public_metadata?: Record | undefined; private_metadata?: Record | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_user">; user_id: import("zod").ZodString; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_user"; user_id: string; credentials?: Partial> | undefined; }, { operation: "delete_user"; user_id: string; credentials?: Partial> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"ban_user">; user_id: import("zod").ZodString; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "ban_user"; user_id: string; credentials?: Partial> | undefined; }, { operation: "ban_user"; user_id: string; credentials?: Partial> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"unban_user">; user_id: import("zod").ZodString; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "unban_user"; user_id: string; credentials?: Partial> | undefined; }, { operation: "unban_user"; user_id: string; credentials?: Partial> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organizations">; limit: import("zod").ZodDefault>; offset: import("zod").ZodDefault>; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_organizations"; limit: number; offset: number; credentials?: Partial> | undefined; }, { operation: "list_organizations"; credentials?: Partial> | undefined; limit?: number | undefined; offset?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization">; organization_id: import("zod").ZodString; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_organization"; organization_id: string; credentials?: Partial> | undefined; }, { operation: "get_organization"; organization_id: string; credentials?: Partial> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_organization">; name: import("zod").ZodString; slug: import("zod").ZodOptional; created_by: import("zod").ZodOptional; public_metadata: import("zod").ZodOptional>; private_metadata: import("zod").ZodOptional>; max_allowed_memberships: import("zod").ZodOptional; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { name: string; operation: "create_organization"; credentials?: Partial> | undefined; slug?: string | undefined; created_by?: string | undefined; public_metadata?: Record | undefined; private_metadata?: Record | undefined; max_allowed_memberships?: number | undefined; }, { name: string; operation: "create_organization"; credentials?: Partial> | undefined; slug?: string | undefined; created_by?: string | undefined; public_metadata?: Record | undefined; private_metadata?: Record | undefined; max_allowed_memberships?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_organization">; organization_id: import("zod").ZodString; name: import("zod").ZodOptional; slug: import("zod").ZodOptional; public_metadata: import("zod").ZodOptional>; private_metadata: import("zod").ZodOptional>; max_allowed_memberships: import("zod").ZodOptional; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "update_organization"; organization_id: string; name?: string | undefined; credentials?: Partial> | undefined; slug?: string | undefined; public_metadata?: Record | undefined; private_metadata?: Record | undefined; max_allowed_memberships?: number | undefined; }, { operation: "update_organization"; organization_id: string; name?: string | undefined; credentials?: Partial> | undefined; slug?: string | undefined; public_metadata?: Record | undefined; private_metadata?: Record | undefined; max_allowed_memberships?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_organization">; organization_id: import("zod").ZodString; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "delete_organization"; organization_id: string; credentials?: Partial> | undefined; }, { operation: "delete_organization"; organization_id: string; credentials?: Partial> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organization_memberships">; organization_id: import("zod").ZodString; limit: import("zod").ZodDefault>; offset: import("zod").ZodDefault>; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_organization_memberships"; limit: number; offset: number; organization_id: string; credentials?: Partial> | undefined; }, { operation: "list_organization_memberships"; organization_id: string; credentials?: Partial> | undefined; limit?: number | undefined; offset?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_invitations">; limit: import("zod").ZodDefault>; offset: import("zod").ZodDefault>; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_invitations"; limit: number; offset: number; credentials?: Partial> | undefined; }, { operation: "list_invitations"; credentials?: Partial> | undefined; limit?: number | undefined; offset?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_invitation">; email_address: import("zod").ZodString; redirect_url: import("zod").ZodOptional; public_metadata: import("zod").ZodOptional>; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "create_invitation"; email_address: string; credentials?: Partial> | undefined; public_metadata?: Record | undefined; redirect_url?: string | undefined; }, { operation: "create_invitation"; email_address: string; credentials?: Partial> | undefined; public_metadata?: Record | undefined; redirect_url?: string | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"revoke_invitation">; invitation_id: import("zod").ZodString; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "revoke_invitation"; invitation_id: string; credentials?: Partial> | undefined; }, { operation: "revoke_invitation"; invitation_id: string; credentials?: Partial> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_sessions">; user_id: import("zod").ZodString; status: import("zod").ZodOptional>; limit: import("zod").ZodDefault>; offset: import("zod").ZodDefault>; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "list_sessions"; limit: number; user_id: string; offset: number; status?: "active" | "ended" | "expired" | "removed" | "replaced" | "revoked" | "abandoned" | undefined; credentials?: Partial> | undefined; }, { operation: "list_sessions"; user_id: string; status?: "active" | "ended" | "expired" | "removed" | "replaced" | "revoked" | "abandoned" | undefined; credentials?: Partial> | undefined; limit?: number | undefined; offset?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"revoke_session">; session_id: import("zod").ZodString; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "revoke_session"; session_id: string; credentials?: Partial> | undefined; }, { operation: "revoke_session"; session_id: string; credentials?: Partial> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user_subscription">; user_id: import("zod").ZodString; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_user_subscription"; user_id: string; credentials?: Partial> | undefined; }, { operation: "get_user_subscription"; user_id: string; credentials?: Partial> | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization_subscription">; organization_id: import("zod").ZodString; credentials: import("zod").ZodOptional, import("zod").ZodString>>; }, "strip", import("zod").ZodTypeAny, { operation: "get_organization_subscription"; organization_id: string; credentials?: Partial> | undefined; }, { operation: "get_organization_subscription"; organization_id: string; credentials?: Partial> | undefined; }>]>; static readonly resultSchema: import("zod").ZodDiscriminatedUnion<"operation", [import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_users">; users: import("zod").ZodOptional, "many">>; total_count: import("zod").ZodOptional; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_users"; users?: Record[] | undefined; total_count?: number | undefined; }, { error: string; success: boolean; operation: "list_users"; users?: Record[] | undefined; total_count?: number | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user">; user: import("zod").ZodOptional>; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_user"; user?: Record | undefined; }, { error: string; success: boolean; operation: "get_user"; user?: Record | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_user">; user: import("zod").ZodOptional>; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_user"; user?: Record | undefined; }, { error: string; success: boolean; operation: "create_user"; user?: Record | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_user">; user: import("zod").ZodOptional>; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_user"; user?: Record | undefined; }, { error: string; success: boolean; operation: "update_user"; user?: Record | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_user">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_user"; }, { error: string; success: boolean; operation: "delete_user"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"ban_user">; user: import("zod").ZodOptional>; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "ban_user"; user?: Record | undefined; }, { error: string; success: boolean; operation: "ban_user"; user?: Record | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"unban_user">; user: import("zod").ZodOptional>; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "unban_user"; user?: Record | undefined; }, { error: string; success: boolean; operation: "unban_user"; user?: Record | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organizations">; organizations: import("zod").ZodOptional, "many">>; total_count: import("zod").ZodOptional; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_organizations"; total_count?: number | undefined; organizations?: Record[] | undefined; }, { error: string; success: boolean; operation: "list_organizations"; total_count?: number | undefined; organizations?: Record[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization">; organization: import("zod").ZodOptional>; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_organization"; organization?: Record | undefined; }, { error: string; success: boolean; operation: "get_organization"; organization?: Record | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_organization">; organization: import("zod").ZodOptional>; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_organization"; organization?: Record | undefined; }, { error: string; success: boolean; operation: "create_organization"; organization?: Record | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"update_organization">; organization: import("zod").ZodOptional>; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "update_organization"; organization?: Record | undefined; }, { error: string; success: boolean; operation: "update_organization"; organization?: Record | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"delete_organization">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "delete_organization"; }, { error: string; success: boolean; operation: "delete_organization"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_organization_memberships">; memberships: import("zod").ZodOptional, "many">>; total_count: import("zod").ZodOptional; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_organization_memberships"; total_count?: number | undefined; memberships?: Record[] | undefined; }, { error: string; success: boolean; operation: "list_organization_memberships"; total_count?: number | undefined; memberships?: Record[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_invitations">; invitations: import("zod").ZodOptional, "many">>; total_count: import("zod").ZodOptional; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_invitations"; total_count?: number | undefined; invitations?: Record[] | undefined; }, { error: string; success: boolean; operation: "list_invitations"; total_count?: number | undefined; invitations?: Record[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"create_invitation">; invitation: import("zod").ZodOptional>; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "create_invitation"; invitation?: Record | undefined; }, { error: string; success: boolean; operation: "create_invitation"; invitation?: Record | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"revoke_invitation">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "revoke_invitation"; }, { error: string; success: boolean; operation: "revoke_invitation"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"list_sessions">; sessions: import("zod").ZodOptional, "many">>; total_count: import("zod").ZodOptional; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "list_sessions"; total_count?: number | undefined; sessions?: Record[] | undefined; }, { error: string; success: boolean; operation: "list_sessions"; total_count?: number | undefined; sessions?: Record[] | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"revoke_session">; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "revoke_session"; }, { error: string; success: boolean; operation: "revoke_session"; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_user_subscription">; subscription: import("zod").ZodOptional>; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_user_subscription"; subscription?: Record | undefined; }, { error: string; success: boolean; operation: "get_user_subscription"; subscription?: Record | undefined; }>, import("zod").ZodObject<{ operation: import("zod").ZodLiteral<"get_organization_subscription">; subscription: import("zod").ZodOptional>; success: import("zod").ZodBoolean; error: import("zod").ZodString; }, "strip", import("zod").ZodTypeAny, { error: string; success: boolean; operation: "get_organization_subscription"; subscription?: Record | undefined; }, { error: string; success: boolean; operation: "get_organization_subscription"; subscription?: Record | undefined; }>]>; static readonly shortDescription = "Clerk integration for user management, organizations, and billing"; static readonly longDescription = "\n Integrate with Clerk to manage users, organizations, invitations, sessions, and billing.\n Supported operations:\n - Users: List, get, create, update, delete, ban, unban\n - Organizations: List, get, create, update, delete, list memberships\n - Invitations: List, create, revoke\n - Sessions: List, revoke\n - Billing: Get user/organization subscription status\n Authentication: OAuth 2.0 or Secret Key (Bearer token)\n "; static readonly alias = "clerk"; constructor(params?: T, context?: BubbleContext); protected chooseCredential(): string | undefined; private makeClerkRequest; testCredential(): Promise; protected performAction(context?: BubbleContext): Promise>; private listUsers; private getUser; private createUser; private updateUser; private deleteUser; private banUser; private unbanUser; private listOrganizations; private getOrganization; private createOrganization; private updateOrganization; private deleteOrganization; private listOrganizationMemberships; private listInvitations; private createInvitation; private revokeInvitation; private listSessions; private revokeSession; private getUserSubscription; private getOrganizationSubscription; } //# sourceMappingURL=clerk.d.ts.map