import { type H3Event } from "h3"; import type { OrgRole, RequiredAuthProvider, WorkspaceAppDefaultVisibility } from "./types.js"; export declare const getMyOrgHandler: import("h3").EventHandlerWithFetch>; export declare const retryPendingFederatedRemovalHandler: import("h3").EventHandlerWithFetch>; export declare const setWorkspaceAppDefaultVisibilityHandler: import("h3").EventHandlerWithFetch>; export declare const createOrgHandler: import("h3").EventHandlerWithFetch>; export declare const listMembersHandler: import("h3").EventHandlerWithFetch>; export interface SingleInviteResult { id: string; email: string; role: "member" | "admin"; status: "pending"; emailSent: boolean; emailError?: string; } interface SingleInviteFailure { email: string; error: string; } export declare function inviteOne(ctx: { orgId: string; orgName: string | null; email: string; }, rawEmail: string, role: "member" | "admin", event?: H3Event, appId?: string, appRoles?: string[]): Promise; export declare const createInvitationHandler: import("h3").EventHandlerWithFetch>; export declare const listInvitationsHandler: import("h3").EventHandlerWithFetch>; export declare const acceptInvitationHandler: import("h3").EventHandlerWithFetch>; export declare const removeMemberHandler: import("h3").EventHandlerWithFetch>; export declare const changeMemberRoleHandler: import("h3").EventHandlerWithFetch>; export declare const updateOrgHandler: import("h3").EventHandlerWithFetch>; export declare const setOrgVisualIdentityHandler: import("h3").EventHandlerWithFetch>; export declare const deleteOrgHandler: import("h3").EventHandlerWithFetch>; export declare const switchOrgHandler: import("h3").EventHandlerWithFetch>; export declare const joinByDomainHandler: import("h3").EventHandlerWithFetch>; export declare const setDomainHandler: import("h3").EventHandlerWithFetch>; export declare const setWorkspaceUrlHandler: import("h3").EventHandlerWithFetch>; export declare const setRequiredAuthProviderHandler: import("h3").EventHandlerWithFetch>; export declare const setA2AMemberDelegationHandler: import("h3").EventHandlerWithFetch>; export declare const revealA2ASecretHandler: import("h3").EventHandlerWithFetch>; /** PUT /_agent-native/org/a2a-secret — regenerate or set the org's A2A secret (owner only) */ export declare const setA2ASecretHandler: import("h3").EventHandlerWithFetch>; /** * POST /_agent-native/org/a2a-secret/sync — push the org's A2A secret to all * connected apps so cross-app delegation works without manual copy/paste. * * Auth: standard session — owner only. * * For each discovered agent, signs a JWT with the org's CURRENT a2a_secret * and POSTs to `/_agent-native/org/a2a-secret/receive` with the same * secret + the org's domain. The receiving app verifies the JWT using its * own copy of the secret (peers must already share a secret to be trusted) * — for the first-ever sync this means at least one peer must already hold * the secret, which is the bootstrap. For ongoing rotation, regenerate * locally and call sync immediately; sync signs with the secret that's * currently in DB, which the peers still have. * * Body (optional): { signSecret?: string } — sign the outbound JWTs with * this secret instead of the org's current secret. Used by the regenerate- * then-sync flow: regenerate stores the NEW secret, but sync needs to * authenticate using the OLD one that peers still hold. Owner only, gated by * the session. */ export declare const syncA2ASecretHandler: import("h3").EventHandlerWithFetch>; export declare const receiveA2ASecretHandler: import("h3").EventHandlerWithFetch>; export {};