@xmtp/node-bindings 1.6.0-dev.07065a7 → 1.6.0-dev.21f0ffd
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/dist/bindings_node.darwin-arm64.node +0 -0
- package/dist/bindings_node.darwin-x64.node +0 -0
- package/dist/bindings_node.linux-arm64-gnu.node +0 -0
- package/dist/bindings_node.linux-arm64-musl.node +0 -0
- package/dist/bindings_node.linux-x64-gnu.node +0 -0
- package/dist/bindings_node.linux-x64-musl.node +0 -0
- package/dist/bindings_node.win32-x64-msvc.node +0 -0
- package/dist/index.d.ts +18 -11
- package/dist/version.json +3 -3
- package/package.json +1 -1
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/dist/index.d.ts
CHANGED
|
@@ -15,7 +15,7 @@ export declare class Client {
|
|
|
15
15
|
sendSyncRequest(): Promise<void>
|
|
16
16
|
findInboxIdByIdentifier(identifier: Identifier): Promise<string | null>
|
|
17
17
|
addressesFromInboxId(refreshFromNetwork: boolean, inboxIds: Array<string>): Promise<Array<InboxState>>
|
|
18
|
-
syncPreferences(): Promise<
|
|
18
|
+
syncPreferences(): Promise<GroupSyncSummary>
|
|
19
19
|
apiStatistics(): ApiStats
|
|
20
20
|
apiIdentityStatistics(): IdentityStats
|
|
21
21
|
apiAggregateStatistics(): string
|
|
@@ -118,7 +118,7 @@ export declare class Conversations {
|
|
|
118
118
|
findMessageById(messageId: string): Message
|
|
119
119
|
processStreamedWelcomeMessage(envelopeBytes: Uint8Array): Promise<Conversation>
|
|
120
120
|
sync(): Promise<void>
|
|
121
|
-
syncAllConversations(consentStates?: Array<ConsentState> | undefined | null): Promise<
|
|
121
|
+
syncAllConversations(consentStates?: Array<ConsentState> | undefined | null): Promise<GroupSyncSummary>
|
|
122
122
|
list(opts?: ListConversationsOptions | undefined | null): Array<ConversationListItem>
|
|
123
123
|
getHmacKeys(): Record<string, Array<HmacKey>>
|
|
124
124
|
stream(callback: (err: Error | null, result: Conversation | undefined) => void, onClose: () => void, conversationType?: ConversationType): StreamCloser
|
|
@@ -239,14 +239,15 @@ export declare const enum ConsentState {
|
|
|
239
239
|
export declare const enum ContentType {
|
|
240
240
|
Unknown = 0,
|
|
241
241
|
Text = 1,
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
242
|
+
LeaveRequest = 2,
|
|
243
|
+
GroupMembershipChange = 3,
|
|
244
|
+
GroupUpdated = 4,
|
|
245
|
+
Reaction = 5,
|
|
246
|
+
ReadReceipt = 6,
|
|
247
|
+
Reply = 7,
|
|
248
|
+
Attachment = 8,
|
|
249
|
+
RemoteAttachment = 9,
|
|
250
|
+
TransactionReference = 10
|
|
250
251
|
}
|
|
251
252
|
|
|
252
253
|
export interface ContentTypeId {
|
|
@@ -340,7 +341,8 @@ export declare const enum GroupMembershipState {
|
|
|
340
341
|
Allowed = 0,
|
|
341
342
|
Rejected = 1,
|
|
342
343
|
Pending = 2,
|
|
343
|
-
Restored = 3
|
|
344
|
+
Restored = 3,
|
|
345
|
+
PendingRemove = 4
|
|
344
346
|
}
|
|
345
347
|
|
|
346
348
|
export declare const enum GroupMessageKind {
|
|
@@ -354,6 +356,11 @@ export declare const enum GroupPermissionsOptions {
|
|
|
354
356
|
CustomPolicy = 2
|
|
355
357
|
}
|
|
356
358
|
|
|
359
|
+
export interface GroupSyncSummary {
|
|
360
|
+
numEligible: number
|
|
361
|
+
numSynced: number
|
|
362
|
+
}
|
|
363
|
+
|
|
357
364
|
export interface GroupUpdated {
|
|
358
365
|
initiatedByInboxId: string
|
|
359
366
|
addedInboxes: Array<Inbox>
|
package/dist/version.json
CHANGED