Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

chore(chatWire): regenerate wire types with required nullable fields

Steven Enamakel7168cefb7661
diff --git a/app/src/services/chatWire.generated.ts b/app/src/services/chatWire.generated.ts
index 8afd651cd6..07c49e7db5 100644
--- a/app/src/services/chatWire.generated.ts
+++ b/app/src/services/chatWire.generated.ts
@@ -560,6 +560,11 @@ export type WebChannelEvent =
channel_event: ChannelEvent;
client_id: string;
event: 'channel_event';
+ /**
+ * OpenHuman's persisted row ID for the canonical event's target, when
+ * the host has an exact durable provider-receipt binding.
+ */
+ openhuman_message_id?: string | null;
request_id: string;
seq?: number | null;
thread_id: string;
@@ -628,29 +633,29 @@ export type ContentPart =
text: string;
}
| {
- altText?: string | null;
- caption?: string | null;
+ altText: string | null;
+ caption: string | null;
kind: 'image';
media: MediaReference;
}
| {
- caption?: string | null;
- durationMs?: number | null;
+ caption: string | null;
+ durationMs: number | null;
kind: 'video';
media: MediaReference;
- thumbnail?: MediaReference | null;
+ thumbnail: MediaReference | null;
}
| {
- codec?: string | null;
- durationMs?: number | null;
+ codec: string | null;
+ durationMs: number | null;
kind: 'audio';
media: MediaReference;
- title?: string | null;
- transcript?: string | null;
+ title: string | null;
+ transcript: string | null;
}
| {
- caption?: string | null;
- fileName?: string | null;
+ caption: string | null;
+ fileName: string | null;
kind: 'file';
media: MediaReference;
}
@@ -659,27 +664,27 @@ export type ContentPart =
voiceNote: VoiceNote;
}
| {
- altText?: string | null;
- emoji?: string | null;
+ altText: string | null;
+ emoji: string | null;
kind: 'sticker';
media: MediaReference;
- packId?: string | null;
- stickerId?: string | null;
+ packId: string | null;
+ stickerId: string | null;
}
| {
- accuracyMeters?: number | null;
- address?: string | null;
+ accuracyMeters: number | null;
+ address: string | null;
kind: 'location';
- label?: string | null;
+ label: string | null;
latitude: number;
- liveUntilUnixMs?: number | null;
+ liveUntilUnixMs: number | null;
longitude: number;
}
| {
displayName: string;
emails: ContactMethod[];
kind: 'contact';
- organization?: string | null;
+ organization: string | null;
phoneNumbers: ContactMethod[];
}
| {
@@ -687,11 +692,11 @@ export type ContentPart =
rows: ButtonAction[][];
}
| {
- closesAtUnixMs?: number | null;
+ closesAtUnixMs: number | null;
kind: 'poll';
multipleChoice: boolean;
options: string[];
- providerPollId?: string | null;
+ providerPollId: string | null;
question: string;
}
| {
@@ -725,8 +730,8 @@ export type OutboundVoice =
* reference remains the canonical media identity.
*/
audioBase64?: string | null;
- codec?: string | null;
- durationMs?: number | null;
+ codec: string | null;
+ durationMs: number | null;
kind: 'media';
media: MediaReference;
/**
@@ -738,7 +743,7 @@ export type OutboundVoice =
| {
kind: 'synthesize';
text: string;
- voice?: string | null;
+ voice: string | null;
};
/**
* One normalized event emitted by a channel provider.
@@ -748,7 +753,7 @@ export type ChannelEvent = {
/**
* Full conversation address. Presence events may omit it.
*/
- conversation?: ConversationRef | null;
+ conversation: ConversationRef | null;
/**
* Stable adapter event ID, suitable for host-side deduplication.
*/
@@ -756,11 +761,11 @@ export type ChannelEvent = {
/**
* Provider event ID, retained verbatim when supplied.
*/
- sourceEventId?: string | null;
+ sourceEventId: string | null;
/**
* Provider timestamp in Unix milliseconds, when supplied.
*/
- sourceTimestamp?: number | null;
+ sourceTimestamp: number | null;
/**
* Event vocabulary version. This DTO currently represents contract v2.
*/
@@ -770,19 +775,19 @@ export type ChannelEvent1 =
| {
active: boolean;
actor: SenderRef;
- expiresAt?: number | null;
+ expiresAt: number | null;
type: 'typing';
}
| {
- actor?: SenderRef | null;
+ actor: SenderRef | null;
messageId: string;
- timestamp?: number | null;
+ timestamp: number | null;
type: 'read_receipt';
}
| {
- actor?: SenderRef | null;
+ actor: SenderRef | null;
messageId: string;
- timestamp?: number | null;
+ timestamp: number | null;
type: 'delivered_receipt';
}
| {
@@ -820,18 +825,18 @@ export type ChannelEvent1 =
| {
actionId: string;
actor: SenderRef;
- providerMessageId?: string | null;
+ providerMessageId: string | null;
queryId: string;
type: 'button_callback';
}
| {
actor: SenderRef;
- expiresAt?: number | null;
+ expiresAt: number | null;
state: string;
type: 'presence';
}
| {
- reason?: string | null;
+ reason: string | null;
state: string;
type: 'lifecycle';
};
@@ -840,70 +845,70 @@ export type ChannelEvent1 =
* One inbound media reference, preserving provider attachment order.
*/
export interface MediaReference {
- codec?: string | null;
- contentType?: string | null;
- durationMs?: number | null;
- fileName?: string | null;
- height?: number | null;
+ codec: string | null;
+ contentType: string | null;
+ durationMs: number | null;
+ fileName: string | null;
+ height: number | null;
/**
* Provider-neutral media kind.
*/
- kind?: 'image' | 'video' | 'audio' | 'document' | 'unknown';
- localCachePath?: string | null;
+ kind: 'image' | 'video' | 'audio' | 'document' | 'unknown';
+ localCachePath: string | null;
/**
* Stable host-owned identifier for media stored outside the channel
* provider. It is safe to persist and does not imply a shared filesystem.
*/
opaqueId?: string | null;
- path?: string | null;
- platformMessageId?: string | null;
- sizeBytes?: number | null;
- transcribed?: boolean;
- url?: string | null;
- width?: number | null;
+ path: string | null;
+ platformMessageId: string | null;
+ sizeBytes: number | null;
+ transcribed: boolean;
+ url: string | null;
+ width: number | null;
}
/**
* Audio message metadata and optional transcript enrichment.
*/
export interface VoiceNote {
- codec?: string | null;
- durationMs?: number | null;
- media?: MediaReference1;
- pushToTalk?: boolean;
- transcript?: VoiceTranscript | null;
- waveform?: number[] | null;
+ codec: string | null;
+ durationMs: number | null;
+ media: MediaReference1;
+ pushToTalk: boolean;
+ transcript: VoiceTranscript | null;
+ waveform: number[] | null;
}
/**
* One inbound media reference, preserving provider attachment order.
*/
export interface MediaReference1 {
- codec?: string | null;
- contentType?: string | null;
- durationMs?: number | null;
- fileName?: string | null;
- height?: number | null;
+ codec: string | null;
+ contentType: string | null;
+ durationMs: number | null;
+ fileName: string | null;
+ height: number | null;
/**
* Provider-neutral media kind.
*/
- kind?: 'image' | 'video' | 'audio' | 'document' | 'unknown';
- localCachePath?: string | null;
+ kind: 'image' | 'video' | 'audio' | 'document' | 'unknown';
+ localCachePath: string | null;
/**
* Stable host-owned identifier for media stored outside the channel
* provider. It is safe to persist and does not imply a shared filesystem.
*/
opaqueId?: string | null;
- path?: string | null;
- platformMessageId?: string | null;
- sizeBytes?: number | null;
- transcribed?: boolean;
- url?: string | null;
- width?: number | null;
+ path: string | null;
+ platformMessageId: string | null;
+ sizeBytes: number | null;
+ transcribed: boolean;
+ url: string | null;
+ width: number | null;
}
/**
* Transcript enrichment attached to a voice note without replacing its audio.
*/
export interface VoiceTranscript {
- language?: string | null;
+ language: string | null;
source: VoiceTranscriptSource;
state: VoiceTranscriptState;
text: string;
@@ -912,7 +917,7 @@ export interface VoiceTranscript {
* One typed phone number or email address on a contact card.
*/
export interface ContactMethod {
- label?: string | null;
+ label: string | null;
value: string;
}
/**
@@ -922,7 +927,7 @@ export interface ButtonAction {
disabled: boolean;
id: string;
label: string;
- style?: ButtonStyle | null;
+ style: ButtonStyle | null;
}
export interface WebTurnTimingPayload {
first_token_ms?: number | null;
@@ -932,20 +937,20 @@ export interface WebTurnTimingPayload {
}
export interface WebTurnUsagePayload {
cached_input_tokens: number;
- context_tokens?: number;
+ context_tokens: number;
context_window: number;
/**
* Cost provenance copied as a wire enum to avoid depending on the harness.
*/
- cost_source?: 'charged' | 'estimated' | 'unknown';
- cost_usd?: number | null;
+ cost_source: 'charged' | 'estimated' | 'unknown';
+ cost_usd: number | null;
input_tokens: number;
output_tokens: number;
subagents?: WebSubagentUsagePayload[];
}
export interface WebSubagentUsagePayload {
agent_id: string;
- cost_usd?: number | null;
+ cost_usd: number | null;
input_tokens: number;
output_tokens: number;
task_id: string;
@@ -995,32 +1000,32 @@ export interface WebQueueItemPayload {
* Configured provider/account identity.
*/
export interface ChannelRef {
- accountId?: string | null;
- id?: string;
+ accountId: string | null;
+ id: string;
}
/**
* Reference to an inbound or outbound conversation.
*/
export interface ConversationRef {
- id?: string;
+ id: string;
/**
* Provider-neutral conversation kind.
*/
- kind?: 'dm' | 'group' | 'channel' | 'thread' | 'unknown';
- parentId?: string | null;
- scopeId?: string | null;
- threadId?: string | null;
- topicId?: string | null;
+ kind: 'dm' | 'group' | 'channel' | 'thread' | 'unknown';
+ parentId: string | null;
+ scopeId: string | null;
+ threadId: string | null;
+ topicId: string | null;
}
/**
* Reference to the message sender.
*/
export interface SenderRef {
- altIds?: string[];
- id?: string;
- isBot?: boolean;
- name?: string | null;
- roles?: string[];
+ altIds: string[];
+ id: string;
+ isBot: boolean;
+ name: string | null;
+ roles: string[];
}
/**
* Provider reaction identity, including optional custom emoji identity.
@@ -1029,9 +1034,9 @@ export interface ChannelReaction {
/**
* Provider-specific stable custom-emoji identity.
*/
- customEmojiId?: string | null;
+ customEmojiId: string | null;
/**
* Displayable reaction text, such as an emoji.
*/
- value?: string;
+ value: string;
}