From a1f27b8114a7db459b1af4d975d940a919519c0d Mon Sep 17 00:00:00 2001 From: Dakota Brink <779390+codabrink@users.noreply.github.com> Date: Tue, 26 Nov 2024 14:03:06 -0500 Subject: [PATCH] Update the node bindings (#737) * bump version * update node sdk --- sdks/node-sdk/package.json | 4 ++-- sdks/node-sdk/src/Client.ts | 14 ++++++++++++++ yarn.lock | 24 ++++++++++++++++++++++-- 3 files changed, 38 insertions(+), 4 deletions(-) diff --git a/sdks/node-sdk/package.json b/sdks/node-sdk/package.json index aaea946d..85669228 100644 --- a/sdks/node-sdk/package.json +++ b/sdks/node-sdk/package.json @@ -1,6 +1,6 @@ { "name": "@xmtp/node-sdk", - "version": "0.0.27", + "version": "0.0.28", "description": "XMTP Node client SDK for interacting with XMTP networks", "keywords": [ "xmtp", @@ -53,7 +53,7 @@ "@xmtp/content-type-group-updated": "^1.0.1", "@xmtp/content-type-primitives": "^1.0.3", "@xmtp/content-type-text": "^1.0.1", - "@xmtp/node-bindings": "^0.0.22", + "@xmtp/node-bindings": "^0.0.25", "@xmtp/proto": "^3.72.3" }, "devDependencies": { diff --git a/sdks/node-sdk/src/Client.ts b/sdks/node-sdk/src/Client.ts index 2bd7eff0..66416229 100644 --- a/sdks/node-sdk/src/Client.ts +++ b/sdks/node-sdk/src/Client.ts @@ -172,6 +172,20 @@ export class Client { return this.#innerClient.isRegistered(); } + async isAddressAuthorized( + inboxId: string, + address: string, + ): Promise { + return this.#innerClient.isAddressAuthorized(inboxId, address); + } + + async isInstallationAuthorized( + inboxId: string, + installationId: Uint8Array, + ): Promise { + return this.#innerClient.isInstallationAuthorized(inboxId, installationId); + } + async #createInboxSignatureText() { try { const signatureText = await this.#innerClient.createInboxSignatureText(); diff --git a/yarn.lock b/yarn.lock index 011b1f85..37c0c554 100644 --- a/yarn.lock +++ b/yarn.lock @@ -5086,7 +5086,27 @@ __metadata: languageName: node linkType: hard -"@xmtp/node-sdk@npm:^0.0.27, @xmtp/node-sdk@workspace:sdks/node-sdk": +"@xmtp/node-bindings@npm:^0.0.25": + version: 0.0.25 + resolution: "@xmtp/node-bindings@npm:0.0.25" + checksum: 10/336f9b2a4a8b2781f6c53a7dd444428893f5e04a927350c82fcb79e37e0cc69abcb86406ffedeaa28115f1b57801890309546a10c9e806e3ed81b18b9d8f1431 + languageName: node + linkType: hard + +"@xmtp/node-sdk@npm:^0.0.27": + version: 0.0.27 + resolution: "@xmtp/node-sdk@npm:0.0.27" + dependencies: + "@xmtp/content-type-group-updated": "npm:^1.0.1" + "@xmtp/content-type-primitives": "npm:^1.0.3" + "@xmtp/content-type-text": "npm:^1.0.1" + "@xmtp/node-bindings": "npm:^0.0.22" + "@xmtp/proto": "npm:^3.72.3" + checksum: 10/9937c77d4bd3f3ed8df2f9938e940e2c21a7c8e8f06506d227bb97939f8294e0ae6ec6bc1498f528274257d61f9142e38639aa123c3ddf086a98d9cd041c0161 + languageName: node + linkType: hard + +"@xmtp/node-sdk@workspace:sdks/node-sdk": version: 0.0.0-use.local resolution: "@xmtp/node-sdk@workspace:sdks/node-sdk" dependencies: @@ -5097,7 +5117,7 @@ __metadata: "@xmtp/content-type-group-updated": "npm:^1.0.1" "@xmtp/content-type-primitives": "npm:^1.0.3" "@xmtp/content-type-text": "npm:^1.0.1" - "@xmtp/node-bindings": "npm:^0.0.22" + "@xmtp/node-bindings": "npm:^0.0.25" "@xmtp/proto": "npm:^3.72.3" "@xmtp/xmtp-js": "workspace:^" fast-glob: "npm:^3.3.2"