Variable eventSubscriptionQueueSchemaConst
eventSubscriptionQueueSchema: ZodObject<
{
after_cursor: ZodOptional<ZodString>;
before_cursor: ZodOptional<ZodString>;
data: ZodArray<
ZodObject<
{
delivery_id: ZodString;
event: ZodObject<
{
agent: ZodOptional<ZodString>;
created_at: ZodString;
event_name: ZodString;
id: ZodString;
idempotency_key: ZodOptional<ZodString>;
org: ZodOptional<ZodString>;
payload: ZodRecord<
ZodString,
ZodType<{} | null, ZodTypeDef, {} | null>,
>;
sandbox: ZodOptional<ZodString>;
team: ZodOptional<ZodString>;
user: ZodOptional<ZodString>;
},
"strip",
ZodTypeAny,
{
agent?: string;
created_at: string;
event_name: string;
id: string;
idempotency_key?: string;
org?: string;
payload: Record<string, {} | null>;
sandbox?: string;
team?: string;
user?: string;
},
{
agent?: string;
created_at: string;
event_name: string;
id: string;
idempotency_key?: string;
org?: string;
payload: Record<string, {} | null>;
sandbox?: string;
team?: string;
user?: string;
},
>;
lease_expires_at: ZodOptional<ZodString>;
receive_count: ZodNumber;
sequence: ZodNumber;
state: ZodEnum<["available", "leased"]>;
},
"strip",
ZodTypeAny,
{
delivery_id: string;
event: {
agent?: string;
created_at: string;
event_name: string;
id: string;
idempotency_key?: string;
org?: string;
payload: Record<string, {} | null>;
sandbox?: string;
team?: string;
user?: string;
};
lease_expires_at?: string;
receive_count: number;
sequence: number;
state: "available"
| "leased";
},
{
delivery_id: string;
event: {
agent?: string;
created_at: string;
event_name: string;
id: string;
idempotency_key?: string;
org?: string;
payload: Record<string, {} | null>;
sandbox?: string;
team?: string;
user?: string;
};
lease_expires_at?: string;
receive_count: number;
sequence: number;
state: "available"
| "leased";
},
>,
"many",
>;
dropped_events_total: ZodNumber;
dropped_through_position: ZodNumber;
has_more: ZodBoolean;
queue_epoch: ZodNumber;
},
"strip",
ZodTypeAny,
{
after_cursor?: string;
before_cursor?: string;
data: {
delivery_id: string;
event: {
agent?: string;
created_at: string;
event_name: string;
id: string;
idempotency_key?: string;
org?: string;
payload: Record<string, {} | null>;
sandbox?: string;
team?: string;
user?: string;
};
lease_expires_at?: string;
receive_count: number;
sequence: number;
state: "available"
| "leased";
}[];
dropped_events_total: number;
dropped_through_position: number;
has_more: boolean;
queue_epoch: number;
},
{
after_cursor?: string;
before_cursor?: string;
data: {
delivery_id: string;
event: {
agent?: string;
created_at: string;
event_name: string;
id: string;
idempotency_key?: string;
org?: string;
payload: Record<string, {} | null>;
sandbox?: string;
team?: string;
user?: string;
};
lease_expires_at?: string;
receive_count: number;
sequence: number;
state: "available"
| "leased";
}[];
dropped_events_total: number;
dropped_through_position: number;
has_more: boolean;
queue_epoch: number;
},
> = ...
Runtime validator for EventSubscriptionQueue.