summaryrefslogtreecommitdiff
path: root/frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts
diff options
context:
space:
mode:
authoraltaf-creator <dev@altafcreator.com>2025-11-16 19:08:29 +0800
committeraltaf-creator <dev@altafcreator.com>2025-11-16 19:08:29 +0800
commit434aa8343fdcbb4d5002f934979913c099489bee (patch)
tree55bab4ec5a6151be57797d34f61faf5ea744471b /frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts
parent893c388d4e99442a36005e5971a87730623f946e (diff)
sdk, del
Diffstat (limited to 'frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts')
-rw-r--r--frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts56
1 files changed, 0 insertions, 56 deletions
diff --git a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts b/frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts
deleted file mode 100644
index 1564eac..0000000
--- a/frontend-old/node_modules/@grpc/grpc-js/build/src/call-credentials.d.ts
+++ /dev/null
@@ -1,56 +0,0 @@
-import { Metadata } from './metadata';
-export interface CallMetadataOptions {
- service_url: string;
-}
-export type CallMetadataGenerator = (options: CallMetadataOptions, cb: (err: Error | null, metadata?: Metadata) => void) => void;
-export interface OldOAuth2Client {
- getRequestMetadata: (url: string, callback: (err: Error | null, headers?: {
- [index: string]: string;
- }) => void) => void;
-}
-export interface CurrentOAuth2Client {
- getRequestHeaders: (url?: string) => Promise<{
- [index: string]: string;
- }>;
-}
-export type OAuth2Client = OldOAuth2Client | CurrentOAuth2Client;
-/**
- * A class that represents a generic method of adding authentication-related
- * metadata on a per-request basis.
- */
-export declare abstract class CallCredentials {
- /**
- * Asynchronously generates a new Metadata object.
- * @param options Options used in generating the Metadata object.
- */
- abstract generateMetadata(options: CallMetadataOptions): Promise<Metadata>;
- /**
- * Creates a new CallCredentials object from properties of both this and
- * another CallCredentials object. This object's metadata generator will be
- * called first.
- * @param callCredentials The other CallCredentials object.
- */
- abstract compose(callCredentials: CallCredentials): CallCredentials;
- /**
- * Check whether two call credentials objects are equal. Separate
- * SingleCallCredentials with identical metadata generator functions are
- * equal.
- * @param other The other CallCredentials object to compare with.
- */
- abstract _equals(other: CallCredentials): boolean;
- /**
- * Creates a new CallCredentials object from a given function that generates
- * Metadata objects.
- * @param metadataGenerator A function that accepts a set of options, and
- * generates a Metadata object based on these options, which is passed back
- * to the caller via a supplied (err, metadata) callback.
- */
- static createFromMetadataGenerator(metadataGenerator: CallMetadataGenerator): CallCredentials;
- /**
- * Create a gRPC credential from a Google credential object.
- * @param googleCredentials The authentication client to use.
- * @return The resulting CallCredentials object.
- */
- static createFromGoogleCredential(googleCredentials: OAuth2Client): CallCredentials;
- static createEmpty(): CallCredentials;
-}