mirror of
https://github.com/prowler-cloud/prowler.git
synced 2026-11-08 12:24:45 +00:00
20 lines
539 B
TypeScript
20 lines
539 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 = {
|
|
// 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;
|
|
}
|