// this file is @generated export interface EndpointOut { /** List of message channels this endpoint listens to (omit for all). */ channels?: string[] | null; createdAt: Date; /** An example endpoint name. */ description: string; disabled?: boolean; filterTypes?: string[] | null; /** The Endpoint's ID. */ id: string; 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; updatedAt: Date; url: string; version: number; } export const EndpointOutSerializer = { _fromJsonObject(object: any): EndpointOut { return { channels: object["channels"], createdAt: new Date(object["createdAt"]), description: object["description"], disabled: object["disabled"], filterTypes: object["filterTypes"], id: object["id"], metadata: object["metadata"], rateLimit: object["rateLimit"], throttleRate: object["throttleRate"], uid: object["uid"], updatedAt: new Date(object["updatedAt"]), url: object["url"], version: object["version"], }; }, _toJsonObject(self: EndpointOut): any { return { channels: self.channels, createdAt: self.createdAt, description: self.description, disabled: self.disabled, filterTypes: self.filterTypes, id: self.id, metadata: self.metadata, rateLimit: self.rateLimit, throttleRate: self.throttleRate, uid: self.uid, updatedAt: self.updatedAt, url: self.url, version: self.version, }; }, };