Auto-commit 2026-04-29 16:31
This commit is contained in:
30
node_modules/twilio/lib/base/TwilioServiceException.d.ts
generated
vendored
Normal file
30
node_modules/twilio/lib/base/TwilioServiceException.d.ts
generated
vendored
Normal file
@@ -0,0 +1,30 @@
|
||||
interface ValidationError {
|
||||
detail: string;
|
||||
pointer: string;
|
||||
}
|
||||
interface TwilioServiceErrorResponse {
|
||||
type: string;
|
||||
title: string;
|
||||
status: number;
|
||||
detail?: string;
|
||||
instance?: string;
|
||||
code: number;
|
||||
errors?: ValidationError[];
|
||||
}
|
||||
export default class TwilioServiceException extends Error implements TwilioServiceErrorResponse {
|
||||
type: string;
|
||||
title: string;
|
||||
status: number;
|
||||
detail?: string;
|
||||
instance?: string;
|
||||
code: number;
|
||||
errors?: ValidationError[];
|
||||
constructor(response: any);
|
||||
/**
|
||||
* Check if a response body matches the RFC-9457 structure
|
||||
* @param body - The response body to check
|
||||
* @returns true if the body has the required RFC-9457 fields
|
||||
*/
|
||||
static isRFC9457Response(body: any): boolean;
|
||||
}
|
||||
export {};
|
||||
Reference in New Issue
Block a user