mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-10-03 17:54:05 +00:00
21 lines
567 B
TypeScript
21 lines
567 B
TypeScript
// Query param the API can read to tell where an invitation was sent from.
|
|
export const INVITATION_SOURCE_PARAM = "source";
|
|
|
|
export const INVITATION_SOURCE = {
|
|
ONBOARDING: "onboarding",
|
|
// Sent from the add-provider wizard by a user who cannot connect the account.
|
|
PROVIDER_CONNECT: "provider_connect",
|
|
} as const;
|
|
|
|
export interface InvitationRoleOption {
|
|
id: string;
|
|
name: string;
|
|
}
|
|
|
|
/** What a successful `sendInvite` yields: enough to show and share the accept link. */
|
|
export interface SentInvitation {
|
|
id: string;
|
|
email: string;
|
|
token: string;
|
|
}
|