@sourceloop/ctrl-plane-tenant-management-service
Version:
Tenant Management microservice for SaaS control plane
25 lines (21 loc) • 546 B
text/typescript
import {Entity, model, property} from '@loopback/repository';
()
export class WebhookSecret extends Entity {
({
type: 'string',
required: true,
description:
'the secret key value used to generate and validate an hmac signature',
})
secret: string;
({
type: 'string',
required: true,
description:
'any other information that is used combined with the payload to generate the hmac',
})
context: string;
constructor(data?: Partial<WebhookSecret>) {
super(data);
}
}