@xmtp/node-bindings 1.6.6 → 1.6.9

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.
Binary file
package/dist/index.d.ts CHANGED
@@ -1,5 +1,15 @@
1
1
  /* auto-generated by NAPI-RS */
2
2
  /* eslint-disable */
3
+ export declare class AuthCallback {
4
+ constructor(callback: () => Promise<Credential>)
5
+ }
6
+
7
+ export declare class AuthHandle {
8
+ constructor()
9
+ set(credential: Credential): Promise<void>
10
+ id(): bigint
11
+ }
12
+
3
13
  export declare class Client {
4
14
  get accountIdentifier(): Identifier
5
15
  inboxId(): string
@@ -102,6 +112,7 @@ export declare class Conversation {
102
112
  findDuplicateDms(): Promise<Array<Conversation>>
103
113
  findEnrichedMessages(opts?: ListMessagesOptions | undefined | null): Promise<Array<DecodedMessage>>
104
114
  getLastReadTimes(): Promise<Record<string, number>>
115
+ leaveGroup(): Promise<void>
105
116
  }
106
117
 
107
118
  export declare class ConversationListItem {
@@ -152,6 +163,7 @@ export declare class DecodedMessage {
152
163
  get transactionReferenceContent(): TransactionReference | null
153
164
  get groupUpdatedContent(): GroupUpdated | null
154
165
  get readReceiptContent(): ReadReceipt | null
166
+ get leaveRequestContent(): LeaveRequest | null
155
167
  get walletSendCallsContent(): WalletSendCalls | null
156
168
  get customContent(): EncodedContent | null
157
169
  }
@@ -159,17 +171,7 @@ export declare class DecodedMessage {
159
171
  export declare class EnrichedReply {
160
172
  get referenceId(): string
161
173
  get content(): DecodedMessageBody
162
- get inReplyTo(): NodeDecodedMessage | null
163
- }
164
-
165
- export declare class FfiAuthCallback {
166
- constructor(callback: () => Promise<FfiCredential>)
167
- }
168
-
169
- export declare class FfiAuthHandle {
170
- constructor()
171
- set(credential: FfiCredential): Promise<void>
172
- id(): bigint
174
+ get inReplyTo(): DecodedMessage | null
173
175
  }
174
176
 
175
177
  export declare class GroupMember {
@@ -320,7 +322,7 @@ export declare const enum ConversationType {
320
322
  * It can be one of: `debug`, `info`, `warn`, `error` or 'off'.
321
323
  * By default, logging is disabled.
322
324
  */
323
- export declare function createClient(v3Host: string, gatewayHost: string | undefined | null, isSecure: boolean, dbPath: string | undefined | null, inboxId: string, accountIdentifier: Identifier, encryptionKey?: Uint8Array | undefined | null, deviceSyncServerUrl?: string | undefined | null, deviceSyncWorkerMode?: SyncWorkerMode | undefined | null, logOptions?: LogOptions | undefined | null, allowOffline?: boolean | undefined | null, disableEvents?: boolean | undefined | null, appVersion?: string | undefined | null, nonce?: bigint | undefined | null, authCallback?: FfiAuthCallback | undefined | null, authHandle?: FfiAuthHandle | undefined | null, clientMode?: ClientMode | undefined | null): Promise<Client>
325
+ export declare function createClient(v3Host: string, gatewayHost: string | undefined | null, isSecure: boolean, dbPath: string | undefined | null, inboxId: string, accountIdentifier: Identifier, encryptionKey?: Uint8Array | undefined | null, deviceSyncServerUrl?: string | undefined | null, deviceSyncWorkerMode?: SyncWorkerMode | undefined | null, logOptions?: LogOptions | undefined | null, allowOffline?: boolean | undefined | null, disableEvents?: boolean | undefined | null, appVersion?: string | undefined | null, nonce?: bigint | undefined | null, authCallback?: AuthCallback | undefined | null, authHandle?: AuthHandle | undefined | null, clientMode?: ClientMode | undefined | null): Promise<Client>
324
326
 
325
327
  export interface CreateDmOptions {
326
328
  messageDisappearingSettings?: MessageDisappearingSettings
@@ -336,9 +338,15 @@ export interface CreateGroupOptions {
336
338
  appData?: string
337
339
  }
338
340
 
339
- export declare function decodeActions(bytes: Uint8Array): Actions
341
+ export interface Credential {
342
+ name?: string
343
+ value: string
344
+ expiresAtSeconds: number
345
+ }
346
+
347
+ export declare function decodeActions(encodedContent: EncodedContent): Actions
340
348
 
341
- export declare function decodeAttachment(bytes: Uint8Array): Attachment
349
+ export declare function decodeAttachment(encodedContent: EncodedContent): Attachment
342
350
 
343
351
  export interface DecodedMessageBody {
344
352
  textContent?: TextContent
@@ -349,31 +357,34 @@ export interface DecodedMessageBody {
349
357
  transactionReferenceContent?: TransactionReference
350
358
  groupUpdatedContent?: GroupUpdated
351
359
  readReceiptContent?: ReadReceipt
360
+ leaveRequestContent?: LeaveRequest
352
361
  walletSendCallsContent?: WalletSendCalls
353
362
  intentContent?: Intent
354
363
  actionsContent?: Actions
355
364
  customContent?: EncodedContent
356
365
  }
357
366
 
358
- export declare function decodeGroupUpdated(bytes: Uint8Array): GroupUpdated
367
+ export declare function decodeGroupUpdated(encodedContent: EncodedContent): GroupUpdated
359
368
 
360
- export declare function decodeIntent(bytes: Uint8Array): Intent
369
+ export declare function decodeIntent(encodedContent: EncodedContent): Intent
361
370
 
362
- export declare function decodeMultiRemoteAttachment(bytes: Uint8Array): MultiRemoteAttachment
371
+ export declare function decodeLeaveRequest(encodedContent: EncodedContent): LeaveRequest
363
372
 
364
- export declare function decodeReaction(bytes: Uint8Array): Reaction
373
+ export declare function decodeMultiRemoteAttachment(encodedContent: EncodedContent): MultiRemoteAttachment
365
374
 
366
- export declare function decodeReadReceipt(bytes: Uint8Array): ReadReceipt
375
+ export declare function decodeReaction(encodedContent: EncodedContent): Reaction
367
376
 
368
- export declare function decodeRemoteAttachment(bytes: Uint8Array): RemoteAttachment
377
+ export declare function decodeReadReceipt(encodedContent: EncodedContent): ReadReceipt
369
378
 
370
- export declare function decodeReply(bytes: Uint8Array): Reply
379
+ export declare function decodeRemoteAttachment(encodedContent: EncodedContent): RemoteAttachment
371
380
 
372
- export declare function decodeText(bytes: Uint8Array): string
381
+ export declare function decodeReply(encodedContent: EncodedContent): Reply
373
382
 
374
- export declare function decodeTransactionReference(bytes: Uint8Array): TransactionReference
383
+ export declare function decodeText(encodedContent: EncodedContent): string
375
384
 
376
- export declare function decodeWalletSendCalls(bytes: Uint8Array): WalletSendCalls
385
+ export declare function decodeTransactionReference(encodedContent: EncodedContent): TransactionReference
386
+
387
+ export declare function decodeWalletSendCalls(encodedContent: EncodedContent): WalletSendCalls
377
388
 
378
389
  export declare const enum DeliveryStatus {
379
390
  Unpublished = 0,
@@ -397,6 +408,8 @@ export interface EncodedContent {
397
408
 
398
409
  export declare function encodeIntent(intent: Intent): Uint8Array
399
410
 
411
+ export declare function encodeLeaveRequest(leaveRequest: LeaveRequest): Uint8Array
412
+
400
413
  export declare function encodeMultiRemoteAttachment(multiRemoteAttachment: MultiRemoteAttachment): Uint8Array
401
414
 
402
415
  export declare function encodeReaction(reaction: Reaction): Uint8Array
@@ -413,12 +426,6 @@ export declare function encodeTransactionReference(transactionReference: Transac
413
426
 
414
427
  export declare function encodeWalletSendCalls(walletSendCalls: WalletSendCalls): Uint8Array
415
428
 
416
- export interface FfiCredential {
417
- name?: string
418
- value: string
419
- expiresAtSeconds: number
420
- }
421
-
422
429
  export declare function generateInboxId(accountIdent: Identifier, nonce?: bigint | undefined | null): string
423
430
 
424
431
  export declare function getInboxIdForIdentifier(v3Host: string, gatewayHost: string | undefined | null, isSecure: boolean, identifier: Identifier): Promise<string | null>
@@ -515,6 +522,10 @@ export interface KeyPackageStatus {
515
522
  validationError?: string
516
523
  }
517
524
 
525
+ export interface LeaveRequest {
526
+ authenticatedNote?: Uint8Array
527
+ }
528
+
518
529
  export interface Lifetime {
519
530
  notBefore: bigint
520
531
  notAfter: bigint
package/dist/index.js CHANGED
@@ -81,8 +81,8 @@ function requireNative() {
81
81
  try {
82
82
  const binding = require('@xmtp/node-bindings-android-arm64')
83
83
  const bindingPackageVersion = require('@xmtp/node-bindings-android-arm64/package.json').version
84
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
85
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
84
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
85
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
86
86
  }
87
87
  return binding
88
88
  } catch (e) {
@@ -97,8 +97,8 @@ function requireNative() {
97
97
  try {
98
98
  const binding = require('@xmtp/node-bindings-android-arm-eabi')
99
99
  const bindingPackageVersion = require('@xmtp/node-bindings-android-arm-eabi/package.json').version
100
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
101
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
100
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
101
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
102
102
  }
103
103
  return binding
104
104
  } catch (e) {
@@ -118,8 +118,8 @@ function requireNative() {
118
118
  try {
119
119
  const binding = require('@xmtp/node-bindings-win32-x64-gnu')
120
120
  const bindingPackageVersion = require('@xmtp/node-bindings-win32-x64-gnu/package.json').version
121
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
122
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
121
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
122
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
123
123
  }
124
124
  return binding
125
125
  } catch (e) {
@@ -134,8 +134,8 @@ function requireNative() {
134
134
  try {
135
135
  const binding = require('@xmtp/node-bindings-win32-x64-msvc')
136
136
  const bindingPackageVersion = require('@xmtp/node-bindings-win32-x64-msvc/package.json').version
137
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
138
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
137
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
138
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
139
139
  }
140
140
  return binding
141
141
  } catch (e) {
@@ -151,8 +151,8 @@ function requireNative() {
151
151
  try {
152
152
  const binding = require('@xmtp/node-bindings-win32-ia32-msvc')
153
153
  const bindingPackageVersion = require('@xmtp/node-bindings-win32-ia32-msvc/package.json').version
154
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
155
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
154
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
155
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
156
156
  }
157
157
  return binding
158
158
  } catch (e) {
@@ -167,8 +167,8 @@ function requireNative() {
167
167
  try {
168
168
  const binding = require('@xmtp/node-bindings-win32-arm64-msvc')
169
169
  const bindingPackageVersion = require('@xmtp/node-bindings-win32-arm64-msvc/package.json').version
170
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
171
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
170
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
171
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
172
172
  }
173
173
  return binding
174
174
  } catch (e) {
@@ -186,8 +186,8 @@ function requireNative() {
186
186
  try {
187
187
  const binding = require('@xmtp/node-bindings-darwin-universal')
188
188
  const bindingPackageVersion = require('@xmtp/node-bindings-darwin-universal/package.json').version
189
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
190
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
189
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
190
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
191
191
  }
192
192
  return binding
193
193
  } catch (e) {
@@ -202,8 +202,8 @@ function requireNative() {
202
202
  try {
203
203
  const binding = require('@xmtp/node-bindings-darwin-x64')
204
204
  const bindingPackageVersion = require('@xmtp/node-bindings-darwin-x64/package.json').version
205
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
206
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
205
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
206
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
207
207
  }
208
208
  return binding
209
209
  } catch (e) {
@@ -218,8 +218,8 @@ function requireNative() {
218
218
  try {
219
219
  const binding = require('@xmtp/node-bindings-darwin-arm64')
220
220
  const bindingPackageVersion = require('@xmtp/node-bindings-darwin-arm64/package.json').version
221
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
222
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
221
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
222
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
223
223
  }
224
224
  return binding
225
225
  } catch (e) {
@@ -238,8 +238,8 @@ function requireNative() {
238
238
  try {
239
239
  const binding = require('@xmtp/node-bindings-freebsd-x64')
240
240
  const bindingPackageVersion = require('@xmtp/node-bindings-freebsd-x64/package.json').version
241
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
242
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
241
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
242
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
243
243
  }
244
244
  return binding
245
245
  } catch (e) {
@@ -254,8 +254,8 @@ function requireNative() {
254
254
  try {
255
255
  const binding = require('@xmtp/node-bindings-freebsd-arm64')
256
256
  const bindingPackageVersion = require('@xmtp/node-bindings-freebsd-arm64/package.json').version
257
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
258
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
257
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
258
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
259
259
  }
260
260
  return binding
261
261
  } catch (e) {
@@ -275,8 +275,8 @@ function requireNative() {
275
275
  try {
276
276
  const binding = require('@xmtp/node-bindings-linux-x64-musl')
277
277
  const bindingPackageVersion = require('@xmtp/node-bindings-linux-x64-musl/package.json').version
278
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
279
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
278
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
279
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
280
280
  }
281
281
  return binding
282
282
  } catch (e) {
@@ -291,8 +291,8 @@ function requireNative() {
291
291
  try {
292
292
  const binding = require('@xmtp/node-bindings-linux-x64-gnu')
293
293
  const bindingPackageVersion = require('@xmtp/node-bindings-linux-x64-gnu/package.json').version
294
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
295
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
294
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
295
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
296
296
  }
297
297
  return binding
298
298
  } catch (e) {
@@ -309,8 +309,8 @@ function requireNative() {
309
309
  try {
310
310
  const binding = require('@xmtp/node-bindings-linux-arm64-musl')
311
311
  const bindingPackageVersion = require('@xmtp/node-bindings-linux-arm64-musl/package.json').version
312
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
313
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
312
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
313
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
314
314
  }
315
315
  return binding
316
316
  } catch (e) {
@@ -325,8 +325,8 @@ function requireNative() {
325
325
  try {
326
326
  const binding = require('@xmtp/node-bindings-linux-arm64-gnu')
327
327
  const bindingPackageVersion = require('@xmtp/node-bindings-linux-arm64-gnu/package.json').version
328
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
329
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
328
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
329
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
330
330
  }
331
331
  return binding
332
332
  } catch (e) {
@@ -343,8 +343,8 @@ function requireNative() {
343
343
  try {
344
344
  const binding = require('@xmtp/node-bindings-linux-arm-musleabihf')
345
345
  const bindingPackageVersion = require('@xmtp/node-bindings-linux-arm-musleabihf/package.json').version
346
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
347
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
346
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
347
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
348
348
  }
349
349
  return binding
350
350
  } catch (e) {
@@ -359,8 +359,8 @@ function requireNative() {
359
359
  try {
360
360
  const binding = require('@xmtp/node-bindings-linux-arm-gnueabihf')
361
361
  const bindingPackageVersion = require('@xmtp/node-bindings-linux-arm-gnueabihf/package.json').version
362
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
363
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
362
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
363
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
364
364
  }
365
365
  return binding
366
366
  } catch (e) {
@@ -377,8 +377,8 @@ function requireNative() {
377
377
  try {
378
378
  const binding = require('@xmtp/node-bindings-linux-loong64-musl')
379
379
  const bindingPackageVersion = require('@xmtp/node-bindings-linux-loong64-musl/package.json').version
380
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
381
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
380
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
381
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
382
382
  }
383
383
  return binding
384
384
  } catch (e) {
@@ -393,8 +393,8 @@ function requireNative() {
393
393
  try {
394
394
  const binding = require('@xmtp/node-bindings-linux-loong64-gnu')
395
395
  const bindingPackageVersion = require('@xmtp/node-bindings-linux-loong64-gnu/package.json').version
396
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
397
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
396
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
397
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
398
398
  }
399
399
  return binding
400
400
  } catch (e) {
@@ -411,8 +411,8 @@ function requireNative() {
411
411
  try {
412
412
  const binding = require('@xmtp/node-bindings-linux-riscv64-musl')
413
413
  const bindingPackageVersion = require('@xmtp/node-bindings-linux-riscv64-musl/package.json').version
414
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
415
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
414
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
415
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
416
416
  }
417
417
  return binding
418
418
  } catch (e) {
@@ -427,8 +427,8 @@ function requireNative() {
427
427
  try {
428
428
  const binding = require('@xmtp/node-bindings-linux-riscv64-gnu')
429
429
  const bindingPackageVersion = require('@xmtp/node-bindings-linux-riscv64-gnu/package.json').version
430
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
431
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
430
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
431
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
432
432
  }
433
433
  return binding
434
434
  } catch (e) {
@@ -444,8 +444,8 @@ function requireNative() {
444
444
  try {
445
445
  const binding = require('@xmtp/node-bindings-linux-ppc64-gnu')
446
446
  const bindingPackageVersion = require('@xmtp/node-bindings-linux-ppc64-gnu/package.json').version
447
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
448
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
447
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
448
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
449
449
  }
450
450
  return binding
451
451
  } catch (e) {
@@ -460,8 +460,8 @@ function requireNative() {
460
460
  try {
461
461
  const binding = require('@xmtp/node-bindings-linux-s390x-gnu')
462
462
  const bindingPackageVersion = require('@xmtp/node-bindings-linux-s390x-gnu/package.json').version
463
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
464
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
463
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
464
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
465
465
  }
466
466
  return binding
467
467
  } catch (e) {
@@ -480,8 +480,8 @@ function requireNative() {
480
480
  try {
481
481
  const binding = require('@xmtp/node-bindings-openharmony-arm64')
482
482
  const bindingPackageVersion = require('@xmtp/node-bindings-openharmony-arm64/package.json').version
483
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
484
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
483
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
484
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
485
485
  }
486
486
  return binding
487
487
  } catch (e) {
@@ -496,8 +496,8 @@ function requireNative() {
496
496
  try {
497
497
  const binding = require('@xmtp/node-bindings-openharmony-x64')
498
498
  const bindingPackageVersion = require('@xmtp/node-bindings-openharmony-x64/package.json').version
499
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
500
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
499
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
500
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
501
501
  }
502
502
  return binding
503
503
  } catch (e) {
@@ -512,8 +512,8 @@ function requireNative() {
512
512
  try {
513
513
  const binding = require('@xmtp/node-bindings-openharmony-arm')
514
514
  const bindingPackageVersion = require('@xmtp/node-bindings-openharmony-arm/package.json').version
515
- if (bindingPackageVersion !== '1.6.6' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
516
- throw new Error(`Native binding package version mismatch, expected 1.6.6 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
515
+ if (bindingPackageVersion !== '1.6.9' && process.env.NAPI_RS_ENFORCE_VERSION_CHECK && process.env.NAPI_RS_ENFORCE_VERSION_CHECK !== '0') {
516
+ throw new Error(`Native binding package version mismatch, expected 1.6.9 but got ${bindingPackageVersion}. You can reinstall dependencies to fix this issue.`)
517
517
  }
518
518
  return binding
519
519
  } catch (e) {
@@ -575,15 +575,15 @@ if (!nativeBinding) {
575
575
  throw new Error(`Failed to load native binding`)
576
576
  }
577
577
 
578
- const { Client, Conversation, ConversationListItem, Conversations, DecodedMessage, EnrichedReply, FfiAuthCallback, FfiAuthHandle, GroupMember, GroupMetadata, GroupPermissions, SignatureRequestHandle, StreamCloser, ActionStyle, applySignatureRequest, ClientMode, ConsentEntityType, ConsentState, ContentType, ConversationType, createClient, decodeActions, decodeAttachment, decodeGroupUpdated, decodeIntent, decodeMultiRemoteAttachment, decodeReaction, decodeReadReceipt, decodeRemoteAttachment, decodeReply, decodeText, decodeTransactionReference, decodeWalletSendCalls, DeliveryStatus, deserializeEncodedContent, encodeActions, encodeAttachment, encodeIntent, encodeMultiRemoteAttachment, encodeReaction, encodeReadReceipt, encodeRemoteAttachment, encodeReply, encodeText, encodeTransactionReference, encodeWalletSendCalls, generateInboxId, getInboxIdForIdentifier, GroupMembershipState, GroupMessageKind, GroupPermissionsOptions, IdentifierKind, inboxStateFromInboxIds, isAddressAuthorized, isInstallationAuthorized, ListConversationsOrderBy, LogLevel, MessageSortBy, MetadataField, PermissionLevel, PermissionPolicy, PermissionUpdateType, ReactionAction, ReactionSchema, revokeInstallationsSignatureRequest, serializeEncodedContent, SortDirection, SyncWorkerMode, verifySignedWithPublicKey } = nativeBinding
578
+ const { AuthCallback, AuthHandle, Client, Conversation, ConversationListItem, Conversations, DecodedMessage, EnrichedReply, GroupMember, GroupMetadata, GroupPermissions, SignatureRequestHandle, StreamCloser, ActionStyle, applySignatureRequest, ClientMode, ConsentEntityType, ConsentState, ContentType, ConversationType, createClient, decodeActions, decodeAttachment, decodeGroupUpdated, decodeIntent, decodeLeaveRequest, decodeMultiRemoteAttachment, decodeReaction, decodeReadReceipt, decodeRemoteAttachment, decodeReply, decodeText, decodeTransactionReference, decodeWalletSendCalls, DeliveryStatus, deserializeEncodedContent, encodeActions, encodeAttachment, encodeIntent, encodeLeaveRequest, encodeMultiRemoteAttachment, encodeReaction, encodeReadReceipt, encodeRemoteAttachment, encodeReply, encodeText, encodeTransactionReference, encodeWalletSendCalls, generateInboxId, getInboxIdForIdentifier, GroupMembershipState, GroupMessageKind, GroupPermissionsOptions, IdentifierKind, inboxStateFromInboxIds, isAddressAuthorized, isInstallationAuthorized, ListConversationsOrderBy, LogLevel, MessageSortBy, MetadataField, PermissionLevel, PermissionPolicy, PermissionUpdateType, ReactionAction, ReactionSchema, revokeInstallationsSignatureRequest, serializeEncodedContent, SortDirection, SyncWorkerMode, verifySignedWithPublicKey } = nativeBinding
579
+ export { AuthCallback }
580
+ export { AuthHandle }
579
581
  export { Client }
580
582
  export { Conversation }
581
583
  export { ConversationListItem }
582
584
  export { Conversations }
583
585
  export { DecodedMessage }
584
586
  export { EnrichedReply }
585
- export { FfiAuthCallback }
586
- export { FfiAuthHandle }
587
587
  export { GroupMember }
588
588
  export { GroupMetadata }
589
589
  export { GroupPermissions }
@@ -601,6 +601,7 @@ export { decodeActions }
601
601
  export { decodeAttachment }
602
602
  export { decodeGroupUpdated }
603
603
  export { decodeIntent }
604
+ export { decodeLeaveRequest }
604
605
  export { decodeMultiRemoteAttachment }
605
606
  export { decodeReaction }
606
607
  export { decodeReadReceipt }
@@ -614,6 +615,7 @@ export { deserializeEncodedContent }
614
615
  export { encodeActions }
615
616
  export { encodeAttachment }
616
617
  export { encodeIntent }
618
+ export { encodeLeaveRequest }
617
619
  export { encodeMultiRemoteAttachment }
618
620
  export { encodeReaction }
619
621
  export { encodeReadReceipt }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/node-bindings",
3
- "version": "1.6.6",
3
+ "version": "1.6.9",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://git@github.com/xmtp/libxmtp.git",