Privacy-first password manager with built-in email aliasing. Fully encrypted and self-hostable.
Update new sharing API models (#2536)
Leendert de Borst53b74f3be8d0
diff --git a/core/models/src/webapi/Groups.ts b/core/models/src/webapi/Groups.tsindex a956dfbab..c8ca7099c 100644--- a/core/models/src/webapi/Groups.ts+++ b/core/models/src/webapi/Groups.ts@@ -75,22 +75,6 @@ export type GroupInfo = {role: GroupRole;manifests: SharedManifestInfo[];members: GroupMemberInfo[];- /** The open invitations to join this group, for admins. */- pendingJoinInvitations: SentManifestInvitation[];-}--/**- * An open invitation to join a group, addressed to this user.- */-export type ReceivedGroupInvitation = {- id: string;- groupId: string;- inviterUserId: string;- inviterUsername: string;- createdAt: string;- inviterSigningPublicKey: string | null;- /** The invitee's own certification of `inviterSigningPublicKey`, when they certified the inviter before. */- inviterCertification: string | null;}/**@@ -101,18 +85,12 @@ export type GroupOverviewResponse = {userId: string;groups: GroupInfo[];receivedInvitations: ReceivedManifestInvitation[];- receivedGroupInvitations: ReceivedGroupInvitation[];-}--/**- * The created group, as served by POST /v2/Groups.- */-export type CreateGroupResponse = {- groupId: string;+ /** The people whose current signing key this user certified, who can be invited without their identity code. */+ verifiedPeople: GroupMemberInfo[];}/**- * Create another shared manifest for a group.+ * Create a shared manifest, with a group of its own that the caller owns (POST /v2/Groups/manifests).*/export type CreateSharedManifestRequest = {manifestId: string;@@ -133,9 +111,10 @@ export type UpdateSharedManifestRequest = {}/**- * The created manifest, as served by POST /v2/Groups/{groupId}/manifests.+ * The created manifest and its group, as served by POST /v2/Groups/manifests.*/export type CreateSharedManifestResponse = {+ groupId: string;manifestId: string;revisionNumber: number;}diff --git a/core/models/src/webapi/StatusResponseV2.ts b/core/models/src/webapi/StatusResponseV2.tsindex ebf3968f1..ac66ce750 100644--- a/core/models/src/webapi/StatusResponseV2.ts+++ b/core/models/src/webapi/StatusResponseV2.ts@@ -52,4 +52,5 @@ export type StatusResponseV2 = {bucketRevisions?: BucketRevision[];pendingActions?: PendingClientAction[];emailDomains?: EmailDomains;+ pendingSharingInvitations?: number;}