From 7398a42ee54d545c9b98df4cbf02a3930763079e Mon Sep 17 00:00:00 2001 From: Kyle Brown Date: Tue, 10 Jun 2025 16:03:26 -0700 Subject: [PATCH 1/2] update authzed-node to support materialize apis --- src/v1.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/v1.ts b/src/v1.ts index 2492bae..f3ad626 100644 --- a/src/v1.ts +++ b/src/v1.ts @@ -28,15 +28,19 @@ export type ZedDefaultClientInterface = OmitBaseMethods< OmitBaseMethods & OmitBaseMethods & OmitBaseMethods & + OmitBaseMethods & + OmitBaseMethods & Pick; // The promisified version of the interface export type ZedPromiseClientInterface = PromisifiedClient & PromisifiedClient & - PromisifiedClient & - PromisifiedClient & - Pick; + PromisifiedClient & + PromisifiedClient & + PromisifiedClient & + PromisifiedClient & + Pick; // A combined client containing the root gRPC client methods and a promisified set at a "promises" key export type ZedClientInterface = ZedDefaultClientInterface & { @@ -124,7 +128,7 @@ class ZedClient implements ProxyHandler { } close = () => { - [this.acl, this.ns, this.watch, this.experimental].forEach((client) => + [this.acl, this.ns, this.watch, this.experimental, this.watchPermissions, this.watchPermissionSets].forEach((client) => client?.close(), ); }; From 784df1d6c9d9f85270f4eb0eac4287e29f3d59ba Mon Sep 17 00:00:00 2001 From: Kyle Brown Date: Wed, 11 Jun 2025 15:09:05 -0700 Subject: [PATCH 2/2] formatting --- src/v1.ts | 21 +++++++++++++-------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/src/v1.ts b/src/v1.ts index f3ad626..376eb70 100644 --- a/src/v1.ts +++ b/src/v1.ts @@ -36,11 +36,11 @@ export type ZedDefaultClientInterface = OmitBaseMethods< export type ZedPromiseClientInterface = PromisifiedClient & PromisifiedClient & - PromisifiedClient & - PromisifiedClient & - PromisifiedClient & - PromisifiedClient & - Pick; + PromisifiedClient & + PromisifiedClient & + PromisifiedClient & + PromisifiedClient & + Pick; // A combined client containing the root gRPC client methods and a promisified set at a "promises" key export type ZedClientInterface = ZedDefaultClientInterface & { @@ -128,9 +128,14 @@ class ZedClient implements ProxyHandler { } close = () => { - [this.acl, this.ns, this.watch, this.experimental, this.watchPermissions, this.watchPermissionSets].forEach((client) => - client?.close(), - ); + [ + this.acl, + this.ns, + this.watch, + this.experimental, + this.watchPermissions, + this.watchPermissionSets, + ].forEach((client) => client?.close()); }; get(_target: object, name: string | symbol) {