@wireapp/core-crypto 1.0.0-rc.36 → 1.0.0-rc.38
Sign up to get free protection for your applications and to get access to all the features.
package/package.json
CHANGED
Binary file
|
@@ -1,5 +1,3 @@
|
|
1
|
-
/* tslint:disable */
|
2
|
-
/* eslint-disable */
|
3
1
|
/**
|
4
2
|
* see [core_crypto::prelude::DeviceStatus]
|
5
3
|
*/
|
@@ -94,37 +92,6 @@ export class NewAcmeOrder {
|
|
94
92
|
readonly delegate: Uint8Array;
|
95
93
|
}
|
96
94
|
/**
|
97
|
-
*/
|
98
|
-
export class ProposalBundle {
|
99
|
-
free(): void;
|
100
|
-
/**
|
101
|
-
* New CRL Distribution of members of this group
|
102
|
-
*/
|
103
|
-
readonly crlNewDistributionPoints: (string)[] | undefined;
|
104
|
-
/**
|
105
|
-
* TLS-serialized MLS proposal that needs to be fanned out to other (existing) members of the conversation
|
106
|
-
*/
|
107
|
-
readonly proposal: Uint8Array;
|
108
|
-
/**
|
109
|
-
* Unique identifier of a proposal. Use this in {@link CoreCrypto.clearPendingProposal} to roll back (delete) the proposal
|
110
|
-
*/
|
111
|
-
readonly proposalRef: Uint8Array;
|
112
|
-
}
|
113
|
-
/**
|
114
|
-
* see [core_crypto::prelude::WelcomeBundle]
|
115
|
-
*/
|
116
|
-
export class WelcomeBundle {
|
117
|
-
free(): void;
|
118
|
-
/**
|
119
|
-
* New CRL Distribution of members of this group
|
120
|
-
*/
|
121
|
-
readonly crlNewDistributionPoints: (string)[] | undefined;
|
122
|
-
/**
|
123
|
-
* Identifier of the joined conversation
|
124
|
-
*/
|
125
|
-
readonly id: Uint8Array;
|
126
|
-
}
|
127
|
-
/**
|
128
95
|
* Represents the identity claims identifying a client
|
129
96
|
* Those claims are verifiable by any member in the group
|
130
97
|
*/
|
@@ -597,6 +564,43 @@ export interface BufferedDecryptedMessage {
|
|
597
564
|
*/
|
598
565
|
crlNewDistributionPoints?: string[];
|
599
566
|
}
|
567
|
+
/**
|
568
|
+
* Returned by all methods creating proposals. Contains a proposal message and an identifier to roll back the proposal
|
569
|
+
*/
|
570
|
+
export interface ProposalBundle {
|
571
|
+
/**
|
572
|
+
* TLS-serialized MLS proposal that needs to be fanned out to other (existing) members of the conversation
|
573
|
+
*
|
574
|
+
* @readonly
|
575
|
+
*/
|
576
|
+
proposal: Uint8Array;
|
577
|
+
/**
|
578
|
+
* Unique identifier of a proposal. Use this in {@link CoreCrypto.clearPendingProposal} to roll back (delete) the proposal
|
579
|
+
*
|
580
|
+
* @readonly
|
581
|
+
*/
|
582
|
+
proposalRef: ProposalRef;
|
583
|
+
/**
|
584
|
+
* New CRL Distribution of members of this group
|
585
|
+
*
|
586
|
+
* @readonly
|
587
|
+
*/
|
588
|
+
crlNewDistributionPoints?: string[];
|
589
|
+
}
|
590
|
+
export interface WelcomeBundle {
|
591
|
+
/**
|
592
|
+
* Conversation ID
|
593
|
+
*
|
594
|
+
* @readonly
|
595
|
+
*/
|
596
|
+
id: Uint8Array;
|
597
|
+
/**
|
598
|
+
* New CRL Distribution of members of this group
|
599
|
+
*
|
600
|
+
* @readonly
|
601
|
+
*/
|
602
|
+
crlNewDistributionPoints?: string[];
|
603
|
+
}
|
600
604
|
/**
|
601
605
|
* MLS Proposal type
|
602
606
|
*/
|
@@ -906,9 +910,10 @@ export declare class CoreCrypto {
|
|
906
910
|
* Get the client's public signature key. To upload to the DS for further backend side validation
|
907
911
|
*
|
908
912
|
* @param ciphersuite - of the signature key to get
|
913
|
+
* @param credentialType - of the public key to look for
|
909
914
|
* @returns the client's public signature key
|
910
915
|
*/
|
911
|
-
clientPublicKey(ciphersuite: Ciphersuite): Promise<Uint8Array>;
|
916
|
+
clientPublicKey(ciphersuite: Ciphersuite, credentialType: CredentialType): Promise<Uint8Array>;
|
912
917
|
/**
|
913
918
|
*
|
914
919
|
* @param ciphersuite - of the KeyPackages to count
|
@@ -1068,6 +1073,15 @@ export declare class CoreCrypto {
|
|
1068
1073
|
* @returns A `Uint8Array` representing the derived key
|
1069
1074
|
*/
|
1070
1075
|
exportSecretKey(conversationId: ConversationId, keyLength: number): Promise<Uint8Array>;
|
1076
|
+
/**
|
1077
|
+
* Returns the raw public key of the single external sender present in this group.
|
1078
|
+
* This should be used to initialize a subconversation
|
1079
|
+
*
|
1080
|
+
* @param conversationId - The group's ID
|
1081
|
+
*
|
1082
|
+
* @returns A `Uint8Array` representing the external sender raw public key
|
1083
|
+
*/
|
1084
|
+
getExternalSender(conversationId: ConversationId): Promise<Uint8Array>;
|
1071
1085
|
/**
|
1072
1086
|
* Returns all clients from group's members
|
1073
1087
|
*
|