// this file is @generated export interface EndpointUpdate { /** List of message channels this endpoint listens to (omit for all). */ channels?: string[] | null; description?: string; disabled?: boolean; filterTypes?: string[] | null; metadata?: { [key: string]: string }; /** * Deprecated, use `throttleRate` instead. * * @deprecated */ rateLimit?: number | null; /** * Maximum messages per second to send to this endpoint. * * Outgoing messages will be throttled to this rate. */ throttleRate?: number | null; /** Optional unique identifier for the endpoint. */ uid?: string | null; url: string; version?: number | null; } export const EndpointUpdateSerializer = { _fromJsonObject(object: any): EndpointUpdate { return { channels: object["channels"], description: object["description"], disabled: object["disabled"], filterTypes: object["filterTypes"], metadata: object["metadata"], rateLimit: object["rateLimit"], throttleRate: object["throttleRate"], uid: object["uid"], url: object["url"], version: object["version"], }; }, _toJsonObject(self: EndpointUpdate): any { return { channels: self.channels, description: self.description, disabled: self.disabled, filterTypes: self.filterTypes, metadata: self.metadata, rateLimit: self.rateLimit, throttleRate: self.throttleRate, uid: self.uid, url: self.url, version: self.version, }; }, };