@xmtp/node-bindings 0.0.25 → 0.0.27

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/README.md CHANGED
@@ -13,3 +13,7 @@
13
13
  ## Testing
14
14
 
15
15
  Before running the test suite, a local XMTP node must be running. This can be achieved by running `./dev/up` at the root of this repository. Docker is required.
16
+
17
+ # Publishing
18
+
19
+ To release a new version of the bindings, update the version in `package.json` with the appropriate semver value and add an entry to the CHANGELOG.md file. Once merged, manually trigger the `Release Node Bindings` workflow to build and publish the bindings.
Binary file
package/dist/index.d.ts CHANGED
@@ -226,6 +226,10 @@ export interface Installation {
226
226
  clientTimestampNs?: bigint
227
227
  }
228
228
 
229
+ export declare export declare function isAddressAuthorized(host: string, inboxId: string, address: string): Promise<boolean>
230
+
231
+ export declare export declare function isInstallationAuthorized(host: string, inboxId: string, installationId: Uint8Array): Promise<boolean>
232
+
229
233
  export interface ListConversationsOptions {
230
234
  allowedStates?: Array<GroupMembershipState>
231
235
  createdAfterNs?: number
package/dist/index.js CHANGED
@@ -365,7 +365,7 @@ if (!nativeBinding) {
365
365
  throw new Error(`Failed to load native binding`)
366
366
  }
367
367
 
368
- const { Client, Conversation, Conversations, GroupMember, GroupMetadata, GroupPermissions, StreamCloser, ConsentEntityType, ConsentState, ConversationType, createClient, DeliveryStatus, generateInboxId, getInboxIdForAddress, GroupMembershipState, GroupMessageKind, GroupPermissionsOptions, LogLevel, PermissionLevel, PermissionPolicy, PermissionUpdateType, SignatureRequestType, SortDirection, verifySignedWithPublicKey } = nativeBinding
368
+ const { Client, Conversation, Conversations, GroupMember, GroupMetadata, GroupPermissions, StreamCloser, ConsentEntityType, ConsentState, ConversationType, createClient, DeliveryStatus, generateInboxId, getInboxIdForAddress, GroupMembershipState, GroupMessageKind, GroupPermissionsOptions, isAddressAuthorized, isInstallationAuthorized, LogLevel, PermissionLevel, PermissionPolicy, PermissionUpdateType, SignatureRequestType, SortDirection, verifySignedWithPublicKey } = nativeBinding
369
369
  export { Client }
370
370
  export { Conversation }
371
371
  export { Conversations }
@@ -383,6 +383,8 @@ export { getInboxIdForAddress }
383
383
  export { GroupMembershipState }
384
384
  export { GroupMessageKind }
385
385
  export { GroupPermissionsOptions }
386
+ export { isAddressAuthorized }
387
+ export { isInstallationAuthorized }
386
388
  export { LogLevel }
387
389
  export { PermissionLevel }
388
390
  export { PermissionPolicy }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xmtp/node-bindings",
3
- "version": "0.0.25",
3
+ "version": "0.0.27",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "git+https://git@github.com/xmtp/libxmtp.git",
@@ -38,14 +38,14 @@
38
38
  "devDependencies": {
39
39
  "@ianvs/prettier-plugin-sort-imports": "^4.4.0",
40
40
  "@napi-rs/cli": "^3.0.0-alpha.64",
41
- "@types/node": "^22.9.0",
41
+ "@types/node": "^22.10.1",
42
42
  "@types/uuid": "^10.0.0",
43
- "prettier": "^3.3.3",
43
+ "prettier": "^3.4.1",
44
44
  "prettier-plugin-packagejson": "^2.5.3",
45
45
  "typescript": "^5.7.2",
46
46
  "uuid": "^11.0.3",
47
47
  "viem": "^2.21.47",
48
- "vite": "^5.4.11",
48
+ "vite": "^6.0.1",
49
49
  "vite-tsconfig-paths": "^5.1.2",
50
50
  "vitest": "^2.1.5"
51
51
  },