69 lines
1.7 KiB
TypeScript
69 lines
1.7 KiB
TypeScript
// this file is @generated
|
|
|
|
export interface EndpointPatch {
|
|
channels?: string[] | null;
|
|
description?: string;
|
|
disabled?: boolean;
|
|
filterTypes?: string[] | null;
|
|
metadata?: { [key: string]: string };
|
|
/**
|
|
* Deprecated, use `throttleRate` instead.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
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.
|
|
*
|
|
* @deprecated
|
|
*/
|
|
secret?: string | null;
|
|
/**
|
|
* Maximum messages per second to send to this endpoint.
|
|
*
|
|
* Outgoing messages will be throttled to this rate.
|
|
*/
|
|
throttleRate?: number | 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"],
|
|
throttleRate: object["throttleRate"],
|
|
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,
|
|
throttleRate: self.throttleRate,
|
|
uid: self.uid,
|
|
url: self.url,
|
|
version: self.version,
|
|
};
|
|
},
|
|
};
|