Spaces:
Runtime error
Runtime error
Download src/api/integrations/event/event.schema.ts from oex2003/evolution-api: direct link, hf CLI and curl.
- Browser
- Download file 904 Bytes
-
https://huggingface.co/spaces/oex2003/evolution-api/resolve/main/src/api/integrations/event/event.schema.ts
- Command line
-
hf download hf://spaces/oex2003/evolution-api/src/api/integrations/event/event.schema.ts
-
curl -L -o event.schema.ts https://huggingface.co/spaces/oex2003/evolution-api/resolve/main/src/api/integrations/event/event.schema.ts
904 Bytes
| import { JSONSchema7 } from 'json-schema'; | |
| import { v4 } from 'uuid'; | |
| import { EventController } from './event.controller'; | |
| export * from '@api/integrations/event/pusher/pusher.schema'; | |
| export * from '@api/integrations/event/webhook/webhook.schema'; | |
| export const eventSchema: JSONSchema7 = { | |
| $id: v4(), | |
| type: 'object', | |
| properties: { | |
| websocket: { | |
| $ref: '#/$defs/event', | |
| }, | |
| rabbitmq: { | |
| $ref: '#/$defs/event', | |
| }, | |
| nats: { | |
| $ref: '#/$defs/event', | |
| }, | |
| sqs: { | |
| $ref: '#/$defs/event', | |
| }, | |
| }, | |
| $defs: { | |
| event: { | |
| type: 'object', | |
| properties: { | |
| enabled: { type: 'boolean', enum: [true, false] }, | |
| events: { | |
| type: 'array', | |
| minItems: 0, | |
| items: { | |
| type: 'string', | |
| enum: EventController.events, | |
| }, | |
| }, | |
| }, | |
| required: ['enabled'], | |
| }, | |
| }, | |
| }; | |