@gtmi/ramp-agent-client 0.0.1 → 0.0.2

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.
@@ -341,6 +341,10 @@ declare const createRampAgentClient: ({ baseUrl, getAuthToken, ...config }: Crea
341
341
  type ClientOptions = {
342
342
  baseUrl: `${string}://${string}` | (string & {});
343
343
  };
344
+ type ErrorResponse = {
345
+ error?: string;
346
+ details?: string;
347
+ };
344
348
  type GetCountryConfigsData = {
345
349
  body?: never;
346
350
  path?: never;
@@ -353,16 +357,25 @@ type GetCountryConfigsErrors = {
353
357
  */
354
358
  401: unknown;
355
359
  /**
356
- * Internal server error
360
+ * Failed to get country configs
357
361
  */
358
- 500: unknown;
362
+ 500: ErrorResponse;
359
363
  };
364
+ type GetCountryConfigsError = GetCountryConfigsErrors[keyof GetCountryConfigsErrors];
360
365
  type GetCountryConfigsResponses = {
361
366
  /**
362
367
  * Success
363
368
  */
364
- 200: unknown;
369
+ 200: {
370
+ /**
371
+ * Array of country configurations
372
+ */
373
+ configs: Array<{
374
+ [key: string]: unknown;
375
+ }>;
376
+ };
365
377
  };
378
+ type GetCountryConfigsResponse = GetCountryConfigsResponses[keyof GetCountryConfigsResponses];
366
379
  type GetRecentlyActiveNumbersData = {
367
380
  body?: never;
368
381
  path?: never;
@@ -375,16 +388,25 @@ type GetRecentlyActiveNumbersErrors = {
375
388
  */
376
389
  401: unknown;
377
390
  /**
378
- * Internal server error
391
+ * Failed to get active numbers
379
392
  */
380
- 500: unknown;
393
+ 500: ErrorResponse;
381
394
  };
395
+ type GetRecentlyActiveNumbersError = GetRecentlyActiveNumbersErrors[keyof GetRecentlyActiveNumbersErrors];
382
396
  type GetRecentlyActiveNumbersResponses = {
383
397
  /**
384
398
  * Success
385
399
  */
386
- 200: unknown;
400
+ 200: {
401
+ /**
402
+ * Array of phone number activity objects
403
+ */
404
+ numbers: Array<{
405
+ [key: string]: unknown;
406
+ }>;
407
+ };
387
408
  };
409
+ type GetRecentlyActiveNumbersResponse = GetRecentlyActiveNumbersResponses[keyof GetRecentlyActiveNumbersResponses];
388
410
  type GetStatsData = {
389
411
  body?: never;
390
412
  path?: never;
@@ -397,16 +419,27 @@ type GetStatsErrors = {
397
419
  */
398
420
  401: unknown;
399
421
  /**
400
- * Internal server error
422
+ * Failed to get stats
401
423
  */
402
- 500: unknown;
424
+ 500: ErrorResponse;
403
425
  };
426
+ type GetStatsError = GetStatsErrors[keyof GetStatsErrors];
404
427
  type GetStatsResponses = {
405
428
  /**
406
429
  * Success
407
430
  */
408
- 200: unknown;
431
+ 200: {
432
+ /**
433
+ * Number of currently active conversations
434
+ */
435
+ activeCalls: number;
436
+ /**
437
+ * ISO 8601 timestamp of server deployment
438
+ */
439
+ deployedAt: string;
440
+ };
409
441
  };
442
+ type GetStatsResponse = GetStatsResponses[keyof GetStatsResponses];
410
443
  type GetPhoneLogsByPhoneNumberData = {
411
444
  body?: never;
412
445
  path: {
@@ -416,21 +449,52 @@ type GetPhoneLogsByPhoneNumberData = {
416
449
  url: '/phone-logs/{phoneNumber}';
417
450
  };
418
451
  type GetPhoneLogsByPhoneNumberErrors = {
452
+ /**
453
+ * Phone number is required
454
+ */
455
+ 400: ErrorResponse;
419
456
  /**
420
457
  * Unauthorized — requires Bearer token
421
458
  */
422
459
  401: unknown;
423
460
  /**
424
- * Internal server error
461
+ * No call logs found for this phone number
425
462
  */
426
- 500: unknown;
463
+ 404: ErrorResponse;
464
+ /**
465
+ * Failed to retrieve call logs
466
+ */
467
+ 500: ErrorResponse;
427
468
  };
469
+ type GetPhoneLogsByPhoneNumberError = GetPhoneLogsByPhoneNumberErrors[keyof GetPhoneLogsByPhoneNumberErrors];
428
470
  type GetPhoneLogsByPhoneNumberResponses = {
429
471
  /**
430
472
  * Success
431
473
  */
432
- 200: unknown;
474
+ 200: {
475
+ /**
476
+ * Always true on success
477
+ */
478
+ success: boolean;
479
+ /**
480
+ * The phone number queried
481
+ */
482
+ phoneNumber: string;
483
+ /**
484
+ * Array of call records
485
+ */
486
+ calls: Array<{
487
+ [key: string]: unknown;
488
+ }>;
489
+ /**
490
+ * Array of conversation log entries
491
+ */
492
+ logs: Array<{
493
+ [key: string]: unknown;
494
+ }>;
495
+ };
433
496
  };
497
+ type GetPhoneLogsByPhoneNumberResponse = GetPhoneLogsByPhoneNumberResponses[keyof GetPhoneLogsByPhoneNumberResponses];
434
498
  type PostOutboundCallData = {
435
499
  body: {
436
500
  /**
@@ -447,21 +511,44 @@ type PostOutboundCallData = {
447
511
  url: '/outbound-call';
448
512
  };
449
513
  type PostOutboundCallErrors = {
514
+ /**
515
+ * Missing required parameters: to and from are required
516
+ */
517
+ 400: ErrorResponse;
450
518
  /**
451
519
  * Unauthorized — requires Bearer token
452
520
  */
453
521
  401: unknown;
454
522
  /**
455
- * Internal server error
523
+ * Failed to initiate outbound call
456
524
  */
457
- 500: unknown;
525
+ 500: ErrorResponse;
458
526
  };
527
+ type PostOutboundCallError = PostOutboundCallErrors[keyof PostOutboundCallErrors];
459
528
  type PostOutboundCallResponses = {
460
529
  /**
461
530
  * Success
462
531
  */
463
- 200: unknown;
532
+ 200: {
533
+ /**
534
+ * Always true on success
535
+ */
536
+ success: boolean;
537
+ /**
538
+ * Twilio call SID
539
+ */
540
+ callSid: string;
541
+ /**
542
+ * Initial call status
543
+ */
544
+ status: string;
545
+ /**
546
+ * Success message
547
+ */
548
+ message: string;
549
+ };
464
550
  };
551
+ type PostOutboundCallResponse = PostOutboundCallResponses[keyof PostOutboundCallResponses];
465
552
  type GetOutboundCallByCallSidData = {
466
553
  body?: never;
467
554
  path: {
@@ -471,21 +558,56 @@ type GetOutboundCallByCallSidData = {
471
558
  url: '/outbound-call/{callSid}';
472
559
  };
473
560
  type GetOutboundCallByCallSidErrors = {
561
+ /**
562
+ * Call SID is required
563
+ */
564
+ 400: ErrorResponse;
474
565
  /**
475
566
  * Unauthorized — requires Bearer token
476
567
  */
477
568
  401: unknown;
478
569
  /**
479
- * Internal server error
570
+ * Failed to fetch call status
480
571
  */
481
- 500: unknown;
572
+ 500: ErrorResponse;
482
573
  };
574
+ type GetOutboundCallByCallSidError = GetOutboundCallByCallSidErrors[keyof GetOutboundCallByCallSidErrors];
483
575
  type GetOutboundCallByCallSidResponses = {
484
576
  /**
485
577
  * Success
486
578
  */
487
- 200: unknown;
579
+ 200: {
580
+ /**
581
+ * The call SID
582
+ */
583
+ callSid: string;
584
+ /**
585
+ * Current call status
586
+ */
587
+ status: string;
588
+ /**
589
+ * Call duration in seconds (if completed)
590
+ */
591
+ duration: number;
592
+ /**
593
+ * Call start timestamp
594
+ */
595
+ startTime: string;
596
+ /**
597
+ * Call end timestamp (if completed)
598
+ */
599
+ endTime: string;
600
+ /**
601
+ * Caller phone number
602
+ */
603
+ from: string;
604
+ /**
605
+ * Called phone number
606
+ */
607
+ to: string;
608
+ };
488
609
  };
610
+ type GetOutboundCallByCallSidResponse = GetOutboundCallByCallSidResponses[keyof GetOutboundCallByCallSidResponses];
489
611
  type PostOutboundCommunicationTextData = {
490
612
  body: {
491
613
  [key: string]: unknown;
@@ -495,21 +617,44 @@ type PostOutboundCommunicationTextData = {
495
617
  url: '/outbound-communication-text';
496
618
  };
497
619
  type PostOutboundCommunicationTextErrors = {
620
+ /**
621
+ * Validation failure or failed to start conversation
622
+ */
623
+ 400: ErrorResponse;
498
624
  /**
499
625
  * Unauthorized — requires Bearer token
500
626
  */
501
627
  401: unknown;
502
628
  /**
503
- * Internal server error
629
+ * Error processing outbound communication
504
630
  */
505
- 500: unknown;
631
+ 500: ErrorResponse;
506
632
  };
633
+ type PostOutboundCommunicationTextError = PostOutboundCommunicationTextErrors[keyof PostOutboundCommunicationTextErrors];
507
634
  type PostOutboundCommunicationTextResponses = {
508
635
  /**
509
636
  * Success
510
637
  */
511
- 200: unknown;
638
+ 200: {
639
+ /**
640
+ * Resolved channel the message was sent on
641
+ */
642
+ channel: string;
643
+ /**
644
+ * Normalized sender address
645
+ */
646
+ from: string;
647
+ /**
648
+ * The message content (or template reference) that was sent
649
+ */
650
+ outboundMessage: string;
651
+ /**
652
+ * Normalized recipient address
653
+ */
654
+ to: string;
655
+ };
512
656
  };
657
+ type PostOutboundCommunicationTextResponse = PostOutboundCommunicationTextResponses[keyof PostOutboundCommunicationTextResponses];
513
658
  type PostExportLogsData = {
514
659
  body?: never;
515
660
  path?: never;
@@ -522,16 +667,41 @@ type PostExportLogsErrors = {
522
667
  */
523
668
  401: unknown;
524
669
  /**
525
- * Internal server error
670
+ * Failed to export logs to Snowflake
526
671
  */
527
- 500: unknown;
672
+ 500: ErrorResponse;
528
673
  };
674
+ type PostExportLogsError = PostExportLogsErrors[keyof PostExportLogsErrors];
529
675
  type PostExportLogsResponses = {
530
676
  /**
531
677
  * Success
532
678
  */
533
- 200: unknown;
679
+ 200: {
680
+ /**
681
+ * Whether the export ran without a connection failure
682
+ */
683
+ success: boolean;
684
+ /**
685
+ * Number of rows exported
686
+ */
687
+ exported: number;
688
+ /**
689
+ * Number of rows that failed to export
690
+ */
691
+ failed: number;
692
+ /**
693
+ * Number of rows skipped
694
+ */
695
+ skipped: number;
696
+ /**
697
+ * Per-call export detail entries
698
+ */
699
+ details: Array<{
700
+ [key: string]: unknown;
701
+ }>;
702
+ };
534
703
  };
704
+ type PostExportLogsResponse = PostExportLogsResponses[keyof PostExportLogsResponses];
535
705
  type DeleteLiveNumbersData = {
536
706
  body?: never;
537
707
  path?: never;
@@ -544,16 +714,35 @@ type DeleteLiveNumbersErrors = {
544
714
  */
545
715
  401: unknown;
546
716
  /**
547
- * Internal server error
717
+ * Failed to clear live conversations
548
718
  */
549
- 500: unknown;
719
+ 500: ErrorResponse;
550
720
  };
721
+ type DeleteLiveNumbersError = DeleteLiveNumbersErrors[keyof DeleteLiveNumbersErrors];
551
722
  type DeleteLiveNumbersResponses = {
552
723
  /**
553
724
  * Success
554
725
  */
555
- 200: unknown;
726
+ 200: {
727
+ /**
728
+ * Number of conversations cleared
729
+ */
730
+ clearedCount: number;
731
+ /**
732
+ * Phone numbers that were cleared
733
+ */
734
+ clearedNumbers: Array<string>;
735
+ /**
736
+ * Confirmation message with counts
737
+ */
738
+ message: string;
739
+ /**
740
+ * Call SIDs that were terminated
741
+ */
742
+ terminatedCalls: Array<string>;
743
+ };
556
744
  };
745
+ type DeleteLiveNumbersResponse = DeleteLiveNumbersResponses[keyof DeleteLiveNumbersResponses];
557
746
  type GetLiveNumbersData = {
558
747
  body?: never;
559
748
  path?: never;
@@ -566,16 +755,29 @@ type GetLiveNumbersErrors = {
566
755
  */
567
756
  401: unknown;
568
757
  /**
569
- * Internal server error
758
+ * Failed to get live numbers
570
759
  */
571
- 500: unknown;
760
+ 500: ErrorResponse;
572
761
  };
762
+ type GetLiveNumbersError = GetLiveNumbersErrors[keyof GetLiveNumbersErrors];
573
763
  type GetLiveNumbersResponses = {
574
764
  /**
575
765
  * Success
576
766
  */
577
- 200: unknown;
767
+ 200: {
768
+ /**
769
+ * Array of active conversation objects
770
+ */
771
+ liveNumbers: Array<{
772
+ [key: string]: unknown;
773
+ }>;
774
+ /**
775
+ * Total number of active conversations
776
+ */
777
+ count: number;
778
+ };
578
779
  };
780
+ type GetLiveNumbersResponse = GetLiveNumbersResponses[keyof GetLiveNumbersResponses];
579
781
  type DeleteLiveNumbersByPhoneNumberData = {
580
782
  body?: never;
581
783
  path: {
@@ -586,16 +788,39 @@ type DeleteLiveNumbersByPhoneNumberData = {
586
788
  };
587
789
  type DeleteLiveNumbersByPhoneNumberErrors = {
588
790
  /**
589
- * Internal server error
791
+ * Phone number is required
590
792
  */
591
- 500: unknown;
793
+ 400: ErrorResponse;
794
+ /**
795
+ * Phone number not found in active conversations
796
+ */
797
+ 404: ErrorResponse;
798
+ /**
799
+ * Failed to clear specific conversation
800
+ */
801
+ 500: ErrorResponse;
592
802
  };
803
+ type DeleteLiveNumbersByPhoneNumberError = DeleteLiveNumbersByPhoneNumberErrors[keyof DeleteLiveNumbersByPhoneNumberErrors];
593
804
  type DeleteLiveNumbersByPhoneNumberResponses = {
594
805
  /**
595
806
  * Success
596
807
  */
597
- 200: unknown;
808
+ 200: {
809
+ /**
810
+ * Confirmation message
811
+ */
812
+ message: string;
813
+ /**
814
+ * The cleared phone number
815
+ */
816
+ phoneNumber: string;
817
+ /**
818
+ * Call SID that was terminated, or null
819
+ */
820
+ terminatedCall: string;
821
+ };
598
822
  };
823
+ type DeleteLiveNumbersByPhoneNumberResponse = DeleteLiveNumbersByPhoneNumberResponses[keyof DeleteLiveNumbersByPhoneNumberResponses];
599
824
  type DeleteKillConversationByPhoneNumberData = {
600
825
  body?: never;
601
826
  path: {
@@ -605,21 +830,50 @@ type DeleteKillConversationByPhoneNumberData = {
605
830
  url: '/kill-conversation/{phoneNumber}';
606
831
  };
607
832
  type DeleteKillConversationByPhoneNumberErrors = {
833
+ /**
834
+ * Phone number is required
835
+ */
836
+ 400: ErrorResponse;
608
837
  /**
609
838
  * Unauthorized — requires Bearer token
610
839
  */
611
840
  401: unknown;
612
841
  /**
613
- * Internal server error
842
+ * Failed to kill conversations
614
843
  */
615
- 500: unknown;
844
+ 500: ErrorResponse;
616
845
  };
846
+ type DeleteKillConversationByPhoneNumberError = DeleteKillConversationByPhoneNumberErrors[keyof DeleteKillConversationByPhoneNumberErrors];
617
847
  type DeleteKillConversationByPhoneNumberResponses = {
618
848
  /**
619
849
  * Success
620
850
  */
621
- 200: unknown;
851
+ 200: {
852
+ /**
853
+ * Confirmation message including the phone number
854
+ */
855
+ message: string;
856
+ /**
857
+ * SIDs of conversations deleted
858
+ */
859
+ conversationsDeleted: Array<string>;
860
+ /**
861
+ * Conversation SIDs that failed to delete, with error
862
+ */
863
+ conversationsFailed: Array<{
864
+ [key: string]: unknown;
865
+ }>;
866
+ /**
867
+ * SID of the call terminated, or null
868
+ */
869
+ callTerminated: string;
870
+ /**
871
+ * Whether in-memory active details were cleared
872
+ */
873
+ activeConversationCleared: boolean;
874
+ };
622
875
  };
876
+ type DeleteKillConversationByPhoneNumberResponse = DeleteKillConversationByPhoneNumberResponses[keyof DeleteKillConversationByPhoneNumberResponses];
623
877
  type PostSendEmailData = {
624
878
  body: {
625
879
  /**
@@ -640,21 +894,32 @@ type PostSendEmailData = {
640
894
  url: '/send-email';
641
895
  };
642
896
  type PostSendEmailErrors = {
897
+ /**
898
+ * Missing required fields: to, subject, text
899
+ */
900
+ 400: ErrorResponse;
643
901
  /**
644
902
  * Unauthorized — requires Bearer token
645
903
  */
646
904
  401: unknown;
647
905
  /**
648
- * Internal server error
906
+ * Email service not configured, or failed to send email
649
907
  */
650
- 500: unknown;
908
+ 500: ErrorResponse;
651
909
  };
910
+ type PostSendEmailError = PostSendEmailErrors[keyof PostSendEmailErrors];
652
911
  type PostSendEmailResponses = {
653
912
  /**
654
913
  * Success
655
914
  */
656
- 200: unknown;
915
+ 200: {
916
+ /**
917
+ * Always true on success
918
+ */
919
+ success: boolean;
920
+ };
657
921
  };
922
+ type PostSendEmailResponse = PostSendEmailResponses[keyof PostSendEmailResponses];
658
923
  type PostAddMessageData = {
659
924
  body: {
660
925
  /**
@@ -671,21 +936,40 @@ type PostAddMessageData = {
671
936
  url: '/add-message';
672
937
  };
673
938
  type PostAddMessageErrors = {
939
+ /**
940
+ * Missing required parameter "to" or "content"
941
+ */
942
+ 400: ErrorResponse;
674
943
  /**
675
944
  * Unauthorized — requires Bearer token
676
945
  */
677
946
  401: unknown;
947
+ /**
948
+ * No active conversation found for the provided number
949
+ */
950
+ 404: ErrorResponse;
678
951
  /**
679
952
  * Internal server error
680
953
  */
681
954
  500: unknown;
682
955
  };
956
+ type PostAddMessageError = PostAddMessageErrors[keyof PostAddMessageErrors];
683
957
  type PostAddMessageResponses = {
684
958
  /**
685
959
  * Success
686
960
  */
687
- 200: unknown;
961
+ 200: {
962
+ /**
963
+ * Confirmation message
964
+ */
965
+ message: string;
966
+ /**
967
+ * Always true on success
968
+ */
969
+ success: boolean;
970
+ };
688
971
  };
972
+ type PostAddMessageResponse = PostAddMessageResponses[keyof PostAddMessageResponses];
689
973
  type PostActiveConversationsAgentClaimData = {
690
974
  body: {
691
975
  [key: string]: unknown;
@@ -695,21 +979,36 @@ type PostActiveConversationsAgentClaimData = {
695
979
  url: '/active-conversations/agent/claim';
696
980
  };
697
981
  type PostActiveConversationsAgentClaimErrors = {
982
+ /**
983
+ * Missing required parameter "conversationId"
984
+ */
985
+ 400: ErrorResponse;
698
986
  /**
699
987
  * Unauthorized — requires Bearer token
700
988
  */
701
989
  401: unknown;
990
+ /**
991
+ * Conversation already claimed or not found
992
+ */
993
+ 409: ErrorResponse;
702
994
  /**
703
995
  * Internal server error
704
996
  */
705
997
  500: unknown;
706
998
  };
999
+ type PostActiveConversationsAgentClaimError = PostActiveConversationsAgentClaimErrors[keyof PostActiveConversationsAgentClaimErrors];
707
1000
  type PostActiveConversationsAgentClaimResponses = {
708
1001
  /**
709
1002
  * Success
710
1003
  */
711
- 200: unknown;
1004
+ 200: {
1005
+ /**
1006
+ * Always true once the conversation is claimed
1007
+ */
1008
+ success: boolean;
1009
+ };
712
1010
  };
1011
+ type PostActiveConversationsAgentClaimResponse = PostActiveConversationsAgentClaimResponses[keyof PostActiveConversationsAgentClaimResponses];
713
1012
  type GetActiveConversationsAgentByAgentNumberData = {
714
1013
  body?: never;
715
1014
  path: {
@@ -723,17 +1022,30 @@ type GetActiveConversationsAgentByAgentNumberErrors = {
723
1022
  * Unauthorized — requires Bearer token
724
1023
  */
725
1024
  401: unknown;
1025
+ /**
1026
+ * No unassigned campaign conversation found for agent
1027
+ */
1028
+ 404: ErrorResponse;
726
1029
  /**
727
1030
  * Internal server error
728
1031
  */
729
1032
  500: unknown;
730
1033
  };
1034
+ type GetActiveConversationsAgentByAgentNumberError = GetActiveConversationsAgentByAgentNumberErrors[keyof GetActiveConversationsAgentByAgentNumberErrors];
731
1035
  type GetActiveConversationsAgentByAgentNumberResponses = {
732
1036
  /**
733
1037
  * Success
734
1038
  */
735
- 200: unknown;
1039
+ 200: {
1040
+ /**
1041
+ * Conversation details for the agent to claim
1042
+ */
1043
+ activeConversation: {
1044
+ [key: string]: unknown;
1045
+ };
1046
+ };
736
1047
  };
1048
+ type GetActiveConversationsAgentByAgentNumberResponse = GetActiveConversationsAgentByAgentNumberResponses[keyof GetActiveConversationsAgentByAgentNumberResponses];
737
1049
  type GetActiveConversationsByCustomerNumberData = {
738
1050
  body?: never;
739
1051
  path: {
@@ -747,17 +1059,30 @@ type GetActiveConversationsByCustomerNumberErrors = {
747
1059
  * Unauthorized — requires Bearer token
748
1060
  */
749
1061
  401: unknown;
1062
+ /**
1063
+ * Conversation not found
1064
+ */
1065
+ 404: ErrorResponse;
750
1066
  /**
751
1067
  * Internal server error
752
1068
  */
753
1069
  500: unknown;
754
1070
  };
1071
+ type GetActiveConversationsByCustomerNumberError = GetActiveConversationsByCustomerNumberErrors[keyof GetActiveConversationsByCustomerNumberErrors];
755
1072
  type GetActiveConversationsByCustomerNumberResponses = {
756
1073
  /**
757
1074
  * Success
758
1075
  */
759
- 200: unknown;
1076
+ 200: {
1077
+ /**
1078
+ * Conversation details including realtime CINTEL data
1079
+ */
1080
+ activeConversation: {
1081
+ [key: string]: unknown;
1082
+ };
1083
+ };
760
1084
  };
1085
+ type GetActiveConversationsByCustomerNumberResponse = GetActiveConversationsByCustomerNumberResponses[keyof GetActiveConversationsByCustomerNumberResponses];
761
1086
  type GetHealthData = {
762
1087
  body?: never;
763
1088
  path?: never;
@@ -774,8 +1099,14 @@ type GetHealthResponses = {
774
1099
  /**
775
1100
  * Success
776
1101
  */
777
- 200: unknown;
1102
+ 200: {
1103
+ /**
1104
+ * "ok"
1105
+ */
1106
+ status: string;
1107
+ };
778
1108
  };
1109
+ type GetHealthResponse = GetHealthResponses[keyof GetHealthResponses];
779
1110
  type PostCallData = {
780
1111
  body: {
781
1112
  [key: string]: unknown;
@@ -792,10 +1123,11 @@ type PostCallErrors = {
792
1123
  };
793
1124
  type PostCallResponses = {
794
1125
  /**
795
- * Success
1126
+ * TwiML XML response connecting the call to ConversationRelay (or a Say if setup failed)
796
1127
  */
797
- 200: unknown;
1128
+ 200: string;
798
1129
  };
1130
+ type PostCallResponse = PostCallResponses[keyof PostCallResponses];
799
1131
  type PostLiveAgentData = {
800
1132
  body: {
801
1133
  /**
@@ -823,10 +1155,11 @@ type PostLiveAgentErrors = {
823
1155
  };
824
1156
  type PostLiveAgentResponses = {
825
1157
  /**
826
- * Success
1158
+ * TwiML XML response (Dial, Enqueue, or external Flex handoff) — TwiML
827
1159
  */
828
- 200: unknown;
1160
+ 200: string;
829
1161
  };
1162
+ type PostLiveAgentResponse = PostLiveAgentResponses[keyof PostLiveAgentResponses];
830
1163
  type PostRedirectToLiveAgentData = {
831
1164
  body: {
832
1165
  [key: string]: unknown;
@@ -837,16 +1170,35 @@ type PostRedirectToLiveAgentData = {
837
1170
  };
838
1171
  type PostRedirectToLiveAgentErrors = {
839
1172
  /**
840
- * Internal server error
1173
+ * phoneNumber or callSid is required
841
1174
  */
842
- 500: unknown;
1175
+ 400: ErrorResponse;
1176
+ /**
1177
+ * active_call_not_found
1178
+ */
1179
+ 404: ErrorResponse;
1180
+ /**
1181
+ * missing_twilio_credentials or redirect_failed
1182
+ */
1183
+ 500: ErrorResponse;
843
1184
  };
1185
+ type PostRedirectToLiveAgentError = PostRedirectToLiveAgentErrors[keyof PostRedirectToLiveAgentErrors];
844
1186
  type PostRedirectToLiveAgentResponses = {
845
1187
  /**
846
1188
  * Success
847
1189
  */
848
- 200: unknown;
1190
+ 200: {
1191
+ /**
1192
+ * The call SID that was redirected
1193
+ */
1194
+ callSid: string;
1195
+ /**
1196
+ * Always true on success
1197
+ */
1198
+ success: boolean;
1199
+ };
849
1200
  };
1201
+ type PostRedirectToLiveAgentResponse = PostRedirectToLiveAgentResponses[keyof PostRedirectToLiveAgentResponses];
850
1202
  type GetStressTestData = {
851
1203
  body?: never;
852
1204
  path?: never;
@@ -868,23 +1220,28 @@ type GetStressTestErrors = {
868
1220
  };
869
1221
  type GetStressTestResponses = {
870
1222
  /**
871
- * Success
1223
+ * TwiML XML response with a Say/Gather/Redirect (or Hangup if the call closes) — TwiML
872
1224
  */
873
- 200: unknown;
1225
+ 200: string;
874
1226
  };
1227
+ type GetStressTestResponse = GetStressTestResponses[keyof GetStressTestResponses];
875
1228
  type PostStressTestSmsData = {
876
1229
  body: {
877
- [key: string]: unknown;
1230
+ /**
1231
+ * Sender phone number
1232
+ */
1233
+ From: string;
1234
+ /**
1235
+ * Recipient phone number (Twilio number)
1236
+ */
1237
+ To: string;
1238
+ /**
1239
+ * SMS message content
1240
+ */
1241
+ Body: string;
878
1242
  };
879
1243
  path?: never;
880
- query?: {
881
- From?: string;
882
- To?: string;
883
- CallSid?: string;
884
- SpeechResult?: string;
885
- Confidence?: string;
886
- CallStatus?: string;
887
- };
1244
+ query?: never;
888
1245
  url: '/stress-test-sms';
889
1246
  };
890
1247
  type PostStressTestSmsErrors = {
@@ -895,10 +1252,11 @@ type PostStressTestSmsErrors = {
895
1252
  };
896
1253
  type PostStressTestSmsResponses = {
897
1254
  /**
898
- * Success
1255
+ * TwiML XML response that reads the SMS body aloud, then gathers speech — TwiML
899
1256
  */
900
- 200: unknown;
1257
+ 200: string;
901
1258
  };
1259
+ type PostStressTestSmsResponse = PostStressTestSmsResponses[keyof PostStressTestSmsResponses];
902
1260
  type PostWebchatSendData = {
903
1261
  body: {
904
1262
  [key: string]: unknown;
@@ -909,16 +1267,43 @@ type PostWebchatSendData = {
909
1267
  };
910
1268
  type PostWebchatSendErrors = {
911
1269
  /**
912
- * Internal server error
1270
+ * "identity is required" or "customerNumber is required"
913
1271
  */
914
- 500: unknown;
1272
+ 400: ErrorResponse;
1273
+ /**
1274
+ * Failed to retrieve template data, initialize conversation, or process webchat
1275
+ */
1276
+ 500: ErrorResponse;
915
1277
  };
1278
+ type PostWebchatSendError = PostWebchatSendErrors[keyof PostWebchatSendErrors];
916
1279
  type PostWebchatSendResponses = {
917
1280
  /**
918
1281
  * Success
919
1282
  */
920
- 200: unknown;
1283
+ 200: {
1284
+ /**
1285
+ * Resolved agent number for the session
1286
+ */
1287
+ agentNumber: string;
1288
+ /**
1289
+ * The conversation's ID
1290
+ */
1291
+ conversationId: string;
1292
+ /**
1293
+ * The webchat participant identity
1294
+ */
1295
+ identity: string;
1296
+ /**
1297
+ * The assistant's reply text
1298
+ */
1299
+ response: string;
1300
+ /**
1301
+ * Always "ok"
1302
+ */
1303
+ status: string;
1304
+ };
921
1305
  };
1306
+ type PostWebchatSendResponse = PostWebchatSendResponses[keyof PostWebchatSendResponses];
922
1307
  type PostCintelOperatorsData = {
923
1308
  body: {
924
1309
  [key: string]: unknown;
@@ -928,17 +1313,37 @@ type PostCintelOperatorsData = {
928
1313
  url: '/cintel-operators';
929
1314
  };
930
1315
  type PostCintelOperatorsErrors = {
1316
+ /**
1317
+ * Missing required fields or invalid operator results
1318
+ */
1319
+ 400: ErrorResponse;
931
1320
  /**
932
1321
  * Internal server error
933
1322
  */
934
- 500: unknown;
1323
+ 500: {
1324
+ /**
1325
+ * Failed to process CINTEL operator response
1326
+ */
1327
+ error: string;
1328
+ /**
1329
+ * Underlying error message
1330
+ */
1331
+ message: string;
1332
+ };
935
1333
  };
1334
+ type PostCintelOperatorsError = PostCintelOperatorsErrors[keyof PostCintelOperatorsErrors];
936
1335
  type PostCintelOperatorsResponses = {
937
1336
  /**
938
1337
  * Success
939
1338
  */
940
- 200: unknown;
1339
+ 200: {
1340
+ /**
1341
+ * Always true on success
1342
+ */
1343
+ success: boolean;
1344
+ };
941
1345
  };
1346
+ type PostCintelOperatorsResponse = PostCintelOperatorsResponses[keyof PostCintelOperatorsResponses];
942
1347
  type PostFlexTranscriptionData = {
943
1348
  body: {
944
1349
  [key: string]: unknown;
@@ -955,10 +1360,11 @@ type PostFlexTranscriptionErrors = {
955
1360
  };
956
1361
  type PostFlexTranscriptionResponses = {
957
1362
  /**
958
- * Success
1363
+ * "OK" (Express default sendStatus body, no JSON payload)
959
1364
  */
960
- 200: unknown;
1365
+ 200: string;
961
1366
  };
1367
+ type PostFlexTranscriptionResponse = PostFlexTranscriptionResponses[keyof PostFlexTranscriptionResponses];
962
1368
  type PostTaskrouterWebhookData = {
963
1369
  body: {
964
1370
  [key: string]: unknown;
@@ -975,10 +1381,11 @@ type PostTaskrouterWebhookErrors = {
975
1381
  };
976
1382
  type PostTaskrouterWebhookResponses = {
977
1383
  /**
978
- * Success
1384
+ * "OK" (Express default sendStatus body, no JSON payload)
979
1385
  */
980
- 200: unknown;
1386
+ 200: string;
981
1387
  };
1388
+ type PostTaskrouterWebhookResponse = PostTaskrouterWebhookResponses[keyof PostTaskrouterWebhookResponses];
982
1389
  type PostResolvePhoneData = {
983
1390
  body: {
984
1391
  [key: string]: unknown;
@@ -1015,10 +1422,11 @@ type PostCommunicationTextErrors = {
1015
1422
  };
1016
1423
  type PostCommunicationTextResponses = {
1017
1424
  /**
1018
- * Success
1425
+ * TwiML XML response, optionally containing the LLM's reply message
1019
1426
  */
1020
- 200: unknown;
1427
+ 200: string;
1021
1428
  };
1429
+ type PostCommunicationTextResponse = PostCommunicationTextResponses[keyof PostCommunicationTextResponses];
1022
1430
  type GetDocsOpenapiJsonData = {
1023
1431
  body?: never;
1024
1432
  path?: never;
@@ -1030,17 +1438,25 @@ type GetDocsOpenapiJsonErrors = {
1030
1438
  * Unauthorized — requires Bearer token
1031
1439
  */
1032
1440
  401: unknown;
1441
+ /**
1442
+ * OpenAPI spec not found
1443
+ */
1444
+ 404: ErrorResponse;
1033
1445
  /**
1034
1446
  * Internal server error
1035
1447
  */
1036
1448
  500: unknown;
1037
1449
  };
1450
+ type GetDocsOpenapiJsonError = GetDocsOpenapiJsonErrors[keyof GetDocsOpenapiJsonErrors];
1038
1451
  type GetDocsOpenapiJsonResponses = {
1039
1452
  /**
1040
- * Success
1453
+ * The OpenAPI 3.1 spec document
1041
1454
  */
1042
- 200: unknown;
1455
+ 200: {
1456
+ [key: string]: unknown;
1457
+ };
1043
1458
  };
1459
+ type GetDocsOpenapiJsonResponse = GetDocsOpenapiJsonResponses[keyof GetDocsOpenapiJsonResponses];
1044
1460
 
1045
1461
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
1046
1462
  /**
@@ -1100,6 +1516,8 @@ declare const getOutboundCallByCallSid: <ThrowOnError extends boolean = false>(o
1100
1516
  declare const postOutboundCommunicationText: <ThrowOnError extends boolean = false>(options: Options<PostOutboundCommunicationTextData, ThrowOnError>) => RequestResult<PostOutboundCommunicationTextResponses, PostOutboundCommunicationTextErrors, ThrowOnError>;
1101
1517
  /**
1102
1518
  * POST /export-logs
1519
+ *
1520
+ * Manually triggers export of pending phone logs to Snowflake
1103
1521
  */
1104
1522
  declare const postExportLogs: <ThrowOnError extends boolean = false>(options?: Options<PostExportLogsData, ThrowOnError>) => RequestResult<PostExportLogsResponses, PostExportLogsErrors, ThrowOnError>;
1105
1523
  /**
@@ -1143,10 +1561,14 @@ declare const postSendEmail: <ThrowOnError extends boolean = false>(options: Opt
1143
1561
  declare const postAddMessage: <ThrowOnError extends boolean = false>(options: Options<PostAddMessageData, ThrowOnError>) => RequestResult<PostAddMessageResponses, PostAddMessageErrors, ThrowOnError>;
1144
1562
  /**
1145
1563
  * POST /active-conversations/agent/claim
1564
+ *
1565
+ * Claims an unassigned campaign conversation so the requesting frontend owns it
1146
1566
  */
1147
1567
  declare const postActiveConversationsAgentClaim: <ThrowOnError extends boolean = false>(options: Options<PostActiveConversationsAgentClaimData, ThrowOnError>) => RequestResult<PostActiveConversationsAgentClaimResponses, PostActiveConversationsAgentClaimErrors, ThrowOnError>;
1148
1568
  /**
1149
1569
  * GET /active-conversations/agent/:agentNumber
1570
+ *
1571
+ * Finds an unassigned campaign conversation for the given agent number (campaign polling)
1150
1572
  */
1151
1573
  declare const getActiveConversationsAgentByAgentNumber: <ThrowOnError extends boolean = false>(options: Options<GetActiveConversationsAgentByAgentNumberData, ThrowOnError>) => RequestResult<GetActiveConversationsAgentByAgentNumberResponses, GetActiveConversationsAgentByAgentNumberErrors, ThrowOnError>;
1152
1574
  /**
@@ -1188,7 +1610,7 @@ declare const getStressTest: <ThrowOnError extends boolean = false>(options?: Op
1188
1610
  /**
1189
1611
  * POST /stress-test-sms
1190
1612
  *
1191
- * Twilio webhook endpoint for stress testing voice calls
1613
+ * Twilio webhook endpoint for SMS messages during stress test calls
1192
1614
  */
1193
1615
  declare const postStressTestSms: <ThrowOnError extends boolean = false>(options: Options<PostStressTestSmsData, ThrowOnError>) => RequestResult<PostStressTestSmsResponses, PostStressTestSmsErrors, ThrowOnError>;
1194
1616
  /**
@@ -1205,10 +1627,14 @@ declare const postWebchatSend: <ThrowOnError extends boolean = false>(options: O
1205
1627
  declare const postCintelOperators: <ThrowOnError extends boolean = false>(options: Options<PostCintelOperatorsData, ThrowOnError>) => RequestResult<PostCintelOperatorsResponses, PostCintelOperatorsErrors, ThrowOnError>;
1206
1628
  /**
1207
1629
  * POST /flex-transcription
1630
+ *
1631
+ * Twilio real-time transcription webhook for Flex calls
1208
1632
  */
1209
1633
  declare const postFlexTranscription: <ThrowOnError extends boolean = false>(options: Options<PostFlexTranscriptionData, ThrowOnError>) => RequestResult<PostFlexTranscriptionResponses, PostFlexTranscriptionErrors, ThrowOnError>;
1210
1634
  /**
1211
1635
  * POST /taskrouter-webhook
1636
+ *
1637
+ * Twilio TaskRouter event webhook
1212
1638
  */
1213
1639
  declare const postTaskrouterWebhook: <ThrowOnError extends boolean = false>(options: Options<PostTaskrouterWebhookData, ThrowOnError>) => RequestResult<PostTaskrouterWebhookResponses, PostTaskrouterWebhookErrors, ThrowOnError>;
1214
1640
  /**
@@ -1231,6 +1657,49 @@ declare const postCommunicationText: <ThrowOnError extends boolean = false>(opti
1231
1657
  */
1232
1658
  declare const getDocsOpenapiJson: <ThrowOnError extends boolean = false>(options?: Options<GetDocsOpenapiJsonData, ThrowOnError>) => RequestResult<GetDocsOpenapiJsonResponses, GetDocsOpenapiJsonErrors, ThrowOnError>;
1233
1659
 
1660
+ declare const zErrorResponse: z.ZodObject<{
1661
+ error: z.ZodOptional<z.ZodString>;
1662
+ details: z.ZodOptional<z.ZodString>;
1663
+ }, "strip", z.ZodTypeAny, {
1664
+ error?: string | undefined;
1665
+ details?: string | undefined;
1666
+ }, {
1667
+ error?: string | undefined;
1668
+ details?: string | undefined;
1669
+ }>;
1670
+ /**
1671
+ * Success
1672
+ */
1673
+ declare const zGetCountryConfigsResponse: z.ZodObject<{
1674
+ configs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
1675
+ }, "strip", z.ZodTypeAny, {
1676
+ configs: Record<string, unknown>[];
1677
+ }, {
1678
+ configs: Record<string, unknown>[];
1679
+ }>;
1680
+ /**
1681
+ * Success
1682
+ */
1683
+ declare const zGetRecentlyActiveNumbersResponse: z.ZodObject<{
1684
+ numbers: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
1685
+ }, "strip", z.ZodTypeAny, {
1686
+ numbers: Record<string, unknown>[];
1687
+ }, {
1688
+ numbers: Record<string, unknown>[];
1689
+ }>;
1690
+ /**
1691
+ * Success
1692
+ */
1693
+ declare const zGetStatsResponse: z.ZodObject<{
1694
+ activeCalls: z.ZodNumber;
1695
+ deployedAt: z.ZodString;
1696
+ }, "strip", z.ZodTypeAny, {
1697
+ activeCalls: number;
1698
+ deployedAt: string;
1699
+ }, {
1700
+ activeCalls: number;
1701
+ deployedAt: string;
1702
+ }>;
1234
1703
  declare const zGetPhoneLogsByPhoneNumberPath: z.ZodObject<{
1235
1704
  phoneNumber: z.ZodString;
1236
1705
  }, "strip", z.ZodTypeAny, {
@@ -1238,6 +1707,25 @@ declare const zGetPhoneLogsByPhoneNumberPath: z.ZodObject<{
1238
1707
  }, {
1239
1708
  phoneNumber: string;
1240
1709
  }>;
1710
+ /**
1711
+ * Success
1712
+ */
1713
+ declare const zGetPhoneLogsByPhoneNumberResponse: z.ZodObject<{
1714
+ success: z.ZodBoolean;
1715
+ phoneNumber: z.ZodString;
1716
+ calls: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
1717
+ logs: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
1718
+ }, "strip", z.ZodTypeAny, {
1719
+ phoneNumber: string;
1720
+ success: boolean;
1721
+ calls: Record<string, unknown>[];
1722
+ logs: Record<string, unknown>[];
1723
+ }, {
1724
+ phoneNumber: string;
1725
+ success: boolean;
1726
+ calls: Record<string, unknown>[];
1727
+ logs: Record<string, unknown>[];
1728
+ }>;
1241
1729
  declare const zPostOutboundCallBody: z.ZodObject<{
1242
1730
  to: z.ZodString;
1243
1731
  from: z.ZodString;
@@ -1248,6 +1736,25 @@ declare const zPostOutboundCallBody: z.ZodObject<{
1248
1736
  to: string;
1249
1737
  from: string;
1250
1738
  }>;
1739
+ /**
1740
+ * Success
1741
+ */
1742
+ declare const zPostOutboundCallResponse: z.ZodObject<{
1743
+ success: z.ZodBoolean;
1744
+ callSid: z.ZodString;
1745
+ status: z.ZodString;
1746
+ message: z.ZodString;
1747
+ }, "strip", z.ZodTypeAny, {
1748
+ message: string;
1749
+ status: string;
1750
+ success: boolean;
1751
+ callSid: string;
1752
+ }, {
1753
+ message: string;
1754
+ status: string;
1755
+ success: boolean;
1756
+ callSid: string;
1757
+ }>;
1251
1758
  declare const zGetOutboundCallByCallSidPath: z.ZodObject<{
1252
1759
  callSid: z.ZodString;
1253
1760
  }, "strip", z.ZodTypeAny, {
@@ -1255,7 +1762,108 @@ declare const zGetOutboundCallByCallSidPath: z.ZodObject<{
1255
1762
  }, {
1256
1763
  callSid: string;
1257
1764
  }>;
1765
+ /**
1766
+ * Success
1767
+ */
1768
+ declare const zGetOutboundCallByCallSidResponse: z.ZodObject<{
1769
+ callSid: z.ZodString;
1770
+ status: z.ZodString;
1771
+ duration: z.ZodNumber;
1772
+ startTime: z.ZodString;
1773
+ endTime: z.ZodString;
1774
+ from: z.ZodString;
1775
+ to: z.ZodString;
1776
+ }, "strip", z.ZodTypeAny, {
1777
+ status: string;
1778
+ to: string;
1779
+ from: string;
1780
+ callSid: string;
1781
+ duration: number;
1782
+ startTime: string;
1783
+ endTime: string;
1784
+ }, {
1785
+ status: string;
1786
+ to: string;
1787
+ from: string;
1788
+ callSid: string;
1789
+ duration: number;
1790
+ startTime: string;
1791
+ endTime: string;
1792
+ }>;
1258
1793
  declare const zPostOutboundCommunicationTextBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1794
+ /**
1795
+ * Success
1796
+ */
1797
+ declare const zPostOutboundCommunicationTextResponse: z.ZodObject<{
1798
+ channel: z.ZodString;
1799
+ from: z.ZodString;
1800
+ outboundMessage: z.ZodString;
1801
+ to: z.ZodString;
1802
+ }, "strip", z.ZodTypeAny, {
1803
+ to: string;
1804
+ from: string;
1805
+ channel: string;
1806
+ outboundMessage: string;
1807
+ }, {
1808
+ to: string;
1809
+ from: string;
1810
+ channel: string;
1811
+ outboundMessage: string;
1812
+ }>;
1813
+ /**
1814
+ * Success
1815
+ */
1816
+ declare const zPostExportLogsResponse: z.ZodObject<{
1817
+ success: z.ZodBoolean;
1818
+ exported: z.ZodNumber;
1819
+ failed: z.ZodNumber;
1820
+ skipped: z.ZodNumber;
1821
+ details: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
1822
+ }, "strip", z.ZodTypeAny, {
1823
+ details: Record<string, unknown>[];
1824
+ success: boolean;
1825
+ exported: number;
1826
+ failed: number;
1827
+ skipped: number;
1828
+ }, {
1829
+ details: Record<string, unknown>[];
1830
+ success: boolean;
1831
+ exported: number;
1832
+ failed: number;
1833
+ skipped: number;
1834
+ }>;
1835
+ /**
1836
+ * Success
1837
+ */
1838
+ declare const zDeleteLiveNumbersResponse: z.ZodObject<{
1839
+ clearedCount: z.ZodNumber;
1840
+ clearedNumbers: z.ZodArray<z.ZodString, "many">;
1841
+ message: z.ZodString;
1842
+ terminatedCalls: z.ZodArray<z.ZodString, "many">;
1843
+ }, "strip", z.ZodTypeAny, {
1844
+ message: string;
1845
+ clearedCount: number;
1846
+ clearedNumbers: string[];
1847
+ terminatedCalls: string[];
1848
+ }, {
1849
+ message: string;
1850
+ clearedCount: number;
1851
+ clearedNumbers: string[];
1852
+ terminatedCalls: string[];
1853
+ }>;
1854
+ /**
1855
+ * Success
1856
+ */
1857
+ declare const zGetLiveNumbersResponse: z.ZodObject<{
1858
+ liveNumbers: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
1859
+ count: z.ZodNumber;
1860
+ }, "strip", z.ZodTypeAny, {
1861
+ liveNumbers: Record<string, unknown>[];
1862
+ count: number;
1863
+ }, {
1864
+ liveNumbers: Record<string, unknown>[];
1865
+ count: number;
1866
+ }>;
1259
1867
  declare const zDeleteLiveNumbersByPhoneNumberPath: z.ZodObject<{
1260
1868
  phoneNumber: z.ZodString;
1261
1869
  }, "strip", z.ZodTypeAny, {
@@ -1263,6 +1871,22 @@ declare const zDeleteLiveNumbersByPhoneNumberPath: z.ZodObject<{
1263
1871
  }, {
1264
1872
  phoneNumber: string;
1265
1873
  }>;
1874
+ /**
1875
+ * Success
1876
+ */
1877
+ declare const zDeleteLiveNumbersByPhoneNumberResponse: z.ZodObject<{
1878
+ message: z.ZodString;
1879
+ phoneNumber: z.ZodString;
1880
+ terminatedCall: z.ZodString;
1881
+ }, "strip", z.ZodTypeAny, {
1882
+ message: string;
1883
+ phoneNumber: string;
1884
+ terminatedCall: string;
1885
+ }, {
1886
+ message: string;
1887
+ phoneNumber: string;
1888
+ terminatedCall: string;
1889
+ }>;
1266
1890
  declare const zDeleteKillConversationByPhoneNumberPath: z.ZodObject<{
1267
1891
  phoneNumber: z.ZodString;
1268
1892
  }, "strip", z.ZodTypeAny, {
@@ -1270,6 +1894,28 @@ declare const zDeleteKillConversationByPhoneNumberPath: z.ZodObject<{
1270
1894
  }, {
1271
1895
  phoneNumber: string;
1272
1896
  }>;
1897
+ /**
1898
+ * Success
1899
+ */
1900
+ declare const zDeleteKillConversationByPhoneNumberResponse: z.ZodObject<{
1901
+ message: z.ZodString;
1902
+ conversationsDeleted: z.ZodArray<z.ZodString, "many">;
1903
+ conversationsFailed: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
1904
+ callTerminated: z.ZodString;
1905
+ activeConversationCleared: z.ZodBoolean;
1906
+ }, "strip", z.ZodTypeAny, {
1907
+ message: string;
1908
+ conversationsDeleted: string[];
1909
+ conversationsFailed: Record<string, unknown>[];
1910
+ callTerminated: string;
1911
+ activeConversationCleared: boolean;
1912
+ }, {
1913
+ message: string;
1914
+ conversationsDeleted: string[];
1915
+ conversationsFailed: Record<string, unknown>[];
1916
+ callTerminated: string;
1917
+ activeConversationCleared: boolean;
1918
+ }>;
1273
1919
  declare const zPostSendEmailBody: z.ZodObject<{
1274
1920
  to: z.ZodString;
1275
1921
  subject: z.ZodString;
@@ -1283,6 +1929,16 @@ declare const zPostSendEmailBody: z.ZodObject<{
1283
1929
  subject: string;
1284
1930
  text: string;
1285
1931
  }>;
1932
+ /**
1933
+ * Success
1934
+ */
1935
+ declare const zPostSendEmailResponse: z.ZodObject<{
1936
+ success: z.ZodBoolean;
1937
+ }, "strip", z.ZodTypeAny, {
1938
+ success: boolean;
1939
+ }, {
1940
+ success: boolean;
1941
+ }>;
1286
1942
  declare const zPostAddMessageBody: z.ZodObject<{
1287
1943
  to: z.ZodString;
1288
1944
  content: z.ZodString;
@@ -1293,7 +1949,30 @@ declare const zPostAddMessageBody: z.ZodObject<{
1293
1949
  to: string;
1294
1950
  content: string;
1295
1951
  }>;
1952
+ /**
1953
+ * Success
1954
+ */
1955
+ declare const zPostAddMessageResponse: z.ZodObject<{
1956
+ message: z.ZodString;
1957
+ success: z.ZodBoolean;
1958
+ }, "strip", z.ZodTypeAny, {
1959
+ message: string;
1960
+ success: boolean;
1961
+ }, {
1962
+ message: string;
1963
+ success: boolean;
1964
+ }>;
1296
1965
  declare const zPostActiveConversationsAgentClaimBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1966
+ /**
1967
+ * Success
1968
+ */
1969
+ declare const zPostActiveConversationsAgentClaimResponse: z.ZodObject<{
1970
+ success: z.ZodBoolean;
1971
+ }, "strip", z.ZodTypeAny, {
1972
+ success: boolean;
1973
+ }, {
1974
+ success: boolean;
1975
+ }>;
1297
1976
  declare const zGetActiveConversationsAgentByAgentNumberPath: z.ZodObject<{
1298
1977
  agentNumber: z.ZodString;
1299
1978
  }, "strip", z.ZodTypeAny, {
@@ -1301,6 +1980,16 @@ declare const zGetActiveConversationsAgentByAgentNumberPath: z.ZodObject<{
1301
1980
  }, {
1302
1981
  agentNumber: string;
1303
1982
  }>;
1983
+ /**
1984
+ * Success
1985
+ */
1986
+ declare const zGetActiveConversationsAgentByAgentNumberResponse: z.ZodObject<{
1987
+ activeConversation: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1988
+ }, "strip", z.ZodTypeAny, {
1989
+ activeConversation: Record<string, unknown>;
1990
+ }, {
1991
+ activeConversation: Record<string, unknown>;
1992
+ }>;
1304
1993
  declare const zGetActiveConversationsByCustomerNumberPath: z.ZodObject<{
1305
1994
  customerNumber: z.ZodString;
1306
1995
  }, "strip", z.ZodTypeAny, {
@@ -1308,7 +1997,31 @@ declare const zGetActiveConversationsByCustomerNumberPath: z.ZodObject<{
1308
1997
  }, {
1309
1998
  customerNumber: string;
1310
1999
  }>;
2000
+ /**
2001
+ * Success
2002
+ */
2003
+ declare const zGetActiveConversationsByCustomerNumberResponse: z.ZodObject<{
2004
+ activeConversation: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2005
+ }, "strip", z.ZodTypeAny, {
2006
+ activeConversation: Record<string, unknown>;
2007
+ }, {
2008
+ activeConversation: Record<string, unknown>;
2009
+ }>;
2010
+ /**
2011
+ * Success
2012
+ */
2013
+ declare const zGetHealthResponse: z.ZodObject<{
2014
+ status: z.ZodString;
2015
+ }, "strip", z.ZodTypeAny, {
2016
+ status: string;
2017
+ }, {
2018
+ status: string;
2019
+ }>;
1311
2020
  declare const zPostCallBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2021
+ /**
2022
+ * TwiML XML response connecting the call to ConversationRelay (or a Say if setup failed)
2023
+ */
2024
+ declare const zPostCallResponse: z.ZodString;
1312
2025
  declare const zPostLiveAgentBody: z.ZodObject<{
1313
2026
  From: z.ZodString;
1314
2027
  To: z.ZodString;
@@ -1322,7 +2035,24 @@ declare const zPostLiveAgentBody: z.ZodObject<{
1322
2035
  To: string;
1323
2036
  Direction: string;
1324
2037
  }>;
2038
+ /**
2039
+ * TwiML XML response (Dial, Enqueue, or external Flex handoff) — TwiML
2040
+ */
2041
+ declare const zPostLiveAgentResponse: z.ZodString;
1325
2042
  declare const zPostRedirectToLiveAgentBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2043
+ /**
2044
+ * Success
2045
+ */
2046
+ declare const zPostRedirectToLiveAgentResponse: z.ZodObject<{
2047
+ callSid: z.ZodString;
2048
+ success: z.ZodBoolean;
2049
+ }, "strip", z.ZodTypeAny, {
2050
+ success: boolean;
2051
+ callSid: string;
2052
+ }, {
2053
+ success: boolean;
2054
+ callSid: string;
2055
+ }>;
1326
2056
  declare const zGetStressTestQuery: z.ZodObject<{
1327
2057
  From: z.ZodOptional<z.ZodString>;
1328
2058
  To: z.ZodOptional<z.ZodString>;
@@ -1345,86 +2075,190 @@ declare const zGetStressTestQuery: z.ZodObject<{
1345
2075
  Confidence?: string | undefined;
1346
2076
  CallStatus?: string | undefined;
1347
2077
  }>;
1348
- declare const zPostStressTestSmsBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1349
- declare const zPostStressTestSmsQuery: z.ZodObject<{
1350
- From: z.ZodOptional<z.ZodString>;
1351
- To: z.ZodOptional<z.ZodString>;
1352
- CallSid: z.ZodOptional<z.ZodString>;
1353
- SpeechResult: z.ZodOptional<z.ZodString>;
1354
- Confidence: z.ZodOptional<z.ZodString>;
1355
- CallStatus: z.ZodOptional<z.ZodString>;
2078
+ /**
2079
+ * TwiML XML response with a Say/Gather/Redirect (or Hangup if the call closes) — TwiML
2080
+ */
2081
+ declare const zGetStressTestResponse: z.ZodString;
2082
+ declare const zPostStressTestSmsBody: z.ZodObject<{
2083
+ From: z.ZodString;
2084
+ To: z.ZodString;
2085
+ Body: z.ZodString;
1356
2086
  }, "strip", z.ZodTypeAny, {
1357
- From?: string | undefined;
1358
- To?: string | undefined;
1359
- CallSid?: string | undefined;
1360
- SpeechResult?: string | undefined;
1361
- Confidence?: string | undefined;
1362
- CallStatus?: string | undefined;
2087
+ From: string;
2088
+ To: string;
2089
+ Body: string;
1363
2090
  }, {
1364
- From?: string | undefined;
1365
- To?: string | undefined;
1366
- CallSid?: string | undefined;
1367
- SpeechResult?: string | undefined;
1368
- Confidence?: string | undefined;
1369
- CallStatus?: string | undefined;
2091
+ From: string;
2092
+ To: string;
2093
+ Body: string;
1370
2094
  }>;
2095
+ /**
2096
+ * TwiML XML response that reads the SMS body aloud, then gathers speech — TwiML
2097
+ */
2098
+ declare const zPostStressTestSmsResponse: z.ZodString;
1371
2099
  declare const zPostWebchatSendBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2100
+ /**
2101
+ * Success
2102
+ */
2103
+ declare const zPostWebchatSendResponse: z.ZodObject<{
2104
+ agentNumber: z.ZodString;
2105
+ conversationId: z.ZodString;
2106
+ identity: z.ZodString;
2107
+ response: z.ZodString;
2108
+ status: z.ZodString;
2109
+ }, "strip", z.ZodTypeAny, {
2110
+ status: string;
2111
+ agentNumber: string;
2112
+ conversationId: string;
2113
+ identity: string;
2114
+ response: string;
2115
+ }, {
2116
+ status: string;
2117
+ agentNumber: string;
2118
+ conversationId: string;
2119
+ identity: string;
2120
+ response: string;
2121
+ }>;
1372
2122
  declare const zPostCintelOperatorsBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2123
+ /**
2124
+ * Success
2125
+ */
2126
+ declare const zPostCintelOperatorsResponse: z.ZodObject<{
2127
+ success: z.ZodBoolean;
2128
+ }, "strip", z.ZodTypeAny, {
2129
+ success: boolean;
2130
+ }, {
2131
+ success: boolean;
2132
+ }>;
1373
2133
  declare const zPostFlexTranscriptionBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2134
+ /**
2135
+ * "OK" (Express default sendStatus body, no JSON payload)
2136
+ */
2137
+ declare const zPostFlexTranscriptionResponse: z.ZodString;
1374
2138
  declare const zPostTaskrouterWebhookBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2139
+ /**
2140
+ * "OK" (Express default sendStatus body, no JSON payload)
2141
+ */
2142
+ declare const zPostTaskrouterWebhookResponse: z.ZodString;
1375
2143
  declare const zPostResolvePhoneBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1376
2144
  declare const zPostCommunicationTextBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
2145
+ /**
2146
+ * TwiML XML response, optionally containing the LLM's reply message
2147
+ */
2148
+ declare const zPostCommunicationTextResponse: z.ZodString;
2149
+ /**
2150
+ * The OpenAPI 3.1 spec document
2151
+ */
2152
+ declare const zGetDocsOpenapiJsonResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1377
2153
 
1378
2154
  declare const zod_gen_zDeleteKillConversationByPhoneNumberPath: typeof zDeleteKillConversationByPhoneNumberPath;
2155
+ declare const zod_gen_zDeleteKillConversationByPhoneNumberResponse: typeof zDeleteKillConversationByPhoneNumberResponse;
1379
2156
  declare const zod_gen_zDeleteLiveNumbersByPhoneNumberPath: typeof zDeleteLiveNumbersByPhoneNumberPath;
2157
+ declare const zod_gen_zDeleteLiveNumbersByPhoneNumberResponse: typeof zDeleteLiveNumbersByPhoneNumberResponse;
2158
+ declare const zod_gen_zDeleteLiveNumbersResponse: typeof zDeleteLiveNumbersResponse;
2159
+ declare const zod_gen_zErrorResponse: typeof zErrorResponse;
1380
2160
  declare const zod_gen_zGetActiveConversationsAgentByAgentNumberPath: typeof zGetActiveConversationsAgentByAgentNumberPath;
2161
+ declare const zod_gen_zGetActiveConversationsAgentByAgentNumberResponse: typeof zGetActiveConversationsAgentByAgentNumberResponse;
1381
2162
  declare const zod_gen_zGetActiveConversationsByCustomerNumberPath: typeof zGetActiveConversationsByCustomerNumberPath;
2163
+ declare const zod_gen_zGetActiveConversationsByCustomerNumberResponse: typeof zGetActiveConversationsByCustomerNumberResponse;
2164
+ declare const zod_gen_zGetCountryConfigsResponse: typeof zGetCountryConfigsResponse;
2165
+ declare const zod_gen_zGetDocsOpenapiJsonResponse: typeof zGetDocsOpenapiJsonResponse;
2166
+ declare const zod_gen_zGetHealthResponse: typeof zGetHealthResponse;
2167
+ declare const zod_gen_zGetLiveNumbersResponse: typeof zGetLiveNumbersResponse;
1382
2168
  declare const zod_gen_zGetOutboundCallByCallSidPath: typeof zGetOutboundCallByCallSidPath;
2169
+ declare const zod_gen_zGetOutboundCallByCallSidResponse: typeof zGetOutboundCallByCallSidResponse;
1383
2170
  declare const zod_gen_zGetPhoneLogsByPhoneNumberPath: typeof zGetPhoneLogsByPhoneNumberPath;
2171
+ declare const zod_gen_zGetPhoneLogsByPhoneNumberResponse: typeof zGetPhoneLogsByPhoneNumberResponse;
2172
+ declare const zod_gen_zGetRecentlyActiveNumbersResponse: typeof zGetRecentlyActiveNumbersResponse;
2173
+ declare const zod_gen_zGetStatsResponse: typeof zGetStatsResponse;
1384
2174
  declare const zod_gen_zGetStressTestQuery: typeof zGetStressTestQuery;
2175
+ declare const zod_gen_zGetStressTestResponse: typeof zGetStressTestResponse;
1385
2176
  declare const zod_gen_zPostActiveConversationsAgentClaimBody: typeof zPostActiveConversationsAgentClaimBody;
2177
+ declare const zod_gen_zPostActiveConversationsAgentClaimResponse: typeof zPostActiveConversationsAgentClaimResponse;
1386
2178
  declare const zod_gen_zPostAddMessageBody: typeof zPostAddMessageBody;
2179
+ declare const zod_gen_zPostAddMessageResponse: typeof zPostAddMessageResponse;
1387
2180
  declare const zod_gen_zPostCallBody: typeof zPostCallBody;
2181
+ declare const zod_gen_zPostCallResponse: typeof zPostCallResponse;
1388
2182
  declare const zod_gen_zPostCintelOperatorsBody: typeof zPostCintelOperatorsBody;
2183
+ declare const zod_gen_zPostCintelOperatorsResponse: typeof zPostCintelOperatorsResponse;
1389
2184
  declare const zod_gen_zPostCommunicationTextBody: typeof zPostCommunicationTextBody;
2185
+ declare const zod_gen_zPostCommunicationTextResponse: typeof zPostCommunicationTextResponse;
2186
+ declare const zod_gen_zPostExportLogsResponse: typeof zPostExportLogsResponse;
1390
2187
  declare const zod_gen_zPostFlexTranscriptionBody: typeof zPostFlexTranscriptionBody;
2188
+ declare const zod_gen_zPostFlexTranscriptionResponse: typeof zPostFlexTranscriptionResponse;
1391
2189
  declare const zod_gen_zPostLiveAgentBody: typeof zPostLiveAgentBody;
2190
+ declare const zod_gen_zPostLiveAgentResponse: typeof zPostLiveAgentResponse;
1392
2191
  declare const zod_gen_zPostOutboundCallBody: typeof zPostOutboundCallBody;
2192
+ declare const zod_gen_zPostOutboundCallResponse: typeof zPostOutboundCallResponse;
1393
2193
  declare const zod_gen_zPostOutboundCommunicationTextBody: typeof zPostOutboundCommunicationTextBody;
2194
+ declare const zod_gen_zPostOutboundCommunicationTextResponse: typeof zPostOutboundCommunicationTextResponse;
1394
2195
  declare const zod_gen_zPostRedirectToLiveAgentBody: typeof zPostRedirectToLiveAgentBody;
2196
+ declare const zod_gen_zPostRedirectToLiveAgentResponse: typeof zPostRedirectToLiveAgentResponse;
1395
2197
  declare const zod_gen_zPostResolvePhoneBody: typeof zPostResolvePhoneBody;
1396
2198
  declare const zod_gen_zPostSendEmailBody: typeof zPostSendEmailBody;
2199
+ declare const zod_gen_zPostSendEmailResponse: typeof zPostSendEmailResponse;
1397
2200
  declare const zod_gen_zPostStressTestSmsBody: typeof zPostStressTestSmsBody;
1398
- declare const zod_gen_zPostStressTestSmsQuery: typeof zPostStressTestSmsQuery;
2201
+ declare const zod_gen_zPostStressTestSmsResponse: typeof zPostStressTestSmsResponse;
1399
2202
  declare const zod_gen_zPostTaskrouterWebhookBody: typeof zPostTaskrouterWebhookBody;
2203
+ declare const zod_gen_zPostTaskrouterWebhookResponse: typeof zPostTaskrouterWebhookResponse;
1400
2204
  declare const zod_gen_zPostWebchatSendBody: typeof zPostWebchatSendBody;
2205
+ declare const zod_gen_zPostWebchatSendResponse: typeof zPostWebchatSendResponse;
1401
2206
  declare namespace zod_gen {
1402
2207
  export {
1403
2208
  zod_gen_zDeleteKillConversationByPhoneNumberPath as zDeleteKillConversationByPhoneNumberPath,
2209
+ zod_gen_zDeleteKillConversationByPhoneNumberResponse as zDeleteKillConversationByPhoneNumberResponse,
1404
2210
  zod_gen_zDeleteLiveNumbersByPhoneNumberPath as zDeleteLiveNumbersByPhoneNumberPath,
2211
+ zod_gen_zDeleteLiveNumbersByPhoneNumberResponse as zDeleteLiveNumbersByPhoneNumberResponse,
2212
+ zod_gen_zDeleteLiveNumbersResponse as zDeleteLiveNumbersResponse,
2213
+ zod_gen_zErrorResponse as zErrorResponse,
1405
2214
  zod_gen_zGetActiveConversationsAgentByAgentNumberPath as zGetActiveConversationsAgentByAgentNumberPath,
2215
+ zod_gen_zGetActiveConversationsAgentByAgentNumberResponse as zGetActiveConversationsAgentByAgentNumberResponse,
1406
2216
  zod_gen_zGetActiveConversationsByCustomerNumberPath as zGetActiveConversationsByCustomerNumberPath,
2217
+ zod_gen_zGetActiveConversationsByCustomerNumberResponse as zGetActiveConversationsByCustomerNumberResponse,
2218
+ zod_gen_zGetCountryConfigsResponse as zGetCountryConfigsResponse,
2219
+ zod_gen_zGetDocsOpenapiJsonResponse as zGetDocsOpenapiJsonResponse,
2220
+ zod_gen_zGetHealthResponse as zGetHealthResponse,
2221
+ zod_gen_zGetLiveNumbersResponse as zGetLiveNumbersResponse,
1407
2222
  zod_gen_zGetOutboundCallByCallSidPath as zGetOutboundCallByCallSidPath,
2223
+ zod_gen_zGetOutboundCallByCallSidResponse as zGetOutboundCallByCallSidResponse,
1408
2224
  zod_gen_zGetPhoneLogsByPhoneNumberPath as zGetPhoneLogsByPhoneNumberPath,
2225
+ zod_gen_zGetPhoneLogsByPhoneNumberResponse as zGetPhoneLogsByPhoneNumberResponse,
2226
+ zod_gen_zGetRecentlyActiveNumbersResponse as zGetRecentlyActiveNumbersResponse,
2227
+ zod_gen_zGetStatsResponse as zGetStatsResponse,
1409
2228
  zod_gen_zGetStressTestQuery as zGetStressTestQuery,
2229
+ zod_gen_zGetStressTestResponse as zGetStressTestResponse,
1410
2230
  zod_gen_zPostActiveConversationsAgentClaimBody as zPostActiveConversationsAgentClaimBody,
2231
+ zod_gen_zPostActiveConversationsAgentClaimResponse as zPostActiveConversationsAgentClaimResponse,
1411
2232
  zod_gen_zPostAddMessageBody as zPostAddMessageBody,
2233
+ zod_gen_zPostAddMessageResponse as zPostAddMessageResponse,
1412
2234
  zod_gen_zPostCallBody as zPostCallBody,
2235
+ zod_gen_zPostCallResponse as zPostCallResponse,
1413
2236
  zod_gen_zPostCintelOperatorsBody as zPostCintelOperatorsBody,
2237
+ zod_gen_zPostCintelOperatorsResponse as zPostCintelOperatorsResponse,
1414
2238
  zod_gen_zPostCommunicationTextBody as zPostCommunicationTextBody,
2239
+ zod_gen_zPostCommunicationTextResponse as zPostCommunicationTextResponse,
2240
+ zod_gen_zPostExportLogsResponse as zPostExportLogsResponse,
1415
2241
  zod_gen_zPostFlexTranscriptionBody as zPostFlexTranscriptionBody,
2242
+ zod_gen_zPostFlexTranscriptionResponse as zPostFlexTranscriptionResponse,
1416
2243
  zod_gen_zPostLiveAgentBody as zPostLiveAgentBody,
2244
+ zod_gen_zPostLiveAgentResponse as zPostLiveAgentResponse,
1417
2245
  zod_gen_zPostOutboundCallBody as zPostOutboundCallBody,
2246
+ zod_gen_zPostOutboundCallResponse as zPostOutboundCallResponse,
1418
2247
  zod_gen_zPostOutboundCommunicationTextBody as zPostOutboundCommunicationTextBody,
2248
+ zod_gen_zPostOutboundCommunicationTextResponse as zPostOutboundCommunicationTextResponse,
1419
2249
  zod_gen_zPostRedirectToLiveAgentBody as zPostRedirectToLiveAgentBody,
2250
+ zod_gen_zPostRedirectToLiveAgentResponse as zPostRedirectToLiveAgentResponse,
1420
2251
  zod_gen_zPostResolvePhoneBody as zPostResolvePhoneBody,
1421
2252
  zod_gen_zPostSendEmailBody as zPostSendEmailBody,
2253
+ zod_gen_zPostSendEmailResponse as zPostSendEmailResponse,
1422
2254
  zod_gen_zPostStressTestSmsBody as zPostStressTestSmsBody,
1423
- zod_gen_zPostStressTestSmsQuery as zPostStressTestSmsQuery,
2255
+ zod_gen_zPostStressTestSmsResponse as zPostStressTestSmsResponse,
1424
2256
  zod_gen_zPostTaskrouterWebhookBody as zPostTaskrouterWebhookBody,
2257
+ zod_gen_zPostTaskrouterWebhookResponse as zPostTaskrouterWebhookResponse,
1425
2258
  zod_gen_zPostWebchatSendBody as zPostWebchatSendBody,
2259
+ zod_gen_zPostWebchatSendResponse as zPostWebchatSendResponse,
1426
2260
  };
1427
2261
  }
1428
2262
 
1429
2263
  export { createRampAgentClient, deleteKillConversationByPhoneNumber, deleteLiveNumbers, deleteLiveNumbersByPhoneNumber, getActiveConversationsAgentByAgentNumber, getActiveConversationsByCustomerNumber, getCountryConfigs, getDocsOpenapiJson, getHealth, getLiveNumbers, getOutboundCallByCallSid, getPhoneLogsByPhoneNumber, getRecentlyActiveNumbers, getStats, getStressTest, postActiveConversationsAgentClaim, postAddMessage, postCall, postCintelOperators, postCommunicationText, postExportLogs, postFlexTranscription, postLiveAgent, postOutboundCall, postOutboundCommunicationText, postRedirectToLiveAgent, postResolvePhone, postSendEmail, postStressTestSms, postTaskrouterWebhook, postWebchatSend, zod_gen as schemas };
1430
- export type { Client, ClientOptions, Config, CreateRampAgentClientOptions, DeleteKillConversationByPhoneNumberData, DeleteKillConversationByPhoneNumberErrors, DeleteKillConversationByPhoneNumberResponses, DeleteLiveNumbersByPhoneNumberData, DeleteLiveNumbersByPhoneNumberErrors, DeleteLiveNumbersByPhoneNumberResponses, DeleteLiveNumbersData, DeleteLiveNumbersErrors, DeleteLiveNumbersResponses, GetActiveConversationsAgentByAgentNumberData, GetActiveConversationsAgentByAgentNumberErrors, GetActiveConversationsAgentByAgentNumberResponses, GetActiveConversationsByCustomerNumberData, GetActiveConversationsByCustomerNumberErrors, GetActiveConversationsByCustomerNumberResponses, GetCountryConfigsData, GetCountryConfigsErrors, GetCountryConfigsResponses, GetDocsOpenapiJsonData, GetDocsOpenapiJsonErrors, GetDocsOpenapiJsonResponses, GetHealthData, GetHealthErrors, GetHealthResponses, GetLiveNumbersData, GetLiveNumbersErrors, GetLiveNumbersResponses, GetOutboundCallByCallSidData, GetOutboundCallByCallSidErrors, GetOutboundCallByCallSidResponses, GetPhoneLogsByPhoneNumberData, GetPhoneLogsByPhoneNumberErrors, GetPhoneLogsByPhoneNumberResponses, GetRecentlyActiveNumbersData, GetRecentlyActiveNumbersErrors, GetRecentlyActiveNumbersResponses, GetStatsData, GetStatsErrors, GetStatsResponses, GetStressTestData, GetStressTestErrors, GetStressTestResponses, Options, PostActiveConversationsAgentClaimData, PostActiveConversationsAgentClaimErrors, PostActiveConversationsAgentClaimResponses, PostAddMessageData, PostAddMessageErrors, PostAddMessageResponses, PostCallData, PostCallErrors, PostCallResponses, PostCintelOperatorsData, PostCintelOperatorsErrors, PostCintelOperatorsResponses, PostCommunicationTextData, PostCommunicationTextErrors, PostCommunicationTextResponses, PostExportLogsData, PostExportLogsErrors, PostExportLogsResponses, PostFlexTranscriptionData, PostFlexTranscriptionErrors, PostFlexTranscriptionResponses, PostLiveAgentData, PostLiveAgentErrors, PostLiveAgentResponses, PostOutboundCallData, PostOutboundCallErrors, PostOutboundCallResponses, PostOutboundCommunicationTextData, PostOutboundCommunicationTextErrors, PostOutboundCommunicationTextResponses, PostRedirectToLiveAgentData, PostRedirectToLiveAgentErrors, PostRedirectToLiveAgentResponses, PostResolvePhoneData, PostResolvePhoneErrors, PostResolvePhoneResponses, PostSendEmailData, PostSendEmailErrors, PostSendEmailResponses, PostStressTestSmsData, PostStressTestSmsErrors, PostStressTestSmsResponses, PostTaskrouterWebhookData, PostTaskrouterWebhookErrors, PostTaskrouterWebhookResponses, PostWebchatSendData, PostWebchatSendErrors, PostWebchatSendResponses, RequestResult };
2264
+ export type { Client, ClientOptions, Config, CreateRampAgentClientOptions, DeleteKillConversationByPhoneNumberData, DeleteKillConversationByPhoneNumberError, DeleteKillConversationByPhoneNumberErrors, DeleteKillConversationByPhoneNumberResponse, DeleteKillConversationByPhoneNumberResponses, DeleteLiveNumbersByPhoneNumberData, DeleteLiveNumbersByPhoneNumberError, DeleteLiveNumbersByPhoneNumberErrors, DeleteLiveNumbersByPhoneNumberResponse, DeleteLiveNumbersByPhoneNumberResponses, DeleteLiveNumbersData, DeleteLiveNumbersError, DeleteLiveNumbersErrors, DeleteLiveNumbersResponse, DeleteLiveNumbersResponses, ErrorResponse, GetActiveConversationsAgentByAgentNumberData, GetActiveConversationsAgentByAgentNumberError, GetActiveConversationsAgentByAgentNumberErrors, GetActiveConversationsAgentByAgentNumberResponse, GetActiveConversationsAgentByAgentNumberResponses, GetActiveConversationsByCustomerNumberData, GetActiveConversationsByCustomerNumberError, GetActiveConversationsByCustomerNumberErrors, GetActiveConversationsByCustomerNumberResponse, GetActiveConversationsByCustomerNumberResponses, GetCountryConfigsData, GetCountryConfigsError, GetCountryConfigsErrors, GetCountryConfigsResponse, GetCountryConfigsResponses, GetDocsOpenapiJsonData, GetDocsOpenapiJsonError, GetDocsOpenapiJsonErrors, GetDocsOpenapiJsonResponse, GetDocsOpenapiJsonResponses, GetHealthData, GetHealthErrors, GetHealthResponse, GetHealthResponses, GetLiveNumbersData, GetLiveNumbersError, GetLiveNumbersErrors, GetLiveNumbersResponse, GetLiveNumbersResponses, GetOutboundCallByCallSidData, GetOutboundCallByCallSidError, GetOutboundCallByCallSidErrors, GetOutboundCallByCallSidResponse, GetOutboundCallByCallSidResponses, GetPhoneLogsByPhoneNumberData, GetPhoneLogsByPhoneNumberError, GetPhoneLogsByPhoneNumberErrors, GetPhoneLogsByPhoneNumberResponse, GetPhoneLogsByPhoneNumberResponses, GetRecentlyActiveNumbersData, GetRecentlyActiveNumbersError, GetRecentlyActiveNumbersErrors, GetRecentlyActiveNumbersResponse, GetRecentlyActiveNumbersResponses, GetStatsData, GetStatsError, GetStatsErrors, GetStatsResponse, GetStatsResponses, GetStressTestData, GetStressTestErrors, GetStressTestResponse, GetStressTestResponses, Options, PostActiveConversationsAgentClaimData, PostActiveConversationsAgentClaimError, PostActiveConversationsAgentClaimErrors, PostActiveConversationsAgentClaimResponse, PostActiveConversationsAgentClaimResponses, PostAddMessageData, PostAddMessageError, PostAddMessageErrors, PostAddMessageResponse, PostAddMessageResponses, PostCallData, PostCallErrors, PostCallResponse, PostCallResponses, PostCintelOperatorsData, PostCintelOperatorsError, PostCintelOperatorsErrors, PostCintelOperatorsResponse, PostCintelOperatorsResponses, PostCommunicationTextData, PostCommunicationTextErrors, PostCommunicationTextResponse, PostCommunicationTextResponses, PostExportLogsData, PostExportLogsError, PostExportLogsErrors, PostExportLogsResponse, PostExportLogsResponses, PostFlexTranscriptionData, PostFlexTranscriptionErrors, PostFlexTranscriptionResponse, PostFlexTranscriptionResponses, PostLiveAgentData, PostLiveAgentErrors, PostLiveAgentResponse, PostLiveAgentResponses, PostOutboundCallData, PostOutboundCallError, PostOutboundCallErrors, PostOutboundCallResponse, PostOutboundCallResponses, PostOutboundCommunicationTextData, PostOutboundCommunicationTextError, PostOutboundCommunicationTextErrors, PostOutboundCommunicationTextResponse, PostOutboundCommunicationTextResponses, PostRedirectToLiveAgentData, PostRedirectToLiveAgentError, PostRedirectToLiveAgentErrors, PostRedirectToLiveAgentResponse, PostRedirectToLiveAgentResponses, PostResolvePhoneData, PostResolvePhoneErrors, PostResolvePhoneResponses, PostSendEmailData, PostSendEmailError, PostSendEmailErrors, PostSendEmailResponse, PostSendEmailResponses, PostStressTestSmsData, PostStressTestSmsErrors, PostStressTestSmsResponse, PostStressTestSmsResponses, PostTaskrouterWebhookData, PostTaskrouterWebhookErrors, PostTaskrouterWebhookResponse, PostTaskrouterWebhookResponses, PostWebchatSendData, PostWebchatSendError, PostWebchatSendErrors, PostWebchatSendResponse, PostWebchatSendResponses, RequestResult };