@xmtp/node-bindings 1.2.0-rc3 → 1.2.0-rc5

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
@@ -14,6 +14,10 @@ export declare class Client {
14
14
  findInboxIdByIdentifier(identifier: Identifier): Promise<string | null>
15
15
  addressesFromInboxId(refreshFromNetwork: boolean, inboxIds: Array<string>): Promise<Array<InboxState>>
16
16
  syncPreferences(): Promise<number>
17
+ apiStatistics(): ApiStats
18
+ apiIdentityStatistics(): IdentityStats
19
+ apiAggregateStatistics(): string
20
+ uploadDebugArchive(serverUrl: string): Promise<string>
17
21
  setConsentStates(records: Array<Consent>): Promise<void>
18
22
  getConsentState(entityType: ConsentEntityType, entity: string): Promise<ConsentState>
19
23
  /**
@@ -87,7 +91,7 @@ export declare class Conversation {
87
91
  removeMessageDisappearingSettings(): Promise<void>
88
92
  messageDisappearingSettings(): MessageDisappearingSettings | null
89
93
  isMessageDisappearingEnabled(): boolean
90
- getHmacKeys(): Array<HmacKey>
94
+ getHmacKeys(): Record<string, Array<HmacKey>>
91
95
  debugInfo(): Promise<ConversationDebugInfo>
92
96
  findDuplicateDms(): Promise<Array<Conversation>>
93
97
  }
@@ -109,7 +113,6 @@ export declare class Conversations {
109
113
  processStreamedWelcomeMessage(envelopeBytes: Uint8Array): Promise<Conversation>
110
114
  sync(): Promise<void>
111
115
  syncAllConversations(consentStates?: Array<ConsentState> | undefined | null): Promise<bigint>
112
- syncDeviceSync(): Promise<void>
113
116
  list(opts?: ListConversationsOptions | undefined | null): Array<ConversationListItem>
114
117
  getHmacKeys(): Record<string, Array<HmacKey>>
115
118
  stream(callback: (err: Error | null, result: Conversation | undefined) => void, conversationType?: ConversationType): StreamCloser
@@ -153,6 +156,17 @@ export declare class StreamCloser {
153
156
  isClosed(): boolean
154
157
  }
155
158
 
159
+ export interface ApiStats {
160
+ uploadKeyPackage: bigint
161
+ fetchKeyPackage: bigint
162
+ sendGroupMessages: bigint
163
+ sendWelcomeMessages: bigint
164
+ queryGroupMessages: bigint
165
+ queryWelcomeMessages: bigint
166
+ subscribeMessages: bigint
167
+ subscribeWelcomes: bigint
168
+ }
169
+
156
170
  export interface Consent {
157
171
  entityType: ConsentEntityType
158
172
  state: ConsentState
@@ -283,6 +297,13 @@ export declare const enum IdentifierKind {
283
297
  Passkey = 1
284
298
  }
285
299
 
300
+ export interface IdentityStats {
301
+ publishIdentityUpdate: bigint
302
+ getIdentityUpdatesV2: bigint
303
+ getInboxIds: bigint
304
+ verifySmartContractWalletSignature: bigint
305
+ }
306
+
286
307
  export interface InboxState {
287
308
  inboxId: string
288
309
  recoveryIdentifier: Identifier
package/dist/version.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "branch": "HEAD",
3
- "version": "b4e982c",
4
- "date": "2025-05-09 18:12:27 +0000"
2
+ "branch": "release/v1.2",
3
+ "version": "d990224",
4
+ "date": "2025-05-29 00:31:52 +0000"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/node-bindings",
3
- "version": "1.2.0-rc3",
3
+ "version": "1.2.0-rc5",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://git@github.com/xmtp/libxmtp.git",
@@ -48,7 +48,7 @@
48
48
  "tsx": "^4.19.3",
49
49
  "typescript": "^5.8.2",
50
50
  "uuid": "^11.1.0",
51
- "viem": "^2.28.0",
51
+ "viem": "^2.29.2",
52
52
  "vite": "^6.3.2",
53
53
  "vite-tsconfig-paths": "^5.1.4",
54
54
  "vitest": "^3.1.1",