@ciridae/voice-conversations-react 0.0.0-stage → 0.1.0-nightly.0.bootstrap
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/README.md +30 -2
- package/components/BrowserTalkButton.tsx +96 -0
- package/components/CallBanner.tsx +43 -0
- package/components/CallCaptions.tsx +38 -0
- package/components/CallEntry.tsx +89 -0
- package/components/CallTranscript.tsx +58 -0
- package/components/RecentCallEntries.tsx +211 -0
- package/components/describeBrowserTalkError.ts +39 -0
- package/components/formatCallClock.ts +9 -0
- package/components/useEndPresentCall.ts +45 -0
- package/components/voiceCall.css +225 -0
- package/dist/MalformedVoiceResponseError.d.ts +6 -0
- package/dist/MalformedVoiceResponseError.js +9 -0
- package/dist/NumberToCallQrCode.d.ts +12 -0
- package/dist/NumberToCallQrCode.js +29 -0
- package/dist/PhoneNumberDialog.d.ts +25 -0
- package/dist/PhoneNumberDialog.js +333 -0
- package/dist/PhoneNumbersAdminPanel.d.ts +11 -0
- package/dist/PhoneNumbersAdminPanel.js +85 -0
- package/dist/VoiceApiError.d.ts +18 -0
- package/dist/VoiceApiError.js +19 -0
- package/dist/VoiceRequestTimedOutError.d.ts +6 -0
- package/dist/VoiceRequestTimedOutError.js +9 -0
- package/dist/averageSpeechBinsIntoBands.d.ts +6 -0
- package/dist/averageSpeechBinsIntoBands.js +20 -0
- package/dist/browserApisForBrowserTalk.d.ts +17 -0
- package/dist/browserApisForBrowserTalk.js +42 -0
- package/dist/browserTalkError.d.ts +36 -0
- package/dist/browserTalkError.js +1 -0
- package/dist/chooseCallToShowCaptionsOf.d.ts +22 -0
- package/dist/chooseCallToShowCaptionsOf.js +26 -0
- package/dist/createBrowserTalk.d.ts +56 -0
- package/dist/createBrowserTalk.js +414 -0
- package/dist/createBrowserTalkErrorFollower.d.ts +17 -0
- package/dist/createBrowserTalkErrorFollower.js +76 -0
- package/dist/createCallPresenceWatcher.d.ts +25 -0
- package/dist/createCallPresenceWatcher.js +66 -0
- package/dist/createLiveCallCaptionsPoller.d.ts +24 -0
- package/dist/createLiveCallCaptionsPoller.js +58 -0
- package/dist/createVisibleTabPoller.d.ts +13 -0
- package/dist/createVisibleTabPoller.js +56 -0
- package/dist/deriveCallPresence.d.ts +23 -0
- package/dist/deriveCallPresence.js +58 -0
- package/dist/describePhoneNumberError.d.ts +7 -0
- package/dist/describePhoneNumberError.js +29 -0
- package/dist/entries/index.d.ts +26 -0
- package/dist/entries/index.js +22 -0
- package/dist/followBrowserTalkErrorAgainstPresence.d.ts +23 -0
- package/dist/followBrowserTalkErrorAgainstPresence.js +52 -0
- package/dist/formatPhoneNumberAsTyped.d.ts +31 -0
- package/dist/formatPhoneNumberAsTyped.js +85 -0
- package/dist/generated/index.d.ts +1 -0
- package/dist/generated/index.js +2 -0
- package/dist/generated/types.gen.d.ts +795 -0
- package/dist/generated/types.gen.js +2 -0
- package/dist/getBrowserTalkForThisTab.d.ts +3 -0
- package/dist/getBrowserTalkForThisTab.js +13 -0
- package/dist/getCallPresenceWatcherForThisTab.d.ts +3 -0
- package/dist/getCallPresenceWatcherForThisTab.js +9 -0
- package/dist/mapStartBrowserTalkFailureToBrowserTalkError.d.ts +7 -0
- package/dist/mapStartBrowserTalkFailureToBrowserTalkError.js +60 -0
- package/dist/parseVoiceApiResponses.d.ts +11 -0
- package/dist/parseVoiceApiResponses.js +344 -0
- package/dist/readCallSummaryUntilItHasDuration.d.ts +12 -0
- package/dist/readCallSummaryUntilItHasDuration.js +45 -0
- package/dist/readTheBrowsersTimeZone.d.ts +8 -0
- package/dist/readTheBrowsersTimeZone.js +17 -0
- package/dist/readTimestampMilliseconds.d.ts +8 -0
- package/dist/readTimestampMilliseconds.js +10 -0
- package/dist/requestEndOfCall.d.ts +7 -0
- package/dist/requestEndOfCall.js +11 -0
- package/dist/startBrowserTalkErrorFollowerForThisTab.d.ts +6 -0
- package/dist/startBrowserTalkErrorFollowerForThisTab.js +12 -0
- package/dist/useAdminPhoneNumbers.d.ts +47 -0
- package/dist/useAdminPhoneNumbers.js +76 -0
- package/dist/useBrowserTalk.d.ts +10 -0
- package/dist/useBrowserTalk.js +23 -0
- package/dist/useBrowserTalkErrorWhileItApplies.d.ts +10 -0
- package/dist/useBrowserTalkErrorWhileItApplies.js +13 -0
- package/dist/useCallPresence.d.ts +5 -0
- package/dist/useCallPresence.js +34 -0
- package/dist/useCallSummaries.d.ts +9 -0
- package/dist/useCallSummaries.js +22 -0
- package/dist/useCallSummary.d.ts +15 -0
- package/dist/useCallSummary.js +21 -0
- package/dist/useFinePointerWithHover.d.ts +10 -0
- package/dist/useFinePointerWithHover.js +19 -0
- package/dist/useLiveCallCaptions.d.ts +8 -0
- package/dist/useLiveCallCaptions.js +27 -0
- package/dist/useLiveCallCaptionsOfLatestCall.d.ts +13 -0
- package/dist/useLiveCallCaptionsOfLatestCall.js +23 -0
- package/dist/usePhoneNumber.d.ts +45 -0
- package/dist/usePhoneNumber.js +125 -0
- package/dist/voiceApiModels.d.ts +85 -0
- package/dist/voiceApiModels.js +1 -0
- package/dist/voiceConversationsApi.d.ts +44 -0
- package/dist/voiceConversationsApi.js +227 -0
- package/dist/voiceConversationsSettings.d.ts +20 -0
- package/dist/voiceConversationsSettings.js +26 -0
- package/package.json +41 -4
|
@@ -0,0 +1,795 @@
|
|
|
1
|
+
export type ClientOptions = {
|
|
2
|
+
baseUrl: `${string}://voice_routes_openapi.json` | (string & {});
|
|
3
|
+
};
|
|
4
|
+
/**
|
|
5
|
+
* AdminAddedPhoneNumber
|
|
6
|
+
*
|
|
7
|
+
* The number an admin added, as saved, and who it was saved for.
|
|
8
|
+
*/
|
|
9
|
+
export type AdminAddedPhoneNumber = {
|
|
10
|
+
/**
|
|
11
|
+
* Invite Status
|
|
12
|
+
*/
|
|
13
|
+
invite_status: "accepted" | "pending";
|
|
14
|
+
/**
|
|
15
|
+
* Member Email
|
|
16
|
+
*/
|
|
17
|
+
member_email: string;
|
|
18
|
+
/**
|
|
19
|
+
* Member User Id
|
|
20
|
+
*/
|
|
21
|
+
member_user_id: string;
|
|
22
|
+
/**
|
|
23
|
+
* Phone Number
|
|
24
|
+
*/
|
|
25
|
+
phone_number: string;
|
|
26
|
+
/**
|
|
27
|
+
* Phone Number Display
|
|
28
|
+
*/
|
|
29
|
+
phone_number_display: string;
|
|
30
|
+
};
|
|
31
|
+
/**
|
|
32
|
+
* AdminListedPhoneNumber
|
|
33
|
+
*
|
|
34
|
+
* One member's saved number in `GET {prefix}/admin/phone-numbers`.
|
|
35
|
+
*/
|
|
36
|
+
export type AdminListedPhoneNumber = {
|
|
37
|
+
/**
|
|
38
|
+
* Added By
|
|
39
|
+
*/
|
|
40
|
+
added_by: "admin" | "member";
|
|
41
|
+
/**
|
|
42
|
+
* Member Email
|
|
43
|
+
*/
|
|
44
|
+
member_email: string;
|
|
45
|
+
/**
|
|
46
|
+
* Member User Id
|
|
47
|
+
*/
|
|
48
|
+
member_user_id: string;
|
|
49
|
+
/**
|
|
50
|
+
* Phone Number
|
|
51
|
+
*/
|
|
52
|
+
phone_number: string;
|
|
53
|
+
/**
|
|
54
|
+
* Phone Number Display
|
|
55
|
+
*/
|
|
56
|
+
phone_number_display: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* AdminPhoneNumberToAdd
|
|
60
|
+
*
|
|
61
|
+
* `POST {prefix}/admin/phone-numbers`: one person's number, added by an admin.
|
|
62
|
+
*/
|
|
63
|
+
export type AdminPhoneNumberToAdd = {
|
|
64
|
+
/**
|
|
65
|
+
* Member
|
|
66
|
+
*/
|
|
67
|
+
member: string;
|
|
68
|
+
/**
|
|
69
|
+
* Phone Number
|
|
70
|
+
*/
|
|
71
|
+
phone_number: string;
|
|
72
|
+
};
|
|
73
|
+
/**
|
|
74
|
+
* AdminPhoneNumbersPage
|
|
75
|
+
*
|
|
76
|
+
* `GET {prefix}/admin/phone-numbers`: one page of saved numbers, in member user id order.
|
|
77
|
+
*/
|
|
78
|
+
export type AdminPhoneNumbersPage = {
|
|
79
|
+
/**
|
|
80
|
+
* Next After
|
|
81
|
+
*/
|
|
82
|
+
next_after: string | null;
|
|
83
|
+
/**
|
|
84
|
+
* Phone Numbers
|
|
85
|
+
*/
|
|
86
|
+
phone_numbers: Array<AdminListedPhoneNumber>;
|
|
87
|
+
};
|
|
88
|
+
/**
|
|
89
|
+
* BrowserTalkStarted
|
|
90
|
+
*
|
|
91
|
+
* The started browser talk: the call the app ends and reads by, and GPT-Live's SDP answer.
|
|
92
|
+
*/
|
|
93
|
+
export type BrowserTalkStarted = {
|
|
94
|
+
/**
|
|
95
|
+
* Call Id
|
|
96
|
+
*/
|
|
97
|
+
call_id: string;
|
|
98
|
+
/**
|
|
99
|
+
* Ends At
|
|
100
|
+
*/
|
|
101
|
+
ends_at: string;
|
|
102
|
+
/**
|
|
103
|
+
* Sdp
|
|
104
|
+
*/
|
|
105
|
+
sdp: string;
|
|
106
|
+
/**
|
|
107
|
+
* Server Now
|
|
108
|
+
*/
|
|
109
|
+
server_now: string;
|
|
110
|
+
/**
|
|
111
|
+
* Started At
|
|
112
|
+
*/
|
|
113
|
+
started_at: string;
|
|
114
|
+
};
|
|
115
|
+
/**
|
|
116
|
+
* CallCaption
|
|
117
|
+
*
|
|
118
|
+
* One caption: one speaker's consecutive transcript fragments until the other speaker's next one (`build_captions_from_transcript_fragments`).
|
|
119
|
+
*/
|
|
120
|
+
export type CallCaption = {
|
|
121
|
+
/**
|
|
122
|
+
* Ended Ms
|
|
123
|
+
*/
|
|
124
|
+
ended_ms: number;
|
|
125
|
+
/**
|
|
126
|
+
* First Fragment Id
|
|
127
|
+
*/
|
|
128
|
+
first_fragment_id: number;
|
|
129
|
+
/**
|
|
130
|
+
* Speaker
|
|
131
|
+
*/
|
|
132
|
+
speaker: "caller" | "voice";
|
|
133
|
+
/**
|
|
134
|
+
* Started Ms
|
|
135
|
+
*/
|
|
136
|
+
started_ms: number;
|
|
137
|
+
/**
|
|
138
|
+
* Text
|
|
139
|
+
*/
|
|
140
|
+
text: string;
|
|
141
|
+
};
|
|
142
|
+
/**
|
|
143
|
+
* CallCaptionsSoFar
|
|
144
|
+
*
|
|
145
|
+
* `GET {prefix}/calls/{call_id}/captions`: the call's captions so far, the last still growing while the call lasts, and how the call stands.
|
|
146
|
+
*/
|
|
147
|
+
export type CallCaptionsSoFar = {
|
|
148
|
+
/**
|
|
149
|
+
* Call Status
|
|
150
|
+
*/
|
|
151
|
+
call_status: "connecting" | "live" | "ending" | "ended";
|
|
152
|
+
/**
|
|
153
|
+
* Captions
|
|
154
|
+
*/
|
|
155
|
+
captions: Array<CallCaption>;
|
|
156
|
+
/**
|
|
157
|
+
* End Reason
|
|
158
|
+
*/
|
|
159
|
+
end_reason: "ended_by_member" | "phone_took_over" | "time_limit" | "caller_hung_up" | "connection_lost" | "caller_silent" | null;
|
|
160
|
+
};
|
|
161
|
+
/**
|
|
162
|
+
* CallSummary
|
|
163
|
+
*
|
|
164
|
+
* `GET {prefix}/calls/{call_id}`: whose call it was, when it started, how long it lasted, and how many delegations it handed the agent.
|
|
165
|
+
*/
|
|
166
|
+
export type CallSummary = {
|
|
167
|
+
/**
|
|
168
|
+
* Call Id
|
|
169
|
+
*/
|
|
170
|
+
call_id: string;
|
|
171
|
+
/**
|
|
172
|
+
* Caller Last Four Digits
|
|
173
|
+
*/
|
|
174
|
+
caller_last_four_digits: string | null;
|
|
175
|
+
/**
|
|
176
|
+
* Delegation Count
|
|
177
|
+
*/
|
|
178
|
+
delegation_count: number;
|
|
179
|
+
/**
|
|
180
|
+
* Duration Seconds
|
|
181
|
+
*/
|
|
182
|
+
duration_seconds: number | null;
|
|
183
|
+
/**
|
|
184
|
+
* Member Display Name
|
|
185
|
+
*/
|
|
186
|
+
member_display_name: string | null;
|
|
187
|
+
/**
|
|
188
|
+
* Started At
|
|
189
|
+
*/
|
|
190
|
+
started_at: string | null;
|
|
191
|
+
/**
|
|
192
|
+
* Started Through
|
|
193
|
+
*/
|
|
194
|
+
started_through: "phone_call" | "browser_talk";
|
|
195
|
+
/**
|
|
196
|
+
* Unanswered Delegation Count
|
|
197
|
+
*/
|
|
198
|
+
unanswered_delegation_count: number;
|
|
199
|
+
};
|
|
200
|
+
/**
|
|
201
|
+
* CurrentCall
|
|
202
|
+
*
|
|
203
|
+
* `GET {prefix}/calls/current`: the member's live call, or null.
|
|
204
|
+
*/
|
|
205
|
+
export type CurrentCall = {
|
|
206
|
+
call: CurrentCallDetails | null;
|
|
207
|
+
};
|
|
208
|
+
/**
|
|
209
|
+
* CurrentCallDetails
|
|
210
|
+
*
|
|
211
|
+
* The signed-in member's live call.
|
|
212
|
+
*/
|
|
213
|
+
export type CurrentCallDetails = {
|
|
214
|
+
/**
|
|
215
|
+
* Call Id
|
|
216
|
+
*/
|
|
217
|
+
call_id: string;
|
|
218
|
+
/**
|
|
219
|
+
* Ends At
|
|
220
|
+
*/
|
|
221
|
+
ends_at: string;
|
|
222
|
+
/**
|
|
223
|
+
* Server Now
|
|
224
|
+
*/
|
|
225
|
+
server_now: string;
|
|
226
|
+
/**
|
|
227
|
+
* Started At
|
|
228
|
+
*/
|
|
229
|
+
started_at: string;
|
|
230
|
+
/**
|
|
231
|
+
* Started Through
|
|
232
|
+
*/
|
|
233
|
+
started_through: "phone_call" | "browser_talk";
|
|
234
|
+
/**
|
|
235
|
+
* Status
|
|
236
|
+
*/
|
|
237
|
+
status: "connecting" | "live" | "ending";
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* HTTPValidationError
|
|
241
|
+
*/
|
|
242
|
+
export type HttpValidationError = {
|
|
243
|
+
/**
|
|
244
|
+
* Detail
|
|
245
|
+
*/
|
|
246
|
+
detail?: Array<ValidationError>;
|
|
247
|
+
};
|
|
248
|
+
/**
|
|
249
|
+
* IanaTimeZone
|
|
250
|
+
*
|
|
251
|
+
* A zone by its IANA name, as `Intl.DateTimeFormat().resolvedOptions().timeZone` reports it: `America/New_York`.
|
|
252
|
+
*/
|
|
253
|
+
export type IanaTimeZone = {
|
|
254
|
+
/**
|
|
255
|
+
* Name
|
|
256
|
+
*/
|
|
257
|
+
name: string;
|
|
258
|
+
/**
|
|
259
|
+
* Type
|
|
260
|
+
*/
|
|
261
|
+
type: "iana_time_zone";
|
|
262
|
+
};
|
|
263
|
+
/**
|
|
264
|
+
* MemberPhoneNumber
|
|
265
|
+
*
|
|
266
|
+
* `GET` and `PUT {prefix}/me/phone-number`: the signed-in member's saved number, or null, and the number they call.
|
|
267
|
+
*/
|
|
268
|
+
export type MemberPhoneNumber = {
|
|
269
|
+
/**
|
|
270
|
+
* Phone Number
|
|
271
|
+
*/
|
|
272
|
+
phone_number: string | null;
|
|
273
|
+
/**
|
|
274
|
+
* Phone Number Display
|
|
275
|
+
*/
|
|
276
|
+
phone_number_display: string | null;
|
|
277
|
+
/**
|
|
278
|
+
* Phone Number To Call
|
|
279
|
+
*/
|
|
280
|
+
phone_number_to_call: string | null;
|
|
281
|
+
/**
|
|
282
|
+
* Phone Number To Call Display
|
|
283
|
+
*/
|
|
284
|
+
phone_number_to_call_display: string | null;
|
|
285
|
+
};
|
|
286
|
+
/**
|
|
287
|
+
* PhoneNumberToSave
|
|
288
|
+
*
|
|
289
|
+
* `PUT {prefix}/me/phone-number`: the member's own number.
|
|
290
|
+
*/
|
|
291
|
+
export type PhoneNumberToSave = {
|
|
292
|
+
/**
|
|
293
|
+
* Phone Number
|
|
294
|
+
*/
|
|
295
|
+
phone_number: string;
|
|
296
|
+
};
|
|
297
|
+
/**
|
|
298
|
+
* PhoneNumberUploadReport
|
|
299
|
+
*
|
|
300
|
+
* `POST {prefix}/admin/phone-numbers/csv`: what happened to each row, in file order.
|
|
301
|
+
*/
|
|
302
|
+
export type PhoneNumberUploadReport = {
|
|
303
|
+
/**
|
|
304
|
+
* Added Count
|
|
305
|
+
*/
|
|
306
|
+
added_count: number;
|
|
307
|
+
/**
|
|
308
|
+
* Refused Count
|
|
309
|
+
*/
|
|
310
|
+
refused_count: number;
|
|
311
|
+
/**
|
|
312
|
+
* Rows
|
|
313
|
+
*/
|
|
314
|
+
rows: Array<UploadedPhoneNumberAdded | UploadedPhoneNumberRefused>;
|
|
315
|
+
};
|
|
316
|
+
/**
|
|
317
|
+
* StartBrowserTalkRequest
|
|
318
|
+
*
|
|
319
|
+
* The browser's SDP offer, with its ICE candidates gathered (no trickle ICE), and its time zone.
|
|
320
|
+
*/
|
|
321
|
+
export type StartBrowserTalkRequest = {
|
|
322
|
+
/**
|
|
323
|
+
* Sdp
|
|
324
|
+
*/
|
|
325
|
+
sdp: string;
|
|
326
|
+
/**
|
|
327
|
+
* Time Zone
|
|
328
|
+
*/
|
|
329
|
+
time_zone?: ({
|
|
330
|
+
type: "iana_time_zone";
|
|
331
|
+
} & IanaTimeZone) | ({
|
|
332
|
+
type: "time_zone_not_reported";
|
|
333
|
+
} & TimeZoneNotReported);
|
|
334
|
+
};
|
|
335
|
+
/**
|
|
336
|
+
* TimeZoneNotReported
|
|
337
|
+
*
|
|
338
|
+
* The sender named no zone: another chat's agent, a client that does not report one, or a schedule's prompt stored before it named its schedule's zone.
|
|
339
|
+
*/
|
|
340
|
+
export type TimeZoneNotReported = {
|
|
341
|
+
/**
|
|
342
|
+
* Type
|
|
343
|
+
*/
|
|
344
|
+
type: "time_zone_not_reported";
|
|
345
|
+
};
|
|
346
|
+
/**
|
|
347
|
+
* UploadedPhoneNumberAdded
|
|
348
|
+
*
|
|
349
|
+
* One uploaded row whose number was saved, replacing any the person had.
|
|
350
|
+
*/
|
|
351
|
+
export type UploadedPhoneNumberAdded = {
|
|
352
|
+
/**
|
|
353
|
+
* Invite Status
|
|
354
|
+
*/
|
|
355
|
+
invite_status: "accepted" | "pending";
|
|
356
|
+
/**
|
|
357
|
+
* Member
|
|
358
|
+
*/
|
|
359
|
+
member: string;
|
|
360
|
+
/**
|
|
361
|
+
* Member User Id
|
|
362
|
+
*/
|
|
363
|
+
member_user_id: string;
|
|
364
|
+
/**
|
|
365
|
+
* Outcome
|
|
366
|
+
*/
|
|
367
|
+
outcome: "added";
|
|
368
|
+
/**
|
|
369
|
+
* Phone Number
|
|
370
|
+
*/
|
|
371
|
+
phone_number: string;
|
|
372
|
+
/**
|
|
373
|
+
* Phone Number Display
|
|
374
|
+
*/
|
|
375
|
+
phone_number_display: string;
|
|
376
|
+
/**
|
|
377
|
+
* Row Number
|
|
378
|
+
*/
|
|
379
|
+
row_number: number;
|
|
380
|
+
};
|
|
381
|
+
/**
|
|
382
|
+
* UploadedPhoneNumberRefused
|
|
383
|
+
*
|
|
384
|
+
* One uploaded row that was not saved.
|
|
385
|
+
*/
|
|
386
|
+
export type UploadedPhoneNumberRefused = {
|
|
387
|
+
/**
|
|
388
|
+
* Member
|
|
389
|
+
*/
|
|
390
|
+
member: string;
|
|
391
|
+
/**
|
|
392
|
+
* Outcome
|
|
393
|
+
*/
|
|
394
|
+
outcome: "refused";
|
|
395
|
+
/**
|
|
396
|
+
* Reason
|
|
397
|
+
*/
|
|
398
|
+
reason: "missing_value" | "member_not_found" | "invite_expired" | "phone_number_not_e164" | "phone_number_held_by_another_member";
|
|
399
|
+
/**
|
|
400
|
+
* Row Number
|
|
401
|
+
*/
|
|
402
|
+
row_number: number;
|
|
403
|
+
};
|
|
404
|
+
/**
|
|
405
|
+
* ValidationError
|
|
406
|
+
*/
|
|
407
|
+
export type ValidationError = {
|
|
408
|
+
/**
|
|
409
|
+
* Context
|
|
410
|
+
*/
|
|
411
|
+
ctx?: {
|
|
412
|
+
[key: string]: unknown;
|
|
413
|
+
};
|
|
414
|
+
/**
|
|
415
|
+
* Input
|
|
416
|
+
*/
|
|
417
|
+
input?: unknown;
|
|
418
|
+
/**
|
|
419
|
+
* Location
|
|
420
|
+
*/
|
|
421
|
+
loc: Array<string | number>;
|
|
422
|
+
/**
|
|
423
|
+
* Message
|
|
424
|
+
*/
|
|
425
|
+
msg: string;
|
|
426
|
+
/**
|
|
427
|
+
* Error Type
|
|
428
|
+
*/
|
|
429
|
+
type: string;
|
|
430
|
+
};
|
|
431
|
+
/**
|
|
432
|
+
* VoiceErrorBody
|
|
433
|
+
*
|
|
434
|
+
* Every refusal body the package's member routes send: `{"error": {...}}`.
|
|
435
|
+
*/
|
|
436
|
+
export type VoiceErrorBody = {
|
|
437
|
+
/**
|
|
438
|
+
* Error
|
|
439
|
+
*/
|
|
440
|
+
error: VoiceErrorDetail | VoiceErrorDetailNamingCall;
|
|
441
|
+
};
|
|
442
|
+
/**
|
|
443
|
+
* VoiceErrorDetail
|
|
444
|
+
*
|
|
445
|
+
* One refusal by the package; `message` is a fixed sentence.
|
|
446
|
+
*/
|
|
447
|
+
export type VoiceErrorDetail = {
|
|
448
|
+
/**
|
|
449
|
+
* Code
|
|
450
|
+
*/
|
|
451
|
+
code: "call_not_found" | "phone_number_not_e164" | "phone_number_held_by_another_member" | "not_a_current_member" | "member_not_found" | "invite_expired" | "phone_number_upload_invalid" | "auth_service_unavailable" | "auth_service_refused" | "on_a_phone_call" | "already_on_a_browser_talk" | "voice_not_ready" | "voice_unavailable" | "provider_rejected";
|
|
452
|
+
/**
|
|
453
|
+
* Message
|
|
454
|
+
*/
|
|
455
|
+
message: string;
|
|
456
|
+
/**
|
|
457
|
+
* Source
|
|
458
|
+
*/
|
|
459
|
+
source: "voice_conversations" | "provider";
|
|
460
|
+
};
|
|
461
|
+
/**
|
|
462
|
+
* VoiceErrorDetailNamingCall
|
|
463
|
+
*
|
|
464
|
+
* A refusal about one call: `already_on_a_browser_talk` names the member's live browser talk, which the app may offer to end.
|
|
465
|
+
*/
|
|
466
|
+
export type VoiceErrorDetailNamingCall = {
|
|
467
|
+
/**
|
|
468
|
+
* Call Id
|
|
469
|
+
*/
|
|
470
|
+
call_id: string;
|
|
471
|
+
/**
|
|
472
|
+
* Code
|
|
473
|
+
*/
|
|
474
|
+
code: "call_not_found" | "phone_number_not_e164" | "phone_number_held_by_another_member" | "not_a_current_member" | "member_not_found" | "invite_expired" | "phone_number_upload_invalid" | "auth_service_unavailable" | "auth_service_refused" | "on_a_phone_call" | "already_on_a_browser_talk" | "voice_not_ready" | "voice_unavailable" | "provider_rejected";
|
|
475
|
+
/**
|
|
476
|
+
* Message
|
|
477
|
+
*/
|
|
478
|
+
message: string;
|
|
479
|
+
/**
|
|
480
|
+
* Source
|
|
481
|
+
*/
|
|
482
|
+
source: "voice_conversations" | "provider";
|
|
483
|
+
};
|
|
484
|
+
export type ListPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersGetData = {
|
|
485
|
+
body?: never;
|
|
486
|
+
path?: never;
|
|
487
|
+
query?: {
|
|
488
|
+
/**
|
|
489
|
+
* After
|
|
490
|
+
*/
|
|
491
|
+
after?: string | null;
|
|
492
|
+
/**
|
|
493
|
+
* Limit
|
|
494
|
+
*/
|
|
495
|
+
limit?: number;
|
|
496
|
+
};
|
|
497
|
+
url: "/voice-conversations/admin/phone-numbers";
|
|
498
|
+
};
|
|
499
|
+
export type ListPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersGetErrors = {
|
|
500
|
+
/**
|
|
501
|
+
* Validation Error
|
|
502
|
+
*/
|
|
503
|
+
422: HttpValidationError;
|
|
504
|
+
};
|
|
505
|
+
export type ListPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersGetError = ListPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersGetErrors[keyof ListPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersGetErrors];
|
|
506
|
+
export type ListPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersGetResponses = {
|
|
507
|
+
/**
|
|
508
|
+
* Successful Response
|
|
509
|
+
*/
|
|
510
|
+
200: AdminPhoneNumbersPage;
|
|
511
|
+
};
|
|
512
|
+
export type ListPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersGetResponse = ListPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersGetResponses[keyof ListPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersGetResponses];
|
|
513
|
+
export type AddPhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersPostData = {
|
|
514
|
+
body: AdminPhoneNumberToAdd;
|
|
515
|
+
path?: never;
|
|
516
|
+
query?: never;
|
|
517
|
+
url: "/voice-conversations/admin/phone-numbers";
|
|
518
|
+
};
|
|
519
|
+
export type AddPhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersPostErrors = {
|
|
520
|
+
/**
|
|
521
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
522
|
+
*/
|
|
523
|
+
404: VoiceErrorBody;
|
|
524
|
+
/**
|
|
525
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
526
|
+
*/
|
|
527
|
+
409: VoiceErrorBody;
|
|
528
|
+
/**
|
|
529
|
+
* FastAPI's request validation (`HTTPValidationError`), or the package's refusal (`VoiceErrorBody`).
|
|
530
|
+
*/
|
|
531
|
+
422: VoiceErrorBody | HttpValidationError;
|
|
532
|
+
/**
|
|
533
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
534
|
+
*/
|
|
535
|
+
503: VoiceErrorBody;
|
|
536
|
+
};
|
|
537
|
+
export type AddPhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersPostError = AddPhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersPostErrors[keyof AddPhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersPostErrors];
|
|
538
|
+
export type AddPhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersPostResponses = {
|
|
539
|
+
/**
|
|
540
|
+
* Successful Response
|
|
541
|
+
*/
|
|
542
|
+
200: AdminAddedPhoneNumber;
|
|
543
|
+
};
|
|
544
|
+
export type AddPhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersPostResponse = AddPhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersPostResponses[keyof AddPhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersPostResponses];
|
|
545
|
+
export type UploadPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersCsvPostData = {
|
|
546
|
+
body: string;
|
|
547
|
+
path?: never;
|
|
548
|
+
query?: never;
|
|
549
|
+
url: "/voice-conversations/admin/phone-numbers/csv";
|
|
550
|
+
};
|
|
551
|
+
export type UploadPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersCsvPostErrors = {
|
|
552
|
+
/**
|
|
553
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
554
|
+
*/
|
|
555
|
+
413: VoiceErrorBody;
|
|
556
|
+
/**
|
|
557
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
558
|
+
*/
|
|
559
|
+
415: VoiceErrorBody;
|
|
560
|
+
/**
|
|
561
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
562
|
+
*/
|
|
563
|
+
422: VoiceErrorBody;
|
|
564
|
+
/**
|
|
565
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
566
|
+
*/
|
|
567
|
+
503: VoiceErrorBody;
|
|
568
|
+
};
|
|
569
|
+
export type UploadPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersCsvPostError = UploadPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersCsvPostErrors[keyof UploadPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersCsvPostErrors];
|
|
570
|
+
export type UploadPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersCsvPostResponses = {
|
|
571
|
+
/**
|
|
572
|
+
* Successful Response
|
|
573
|
+
*/
|
|
574
|
+
200: PhoneNumberUploadReport;
|
|
575
|
+
};
|
|
576
|
+
export type UploadPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersCsvPostResponse = UploadPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersCsvPostResponses[keyof UploadPhoneNumbersAsAdminVoiceConversationsAdminPhoneNumbersCsvPostResponses];
|
|
577
|
+
export type RemovePhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersMemberUserIdDeleteData = {
|
|
578
|
+
body?: never;
|
|
579
|
+
path: {
|
|
580
|
+
/**
|
|
581
|
+
* Member User Id
|
|
582
|
+
*/
|
|
583
|
+
member_user_id: string;
|
|
584
|
+
};
|
|
585
|
+
query?: never;
|
|
586
|
+
url: "/voice-conversations/admin/phone-numbers/{member_user_id}";
|
|
587
|
+
};
|
|
588
|
+
export type RemovePhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersMemberUserIdDeleteErrors = {
|
|
589
|
+
/**
|
|
590
|
+
* Validation Error
|
|
591
|
+
*/
|
|
592
|
+
422: HttpValidationError;
|
|
593
|
+
};
|
|
594
|
+
export type RemovePhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersMemberUserIdDeleteError = RemovePhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersMemberUserIdDeleteErrors[keyof RemovePhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersMemberUserIdDeleteErrors];
|
|
595
|
+
export type RemovePhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersMemberUserIdDeleteResponses = {
|
|
596
|
+
/**
|
|
597
|
+
* Successful Response
|
|
598
|
+
*/
|
|
599
|
+
204: void;
|
|
600
|
+
};
|
|
601
|
+
export type RemovePhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersMemberUserIdDeleteResponse = RemovePhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersMemberUserIdDeleteResponses[keyof RemovePhoneNumberAsAdminVoiceConversationsAdminPhoneNumbersMemberUserIdDeleteResponses];
|
|
602
|
+
export type StartBrowserTalkVoiceConversationsBrowserTalksPostData = {
|
|
603
|
+
body: StartBrowserTalkRequest;
|
|
604
|
+
path?: never;
|
|
605
|
+
query?: never;
|
|
606
|
+
url: "/voice-conversations/browser-talks";
|
|
607
|
+
};
|
|
608
|
+
export type StartBrowserTalkVoiceConversationsBrowserTalksPostErrors = {
|
|
609
|
+
/**
|
|
610
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
611
|
+
*/
|
|
612
|
+
403: VoiceErrorBody;
|
|
613
|
+
/**
|
|
614
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
615
|
+
*/
|
|
616
|
+
409: VoiceErrorBody;
|
|
617
|
+
/**
|
|
618
|
+
* Validation Error
|
|
619
|
+
*/
|
|
620
|
+
422: HttpValidationError;
|
|
621
|
+
/**
|
|
622
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
623
|
+
*/
|
|
624
|
+
503: VoiceErrorBody;
|
|
625
|
+
};
|
|
626
|
+
export type StartBrowserTalkVoiceConversationsBrowserTalksPostError = StartBrowserTalkVoiceConversationsBrowserTalksPostErrors[keyof StartBrowserTalkVoiceConversationsBrowserTalksPostErrors];
|
|
627
|
+
export type StartBrowserTalkVoiceConversationsBrowserTalksPostResponses = {
|
|
628
|
+
/**
|
|
629
|
+
* Successful Response
|
|
630
|
+
*/
|
|
631
|
+
201: BrowserTalkStarted;
|
|
632
|
+
};
|
|
633
|
+
export type StartBrowserTalkVoiceConversationsBrowserTalksPostResponse = StartBrowserTalkVoiceConversationsBrowserTalksPostResponses[keyof StartBrowserTalkVoiceConversationsBrowserTalksPostResponses];
|
|
634
|
+
export type GetCurrentCallVoiceConversationsCallsCurrentGetData = {
|
|
635
|
+
body?: never;
|
|
636
|
+
path?: never;
|
|
637
|
+
query?: never;
|
|
638
|
+
url: "/voice-conversations/calls/current";
|
|
639
|
+
};
|
|
640
|
+
export type GetCurrentCallVoiceConversationsCallsCurrentGetResponses = {
|
|
641
|
+
/**
|
|
642
|
+
* Successful Response
|
|
643
|
+
*/
|
|
644
|
+
200: CurrentCall;
|
|
645
|
+
};
|
|
646
|
+
export type GetCurrentCallVoiceConversationsCallsCurrentGetResponse = GetCurrentCallVoiceConversationsCallsCurrentGetResponses[keyof GetCurrentCallVoiceConversationsCallsCurrentGetResponses];
|
|
647
|
+
export type GetTheSignedInMembersCallSummaryVoiceConversationsCallsCallIdGetData = {
|
|
648
|
+
body?: never;
|
|
649
|
+
path: {
|
|
650
|
+
/**
|
|
651
|
+
* Call Id
|
|
652
|
+
*/
|
|
653
|
+
call_id: string;
|
|
654
|
+
};
|
|
655
|
+
query?: never;
|
|
656
|
+
url: "/voice-conversations/calls/{call_id}";
|
|
657
|
+
};
|
|
658
|
+
export type GetTheSignedInMembersCallSummaryVoiceConversationsCallsCallIdGetErrors = {
|
|
659
|
+
/**
|
|
660
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
661
|
+
*/
|
|
662
|
+
404: VoiceErrorBody;
|
|
663
|
+
/**
|
|
664
|
+
* Validation Error
|
|
665
|
+
*/
|
|
666
|
+
422: HttpValidationError;
|
|
667
|
+
};
|
|
668
|
+
export type GetTheSignedInMembersCallSummaryVoiceConversationsCallsCallIdGetError = GetTheSignedInMembersCallSummaryVoiceConversationsCallsCallIdGetErrors[keyof GetTheSignedInMembersCallSummaryVoiceConversationsCallsCallIdGetErrors];
|
|
669
|
+
export type GetTheSignedInMembersCallSummaryVoiceConversationsCallsCallIdGetResponses = {
|
|
670
|
+
/**
|
|
671
|
+
* Successful Response
|
|
672
|
+
*/
|
|
673
|
+
200: CallSummary;
|
|
674
|
+
};
|
|
675
|
+
export type GetTheSignedInMembersCallSummaryVoiceConversationsCallsCallIdGetResponse = GetTheSignedInMembersCallSummaryVoiceConversationsCallsCallIdGetResponses[keyof GetTheSignedInMembersCallSummaryVoiceConversationsCallsCallIdGetResponses];
|
|
676
|
+
export type GetCallCaptionsVoiceConversationsCallsCallIdCaptionsGetData = {
|
|
677
|
+
body?: never;
|
|
678
|
+
path: {
|
|
679
|
+
/**
|
|
680
|
+
* Call Id
|
|
681
|
+
*/
|
|
682
|
+
call_id: string;
|
|
683
|
+
};
|
|
684
|
+
query?: never;
|
|
685
|
+
url: "/voice-conversations/calls/{call_id}/captions";
|
|
686
|
+
};
|
|
687
|
+
export type GetCallCaptionsVoiceConversationsCallsCallIdCaptionsGetErrors = {
|
|
688
|
+
/**
|
|
689
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
690
|
+
*/
|
|
691
|
+
404: VoiceErrorBody;
|
|
692
|
+
/**
|
|
693
|
+
* Validation Error
|
|
694
|
+
*/
|
|
695
|
+
422: HttpValidationError;
|
|
696
|
+
};
|
|
697
|
+
export type GetCallCaptionsVoiceConversationsCallsCallIdCaptionsGetError = GetCallCaptionsVoiceConversationsCallsCallIdCaptionsGetErrors[keyof GetCallCaptionsVoiceConversationsCallsCallIdCaptionsGetErrors];
|
|
698
|
+
export type GetCallCaptionsVoiceConversationsCallsCallIdCaptionsGetResponses = {
|
|
699
|
+
/**
|
|
700
|
+
* Successful Response
|
|
701
|
+
*/
|
|
702
|
+
200: CallCaptionsSoFar;
|
|
703
|
+
};
|
|
704
|
+
export type GetCallCaptionsVoiceConversationsCallsCallIdCaptionsGetResponse = GetCallCaptionsVoiceConversationsCallsCallIdCaptionsGetResponses[keyof GetCallCaptionsVoiceConversationsCallsCallIdCaptionsGetResponses];
|
|
705
|
+
export type PostCallEndVoiceConversationsCallsCallIdEndPostData = {
|
|
706
|
+
body?: never;
|
|
707
|
+
path: {
|
|
708
|
+
/**
|
|
709
|
+
* Call Id
|
|
710
|
+
*/
|
|
711
|
+
call_id: string;
|
|
712
|
+
};
|
|
713
|
+
query?: never;
|
|
714
|
+
url: "/voice-conversations/calls/{call_id}/end";
|
|
715
|
+
};
|
|
716
|
+
export type PostCallEndVoiceConversationsCallsCallIdEndPostErrors = {
|
|
717
|
+
/**
|
|
718
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
719
|
+
*/
|
|
720
|
+
404: VoiceErrorBody;
|
|
721
|
+
/**
|
|
722
|
+
* Validation Error
|
|
723
|
+
*/
|
|
724
|
+
422: HttpValidationError;
|
|
725
|
+
};
|
|
726
|
+
export type PostCallEndVoiceConversationsCallsCallIdEndPostError = PostCallEndVoiceConversationsCallsCallIdEndPostErrors[keyof PostCallEndVoiceConversationsCallsCallIdEndPostErrors];
|
|
727
|
+
export type PostCallEndVoiceConversationsCallsCallIdEndPostResponses = {
|
|
728
|
+
/**
|
|
729
|
+
* Successful Response
|
|
730
|
+
*/
|
|
731
|
+
202: unknown;
|
|
732
|
+
/**
|
|
733
|
+
* The call had already ended.
|
|
734
|
+
*/
|
|
735
|
+
204: void;
|
|
736
|
+
};
|
|
737
|
+
export type PostCallEndVoiceConversationsCallsCallIdEndPostResponse = PostCallEndVoiceConversationsCallsCallIdEndPostResponses[keyof PostCallEndVoiceConversationsCallsCallIdEndPostResponses];
|
|
738
|
+
export type DeleteOwnPhoneNumberVoiceConversationsMePhoneNumberDeleteData = {
|
|
739
|
+
body?: never;
|
|
740
|
+
path?: never;
|
|
741
|
+
query?: never;
|
|
742
|
+
url: "/voice-conversations/me/phone-number";
|
|
743
|
+
};
|
|
744
|
+
export type DeleteOwnPhoneNumberVoiceConversationsMePhoneNumberDeleteResponses = {
|
|
745
|
+
/**
|
|
746
|
+
* Successful Response
|
|
747
|
+
*/
|
|
748
|
+
204: void;
|
|
749
|
+
};
|
|
750
|
+
export type DeleteOwnPhoneNumberVoiceConversationsMePhoneNumberDeleteResponse = DeleteOwnPhoneNumberVoiceConversationsMePhoneNumberDeleteResponses[keyof DeleteOwnPhoneNumberVoiceConversationsMePhoneNumberDeleteResponses];
|
|
751
|
+
export type GetOwnPhoneNumberVoiceConversationsMePhoneNumberGetData = {
|
|
752
|
+
body?: never;
|
|
753
|
+
path?: never;
|
|
754
|
+
query?: never;
|
|
755
|
+
url: "/voice-conversations/me/phone-number";
|
|
756
|
+
};
|
|
757
|
+
export type GetOwnPhoneNumberVoiceConversationsMePhoneNumberGetResponses = {
|
|
758
|
+
/**
|
|
759
|
+
* Successful Response
|
|
760
|
+
*/
|
|
761
|
+
200: MemberPhoneNumber;
|
|
762
|
+
};
|
|
763
|
+
export type GetOwnPhoneNumberVoiceConversationsMePhoneNumberGetResponse = GetOwnPhoneNumberVoiceConversationsMePhoneNumberGetResponses[keyof GetOwnPhoneNumberVoiceConversationsMePhoneNumberGetResponses];
|
|
764
|
+
export type PutOwnPhoneNumberVoiceConversationsMePhoneNumberPutData = {
|
|
765
|
+
body: PhoneNumberToSave;
|
|
766
|
+
path?: never;
|
|
767
|
+
query?: never;
|
|
768
|
+
url: "/voice-conversations/me/phone-number";
|
|
769
|
+
};
|
|
770
|
+
export type PutOwnPhoneNumberVoiceConversationsMePhoneNumberPutErrors = {
|
|
771
|
+
/**
|
|
772
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
773
|
+
*/
|
|
774
|
+
403: VoiceErrorBody;
|
|
775
|
+
/**
|
|
776
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
777
|
+
*/
|
|
778
|
+
409: VoiceErrorBody;
|
|
779
|
+
/**
|
|
780
|
+
* FastAPI's request validation (`HTTPValidationError`), or the package's refusal (`VoiceErrorBody`).
|
|
781
|
+
*/
|
|
782
|
+
422: VoiceErrorBody | HttpValidationError;
|
|
783
|
+
/**
|
|
784
|
+
* The package's refusal: `VoiceErrorBody`.
|
|
785
|
+
*/
|
|
786
|
+
503: VoiceErrorBody;
|
|
787
|
+
};
|
|
788
|
+
export type PutOwnPhoneNumberVoiceConversationsMePhoneNumberPutError = PutOwnPhoneNumberVoiceConversationsMePhoneNumberPutErrors[keyof PutOwnPhoneNumberVoiceConversationsMePhoneNumberPutErrors];
|
|
789
|
+
export type PutOwnPhoneNumberVoiceConversationsMePhoneNumberPutResponses = {
|
|
790
|
+
/**
|
|
791
|
+
* Successful Response
|
|
792
|
+
*/
|
|
793
|
+
200: MemberPhoneNumber;
|
|
794
|
+
};
|
|
795
|
+
export type PutOwnPhoneNumberVoiceConversationsMePhoneNumberPutResponse = PutOwnPhoneNumberVoiceConversationsMePhoneNumberPutResponses[keyof PutOwnPhoneNumberVoiceConversationsMePhoneNumberPutResponses];
|