@openai/agents-realtime 0.0.1 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/bundle/openai-realtime-agents.mjs +1638 -1635
- package/dist/bundle/openai-realtime-agents.umd.js +4 -4
- package/dist/metadata.js +2 -2
- package/dist/metadata.mjs +2 -2
- package/dist/openaiRealtimeBase.js +1 -0
- package/dist/openaiRealtimeBase.js.map +1 -1
- package/dist/openaiRealtimeBase.mjs +1 -0
- package/dist/openaiRealtimeBase.mjs.map +1 -1
- package/dist/openaiRealtimeEvents.d.ts +237 -243
- package/dist/openaiRealtimeEvents.js +14 -11
- package/dist/openaiRealtimeEvents.js.map +1 -1
- package/dist/openaiRealtimeEvents.mjs +14 -11
- package/dist/openaiRealtimeEvents.mjs.map +1 -1
- package/dist/openaiRealtimeWebRtc.js +1 -0
- package/dist/openaiRealtimeWebRtc.js.map +1 -1
- package/dist/openaiRealtimeWebRtc.mjs +1 -0
- package/dist/openaiRealtimeWebRtc.mjs.map +1 -1
- package/dist/openaiRealtimeWebsocket.js +1 -2
- package/dist/openaiRealtimeWebsocket.js.map +1 -1
- package/dist/openaiRealtimeWebsocket.mjs +1 -2
- package/dist/openaiRealtimeWebsocket.mjs.map +1 -1
- package/dist/realtimeSession.js +19 -11
- package/dist/realtimeSession.js.map +1 -1
- package/dist/realtimeSession.mjs +19 -11
- package/dist/realtimeSession.mjs.map +1 -1
- package/dist/transportLayerEvents.d.ts +1 -0
- package/package.json +2 -2
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { z } from '@openai/zod/v3';
|
|
2
2
|
import type { MessageEvent as WebSocketMessageEvent } from 'ws';
|
|
3
3
|
export declare const realtimeResponse: z.ZodObject<{
|
|
4
|
-
id: z.ZodOptional<z.ZodString
|
|
5
|
-
conversation_id: z.ZodOptional<z.ZodString
|
|
6
|
-
max_output_tokens: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"inf">]
|
|
4
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
5
|
+
conversation_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
6
|
+
max_output_tokens: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"inf">]>>>;
|
|
7
7
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
8
|
-
modalities: z.ZodOptional<z.ZodArray<z.ZodString, "many"
|
|
9
|
-
object: z.ZodOptional<z.ZodLiteral<"realtime.response"
|
|
10
|
-
output: z.ZodOptional<z.ZodArray<z.ZodAny, "many"
|
|
11
|
-
output_audio_format: z.ZodOptional<z.ZodString
|
|
12
|
-
status: z.ZodOptional<z.ZodEnum<["completed", "incomplete", "failed", "cancelled"]
|
|
8
|
+
modalities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
9
|
+
object: z.ZodNullable<z.ZodOptional<z.ZodLiteral<"realtime.response">>>;
|
|
10
|
+
output: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
|
|
11
|
+
output_audio_format: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
12
|
+
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["completed", "incomplete", "failed", "cancelled", "in_progress"]>>>;
|
|
13
13
|
status_details: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
14
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
14
|
+
usage: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
15
15
|
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
16
16
|
input_tokens_details: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
17
17
|
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -26,44 +26,44 @@ export declare const realtimeResponse: z.ZodObject<{
|
|
|
26
26
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
27
27
|
output_tokens?: number | undefined;
|
|
28
28
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
29
|
-
}
|
|
30
|
-
voice: z.ZodOptional<z.ZodString
|
|
31
|
-
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
object?: "realtime.response" | undefined;
|
|
33
|
-
output?: any[] | undefined;
|
|
34
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
35
|
-
id?: string | undefined;
|
|
36
|
-
conversation_id?: string | undefined;
|
|
37
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
29
|
+
}>>>;
|
|
30
|
+
voice: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
object?: "realtime.response" | null | undefined;
|
|
33
|
+
output?: any[] | null | undefined;
|
|
34
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
35
|
+
id?: string | null | undefined;
|
|
36
|
+
conversation_id?: string | null | undefined;
|
|
37
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
38
38
|
metadata?: Record<string, any> | null | undefined;
|
|
39
|
-
modalities?: string[] | undefined;
|
|
40
|
-
output_audio_format?: string | undefined;
|
|
39
|
+
modalities?: string[] | null | undefined;
|
|
40
|
+
output_audio_format?: string | null | undefined;
|
|
41
41
|
status_details?: Record<string, any> | null | undefined;
|
|
42
42
|
usage?: {
|
|
43
43
|
input_tokens?: number | undefined;
|
|
44
44
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
45
45
|
output_tokens?: number | undefined;
|
|
46
46
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
47
|
-
} | undefined;
|
|
48
|
-
voice?: string | undefined;
|
|
49
|
-
}, {
|
|
50
|
-
object?: "realtime.response" | undefined;
|
|
51
|
-
output?: any[] | undefined;
|
|
52
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
53
|
-
id?: string | undefined;
|
|
54
|
-
conversation_id?: string | undefined;
|
|
55
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
47
|
+
} | null | undefined;
|
|
48
|
+
voice?: string | null | undefined;
|
|
49
|
+
}, {
|
|
50
|
+
object?: "realtime.response" | null | undefined;
|
|
51
|
+
output?: any[] | null | undefined;
|
|
52
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
53
|
+
id?: string | null | undefined;
|
|
54
|
+
conversation_id?: string | null | undefined;
|
|
55
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
56
56
|
metadata?: Record<string, any> | null | undefined;
|
|
57
|
-
modalities?: string[] | undefined;
|
|
58
|
-
output_audio_format?: string | undefined;
|
|
57
|
+
modalities?: string[] | null | undefined;
|
|
58
|
+
output_audio_format?: string | null | undefined;
|
|
59
59
|
status_details?: Record<string, any> | null | undefined;
|
|
60
60
|
usage?: {
|
|
61
61
|
input_tokens?: number | undefined;
|
|
62
62
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
63
63
|
output_tokens?: number | undefined;
|
|
64
64
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
65
|
-
} | undefined;
|
|
66
|
-
voice?: string | undefined;
|
|
65
|
+
} | null | undefined;
|
|
66
|
+
voice?: string | null | undefined;
|
|
67
67
|
}>;
|
|
68
68
|
export declare const conversationItemContentSchema: z.ZodObject<{
|
|
69
69
|
id: z.ZodOptional<z.ZodString>;
|
|
@@ -1050,17 +1050,17 @@ export declare const responseCreatedEventSchema: z.ZodObject<{
|
|
|
1050
1050
|
type: z.ZodLiteral<"response.created">;
|
|
1051
1051
|
event_id: z.ZodString;
|
|
1052
1052
|
response: z.ZodObject<{
|
|
1053
|
-
id: z.ZodOptional<z.ZodString
|
|
1054
|
-
conversation_id: z.ZodOptional<z.ZodString
|
|
1055
|
-
max_output_tokens: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"inf">]
|
|
1053
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1054
|
+
conversation_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1055
|
+
max_output_tokens: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"inf">]>>>;
|
|
1056
1056
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1057
|
-
modalities: z.ZodOptional<z.ZodArray<z.ZodString, "many"
|
|
1058
|
-
object: z.ZodOptional<z.ZodLiteral<"realtime.response"
|
|
1059
|
-
output: z.ZodOptional<z.ZodArray<z.ZodAny, "many"
|
|
1060
|
-
output_audio_format: z.ZodOptional<z.ZodString
|
|
1061
|
-
status: z.ZodOptional<z.ZodEnum<["completed", "incomplete", "failed", "cancelled"]
|
|
1057
|
+
modalities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1058
|
+
object: z.ZodNullable<z.ZodOptional<z.ZodLiteral<"realtime.response">>>;
|
|
1059
|
+
output: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
|
|
1060
|
+
output_audio_format: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1061
|
+
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["completed", "incomplete", "failed", "cancelled", "in_progress"]>>>;
|
|
1062
1062
|
status_details: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1063
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
1063
|
+
usage: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1064
1064
|
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1065
1065
|
input_tokens_details: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1066
1066
|
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1075,105 +1075,105 @@ export declare const responseCreatedEventSchema: z.ZodObject<{
|
|
|
1075
1075
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
1076
1076
|
output_tokens?: number | undefined;
|
|
1077
1077
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
1078
|
-
}
|
|
1079
|
-
voice: z.ZodOptional<z.ZodString
|
|
1078
|
+
}>>>;
|
|
1079
|
+
voice: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1080
1080
|
}, "strip", z.ZodTypeAny, {
|
|
1081
|
-
object?: "realtime.response" | undefined;
|
|
1082
|
-
output?: any[] | undefined;
|
|
1083
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
1084
|
-
id?: string | undefined;
|
|
1085
|
-
conversation_id?: string | undefined;
|
|
1086
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
1081
|
+
object?: "realtime.response" | null | undefined;
|
|
1082
|
+
output?: any[] | null | undefined;
|
|
1083
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
1084
|
+
id?: string | null | undefined;
|
|
1085
|
+
conversation_id?: string | null | undefined;
|
|
1086
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
1087
1087
|
metadata?: Record<string, any> | null | undefined;
|
|
1088
|
-
modalities?: string[] | undefined;
|
|
1089
|
-
output_audio_format?: string | undefined;
|
|
1088
|
+
modalities?: string[] | null | undefined;
|
|
1089
|
+
output_audio_format?: string | null | undefined;
|
|
1090
1090
|
status_details?: Record<string, any> | null | undefined;
|
|
1091
1091
|
usage?: {
|
|
1092
1092
|
input_tokens?: number | undefined;
|
|
1093
1093
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
1094
1094
|
output_tokens?: number | undefined;
|
|
1095
1095
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
1096
|
-
} | undefined;
|
|
1097
|
-
voice?: string | undefined;
|
|
1096
|
+
} | null | undefined;
|
|
1097
|
+
voice?: string | null | undefined;
|
|
1098
1098
|
}, {
|
|
1099
|
-
object?: "realtime.response" | undefined;
|
|
1100
|
-
output?: any[] | undefined;
|
|
1101
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
1102
|
-
id?: string | undefined;
|
|
1103
|
-
conversation_id?: string | undefined;
|
|
1104
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
1099
|
+
object?: "realtime.response" | null | undefined;
|
|
1100
|
+
output?: any[] | null | undefined;
|
|
1101
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
1102
|
+
id?: string | null | undefined;
|
|
1103
|
+
conversation_id?: string | null | undefined;
|
|
1104
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
1105
1105
|
metadata?: Record<string, any> | null | undefined;
|
|
1106
|
-
modalities?: string[] | undefined;
|
|
1107
|
-
output_audio_format?: string | undefined;
|
|
1106
|
+
modalities?: string[] | null | undefined;
|
|
1107
|
+
output_audio_format?: string | null | undefined;
|
|
1108
1108
|
status_details?: Record<string, any> | null | undefined;
|
|
1109
1109
|
usage?: {
|
|
1110
1110
|
input_tokens?: number | undefined;
|
|
1111
1111
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
1112
1112
|
output_tokens?: number | undefined;
|
|
1113
1113
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
1114
|
-
} | undefined;
|
|
1115
|
-
voice?: string | undefined;
|
|
1114
|
+
} | null | undefined;
|
|
1115
|
+
voice?: string | null | undefined;
|
|
1116
1116
|
}>;
|
|
1117
1117
|
}, "strip", z.ZodTypeAny, {
|
|
1118
1118
|
type: "response.created";
|
|
1119
1119
|
event_id: string;
|
|
1120
1120
|
response: {
|
|
1121
|
-
object?: "realtime.response" | undefined;
|
|
1122
|
-
output?: any[] | undefined;
|
|
1123
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
1124
|
-
id?: string | undefined;
|
|
1125
|
-
conversation_id?: string | undefined;
|
|
1126
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
1121
|
+
object?: "realtime.response" | null | undefined;
|
|
1122
|
+
output?: any[] | null | undefined;
|
|
1123
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
1124
|
+
id?: string | null | undefined;
|
|
1125
|
+
conversation_id?: string | null | undefined;
|
|
1126
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
1127
1127
|
metadata?: Record<string, any> | null | undefined;
|
|
1128
|
-
modalities?: string[] | undefined;
|
|
1129
|
-
output_audio_format?: string | undefined;
|
|
1128
|
+
modalities?: string[] | null | undefined;
|
|
1129
|
+
output_audio_format?: string | null | undefined;
|
|
1130
1130
|
status_details?: Record<string, any> | null | undefined;
|
|
1131
1131
|
usage?: {
|
|
1132
1132
|
input_tokens?: number | undefined;
|
|
1133
1133
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
1134
1134
|
output_tokens?: number | undefined;
|
|
1135
1135
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
1136
|
-
} | undefined;
|
|
1137
|
-
voice?: string | undefined;
|
|
1136
|
+
} | null | undefined;
|
|
1137
|
+
voice?: string | null | undefined;
|
|
1138
1138
|
};
|
|
1139
1139
|
}, {
|
|
1140
1140
|
type: "response.created";
|
|
1141
1141
|
event_id: string;
|
|
1142
1142
|
response: {
|
|
1143
|
-
object?: "realtime.response" | undefined;
|
|
1144
|
-
output?: any[] | undefined;
|
|
1145
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
1146
|
-
id?: string | undefined;
|
|
1147
|
-
conversation_id?: string | undefined;
|
|
1148
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
1143
|
+
object?: "realtime.response" | null | undefined;
|
|
1144
|
+
output?: any[] | null | undefined;
|
|
1145
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
1146
|
+
id?: string | null | undefined;
|
|
1147
|
+
conversation_id?: string | null | undefined;
|
|
1148
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
1149
1149
|
metadata?: Record<string, any> | null | undefined;
|
|
1150
|
-
modalities?: string[] | undefined;
|
|
1151
|
-
output_audio_format?: string | undefined;
|
|
1150
|
+
modalities?: string[] | null | undefined;
|
|
1151
|
+
output_audio_format?: string | null | undefined;
|
|
1152
1152
|
status_details?: Record<string, any> | null | undefined;
|
|
1153
1153
|
usage?: {
|
|
1154
1154
|
input_tokens?: number | undefined;
|
|
1155
1155
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
1156
1156
|
output_tokens?: number | undefined;
|
|
1157
1157
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
1158
|
-
} | undefined;
|
|
1159
|
-
voice?: string | undefined;
|
|
1158
|
+
} | null | undefined;
|
|
1159
|
+
voice?: string | null | undefined;
|
|
1160
1160
|
};
|
|
1161
1161
|
}>;
|
|
1162
1162
|
export declare const responseDoneEventSchema: z.ZodObject<{
|
|
1163
1163
|
type: z.ZodLiteral<"response.done">;
|
|
1164
1164
|
event_id: z.ZodString;
|
|
1165
1165
|
response: z.ZodObject<{
|
|
1166
|
-
id: z.ZodOptional<z.ZodString
|
|
1167
|
-
conversation_id: z.ZodOptional<z.ZodString
|
|
1168
|
-
max_output_tokens: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"inf">]
|
|
1166
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1167
|
+
conversation_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1168
|
+
max_output_tokens: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"inf">]>>>;
|
|
1169
1169
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1170
|
-
modalities: z.ZodOptional<z.ZodArray<z.ZodString, "many"
|
|
1171
|
-
object: z.ZodOptional<z.ZodLiteral<"realtime.response"
|
|
1172
|
-
output: z.ZodOptional<z.ZodArray<z.ZodAny, "many"
|
|
1173
|
-
output_audio_format: z.ZodOptional<z.ZodString
|
|
1174
|
-
status: z.ZodOptional<z.ZodEnum<["completed", "incomplete", "failed", "cancelled"]
|
|
1170
|
+
modalities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
1171
|
+
object: z.ZodNullable<z.ZodOptional<z.ZodLiteral<"realtime.response">>>;
|
|
1172
|
+
output: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
|
|
1173
|
+
output_audio_format: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1174
|
+
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["completed", "incomplete", "failed", "cancelled", "in_progress"]>>>;
|
|
1175
1175
|
status_details: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1176
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
1176
|
+
usage: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
1177
1177
|
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
1178
1178
|
input_tokens_details: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
1179
1179
|
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -1188,92 +1188,89 @@ export declare const responseDoneEventSchema: z.ZodObject<{
|
|
|
1188
1188
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
1189
1189
|
output_tokens?: number | undefined;
|
|
1190
1190
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
1191
|
-
}
|
|
1192
|
-
voice: z.ZodOptional<z.ZodString
|
|
1191
|
+
}>>>;
|
|
1192
|
+
voice: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
1193
1193
|
}, "strip", z.ZodTypeAny, {
|
|
1194
|
-
object?: "realtime.response" | undefined;
|
|
1195
|
-
output?: any[] | undefined;
|
|
1196
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
1197
|
-
id?: string | undefined;
|
|
1198
|
-
conversation_id?: string | undefined;
|
|
1199
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
1194
|
+
object?: "realtime.response" | null | undefined;
|
|
1195
|
+
output?: any[] | null | undefined;
|
|
1196
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
1197
|
+
id?: string | null | undefined;
|
|
1198
|
+
conversation_id?: string | null | undefined;
|
|
1199
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
1200
1200
|
metadata?: Record<string, any> | null | undefined;
|
|
1201
|
-
modalities?: string[] | undefined;
|
|
1202
|
-
output_audio_format?: string | undefined;
|
|
1201
|
+
modalities?: string[] | null | undefined;
|
|
1202
|
+
output_audio_format?: string | null | undefined;
|
|
1203
1203
|
status_details?: Record<string, any> | null | undefined;
|
|
1204
1204
|
usage?: {
|
|
1205
1205
|
input_tokens?: number | undefined;
|
|
1206
1206
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
1207
1207
|
output_tokens?: number | undefined;
|
|
1208
1208
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
1209
|
-
} | undefined;
|
|
1210
|
-
voice?: string | undefined;
|
|
1209
|
+
} | null | undefined;
|
|
1210
|
+
voice?: string | null | undefined;
|
|
1211
1211
|
}, {
|
|
1212
|
-
object?: "realtime.response" | undefined;
|
|
1213
|
-
output?: any[] | undefined;
|
|
1214
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
1215
|
-
id?: string | undefined;
|
|
1216
|
-
conversation_id?: string | undefined;
|
|
1217
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
1212
|
+
object?: "realtime.response" | null | undefined;
|
|
1213
|
+
output?: any[] | null | undefined;
|
|
1214
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
1215
|
+
id?: string | null | undefined;
|
|
1216
|
+
conversation_id?: string | null | undefined;
|
|
1217
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
1218
1218
|
metadata?: Record<string, any> | null | undefined;
|
|
1219
|
-
modalities?: string[] | undefined;
|
|
1220
|
-
output_audio_format?: string | undefined;
|
|
1219
|
+
modalities?: string[] | null | undefined;
|
|
1220
|
+
output_audio_format?: string | null | undefined;
|
|
1221
1221
|
status_details?: Record<string, any> | null | undefined;
|
|
1222
1222
|
usage?: {
|
|
1223
1223
|
input_tokens?: number | undefined;
|
|
1224
1224
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
1225
1225
|
output_tokens?: number | undefined;
|
|
1226
1226
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
1227
|
-
} | undefined;
|
|
1228
|
-
voice?: string | undefined;
|
|
1227
|
+
} | null | undefined;
|
|
1228
|
+
voice?: string | null | undefined;
|
|
1229
1229
|
}>;
|
|
1230
|
-
test: z.ZodBoolean;
|
|
1231
1230
|
}, "strip", z.ZodTypeAny, {
|
|
1232
1231
|
type: "response.done";
|
|
1233
1232
|
event_id: string;
|
|
1234
1233
|
response: {
|
|
1235
|
-
object?: "realtime.response" | undefined;
|
|
1236
|
-
output?: any[] | undefined;
|
|
1237
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
1238
|
-
id?: string | undefined;
|
|
1239
|
-
conversation_id?: string | undefined;
|
|
1240
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
1234
|
+
object?: "realtime.response" | null | undefined;
|
|
1235
|
+
output?: any[] | null | undefined;
|
|
1236
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
1237
|
+
id?: string | null | undefined;
|
|
1238
|
+
conversation_id?: string | null | undefined;
|
|
1239
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
1241
1240
|
metadata?: Record<string, any> | null | undefined;
|
|
1242
|
-
modalities?: string[] | undefined;
|
|
1243
|
-
output_audio_format?: string | undefined;
|
|
1241
|
+
modalities?: string[] | null | undefined;
|
|
1242
|
+
output_audio_format?: string | null | undefined;
|
|
1244
1243
|
status_details?: Record<string, any> | null | undefined;
|
|
1245
1244
|
usage?: {
|
|
1246
1245
|
input_tokens?: number | undefined;
|
|
1247
1246
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
1248
1247
|
output_tokens?: number | undefined;
|
|
1249
1248
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
1250
|
-
} | undefined;
|
|
1251
|
-
voice?: string | undefined;
|
|
1249
|
+
} | null | undefined;
|
|
1250
|
+
voice?: string | null | undefined;
|
|
1252
1251
|
};
|
|
1253
|
-
test: boolean;
|
|
1254
1252
|
}, {
|
|
1255
1253
|
type: "response.done";
|
|
1256
1254
|
event_id: string;
|
|
1257
1255
|
response: {
|
|
1258
|
-
object?: "realtime.response" | undefined;
|
|
1259
|
-
output?: any[] | undefined;
|
|
1260
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
1261
|
-
id?: string | undefined;
|
|
1262
|
-
conversation_id?: string | undefined;
|
|
1263
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
1256
|
+
object?: "realtime.response" | null | undefined;
|
|
1257
|
+
output?: any[] | null | undefined;
|
|
1258
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
1259
|
+
id?: string | null | undefined;
|
|
1260
|
+
conversation_id?: string | null | undefined;
|
|
1261
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
1264
1262
|
metadata?: Record<string, any> | null | undefined;
|
|
1265
|
-
modalities?: string[] | undefined;
|
|
1266
|
-
output_audio_format?: string | undefined;
|
|
1263
|
+
modalities?: string[] | null | undefined;
|
|
1264
|
+
output_audio_format?: string | null | undefined;
|
|
1267
1265
|
status_details?: Record<string, any> | null | undefined;
|
|
1268
1266
|
usage?: {
|
|
1269
1267
|
input_tokens?: number | undefined;
|
|
1270
1268
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
1271
1269
|
output_tokens?: number | undefined;
|
|
1272
1270
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
1273
|
-
} | undefined;
|
|
1274
|
-
voice?: string | undefined;
|
|
1271
|
+
} | null | undefined;
|
|
1272
|
+
voice?: string | null | undefined;
|
|
1275
1273
|
};
|
|
1276
|
-
test: boolean;
|
|
1277
1274
|
}>;
|
|
1278
1275
|
export declare const responseFunctionCallArgumentsDeltaEventSchema: z.ZodObject<{
|
|
1279
1276
|
type: z.ZodLiteral<"response.function_call_arguments.delta">;
|
|
@@ -2401,17 +2398,17 @@ export declare const realtimeServerEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
2401
2398
|
type: z.ZodLiteral<"response.created">;
|
|
2402
2399
|
event_id: z.ZodString;
|
|
2403
2400
|
response: z.ZodObject<{
|
|
2404
|
-
id: z.ZodOptional<z.ZodString
|
|
2405
|
-
conversation_id: z.ZodOptional<z.ZodString
|
|
2406
|
-
max_output_tokens: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"inf">]
|
|
2401
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2402
|
+
conversation_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2403
|
+
max_output_tokens: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"inf">]>>>;
|
|
2407
2404
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2408
|
-
modalities: z.ZodOptional<z.ZodArray<z.ZodString, "many"
|
|
2409
|
-
object: z.ZodOptional<z.ZodLiteral<"realtime.response"
|
|
2410
|
-
output: z.ZodOptional<z.ZodArray<z.ZodAny, "many"
|
|
2411
|
-
output_audio_format: z.ZodOptional<z.ZodString
|
|
2412
|
-
status: z.ZodOptional<z.ZodEnum<["completed", "incomplete", "failed", "cancelled"]
|
|
2405
|
+
modalities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
2406
|
+
object: z.ZodNullable<z.ZodOptional<z.ZodLiteral<"realtime.response">>>;
|
|
2407
|
+
output: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
|
|
2408
|
+
output_audio_format: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2409
|
+
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["completed", "incomplete", "failed", "cancelled", "in_progress"]>>>;
|
|
2413
2410
|
status_details: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2414
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
2411
|
+
usage: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2415
2412
|
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
2416
2413
|
input_tokens_details: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2417
2414
|
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2426,104 +2423,104 @@ export declare const realtimeServerEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
2426
2423
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
2427
2424
|
output_tokens?: number | undefined;
|
|
2428
2425
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
2429
|
-
}
|
|
2430
|
-
voice: z.ZodOptional<z.ZodString
|
|
2426
|
+
}>>>;
|
|
2427
|
+
voice: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2431
2428
|
}, "strip", z.ZodTypeAny, {
|
|
2432
|
-
object?: "realtime.response" | undefined;
|
|
2433
|
-
output?: any[] | undefined;
|
|
2434
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
2435
|
-
id?: string | undefined;
|
|
2436
|
-
conversation_id?: string | undefined;
|
|
2437
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
2429
|
+
object?: "realtime.response" | null | undefined;
|
|
2430
|
+
output?: any[] | null | undefined;
|
|
2431
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
2432
|
+
id?: string | null | undefined;
|
|
2433
|
+
conversation_id?: string | null | undefined;
|
|
2434
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
2438
2435
|
metadata?: Record<string, any> | null | undefined;
|
|
2439
|
-
modalities?: string[] | undefined;
|
|
2440
|
-
output_audio_format?: string | undefined;
|
|
2436
|
+
modalities?: string[] | null | undefined;
|
|
2437
|
+
output_audio_format?: string | null | undefined;
|
|
2441
2438
|
status_details?: Record<string, any> | null | undefined;
|
|
2442
2439
|
usage?: {
|
|
2443
2440
|
input_tokens?: number | undefined;
|
|
2444
2441
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
2445
2442
|
output_tokens?: number | undefined;
|
|
2446
2443
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
2447
|
-
} | undefined;
|
|
2448
|
-
voice?: string | undefined;
|
|
2444
|
+
} | null | undefined;
|
|
2445
|
+
voice?: string | null | undefined;
|
|
2449
2446
|
}, {
|
|
2450
|
-
object?: "realtime.response" | undefined;
|
|
2451
|
-
output?: any[] | undefined;
|
|
2452
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
2453
|
-
id?: string | undefined;
|
|
2454
|
-
conversation_id?: string | undefined;
|
|
2455
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
2447
|
+
object?: "realtime.response" | null | undefined;
|
|
2448
|
+
output?: any[] | null | undefined;
|
|
2449
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
2450
|
+
id?: string | null | undefined;
|
|
2451
|
+
conversation_id?: string | null | undefined;
|
|
2452
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
2456
2453
|
metadata?: Record<string, any> | null | undefined;
|
|
2457
|
-
modalities?: string[] | undefined;
|
|
2458
|
-
output_audio_format?: string | undefined;
|
|
2454
|
+
modalities?: string[] | null | undefined;
|
|
2455
|
+
output_audio_format?: string | null | undefined;
|
|
2459
2456
|
status_details?: Record<string, any> | null | undefined;
|
|
2460
2457
|
usage?: {
|
|
2461
2458
|
input_tokens?: number | undefined;
|
|
2462
2459
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
2463
2460
|
output_tokens?: number | undefined;
|
|
2464
2461
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
2465
|
-
} | undefined;
|
|
2466
|
-
voice?: string | undefined;
|
|
2462
|
+
} | null | undefined;
|
|
2463
|
+
voice?: string | null | undefined;
|
|
2467
2464
|
}>;
|
|
2468
2465
|
}, "strip", z.ZodTypeAny, {
|
|
2469
2466
|
type: "response.created";
|
|
2470
2467
|
event_id: string;
|
|
2471
2468
|
response: {
|
|
2472
|
-
object?: "realtime.response" | undefined;
|
|
2473
|
-
output?: any[] | undefined;
|
|
2474
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
2475
|
-
id?: string | undefined;
|
|
2476
|
-
conversation_id?: string | undefined;
|
|
2477
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
2469
|
+
object?: "realtime.response" | null | undefined;
|
|
2470
|
+
output?: any[] | null | undefined;
|
|
2471
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
2472
|
+
id?: string | null | undefined;
|
|
2473
|
+
conversation_id?: string | null | undefined;
|
|
2474
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
2478
2475
|
metadata?: Record<string, any> | null | undefined;
|
|
2479
|
-
modalities?: string[] | undefined;
|
|
2480
|
-
output_audio_format?: string | undefined;
|
|
2476
|
+
modalities?: string[] | null | undefined;
|
|
2477
|
+
output_audio_format?: string | null | undefined;
|
|
2481
2478
|
status_details?: Record<string, any> | null | undefined;
|
|
2482
2479
|
usage?: {
|
|
2483
2480
|
input_tokens?: number | undefined;
|
|
2484
2481
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
2485
2482
|
output_tokens?: number | undefined;
|
|
2486
2483
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
2487
|
-
} | undefined;
|
|
2488
|
-
voice?: string | undefined;
|
|
2484
|
+
} | null | undefined;
|
|
2485
|
+
voice?: string | null | undefined;
|
|
2489
2486
|
};
|
|
2490
2487
|
}, {
|
|
2491
2488
|
type: "response.created";
|
|
2492
2489
|
event_id: string;
|
|
2493
2490
|
response: {
|
|
2494
|
-
object?: "realtime.response" | undefined;
|
|
2495
|
-
output?: any[] | undefined;
|
|
2496
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
2497
|
-
id?: string | undefined;
|
|
2498
|
-
conversation_id?: string | undefined;
|
|
2499
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
2491
|
+
object?: "realtime.response" | null | undefined;
|
|
2492
|
+
output?: any[] | null | undefined;
|
|
2493
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
2494
|
+
id?: string | null | undefined;
|
|
2495
|
+
conversation_id?: string | null | undefined;
|
|
2496
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
2500
2497
|
metadata?: Record<string, any> | null | undefined;
|
|
2501
|
-
modalities?: string[] | undefined;
|
|
2502
|
-
output_audio_format?: string | undefined;
|
|
2498
|
+
modalities?: string[] | null | undefined;
|
|
2499
|
+
output_audio_format?: string | null | undefined;
|
|
2503
2500
|
status_details?: Record<string, any> | null | undefined;
|
|
2504
2501
|
usage?: {
|
|
2505
2502
|
input_tokens?: number | undefined;
|
|
2506
2503
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
2507
2504
|
output_tokens?: number | undefined;
|
|
2508
2505
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
2509
|
-
} | undefined;
|
|
2510
|
-
voice?: string | undefined;
|
|
2506
|
+
} | null | undefined;
|
|
2507
|
+
voice?: string | null | undefined;
|
|
2511
2508
|
};
|
|
2512
2509
|
}>, z.ZodObject<{
|
|
2513
2510
|
type: z.ZodLiteral<"response.done">;
|
|
2514
2511
|
event_id: z.ZodString;
|
|
2515
2512
|
response: z.ZodObject<{
|
|
2516
|
-
id: z.ZodOptional<z.ZodString
|
|
2517
|
-
conversation_id: z.ZodOptional<z.ZodString
|
|
2518
|
-
max_output_tokens: z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"inf">]
|
|
2513
|
+
id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2514
|
+
conversation_id: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2515
|
+
max_output_tokens: z.ZodNullable<z.ZodOptional<z.ZodUnion<[z.ZodNumber, z.ZodLiteral<"inf">]>>>;
|
|
2519
2516
|
metadata: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2520
|
-
modalities: z.ZodOptional<z.ZodArray<z.ZodString, "many"
|
|
2521
|
-
object: z.ZodOptional<z.ZodLiteral<"realtime.response"
|
|
2522
|
-
output: z.ZodOptional<z.ZodArray<z.ZodAny, "many"
|
|
2523
|
-
output_audio_format: z.ZodOptional<z.ZodString
|
|
2524
|
-
status: z.ZodOptional<z.ZodEnum<["completed", "incomplete", "failed", "cancelled"]
|
|
2517
|
+
modalities: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
2518
|
+
object: z.ZodNullable<z.ZodOptional<z.ZodLiteral<"realtime.response">>>;
|
|
2519
|
+
output: z.ZodNullable<z.ZodOptional<z.ZodArray<z.ZodAny, "many">>>;
|
|
2520
|
+
output_audio_format: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2521
|
+
status: z.ZodNullable<z.ZodOptional<z.ZodEnum<["completed", "incomplete", "failed", "cancelled", "in_progress"]>>>;
|
|
2525
2522
|
status_details: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2526
|
-
usage: z.ZodOptional<z.ZodObject<{
|
|
2523
|
+
usage: z.ZodNullable<z.ZodOptional<z.ZodObject<{
|
|
2527
2524
|
input_tokens: z.ZodOptional<z.ZodNumber>;
|
|
2528
2525
|
input_tokens_details: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
2529
2526
|
output_tokens: z.ZodOptional<z.ZodNumber>;
|
|
@@ -2538,92 +2535,89 @@ export declare const realtimeServerEventSchema: z.ZodDiscriminatedUnion<"type",
|
|
|
2538
2535
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
2539
2536
|
output_tokens?: number | undefined;
|
|
2540
2537
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
2541
|
-
}
|
|
2542
|
-
voice: z.ZodOptional<z.ZodString
|
|
2538
|
+
}>>>;
|
|
2539
|
+
voice: z.ZodNullable<z.ZodOptional<z.ZodString>>;
|
|
2543
2540
|
}, "strip", z.ZodTypeAny, {
|
|
2544
|
-
object?: "realtime.response" | undefined;
|
|
2545
|
-
output?: any[] | undefined;
|
|
2546
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
2547
|
-
id?: string | undefined;
|
|
2548
|
-
conversation_id?: string | undefined;
|
|
2549
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
2541
|
+
object?: "realtime.response" | null | undefined;
|
|
2542
|
+
output?: any[] | null | undefined;
|
|
2543
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
2544
|
+
id?: string | null | undefined;
|
|
2545
|
+
conversation_id?: string | null | undefined;
|
|
2546
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
2550
2547
|
metadata?: Record<string, any> | null | undefined;
|
|
2551
|
-
modalities?: string[] | undefined;
|
|
2552
|
-
output_audio_format?: string | undefined;
|
|
2548
|
+
modalities?: string[] | null | undefined;
|
|
2549
|
+
output_audio_format?: string | null | undefined;
|
|
2553
2550
|
status_details?: Record<string, any> | null | undefined;
|
|
2554
2551
|
usage?: {
|
|
2555
2552
|
input_tokens?: number | undefined;
|
|
2556
2553
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
2557
2554
|
output_tokens?: number | undefined;
|
|
2558
2555
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
2559
|
-
} | undefined;
|
|
2560
|
-
voice?: string | undefined;
|
|
2556
|
+
} | null | undefined;
|
|
2557
|
+
voice?: string | null | undefined;
|
|
2561
2558
|
}, {
|
|
2562
|
-
object?: "realtime.response" | undefined;
|
|
2563
|
-
output?: any[] | undefined;
|
|
2564
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
2565
|
-
id?: string | undefined;
|
|
2566
|
-
conversation_id?: string | undefined;
|
|
2567
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
2559
|
+
object?: "realtime.response" | null | undefined;
|
|
2560
|
+
output?: any[] | null | undefined;
|
|
2561
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
2562
|
+
id?: string | null | undefined;
|
|
2563
|
+
conversation_id?: string | null | undefined;
|
|
2564
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
2568
2565
|
metadata?: Record<string, any> | null | undefined;
|
|
2569
|
-
modalities?: string[] | undefined;
|
|
2570
|
-
output_audio_format?: string | undefined;
|
|
2566
|
+
modalities?: string[] | null | undefined;
|
|
2567
|
+
output_audio_format?: string | null | undefined;
|
|
2571
2568
|
status_details?: Record<string, any> | null | undefined;
|
|
2572
2569
|
usage?: {
|
|
2573
2570
|
input_tokens?: number | undefined;
|
|
2574
2571
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
2575
2572
|
output_tokens?: number | undefined;
|
|
2576
2573
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
2577
|
-
} | undefined;
|
|
2578
|
-
voice?: string | undefined;
|
|
2574
|
+
} | null | undefined;
|
|
2575
|
+
voice?: string | null | undefined;
|
|
2579
2576
|
}>;
|
|
2580
|
-
test: z.ZodBoolean;
|
|
2581
2577
|
}, "strip", z.ZodTypeAny, {
|
|
2582
2578
|
type: "response.done";
|
|
2583
2579
|
event_id: string;
|
|
2584
2580
|
response: {
|
|
2585
|
-
object?: "realtime.response" | undefined;
|
|
2586
|
-
output?: any[] | undefined;
|
|
2587
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
2588
|
-
id?: string | undefined;
|
|
2589
|
-
conversation_id?: string | undefined;
|
|
2590
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
2581
|
+
object?: "realtime.response" | null | undefined;
|
|
2582
|
+
output?: any[] | null | undefined;
|
|
2583
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
2584
|
+
id?: string | null | undefined;
|
|
2585
|
+
conversation_id?: string | null | undefined;
|
|
2586
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
2591
2587
|
metadata?: Record<string, any> | null | undefined;
|
|
2592
|
-
modalities?: string[] | undefined;
|
|
2593
|
-
output_audio_format?: string | undefined;
|
|
2588
|
+
modalities?: string[] | null | undefined;
|
|
2589
|
+
output_audio_format?: string | null | undefined;
|
|
2594
2590
|
status_details?: Record<string, any> | null | undefined;
|
|
2595
2591
|
usage?: {
|
|
2596
2592
|
input_tokens?: number | undefined;
|
|
2597
2593
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
2598
2594
|
output_tokens?: number | undefined;
|
|
2599
2595
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
2600
|
-
} | undefined;
|
|
2601
|
-
voice?: string | undefined;
|
|
2596
|
+
} | null | undefined;
|
|
2597
|
+
voice?: string | null | undefined;
|
|
2602
2598
|
};
|
|
2603
|
-
test: boolean;
|
|
2604
2599
|
}, {
|
|
2605
2600
|
type: "response.done";
|
|
2606
2601
|
event_id: string;
|
|
2607
2602
|
response: {
|
|
2608
|
-
object?: "realtime.response" | undefined;
|
|
2609
|
-
output?: any[] | undefined;
|
|
2610
|
-
status?: "completed" | "incomplete" | "failed" | "cancelled" | undefined;
|
|
2611
|
-
id?: string | undefined;
|
|
2612
|
-
conversation_id?: string | undefined;
|
|
2613
|
-
max_output_tokens?: number | "inf" | undefined;
|
|
2603
|
+
object?: "realtime.response" | null | undefined;
|
|
2604
|
+
output?: any[] | null | undefined;
|
|
2605
|
+
status?: "in_progress" | "completed" | "incomplete" | "failed" | "cancelled" | null | undefined;
|
|
2606
|
+
id?: string | null | undefined;
|
|
2607
|
+
conversation_id?: string | null | undefined;
|
|
2608
|
+
max_output_tokens?: number | "inf" | null | undefined;
|
|
2614
2609
|
metadata?: Record<string, any> | null | undefined;
|
|
2615
|
-
modalities?: string[] | undefined;
|
|
2616
|
-
output_audio_format?: string | undefined;
|
|
2610
|
+
modalities?: string[] | null | undefined;
|
|
2611
|
+
output_audio_format?: string | null | undefined;
|
|
2617
2612
|
status_details?: Record<string, any> | null | undefined;
|
|
2618
2613
|
usage?: {
|
|
2619
2614
|
input_tokens?: number | undefined;
|
|
2620
2615
|
input_tokens_details?: Record<string, any> | null | undefined;
|
|
2621
2616
|
output_tokens?: number | undefined;
|
|
2622
2617
|
output_tokens_details?: Record<string, any> | null | undefined;
|
|
2623
|
-
} | undefined;
|
|
2624
|
-
voice?: string | undefined;
|
|
2618
|
+
} | null | undefined;
|
|
2619
|
+
voice?: string | null | undefined;
|
|
2625
2620
|
};
|
|
2626
|
-
test: boolean;
|
|
2627
2621
|
}>, z.ZodObject<{
|
|
2628
2622
|
type: z.ZodLiteral<"response.function_call_arguments.delta">;
|
|
2629
2623
|
event_id: z.ZodString;
|