svix
Version:
Svix webhooks API client and webhook verification library
37 lines (33 loc) • 930 B
text/typescript
// this file is @generated
/* eslint @typescript-eslint/no-explicit-any: 0 */
export interface ApiTokenCensoredOut {
censoredToken: string;
createdAt: Date;
expiresAt?: Date | null;
/** The ApplicationToken's ID. */
id: string;
name?: string | null;
scopes?: string[] | null;
}
export const ApiTokenCensoredOutSerializer = {
_fromJsonObject(object: any): ApiTokenCensoredOut {
return {
censoredToken: object["censoredToken"],
createdAt: new Date(object["createdAt"]),
expiresAt: object["expiresAt"] ? new Date(object["expiresAt"]) : null,
id: object["id"],
name: object["name"],
scopes: object["scopes"],
};
},
_toJsonObject(self: ApiTokenCensoredOut): any {
return {
censoredToken: self.censoredToken,
createdAt: self.createdAt,
expiresAt: self.expiresAt,
id: self.id,
name: self.name,
scopes: self.scopes,
};
},
};