Skip to content

Commit

Permalink
Compile TS
Browse files Browse the repository at this point in the history
  • Loading branch information
GitHub Action committed Nov 29, 2022
1 parent 3e3a989 commit 61c2f87
Show file tree
Hide file tree
Showing 3 changed files with 50 additions and 11 deletions.
2 changes: 1 addition & 1 deletion dist/.tsbuildinfo

Large diffs are not rendered by default.

24 changes: 18 additions & 6 deletions dist/lib/authzed.d.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,19 @@
/// <reference types="node" />
import { ILogger } from '../logger';
import { v1 } from '@authzed/authzed-node';
import { ClientSecurity } from '@authzed/authzed-node/dist/src/util';
/// <reference types="node" />
import { Readable } from 'stream';
import { v1 } from '@authzed/authzed-node';
import { ClientSecurity as AZClientSecurity } from '@authzed/authzed-node/dist/src/util';
import { RelationshipUpdate_Operation } from '@authzed/authzed-node/dist/src/v1';
import { EventEmitter } from 'node:events';
import { ILogger } from '../logger';
declare type AuthZedClientParams = {
host: string;
token: string;
security: ClientSecurity;
security: AZClientSecurity;
};
declare type ZedToken = v1.ZedToken;
declare type RelationshipUpdate = v1.RelationshipUpdate;
export { AZClientSecurity as ClientSecurity, ZedToken, RelationshipUpdate, RelationshipUpdate_Operation as RelationshipUpdateOperation, };
export declare type PartialMessage<T extends object> = {
[K in keyof T]?: PartialField<T[K]>;
};
Expand Down Expand Up @@ -77,9 +83,15 @@ declare type ListAccessorsForResourceResponse = {
accessorId: string;
zedToken?: string;
}[];
declare type RegisterWatchEventListenerParams = {
emitter: EventEmitter;
watchFromToken?: ZedToken;
objectTypes?: string[];
};
export declare class AuthZed {
private _client;
private logger;
private watchEventListeners;
constructor(params: AuthZedClientParams, { logger, }: {
logger?: ILogger;
});
Expand All @@ -95,6 +107,6 @@ export declare class AuthZed {
}): Promise<v1.ZedToken>;
checkPermission(params: CheckPermissionParams): Promise<boolean>;
listResourcesAccessorCanAccess(params: ListResourcesAccessorCanAccessParams): Promise<ListResourcesAccessorCanAccessResponse>;
listAccesorsForResource(params: ListAccessorsForResourceParams): Promise<ListAccessorsForResourceResponse>;
listAccessorsForResource(params: ListAccessorsForResourceParams): Promise<ListAccessorsForResourceResponse>;
registerWatchEventListener(params: RegisterWatchEventListenerParams): void;
}
export {};
Loading

0 comments on commit 61c2f87

Please sign in to comment.