@open-e2ee/signal-protocol-sdk 13.2.0 → 13.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +73 -0
- package/README.md +1 -1
- package/SECURITY.md +2 -2
- package/dist/client/client.d.ts.map +1 -1
- package/dist/client/client.js +37 -4
- package/dist/client/client.js.map +1 -1
- package/dist/client/group-outbox.d.ts +2 -1
- package/dist/client/group-outbox.d.ts.map +1 -1
- package/dist/client/group-outbox.js +4 -1
- package/dist/client/group-outbox.js.map +1 -1
- package/dist/client/hosted-mailbox-subscription.d.ts +4 -2
- package/dist/client/hosted-mailbox-subscription.d.ts.map +1 -1
- package/dist/client/hosted-mailbox-subscription.js +4 -2
- package/dist/client/hosted-mailbox-subscription.js.map +1 -1
- package/dist/client/receive-work-seed.d.ts +6 -2
- package/dist/client/receive-work-seed.d.ts.map +1 -1
- package/dist/client/receive-work-seed.js +4 -0
- package/dist/client/receive-work-seed.js.map +1 -1
- package/dist/client/relay-subscription.js +1 -1
- package/dist/client/relay-subscription.js.map +1 -1
- package/dist/client/retry-family.d.ts +69 -13
- package/dist/client/retry-family.d.ts.map +1 -1
- package/dist/client/retry-family.js +104 -11
- package/dist/client/retry-family.js.map +1 -1
- package/dist/client/send-timestamp.d.ts +67 -0
- package/dist/client/send-timestamp.d.ts.map +1 -0
- package/dist/client/send-timestamp.js +82 -0
- package/dist/client/send-timestamp.js.map +1 -0
- package/dist/client/signal-service-cipher.d.ts +5 -0
- package/dist/client/signal-service-cipher.d.ts.map +1 -1
- package/dist/client/signal-service-cipher.js +31 -5
- package/dist/client/signal-service-cipher.js.map +1 -1
- package/dist/client/types.d.ts +9 -0
- package/dist/client/types.d.ts.map +1 -1
- package/dist/client/types.js.map +1 -1
- package/dist/local/store/reliability.d.ts +6 -3
- package/dist/local/store/reliability.d.ts.map +1 -1
- package/dist/local/store/reliability.js +6 -3
- package/dist/local/store/reliability.js.map +1 -1
- package/dist/local/store/sqlite/convert-plaintext.d.ts +1 -7
- package/dist/local/store/sqlite/convert-plaintext.d.ts.map +1 -1
- package/dist/local/store/sqlite/convert-plaintext.js +1 -9
- package/dist/local/store/sqlite/convert-plaintext.js.map +1 -1
- package/dist/local/store/sqlite/file-name.d.ts +5 -0
- package/dist/local/store/sqlite/file-name.d.ts.map +1 -0
- package/dist/local/store/sqlite/file-name.js +7 -0
- package/dist/local/store/sqlite/file-name.js.map +1 -0
- package/dist/local/store/sqlite/open-store.d.ts.map +1 -1
- package/dist/local/store/sqlite/open-store.js +2 -1
- package/dist/local/store/sqlite/open-store.js.map +1 -1
- package/dist/local/store/sqlite/web/file-name.d.ts +22 -0
- package/dist/local/store/sqlite/web/file-name.d.ts.map +1 -0
- package/dist/local/store/sqlite/web/file-name.js +72 -0
- package/dist/local/store/sqlite/web/file-name.js.map +1 -0
- package/dist/local/store/sqlite/web/worker.js +5 -12
- package/dist/local/store/sqlite/web/worker.js.map +1 -1
- package/dist/local/store/web-sqlite/adapter.d.ts +5 -4
- package/dist/local/store/web-sqlite/adapter.d.ts.map +1 -1
- package/dist/local/store/web-sqlite/adapter.js +7 -4
- package/dist/local/store/web-sqlite/adapter.js.map +1 -1
- package/dist/local/vault/indexed-db.d.ts +7 -3
- package/dist/local/vault/indexed-db.d.ts.map +1 -1
- package/dist/local/vault/indexed-db.js +25 -21
- package/dist/local/vault/indexed-db.js.map +1 -1
- package/dist/types/api.d.ts +25 -0
- package/dist/types/api.d.ts.map +1 -1
- package/dist/types/errors.d.ts +69 -1
- package/dist/types/errors.d.ts.map +1 -1
- package/dist/types/errors.js +77 -1
- package/dist/types/errors.js.map +1 -1
- package/docs/ASSURANCE.md +1 -1
- package/docs/DEVIATIONS.md +3 -3
- package/docs/ERROR_HANDLING.md +1 -0
- package/docs/GETTING_STARTED.md +10 -0
- package/local/store/README.md +16 -9
- package/local/store/web-sqlite/README.md +22 -6
- package/package.json +1 -1
|
@@ -24,7 +24,8 @@ export interface RetryFamilyReceive {
|
|
|
24
24
|
/**
|
|
25
25
|
* The resend or the null message that the envelope is, when the family
|
|
26
26
|
* index of the local device holds its retry ID. Undefined for any other
|
|
27
|
-
* envelope
|
|
27
|
+
* envelope, and after `bindSender` names a sender that is not the
|
|
28
|
+
* requested sender: the envelope is then an ordinary envelope.
|
|
28
29
|
*/
|
|
29
30
|
readonly member: ResolvedRetryFamilyMember | undefined;
|
|
30
31
|
/**
|
|
@@ -33,17 +34,52 @@ export interface RetryFamilyReceive {
|
|
|
33
34
|
* content of its failed envelope: the caller then acknowledges the
|
|
34
35
|
* envelope and drops it, with no decrypt and no retry request. This
|
|
35
36
|
* applies to the failed envelope and to each member. The check writes a
|
|
36
|
-
* debug log line for a dropped envelope.
|
|
37
|
+
* debug log line for a dropped envelope.
|
|
38
|
+
*
|
|
39
|
+
* An identified envelope names its sender, so `admit` binds the envelope
|
|
40
|
+
* to that sender first. A member from another sender is then an ordinary
|
|
41
|
+
* envelope. A member from the requested sender that goes to the decrypt
|
|
37
42
|
* marks the stored request attempt answered when the member has its
|
|
38
|
-
* attempt number.
|
|
43
|
+
* attempt number. A sealed member names its sender only inside the seal,
|
|
44
|
+
* so its mark waits for `bindSender`.
|
|
45
|
+
*
|
|
46
|
+
* @param fingerprint - The fingerprint of the received envelope. An
|
|
47
|
+
* envelope under the ID of a failed envelope fulfills the request of
|
|
48
|
+
* that ID only when this is the fingerprint that the record stores.
|
|
49
|
+
*/
|
|
50
|
+
admit(fingerprint: string | undefined): Promise<boolean>;
|
|
51
|
+
/**
|
|
52
|
+
* Bind the envelope to the sender that the decrypt authenticates: the
|
|
53
|
+
* sender of an identified envelope, or the sender inside a seal. The
|
|
54
|
+
* receive commit calls it before the decrypt. A member answers its
|
|
55
|
+
* request only when this sender is the account and the device that the
|
|
56
|
+
* request record names. Any other sender makes the member an ordinary
|
|
57
|
+
* envelope: it does not mark the request answered, and it does not
|
|
58
|
+
* fulfill or process the failed envelope. One warn line with the behavior
|
|
59
|
+
* RETRY_ANSWER_SENDER_MISMATCH records it.
|
|
60
|
+
*
|
|
61
|
+
* An envelope that is not a member fulfills the request record of its
|
|
62
|
+
* own ID only when this sender is the sender of the failed envelope that
|
|
63
|
+
* the record names.
|
|
39
64
|
*/
|
|
40
|
-
|
|
65
|
+
bindSender(sender: {
|
|
66
|
+
readonly senderUserId?: string;
|
|
67
|
+
readonly senderDeviceId?: number;
|
|
68
|
+
}): void;
|
|
41
69
|
/**
|
|
42
70
|
* Tell which failed envelope a decrypt with this content fulfills: the
|
|
43
|
-
* failed envelope of a member, or
|
|
44
|
-
*
|
|
45
|
-
*
|
|
46
|
-
*
|
|
71
|
+
* failed envelope of a member, or the envelope itself when it is the
|
|
72
|
+
* failed envelope of the request record of its ID. Undefined when
|
|
73
|
+
* `fulfill` writes nothing for it. The receive record of the content
|
|
74
|
+
* names the result as its `failedEnvelopeId`. A member with no bound
|
|
75
|
+
* sender fulfills nothing. Call it after `admit` and `bindSender`.
|
|
76
|
+
*
|
|
77
|
+
* The Relay names the envelope ID, so an ID does not prove that the
|
|
78
|
+
* envelope is the failed envelope. An envelope under the ID of a failed
|
|
79
|
+
* envelope is that envelope only when its fingerprint is the fingerprint
|
|
80
|
+
* of the record and its bound sender is the sender of the failed envelope
|
|
81
|
+
* that the record names. Any other envelope under that ID, also a member
|
|
82
|
+
* from another sender, is an ordinary envelope and fulfills nothing.
|
|
47
83
|
*/
|
|
48
84
|
fulfills(decrypted?: {
|
|
49
85
|
readonly senderKeyDistribution: boolean;
|
|
@@ -78,6 +114,10 @@ export interface RetryFamilyReceive {
|
|
|
78
114
|
* that brings content beside the distribution fulfills the failed
|
|
79
115
|
* envelope, as any other member does.
|
|
80
116
|
*
|
|
117
|
+
* A member with no bound sender writes nothing, as an ordinary envelope
|
|
118
|
+
* with no request record. An envelope that `fulfills` does not name as
|
|
119
|
+
* the failed envelope of the record of its ID also writes nothing.
|
|
120
|
+
*
|
|
81
121
|
* @param decrypted - The decrypted content. `senderKeyDistribution` is
|
|
82
122
|
* true when the content carries a sender-key distribution. `content` is
|
|
83
123
|
* true when it carries content other than a distribution. `groupId` is
|
|
@@ -92,8 +132,8 @@ export interface RetryFamilyReceive {
|
|
|
92
132
|
/**
|
|
93
133
|
* Record a decrypted null message, in place of `fulfill`. A null
|
|
94
134
|
* message carries no content, so the caller never gives it to the
|
|
95
|
-
* application. The null message is processed. For a member
|
|
96
|
-
* envelope is processed and not fulfilled: a redelivery of the failed
|
|
135
|
+
* application. The null message is processed. For a member with a bound
|
|
136
|
+
* sender, the failed envelope is processed and not fulfilled: a redelivery of the failed
|
|
97
137
|
* envelope is dropped, the client asks for it no more, and a content
|
|
98
138
|
* resend that comes later is still admitted. When a processed write
|
|
99
139
|
* fails, it writes one warning with the behavior
|
|
@@ -110,6 +150,9 @@ export interface RetryFamilyReceive {
|
|
|
110
150
|
* device that the request went to. The result is that envelope with the
|
|
111
151
|
* sender of the record. Any other envelope, and a member with an
|
|
112
152
|
* identified sender or with no request envelope, is returned as it is.
|
|
153
|
+
*
|
|
154
|
+
* The name serves only the routing of the next retry request. It does not
|
|
155
|
+
* bind the sender, so the member never fulfills the request.
|
|
113
156
|
*/
|
|
114
157
|
withRequestedSender<E extends {
|
|
115
158
|
senderUserId: string;
|
|
@@ -120,7 +163,9 @@ export interface RetryFamilyReceive {
|
|
|
120
163
|
* record is keyed by the failed envelope of the family. A member never
|
|
121
164
|
* starts a family of its own: it asks again for its failed envelope,
|
|
122
165
|
* under the retry ID of the record, and the fingerprint check of the
|
|
123
|
-
* failed envelope does not apply to it.
|
|
166
|
+
* failed envelope does not apply to it. A member whose seal failed to
|
|
167
|
+
* open marks the stored attempt answered here, so the post asks for the
|
|
168
|
+
* next attempt.
|
|
124
169
|
*
|
|
125
170
|
* @param fingerprint - The fingerprint of the received envelope.
|
|
126
171
|
* @param post - Posts the request for the given failure, and gives what
|
|
@@ -158,11 +203,22 @@ export interface RetryFamilyReceive {
|
|
|
158
203
|
* @param hooks - The client hooks, for `onDeliveryRecovered`.
|
|
159
204
|
* @param envelope - The IDs of the received envelope: the delivered
|
|
160
205
|
* envelope ID, and the client message ID when the relay delivers one.
|
|
206
|
+
* The sender and the message type that the relay delivered bind a member
|
|
207
|
+
* of an identified envelope to its sender.
|
|
161
208
|
* @param receive - The receive path. It runs under the lock.
|
|
162
209
|
*/
|
|
163
|
-
export declare function receiveInRetryFamily<T>(storage: RetryFamilyStore, logger: Required<Logger>, hooks: SignalProtocolClientHooks | undefined, envelope:
|
|
210
|
+
export declare function receiveInRetryFamily<T>(storage: RetryFamilyStore, logger: Required<Logger>, hooks: SignalProtocolClientHooks | undefined, envelope: Parameters<typeof retryFamilyReceive>[2], receive: (family: RetryFamilyReceive) => Promise<T>): Promise<T>;
|
|
211
|
+
/** The account and the device that a request record asked for a resend. */
|
|
212
|
+
interface RequestedSender {
|
|
213
|
+
readonly userId: string;
|
|
214
|
+
readonly deviceId: number;
|
|
215
|
+
}
|
|
216
|
+
declare function retryFamilyReceive(storage: RetryFamilyStore, logger: Required<Logger>, delivered: {
|
|
164
217
|
readonly id?: string;
|
|
165
218
|
readonly clientMessageId?: string;
|
|
166
|
-
|
|
219
|
+
readonly senderUserId?: string;
|
|
220
|
+
readonly senderDeviceId?: number;
|
|
221
|
+
readonly messageType?: string;
|
|
222
|
+
}, envelopeId: string | undefined, resolved: ResolvedRetryFamilyMember | undefined, requested: RequestedSender | undefined): RetryFamilyReceive;
|
|
167
223
|
export {};
|
|
168
224
|
//# sourceMappingURL=retry-family.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry-family.d.ts","sourceRoot":"","sources":["../../client/retry-family.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAEH,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,WAAW,CAAC;AACxC,OAAO,EAQL,yBAAyB,EACzB,KAAK,yBAAyB,EAE/B,MAAM,4BAA4B,CAAC;AACpC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,C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ED,2EAA2E;AAC3E,UAAU,eAAe;IACvB,QAAQ,CAAC,MAAM,EAAE,MAAM,CAAC;IACxB,QAAQ,CAAC,QAAQ,EAAE,MAAM,CAAC;CAC3B;AAQD,iBAAS,kBAAkB,CACzB,OAAO,EAAE,gBAAgB,EACzB,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,EACxB,SAAS,EAAE;IACT,QAAQ,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC;IACrB,QAAQ,CAAC,eAAe,CAAC,EAAE,MAAM,CAAC;IAClC,QAAQ,CAAC,YAAY,CAAC,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,cAAc,CAAC,EAAE,MAAM,CAAC;IACjC,QAAQ,CAAC,WAAW,CAAC,EAAE,MAAM,CAAC;CAC/B,EACD,UAAU,EAAE,MAAM,GAAG,SAAS,EAC9B,QAAQ,EAAE,yBAAyB,GAAG,SAAS,EAC/C,SAAS,EAAE,eAAe,GAAG,SAAS,GACrC,kBAAkB,CAmPpB"}
|
|
@@ -35,12 +35,14 @@ import { reportDeliveryRecovered } from './delivery-error.js';
|
|
|
35
35
|
* @param hooks - The client hooks, for `onDeliveryRecovered`.
|
|
36
36
|
* @param envelope - The IDs of the received envelope: the delivered
|
|
37
37
|
* envelope ID, and the client message ID when the relay delivers one.
|
|
38
|
+
* The sender and the message type that the relay delivered bind a member
|
|
39
|
+
* of an identified envelope to its sender.
|
|
38
40
|
* @param receive - The receive path. It runs under the lock.
|
|
39
41
|
*/
|
|
40
42
|
export async function receiveInRetryFamily(storage, logger, hooks, envelope, receive) {
|
|
41
43
|
const envelopeId = envelope.id;
|
|
42
44
|
if (!envelopeId) {
|
|
43
|
-
return receive(retryFamilyReceive(storage, logger, undefined, undefined));
|
|
45
|
+
return receive(retryFamilyReceive(storage, logger, envelope, undefined, undefined, undefined));
|
|
44
46
|
}
|
|
45
47
|
const member = await resolveRetryFamilyMember(storage, envelope.clientMessageId ?? envelopeId);
|
|
46
48
|
const failedEnvelopeId = member?.failedEnvelopeId ?? envelopeId;
|
|
@@ -48,18 +50,93 @@ export async function receiveInRetryFamily(storage, logger, hooks, envelope, rec
|
|
|
48
50
|
// A recovery whose hook did not return runs again. An error from the
|
|
49
51
|
// hook fails the receive, so the envelope is delivered again.
|
|
50
52
|
await reportDeliveryRecovered(storage, hooks, failedEnvelopeId);
|
|
51
|
-
|
|
53
|
+
const requested = member
|
|
54
|
+
? requestedSenderOf(await getRetryRequest(storage, member.failedEnvelopeId))
|
|
55
|
+
: undefined;
|
|
56
|
+
return receive(retryFamilyReceive(storage, logger, envelope, envelopeId, member, requested));
|
|
52
57
|
});
|
|
53
58
|
}
|
|
54
|
-
|
|
55
|
-
|
|
59
|
+
/** The target of the request envelope of a record. A record with none names no sender. */
|
|
60
|
+
function requestedSenderOf(request) {
|
|
61
|
+
if (!request?.envelope)
|
|
62
|
+
return undefined;
|
|
63
|
+
return { userId: request.envelope.targetUserId, deviceId: request.envelope.targetDeviceId };
|
|
64
|
+
}
|
|
65
|
+
function retryFamilyReceive(storage, logger, delivered, envelopeId, resolved, requested) {
|
|
66
|
+
// A member from a sender that the request did not name becomes an
|
|
67
|
+
// ordinary envelope, keyed by its own ID.
|
|
68
|
+
let member = resolved;
|
|
69
|
+
let failedEnvelopeId = member?.failedEnvelopeId ?? envelopeId;
|
|
56
70
|
// The read comes before the decrypt, so only writes follow the commit.
|
|
57
71
|
let request = null;
|
|
72
|
+
// The request record of the envelope ID of a sealed member, for the case
|
|
73
|
+
// that its seal names another sender.
|
|
74
|
+
let ownRequest = null;
|
|
75
|
+
// True when `bindSender` named the requested sender.
|
|
76
|
+
let senderBound = false;
|
|
77
|
+
// The sender that `bindSender` named last, for the record of the own ID.
|
|
78
|
+
let boundSender;
|
|
79
|
+
// The fingerprint of the received envelope, from `admit`.
|
|
80
|
+
let receivedFingerprint;
|
|
81
|
+
// True when the answered mark of a sealed member waits for its sender.
|
|
82
|
+
let answerDue = false;
|
|
83
|
+
function bindSender(sender) {
|
|
84
|
+
boundSender = { userId: sender.senderUserId, deviceId: sender.senderDeviceId };
|
|
85
|
+
if (!member)
|
|
86
|
+
return;
|
|
87
|
+
if (requested !== undefined &&
|
|
88
|
+
sender.senderUserId === requested.userId &&
|
|
89
|
+
sender.senderDeviceId === requested.deviceId) {
|
|
90
|
+
senderBound = true;
|
|
91
|
+
return;
|
|
92
|
+
}
|
|
93
|
+
logger.warn('A retry answer came from a sender that its request did not name', {
|
|
94
|
+
category: 'E2EE',
|
|
95
|
+
data: { envelopeId, behavior: 'RETRY_ANSWER_SENDER_MISMATCH' },
|
|
96
|
+
});
|
|
97
|
+
member = undefined;
|
|
98
|
+
failedEnvelopeId = envelopeId;
|
|
99
|
+
request = ownRequest;
|
|
100
|
+
senderBound = false;
|
|
101
|
+
answerDue = false;
|
|
102
|
+
}
|
|
103
|
+
/**
|
|
104
|
+
* Tell whether the envelope is the failed envelope of `request`, the
|
|
105
|
+
* record of its own ID: the Relay delivered the envelope that the record
|
|
106
|
+
* fingerprints, and the decrypt authenticated the sender of the failed
|
|
107
|
+
* envelope. A record that names no such sender names no failed envelope.
|
|
108
|
+
*/
|
|
109
|
+
function isFailedEnvelope() {
|
|
110
|
+
if (!request || !boundSender)
|
|
111
|
+
return false;
|
|
112
|
+
if (request.fingerprint === undefined || request.fingerprint !== receivedFingerprint) {
|
|
113
|
+
return false;
|
|
114
|
+
}
|
|
115
|
+
const sender = request.failedSender ?? requestedSenderOf(request);
|
|
116
|
+
return (sender !== undefined &&
|
|
117
|
+
boundSender.userId === sender.userId &&
|
|
118
|
+
boundSender.deviceId === sender.deviceId);
|
|
119
|
+
}
|
|
120
|
+
/** Mark the stored attempt answered for a member whose mark waited. */
|
|
121
|
+
async function markAnswered() {
|
|
122
|
+
if (!answerDue || !member || failedEnvelopeId === undefined)
|
|
123
|
+
return;
|
|
124
|
+
answerDue = false;
|
|
125
|
+
await markRetryRequestAnswered(storage, failedEnvelopeId, member.retryId, member.attempt);
|
|
126
|
+
}
|
|
58
127
|
return {
|
|
59
|
-
member
|
|
60
|
-
|
|
128
|
+
get member() {
|
|
129
|
+
return member;
|
|
130
|
+
},
|
|
131
|
+
async admit(fingerprint) {
|
|
61
132
|
if (failedEnvelopeId === undefined)
|
|
62
133
|
return true;
|
|
134
|
+
receivedFingerprint = fingerprint;
|
|
135
|
+
// The relay names the sender of an identified envelope, and its decrypt
|
|
136
|
+
// uses the session of that sender, so the binding comes first.
|
|
137
|
+
if (delivered.messageType !== 'unidentified_sender' && delivered.senderUserId) {
|
|
138
|
+
bindSender(delivered);
|
|
139
|
+
}
|
|
63
140
|
// A member that posted a request is processed, so its redelivery asks
|
|
64
141
|
// for nothing again.
|
|
65
142
|
if (envelopeId && (await getProcessedEnvelope(storage, envelopeId))) {
|
|
@@ -81,25 +158,36 @@ function retryFamilyReceive(storage, logger, envelopeId, member) {
|
|
|
81
158
|
}
|
|
82
159
|
// A member of attempt n answers attempt n, so a member failure then
|
|
83
160
|
// posts the next attempt. A member of an earlier attempt answers
|
|
84
|
-
// nothing, so its failure posts the stored attempt again.
|
|
85
|
-
|
|
161
|
+
// nothing, so its failure posts the stored attempt again. A sealed
|
|
162
|
+
// member marks it once its sender is known.
|
|
163
|
+
if (member && senderBound) {
|
|
86
164
|
await markRetryRequestAnswered(storage, failedEnvelopeId, member.retryId, member.attempt);
|
|
87
165
|
}
|
|
166
|
+
else if (member && envelopeId) {
|
|
167
|
+
answerDue = true;
|
|
168
|
+
ownRequest = await getRetryRequest(storage, envelopeId);
|
|
169
|
+
}
|
|
88
170
|
request = await getRetryRequest(storage, failedEnvelopeId);
|
|
89
171
|
return true;
|
|
90
172
|
},
|
|
173
|
+
bindSender,
|
|
91
174
|
fulfills(decrypted) {
|
|
175
|
+
if (member && !senderBound)
|
|
176
|
+
return undefined;
|
|
92
177
|
if (member &&
|
|
93
178
|
request?.groupMessage &&
|
|
94
179
|
decrypted?.senderKeyDistribution &&
|
|
95
180
|
!decrypted.content) {
|
|
96
181
|
return undefined;
|
|
97
182
|
}
|
|
98
|
-
if (failedEnvelopeId === undefined || !(member ||
|
|
183
|
+
if (failedEnvelopeId === undefined || !(member || isFailedEnvelope()))
|
|
99
184
|
return undefined;
|
|
100
185
|
return failedEnvelopeId;
|
|
101
186
|
},
|
|
102
187
|
async fulfill(decrypted) {
|
|
188
|
+
if (member && !senderBound)
|
|
189
|
+
return;
|
|
190
|
+
await markAnswered();
|
|
103
191
|
if (member &&
|
|
104
192
|
request?.groupMessage &&
|
|
105
193
|
decrypted?.senderKeyDistribution &&
|
|
@@ -110,7 +198,7 @@ function retryFamilyReceive(storage, logger, envelopeId, member) {
|
|
|
110
198
|
});
|
|
111
199
|
return;
|
|
112
200
|
}
|
|
113
|
-
if (failedEnvelopeId === undefined || !(member ||
|
|
201
|
+
if (failedEnvelopeId === undefined || !(member || isFailedEnvelope()))
|
|
114
202
|
return;
|
|
115
203
|
try {
|
|
116
204
|
const groupId = decrypted?.groupId;
|
|
@@ -141,8 +229,10 @@ function retryFamilyReceive(storage, logger, envelopeId, member) {
|
|
|
141
229
|
},
|
|
142
230
|
async consumeNull(fingerprint) {
|
|
143
231
|
try {
|
|
144
|
-
if (member)
|
|
232
|
+
if (member && senderBound) {
|
|
233
|
+
await markAnswered();
|
|
145
234
|
await storeProcessedEnvelope(storage, member.failedEnvelopeId);
|
|
235
|
+
}
|
|
146
236
|
if (envelopeId) {
|
|
147
237
|
await storeProcessedEnvelope(storage, envelopeId, Date.now(), fingerprint);
|
|
148
238
|
}
|
|
@@ -193,6 +283,9 @@ function retryFamilyReceive(storage, logger, envelopeId, member) {
|
|
|
193
283
|
stored,
|
|
194
284
|
});
|
|
195
285
|
}
|
|
286
|
+
// A member whose seal failed to open names no sender. Its failure
|
|
287
|
+
// still answers the stored attempt, so the post asks for the next one.
|
|
288
|
+
await markAnswered();
|
|
196
289
|
// A member has its own content, so its fingerprint is not the
|
|
197
290
|
// fingerprint of the failed envelope.
|
|
198
291
|
const stored = await getRetryRequest(storage, failedEnvelopeId);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"retry-family.js","sourceRoot":"","sources":["../../client/retry-family.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,kCAAkC,EAClC,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,GAG1B,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"retry-family.js","sourceRoot":"","sources":["../../client/retry-family.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,EACL,oBAAoB,EACpB,eAAe,EACf,wBAAwB,EACxB,wBAAwB,EACxB,kCAAkC,EAClC,sBAAsB,EACtB,kBAAkB,EAClB,yBAAyB,GAG1B,MAAM,4BAA4B,CAAC;AAGpC,OAAO,EAAE,uBAAuB,EAAE,MAAM,kBAAkB,CAAC;AAyK3D;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,MAAM,CAAC,KAAK,UAAU,oBAAoB,CACxC,OAAyB,EACzB,MAAwB,EACxB,KAA4C,EAC5C,QAAkD,EAClD,OAAmD;IAEnD,MAAM,UAAU,GAAG,QAAQ,CAAC,EAAE,CAAC;IAC/B,IAAI,CAAC,UAAU,EAAE,CAAC;QAChB,OAAO,OAAO,CAAC,kBAAkB,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,SAAS,CAAC,CAAC,CAAC;IACjG,CAAC;IACD,MAAM,MAAM,GAAG,MAAM,wBAAwB,CAC3C,OAAO,EACP,QAAQ,CAAC,eAAe,IAAI,UAAU,CACvC,CAAC;IACF,MAAM,gBAAgB,GAAG,MAAM,EAAE,gBAAgB,IAAI,UAAU,CAAC;IAChE,OAAO,yBAAyB,CAAC,OAAO,EAAE,gBAAgB,EAAE,KAAK,IAAI,EA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,EAAE,MAAM;wBAChB,IAAI,EAAE,EAAE,UAAU,EAAE,QAAQ,EAAE,gCAAgC,EAAE;qBACjE,CAAC,CAAC;oBACH,OAAO,SAAS,CAAC;gBACnB,CAAC;gBACD,OAAO,IAAI,CAAC;oBACV,EAAE,EAAE,gBAAgB;oBACpB,GAAG,CAAC,WAAW,KAAK,SAAS,IAAI,EAAE,WAAW,EAAE,CAAC;oBACjD,MAAM;iBACP,CAAC,CAAC;YACL,CAAC;YACD,kEAAkE;YAClE,uEAAuE;YACvE,MAAM,YAAY,EAAE,CAAC;YACrB,8DAA8D;YAC9D,sCAAsC;YACtC,MAAM,MAAM,GAAG,MAAM,eAAe,CAAC,OAAO,EAAE,gBAAgB,CAAC,CAAC;YAChE,MAAM,OAAO,GAAG,MAAM,IAAI,CAAC;gBACzB,EAAE,EAAE,gBAAgB;gBACpB,GAAG,CAAC,MAAM,EAAE,WAAW,KAAK,SAAS,IAAI,EAAE,WAAW,EAAE,MAAM,CAAC,WAAW,EAAE,CAAC;gBAC7E,MAAM;gBACN,GAAG,CAAC,UAAU,KAAK,SAAS,IAAI,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;aACxD,CAAC,CAAC;YACH,IAAI,CAAC,OAAO,KAAK,QAAQ,IAAI,OAAO,KAAK,UAAU,CAAC,IAAI,UAAU,EAAE,CAAC;gBACnE,MAAM,sBAAsB,CAAC,OAAO,EAAE,UAAU,EAAE,IAAI,CAAC,GAAG,EAAE,EAAE,WAAW,CAAC,CAAC;YAC7E,CAAC;YACD,OAAO,OAAO,CAAC;QACjB,CAAC;KACF,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The client timestamp of a new send, which is the operation epoch of the
|
|
3
|
+
* send.
|
|
4
|
+
*
|
|
5
|
+
* The SDK stores the timestamp with the send intent, and each retry of the
|
|
6
|
+
* send keeps it, so the Relay sees one operation however often the SDK posts
|
|
7
|
+
* it. From the Relay release that follows v2026.10.25, the Relay admits a
|
|
8
|
+
* mailbox delivery epoch and a new group fan-out operation at most 5 minutes
|
|
9
|
+
* ahead of its clock and at most 24 hours behind it. Earlier Relay releases
|
|
10
|
+
* admit a new operation only within 5 minutes of its epoch. The SDK check
|
|
11
|
+
* uses the same bounds, so a new send checks an application-supplied
|
|
12
|
+
* timestamp against the SDK clock before it stores the intent or posts
|
|
13
|
+
* anything. A sync to linked devices whose epoch is an application-supplied
|
|
14
|
+
* time gets the same check before it posts.
|
|
15
|
+
*
|
|
16
|
+
* A send that repeats a stored `clientMessageId` with its stored timestamp
|
|
17
|
+
* is not checked again: its epoch can be older than 24 hours, and the Relay
|
|
18
|
+
* replays an accepted operation by its epoch. With another timestamp, the
|
|
19
|
+
* check applies. A timestamp that the SDK
|
|
20
|
+
* reads from its own clock is never checked.
|
|
21
|
+
*
|
|
22
|
+
* The client checks a new send once, at the entry of the send, against one
|
|
23
|
+
* clock reading. It then marks the options with the origin of the timestamp,
|
|
24
|
+
* so the inner checks of that send do not check it again with a later clock.
|
|
25
|
+
* The mark has a symbol key that no package subpath exports, and the client
|
|
26
|
+
* sets it after it spreads the application's options, so an application
|
|
27
|
+
* cannot set it.
|
|
28
|
+
*/
|
|
29
|
+
import type { SendOptions } from './types.js';
|
|
30
|
+
/** A new send refuses a timestamp more than this far ahead of the SDK clock. */
|
|
31
|
+
export declare const SEND_TIMESTAMP_FUTURE_SKEW_MILLISECONDS: number;
|
|
32
|
+
/** A new send refuses a timestamp more than this far behind the SDK clock. */
|
|
33
|
+
export declare const SEND_TIMESTAMP_MAX_AGE_MILLISECONDS: number;
|
|
34
|
+
/** The key of the timestamp origin mark. No package subpath exports it. */
|
|
35
|
+
export declare const SEND_TIMESTAMP_ORIGIN: unique symbol;
|
|
36
|
+
/**
|
|
37
|
+
* The origin of a timestamp that a send does not check again: `sdk-clock`
|
|
38
|
+
* when the SDK read it from its own clock, and `checked` when the entry of
|
|
39
|
+
* the send already checked it.
|
|
40
|
+
*/
|
|
41
|
+
export type SendTimestampOriginKind = 'sdk-clock' | 'checked';
|
|
42
|
+
/** The options of a send, with the mark of the origin of their `timestamp`. */
|
|
43
|
+
export interface SendTimestampOrigin {
|
|
44
|
+
readonly [SEND_TIMESTAMP_ORIGIN]?: SendTimestampOriginKind;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* Check the timestamp of a new send, and throw when the SDK refuses it.
|
|
48
|
+
*
|
|
49
|
+
* @throws {InvalidSendTimestampError} when an application-supplied timestamp
|
|
50
|
+
* is not a safe positive integer, or is outside the window
|
|
51
|
+
*/
|
|
52
|
+
export declare function checkNewSendTimestamp(options: Pick<SendOptions, 'timestamp'> & SendTimestampOrigin, now?: number): void;
|
|
53
|
+
/**
|
|
54
|
+
* Check the timestamp of a new send once, and return the options with the
|
|
55
|
+
* mark that stops the inner checks of the send.
|
|
56
|
+
*
|
|
57
|
+
* @throws {InvalidSendTimestampError} as `checkNewSendTimestamp` does
|
|
58
|
+
*/
|
|
59
|
+
export declare function withCheckedSendTimestamp<T extends Pick<SendOptions, 'timestamp'> & SendTimestampOrigin>(options: T, now?: number): T;
|
|
60
|
+
/**
|
|
61
|
+
* The client timestamp of a new send: the checked timestamp of the options,
|
|
62
|
+
* or the SDK clock when the options have none.
|
|
63
|
+
*
|
|
64
|
+
* @throws {InvalidSendTimestampError} as `checkNewSendTimestamp` does
|
|
65
|
+
*/
|
|
66
|
+
export declare function newSendClientTimestamp(options: Pick<SendOptions, 'timestamp'> & SendTimestampOrigin, now?: number): number;
|
|
67
|
+
//# sourceMappingURL=send-timestamp.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"send-timestamp.d.ts","sourceRoot":"","sources":["../../client/send-timestamp.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AAGH,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAE3C,gFAAgF;AAChF,eAAO,MAAM,uCAAuC,QAAiB,CAAC;AAEtE,8EAA8E;AAC9E,eAAO,MAAM,mCAAmC,QAAuB,CAAC;AAExE,2EAA2E;AAC3E,eAAO,MAAM,qBAAqB,EAAE,OAAO,MAAsC,CAAC;AAElF;;;;GAIG;AACH,MAAM,MAAM,uBAAuB,GAAG,WAAW,GAAG,SAAS,CAAC;AAE9D,+EAA+E;AAC/E,MAAM,WAAW,mBAAmB;IAClC,QAAQ,CAAC,CAAC,qBAAqB,CAAC,CAAC,EAAE,uBAAuB,CAAC;CAC5D;AAED;;;;;GAKG;AACH,wBAAgB,qBAAqB,CACnC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,mBAAmB,EAC7D,GAAG,GAAE,MAAmB,GACvB,IAAI,CAgBN;AAED;;;;;GAKG;AACH,wBAAgB,wBAAwB,CACtC,CAAC,SAAS,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,mBAAmB,EAC9D,OAAO,EAAE,CAAC,EAAE,GAAG,GAAE,MAAmB,GAAG,CAAC,CAIzC;AAED;;;;;GAKG;AACH,wBAAgB,sBAAsB,CACpC,OAAO,EAAE,IAAI,CAAC,WAAW,EAAE,WAAW,CAAC,GAAG,mBAAmB,EAC7D,GAAG,GAAE,MAAmB,GACvB,MAAM,CAGR"}
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The client timestamp of a new send, which is the operation epoch of the
|
|
3
|
+
* send.
|
|
4
|
+
*
|
|
5
|
+
* The SDK stores the timestamp with the send intent, and each retry of the
|
|
6
|
+
* send keeps it, so the Relay sees one operation however often the SDK posts
|
|
7
|
+
* it. From the Relay release that follows v2026.10.25, the Relay admits a
|
|
8
|
+
* mailbox delivery epoch and a new group fan-out operation at most 5 minutes
|
|
9
|
+
* ahead of its clock and at most 24 hours behind it. Earlier Relay releases
|
|
10
|
+
* admit a new operation only within 5 minutes of its epoch. The SDK check
|
|
11
|
+
* uses the same bounds, so a new send checks an application-supplied
|
|
12
|
+
* timestamp against the SDK clock before it stores the intent or posts
|
|
13
|
+
* anything. A sync to linked devices whose epoch is an application-supplied
|
|
14
|
+
* time gets the same check before it posts.
|
|
15
|
+
*
|
|
16
|
+
* A send that repeats a stored `clientMessageId` with its stored timestamp
|
|
17
|
+
* is not checked again: its epoch can be older than 24 hours, and the Relay
|
|
18
|
+
* replays an accepted operation by its epoch. With another timestamp, the
|
|
19
|
+
* check applies. A timestamp that the SDK
|
|
20
|
+
* reads from its own clock is never checked.
|
|
21
|
+
*
|
|
22
|
+
* The client checks a new send once, at the entry of the send, against one
|
|
23
|
+
* clock reading. It then marks the options with the origin of the timestamp,
|
|
24
|
+
* so the inner checks of that send do not check it again with a later clock.
|
|
25
|
+
* The mark has a symbol key that no package subpath exports, and the client
|
|
26
|
+
* sets it after it spreads the application's options, so an application
|
|
27
|
+
* cannot set it.
|
|
28
|
+
*/
|
|
29
|
+
import { InvalidSendTimestampError } from '../types/errors.js';
|
|
30
|
+
/** A new send refuses a timestamp more than this far ahead of the SDK clock. */
|
|
31
|
+
export const SEND_TIMESTAMP_FUTURE_SKEW_MILLISECONDS = 5 * 60 * 1_000;
|
|
32
|
+
/** A new send refuses a timestamp more than this far behind the SDK clock. */
|
|
33
|
+
export const SEND_TIMESTAMP_MAX_AGE_MILLISECONDS = 24 * 60 * 60 * 1_000;
|
|
34
|
+
/** The key of the timestamp origin mark. No package subpath exports it. */
|
|
35
|
+
export const SEND_TIMESTAMP_ORIGIN = Symbol('sendTimestampOrigin');
|
|
36
|
+
/**
|
|
37
|
+
* Check the timestamp of a new send, and throw when the SDK refuses it.
|
|
38
|
+
*
|
|
39
|
+
* @throws {InvalidSendTimestampError} when an application-supplied timestamp
|
|
40
|
+
* is not a safe positive integer, or is outside the window
|
|
41
|
+
*/
|
|
42
|
+
export function checkNewSendTimestamp(options, now = Date.now()) {
|
|
43
|
+
const timestamp = options.timestamp;
|
|
44
|
+
if (timestamp == null || options[SEND_TIMESTAMP_ORIGIN] !== undefined)
|
|
45
|
+
return;
|
|
46
|
+
const window = {
|
|
47
|
+
earliest: now - SEND_TIMESTAMP_MAX_AGE_MILLISECONDS,
|
|
48
|
+
latest: now + SEND_TIMESTAMP_FUTURE_SKEW_MILLISECONDS,
|
|
49
|
+
};
|
|
50
|
+
if (!Number.isSafeInteger(timestamp) || timestamp < 1) {
|
|
51
|
+
throw new InvalidSendTimestampError(timestamp, 'not_safe_positive_integer', window);
|
|
52
|
+
}
|
|
53
|
+
if (timestamp > window.latest) {
|
|
54
|
+
throw new InvalidSendTimestampError(timestamp, 'too_far_ahead', window);
|
|
55
|
+
}
|
|
56
|
+
if (timestamp < window.earliest) {
|
|
57
|
+
throw new InvalidSendTimestampError(timestamp, 'too_old', window);
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
/**
|
|
61
|
+
* Check the timestamp of a new send once, and return the options with the
|
|
62
|
+
* mark that stops the inner checks of the send.
|
|
63
|
+
*
|
|
64
|
+
* @throws {InvalidSendTimestampError} as `checkNewSendTimestamp` does
|
|
65
|
+
*/
|
|
66
|
+
export function withCheckedSendTimestamp(options, now = Date.now()) {
|
|
67
|
+
if (options.timestamp == null || options[SEND_TIMESTAMP_ORIGIN] !== undefined)
|
|
68
|
+
return options;
|
|
69
|
+
checkNewSendTimestamp(options, now);
|
|
70
|
+
return { ...options, [SEND_TIMESTAMP_ORIGIN]: 'checked' };
|
|
71
|
+
}
|
|
72
|
+
/**
|
|
73
|
+
* The client timestamp of a new send: the checked timestamp of the options,
|
|
74
|
+
* or the SDK clock when the options have none.
|
|
75
|
+
*
|
|
76
|
+
* @throws {InvalidSendTimestampError} as `checkNewSendTimestamp` does
|
|
77
|
+
*/
|
|
78
|
+
export function newSendClientTimestamp(options, now = Date.now()) {
|
|
79
|
+
checkNewSendTimestamp(options, now);
|
|
80
|
+
return options.timestamp ?? now;
|
|
81
|
+
}
|
|
82
|
+
//# sourceMappingURL=send-timestamp.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
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MAAM,CAAC,CAAC;IACpE,CAAC;AACH,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,wBAAwB,CAEtC,OAAU,EAAE,GAAG,GAAW,IAAI,CAAC,GAAG,EAAE;IACpC,IAAI,OAAO,CAAC,SAAS,IAAI,IAAI,IAAI,OAAO,CAAC,qBAAqB,CAAC,KAAK,SAAS;QAAE,OAAO,OAAO,CAAC;IAC9F,qBAAqB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACpC,OAAO,EAAE,GAAG,OAAO,EAAE,CAAC,qBAAqB,CAAC,EAAE,SAAS,EAAE,CAAC;AAC5D,CAAC;AAED;;;;;GAKG;AACH,MAAM,UAAU,sBAAsB,CACpC,OAA6D,EAC7D,GAAG,GAAW,IAAI,CAAC,GAAG,EAAE;IAExB,qBAAqB,CAAC,OAAO,EAAE,GAAG,CAAC,CAAC;IACpC,OAAO,OAAO,CAAC,SAAS,IAAI,GAAG,CAAC;AAClC,CAAC"}
|
|
@@ -298,6 +298,11 @@ export declare class SignalProtocolServiceCipher {
|
|
|
298
298
|
* the same bound, so its sealed post runs without one here.
|
|
299
299
|
*/
|
|
300
300
|
private postToRelay;
|
|
301
|
+
/**
|
|
302
|
+
* Post a sync payload to this account's other devices. The timestamp is the
|
|
303
|
+
* epoch of the sync. A caller that passes an application-supplied time
|
|
304
|
+
* checks it first, as a new send checks its timestamp.
|
|
305
|
+
*/
|
|
301
306
|
private sendSyncPayloadToLocalOtherDevices;
|
|
302
307
|
sendReadSyncToLocalOtherDevices(entries: ReadSyncEntryInput[]): Promise<void>;
|
|
303
308
|
sendViewOnceOpenSyncToLocalOtherDevices(entry: ViewOnceOpenSyncInput): Promise<void>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"signal-service-cipher.d.ts","sourceRoot":"","sources":["../../client/signal-service-cipher.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAIH,OAAO,KAAK,EACV,yBAAyB,EACzB,QAAQ,EA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