Files
boc/vims-backend/node_modules/twilio/lib/jwt/ClientCapability.d.ts
T
Bernt 6de2455917 v1.2.0: Add Global Markets footer, translated to 9 languages
- Added GLOBAL_MARKETS_TITLE to all translation files
- Updated footer with 12 markets (4 active + 8 upcoming)
- Translated market section to: zh-cn, zh-tw, ja, ko, th, vi, id, ms, hi
- Built and deployed to production
- CloudFront invalidation: I3RTMXVFDJXWLG3SYX208OP1CC
2026-07-08 19:56:03 +00:00

62 lines
1.5 KiB
TypeScript

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;
}