UNPKG

@authzed/authzed-node

Version:
206 lines (205 loc) 21.6 kB
import type { BinaryWriteOptions } from "@protobuf-ts/runtime"; import type { BinaryReadOptions } from "@protobuf-ts/runtime"; import type { ExperimentalUnregisterRelationshipCounterResponse } from "./experimental_service.js"; import type { ExperimentalUnregisterRelationshipCounterRequest } from "./experimental_service.js"; import type { ExperimentalCountRelationshipsResponse } from "./experimental_service.js"; import type { ExperimentalCountRelationshipsRequest } from "./experimental_service.js"; import type { ExperimentalRegisterRelationshipCounterResponse } from "./experimental_service.js"; import type { ExperimentalRegisterRelationshipCounterRequest } from "./experimental_service.js"; import type { ExperimentalDiffSchemaResponse } from "./experimental_service.js"; import type { ExperimentalDiffSchemaRequest } from "./experimental_service.js"; import type { ExperimentalDependentRelationsResponse } from "./experimental_service.js"; import type { ExperimentalDependentRelationsRequest } from "./experimental_service.js"; import type { ExperimentalComputablePermissionsResponse } from "./experimental_service.js"; import type { ExperimentalComputablePermissionsRequest } from "./experimental_service.js"; import type { ExperimentalReflectSchemaResponse } from "./experimental_service.js"; import type { ExperimentalReflectSchemaRequest } from "./experimental_service.js"; import type { BulkCheckPermissionResponse } from "./experimental_service.js"; import type { BulkCheckPermissionRequest } from "./experimental_service.js"; import type { BulkExportRelationshipsResponse } from "./experimental_service.js"; import type { BulkExportRelationshipsRequest } from "./experimental_service.js"; import type { BulkImportRelationshipsRequest } from "./experimental_service.js"; import type { BulkImportRelationshipsResponse } from "./experimental_service.js"; import * as grpc from "@grpc/grpc-js"; /** * ExperimentalService exposes a number of APIs that are currently being * prototyped and tested for future inclusion in the stable API. * * @generated from protobuf service authzed.api.v1.ExperimentalService */ export interface IExperimentalServiceClient { /** * DEPRECATED: Promoted to ImportBulkRelationships in the stable API. * * @deprecated * @generated from protobuf rpc: BulkImportRelationships(stream authzed.api.v1.BulkImportRelationshipsRequest) returns (authzed.api.v1.BulkImportRelationshipsResponse); */ bulkImportRelationships(metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: BulkImportRelationshipsResponse) => void): grpc.ClientWritableStream<BulkImportRelationshipsRequest>; bulkImportRelationships(metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: BulkImportRelationshipsResponse) => void): grpc.ClientWritableStream<BulkImportRelationshipsRequest>; bulkImportRelationships(options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: BulkImportRelationshipsResponse) => void): grpc.ClientWritableStream<BulkImportRelationshipsRequest>; bulkImportRelationships(callback: (err: grpc.ServiceError | null, value?: BulkImportRelationshipsResponse) => void): grpc.ClientWritableStream<BulkImportRelationshipsRequest>; /** * DEPRECATED: Promoted to ExportBulkRelationships in the stable API. * * @deprecated * @generated from protobuf rpc: BulkExportRelationships(authzed.api.v1.BulkExportRelationshipsRequest) returns (stream authzed.api.v1.BulkExportRelationshipsResponse); */ bulkExportRelationships(input: BulkExportRelationshipsRequest, metadata?: grpc.Metadata, options?: grpc.CallOptions): grpc.ClientReadableStream<BulkExportRelationshipsResponse>; bulkExportRelationships(input: BulkExportRelationshipsRequest, options?: grpc.CallOptions): grpc.ClientReadableStream<BulkExportRelationshipsResponse>; /** * DEPRECATED: Promoted to CheckBulkPermission in the stable API. * * @deprecated * @generated from protobuf rpc: BulkCheckPermission(authzed.api.v1.BulkCheckPermissionRequest) returns (authzed.api.v1.BulkCheckPermissionResponse); */ bulkCheckPermission(input: BulkCheckPermissionRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: BulkCheckPermissionResponse) => void): grpc.ClientUnaryCall; bulkCheckPermission(input: BulkCheckPermissionRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: BulkCheckPermissionResponse) => void): grpc.ClientUnaryCall; bulkCheckPermission(input: BulkCheckPermissionRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: BulkCheckPermissionResponse) => void): grpc.ClientUnaryCall; bulkCheckPermission(input: BulkCheckPermissionRequest, callback: (err: grpc.ServiceError | null, value?: BulkCheckPermissionResponse) => void): grpc.ClientUnaryCall; /** * DEPRECATED: Promoted to ReflectSchema in the stable API. * * @deprecated * @generated from protobuf rpc: ExperimentalReflectSchema(authzed.api.v1.ExperimentalReflectSchemaRequest) returns (authzed.api.v1.ExperimentalReflectSchemaResponse); */ experimentalReflectSchema(input: ExperimentalReflectSchemaRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ExperimentalReflectSchemaResponse) => void): grpc.ClientUnaryCall; experimentalReflectSchema(input: ExperimentalReflectSchemaRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ExperimentalReflectSchemaResponse) => void): grpc.ClientUnaryCall; experimentalReflectSchema(input: ExperimentalReflectSchemaRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ExperimentalReflectSchemaResponse) => void): grpc.ClientUnaryCall; experimentalReflectSchema(input: ExperimentalReflectSchemaRequest, callback: (err: grpc.ServiceError | null, value?: ExperimentalReflectSchemaResponse) => void): grpc.ClientUnaryCall; /** * DEPRECATED: Promoted to ComputablePermissions in the stable API. * * @deprecated * @generated from protobuf rpc: ExperimentalComputablePermissions(authzed.api.v1.ExperimentalComputablePermissionsRequest) returns (authzed.api.v1.ExperimentalComputablePermissionsResponse); */ experimentalComputablePermissions(input: ExperimentalComputablePermissionsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ExperimentalComputablePermissionsResponse) => void): grpc.ClientUnaryCall; experimentalComputablePermissions(input: ExperimentalComputablePermissionsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ExperimentalComputablePermissionsResponse) => void): grpc.ClientUnaryCall; experimentalComputablePermissions(input: ExperimentalComputablePermissionsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ExperimentalComputablePermissionsResponse) => void): grpc.ClientUnaryCall; experimentalComputablePermissions(input: ExperimentalComputablePermissionsRequest, callback: (err: grpc.ServiceError | null, value?: ExperimentalComputablePermissionsResponse) => void): grpc.ClientUnaryCall; /** * DEPRECATED: Promoted to DependentRelations in the stable API. * * @deprecated * @generated from protobuf rpc: ExperimentalDependentRelations(authzed.api.v1.ExperimentalDependentRelationsRequest) returns (authzed.api.v1.ExperimentalDependentRelationsResponse); */ experimentalDependentRelations(input: ExperimentalDependentRelationsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ExperimentalDependentRelationsResponse) => void): grpc.ClientUnaryCall; experimentalDependentRelations(input: ExperimentalDependentRelationsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ExperimentalDependentRelationsResponse) => void): grpc.ClientUnaryCall; experimentalDependentRelations(input: ExperimentalDependentRelationsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ExperimentalDependentRelationsResponse) => void): grpc.ClientUnaryCall; experimentalDependentRelations(input: ExperimentalDependentRelationsRequest, callback: (err: grpc.ServiceError | null, value?: ExperimentalDependentRelationsResponse) => void): grpc.ClientUnaryCall; /** * DEPRECATED: Promoted to DiffSchema in the stable API. * * @deprecated * @generated from protobuf rpc: ExperimentalDiffSchema(authzed.api.v1.ExperimentalDiffSchemaRequest) returns (authzed.api.v1.ExperimentalDiffSchemaResponse); */ experimentalDiffSchema(input: ExperimentalDiffSchemaRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ExperimentalDiffSchemaResponse) => void): grpc.ClientUnaryCall; experimentalDiffSchema(input: ExperimentalDiffSchemaRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ExperimentalDiffSchemaResponse) => void): grpc.ClientUnaryCall; experimentalDiffSchema(input: ExperimentalDiffSchemaRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ExperimentalDiffSchemaResponse) => void): grpc.ClientUnaryCall; experimentalDiffSchema(input: ExperimentalDiffSchemaRequest, callback: (err: grpc.ServiceError | null, value?: ExperimentalDiffSchemaResponse) => void): grpc.ClientUnaryCall; /** * EXPERIMENTAL: RegisterRelationshipCounter registers a new filter for counting relationships. A filter must be registered before * a count can be requested. * * @generated from protobuf rpc: ExperimentalRegisterRelationshipCounter(authzed.api.v1.ExperimentalRegisterRelationshipCounterRequest) returns (authzed.api.v1.ExperimentalRegisterRelationshipCounterResponse); */ experimentalRegisterRelationshipCounter(input: ExperimentalRegisterRelationshipCounterRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ExperimentalRegisterRelationshipCounterResponse) => void): grpc.ClientUnaryCall; experimentalRegisterRelationshipCounter(input: ExperimentalRegisterRelationshipCounterRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ExperimentalRegisterRelationshipCounterResponse) => void): grpc.ClientUnaryCall; experimentalRegisterRelationshipCounter(input: ExperimentalRegisterRelationshipCounterRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ExperimentalRegisterRelationshipCounterResponse) => void): grpc.ClientUnaryCall; experimentalRegisterRelationshipCounter(input: ExperimentalRegisterRelationshipCounterRequest, callback: (err: grpc.ServiceError | null, value?: ExperimentalRegisterRelationshipCounterResponse) => void): grpc.ClientUnaryCall; /** * EXPERIMENTAL: CountRelationships returns the count of relationships for *pre-registered* filter. * * @generated from protobuf rpc: ExperimentalCountRelationships(authzed.api.v1.ExperimentalCountRelationshipsRequest) returns (authzed.api.v1.ExperimentalCountRelationshipsResponse); */ experimentalCountRelationships(input: ExperimentalCountRelationshipsRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ExperimentalCountRelationshipsResponse) => void): grpc.ClientUnaryCall; experimentalCountRelationships(input: ExperimentalCountRelationshipsRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ExperimentalCountRelationshipsResponse) => void): grpc.ClientUnaryCall; experimentalCountRelationships(input: ExperimentalCountRelationshipsRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ExperimentalCountRelationshipsResponse) => void): grpc.ClientUnaryCall; experimentalCountRelationships(input: ExperimentalCountRelationshipsRequest, callback: (err: grpc.ServiceError | null, value?: ExperimentalCountRelationshipsResponse) => void): grpc.ClientUnaryCall; /** * EXPERIMENTAL: UnregisterRelationshipCounter unregisters an existing filter for counting relationships. * * @generated from protobuf rpc: ExperimentalUnregisterRelationshipCounter(authzed.api.v1.ExperimentalUnregisterRelationshipCounterRequest) returns (authzed.api.v1.ExperimentalUnregisterRelationshipCounterResponse); */ experimentalUnregisterRelationshipCounter(input: ExperimentalUnregisterRelationshipCounterRequest, metadata: grpc.Metadata, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ExperimentalUnregisterRelationshipCounterResponse) => void): grpc.ClientUnaryCall; experimentalUnregisterRelationshipCounter(input: ExperimentalUnregisterRelationshipCounterRequest, metadata: grpc.Metadata, callback: (err: grpc.ServiceError | null, value?: ExperimentalUnregisterRelationshipCounterResponse) => void): grpc.ClientUnaryCall; experimentalUnregisterRelationshipCounter(input: ExperimentalUnregisterRelationshipCounterRequest, options: grpc.CallOptions, callback: (err: grpc.ServiceError | null, value?: ExperimentalUnregisterRelationshipCounterResponse) => void): grpc.ClientUnaryCall; experimentalUnregisterRelationshipCounter(input: ExperimentalUnregisterRelationshipCounterRequest, callback: (err: grpc.ServiceError | null, value?: ExperimentalUnregisterRelationshipCounterResponse) => void): grpc.ClientUnaryCall; } /** * ExperimentalService exposes a number of APIs that are currently being * prototyped and tested for future inclusion in the stable API. * * @generated from protobuf service authzed.api.v1.ExperimentalService */ export declare class ExperimentalServiceClient extends grpc.Client implements IExperimentalServiceClient { private readonly _binaryOptions; constructor(address: string, credentials: grpc.ChannelCredentials, options?: grpc.ClientOptions, binaryOptions?: Partial<BinaryReadOptions & BinaryWriteOptions>); /** * DEPRECATED: Promoted to ImportBulkRelationships in the stable API. * * @deprecated * @generated from protobuf rpc: BulkImportRelationships(stream authzed.api.v1.BulkImportRelationshipsRequest) returns (authzed.api.v1.BulkImportRelationshipsResponse); */ bulkImportRelationships(metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: BulkImportRelationshipsResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: BulkImportRelationshipsResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: BulkImportRelationshipsResponse) => void)): grpc.ClientWritableStream<BulkImportRelationshipsRequest>; /** * DEPRECATED: Promoted to ExportBulkRelationships in the stable API. * * @deprecated * @generated from protobuf rpc: BulkExportRelationships(authzed.api.v1.BulkExportRelationshipsRequest) returns (stream authzed.api.v1.BulkExportRelationshipsResponse); */ bulkExportRelationships(input: BulkExportRelationshipsRequest, metadata?: grpc.Metadata | grpc.CallOptions, options?: grpc.CallOptions): grpc.ClientReadableStream<BulkExportRelationshipsResponse>; /** * DEPRECATED: Promoted to CheckBulkPermission in the stable API. * * @deprecated * @generated from protobuf rpc: BulkCheckPermission(authzed.api.v1.BulkCheckPermissionRequest) returns (authzed.api.v1.BulkCheckPermissionResponse); */ bulkCheckPermission(input: BulkCheckPermissionRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: BulkCheckPermissionResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: BulkCheckPermissionResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: BulkCheckPermissionResponse) => void)): grpc.ClientUnaryCall; /** * DEPRECATED: Promoted to ReflectSchema in the stable API. * * @deprecated * @generated from protobuf rpc: ExperimentalReflectSchema(authzed.api.v1.ExperimentalReflectSchemaRequest) returns (authzed.api.v1.ExperimentalReflectSchemaResponse); */ experimentalReflectSchema(input: ExperimentalReflectSchemaRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ExperimentalReflectSchemaResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ExperimentalReflectSchemaResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ExperimentalReflectSchemaResponse) => void)): grpc.ClientUnaryCall; /** * DEPRECATED: Promoted to ComputablePermissions in the stable API. * * @deprecated * @generated from protobuf rpc: ExperimentalComputablePermissions(authzed.api.v1.ExperimentalComputablePermissionsRequest) returns (authzed.api.v1.ExperimentalComputablePermissionsResponse); */ experimentalComputablePermissions(input: ExperimentalComputablePermissionsRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ExperimentalComputablePermissionsResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ExperimentalComputablePermissionsResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ExperimentalComputablePermissionsResponse) => void)): grpc.ClientUnaryCall; /** * DEPRECATED: Promoted to DependentRelations in the stable API. * * @deprecated * @generated from protobuf rpc: ExperimentalDependentRelations(authzed.api.v1.ExperimentalDependentRelationsRequest) returns (authzed.api.v1.ExperimentalDependentRelationsResponse); */ experimentalDependentRelations(input: ExperimentalDependentRelationsRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ExperimentalDependentRelationsResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ExperimentalDependentRelationsResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ExperimentalDependentRelationsResponse) => void)): grpc.ClientUnaryCall; /** * DEPRECATED: Promoted to DiffSchema in the stable API. * * @deprecated * @generated from protobuf rpc: ExperimentalDiffSchema(authzed.api.v1.ExperimentalDiffSchemaRequest) returns (authzed.api.v1.ExperimentalDiffSchemaResponse); */ experimentalDiffSchema(input: ExperimentalDiffSchemaRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ExperimentalDiffSchemaResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ExperimentalDiffSchemaResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ExperimentalDiffSchemaResponse) => void)): grpc.ClientUnaryCall; /** * EXPERIMENTAL: RegisterRelationshipCounter registers a new filter for counting relationships. A filter must be registered before * a count can be requested. * * @generated from protobuf rpc: ExperimentalRegisterRelationshipCounter(authzed.api.v1.ExperimentalRegisterRelationshipCounterRequest) returns (authzed.api.v1.ExperimentalRegisterRelationshipCounterResponse); */ experimentalRegisterRelationshipCounter(input: ExperimentalRegisterRelationshipCounterRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ExperimentalRegisterRelationshipCounterResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ExperimentalRegisterRelationshipCounterResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ExperimentalRegisterRelationshipCounterResponse) => void)): grpc.ClientUnaryCall; /** * EXPERIMENTAL: CountRelationships returns the count of relationships for *pre-registered* filter. * * @generated from protobuf rpc: ExperimentalCountRelationships(authzed.api.v1.ExperimentalCountRelationshipsRequest) returns (authzed.api.v1.ExperimentalCountRelationshipsResponse); */ experimentalCountRelationships(input: ExperimentalCountRelationshipsRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ExperimentalCountRelationshipsResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ExperimentalCountRelationshipsResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ExperimentalCountRelationshipsResponse) => void)): grpc.ClientUnaryCall; /** * EXPERIMENTAL: UnregisterRelationshipCounter unregisters an existing filter for counting relationships. * * @generated from protobuf rpc: ExperimentalUnregisterRelationshipCounter(authzed.api.v1.ExperimentalUnregisterRelationshipCounterRequest) returns (authzed.api.v1.ExperimentalUnregisterRelationshipCounterResponse); */ experimentalUnregisterRelationshipCounter(input: ExperimentalUnregisterRelationshipCounterRequest, metadata: grpc.Metadata | grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ExperimentalUnregisterRelationshipCounterResponse) => void), options?: grpc.CallOptions | ((err: grpc.ServiceError | null, value?: ExperimentalUnregisterRelationshipCounterResponse) => void), callback?: ((err: grpc.ServiceError | null, value?: ExperimentalUnregisterRelationshipCounterResponse) => void)): grpc.ClientUnaryCall; }