@domu-ai/kiban-sdk 1.72.0

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.
@@ -0,0 +1,3055 @@
1
+ export type InternalActionsGetParams = {
2
+ /**
3
+ * @minLength 1
4
+ */
5
+ campaignId: string;
6
+ };
7
+ export type InternalActionsGet200Item = {
8
+ id: string;
9
+ campaignId: string;
10
+ actionType: string;
11
+ provider: string;
12
+ /** @nullable */
13
+ configId: string | null;
14
+ isEnabled: boolean;
15
+ createdAt: string;
16
+ updatedAt: string;
17
+ };
18
+ export type InternalActionsGet400 = {
19
+ message: string;
20
+ code?: string;
21
+ details?: unknown | null;
22
+ };
23
+ export type InternalActionsGet401 = {
24
+ message: string;
25
+ code?: string;
26
+ details?: unknown | null;
27
+ };
28
+ export type InternalActionsGet500 = {
29
+ message: string;
30
+ code?: string;
31
+ details?: unknown | null;
32
+ };
33
+ export type InternalActionsPostParams = {
34
+ /**
35
+ * @minLength 1
36
+ */
37
+ campaignId: string;
38
+ };
39
+ /**
40
+ * Action type to register
41
+ */
42
+ export type InternalActionsPostBodyActionType = typeof InternalActionsPostBodyActionType[keyof typeof InternalActionsPostBodyActionType];
43
+ export declare const InternalActionsPostBodyActionType: {
44
+ readonly interactionstart: "interaction.start";
45
+ readonly interactionend: "interaction.end";
46
+ readonly contactget: "contact.get";
47
+ readonly contactupdate: "contact.update";
48
+ readonly paymentnotify: "payment.notify";
49
+ readonly paymentdelegate: "payment.delegate";
50
+ };
51
+ export type InternalActionsPostBody = {
52
+ /** Action type to register */
53
+ actionType: InternalActionsPostBodyActionType;
54
+ /**
55
+ * Provider name (e.g. 'sst', 'livevox', 'nubank')
56
+ * @minLength 1
57
+ * @maxLength 50
58
+ */
59
+ provider: string;
60
+ /** Whether the action is enabled */
61
+ isEnabled?: boolean;
62
+ };
63
+ export type InternalActionsPost201 = {
64
+ id: string;
65
+ campaignId: string;
66
+ actionType: string;
67
+ provider: string;
68
+ /** @nullable */
69
+ configId: string | null;
70
+ isEnabled: boolean;
71
+ createdAt: string;
72
+ updatedAt: string;
73
+ };
74
+ export type InternalActionsPost400 = {
75
+ message: string;
76
+ code?: string;
77
+ details?: unknown | null;
78
+ };
79
+ export type InternalActionsPost401 = {
80
+ message: string;
81
+ code?: string;
82
+ details?: unknown | null;
83
+ };
84
+ export type InternalActionsPost409 = {
85
+ message: string;
86
+ code?: string;
87
+ details?: unknown | null;
88
+ };
89
+ export type InternalActionsPost500 = {
90
+ message: string;
91
+ code?: string;
92
+ details?: unknown | null;
93
+ };
94
+ export type InternalActionsDeleteParams = {
95
+ /**
96
+ * @minLength 1
97
+ */
98
+ campaignId: string;
99
+ /**
100
+ * @minLength 1
101
+ */
102
+ actionId: string;
103
+ };
104
+ export type InternalActionsDeleteBody = {
105
+ [key: string]: unknown;
106
+ };
107
+ export type InternalActionsDelete400 = {
108
+ message: string;
109
+ code?: string;
110
+ details?: unknown | null;
111
+ };
112
+ export type InternalActionsDelete401 = {
113
+ message: string;
114
+ code?: string;
115
+ details?: unknown | null;
116
+ };
117
+ export type InternalActionsDelete404 = {
118
+ message: string;
119
+ code?: string;
120
+ details?: unknown | null;
121
+ };
122
+ export type InternalActionsDelete500 = {
123
+ message: string;
124
+ code?: string;
125
+ details?: unknown | null;
126
+ };
127
+ export type InternalCallsIdPut400 = {
128
+ message: string;
129
+ code?: string;
130
+ details?: unknown | null;
131
+ };
132
+ export type InternalCallsIdPut401 = {
133
+ message: string;
134
+ code?: string;
135
+ details?: unknown | null;
136
+ };
137
+ export type InternalCallsIdPut404 = {
138
+ message: string;
139
+ code?: string;
140
+ details?: unknown | null;
141
+ };
142
+ export type InternalCallsIdPut500 = {
143
+ message: string;
144
+ code?: string;
145
+ details?: unknown | null;
146
+ };
147
+ export type InternalIntegrationsConfigsGetParams = {
148
+ /**
149
+ * @minLength 1
150
+ */
151
+ campaignId: string;
152
+ };
153
+ export type InternalIntegrationsConfigsGet200ItemEnvironment = typeof InternalIntegrationsConfigsGet200ItemEnvironment[keyof typeof InternalIntegrationsConfigsGet200ItemEnvironment];
154
+ export declare const InternalIntegrationsConfigsGet200ItemEnvironment: {
155
+ readonly staging: "staging";
156
+ readonly production: "production";
157
+ };
158
+ export type InternalIntegrationsConfigsGet200Item = {
159
+ id: string;
160
+ provider: string;
161
+ name: string;
162
+ campaignId: string;
163
+ environment: InternalIntegrationsConfigsGet200ItemEnvironment;
164
+ isActive: boolean;
165
+ createdAt: string;
166
+ updatedAt: string;
167
+ };
168
+ export type InternalIntegrationsConfigsGet400 = {
169
+ message: string;
170
+ code?: string;
171
+ details?: unknown | null;
172
+ };
173
+ export type InternalIntegrationsConfigsGet401 = {
174
+ message: string;
175
+ code?: string;
176
+ details?: unknown | null;
177
+ };
178
+ export type InternalIntegrationsConfigsGet500 = {
179
+ message: string;
180
+ code?: string;
181
+ details?: unknown | null;
182
+ };
183
+ export type InternalIntegrationsConfigsPostParams = {
184
+ /**
185
+ * @minLength 1
186
+ */
187
+ campaignId: string;
188
+ };
189
+ export type InternalIntegrationsConfigsPostBodyEnvironment = typeof InternalIntegrationsConfigsPostBodyEnvironment[keyof typeof InternalIntegrationsConfigsPostBodyEnvironment];
190
+ export declare const InternalIntegrationsConfigsPostBodyEnvironment: {
191
+ readonly staging: "staging";
192
+ readonly production: "production";
193
+ };
194
+ export type InternalIntegrationsConfigsPostBodyConfig = {
195
+ [key: string]: unknown;
196
+ };
197
+ export type InternalIntegrationsConfigsPostBody = {
198
+ /**
199
+ * @minLength 1
200
+ * @maxLength 50
201
+ */
202
+ provider: string;
203
+ /**
204
+ * @minLength 1
205
+ * @maxLength 100
206
+ */
207
+ name: string;
208
+ environment: InternalIntegrationsConfigsPostBodyEnvironment;
209
+ config: InternalIntegrationsConfigsPostBodyConfig;
210
+ };
211
+ export type InternalIntegrationsConfigsPost201Environment = typeof InternalIntegrationsConfigsPost201Environment[keyof typeof InternalIntegrationsConfigsPost201Environment];
212
+ export declare const InternalIntegrationsConfigsPost201Environment: {
213
+ readonly staging: "staging";
214
+ readonly production: "production";
215
+ };
216
+ export type InternalIntegrationsConfigsPost201 = {
217
+ id: string;
218
+ provider: string;
219
+ name: string;
220
+ campaignId: string;
221
+ environment: InternalIntegrationsConfigsPost201Environment;
222
+ isActive: boolean;
223
+ createdAt: string;
224
+ updatedAt: string;
225
+ };
226
+ export type InternalIntegrationsConfigsPost400 = {
227
+ message: string;
228
+ code?: string;
229
+ details?: unknown | null;
230
+ };
231
+ export type InternalIntegrationsConfigsPost401 = {
232
+ message: string;
233
+ code?: string;
234
+ details?: unknown | null;
235
+ };
236
+ export type InternalIntegrationsConfigsPost409 = {
237
+ message: string;
238
+ code?: string;
239
+ details?: unknown | null;
240
+ };
241
+ export type InternalIntegrationsConfigsPost500 = {
242
+ message: string;
243
+ code?: string;
244
+ details?: unknown | null;
245
+ };
246
+ export type InternalIntegrationsConfigsPutParams = {
247
+ /**
248
+ * @minLength 1
249
+ */
250
+ campaignId: string;
251
+ /**
252
+ * @minLength 1
253
+ * @maxLength 50
254
+ */
255
+ provider: string;
256
+ };
257
+ export type InternalIntegrationsConfigsPutBodyConfig = {
258
+ [key: string]: unknown;
259
+ };
260
+ export type InternalIntegrationsConfigsPutBody = {
261
+ /**
262
+ * @minLength 1
263
+ * @maxLength 100
264
+ */
265
+ name?: string;
266
+ config?: InternalIntegrationsConfigsPutBodyConfig;
267
+ isActive?: boolean;
268
+ };
269
+ export type InternalIntegrationsConfigsPut200Environment = typeof InternalIntegrationsConfigsPut200Environment[keyof typeof InternalIntegrationsConfigsPut200Environment];
270
+ export declare const InternalIntegrationsConfigsPut200Environment: {
271
+ readonly staging: "staging";
272
+ readonly production: "production";
273
+ };
274
+ export type InternalIntegrationsConfigsPut200 = {
275
+ id: string;
276
+ provider: string;
277
+ name: string;
278
+ campaignId: string;
279
+ environment: InternalIntegrationsConfigsPut200Environment;
280
+ isActive: boolean;
281
+ createdAt: string;
282
+ updatedAt: string;
283
+ };
284
+ export type InternalIntegrationsConfigsPut400 = {
285
+ message: string;
286
+ code?: string;
287
+ details?: unknown | null;
288
+ };
289
+ export type InternalIntegrationsConfigsPut401 = {
290
+ message: string;
291
+ code?: string;
292
+ details?: unknown | null;
293
+ };
294
+ export type InternalIntegrationsConfigsPut404 = {
295
+ message: string;
296
+ code?: string;
297
+ details?: unknown | null;
298
+ };
299
+ export type InternalIntegrationsConfigsPut500 = {
300
+ message: string;
301
+ code?: string;
302
+ details?: unknown | null;
303
+ };
304
+ export type InternalIntegrationsConfigsProviderGetParams = {
305
+ /**
306
+ * @minLength 1
307
+ */
308
+ campaignId: string;
309
+ };
310
+ export type InternalIntegrationsConfigsProviderGet200Config = {
311
+ [key: string]: unknown;
312
+ };
313
+ export type InternalIntegrationsConfigsProviderGet200 = {
314
+ name: string;
315
+ config: InternalIntegrationsConfigsProviderGet200Config;
316
+ };
317
+ export type InternalIntegrationsConfigsProviderGet400 = {
318
+ message: string;
319
+ code?: string;
320
+ details?: unknown | null;
321
+ };
322
+ export type InternalIntegrationsConfigsProviderGet401 = {
323
+ message: string;
324
+ code?: string;
325
+ details?: unknown | null;
326
+ };
327
+ export type InternalIntegrationsConfigsProviderGet404 = {
328
+ message: string;
329
+ code?: string;
330
+ details?: unknown | null;
331
+ };
332
+ export type InternalIntegrationsConfigsProviderGet500 = {
333
+ message: string;
334
+ code?: string;
335
+ details?: unknown | null;
336
+ };
337
+ export type InternalIntegrationsConfigsCacheDeleteParams = {
338
+ /**
339
+ * @minLength 1
340
+ */
341
+ campaignId: string;
342
+ /**
343
+ * @minLength 1
344
+ * @maxLength 50
345
+ */
346
+ provider: string;
347
+ };
348
+ export type InternalIntegrationsConfigsCacheDelete200 = {
349
+ message: string;
350
+ };
351
+ export type InternalIntegrationsConfigsCacheDelete400 = {
352
+ message: string;
353
+ code?: string;
354
+ details?: unknown | null;
355
+ };
356
+ export type InternalIntegrationsConfigsCacheDelete401 = {
357
+ message: string;
358
+ code?: string;
359
+ details?: unknown | null;
360
+ };
361
+ export type InternalIntegrationsConfigsCacheDelete500 = {
362
+ message: string;
363
+ code?: string;
364
+ details?: unknown | null;
365
+ };
366
+ /**
367
+ * Overall system health: healthy (all checks pass), degraded (non-critical issues), unhealthy (critical failures)
368
+ */
369
+ export type InternalHealthSystemGet200Status = typeof InternalHealthSystemGet200Status[keyof typeof InternalHealthSystemGet200Status];
370
+ export declare const InternalHealthSystemGet200Status: {
371
+ readonly healthy: "healthy";
372
+ readonly degraded: "degraded";
373
+ readonly unhealthy: "unhealthy";
374
+ };
375
+ /**
376
+ * Deployment environment
377
+ */
378
+ export type InternalHealthSystemGet200Environment = typeof InternalHealthSystemGet200Environment[keyof typeof InternalHealthSystemGet200Environment];
379
+ export declare const InternalHealthSystemGet200Environment: {
380
+ readonly development: "development";
381
+ readonly staging: "staging";
382
+ readonly production: "production";
383
+ readonly test: "test";
384
+ };
385
+ export type InternalHealthSystemGet200ChecksMemory = {
386
+ /** Memory availability - false when utilization exceeds 90% */
387
+ status: boolean;
388
+ /** Current heap memory usage in megabytes */
389
+ usedMb: number;
390
+ /** Total allocated heap memory in megabytes */
391
+ totalMb: number;
392
+ /** Memory utilization percentage (0-100) */
393
+ percentageUsed: number;
394
+ };
395
+ export type InternalHealthSystemGet200ChecksDisk = {
396
+ /** Disk space availability - false when free space below 10% */
397
+ status: boolean;
398
+ /** Available disk space in megabytes */
399
+ freeMb: number;
400
+ /** Free disk space percentage (0-100) */
401
+ percentageFree: number;
402
+ };
403
+ export type InternalHealthSystemGet200Checks = {
404
+ memory: InternalHealthSystemGet200ChecksMemory;
405
+ disk: InternalHealthSystemGet200ChecksDisk;
406
+ };
407
+ export type InternalHealthSystemGet200 = {
408
+ /** Overall system health: healthy (all checks pass), degraded (non-critical issues), unhealthy (critical failures) */
409
+ status: InternalHealthSystemGet200Status;
410
+ /** Server uptime in seconds since last restart */
411
+ uptime: number;
412
+ /** ISO 8601 UTC timestamp of health check execution */
413
+ timestamp: string;
414
+ /** Current API version */
415
+ version: string;
416
+ /** Deployment environment */
417
+ environment: InternalHealthSystemGet200Environment;
418
+ checks: InternalHealthSystemGet200Checks;
419
+ };
420
+ export type InternalInboundVapiPostParams = {
421
+ source_call_id?: string;
422
+ };
423
+ export type InternalInboundVapiPostBodyMessage = {
424
+ type: string;
425
+ [key: string]: unknown;
426
+ };
427
+ export type InternalInboundVapiPostBody = {
428
+ message: InternalInboundVapiPostBodyMessage;
429
+ [key: string]: unknown;
430
+ };
431
+ export type InternalInboundVapiPost200AssistantModelMessagesItemRole = typeof InternalInboundVapiPost200AssistantModelMessagesItemRole[keyof typeof InternalInboundVapiPost200AssistantModelMessagesItemRole];
432
+ export declare const InternalInboundVapiPost200AssistantModelMessagesItemRole: {
433
+ readonly system: "system";
434
+ readonly user: "user";
435
+ readonly assistant: "assistant";
436
+ };
437
+ export type InternalInboundVapiPost200AssistantModelMessagesItem = {
438
+ role: InternalInboundVapiPost200AssistantModelMessagesItemRole;
439
+ content: string;
440
+ };
441
+ export type InternalInboundVapiPost200AssistantModel = {
442
+ provider: string;
443
+ model: string;
444
+ messages: InternalInboundVapiPost200AssistantModelMessagesItem[];
445
+ };
446
+ export type InternalInboundVapiPost200AssistantVoice = {
447
+ provider: string;
448
+ voiceId: string;
449
+ [key: string]: unknown;
450
+ };
451
+ export type InternalInboundVapiPost200AssistantMetadata = {
452
+ targetId: string;
453
+ campaignId: string;
454
+ agentId: string;
455
+ };
456
+ export type InternalInboundVapiPost200Assistant = {
457
+ name?: string;
458
+ firstMessage?: string;
459
+ model: InternalInboundVapiPost200AssistantModel;
460
+ voice?: InternalInboundVapiPost200AssistantVoice;
461
+ tools?: (unknown | null)[];
462
+ endCallFunctionEnabled?: boolean;
463
+ endCallMessage?: string;
464
+ metadata?: InternalInboundVapiPost200AssistantMetadata;
465
+ [key: string]: unknown;
466
+ };
467
+ export type InternalInboundVapiPost200 = {
468
+ assistant?: InternalInboundVapiPost200Assistant;
469
+ [key: string]: unknown;
470
+ };
471
+ export type InternalInboundVapiPost400 = {
472
+ error: string;
473
+ };
474
+ export type InternalInboundVapiPost401 = {
475
+ error: string;
476
+ };
477
+ export type InternalInboundVapiPost500 = {
478
+ error: string;
479
+ };
480
+ export type InternalLimitsAgentProviderGet200Item = {
481
+ id: string;
482
+ key: string;
483
+ /** @minimum 0 */
484
+ limit: number;
485
+ /**
486
+ * @minimum 0
487
+ * @maximum 100
488
+ */
489
+ safetyMarginPercent: number;
490
+ /** @nullable */
491
+ effectiveLimit: number | null;
492
+ /**
493
+ * Current number of active calls for this provider
494
+ * @minimum 0
495
+ */
496
+ currentUsage: number;
497
+ /**
498
+ * Available slots (effectiveLimit - currentUsage)
499
+ * @minimum 0
500
+ */
501
+ available: number;
502
+ createdAt: string;
503
+ updatedAt: string;
504
+ };
505
+ export type InternalLimitsAgentProviderGet401 = {
506
+ message: string;
507
+ code?: string;
508
+ details?: unknown | null;
509
+ };
510
+ export type InternalLimitsAgentProviderGet500 = {
511
+ message: string;
512
+ code?: string;
513
+ details?: unknown | null;
514
+ };
515
+ export type InternalLimitsAgentProviderGet503 = {
516
+ message: string;
517
+ code?: string;
518
+ details?: unknown | null;
519
+ };
520
+ export type InternalLimitsAgentProviderPostBody = {
521
+ /**
522
+ * Unique identifier for the agent provider (e.g., 'vapi', 'livekit'). Must be Redis key compliant (no whitespace).
523
+ * @minLength 1
524
+ * @pattern ^[^\s]*$
525
+ */
526
+ key: string;
527
+ /**
528
+ * Maximum concurrent calls allowed
529
+ * @minimum 0
530
+ */
531
+ limit: number;
532
+ /**
533
+ * Safety margin percentage (0-100)
534
+ * @minimum 0
535
+ * @maximum 100
536
+ */
537
+ safetyMarginPercent?: number;
538
+ };
539
+ export type InternalLimitsAgentProviderPost200 = {
540
+ id: string;
541
+ key: string;
542
+ /** @minimum 0 */
543
+ limit: number;
544
+ /**
545
+ * @minimum 0
546
+ * @maximum 100
547
+ */
548
+ safetyMarginPercent: number;
549
+ /** @nullable */
550
+ effectiveLimit: number | null;
551
+ createdAt: string;
552
+ updatedAt: string;
553
+ };
554
+ export type InternalLimitsAgentProviderPost201 = {
555
+ id: string;
556
+ key: string;
557
+ /** @minimum 0 */
558
+ limit: number;
559
+ /**
560
+ * @minimum 0
561
+ * @maximum 100
562
+ */
563
+ safetyMarginPercent: number;
564
+ /** @nullable */
565
+ effectiveLimit: number | null;
566
+ createdAt: string;
567
+ updatedAt: string;
568
+ };
569
+ export type InternalLimitsAgentProviderPost400 = {
570
+ message: string;
571
+ code?: string;
572
+ details?: unknown | null;
573
+ };
574
+ export type InternalLimitsAgentProviderPost401 = {
575
+ message: string;
576
+ code?: string;
577
+ details?: unknown | null;
578
+ };
579
+ export type InternalLimitsAgentProviderPost503 = {
580
+ message: string;
581
+ code?: string;
582
+ details?: unknown | null;
583
+ };
584
+ export type InternalPaymentsTwimlGetParams = {
585
+ /**
586
+ * Campaign ID for callback correlation
587
+ */
588
+ campaignId: string;
589
+ /**
590
+ * Call ID for callback correlation
591
+ */
592
+ callId: string;
593
+ /**
594
+ * Call provider (e.g., "vapi")
595
+ */
596
+ callProvider?: string;
597
+ /**
598
+ * Payment amount (e.g., "208.51")
599
+ * @pattern ^\d+(\.\d{1,2})?$
600
+ */
601
+ amount: string;
602
+ /**
603
+ * Payment date in YYYY-MM-DD format
604
+ */
605
+ paymentDate: string;
606
+ /**
607
+ * Whether payment is for today ("true" or "false")
608
+ */
609
+ isToday: InternalPaymentsTwimlGetIsToday;
610
+ };
611
+ export type InternalPaymentsTwimlGetIsToday = typeof InternalPaymentsTwimlGetIsToday[keyof typeof InternalPaymentsTwimlGetIsToday];
612
+ export declare const InternalPaymentsTwimlGetIsToday: {
613
+ readonly true: "true";
614
+ readonly false: "false";
615
+ };
616
+ export type InternalPaymentsTwimlGet400 = {
617
+ message: string;
618
+ code?: string;
619
+ details?: unknown | null;
620
+ };
621
+ export type InternalPaymentsTransferPostBodyPaymentMethod = typeof InternalPaymentsTransferPostBodyPaymentMethod[keyof typeof InternalPaymentsTransferPostBodyPaymentMethod];
622
+ export declare const InternalPaymentsTransferPostBodyPaymentMethod: {
623
+ readonly 'credit-card': "credit-card";
624
+ readonly ach: "ach";
625
+ readonly 'saved-payment-method': "saved-payment-method";
626
+ };
627
+ export type InternalPaymentsTransferPostBodyPaymentPlanFrequency = typeof InternalPaymentsTransferPostBodyPaymentPlanFrequency[keyof typeof InternalPaymentsTransferPostBodyPaymentPlanFrequency];
628
+ export declare const InternalPaymentsTransferPostBodyPaymentPlanFrequency: {
629
+ readonly daily: "daily";
630
+ readonly weekly: "weekly";
631
+ readonly biweekly: "biweekly";
632
+ readonly monthly: "monthly";
633
+ };
634
+ export type InternalPaymentsTransferPostBodyPaymentPlanType = typeof InternalPaymentsTransferPostBodyPaymentPlanType[keyof typeof InternalPaymentsTransferPostBodyPaymentPlanType];
635
+ export declare const InternalPaymentsTransferPostBodyPaymentPlanType: {
636
+ readonly recurring: "recurring";
637
+ readonly promiseToPay: "promiseToPay";
638
+ };
639
+ export type InternalPaymentsTransferPostBody = {
640
+ campaignId: string;
641
+ amount: number;
642
+ callId: string;
643
+ callerPhone: string;
644
+ callerName?: string;
645
+ paymentMethod?: InternalPaymentsTransferPostBodyPaymentMethod;
646
+ paymentMethodId?: string;
647
+ paymentDate?: string;
648
+ paymentPlanFrequency?: InternalPaymentsTransferPostBodyPaymentPlanFrequency;
649
+ paymentPlanType?: InternalPaymentsTransferPostBodyPaymentPlanType;
650
+ /** @minimum 1 */
651
+ numberOfPayments?: number;
652
+ };
653
+ export type InternalPaymentsTransferPost200 = {
654
+ twiml: string;
655
+ redisSessionId: string;
656
+ paymentProvider: string;
657
+ paymentConnector: string;
658
+ };
659
+ export type InternalPaymentsTransferPost400 = {
660
+ message: string;
661
+ code?: string;
662
+ details?: unknown | null;
663
+ };
664
+ export type InternalPaymentsTransferPost500 = {
665
+ message: string;
666
+ code?: string;
667
+ details?: unknown | null;
668
+ };
669
+ export type InternalPaymentsCallbackPostParams = {
670
+ sessionId: string;
671
+ };
672
+ export type InternalPaymentsCallbackPostBodyResult = typeof InternalPaymentsCallbackPostBodyResult[keyof typeof InternalPaymentsCallbackPostBodyResult];
673
+ export declare const InternalPaymentsCallbackPostBodyResult: {
674
+ readonly success: "success";
675
+ readonly 'payment-connector-error': "payment-connector-error";
676
+ readonly 'caller-interrupted-before-completion': "caller-interrupted-before-completion";
677
+ readonly 'caller-hung-up-before-completion': "caller-hung-up-before-completion";
678
+ readonly 'caller-interrupted-with-star': "caller-interrupted-with-star";
679
+ readonly 'validation-error': "validation-error";
680
+ readonly 'too-many-failed-attempts': "too-many-failed-attempts";
681
+ readonly 'too-many-attempts': "too-many-attempts";
682
+ readonly 'too-many-attempts-exceeded': "too-many-attempts-exceeded";
683
+ readonly 'card-declined': "card-declined";
684
+ readonly 'input-validation-failed': "input-validation-failed";
685
+ readonly 'expired-card': "expired-card";
686
+ readonly 'input-timeout': "input-timeout";
687
+ readonly 'internal-error': "internal-error";
688
+ };
689
+ export type InternalPaymentsCallbackPostBody = {
690
+ CallSid: string;
691
+ AccountSid: string;
692
+ Result?: InternalPaymentsCallbackPostBodyResult;
693
+ PaymentMethod?: string;
694
+ PaymentConfirmationCode?: string;
695
+ PaymentToken?: string;
696
+ ProfileId?: string;
697
+ PaymentError?: string;
698
+ PayErrorCode?: string;
699
+ ErrorCode?: string;
700
+ ErrorMessage?: string;
701
+ Digits?: string;
702
+ PaymentCardNumber?: string;
703
+ PaymentCardType?: string;
704
+ PaymentCardExpirationDate?: string;
705
+ SecurityCode?: string;
706
+ PaymentCardPostalCode?: string;
707
+ BankAccountNumber?: string;
708
+ BankRoutingNumber?: string;
709
+ BankAccountType?: string;
710
+ };
711
+ export type InternalQueuesCallJobPostBodyPriority = typeof InternalQueuesCallJobPostBodyPriority[keyof typeof InternalQueuesCallJobPostBodyPriority];
712
+ export declare const InternalQueuesCallJobPostBodyPriority: {
713
+ readonly standard: "standard";
714
+ };
715
+ export type InternalQueuesCallJobPostBody = {
716
+ /**
717
+ * ID of the target to call
718
+ * @minLength 1
719
+ */
720
+ targetId: string;
721
+ /**
722
+ * Attempt number for calling the target
723
+ * @minimum 1
724
+ */
725
+ attempt: number;
726
+ /**
727
+ * Slug for the agent
728
+ * @minLength 1
729
+ */
730
+ slug: string;
731
+ /**
732
+ * ID of the campaign
733
+ * @minLength 1
734
+ */
735
+ campaignId: string;
736
+ /**
737
+ * Label for the call
738
+ * @minLength 1
739
+ */
740
+ label: string;
741
+ priority?: InternalQueuesCallJobPostBodyPriority;
742
+ };
743
+ /**
744
+ * Job status - always 'queued' when successfully enqueued
745
+ */
746
+ export type InternalQueuesCallJobPost201Status = typeof InternalQueuesCallJobPost201Status[keyof typeof InternalQueuesCallJobPost201Status];
747
+ export declare const InternalQueuesCallJobPost201Status: {
748
+ readonly queued: "queued";
749
+ };
750
+ export type InternalQueuesCallJobPost201 = {
751
+ /** Unique identifier for the queued job */
752
+ jobId: string;
753
+ /** Job status - always 'queued' when successfully enqueued */
754
+ status: InternalQueuesCallJobPost201Status;
755
+ /** Human-readable confirmation message */
756
+ message: string;
757
+ };
758
+ export type InternalQueuesCallJobPost400 = {
759
+ message: string;
760
+ code?: string;
761
+ details?: unknown | null;
762
+ };
763
+ export type InternalQueuesCallJobPost500 = {
764
+ message: string;
765
+ code?: string;
766
+ details?: unknown | null;
767
+ };
768
+ export type InternalSipCallsJambonzPostBodyCallStatus = typeof InternalSipCallsJambonzPostBodyCallStatus[keyof typeof InternalSipCallsJambonzPostBodyCallStatus];
769
+ export declare const InternalSipCallsJambonzPostBodyCallStatus: {
770
+ readonly trying: "trying";
771
+ readonly ringing: "ringing";
772
+ readonly 'early-media': "early-media";
773
+ readonly 'in-progress': "in-progress";
774
+ readonly completed: "completed";
775
+ readonly failed: "failed";
776
+ readonly 'no-answer': "no-answer";
777
+ readonly busy: "busy";
778
+ };
779
+ export type InternalSipCallsJambonzPostBodyDirection = typeof InternalSipCallsJambonzPostBodyDirection[keyof typeof InternalSipCallsJambonzPostBodyDirection];
780
+ export declare const InternalSipCallsJambonzPostBodyDirection: {
781
+ readonly inbound: "inbound";
782
+ readonly outbound: "outbound";
783
+ };
784
+ /**
785
+ * SIP headers
786
+ */
787
+ export type InternalSipCallsJambonzPostBodySipHeaders = {
788
+ [key: string]: string;
789
+ };
790
+ export type InternalSipCallsJambonzPostBodySip = {
791
+ /** SIP headers */
792
+ headers: InternalSipCallsJambonzPostBodySipHeaders;
793
+ body?: string;
794
+ method?: string;
795
+ version?: string;
796
+ uri?: string;
797
+ raw?: string;
798
+ };
799
+ export type InternalSipCallsJambonzPostBody = {
800
+ call_sid: string;
801
+ call_status: InternalSipCallsJambonzPostBodyCallStatus;
802
+ direction?: InternalSipCallsJambonzPostBodyDirection;
803
+ call_id?: string;
804
+ account_sid?: string;
805
+ from?: string;
806
+ to?: string;
807
+ caller_name?: string;
808
+ sip_status?: number;
809
+ sip_reason?: string;
810
+ originating_sip_trunk_name?: string;
811
+ originating_sip_ip?: string;
812
+ application_sid?: string;
813
+ local_sip_address?: string;
814
+ service_provider_sid?: string;
815
+ sbc_callid?: string;
816
+ trace_id?: string;
817
+ sip?: InternalSipCallsJambonzPostBodySip;
818
+ };
819
+ export type InternalSipCallsJambonzPost200 = ({
820
+ verb: 'dial';
821
+ callerId?: string;
822
+ answerOnBridge?: boolean;
823
+ target: ({
824
+ type: 'sip' | 'phone';
825
+ sipUri?: string;
826
+ number?: string;
827
+ trunk?: string;
828
+ })[];
829
+ headers?: {
830
+ [key: string]: string;
831
+ };
832
+ } | {
833
+ verb: 'sip:decline';
834
+ status: number;
835
+ reason?: string;
836
+ })[] | {
837
+ [key: string]: unknown;
838
+ };
839
+ export type InternalSipCallsJambonzPost400 = {
840
+ error: string;
841
+ code?: string;
842
+ };
843
+ export type InternalSipCallsJambonzPost401 = {
844
+ error: string;
845
+ code?: string;
846
+ };
847
+ export type InternalSipCallsJambonzPost404 = {
848
+ error: string;
849
+ code?: string;
850
+ };
851
+ export type InternalSipCallsJambonzPost500 = {
852
+ error: string;
853
+ code?: string;
854
+ };
855
+ export type InternalSipCallsJambonzHealthGet200Status = typeof InternalSipCallsJambonzHealthGet200Status[keyof typeof InternalSipCallsJambonzHealthGet200Status];
856
+ export declare const InternalSipCallsJambonzHealthGet200Status: {
857
+ readonly ok: "ok";
858
+ };
859
+ export type InternalSipCallsJambonzHealthGet200 = {
860
+ status: InternalSipCallsJambonzHealthGet200Status;
861
+ active_routes: boolean;
862
+ };
863
+ export type InternalSipCallsJambonzHealthGet503Status = typeof InternalSipCallsJambonzHealthGet503Status[keyof typeof InternalSipCallsJambonzHealthGet503Status];
864
+ export declare const InternalSipCallsJambonzHealthGet503Status: {
865
+ readonly unhealthy: "unhealthy";
866
+ };
867
+ export type InternalSipCallsJambonzHealthGet503 = {
868
+ status: InternalSipCallsJambonzHealthGet503Status;
869
+ reason: string;
870
+ };
871
+ export type InternalTargetsUploadPostBody = {
872
+ /**
873
+ * ID of the campaign
874
+ * @minLength 1
875
+ */
876
+ campaignId: string;
877
+ /**
878
+ * S3 key of the uploaded CSV file
879
+ * @minLength 1
880
+ */
881
+ fileKey: string;
882
+ /**
883
+ * S3 bucket name (defaults to configured bucket)
884
+ * @minLength 1
885
+ */
886
+ bucket?: string;
887
+ };
888
+ export type InternalTargetsUploadPost202 = {
889
+ /** Unique identifier for the queued upload job */
890
+ jobId: string;
891
+ /** Human-readable confirmation message */
892
+ message: string;
893
+ };
894
+ export type InternalTargetsUploadPost400 = {
895
+ message: string;
896
+ code?: string;
897
+ details?: unknown | null;
898
+ };
899
+ export type InternalTargetsUploadPost404 = {
900
+ message: string;
901
+ code?: string;
902
+ details?: unknown | null;
903
+ };
904
+ export type InternalTargetsUploadPost500 = {
905
+ message: string;
906
+ code?: string;
907
+ details?: unknown | null;
908
+ };
909
+ export type InternalTargetsIdentifierGetParams = {
910
+ /**
911
+ * Type of identifier: 'phone' for phone number, 'external_id' for account number
912
+ */
913
+ identifierType?: InternalTargetsIdentifierGetIdentifierType;
914
+ /**
915
+ * Comma-separated column names to retrieve from targets table
916
+ */
917
+ fields: string;
918
+ /**
919
+ * Campaign ID to filter target lookup
920
+ */
921
+ campaignId: string;
922
+ };
923
+ export type InternalTargetsIdentifierGetIdentifierType = typeof InternalTargetsIdentifierGetIdentifierType[keyof typeof InternalTargetsIdentifierGetIdentifierType];
924
+ export declare const InternalTargetsIdentifierGetIdentifierType: {
925
+ readonly phone: "phone";
926
+ readonly external_id: "external_id";
927
+ };
928
+ export type InternalTargetsIdentifierGet200Item = {
929
+ [key: string]: unknown | null;
930
+ };
931
+ export type InternalTargetsIdentifierGet400 = {
932
+ message: string;
933
+ code?: string;
934
+ details?: unknown | null;
935
+ };
936
+ export type InternalTargetsIdentifierGet404 = {
937
+ message: string;
938
+ code?: string;
939
+ details?: unknown | null;
940
+ };
941
+ export type InternalTargetsIdentifierGet500 = {
942
+ message: string;
943
+ code?: string;
944
+ details?: unknown | null;
945
+ };
946
+ export type InternalVapiWebhookPostBodyMessage = {
947
+ type: 'status-update';
948
+ status: 'queued' | 'ringing' | 'in-progress' | 'forwarding' | 'ended';
949
+ endedReason?: string;
950
+ call?: {
951
+ /** @minLength 1 */
952
+ id: string;
953
+ /** @minLength 1 */
954
+ orgId?: string;
955
+ createdAt?: string;
956
+ updatedAt?: string;
957
+ type?: 'inboundPhoneCall' | 'outboundPhoneCall' | 'webCall';
958
+ status?: 'queued' | 'ringing' | 'in-progress' | 'forwarding' | 'ended';
959
+ phoneCallProvider?: string;
960
+ phoneCallProviderId?: string;
961
+ /** @minLength 1 */
962
+ phoneNumberId?: string;
963
+ /** @nullable */
964
+ assistantId?: string | null;
965
+ assistant?: unknown | null;
966
+ /** @nullable */
967
+ squadId?: string | null;
968
+ squad?: unknown | null;
969
+ phoneCallTransport?: string;
970
+ startedAt?: string;
971
+ endedAt?: string;
972
+ endedReason?: string;
973
+ cost?: number;
974
+ costBreakdown?: {
975
+ vapi?: number;
976
+ transport?: number;
977
+ stt?: number;
978
+ llm?: number;
979
+ tts?: number;
980
+ total?: number;
981
+ llmPromptTokens?: number;
982
+ llmCompletionTokens?: number;
983
+ ttsCharacters?: number;
984
+ };
985
+ messages?: ({
986
+ role: 'assistant' | 'user' | 'system' | 'function' | 'tool';
987
+ message?: string;
988
+ name?: string;
989
+ function_call?: unknown | null;
990
+ tool_calls?: {
991
+ id?: string;
992
+ type?: 'function';
993
+ function?: {
994
+ name: string;
995
+ arguments?: string;
996
+ };
997
+ result?: string;
998
+ }[];
999
+ time?: number;
1000
+ endTime?: number;
1001
+ secondsFromStart?: number;
1002
+ })[];
1003
+ transcript?: string;
1004
+ recordingUrl?: string;
1005
+ stereoRecordingUrl?: string;
1006
+ artifact?: {
1007
+ recording?: {
1008
+ recordingUrl?: string;
1009
+ stereoRecordingUrl?: string;
1010
+ };
1011
+ transcript?: string;
1012
+ messages?: ({
1013
+ role: 'assistant' | 'user' | 'system' | 'function' | 'tool';
1014
+ message?: string;
1015
+ name?: string;
1016
+ function_call?: unknown | null;
1017
+ tool_calls?: {
1018
+ id?: string;
1019
+ type?: 'function';
1020
+ function?: {
1021
+ name: string;
1022
+ arguments?: string;
1023
+ };
1024
+ result?: string;
1025
+ }[];
1026
+ time?: number;
1027
+ endTime?: number;
1028
+ secondsFromStart?: number;
1029
+ })[];
1030
+ messagesOpenAIFormatted?: (unknown | null)[];
1031
+ recordingUrl?: string;
1032
+ stereoRecordingUrl?: string;
1033
+ videoRecordingUrl?: string;
1034
+ videoRecordingStartDelaySeconds?: number;
1035
+ performanceMetrics?: {
1036
+ modelLatencyP50?: number;
1037
+ modelLatencyP90?: number;
1038
+ modelLatencyP95?: number;
1039
+ modelLatencyP99?: number;
1040
+ modelLatencyAverage?: number;
1041
+ voiceLatencyP50?: number;
1042
+ voiceLatencyP90?: number;
1043
+ voiceLatencyP95?: number;
1044
+ voiceLatencyP99?: number;
1045
+ voiceLatencyAverage?: number;
1046
+ transcriberLatencyP50?: number;
1047
+ transcriberLatencyP90?: number;
1048
+ transcriberLatencyP95?: number;
1049
+ transcriberLatencyP99?: number;
1050
+ transcriberLatencyAverage?: number;
1051
+ endpointingLatencyP50?: number;
1052
+ endpointingLatencyP90?: number;
1053
+ endpointingLatencyP95?: number;
1054
+ endpointingLatencyP99?: number;
1055
+ endpointingLatencyAverage?: number;
1056
+ turnLatencyP50?: number;
1057
+ turnLatencyP90?: number;
1058
+ turnLatencyP95?: number;
1059
+ turnLatencyP99?: number;
1060
+ turnLatencyAverage?: number;
1061
+ };
1062
+ };
1063
+ analysis?: {
1064
+ summary?: string;
1065
+ structuredData?: {
1066
+ [key: string]: unknown;
1067
+ };
1068
+ successEvaluation?: string;
1069
+ };
1070
+ };
1071
+ phoneNumber?: {
1072
+ /** @minLength 1 */
1073
+ id?: string;
1074
+ /** @minLength 1 */
1075
+ orgId?: string;
1076
+ number?: string;
1077
+ name?: string;
1078
+ /** @nullable */
1079
+ assistantId?: string | null;
1080
+ /** @nullable */
1081
+ squadId?: string | null;
1082
+ createdAt?: string;
1083
+ updatedAt?: string;
1084
+ };
1085
+ customer?: {
1086
+ number?: string;
1087
+ name?: string;
1088
+ extension?: string;
1089
+ };
1090
+ timestamp?: string;
1091
+ } | {
1092
+ type: 'end-of-call-report';
1093
+ call: {
1094
+ /** @minLength 1 */
1095
+ id: string;
1096
+ /** @minLength 1 */
1097
+ orgId?: string;
1098
+ createdAt?: string;
1099
+ updatedAt?: string;
1100
+ type?: 'inboundPhoneCall' | 'outboundPhoneCall' | 'webCall';
1101
+ status?: 'queued' | 'ringing' | 'in-progress' | 'forwarding' | 'ended';
1102
+ phoneCallProvider?: string;
1103
+ phoneCallProviderId?: string;
1104
+ /** @minLength 1 */
1105
+ phoneNumberId?: string;
1106
+ /** @nullable */
1107
+ assistantId?: string | null;
1108
+ assistant?: unknown | null;
1109
+ /** @nullable */
1110
+ squadId?: string | null;
1111
+ squad?: unknown | null;
1112
+ phoneCallTransport?: string;
1113
+ startedAt?: string;
1114
+ endedAt?: string;
1115
+ endedReason?: string;
1116
+ cost?: number;
1117
+ costBreakdown?: {
1118
+ vapi?: number;
1119
+ transport?: number;
1120
+ stt?: number;
1121
+ llm?: number;
1122
+ tts?: number;
1123
+ total?: number;
1124
+ llmPromptTokens?: number;
1125
+ llmCompletionTokens?: number;
1126
+ ttsCharacters?: number;
1127
+ };
1128
+ messages?: ({
1129
+ role: 'assistant' | 'user' | 'system' | 'function' | 'tool';
1130
+ message?: string;
1131
+ name?: string;
1132
+ function_call?: unknown | null;
1133
+ tool_calls?: {
1134
+ id?: string;
1135
+ type?: 'function';
1136
+ function?: {
1137
+ name: string;
1138
+ arguments?: string;
1139
+ };
1140
+ result?: string;
1141
+ }[];
1142
+ time?: number;
1143
+ endTime?: number;
1144
+ secondsFromStart?: number;
1145
+ })[];
1146
+ transcript?: string;
1147
+ recordingUrl?: string;
1148
+ stereoRecordingUrl?: string;
1149
+ artifact?: {
1150
+ recording?: {
1151
+ recordingUrl?: string;
1152
+ stereoRecordingUrl?: string;
1153
+ };
1154
+ transcript?: string;
1155
+ messages?: ({
1156
+ role: 'assistant' | 'user' | 'system' | 'function' | 'tool';
1157
+ message?: string;
1158
+ name?: string;
1159
+ function_call?: unknown | null;
1160
+ tool_calls?: {
1161
+ id?: string;
1162
+ type?: 'function';
1163
+ function?: {
1164
+ name: string;
1165
+ arguments?: string;
1166
+ };
1167
+ result?: string;
1168
+ }[];
1169
+ time?: number;
1170
+ endTime?: number;
1171
+ secondsFromStart?: number;
1172
+ })[];
1173
+ messagesOpenAIFormatted?: (unknown | null)[];
1174
+ recordingUrl?: string;
1175
+ stereoRecordingUrl?: string;
1176
+ videoRecordingUrl?: string;
1177
+ videoRecordingStartDelaySeconds?: number;
1178
+ performanceMetrics?: {
1179
+ modelLatencyP50?: number;
1180
+ modelLatencyP90?: number;
1181
+ modelLatencyP95?: number;
1182
+ modelLatencyP99?: number;
1183
+ modelLatencyAverage?: number;
1184
+ voiceLatencyP50?: number;
1185
+ voiceLatencyP90?: number;
1186
+ voiceLatencyP95?: number;
1187
+ voiceLatencyP99?: number;
1188
+ voiceLatencyAverage?: number;
1189
+ transcriberLatencyP50?: number;
1190
+ transcriberLatencyP90?: number;
1191
+ transcriberLatencyP95?: number;
1192
+ transcriberLatencyP99?: number;
1193
+ transcriberLatencyAverage?: number;
1194
+ endpointingLatencyP50?: number;
1195
+ endpointingLatencyP90?: number;
1196
+ endpointingLatencyP95?: number;
1197
+ endpointingLatencyP99?: number;
1198
+ endpointingLatencyAverage?: number;
1199
+ turnLatencyP50?: number;
1200
+ turnLatencyP90?: number;
1201
+ turnLatencyP95?: number;
1202
+ turnLatencyP99?: number;
1203
+ turnLatencyAverage?: number;
1204
+ };
1205
+ };
1206
+ analysis?: {
1207
+ summary?: string;
1208
+ structuredData?: {
1209
+ [key: string]: unknown;
1210
+ };
1211
+ successEvaluation?: string;
1212
+ };
1213
+ };
1214
+ endedReason?: string;
1215
+ artifact?: {
1216
+ recording?: {
1217
+ recordingUrl?: string;
1218
+ stereoRecordingUrl?: string;
1219
+ };
1220
+ transcript?: string;
1221
+ messages?: ({
1222
+ role: 'assistant' | 'user' | 'system' | 'function' | 'tool';
1223
+ message?: string;
1224
+ name?: string;
1225
+ function_call?: unknown | null;
1226
+ tool_calls?: {
1227
+ id?: string;
1228
+ type?: 'function';
1229
+ function?: {
1230
+ name: string;
1231
+ arguments?: string;
1232
+ };
1233
+ result?: string;
1234
+ }[];
1235
+ time?: number;
1236
+ endTime?: number;
1237
+ secondsFromStart?: number;
1238
+ })[];
1239
+ messagesOpenAIFormatted?: (unknown | null)[];
1240
+ recordingUrl?: string;
1241
+ stereoRecordingUrl?: string;
1242
+ videoRecordingUrl?: string;
1243
+ videoRecordingStartDelaySeconds?: number;
1244
+ performanceMetrics?: {
1245
+ modelLatencyP50?: number;
1246
+ modelLatencyP90?: number;
1247
+ modelLatencyP95?: number;
1248
+ modelLatencyP99?: number;
1249
+ modelLatencyAverage?: number;
1250
+ voiceLatencyP50?: number;
1251
+ voiceLatencyP90?: number;
1252
+ voiceLatencyP95?: number;
1253
+ voiceLatencyP99?: number;
1254
+ voiceLatencyAverage?: number;
1255
+ transcriberLatencyP50?: number;
1256
+ transcriberLatencyP90?: number;
1257
+ transcriberLatencyP95?: number;
1258
+ transcriberLatencyP99?: number;
1259
+ transcriberLatencyAverage?: number;
1260
+ endpointingLatencyP50?: number;
1261
+ endpointingLatencyP90?: number;
1262
+ endpointingLatencyP95?: number;
1263
+ endpointingLatencyP99?: number;
1264
+ endpointingLatencyAverage?: number;
1265
+ turnLatencyP50?: number;
1266
+ turnLatencyP90?: number;
1267
+ turnLatencyP95?: number;
1268
+ turnLatencyP99?: number;
1269
+ turnLatencyAverage?: number;
1270
+ };
1271
+ };
1272
+ timestamp?: string;
1273
+ analysis?: {
1274
+ summary?: string;
1275
+ structuredData?: {
1276
+ [key: string]: unknown;
1277
+ };
1278
+ successEvaluation?: string;
1279
+ };
1280
+ messages?: ({
1281
+ role: 'assistant' | 'user' | 'system' | 'function' | 'tool';
1282
+ message?: string;
1283
+ name?: string;
1284
+ function_call?: unknown | null;
1285
+ tool_calls?: {
1286
+ id?: string;
1287
+ type?: 'function';
1288
+ function?: {
1289
+ name: string;
1290
+ arguments?: string;
1291
+ };
1292
+ result?: string;
1293
+ }[];
1294
+ time?: number;
1295
+ endTime?: number;
1296
+ secondsFromStart?: number;
1297
+ })[];
1298
+ phoneNumber?: {
1299
+ /** @minLength 1 */
1300
+ id?: string;
1301
+ /** @minLength 1 */
1302
+ orgId?: string;
1303
+ number?: string;
1304
+ name?: string;
1305
+ /** @nullable */
1306
+ assistantId?: string | null;
1307
+ /** @nullable */
1308
+ squadId?: string | null;
1309
+ createdAt?: string;
1310
+ updatedAt?: string;
1311
+ };
1312
+ customer?: {
1313
+ number?: string;
1314
+ name?: string;
1315
+ extension?: string;
1316
+ };
1317
+ stereoRecordingUrl?: string;
1318
+ recordingUrl?: string;
1319
+ transcript?: string;
1320
+ summary?: string;
1321
+ } | {
1322
+ type: 'transcript';
1323
+ transcriptType: 'partial' | 'final';
1324
+ transcript: string;
1325
+ role: 'assistant' | 'user';
1326
+ timestamp?: string;
1327
+ call?: {
1328
+ /** @minLength 1 */
1329
+ id: string;
1330
+ /** @minLength 1 */
1331
+ orgId?: string;
1332
+ createdAt?: string;
1333
+ updatedAt?: string;
1334
+ type?: 'inboundPhoneCall' | 'outboundPhoneCall' | 'webCall';
1335
+ status?: 'queued' | 'ringing' | 'in-progress' | 'forwarding' | 'ended';
1336
+ phoneCallProvider?: string;
1337
+ phoneCallProviderId?: string;
1338
+ /** @minLength 1 */
1339
+ phoneNumberId?: string;
1340
+ /** @nullable */
1341
+ assistantId?: string | null;
1342
+ assistant?: unknown | null;
1343
+ /** @nullable */
1344
+ squadId?: string | null;
1345
+ squad?: unknown | null;
1346
+ phoneCallTransport?: string;
1347
+ startedAt?: string;
1348
+ endedAt?: string;
1349
+ endedReason?: string;
1350
+ cost?: number;
1351
+ costBreakdown?: {
1352
+ vapi?: number;
1353
+ transport?: number;
1354
+ stt?: number;
1355
+ llm?: number;
1356
+ tts?: number;
1357
+ total?: number;
1358
+ llmPromptTokens?: number;
1359
+ llmCompletionTokens?: number;
1360
+ ttsCharacters?: number;
1361
+ };
1362
+ messages?: ({
1363
+ role: 'assistant' | 'user' | 'system' | 'function' | 'tool';
1364
+ message?: string;
1365
+ name?: string;
1366
+ function_call?: unknown | null;
1367
+ tool_calls?: {
1368
+ id?: string;
1369
+ type?: 'function';
1370
+ function?: {
1371
+ name: string;
1372
+ arguments?: string;
1373
+ };
1374
+ result?: string;
1375
+ }[];
1376
+ time?: number;
1377
+ endTime?: number;
1378
+ secondsFromStart?: number;
1379
+ })[];
1380
+ transcript?: string;
1381
+ recordingUrl?: string;
1382
+ stereoRecordingUrl?: string;
1383
+ artifact?: {
1384
+ recording?: {
1385
+ recordingUrl?: string;
1386
+ stereoRecordingUrl?: string;
1387
+ };
1388
+ transcript?: string;
1389
+ messages?: ({
1390
+ role: 'assistant' | 'user' | 'system' | 'function' | 'tool';
1391
+ message?: string;
1392
+ name?: string;
1393
+ function_call?: unknown | null;
1394
+ tool_calls?: {
1395
+ id?: string;
1396
+ type?: 'function';
1397
+ function?: {
1398
+ name: string;
1399
+ arguments?: string;
1400
+ };
1401
+ result?: string;
1402
+ }[];
1403
+ time?: number;
1404
+ endTime?: number;
1405
+ secondsFromStart?: number;
1406
+ })[];
1407
+ messagesOpenAIFormatted?: (unknown | null)[];
1408
+ recordingUrl?: string;
1409
+ stereoRecordingUrl?: string;
1410
+ videoRecordingUrl?: string;
1411
+ videoRecordingStartDelaySeconds?: number;
1412
+ performanceMetrics?: {
1413
+ modelLatencyP50?: number;
1414
+ modelLatencyP90?: number;
1415
+ modelLatencyP95?: number;
1416
+ modelLatencyP99?: number;
1417
+ modelLatencyAverage?: number;
1418
+ voiceLatencyP50?: number;
1419
+ voiceLatencyP90?: number;
1420
+ voiceLatencyP95?: number;
1421
+ voiceLatencyP99?: number;
1422
+ voiceLatencyAverage?: number;
1423
+ transcriberLatencyP50?: number;
1424
+ transcriberLatencyP90?: number;
1425
+ transcriberLatencyP95?: number;
1426
+ transcriberLatencyP99?: number;
1427
+ transcriberLatencyAverage?: number;
1428
+ endpointingLatencyP50?: number;
1429
+ endpointingLatencyP90?: number;
1430
+ endpointingLatencyP95?: number;
1431
+ endpointingLatencyP99?: number;
1432
+ endpointingLatencyAverage?: number;
1433
+ turnLatencyP50?: number;
1434
+ turnLatencyP90?: number;
1435
+ turnLatencyP95?: number;
1436
+ turnLatencyP99?: number;
1437
+ turnLatencyAverage?: number;
1438
+ };
1439
+ };
1440
+ analysis?: {
1441
+ summary?: string;
1442
+ structuredData?: {
1443
+ [key: string]: unknown;
1444
+ };
1445
+ successEvaluation?: string;
1446
+ };
1447
+ };
1448
+ } | {
1449
+ type: 'conversation-update';
1450
+ conversation: ({
1451
+ role: 'assistant' | 'user' | 'system' | 'function' | 'tool';
1452
+ message?: string;
1453
+ name?: string;
1454
+ function_call?: unknown | null;
1455
+ tool_calls?: {
1456
+ id?: string;
1457
+ type?: 'function';
1458
+ function?: {
1459
+ name: string;
1460
+ arguments?: string;
1461
+ };
1462
+ result?: string;
1463
+ }[];
1464
+ time?: number;
1465
+ endTime?: number;
1466
+ secondsFromStart?: number;
1467
+ })[];
1468
+ timestamp?: string;
1469
+ } | {
1470
+ type: 'assistant-request';
1471
+ call?: {
1472
+ /** @minLength 1 */
1473
+ id: string;
1474
+ /** @minLength 1 */
1475
+ orgId?: string;
1476
+ createdAt?: string;
1477
+ updatedAt?: string;
1478
+ type?: 'inboundPhoneCall' | 'outboundPhoneCall' | 'webCall';
1479
+ status?: 'queued' | 'ringing' | 'in-progress' | 'forwarding' | 'ended';
1480
+ phoneCallProvider?: string;
1481
+ phoneCallProviderId?: string;
1482
+ /** @minLength 1 */
1483
+ phoneNumberId?: string;
1484
+ /** @nullable */
1485
+ assistantId?: string | null;
1486
+ assistant?: unknown | null;
1487
+ /** @nullable */
1488
+ squadId?: string | null;
1489
+ squad?: unknown | null;
1490
+ phoneCallTransport?: string;
1491
+ startedAt?: string;
1492
+ endedAt?: string;
1493
+ endedReason?: string;
1494
+ cost?: number;
1495
+ costBreakdown?: {
1496
+ vapi?: number;
1497
+ transport?: number;
1498
+ stt?: number;
1499
+ llm?: number;
1500
+ tts?: number;
1501
+ total?: number;
1502
+ llmPromptTokens?: number;
1503
+ llmCompletionTokens?: number;
1504
+ ttsCharacters?: number;
1505
+ };
1506
+ messages?: ({
1507
+ role: 'assistant' | 'user' | 'system' | 'function' | 'tool';
1508
+ message?: string;
1509
+ name?: string;
1510
+ function_call?: unknown | null;
1511
+ tool_calls?: {
1512
+ id?: string;
1513
+ type?: 'function';
1514
+ function?: {
1515
+ name: string;
1516
+ arguments?: string;
1517
+ };
1518
+ result?: string;
1519
+ }[];
1520
+ time?: number;
1521
+ endTime?: number;
1522
+ secondsFromStart?: number;
1523
+ })[];
1524
+ transcript?: string;
1525
+ recordingUrl?: string;
1526
+ stereoRecordingUrl?: string;
1527
+ artifact?: {
1528
+ recording?: {
1529
+ recordingUrl?: string;
1530
+ stereoRecordingUrl?: string;
1531
+ };
1532
+ transcript?: string;
1533
+ messages?: ({
1534
+ role: 'assistant' | 'user' | 'system' | 'function' | 'tool';
1535
+ message?: string;
1536
+ name?: string;
1537
+ function_call?: unknown | null;
1538
+ tool_calls?: {
1539
+ id?: string;
1540
+ type?: 'function';
1541
+ function?: {
1542
+ name: string;
1543
+ arguments?: string;
1544
+ };
1545
+ result?: string;
1546
+ }[];
1547
+ time?: number;
1548
+ endTime?: number;
1549
+ secondsFromStart?: number;
1550
+ })[];
1551
+ messagesOpenAIFormatted?: (unknown | null)[];
1552
+ recordingUrl?: string;
1553
+ stereoRecordingUrl?: string;
1554
+ videoRecordingUrl?: string;
1555
+ videoRecordingStartDelaySeconds?: number;
1556
+ performanceMetrics?: {
1557
+ modelLatencyP50?: number;
1558
+ modelLatencyP90?: number;
1559
+ modelLatencyP95?: number;
1560
+ modelLatencyP99?: number;
1561
+ modelLatencyAverage?: number;
1562
+ voiceLatencyP50?: number;
1563
+ voiceLatencyP90?: number;
1564
+ voiceLatencyP95?: number;
1565
+ voiceLatencyP99?: number;
1566
+ voiceLatencyAverage?: number;
1567
+ transcriberLatencyP50?: number;
1568
+ transcriberLatencyP90?: number;
1569
+ transcriberLatencyP95?: number;
1570
+ transcriberLatencyP99?: number;
1571
+ transcriberLatencyAverage?: number;
1572
+ endpointingLatencyP50?: number;
1573
+ endpointingLatencyP90?: number;
1574
+ endpointingLatencyP95?: number;
1575
+ endpointingLatencyP99?: number;
1576
+ endpointingLatencyAverage?: number;
1577
+ turnLatencyP50?: number;
1578
+ turnLatencyP90?: number;
1579
+ turnLatencyP95?: number;
1580
+ turnLatencyP99?: number;
1581
+ turnLatencyAverage?: number;
1582
+ };
1583
+ };
1584
+ analysis?: {
1585
+ summary?: string;
1586
+ structuredData?: {
1587
+ [key: string]: unknown;
1588
+ };
1589
+ successEvaluation?: string;
1590
+ };
1591
+ };
1592
+ phoneNumber?: {
1593
+ /** @minLength 1 */
1594
+ id?: string;
1595
+ /** @minLength 1 */
1596
+ orgId?: string;
1597
+ number?: string;
1598
+ name?: string;
1599
+ /** @nullable */
1600
+ assistantId?: string | null;
1601
+ /** @nullable */
1602
+ squadId?: string | null;
1603
+ createdAt?: string;
1604
+ updatedAt?: string;
1605
+ };
1606
+ customer?: {
1607
+ number?: string;
1608
+ name?: string;
1609
+ extension?: string;
1610
+ };
1611
+ timestamp?: string;
1612
+ } | {
1613
+ type: 'tool-calls';
1614
+ toolCalls: {
1615
+ id?: string;
1616
+ type?: 'function';
1617
+ function?: {
1618
+ name: string;
1619
+ arguments?: string;
1620
+ };
1621
+ result?: string;
1622
+ }[];
1623
+ timestamp?: string;
1624
+ } | {
1625
+ type: 'transfer-destination-request';
1626
+ call?: {
1627
+ /** @minLength 1 */
1628
+ id: string;
1629
+ /** @minLength 1 */
1630
+ orgId?: string;
1631
+ createdAt?: string;
1632
+ updatedAt?: string;
1633
+ type?: 'inboundPhoneCall' | 'outboundPhoneCall' | 'webCall';
1634
+ status?: 'queued' | 'ringing' | 'in-progress' | 'forwarding' | 'ended';
1635
+ phoneCallProvider?: string;
1636
+ phoneCallProviderId?: string;
1637
+ /** @minLength 1 */
1638
+ phoneNumberId?: string;
1639
+ /** @nullable */
1640
+ assistantId?: string | null;
1641
+ assistant?: unknown | null;
1642
+ /** @nullable */
1643
+ squadId?: string | null;
1644
+ squad?: unknown | null;
1645
+ phoneCallTransport?: string;
1646
+ startedAt?: string;
1647
+ endedAt?: string;
1648
+ endedReason?: string;
1649
+ cost?: number;
1650
+ costBreakdown?: {
1651
+ vapi?: number;
1652
+ transport?: number;
1653
+ stt?: number;
1654
+ llm?: number;
1655
+ tts?: number;
1656
+ total?: number;
1657
+ llmPromptTokens?: number;
1658
+ llmCompletionTokens?: number;
1659
+ ttsCharacters?: number;
1660
+ };
1661
+ messages?: ({
1662
+ role: 'assistant' | 'user' | 'system' | 'function' | 'tool';
1663
+ message?: string;
1664
+ name?: string;
1665
+ function_call?: unknown | null;
1666
+ tool_calls?: {
1667
+ id?: string;
1668
+ type?: 'function';
1669
+ function?: {
1670
+ name: string;
1671
+ arguments?: string;
1672
+ };
1673
+ result?: string;
1674
+ }[];
1675
+ time?: number;
1676
+ endTime?: number;
1677
+ secondsFromStart?: number;
1678
+ })[];
1679
+ transcript?: string;
1680
+ recordingUrl?: string;
1681
+ stereoRecordingUrl?: string;
1682
+ artifact?: {
1683
+ recording?: {
1684
+ recordingUrl?: string;
1685
+ stereoRecordingUrl?: string;
1686
+ };
1687
+ transcript?: string;
1688
+ messages?: ({
1689
+ role: 'assistant' | 'user' | 'system' | 'function' | 'tool';
1690
+ message?: string;
1691
+ name?: string;
1692
+ function_call?: unknown | null;
1693
+ tool_calls?: {
1694
+ id?: string;
1695
+ type?: 'function';
1696
+ function?: {
1697
+ name: string;
1698
+ arguments?: string;
1699
+ };
1700
+ result?: string;
1701
+ }[];
1702
+ time?: number;
1703
+ endTime?: number;
1704
+ secondsFromStart?: number;
1705
+ })[];
1706
+ messagesOpenAIFormatted?: (unknown | null)[];
1707
+ recordingUrl?: string;
1708
+ stereoRecordingUrl?: string;
1709
+ videoRecordingUrl?: string;
1710
+ videoRecordingStartDelaySeconds?: number;
1711
+ performanceMetrics?: {
1712
+ modelLatencyP50?: number;
1713
+ modelLatencyP90?: number;
1714
+ modelLatencyP95?: number;
1715
+ modelLatencyP99?: number;
1716
+ modelLatencyAverage?: number;
1717
+ voiceLatencyP50?: number;
1718
+ voiceLatencyP90?: number;
1719
+ voiceLatencyP95?: number;
1720
+ voiceLatencyP99?: number;
1721
+ voiceLatencyAverage?: number;
1722
+ transcriberLatencyP50?: number;
1723
+ transcriberLatencyP90?: number;
1724
+ transcriberLatencyP95?: number;
1725
+ transcriberLatencyP99?: number;
1726
+ transcriberLatencyAverage?: number;
1727
+ endpointingLatencyP50?: number;
1728
+ endpointingLatencyP90?: number;
1729
+ endpointingLatencyP95?: number;
1730
+ endpointingLatencyP99?: number;
1731
+ endpointingLatencyAverage?: number;
1732
+ turnLatencyP50?: number;
1733
+ turnLatencyP90?: number;
1734
+ turnLatencyP95?: number;
1735
+ turnLatencyP99?: number;
1736
+ turnLatencyAverage?: number;
1737
+ };
1738
+ };
1739
+ analysis?: {
1740
+ summary?: string;
1741
+ structuredData?: {
1742
+ [key: string]: unknown;
1743
+ };
1744
+ successEvaluation?: string;
1745
+ };
1746
+ };
1747
+ timestamp?: string;
1748
+ } | {
1749
+ type: 'transfer-update';
1750
+ destination: {
1751
+ type: string;
1752
+ number?: string;
1753
+ message?: string;
1754
+ };
1755
+ timestamp?: string;
1756
+ } | {
1757
+ type: 'language-change-detected';
1758
+ language: string;
1759
+ timestamp?: string;
1760
+ } | {
1761
+ type: 'phone-call-control';
1762
+ request: {
1763
+ type: string;
1764
+ };
1765
+ timestamp?: string;
1766
+ };
1767
+ export type InternalVapiWebhookPostBody = {
1768
+ message: InternalVapiWebhookPostBodyMessage;
1769
+ };
1770
+ export type InternalVapiWebhookPost200 = {
1771
+ /** Whether the webhook was received */
1772
+ received: boolean;
1773
+ };
1774
+ export type InternalVapiWebhookPost400 = {
1775
+ /** Error message */
1776
+ error: string;
1777
+ };
1778
+ export type InternalVapiWebhookPost401 = {
1779
+ /** Error message */
1780
+ error: string;
1781
+ };
1782
+ export type InternalVapiWebhookPost500 = {
1783
+ /** Error message */
1784
+ error: string;
1785
+ };
1786
+ export type InternalKanbanWebhookPostBody = {
1787
+ /** @minLength 1 */
1788
+ id: string;
1789
+ /** @nullable */
1790
+ createdAt: number | null;
1791
+ numDropped?: number;
1792
+ event: 'room_created';
1793
+ room: {
1794
+ sid?: string;
1795
+ /** @minLength 1 */
1796
+ name: string;
1797
+ metadata: {
1798
+ call_id: string;
1799
+ campaign_id: string;
1800
+ target_id: string;
1801
+ /** @nullable */
1802
+ closing_reason?: string | null;
1803
+ /** @nullable */
1804
+ closed_at?: number | null;
1805
+ usage_metrics?: {
1806
+ usage: {
1807
+ llm_prompt_tokens?: number;
1808
+ llm_completion_tokens?: number;
1809
+ llm_prompt_cached_tokens?: number;
1810
+ llm_input_audio_tokens?: number;
1811
+ llm_output_audio_tokens?: number;
1812
+ tts_characters_count?: number;
1813
+ tts_audio_duration?: number;
1814
+ stt_audio_duration?: number;
1815
+ };
1816
+ models: {
1817
+ llm?: {
1818
+ provider: string;
1819
+ model: string;
1820
+ };
1821
+ tts?: {
1822
+ provider: string;
1823
+ model: string;
1824
+ };
1825
+ stt?: {
1826
+ provider: string;
1827
+ model: string;
1828
+ };
1829
+ };
1830
+ latency: {
1831
+ turn_index: number;
1832
+ llm_node_ttft?: number;
1833
+ tts_node_ttfb?: number;
1834
+ e2e_latency?: number;
1835
+ transcription_delay?: number;
1836
+ end_of_turn_delay?: number;
1837
+ }[];
1838
+ };
1839
+ };
1840
+ emptyTimeout?: number;
1841
+ departureTimeout?: number;
1842
+ maxParticipants?: number;
1843
+ creationTime?: string;
1844
+ numParticipants?: number;
1845
+ numPublishers?: number;
1846
+ activeRecording?: boolean;
1847
+ };
1848
+ } | {
1849
+ /** @minLength 1 */
1850
+ id: string;
1851
+ /** @nullable */
1852
+ createdAt: number | null;
1853
+ numDropped?: number;
1854
+ event: 'call_agent_dispatched';
1855
+ room: {
1856
+ sid?: string;
1857
+ /** @minLength 1 */
1858
+ name: string;
1859
+ metadata: {
1860
+ call_id: string;
1861
+ campaign_id: string;
1862
+ target_id: string;
1863
+ /** @nullable */
1864
+ closing_reason?: string | null;
1865
+ /** @nullable */
1866
+ closed_at?: number | null;
1867
+ usage_metrics?: {
1868
+ usage: {
1869
+ llm_prompt_tokens?: number;
1870
+ llm_completion_tokens?: number;
1871
+ llm_prompt_cached_tokens?: number;
1872
+ llm_input_audio_tokens?: number;
1873
+ llm_output_audio_tokens?: number;
1874
+ tts_characters_count?: number;
1875
+ tts_audio_duration?: number;
1876
+ stt_audio_duration?: number;
1877
+ };
1878
+ models: {
1879
+ llm?: {
1880
+ provider: string;
1881
+ model: string;
1882
+ };
1883
+ tts?: {
1884
+ provider: string;
1885
+ model: string;
1886
+ };
1887
+ stt?: {
1888
+ provider: string;
1889
+ model: string;
1890
+ };
1891
+ };
1892
+ latency: {
1893
+ turn_index: number;
1894
+ llm_node_ttft?: number;
1895
+ tts_node_ttfb?: number;
1896
+ e2e_latency?: number;
1897
+ transcription_delay?: number;
1898
+ end_of_turn_delay?: number;
1899
+ }[];
1900
+ };
1901
+ };
1902
+ emptyTimeout?: number;
1903
+ departureTimeout?: number;
1904
+ maxParticipants?: number;
1905
+ creationTime?: string;
1906
+ numParticipants?: number;
1907
+ numPublishers?: number;
1908
+ activeRecording?: boolean;
1909
+ };
1910
+ } | {
1911
+ /** @minLength 1 */
1912
+ id: string;
1913
+ /** @nullable */
1914
+ createdAt: number | null;
1915
+ numDropped?: number;
1916
+ event: 'call_sip_initiated';
1917
+ room: {
1918
+ sid?: string;
1919
+ /** @minLength 1 */
1920
+ name: string;
1921
+ metadata: {
1922
+ call_id: string;
1923
+ campaign_id: string;
1924
+ target_id: string;
1925
+ /** @nullable */
1926
+ closing_reason?: string | null;
1927
+ /** @nullable */
1928
+ closed_at?: number | null;
1929
+ usage_metrics?: {
1930
+ usage: {
1931
+ llm_prompt_tokens?: number;
1932
+ llm_completion_tokens?: number;
1933
+ llm_prompt_cached_tokens?: number;
1934
+ llm_input_audio_tokens?: number;
1935
+ llm_output_audio_tokens?: number;
1936
+ tts_characters_count?: number;
1937
+ tts_audio_duration?: number;
1938
+ stt_audio_duration?: number;
1939
+ };
1940
+ models: {
1941
+ llm?: {
1942
+ provider: string;
1943
+ model: string;
1944
+ };
1945
+ tts?: {
1946
+ provider: string;
1947
+ model: string;
1948
+ };
1949
+ stt?: {
1950
+ provider: string;
1951
+ model: string;
1952
+ };
1953
+ };
1954
+ latency: {
1955
+ turn_index: number;
1956
+ llm_node_ttft?: number;
1957
+ tts_node_ttfb?: number;
1958
+ e2e_latency?: number;
1959
+ transcription_delay?: number;
1960
+ end_of_turn_delay?: number;
1961
+ }[];
1962
+ };
1963
+ };
1964
+ emptyTimeout?: number;
1965
+ departureTimeout?: number;
1966
+ maxParticipants?: number;
1967
+ creationTime?: string;
1968
+ numParticipants?: number;
1969
+ numPublishers?: number;
1970
+ activeRecording?: boolean;
1971
+ };
1972
+ } | {
1973
+ /** @minLength 1 */
1974
+ id: string;
1975
+ /** @nullable */
1976
+ createdAt: number | null;
1977
+ numDropped?: number;
1978
+ event: 'call_failed';
1979
+ room: {
1980
+ sid?: string;
1981
+ /** @minLength 1 */
1982
+ name: string;
1983
+ metadata: {
1984
+ call_id: string;
1985
+ campaign_id: string;
1986
+ target_id: string;
1987
+ /** @nullable */
1988
+ closing_reason?: string | null;
1989
+ /** @nullable */
1990
+ closed_at?: number | null;
1991
+ usage_metrics?: {
1992
+ usage: {
1993
+ llm_prompt_tokens?: number;
1994
+ llm_completion_tokens?: number;
1995
+ llm_prompt_cached_tokens?: number;
1996
+ llm_input_audio_tokens?: number;
1997
+ llm_output_audio_tokens?: number;
1998
+ tts_characters_count?: number;
1999
+ tts_audio_duration?: number;
2000
+ stt_audio_duration?: number;
2001
+ };
2002
+ models: {
2003
+ llm?: {
2004
+ provider: string;
2005
+ model: string;
2006
+ };
2007
+ tts?: {
2008
+ provider: string;
2009
+ model: string;
2010
+ };
2011
+ stt?: {
2012
+ provider: string;
2013
+ model: string;
2014
+ };
2015
+ };
2016
+ latency: {
2017
+ turn_index: number;
2018
+ llm_node_ttft?: number;
2019
+ tts_node_ttfb?: number;
2020
+ e2e_latency?: number;
2021
+ transcription_delay?: number;
2022
+ end_of_turn_delay?: number;
2023
+ }[];
2024
+ };
2025
+ };
2026
+ emptyTimeout?: number;
2027
+ departureTimeout?: number;
2028
+ maxParticipants?: number;
2029
+ creationTime?: string;
2030
+ numParticipants?: number;
2031
+ numPublishers?: number;
2032
+ activeRecording?: boolean;
2033
+ };
2034
+ error: {
2035
+ stage: string;
2036
+ code: string;
2037
+ message: string;
2038
+ };
2039
+ } | {
2040
+ /** @minLength 1 */
2041
+ id: string;
2042
+ /** @nullable */
2043
+ createdAt: number | null;
2044
+ numDropped?: number;
2045
+ event: 'transcription';
2046
+ room: {
2047
+ sid?: string;
2048
+ /** @minLength 1 */
2049
+ name: string;
2050
+ metadata: {
2051
+ call_id: string;
2052
+ campaign_id: string;
2053
+ target_id: string;
2054
+ /** @nullable */
2055
+ closing_reason?: string | null;
2056
+ /** @nullable */
2057
+ closed_at?: number | null;
2058
+ usage_metrics?: {
2059
+ usage: {
2060
+ llm_prompt_tokens?: number;
2061
+ llm_completion_tokens?: number;
2062
+ llm_prompt_cached_tokens?: number;
2063
+ llm_input_audio_tokens?: number;
2064
+ llm_output_audio_tokens?: number;
2065
+ tts_characters_count?: number;
2066
+ tts_audio_duration?: number;
2067
+ stt_audio_duration?: number;
2068
+ };
2069
+ models: {
2070
+ llm?: {
2071
+ provider: string;
2072
+ model: string;
2073
+ };
2074
+ tts?: {
2075
+ provider: string;
2076
+ model: string;
2077
+ };
2078
+ stt?: {
2079
+ provider: string;
2080
+ model: string;
2081
+ };
2082
+ };
2083
+ latency: {
2084
+ turn_index: number;
2085
+ llm_node_ttft?: number;
2086
+ tts_node_ttfb?: number;
2087
+ e2e_latency?: number;
2088
+ transcription_delay?: number;
2089
+ end_of_turn_delay?: number;
2090
+ }[];
2091
+ };
2092
+ };
2093
+ emptyTimeout?: number;
2094
+ departureTimeout?: number;
2095
+ maxParticipants?: number;
2096
+ creationTime?: string;
2097
+ numParticipants?: number;
2098
+ numPublishers?: number;
2099
+ activeRecording?: boolean;
2100
+ };
2101
+ transcription: {
2102
+ transcript: string;
2103
+ role: string;
2104
+ };
2105
+ } | {
2106
+ /** @minLength 1 */
2107
+ id: string;
2108
+ /** @nullable */
2109
+ createdAt: number | null;
2110
+ numDropped?: number;
2111
+ event: 'agent_room_close';
2112
+ room: {
2113
+ sid?: string;
2114
+ /** @minLength 1 */
2115
+ name: string;
2116
+ metadata: {
2117
+ call_id: string;
2118
+ campaign_id: string;
2119
+ target_id: string;
2120
+ /** @nullable */
2121
+ closing_reason?: string | null;
2122
+ /** @nullable */
2123
+ closed_at?: number | null;
2124
+ usage_metrics?: {
2125
+ usage: {
2126
+ llm_prompt_tokens?: number;
2127
+ llm_completion_tokens?: number;
2128
+ llm_prompt_cached_tokens?: number;
2129
+ llm_input_audio_tokens?: number;
2130
+ llm_output_audio_tokens?: number;
2131
+ tts_characters_count?: number;
2132
+ tts_audio_duration?: number;
2133
+ stt_audio_duration?: number;
2134
+ };
2135
+ models: {
2136
+ llm?: {
2137
+ provider: string;
2138
+ model: string;
2139
+ };
2140
+ tts?: {
2141
+ provider: string;
2142
+ model: string;
2143
+ };
2144
+ stt?: {
2145
+ provider: string;
2146
+ model: string;
2147
+ };
2148
+ };
2149
+ latency: {
2150
+ turn_index: number;
2151
+ llm_node_ttft?: number;
2152
+ tts_node_ttfb?: number;
2153
+ e2e_latency?: number;
2154
+ transcription_delay?: number;
2155
+ end_of_turn_delay?: number;
2156
+ }[];
2157
+ };
2158
+ };
2159
+ emptyTimeout?: number;
2160
+ departureTimeout?: number;
2161
+ maxParticipants?: number;
2162
+ creationTime?: string;
2163
+ numParticipants?: number;
2164
+ numPublishers?: number;
2165
+ activeRecording?: boolean;
2166
+ };
2167
+ } | {
2168
+ /** @minLength 1 */
2169
+ id: string;
2170
+ /** @nullable */
2171
+ createdAt: number | null;
2172
+ numDropped?: number;
2173
+ event: 'room_finished';
2174
+ room: {
2175
+ sid?: string;
2176
+ /** @minLength 1 */
2177
+ name: string;
2178
+ metadata: {
2179
+ call_id: string;
2180
+ campaign_id: string;
2181
+ target_id: string;
2182
+ /** @nullable */
2183
+ closing_reason?: string | null;
2184
+ /** @nullable */
2185
+ closed_at?: number | null;
2186
+ usage_metrics?: {
2187
+ usage: {
2188
+ llm_prompt_tokens?: number;
2189
+ llm_completion_tokens?: number;
2190
+ llm_prompt_cached_tokens?: number;
2191
+ llm_input_audio_tokens?: number;
2192
+ llm_output_audio_tokens?: number;
2193
+ tts_characters_count?: number;
2194
+ tts_audio_duration?: number;
2195
+ stt_audio_duration?: number;
2196
+ };
2197
+ models: {
2198
+ llm?: {
2199
+ provider: string;
2200
+ model: string;
2201
+ };
2202
+ tts?: {
2203
+ provider: string;
2204
+ model: string;
2205
+ };
2206
+ stt?: {
2207
+ provider: string;
2208
+ model: string;
2209
+ };
2210
+ };
2211
+ latency: {
2212
+ turn_index: number;
2213
+ llm_node_ttft?: number;
2214
+ tts_node_ttfb?: number;
2215
+ e2e_latency?: number;
2216
+ transcription_delay?: number;
2217
+ end_of_turn_delay?: number;
2218
+ }[];
2219
+ };
2220
+ };
2221
+ emptyTimeout?: number;
2222
+ departureTimeout?: number;
2223
+ maxParticipants?: number;
2224
+ creationTime?: string;
2225
+ numParticipants?: number;
2226
+ numPublishers?: number;
2227
+ activeRecording?: boolean;
2228
+ };
2229
+ } | {
2230
+ /** @minLength 1 */
2231
+ id: string;
2232
+ /** @nullable */
2233
+ createdAt: number | null;
2234
+ numDropped?: number;
2235
+ event: 'participant_joined';
2236
+ room: {
2237
+ sid?: string;
2238
+ /** @minLength 1 */
2239
+ name: string;
2240
+ metadata: {
2241
+ call_id: string;
2242
+ campaign_id: string;
2243
+ target_id: string;
2244
+ /** @nullable */
2245
+ closing_reason?: string | null;
2246
+ /** @nullable */
2247
+ closed_at?: number | null;
2248
+ usage_metrics?: {
2249
+ usage: {
2250
+ llm_prompt_tokens?: number;
2251
+ llm_completion_tokens?: number;
2252
+ llm_prompt_cached_tokens?: number;
2253
+ llm_input_audio_tokens?: number;
2254
+ llm_output_audio_tokens?: number;
2255
+ tts_characters_count?: number;
2256
+ tts_audio_duration?: number;
2257
+ stt_audio_duration?: number;
2258
+ };
2259
+ models: {
2260
+ llm?: {
2261
+ provider: string;
2262
+ model: string;
2263
+ };
2264
+ tts?: {
2265
+ provider: string;
2266
+ model: string;
2267
+ };
2268
+ stt?: {
2269
+ provider: string;
2270
+ model: string;
2271
+ };
2272
+ };
2273
+ latency: {
2274
+ turn_index: number;
2275
+ llm_node_ttft?: number;
2276
+ tts_node_ttfb?: number;
2277
+ e2e_latency?: number;
2278
+ transcription_delay?: number;
2279
+ end_of_turn_delay?: number;
2280
+ }[];
2281
+ };
2282
+ };
2283
+ emptyTimeout?: number;
2284
+ departureTimeout?: number;
2285
+ maxParticipants?: number;
2286
+ creationTime?: string;
2287
+ numParticipants?: number;
2288
+ numPublishers?: number;
2289
+ activeRecording?: boolean;
2290
+ };
2291
+ participant: {
2292
+ sid: string;
2293
+ identity: string;
2294
+ state?: string;
2295
+ name?: string;
2296
+ kind?: 'STANDARD' | 'INGRESS' | 'EGRESS' | 'SIP' | 'AGENT';
2297
+ joinedAt?: string | number;
2298
+ joinedAtMs?: string | number;
2299
+ };
2300
+ } | {
2301
+ /** @minLength 1 */
2302
+ id: string;
2303
+ /** @nullable */
2304
+ createdAt: number | null;
2305
+ numDropped?: number;
2306
+ event: 'participant_left';
2307
+ room: {
2308
+ sid?: string;
2309
+ /** @minLength 1 */
2310
+ name: string;
2311
+ metadata: {
2312
+ call_id: string;
2313
+ campaign_id: string;
2314
+ target_id: string;
2315
+ /** @nullable */
2316
+ closing_reason?: string | null;
2317
+ /** @nullable */
2318
+ closed_at?: number | null;
2319
+ usage_metrics?: {
2320
+ usage: {
2321
+ llm_prompt_tokens?: number;
2322
+ llm_completion_tokens?: number;
2323
+ llm_prompt_cached_tokens?: number;
2324
+ llm_input_audio_tokens?: number;
2325
+ llm_output_audio_tokens?: number;
2326
+ tts_characters_count?: number;
2327
+ tts_audio_duration?: number;
2328
+ stt_audio_duration?: number;
2329
+ };
2330
+ models: {
2331
+ llm?: {
2332
+ provider: string;
2333
+ model: string;
2334
+ };
2335
+ tts?: {
2336
+ provider: string;
2337
+ model: string;
2338
+ };
2339
+ stt?: {
2340
+ provider: string;
2341
+ model: string;
2342
+ };
2343
+ };
2344
+ latency: {
2345
+ turn_index: number;
2346
+ llm_node_ttft?: number;
2347
+ tts_node_ttfb?: number;
2348
+ e2e_latency?: number;
2349
+ transcription_delay?: number;
2350
+ end_of_turn_delay?: number;
2351
+ }[];
2352
+ };
2353
+ };
2354
+ emptyTimeout?: number;
2355
+ departureTimeout?: number;
2356
+ maxParticipants?: number;
2357
+ creationTime?: string;
2358
+ numParticipants?: number;
2359
+ numPublishers?: number;
2360
+ activeRecording?: boolean;
2361
+ };
2362
+ participant: {
2363
+ sid: string;
2364
+ identity: string;
2365
+ state?: string;
2366
+ name?: string;
2367
+ kind?: 'STANDARD' | 'INGRESS' | 'EGRESS' | 'SIP' | 'AGENT';
2368
+ joinedAt?: string | number;
2369
+ joinedAtMs?: string | number;
2370
+ };
2371
+ };
2372
+ export type InternalKanbanWebhookPost200 = {
2373
+ received: boolean;
2374
+ };
2375
+ export type InternalKanbanWebhookPost400 = {
2376
+ error: string;
2377
+ };
2378
+ export type InternalKanbanWebhookPost500 = {
2379
+ error: string;
2380
+ };
2381
+ export type InternalAuthMeGet200 = {
2382
+ /** M2M token subject (machine identifier) */
2383
+ subject: string;
2384
+ /** Unique M2M token identifier */
2385
+ tokenId: string;
2386
+ /** Scopes granted to the M2M token */
2387
+ scopes?: string[];
2388
+ };
2389
+ export type InternalAuthMeGet401 = {
2390
+ message: string;
2391
+ code?: string;
2392
+ details?: unknown | null;
2393
+ };
2394
+ /**
2395
+ * Returns all configured actions for a campaign, including disabled ones.
2396
+ * @summary List campaign actions
2397
+ */
2398
+ export type internalActionsGetResponse200 = {
2399
+ data: InternalActionsGet200Item[];
2400
+ status: 200;
2401
+ };
2402
+ export type internalActionsGetResponse400 = {
2403
+ data: InternalActionsGet400;
2404
+ status: 400;
2405
+ };
2406
+ export type internalActionsGetResponse401 = {
2407
+ data: InternalActionsGet401;
2408
+ status: 401;
2409
+ };
2410
+ export type internalActionsGetResponse500 = {
2411
+ data: InternalActionsGet500;
2412
+ status: 500;
2413
+ };
2414
+ export type internalActionsGetResponseSuccess = (internalActionsGetResponse200) & {
2415
+ headers: Headers;
2416
+ };
2417
+ export type internalActionsGetResponseError = (internalActionsGetResponse400 | internalActionsGetResponse401 | internalActionsGetResponse500) & {
2418
+ headers: Headers;
2419
+ };
2420
+ export type internalActionsGetResponse = (internalActionsGetResponseSuccess | internalActionsGetResponseError);
2421
+ export declare const getInternalActionsGetUrl: (params: InternalActionsGetParams) => string;
2422
+ export declare const internalActionsGet: (params: InternalActionsGetParams, options?: RequestInit) => Promise<internalActionsGetResponse>;
2423
+ /**
2424
+ * Registers a new action-provider mapping for a campaign. Validates the provider supports the action type and has a vendor config for the campaign. Auto-resolves configId. Returns 409 if the combination already exists.
2425
+ * @summary Add action to campaign
2426
+ */
2427
+ export type internalActionsPostResponse201 = {
2428
+ data: InternalActionsPost201;
2429
+ status: 201;
2430
+ };
2431
+ export type internalActionsPostResponse400 = {
2432
+ data: InternalActionsPost400;
2433
+ status: 400;
2434
+ };
2435
+ export type internalActionsPostResponse401 = {
2436
+ data: InternalActionsPost401;
2437
+ status: 401;
2438
+ };
2439
+ export type internalActionsPostResponse409 = {
2440
+ data: InternalActionsPost409;
2441
+ status: 409;
2442
+ };
2443
+ export type internalActionsPostResponse500 = {
2444
+ data: InternalActionsPost500;
2445
+ status: 500;
2446
+ };
2447
+ export type internalActionsPostResponseSuccess = (internalActionsPostResponse201) & {
2448
+ headers: Headers;
2449
+ };
2450
+ export type internalActionsPostResponseError = (internalActionsPostResponse400 | internalActionsPostResponse401 | internalActionsPostResponse409 | internalActionsPostResponse500) & {
2451
+ headers: Headers;
2452
+ };
2453
+ export type internalActionsPostResponse = (internalActionsPostResponseSuccess | internalActionsPostResponseError);
2454
+ export declare const getInternalActionsPostUrl: (params: InternalActionsPostParams) => string;
2455
+ export declare const internalActionsPost: (internalActionsPostBody: InternalActionsPostBody, params: InternalActionsPostParams, options?: RequestInit) => Promise<internalActionsPostResponse>;
2456
+ /**
2457
+ * Deletes a campaign action by ID. Returns 404 if not found.
2458
+ * @summary Remove action from campaign
2459
+ */
2460
+ export type internalActionsDeleteResponse204 = {
2461
+ data: unknown;
2462
+ status: 204;
2463
+ };
2464
+ export type internalActionsDeleteResponse400 = {
2465
+ data: InternalActionsDelete400;
2466
+ status: 400;
2467
+ };
2468
+ export type internalActionsDeleteResponse401 = {
2469
+ data: InternalActionsDelete401;
2470
+ status: 401;
2471
+ };
2472
+ export type internalActionsDeleteResponse404 = {
2473
+ data: InternalActionsDelete404;
2474
+ status: 404;
2475
+ };
2476
+ export type internalActionsDeleteResponse500 = {
2477
+ data: InternalActionsDelete500;
2478
+ status: 500;
2479
+ };
2480
+ export type internalActionsDeleteResponseSuccess = (internalActionsDeleteResponse204) & {
2481
+ headers: Headers;
2482
+ };
2483
+ export type internalActionsDeleteResponseError = (internalActionsDeleteResponse400 | internalActionsDeleteResponse401 | internalActionsDeleteResponse404 | internalActionsDeleteResponse500) & {
2484
+ headers: Headers;
2485
+ };
2486
+ export type internalActionsDeleteResponse = (internalActionsDeleteResponseSuccess | internalActionsDeleteResponseError);
2487
+ export declare const getInternalActionsDeleteUrl: (params: InternalActionsDeleteParams) => string;
2488
+ export declare const internalActionsDelete: (internalActionsDeleteBody: InternalActionsDeleteBody, params: InternalActionsDeleteParams, options?: RequestInit) => Promise<internalActionsDeleteResponse>;
2489
+ /**
2490
+ * Updates a call record with the provided data. If provider is specified, fetches external contact data first.
2491
+ * @summary Update a call record
2492
+ */
2493
+ export type internalCallsIdPutResponse200 = {
2494
+ data: unknown | null;
2495
+ status: 200;
2496
+ };
2497
+ export type internalCallsIdPutResponse400 = {
2498
+ data: InternalCallsIdPut400;
2499
+ status: 400;
2500
+ };
2501
+ export type internalCallsIdPutResponse401 = {
2502
+ data: InternalCallsIdPut401;
2503
+ status: 401;
2504
+ };
2505
+ export type internalCallsIdPutResponse404 = {
2506
+ data: InternalCallsIdPut404;
2507
+ status: 404;
2508
+ };
2509
+ export type internalCallsIdPutResponse500 = {
2510
+ data: InternalCallsIdPut500;
2511
+ status: 500;
2512
+ };
2513
+ export type internalCallsIdPutResponseSuccess = (internalCallsIdPutResponse200) & {
2514
+ headers: Headers;
2515
+ };
2516
+ export type internalCallsIdPutResponseError = (internalCallsIdPutResponse400 | internalCallsIdPutResponse401 | internalCallsIdPutResponse404 | internalCallsIdPutResponse500) & {
2517
+ headers: Headers;
2518
+ };
2519
+ export type internalCallsIdPutResponse = (internalCallsIdPutResponseSuccess | internalCallsIdPutResponseError);
2520
+ export declare const getInternalCallsIdPutUrl: (id: string) => string;
2521
+ export declare const internalCallsIdPut: (id: string, unknownNull: unknown | null, options?: RequestInit) => Promise<internalCallsIdPutResponse>;
2522
+ /**
2523
+ * Returns all active integration vendor configs for a campaign in the current environment.
2524
+ * @summary List vendor configs for a campaign
2525
+ */
2526
+ export type internalIntegrationsConfigsGetResponse200 = {
2527
+ data: InternalIntegrationsConfigsGet200Item[];
2528
+ status: 200;
2529
+ };
2530
+ export type internalIntegrationsConfigsGetResponse400 = {
2531
+ data: InternalIntegrationsConfigsGet400;
2532
+ status: 400;
2533
+ };
2534
+ export type internalIntegrationsConfigsGetResponse401 = {
2535
+ data: InternalIntegrationsConfigsGet401;
2536
+ status: 401;
2537
+ };
2538
+ export type internalIntegrationsConfigsGetResponse500 = {
2539
+ data: InternalIntegrationsConfigsGet500;
2540
+ status: 500;
2541
+ };
2542
+ export type internalIntegrationsConfigsGetResponseSuccess = (internalIntegrationsConfigsGetResponse200) & {
2543
+ headers: Headers;
2544
+ };
2545
+ export type internalIntegrationsConfigsGetResponseError = (internalIntegrationsConfigsGetResponse400 | internalIntegrationsConfigsGetResponse401 | internalIntegrationsConfigsGetResponse500) & {
2546
+ headers: Headers;
2547
+ };
2548
+ export type internalIntegrationsConfigsGetResponse = (internalIntegrationsConfigsGetResponseSuccess | internalIntegrationsConfigsGetResponseError);
2549
+ export declare const getInternalIntegrationsConfigsGetUrl: (params: InternalIntegrationsConfigsGetParams) => string;
2550
+ export declare const internalIntegrationsConfigsGet: (params: InternalIntegrationsConfigsGetParams, options?: RequestInit) => Promise<internalIntegrationsConfigsGetResponse>;
2551
+ /**
2552
+ * Creates a new integration vendor config. The config object is encrypted before storage. Requires valid M2M Bearer token in Authorization header.
2553
+ * @summary Create integration config
2554
+ */
2555
+ export type internalIntegrationsConfigsPostResponse201 = {
2556
+ data: InternalIntegrationsConfigsPost201;
2557
+ status: 201;
2558
+ };
2559
+ export type internalIntegrationsConfigsPostResponse400 = {
2560
+ data: InternalIntegrationsConfigsPost400;
2561
+ status: 400;
2562
+ };
2563
+ export type internalIntegrationsConfigsPostResponse401 = {
2564
+ data: InternalIntegrationsConfigsPost401;
2565
+ status: 401;
2566
+ };
2567
+ export type internalIntegrationsConfigsPostResponse409 = {
2568
+ data: InternalIntegrationsConfigsPost409;
2569
+ status: 409;
2570
+ };
2571
+ export type internalIntegrationsConfigsPostResponse500 = {
2572
+ data: InternalIntegrationsConfigsPost500;
2573
+ status: 500;
2574
+ };
2575
+ export type internalIntegrationsConfigsPostResponseSuccess = (internalIntegrationsConfigsPostResponse201) & {
2576
+ headers: Headers;
2577
+ };
2578
+ export type internalIntegrationsConfigsPostResponseError = (internalIntegrationsConfigsPostResponse400 | internalIntegrationsConfigsPostResponse401 | internalIntegrationsConfigsPostResponse409 | internalIntegrationsConfigsPostResponse500) & {
2579
+ headers: Headers;
2580
+ };
2581
+ export type internalIntegrationsConfigsPostResponse = (internalIntegrationsConfigsPostResponseSuccess | internalIntegrationsConfigsPostResponseError);
2582
+ export declare const getInternalIntegrationsConfigsPostUrl: (params: InternalIntegrationsConfigsPostParams) => string;
2583
+ export declare const internalIntegrationsConfigsPost: (internalIntegrationsConfigsPostBody: InternalIntegrationsConfigsPostBody, params: InternalIntegrationsConfigsPostParams, options?: RequestInit) => Promise<internalIntegrationsConfigsPostResponse>;
2584
+ /**
2585
+ * Updates an existing integration config by campaignId and provider. Supports partial updates for name, config, and isActive. Config is re-encrypted on update. Automatically invalidates Redis cache.
2586
+ * @summary Update integration config
2587
+ */
2588
+ export type internalIntegrationsConfigsPutResponse200 = {
2589
+ data: InternalIntegrationsConfigsPut200;
2590
+ status: 200;
2591
+ };
2592
+ export type internalIntegrationsConfigsPutResponse400 = {
2593
+ data: InternalIntegrationsConfigsPut400;
2594
+ status: 400;
2595
+ };
2596
+ export type internalIntegrationsConfigsPutResponse401 = {
2597
+ data: InternalIntegrationsConfigsPut401;
2598
+ status: 401;
2599
+ };
2600
+ export type internalIntegrationsConfigsPutResponse404 = {
2601
+ data: InternalIntegrationsConfigsPut404;
2602
+ status: 404;
2603
+ };
2604
+ export type internalIntegrationsConfigsPutResponse500 = {
2605
+ data: InternalIntegrationsConfigsPut500;
2606
+ status: 500;
2607
+ };
2608
+ export type internalIntegrationsConfigsPutResponseSuccess = (internalIntegrationsConfigsPutResponse200) & {
2609
+ headers: Headers;
2610
+ };
2611
+ export type internalIntegrationsConfigsPutResponseError = (internalIntegrationsConfigsPutResponse400 | internalIntegrationsConfigsPutResponse401 | internalIntegrationsConfigsPutResponse404 | internalIntegrationsConfigsPutResponse500) & {
2612
+ headers: Headers;
2613
+ };
2614
+ export type internalIntegrationsConfigsPutResponse = (internalIntegrationsConfigsPutResponseSuccess | internalIntegrationsConfigsPutResponseError);
2615
+ export declare const getInternalIntegrationsConfigsPutUrl: (params: InternalIntegrationsConfigsPutParams) => string;
2616
+ export declare const internalIntegrationsConfigsPut: (internalIntegrationsConfigsPutBody: InternalIntegrationsConfigsPutBody, params: InternalIntegrationsConfigsPutParams, options?: RequestInit) => Promise<internalIntegrationsConfigsPutResponse>;
2617
+ /**
2618
+ * Retrieves decrypted integration config for a campaign and provider. Requires valid M2M Bearer token in Authorization header.
2619
+ * @summary Get integration config
2620
+ */
2621
+ export type internalIntegrationsConfigsProviderGetResponse200 = {
2622
+ data: InternalIntegrationsConfigsProviderGet200;
2623
+ status: 200;
2624
+ };
2625
+ export type internalIntegrationsConfigsProviderGetResponse400 = {
2626
+ data: InternalIntegrationsConfigsProviderGet400;
2627
+ status: 400;
2628
+ };
2629
+ export type internalIntegrationsConfigsProviderGetResponse401 = {
2630
+ data: InternalIntegrationsConfigsProviderGet401;
2631
+ status: 401;
2632
+ };
2633
+ export type internalIntegrationsConfigsProviderGetResponse404 = {
2634
+ data: InternalIntegrationsConfigsProviderGet404;
2635
+ status: 404;
2636
+ };
2637
+ export type internalIntegrationsConfigsProviderGetResponse500 = {
2638
+ data: InternalIntegrationsConfigsProviderGet500;
2639
+ status: 500;
2640
+ };
2641
+ export type internalIntegrationsConfigsProviderGetResponseSuccess = (internalIntegrationsConfigsProviderGetResponse200) & {
2642
+ headers: Headers;
2643
+ };
2644
+ export type internalIntegrationsConfigsProviderGetResponseError = (internalIntegrationsConfigsProviderGetResponse400 | internalIntegrationsConfigsProviderGetResponse401 | internalIntegrationsConfigsProviderGetResponse404 | internalIntegrationsConfigsProviderGetResponse500) & {
2645
+ headers: Headers;
2646
+ };
2647
+ export type internalIntegrationsConfigsProviderGetResponse = (internalIntegrationsConfigsProviderGetResponseSuccess | internalIntegrationsConfigsProviderGetResponseError);
2648
+ export declare const getInternalIntegrationsConfigsProviderGetUrl: (provider: string, params: InternalIntegrationsConfigsProviderGetParams) => string;
2649
+ export declare const internalIntegrationsConfigsProviderGet: (provider: string, params: InternalIntegrationsConfigsProviderGetParams, options?: RequestInit) => Promise<internalIntegrationsConfigsProviderGetResponse>;
2650
+ /**
2651
+ * Clears the Redis cache for a specific campaign/provider config. Requires valid M2M Bearer token.
2652
+ * @summary Invalidate config cache
2653
+ */
2654
+ export type internalIntegrationsConfigsCacheDeleteResponse200 = {
2655
+ data: InternalIntegrationsConfigsCacheDelete200;
2656
+ status: 200;
2657
+ };
2658
+ export type internalIntegrationsConfigsCacheDeleteResponse400 = {
2659
+ data: InternalIntegrationsConfigsCacheDelete400;
2660
+ status: 400;
2661
+ };
2662
+ export type internalIntegrationsConfigsCacheDeleteResponse401 = {
2663
+ data: InternalIntegrationsConfigsCacheDelete401;
2664
+ status: 401;
2665
+ };
2666
+ export type internalIntegrationsConfigsCacheDeleteResponse500 = {
2667
+ data: InternalIntegrationsConfigsCacheDelete500;
2668
+ status: 500;
2669
+ };
2670
+ export type internalIntegrationsConfigsCacheDeleteResponseSuccess = (internalIntegrationsConfigsCacheDeleteResponse200) & {
2671
+ headers: Headers;
2672
+ };
2673
+ export type internalIntegrationsConfigsCacheDeleteResponseError = (internalIntegrationsConfigsCacheDeleteResponse400 | internalIntegrationsConfigsCacheDeleteResponse401 | internalIntegrationsConfigsCacheDeleteResponse500) & {
2674
+ headers: Headers;
2675
+ };
2676
+ export type internalIntegrationsConfigsCacheDeleteResponse = (internalIntegrationsConfigsCacheDeleteResponseSuccess | internalIntegrationsConfigsCacheDeleteResponseError);
2677
+ export declare const getInternalIntegrationsConfigsCacheDeleteUrl: (params: InternalIntegrationsConfigsCacheDeleteParams) => string;
2678
+ export declare const internalIntegrationsConfigsCacheDelete: (params: InternalIntegrationsConfigsCacheDeleteParams, options?: RequestInit) => Promise<internalIntegrationsConfigsCacheDeleteResponse>;
2679
+ /**
2680
+ * Performs active health checks on critical system dependencies including memory utilization and disk space. Returns detailed metrics for monitoring dashboards, alerting systems, and operational troubleshooting. Intended for internal use only.
2681
+ * @summary Comprehensive system health and diagnostics
2682
+ */
2683
+ export type internalHealthSystemGetResponse200 = {
2684
+ data: InternalHealthSystemGet200;
2685
+ status: 200;
2686
+ };
2687
+ export type internalHealthSystemGetResponseSuccess = (internalHealthSystemGetResponse200) & {
2688
+ headers: Headers;
2689
+ };
2690
+ export type internalHealthSystemGetResponse = (internalHealthSystemGetResponseSuccess);
2691
+ export declare const getInternalHealthSystemGetUrl: () => string;
2692
+ export declare const internalHealthSystemGet: (options?: RequestInit) => Promise<internalHealthSystemGetResponse>;
2693
+ /**
2694
+ * Receives assistant-request webhooks from VAPI for inbound calls. Returns the assistant configuration to use for the call based on the phone number configuration, campaign, and agent settings.
2695
+ * @summary Handle VAPI inbound call webhook
2696
+ */
2697
+ export type internalInboundVapiPostResponse200 = {
2698
+ data: InternalInboundVapiPost200;
2699
+ status: 200;
2700
+ };
2701
+ export type internalInboundVapiPostResponse400 = {
2702
+ data: InternalInboundVapiPost400;
2703
+ status: 400;
2704
+ };
2705
+ export type internalInboundVapiPostResponse401 = {
2706
+ data: InternalInboundVapiPost401;
2707
+ status: 401;
2708
+ };
2709
+ export type internalInboundVapiPostResponse500 = {
2710
+ data: InternalInboundVapiPost500;
2711
+ status: 500;
2712
+ };
2713
+ export type internalInboundVapiPostResponseSuccess = (internalInboundVapiPostResponse200) & {
2714
+ headers: Headers;
2715
+ };
2716
+ export type internalInboundVapiPostResponseError = (internalInboundVapiPostResponse400 | internalInboundVapiPostResponse401 | internalInboundVapiPostResponse500) & {
2717
+ headers: Headers;
2718
+ };
2719
+ export type internalInboundVapiPostResponse = (internalInboundVapiPostResponseSuccess | internalInboundVapiPostResponseError);
2720
+ export declare const getInternalInboundVapiPostUrl: (params?: InternalInboundVapiPostParams) => string;
2721
+ export declare const internalInboundVapiPost: (internalInboundVapiPostBody: InternalInboundVapiPostBody, params?: InternalInboundVapiPostParams, options?: RequestInit) => Promise<internalInboundVapiPostResponse>;
2722
+ /**
2723
+ * Returns all configured agent provider limits with their current usage from Redis. Shows how many concurrent calls are active for each provider and how many slots are available. Returns 503 if Redis or database is unavailable, 500 for unexpected errors.
2724
+ * @summary List all agent provider limits with current usage
2725
+ */
2726
+ export type internalLimitsAgentProviderGetResponse200 = {
2727
+ data: InternalLimitsAgentProviderGet200Item[];
2728
+ status: 200;
2729
+ };
2730
+ export type internalLimitsAgentProviderGetResponse401 = {
2731
+ data: InternalLimitsAgentProviderGet401;
2732
+ status: 401;
2733
+ };
2734
+ export type internalLimitsAgentProviderGetResponse500 = {
2735
+ data: InternalLimitsAgentProviderGet500;
2736
+ status: 500;
2737
+ };
2738
+ export type internalLimitsAgentProviderGetResponse503 = {
2739
+ data: InternalLimitsAgentProviderGet503;
2740
+ status: 503;
2741
+ };
2742
+ export type internalLimitsAgentProviderGetResponseSuccess = (internalLimitsAgentProviderGetResponse200) & {
2743
+ headers: Headers;
2744
+ };
2745
+ export type internalLimitsAgentProviderGetResponseError = (internalLimitsAgentProviderGetResponse401 | internalLimitsAgentProviderGetResponse500 | internalLimitsAgentProviderGetResponse503) & {
2746
+ headers: Headers;
2747
+ };
2748
+ export type internalLimitsAgentProviderGetResponse = (internalLimitsAgentProviderGetResponseSuccess | internalLimitsAgentProviderGetResponseError);
2749
+ export declare const getInternalLimitsAgentProviderGetUrl: () => string;
2750
+ export declare const internalLimitsAgentProviderGet: (options?: RequestInit) => Promise<internalLimitsAgentProviderGetResponse>;
2751
+ /**
2752
+ * Creates a new agent provider limit or updates an existing one if the key already exists. Returns 201 Created for new resources, 200 OK for updates. The effective limit is automatically calculated based on the limit and safety margin percentage.
2753
+ * @summary Create or update agent provider limit
2754
+ */
2755
+ export type internalLimitsAgentProviderPostResponse200 = {
2756
+ data: InternalLimitsAgentProviderPost200;
2757
+ status: 200;
2758
+ };
2759
+ export type internalLimitsAgentProviderPostResponse201 = {
2760
+ data: InternalLimitsAgentProviderPost201;
2761
+ status: 201;
2762
+ };
2763
+ export type internalLimitsAgentProviderPostResponse400 = {
2764
+ data: InternalLimitsAgentProviderPost400;
2765
+ status: 400;
2766
+ };
2767
+ export type internalLimitsAgentProviderPostResponse401 = {
2768
+ data: InternalLimitsAgentProviderPost401;
2769
+ status: 401;
2770
+ };
2771
+ export type internalLimitsAgentProviderPostResponse503 = {
2772
+ data: InternalLimitsAgentProviderPost503;
2773
+ status: 503;
2774
+ };
2775
+ export type internalLimitsAgentProviderPostResponseSuccess = (internalLimitsAgentProviderPostResponse200 | internalLimitsAgentProviderPostResponse201) & {
2776
+ headers: Headers;
2777
+ };
2778
+ export type internalLimitsAgentProviderPostResponseError = (internalLimitsAgentProviderPostResponse400 | internalLimitsAgentProviderPostResponse401 | internalLimitsAgentProviderPostResponse503) & {
2779
+ headers: Headers;
2780
+ };
2781
+ export type internalLimitsAgentProviderPostResponse = (internalLimitsAgentProviderPostResponseSuccess | internalLimitsAgentProviderPostResponseError);
2782
+ export declare const getInternalLimitsAgentProviderPostUrl: () => string;
2783
+ export declare const internalLimitsAgentProviderPost: (internalLimitsAgentProviderPostBody: InternalLimitsAgentProviderPostBody, options?: RequestInit) => Promise<internalLimitsAgentProviderPostResponse>;
2784
+ /**
2785
+ * Returns TwiML for Twilio Pay. Called by Twilio when redirected from VAPI payment flow. Response Content-Type is text/xml.
2786
+ * @summary Generate payment TwiML
2787
+ */
2788
+ export type internalPaymentsTwimlGetResponse200 = {
2789
+ data: void;
2790
+ status: 200;
2791
+ };
2792
+ export type internalPaymentsTwimlGetResponse400 = {
2793
+ data: InternalPaymentsTwimlGet400;
2794
+ status: 400;
2795
+ };
2796
+ export type internalPaymentsTwimlGetResponseSuccess = (internalPaymentsTwimlGetResponse200) & {
2797
+ headers: Headers;
2798
+ };
2799
+ export type internalPaymentsTwimlGetResponseError = (internalPaymentsTwimlGetResponse400) & {
2800
+ headers: Headers;
2801
+ };
2802
+ export type internalPaymentsTwimlGetResponse = (internalPaymentsTwimlGetResponseSuccess | internalPaymentsTwimlGetResponseError);
2803
+ export declare const getInternalPaymentsTwimlGetUrl: (params: InternalPaymentsTwimlGetParams) => string;
2804
+ export declare const internalPaymentsTwimlGet: (params: InternalPaymentsTwimlGetParams, options?: RequestInit) => Promise<internalPaymentsTwimlGetResponse>;
2805
+ /**
2806
+ * Generates TwiML for IVR payment capture and updates the active Twilio call to begin the payment flow.
2807
+ * @summary Initiate payment transfer on active call
2808
+ */
2809
+ export type internalPaymentsTransferPostResponse200 = {
2810
+ data: InternalPaymentsTransferPost200;
2811
+ status: 200;
2812
+ };
2813
+ export type internalPaymentsTransferPostResponse400 = {
2814
+ data: InternalPaymentsTransferPost400;
2815
+ status: 400;
2816
+ };
2817
+ export type internalPaymentsTransferPostResponse500 = {
2818
+ data: InternalPaymentsTransferPost500;
2819
+ status: 500;
2820
+ };
2821
+ export type internalPaymentsTransferPostResponseSuccess = (internalPaymentsTransferPostResponse200) & {
2822
+ headers: Headers;
2823
+ };
2824
+ export type internalPaymentsTransferPostResponseError = (internalPaymentsTransferPostResponse400 | internalPaymentsTransferPostResponse500) & {
2825
+ headers: Headers;
2826
+ };
2827
+ export type internalPaymentsTransferPostResponse = (internalPaymentsTransferPostResponseSuccess | internalPaymentsTransferPostResponseError);
2828
+ export declare const getInternalPaymentsTransferPostUrl: () => string;
2829
+ export declare const internalPaymentsTransferPost: (internalPaymentsTransferPostBody: InternalPaymentsTransferPostBody, options?: RequestInit) => Promise<internalPaymentsTransferPostResponse>;
2830
+ /**
2831
+ * Receives callback from Twilio Pay after payment attempt. Returns TwiML response with voice prompts based on payment result.
2832
+ * @summary Process Twilio Pay callback
2833
+ */
2834
+ export type internalPaymentsCallbackPostResponse200 = {
2835
+ data: string;
2836
+ status: 200;
2837
+ };
2838
+ export type internalPaymentsCallbackPostResponseSuccess = (internalPaymentsCallbackPostResponse200) & {
2839
+ headers: Headers;
2840
+ };
2841
+ export type internalPaymentsCallbackPostResponse = (internalPaymentsCallbackPostResponseSuccess);
2842
+ export declare const getInternalPaymentsCallbackPostUrl: (params: InternalPaymentsCallbackPostParams) => string;
2843
+ export declare const internalPaymentsCallbackPost: (internalPaymentsCallbackPostBody: InternalPaymentsCallbackPostBody, params: InternalPaymentsCallbackPostParams, options?: RequestInit) => Promise<internalPaymentsCallbackPostResponse>;
2844
+ /**
2845
+ * Adds a new call job to the queue for processing. The call will be initiated asynchronously by the worker. Returns immediately with job ID for tracking.
2846
+ * @summary Queue a new outbound call job
2847
+ */
2848
+ export type internalQueuesCallJobPostResponse201 = {
2849
+ data: InternalQueuesCallJobPost201;
2850
+ status: 201;
2851
+ };
2852
+ export type internalQueuesCallJobPostResponse400 = {
2853
+ data: InternalQueuesCallJobPost400;
2854
+ status: 400;
2855
+ };
2856
+ export type internalQueuesCallJobPostResponse500 = {
2857
+ data: InternalQueuesCallJobPost500;
2858
+ status: 500;
2859
+ };
2860
+ export type internalQueuesCallJobPostResponseSuccess = (internalQueuesCallJobPostResponse201) & {
2861
+ headers: Headers;
2862
+ };
2863
+ export type internalQueuesCallJobPostResponseError = (internalQueuesCallJobPostResponse400 | internalQueuesCallJobPostResponse500) & {
2864
+ headers: Headers;
2865
+ };
2866
+ export type internalQueuesCallJobPostResponse = (internalQueuesCallJobPostResponseSuccess | internalQueuesCallJobPostResponseError);
2867
+ export declare const getInternalQueuesCallJobPostUrl: () => string;
2868
+ export declare const internalQueuesCallJobPost: (internalQueuesCallJobPostBody: InternalQueuesCallJobPostBody, options?: RequestInit) => Promise<internalQueuesCallJobPostResponse>;
2869
+ /**
2870
+ * Unified webhook for Jambonz calling and call status events. Handles both inbound and outbound calls (differentiated by direction field). When callStatus is 'trying', performs header normalization and returns dial verbs. For other statuses (in-progress, completed, failed), logs the event and returns 200 OK.
2871
+ * @summary Handle Jambonz call webhook
2872
+ */
2873
+ export type internalSipCallsJambonzPostResponse200 = {
2874
+ data: InternalSipCallsJambonzPost200;
2875
+ status: 200;
2876
+ };
2877
+ export type internalSipCallsJambonzPostResponse400 = {
2878
+ data: InternalSipCallsJambonzPost400;
2879
+ status: 400;
2880
+ };
2881
+ export type internalSipCallsJambonzPostResponse401 = {
2882
+ data: InternalSipCallsJambonzPost401;
2883
+ status: 401;
2884
+ };
2885
+ export type internalSipCallsJambonzPostResponse404 = {
2886
+ data: InternalSipCallsJambonzPost404;
2887
+ status: 404;
2888
+ };
2889
+ export type internalSipCallsJambonzPostResponse500 = {
2890
+ data: InternalSipCallsJambonzPost500;
2891
+ status: 500;
2892
+ };
2893
+ export type internalSipCallsJambonzPostResponseSuccess = (internalSipCallsJambonzPostResponse200) & {
2894
+ headers: Headers;
2895
+ };
2896
+ export type internalSipCallsJambonzPostResponseError = (internalSipCallsJambonzPostResponse400 | internalSipCallsJambonzPostResponse401 | internalSipCallsJambonzPostResponse404 | internalSipCallsJambonzPostResponse500) & {
2897
+ headers: Headers;
2898
+ };
2899
+ export type internalSipCallsJambonzPostResponse = (internalSipCallsJambonzPostResponseSuccess | internalSipCallsJambonzPostResponseError);
2900
+ export declare const getInternalSipCallsJambonzPostUrl: () => string;
2901
+ export declare const internalSipCallsJambonzPost: (internalSipCallsJambonzPostBody: InternalSipCallsJambonzPostBody, options?: RequestInit) => Promise<internalSipCallsJambonzPostResponse>;
2902
+ /**
2903
+ * Verifies active SIP routes exist in the database for call routing.
2904
+ * @summary SIP webhook health check
2905
+ */
2906
+ export type internalSipCallsJambonzHealthGetResponse200 = {
2907
+ data: InternalSipCallsJambonzHealthGet200;
2908
+ status: 200;
2909
+ };
2910
+ export type internalSipCallsJambonzHealthGetResponse503 = {
2911
+ data: InternalSipCallsJambonzHealthGet503;
2912
+ status: 503;
2913
+ };
2914
+ export type internalSipCallsJambonzHealthGetResponseSuccess = (internalSipCallsJambonzHealthGetResponse200) & {
2915
+ headers: Headers;
2916
+ };
2917
+ export type internalSipCallsJambonzHealthGetResponseError = (internalSipCallsJambonzHealthGetResponse503) & {
2918
+ headers: Headers;
2919
+ };
2920
+ export type internalSipCallsJambonzHealthGetResponse = (internalSipCallsJambonzHealthGetResponseSuccess | internalSipCallsJambonzHealthGetResponseError);
2921
+ export declare const getInternalSipCallsJambonzHealthGetUrl: () => string;
2922
+ export declare const internalSipCallsJambonzHealthGet: (options?: RequestInit) => Promise<internalSipCallsJambonzHealthGetResponse>;
2923
+ /**
2924
+ * Queues a background job to process a CSV file containing targets. The job will fetch the file from S3, parse each row, and upsert targets into the database. Returns a job ID.
2925
+ * @summary Queue a target upload job
2926
+ */
2927
+ export type internalTargetsUploadPostResponse202 = {
2928
+ data: InternalTargetsUploadPost202;
2929
+ status: 202;
2930
+ };
2931
+ export type internalTargetsUploadPostResponse400 = {
2932
+ data: InternalTargetsUploadPost400;
2933
+ status: 400;
2934
+ };
2935
+ export type internalTargetsUploadPostResponse404 = {
2936
+ data: InternalTargetsUploadPost404;
2937
+ status: 404;
2938
+ };
2939
+ export type internalTargetsUploadPostResponse500 = {
2940
+ data: InternalTargetsUploadPost500;
2941
+ status: 500;
2942
+ };
2943
+ export type internalTargetsUploadPostResponseSuccess = (internalTargetsUploadPostResponse202) & {
2944
+ headers: Headers;
2945
+ };
2946
+ export type internalTargetsUploadPostResponseError = (internalTargetsUploadPostResponse400 | internalTargetsUploadPostResponse404 | internalTargetsUploadPostResponse500) & {
2947
+ headers: Headers;
2948
+ };
2949
+ export type internalTargetsUploadPostResponse = (internalTargetsUploadPostResponseSuccess | internalTargetsUploadPostResponseError);
2950
+ export declare const getInternalTargetsUploadPostUrl: () => string;
2951
+ export declare const internalTargetsUploadPost: (internalTargetsUploadPostBody: InternalTargetsUploadPostBody, options?: RequestInit) => Promise<internalTargetsUploadPostResponse>;
2952
+ /**
2953
+ * Looks up a target by phone number or external ID (account number). Defaults to phone lookup for backward compatibility.
2954
+ * @summary Get target by identifier
2955
+ */
2956
+ export type internalTargetsIdentifierGetResponse200 = {
2957
+ data: InternalTargetsIdentifierGet200Item[];
2958
+ status: 200;
2959
+ };
2960
+ export type internalTargetsIdentifierGetResponse400 = {
2961
+ data: InternalTargetsIdentifierGet400;
2962
+ status: 400;
2963
+ };
2964
+ export type internalTargetsIdentifierGetResponse404 = {
2965
+ data: InternalTargetsIdentifierGet404;
2966
+ status: 404;
2967
+ };
2968
+ export type internalTargetsIdentifierGetResponse500 = {
2969
+ data: InternalTargetsIdentifierGet500;
2970
+ status: 500;
2971
+ };
2972
+ export type internalTargetsIdentifierGetResponseSuccess = (internalTargetsIdentifierGetResponse200) & {
2973
+ headers: Headers;
2974
+ };
2975
+ export type internalTargetsIdentifierGetResponseError = (internalTargetsIdentifierGetResponse400 | internalTargetsIdentifierGetResponse404 | internalTargetsIdentifierGetResponse500) & {
2976
+ headers: Headers;
2977
+ };
2978
+ export type internalTargetsIdentifierGetResponse = (internalTargetsIdentifierGetResponseSuccess | internalTargetsIdentifierGetResponseError);
2979
+ export declare const getInternalTargetsIdentifierGetUrl: (identifier: string, params: InternalTargetsIdentifierGetParams) => string;
2980
+ export declare const internalTargetsIdentifierGet: (identifier: string, params: InternalTargetsIdentifierGetParams, options?: RequestInit) => Promise<internalTargetsIdentifierGetResponse>;
2981
+ /**
2982
+ * Endpoint for receiving webhook events from Vapi. Handles status-update and end-of-call-report events. Other event types are acknowledged but not processed. Protected by HMAC-SHA256 signature verification.
2983
+ * @summary Receive Vapi webhook events
2984
+ */
2985
+ export type internalVapiWebhookPostResponse200 = {
2986
+ data: InternalVapiWebhookPost200;
2987
+ status: 200;
2988
+ };
2989
+ export type internalVapiWebhookPostResponse400 = {
2990
+ data: InternalVapiWebhookPost400;
2991
+ status: 400;
2992
+ };
2993
+ export type internalVapiWebhookPostResponse401 = {
2994
+ data: InternalVapiWebhookPost401;
2995
+ status: 401;
2996
+ };
2997
+ export type internalVapiWebhookPostResponse500 = {
2998
+ data: InternalVapiWebhookPost500;
2999
+ status: 500;
3000
+ };
3001
+ export type internalVapiWebhookPostResponseSuccess = (internalVapiWebhookPostResponse200) & {
3002
+ headers: Headers;
3003
+ };
3004
+ export type internalVapiWebhookPostResponseError = (internalVapiWebhookPostResponse400 | internalVapiWebhookPostResponse401 | internalVapiWebhookPostResponse500) & {
3005
+ headers: Headers;
3006
+ };
3007
+ export type internalVapiWebhookPostResponse = (internalVapiWebhookPostResponseSuccess | internalVapiWebhookPostResponseError);
3008
+ export declare const getInternalVapiWebhookPostUrl: () => string;
3009
+ export declare const internalVapiWebhookPost: (internalVapiWebhookPostBody: InternalVapiWebhookPostBody, options?: RequestInit) => Promise<internalVapiWebhookPostResponse>;
3010
+ /**
3011
+ * Endpoint for receiving webhook events from the Kanban service. Handles room lifecycle events, call status updates, and transcriptions.
3012
+ * @summary Receive Kanban webhook events
3013
+ */
3014
+ export type internalKanbanWebhookPostResponse200 = {
3015
+ data: InternalKanbanWebhookPost200;
3016
+ status: 200;
3017
+ };
3018
+ export type internalKanbanWebhookPostResponse400 = {
3019
+ data: InternalKanbanWebhookPost400;
3020
+ status: 400;
3021
+ };
3022
+ export type internalKanbanWebhookPostResponse500 = {
3023
+ data: InternalKanbanWebhookPost500;
3024
+ status: 500;
3025
+ };
3026
+ export type internalKanbanWebhookPostResponseSuccess = (internalKanbanWebhookPostResponse200) & {
3027
+ headers: Headers;
3028
+ };
3029
+ export type internalKanbanWebhookPostResponseError = (internalKanbanWebhookPostResponse400 | internalKanbanWebhookPostResponse500) & {
3030
+ headers: Headers;
3031
+ };
3032
+ export type internalKanbanWebhookPostResponse = (internalKanbanWebhookPostResponseSuccess | internalKanbanWebhookPostResponseError);
3033
+ export declare const getInternalKanbanWebhookPostUrl: () => string;
3034
+ export declare const internalKanbanWebhookPost: (internalKanbanWebhookPostBody: InternalKanbanWebhookPostBody, options?: RequestInit) => Promise<internalKanbanWebhookPostResponse>;
3035
+ /**
3036
+ * Returns the authenticated M2M token information including subject, scopes, and token metadata. Requires valid M2M Bearer token in Authorization header.
3037
+ * @summary Get authenticated M2M token information
3038
+ */
3039
+ export type internalAuthMeGetResponse200 = {
3040
+ data: InternalAuthMeGet200;
3041
+ status: 200;
3042
+ };
3043
+ export type internalAuthMeGetResponse401 = {
3044
+ data: InternalAuthMeGet401;
3045
+ status: 401;
3046
+ };
3047
+ export type internalAuthMeGetResponseSuccess = (internalAuthMeGetResponse200) & {
3048
+ headers: Headers;
3049
+ };
3050
+ export type internalAuthMeGetResponseError = (internalAuthMeGetResponse401) & {
3051
+ headers: Headers;
3052
+ };
3053
+ export type internalAuthMeGetResponse = (internalAuthMeGetResponseSuccess | internalAuthMeGetResponseError);
3054
+ export declare const getInternalAuthMeGetUrl: () => string;
3055
+ export declare const internalAuthMeGet: (options?: RequestInit) => Promise<internalAuthMeGetResponse>;