1 import type { SHARE_EXTERNAL_INVITATION_STATE, SHARE_MEMBER_STATE } from '../../drive/constants';
2 import type { SHARE_MEMBER_PERMISSIONS } from '../../drive/permissions';
3 import type { LinkType } from './link';
5 interface InviteEmailDetailsPayload {
9 export interface InviteProtonUserPayload {
13 Permissions: SHARE_MEMBER_PERMISSIONS;
15 KeyPacketSignature: string;
16 ExternalInvitationID?: string;
18 EmailDetails?: InviteEmailDetailsPayload;
21 export interface InviteExternalUserPayload {
23 InviterAddressID: string;
26 ExternalInvitationSignature: string;
28 EmailDetails?: InviteEmailDetailsPayload;
31 export interface ShareInvitationPayload {
35 Permissions: SHARE_MEMBER_PERMISSIONS;
37 KeyPacketSignature: string;
39 State: SHARE_MEMBER_STATE;
42 export interface ShareInvitationSharePayload {
50 export interface ShareInvitationLinkPayload {
57 export interface ShareInvitationDetailsPayload {
58 Invitation: ShareInvitationPayload;
59 Share: ShareInvitationSharePayload;
60 Link: ShareInvitationLinkPayload;
63 export interface ShareInvitationListingPayload {
64 InvitationIDs: string[];
69 export interface ShareExternalInvitationPayload {
70 ExternalInvitationID: string;
74 Permissions: SHARE_MEMBER_PERMISSIONS;
75 State: SHARE_EXTERNAL_INVITATION_STATE;
76 ExternalInvitationSignature: string;