/opt/canhelp/node_modules/svix/src
NameSizeModeActions
api/-0755rm
models/-0755rm
HttpErrors.ts25480644editdlrm
index.test.ts790644editdlrm
index.ts47940644editdlrm
KitchenSink.test.ts22270644editdlrm
mockttp.test.ts220890644editdlrm
request.ts72380644editdlrm
util.ts5220644editdlrm
webhook.test.ts62550644editdlrm
webhook.ts14560644editdlrm
Edit: /opt/canhelp/node_modules/svix/src/HttpErrors.ts (2548B)
export class HttpErrorOut { code!: string; detail!: string; static readonly discriminator: string | undefined = undefined; static readonly mapping: { [index: string]: string } | undefined = undefined; static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string; }> = [ { name: "code", baseName: "code", type: "string", format: "", }, { name: "detail", baseName: "detail", type: "string", format: "", }, ]; static getAttributeTypeMap() { return HttpErrorOut.attributeTypeMap; } } /** * Validation errors have their own schema to provide context for invalid requests eg. mismatched types and out of bounds values. There may be any number of these per 422 UNPROCESSABLE ENTITY error. */ export class ValidationError { /** * The location as a [`Vec`] of [`String`]s -- often in the form `[\"body\", \"field_name\"]`, `[\"query\", \"field_name\"]`, etc. They may, however, be arbitrarily deep. */ loc!: Array; /** * The message accompanying the validation error item. */ msg!: string; /** * The type of error, often \"type_error\" or \"value_error\", but sometimes with more context like as \"value_error.number.not_ge\" */ type!: string; static readonly discriminator: string | undefined = undefined; static readonly mapping: { [index: string]: string } | undefined = undefined; static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string; }> = [ { name: "loc", baseName: "loc", type: "Array", format: "", }, { name: "msg", baseName: "msg", type: "string", format: "", }, { name: "type", baseName: "type", type: "string", format: "", }, ]; static getAttributeTypeMap() { return ValidationError.attributeTypeMap; } } export class HTTPValidationError { detail!: Array; static readonly discriminator: string | undefined = undefined; static readonly mapping: { [index: string]: string } | undefined = undefined; static readonly attributeTypeMap: Array<{ name: string; baseName: string; type: string; format: string; }> = [ { name: "detail", baseName: "detail", type: "Array", format: "", }, ]; static getAttributeTypeMap() { return HTTPValidationError.attributeTypeMap; } }