@@ -28,6 +28,8 @@ export type ZedDefaultClientInterface = OmitBaseMethods<
2828 OmitBaseMethods < SchemaServiceClient , grpc . Client > &
2929 OmitBaseMethods < WatchServiceClient , grpc . Client > &
3030 OmitBaseMethods < ExperimentalServiceClient , grpc . Client > &
31+ OmitBaseMethods < WatchPermissionsServiceClient , grpc . Client > &
32+ OmitBaseMethods < WatchPermissionSetsServiceClient , grpc . Client > &
3133 Pick < grpc . Client , "close" > ;
3234
3335// The promisified version of the interface
@@ -36,6 +38,8 @@ export type ZedPromiseClientInterface =
3638 PromisifiedClient < SchemaServiceClient > &
3739 PromisifiedClient < WatchServiceClient > &
3840 PromisifiedClient < ExperimentalServiceClient > &
41+ PromisifiedClient < WatchPermissionsServiceClient > &
42+ PromisifiedClient < WatchPermissionSetsServiceClient > &
3943 Pick < ZedDefaultClientInterface , "close" > ;
4044
4145// A combined client containing the root gRPC client methods and a promisified set at a "promises" key
@@ -124,9 +128,14 @@ class ZedClient implements ProxyHandler<ZedDefaultClientInterface> {
124128 }
125129
126130 close = ( ) => {
127- [ this . acl , this . ns , this . watch , this . experimental ] . forEach ( ( client ) =>
128- client ?. close ( ) ,
129- ) ;
131+ [
132+ this . acl ,
133+ this . ns ,
134+ this . watch ,
135+ this . experimental ,
136+ this . watchPermissions ,
137+ this . watchPermissionSets ,
138+ ] . forEach ( ( client ) => client ?. close ( ) ) ;
130139 } ;
131140
132141 get ( _target : object , name : string | symbol ) {
0 commit comments