@xmtp/node-bindings 1.2.0-dev.3d6d1ef → 1.2.0-dev.b96f93d

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
@@ -24,6 +24,12 @@ export declare class Client {
24
24
  */
25
25
  inboxState(refreshFromNetwork: boolean): Promise<InboxState>
26
26
  getLatestInboxState(inboxId: string): Promise<InboxState>
27
+ /**
28
+ * Get key package statuses for a list of installation IDs.
29
+ *
30
+ * Returns a JavaScript Object mapping installation ID strings to KeyPackageStatus objects.
31
+ */
32
+ getKeyPackageStatusesForInstallationIds(installationIds: Array<string>): Promise<Record<string, KeyPackageStatus>>
27
33
  createInboxSignatureText(): Promise<string | null>
28
34
  addIdentifierSignatureText(newIdentifier: Identifier): Promise<string>
29
35
  revokeIdentifierSignatureText(identifier: Identifier): Promise<string>
@@ -289,6 +295,16 @@ export declare export declare function isAddressAuthorized(host: string, inboxId
289
295
 
290
296
  export declare export declare function isInstallationAuthorized(host: string, inboxId: string, installationId: Uint8Array): Promise<boolean>
291
297
 
298
+ export interface KeyPackageStatus {
299
+ lifetime?: Lifetime
300
+ validationError?: string
301
+ }
302
+
303
+ export interface Lifetime {
304
+ notBefore: bigint
305
+ notAfter: bigint
306
+ }
307
+
292
308
  export interface ListConversationsOptions {
293
309
  consentStates?: Array<ConsentState>
294
310
  createdAfterNs?: number
package/dist/version.json CHANGED
@@ -1,5 +1,5 @@
1
1
  {
2
- "branch": "main",
3
- "version": "3d6d1ef",
4
- "date": "2025-03-26 03:44:38 +0000"
2
+ "branch": "1.2.0-dev.bed98df",
3
+ "version": "b96f93d",
4
+ "date": "2025-04-22 23:51:18 +0000"
5
5
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/node-bindings",
3
- "version": "1.2.0-dev.3d6d1ef",
3
+ "version": "1.2.0-dev.b96f93d",
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.23.2",
51
+ "viem": "^2.24.2",
52
52
  "vite": "^6.2.0",
53
53
  "vite-tsconfig-paths": "^5.1.4",
54
54
  "vitest": "^3.0.4",