Auto-commit 2026-04-29 16:31
This commit is contained in:
61
node_modules/twilio/lib/jwt/ClientCapability.d.ts
generated
vendored
Normal file
61
node_modules/twilio/lib/jwt/ClientCapability.d.ts
generated
vendored
Normal file
@@ -0,0 +1,61 @@
|
||||
export interface Scope {
|
||||
scope: string;
|
||||
payload(): string;
|
||||
}
|
||||
export interface OutgoingClientScopeOptions {
|
||||
applicationSid: string;
|
||||
clientName?: string;
|
||||
params?: object;
|
||||
}
|
||||
export interface ClientCapabilityOptions {
|
||||
accountSid: string;
|
||||
authToken: string;
|
||||
ttl?: number;
|
||||
}
|
||||
/**
|
||||
* @param filters
|
||||
*/
|
||||
export declare class EventStreamScope implements Scope {
|
||||
scope: string;
|
||||
filters: object;
|
||||
constructor(filters?: object);
|
||||
payload(): string;
|
||||
}
|
||||
/**
|
||||
* @param clientName
|
||||
*/
|
||||
export declare class IncomingClientScope implements Scope {
|
||||
scope: string;
|
||||
clientName: string;
|
||||
constructor(clientName: string);
|
||||
payload(): string;
|
||||
}
|
||||
export declare class OutgoingClientScope implements Scope {
|
||||
scope: string;
|
||||
applicationSid: string;
|
||||
clientName?: string;
|
||||
params?: object;
|
||||
/**
|
||||
* @param options - ...
|
||||
* @param options.applicationSid - the application sid
|
||||
* @param options.clientName - the client name
|
||||
* @param options.params - parameters
|
||||
*/
|
||||
constructor(options: OutgoingClientScopeOptions);
|
||||
payload(): string;
|
||||
}
|
||||
/**
|
||||
* @param options
|
||||
*/
|
||||
export default class ClientCapability {
|
||||
static EventStreamScope: typeof EventStreamScope;
|
||||
static IncomingClientScope: typeof IncomingClientScope;
|
||||
static OutgoingClientScope: typeof OutgoingClientScope;
|
||||
accountSid: string;
|
||||
authToken: string;
|
||||
ttl: number;
|
||||
scopes: Scope[];
|
||||
constructor(options: ClientCapabilityOptions);
|
||||
addScope(scope: Scope): void;
|
||||
toJwt(): string;
|
||||
}
|
||||
Reference in New Issue
Block a user