Skip to main content

getEventSchema

client.memoryIngestion.getEventSchema(eventType: string): Promise<IngestionEventSchema>

Retrieves the schema for a specific ingestion event type.

Returns the field definitions and validation rules for a single event type, useful for building event handlers or display components.

Parameters

ParameterTypeRequiredDescription
eventTypestringYesThe event type identifier to get the schema for

Returns

Promise<IngestionEventSchema> — A promise that resolves to the event schema definition

Example

import { CodeBoltClient } from '@codebolt/clientsdk';

const client = new CodeBoltClient();

const result = await client.memoryIngestion.getEventSchema('eventType');
console.log(result);