svix
Version:
Svix webhooks API client and webhook verification library
55 lines (51 loc) • 1.46 kB
text/typescript
// this file is @generated
/* eslint @typescript-eslint/no-explicit-any: 0 */
export interface EndpointPatch {
channels?: string[] | null;
description?: string;
disabled?: boolean;
filterTypes?: string[] | null;
metadata?: { [key: string]: string };
rateLimit?: number | null;
/**
* The endpoint's verification secret.
*
* Format: `base64` encoded random bytes optionally prefixed with `whsec_`.
* It is recommended to not set this and let the server generate the secret.
*/
secret?: string | null;
/** The Endpoint's UID. */
uid?: string | null;
url?: string;
version?: number;
}
export const EndpointPatchSerializer = {
_fromJsonObject(object: any): EndpointPatch {
return {
channels: object["channels"],
description: object["description"],
disabled: object["disabled"],
filterTypes: object["filterTypes"],
metadata: object["metadata"],
rateLimit: object["rateLimit"],
secret: object["secret"],
uid: object["uid"],
url: object["url"],
version: object["version"],
};
},
_toJsonObject(self: EndpointPatch): any {
return {
channels: self.channels,
description: self.description,
disabled: self.disabled,
filterTypes: self.filterTypes,
metadata: self.metadata,
rateLimit: self.rateLimit,
secret: self.secret,
uid: self.uid,
url: self.url,
version: self.version,
};
},
};