@gtmi/ramp-dialog-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 createRampDialogClient: ({ baseUrl, getAuthToken, ...config }: Cre
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 GetApiActiveConversationsByCustomerNumberData = {
345
349
  body?: never;
346
350
  path: {
@@ -351,16 +355,28 @@ type GetApiActiveConversationsByCustomerNumberData = {
351
355
  };
352
356
  type GetApiActiveConversationsByCustomerNumberErrors = {
353
357
  /**
354
- * Internal server error
358
+ * "missing_customerNumber" when the path param is absent
355
359
  */
356
- 500: unknown;
360
+ 400: ErrorResponse;
361
+ /**
362
+ * Unauthorized — requires an authenticated session
363
+ */
364
+ 401: unknown;
365
+ /**
366
+ * "upstream_error" (status mirrors the upstream response) or "proxy_error" on unexpected failure
367
+ */
368
+ 500: ErrorResponse;
357
369
  };
370
+ type GetApiActiveConversationsByCustomerNumberError = GetApiActiveConversationsByCustomerNumberErrors[keyof GetApiActiveConversationsByCustomerNumberErrors];
358
371
  type GetApiActiveConversationsByCustomerNumberResponses = {
359
372
  /**
360
- * Success
373
+ * Proxied active-conversations payload from the agent server
361
374
  */
362
- 200: unknown;
375
+ 200: {
376
+ [key: string]: unknown;
377
+ };
363
378
  };
379
+ type GetApiActiveConversationsByCustomerNumberResponse = GetApiActiveConversationsByCustomerNumberResponses[keyof GetApiActiveConversationsByCustomerNumberResponses];
364
380
  type GetApiActiveConversationsAgentByAgentNumberData = {
365
381
  body?: never;
366
382
  path: {
@@ -371,16 +387,28 @@ type GetApiActiveConversationsAgentByAgentNumberData = {
371
387
  };
372
388
  type GetApiActiveConversationsAgentByAgentNumberErrors = {
373
389
  /**
374
- * Internal server error
390
+ * "missing_agentNumber" when the path param is absent
375
391
  */
376
- 500: unknown;
392
+ 400: ErrorResponse;
393
+ /**
394
+ * Unauthorized — requires an authenticated session
395
+ */
396
+ 401: unknown;
397
+ /**
398
+ * "upstream_error" (status mirrors the upstream response) or "proxy_error" on unexpected failure
399
+ */
400
+ 500: ErrorResponse;
377
401
  };
402
+ type GetApiActiveConversationsAgentByAgentNumberError = GetApiActiveConversationsAgentByAgentNumberErrors[keyof GetApiActiveConversationsAgentByAgentNumberErrors];
378
403
  type GetApiActiveConversationsAgentByAgentNumberResponses = {
379
404
  /**
380
- * Success
405
+ * Proxied active-conversations-by-agent payload from the agent server
381
406
  */
382
- 200: unknown;
407
+ 200: {
408
+ [key: string]: unknown;
409
+ };
383
410
  };
411
+ type GetApiActiveConversationsAgentByAgentNumberResponse = GetApiActiveConversationsAgentByAgentNumberResponses[keyof GetApiActiveConversationsAgentByAgentNumberResponses];
384
412
  type PostApiActiveConversationsAgentClaimData = {
385
413
  body: {
386
414
  [key: string]: unknown;
@@ -391,16 +419,31 @@ type PostApiActiveConversationsAgentClaimData = {
391
419
  };
392
420
  type PostApiActiveConversationsAgentClaimErrors = {
393
421
  /**
394
- * Internal server error
422
+ * "missing_conversationId" when the request body lacks a conversationId
395
423
  */
396
- 500: unknown;
424
+ 400: ErrorResponse;
425
+ /**
426
+ * Unauthorized — requires an authenticated session
427
+ */
428
+ 401: unknown;
429
+ /**
430
+ * "upstream_error" (status mirrors the upstream response) or "proxy_error" on unexpected failure
431
+ */
432
+ 500: ErrorResponse;
397
433
  };
434
+ type PostApiActiveConversationsAgentClaimError = PostApiActiveConversationsAgentClaimErrors[keyof PostApiActiveConversationsAgentClaimErrors];
398
435
  type PostApiActiveConversationsAgentClaimResponses = {
399
436
  /**
400
437
  * Success
401
438
  */
402
- 200: unknown;
439
+ 200: {
440
+ /**
441
+ * Always true; claim was forwarded to the agent server
442
+ */
443
+ success: boolean;
444
+ };
403
445
  };
446
+ type PostApiActiveConversationsAgentClaimResponse = PostApiActiveConversationsAgentClaimResponses[keyof PostApiActiveConversationsAgentClaimResponses];
404
447
  type PostApiClearData = {
405
448
  body: {
406
449
  [key: string]: unknown;
@@ -411,16 +454,24 @@ type PostApiClearData = {
411
454
  };
412
455
  type PostApiClearErrors = {
413
456
  /**
414
- * Internal server error
457
+ * Unauthorized requires an authenticated session
415
458
  */
416
- 500: unknown;
459
+ 401: unknown;
460
+ /**
461
+ * "missing_upstream" when DIALOG_BACKEND_BASE_URL is not configured, or "proxy_error" on unexpected failure
462
+ */
463
+ 500: ErrorResponse;
417
464
  };
465
+ type PostApiClearError = PostApiClearErrors[keyof PostApiClearErrors];
418
466
  type PostApiClearResponses = {
419
467
  /**
420
- * Success
468
+ * Proxied JSON body from the dialog backend's /api/clear (status code mirrors the upstream response)
421
469
  */
422
- 200: unknown;
470
+ 200: {
471
+ [key: string]: unknown;
472
+ };
423
473
  };
474
+ type PostApiClearResponse = PostApiClearResponses[keyof PostApiClearResponses];
424
475
  type PostApiConversationMemoryProfilesLookupData = {
425
476
  body: {
426
477
  [key: string]: unknown;
@@ -431,16 +482,30 @@ type PostApiConversationMemoryProfilesLookupData = {
431
482
  };
432
483
  type PostApiConversationMemoryProfilesLookupErrors = {
433
484
  /**
434
- * Internal server error
485
+ * "idType and value are required" when the request body is missing required fields
435
486
  */
436
- 500: unknown;
487
+ 400: ErrorResponse;
488
+ /**
489
+ * Unauthorized — requires an authenticated session
490
+ */
491
+ 401: unknown;
492
+ /**
493
+ * Either { error: string } when TWILIO_CONVERSATION_MEMORY_STORE_ID is not configured or on an unexpected "proxy_error", or { error: <upstream body> } when the upstream call fails (status mirrors the upstream response)
494
+ */
495
+ 500: {
496
+ [key: string]: unknown;
497
+ };
437
498
  };
499
+ type PostApiConversationMemoryProfilesLookupError = PostApiConversationMemoryProfilesLookupErrors[keyof PostApiConversationMemoryProfilesLookupErrors];
438
500
  type PostApiConversationMemoryProfilesLookupResponses = {
439
501
  /**
440
- * Success
502
+ * Proxied profiles-lookup payload from the api server
441
503
  */
442
- 200: unknown;
504
+ 200: {
505
+ [key: string]: unknown;
506
+ };
443
507
  };
508
+ type PostApiConversationMemoryProfilesLookupResponse = PostApiConversationMemoryProfilesLookupResponses[keyof PostApiConversationMemoryProfilesLookupResponses];
444
509
  type PostApiConversationMemoryRecallData = {
445
510
  body: {
446
511
  [key: string]: unknown;
@@ -451,16 +516,30 @@ type PostApiConversationMemoryRecallData = {
451
516
  };
452
517
  type PostApiConversationMemoryRecallErrors = {
453
518
  /**
454
- * Internal server error
519
+ * "profileId is required" when the request body is missing required fields
455
520
  */
456
- 500: unknown;
521
+ 400: ErrorResponse;
522
+ /**
523
+ * Unauthorized — requires an authenticated session
524
+ */
525
+ 401: unknown;
526
+ /**
527
+ * Either { error: string } when TWILIO_CONVERSATION_MEMORY_STORE_ID is not configured or on an unexpected "proxy_error", or { error: <upstream body> } when the upstream call fails (status mirrors the upstream response)
528
+ */
529
+ 500: {
530
+ [key: string]: unknown;
531
+ };
457
532
  };
533
+ type PostApiConversationMemoryRecallError = PostApiConversationMemoryRecallErrors[keyof PostApiConversationMemoryRecallErrors];
458
534
  type PostApiConversationMemoryRecallResponses = {
459
535
  /**
460
- * Success
536
+ * Proxied conversation-memory recall payload from the api server
461
537
  */
462
- 200: unknown;
538
+ 200: {
539
+ [key: string]: unknown;
540
+ };
463
541
  };
542
+ type PostApiConversationMemoryRecallResponse = PostApiConversationMemoryRecallResponses[keyof PostApiConversationMemoryRecallResponses];
464
543
  type DeleteApiConversationMemoryResetData = {
465
544
  body?: never;
466
545
  path?: never;
@@ -471,16 +550,30 @@ type DeleteApiConversationMemoryResetData = {
471
550
  };
472
551
  type DeleteApiConversationMemoryResetErrors = {
473
552
  /**
474
- * Internal server error
553
+ * "profileId is required" when the query param is missing
475
554
  */
476
- 500: unknown;
555
+ 400: ErrorResponse;
556
+ /**
557
+ * Unauthorized — requires an authenticated session
558
+ */
559
+ 401: unknown;
560
+ /**
561
+ * Either { error: string } when TWILIO_CONVERSATION_MEMORY_STORE_ID is not configured or on an unexpected "proxy_error", or { error: <upstream body> } when the upstream call fails (status mirrors the upstream response)
562
+ */
563
+ 500: {
564
+ [key: string]: unknown;
565
+ };
477
566
  };
567
+ type DeleteApiConversationMemoryResetError = DeleteApiConversationMemoryResetErrors[keyof DeleteApiConversationMemoryResetErrors];
478
568
  type DeleteApiConversationMemoryResetResponses = {
479
569
  /**
480
- * Success
570
+ * Proxied conversation-memory reset payload from the api server
481
571
  */
482
- 200: unknown;
572
+ 200: {
573
+ [key: string]: unknown;
574
+ };
483
575
  };
576
+ type DeleteApiConversationMemoryResetResponse = DeleteApiConversationMemoryResetResponses[keyof DeleteApiConversationMemoryResetResponses];
484
577
  type GetApiCountryConfigsData = {
485
578
  body?: never;
486
579
  path?: never;
@@ -489,16 +582,24 @@ type GetApiCountryConfigsData = {
489
582
  };
490
583
  type GetApiCountryConfigsErrors = {
491
584
  /**
492
- * Internal server error
585
+ * Unauthorized requires an authenticated session
493
586
  */
494
- 500: unknown;
587
+ 401: unknown;
588
+ /**
589
+ * "upstream_error" (status mirrors the upstream response) or "proxy_error" on unexpected failure
590
+ */
591
+ 500: ErrorResponse;
495
592
  };
593
+ type GetApiCountryConfigsError = GetApiCountryConfigsErrors[keyof GetApiCountryConfigsErrors];
496
594
  type GetApiCountryConfigsResponses = {
497
595
  /**
498
- * Success
596
+ * Proxied country-configs payload from the agent server
499
597
  */
500
- 200: unknown;
598
+ 200: {
599
+ [key: string]: unknown;
600
+ };
501
601
  };
602
+ type GetApiCountryConfigsResponse = GetApiCountryConfigsResponses[keyof GetApiCountryConfigsResponses];
502
603
  type DeleteApiKillConversationByPhoneData = {
503
604
  body?: never;
504
605
  path: {
@@ -509,16 +610,28 @@ type DeleteApiKillConversationByPhoneData = {
509
610
  };
510
611
  type DeleteApiKillConversationByPhoneErrors = {
511
612
  /**
512
- * Internal server error
613
+ * "missing_phone" when the path param is absent
513
614
  */
514
- 500: unknown;
615
+ 400: ErrorResponse;
616
+ /**
617
+ * Unauthorized — requires an authenticated session
618
+ */
619
+ 401: unknown;
620
+ /**
621
+ * "proxy_error" on unexpected failure
622
+ */
623
+ 500: ErrorResponse;
515
624
  };
625
+ type DeleteApiKillConversationByPhoneError = DeleteApiKillConversationByPhoneErrors[keyof DeleteApiKillConversationByPhoneErrors];
516
626
  type DeleteApiKillConversationByPhoneResponses = {
517
627
  /**
518
- * Success
628
+ * Proxied kill-conversation payload from the agent server (status mirrors the upstream response)
519
629
  */
520
- 200: unknown;
630
+ 200: {
631
+ [key: string]: unknown;
632
+ };
521
633
  };
634
+ type DeleteApiKillConversationByPhoneResponse = DeleteApiKillConversationByPhoneResponses[keyof DeleteApiKillConversationByPhoneResponses];
522
635
  type DeleteApiLiveNumbersData = {
523
636
  body?: never;
524
637
  path?: never;
@@ -527,16 +640,28 @@ type DeleteApiLiveNumbersData = {
527
640
  };
528
641
  type DeleteApiLiveNumbersErrors = {
529
642
  /**
530
- * Internal server error
643
+ * "Phone number is required" when the request body is missing phoneNumber
531
644
  */
532
- 500: unknown;
645
+ 400: ErrorResponse;
646
+ /**
647
+ * Unauthorized — requires an authenticated session
648
+ */
649
+ 401: unknown;
650
+ /**
651
+ * "upstream_error" (status mirrors the upstream response) or "proxy_error" on unexpected failure
652
+ */
653
+ 500: ErrorResponse;
533
654
  };
655
+ type DeleteApiLiveNumbersError = DeleteApiLiveNumbersErrors[keyof DeleteApiLiveNumbersErrors];
534
656
  type DeleteApiLiveNumbersResponses = {
535
657
  /**
536
- * Success
658
+ * Proxied live-numbers deletion payload from the agent server
537
659
  */
538
- 200: unknown;
660
+ 200: {
661
+ [key: string]: unknown;
662
+ };
539
663
  };
664
+ type DeleteApiLiveNumbersResponse = DeleteApiLiveNumbersResponses[keyof DeleteApiLiveNumbersResponses];
540
665
  type GetApiMessagesData = {
541
666
  body?: never;
542
667
  path?: never;
@@ -547,6 +672,10 @@ type GetApiMessagesData = {
547
672
  url: '/api/messages';
548
673
  };
549
674
  type GetApiMessagesErrors = {
675
+ /**
676
+ * Unauthorized — requires an authenticated session
677
+ */
678
+ 401: unknown;
550
679
  /**
551
680
  * Internal server error
552
681
  */
@@ -556,8 +685,32 @@ type GetApiMessagesResponses = {
556
685
  /**
557
686
  * Success
558
687
  */
559
- 200: unknown;
688
+ 200: {
689
+ /**
690
+ * True if the upstream logging backend was reachable and returned ok; false on upstream failure, fetch error, or when no backend is configured
691
+ */
692
+ success: boolean;
693
+ /**
694
+ * Array of DialogMessage records (empty when no backend is configured or on failure)
695
+ */
696
+ messages: Array<{
697
+ [key: string]: unknown;
698
+ }>;
699
+ /**
700
+ * DialogCustomerProfile object, or null when no backend is configured or on failure
701
+ */
702
+ customerProfile: {
703
+ [key: string]: unknown;
704
+ };
705
+ /**
706
+ * Passthrough field from the upstream response; undefined when no backend is configured or on failure
707
+ */
708
+ realtimeCintel: {
709
+ [key: string]: unknown;
710
+ };
711
+ };
560
712
  };
713
+ type GetApiMessagesResponse = GetApiMessagesResponses[keyof GetApiMessagesResponses];
561
714
  type PostApiRealTimeCintelUiData = {
562
715
  body: {
563
716
  [key: string]: unknown;
@@ -568,16 +721,24 @@ type PostApiRealTimeCintelUiData = {
568
721
  };
569
722
  type PostApiRealTimeCintelUiErrors = {
570
723
  /**
571
- * Internal server error
724
+ * Unauthorized requires an authenticated session
572
725
  */
573
- 500: unknown;
726
+ 401: unknown;
727
+ /**
728
+ * "proxy_error" on unexpected failure
729
+ */
730
+ 500: ErrorResponse;
574
731
  };
732
+ type PostApiRealTimeCintelUiError = PostApiRealTimeCintelUiErrors[keyof PostApiRealTimeCintelUiErrors];
575
733
  type PostApiRealTimeCintelUiResponses = {
576
734
  /**
577
- * Success
735
+ * Map of intelligenceOperatorId to the operator's parsed uiType; operators whose fetch failed or had no uiType are silently omitted
578
736
  */
579
- 200: unknown;
737
+ 200: {
738
+ [key: string]: unknown;
739
+ };
580
740
  };
741
+ type PostApiRealTimeCintelUiResponse = PostApiRealTimeCintelUiResponses[keyof PostApiRealTimeCintelUiResponses];
581
742
  type GetApiSyncTokenData = {
582
743
  body?: never;
583
744
  path?: never;
@@ -586,16 +747,24 @@ type GetApiSyncTokenData = {
586
747
  };
587
748
  type GetApiSyncTokenErrors = {
588
749
  /**
589
- * Internal server error
750
+ * Unauthorized requires an authenticated session
590
751
  */
591
- 500: unknown;
752
+ 401: unknown;
753
+ /**
754
+ * "upstream_error" (status mirrors the upstream response) or "proxy_error" on unexpected failure
755
+ */
756
+ 500: ErrorResponse;
592
757
  };
758
+ type GetApiSyncTokenError = GetApiSyncTokenErrors[keyof GetApiSyncTokenErrors];
593
759
  type GetApiSyncTokenResponses = {
594
760
  /**
595
- * Success
761
+ * Proxied sync token payload from the api server
596
762
  */
597
- 200: unknown;
763
+ 200: {
764
+ [key: string]: unknown;
765
+ };
598
766
  };
767
+ type GetApiSyncTokenResponse = GetApiSyncTokenResponses[keyof GetApiSyncTokenResponses];
599
768
  type PostApiTelemetryData = {
600
769
  body?: never;
601
770
  path?: never;
@@ -605,17 +774,351 @@ type PostApiTelemetryData = {
605
774
  url: '/api/telemetry';
606
775
  };
607
776
  type PostApiTelemetryErrors = {
777
+ /**
778
+ * "Invalid ddforward parameter." when the ddforward query param is missing or doesn't start with "/api/"
779
+ */
780
+ 400: ErrorResponse;
781
+ /**
782
+ * Unauthorized — requires an authenticated session
783
+ */
784
+ 401: unknown;
608
785
  /**
609
786
  * Internal server error
610
787
  */
611
788
  500: unknown;
612
789
  };
790
+ type PostApiTelemetryError = PostApiTelemetryErrors[keyof PostApiTelemetryErrors];
613
791
  type PostApiTelemetryResponses = {
614
792
  /**
615
793
  * Success
616
794
  */
617
795
  200: unknown;
796
+ /**
797
+ * Empty body; status code is passed through from the Datadog intake response (202 on success, or the catch handler's hardcoded 202 if the forward fetch itself throws)
798
+ */
799
+ 202: {
800
+ [key: string]: unknown;
801
+ };
802
+ };
803
+ type PostApiTelemetryResponse = PostApiTelemetryResponses[keyof PostApiTelemetryResponses];
804
+ type PostApiWebchatChatData = {
805
+ body: {
806
+ [key: string]: unknown;
807
+ };
808
+ path?: never;
809
+ query?: never;
810
+ url: '/api/webchat/chat';
811
+ };
812
+ type PostApiWebchatChatErrors = {
813
+ /**
814
+ * "proxy_error" if the upstream call fails
815
+ */
816
+ 500: ErrorResponse;
618
817
  };
818
+ type PostApiWebchatChatError = PostApiWebchatChatErrors[keyof PostApiWebchatChatErrors];
819
+ type PostApiWebchatChatResponses = {
820
+ /**
821
+ * Proxied response from the agent chat service
822
+ */
823
+ 200: {
824
+ [key: string]: unknown;
825
+ };
826
+ };
827
+ type PostApiWebchatChatResponse = PostApiWebchatChatResponses[keyof PostApiWebchatChatResponses];
828
+ type GetApiWebchatConversationsTokenData = {
829
+ body?: never;
830
+ path?: never;
831
+ query?: {
832
+ /**
833
+ * Conversation participant identity (required)
834
+ */
835
+ identity?: string;
836
+ };
837
+ url: '/api/webchat/conversations/token';
838
+ };
839
+ type GetApiWebchatConversationsTokenErrors = {
840
+ /**
841
+ * Missing identity query param
842
+ */
843
+ 400: ErrorResponse;
844
+ /**
845
+ * "proxy_error" if the upstream call fails
846
+ */
847
+ 500: ErrorResponse;
848
+ };
849
+ type GetApiWebchatConversationsTokenError = GetApiWebchatConversationsTokenErrors[keyof GetApiWebchatConversationsTokenErrors];
850
+ type GetApiWebchatConversationsTokenResponses = {
851
+ /**
852
+ * Proxied response from the API conversations-token service
853
+ */
854
+ 200: {
855
+ [key: string]: unknown;
856
+ };
857
+ };
858
+ type GetApiWebchatConversationsTokenResponse = GetApiWebchatConversationsTokenResponses[keyof GetApiWebchatConversationsTokenResponses];
859
+ type PostApiWebchatConversationsTokenData = {
860
+ body: {
861
+ [key: string]: unknown;
862
+ };
863
+ path?: never;
864
+ query?: {
865
+ /**
866
+ * Conversation participant identity (required)
867
+ */
868
+ identity?: string;
869
+ };
870
+ url: '/api/webchat/conversations/token';
871
+ };
872
+ type PostApiWebchatConversationsTokenErrors = {
873
+ /**
874
+ * Missing identity in request body
875
+ */
876
+ 400: ErrorResponse;
877
+ /**
878
+ * "proxy_error" if the upstream call fails
879
+ */
880
+ 500: ErrorResponse;
881
+ };
882
+ type PostApiWebchatConversationsTokenError = PostApiWebchatConversationsTokenErrors[keyof PostApiWebchatConversationsTokenErrors];
883
+ type PostApiWebchatConversationsTokenResponses = {
884
+ /**
885
+ * Proxied response from the API conversations-token service
886
+ */
887
+ 200: {
888
+ [key: string]: unknown;
889
+ };
890
+ };
891
+ type PostApiWebchatConversationsTokenResponse = PostApiWebchatConversationsTokenResponses[keyof PostApiWebchatConversationsTokenResponses];
892
+ type PostApiWebchatEndChatData = {
893
+ body: {
894
+ [key: string]: unknown;
895
+ };
896
+ path?: never;
897
+ query?: never;
898
+ url: '/api/webchat/end-chat';
899
+ };
900
+ type PostApiWebchatEndChatErrors = {
901
+ /**
902
+ * Missing customerNumber in request body
903
+ */
904
+ 400: ErrorResponse;
905
+ /**
906
+ * "proxy_error" if the upstream call fails
907
+ */
908
+ 500: ErrorResponse;
909
+ };
910
+ type PostApiWebchatEndChatError = PostApiWebchatEndChatErrors[keyof PostApiWebchatEndChatErrors];
911
+ type PostApiWebchatEndChatResponses = {
912
+ /**
913
+ * Proxied response from the agent live-numbers delete service
914
+ */
915
+ 200: {
916
+ [key: string]: unknown;
917
+ };
918
+ };
919
+ type PostApiWebchatEndChatResponse = PostApiWebchatEndChatResponses[keyof PostApiWebchatEndChatResponses];
920
+ type PostApiWebchatLiveAgentChatData = {
921
+ body: {
922
+ [key: string]: unknown;
923
+ };
924
+ path?: never;
925
+ query?: never;
926
+ url: '/api/webchat/live-agent-chat';
927
+ };
928
+ type PostApiWebchatLiveAgentChatErrors = {
929
+ /**
930
+ * "proxy_error" if the upstream call fails
931
+ */
932
+ 500: ErrorResponse;
933
+ };
934
+ type PostApiWebchatLiveAgentChatError = PostApiWebchatLiveAgentChatErrors[keyof PostApiWebchatLiveAgentChatErrors];
935
+ type PostApiWebchatLiveAgentChatResponses = {
936
+ /**
937
+ * Proxied response from the API live-agent-webchat-connect service
938
+ */
939
+ 200: {
940
+ [key: string]: unknown;
941
+ };
942
+ };
943
+ type PostApiWebchatLiveAgentChatResponse = PostApiWebchatLiveAgentChatResponses[keyof PostApiWebchatLiveAgentChatResponses];
944
+ type PostApiWebchatLiveAgentWebchatConnectData = {
945
+ body: {
946
+ [key: string]: unknown;
947
+ };
948
+ path?: never;
949
+ query?: never;
950
+ url: '/api/webchat/live-agent-webchat-connect';
951
+ };
952
+ type PostApiWebchatLiveAgentWebchatConnectErrors = {
953
+ /**
954
+ * "proxy_error" if the upstream call fails
955
+ */
956
+ 500: ErrorResponse;
957
+ };
958
+ type PostApiWebchatLiveAgentWebchatConnectError = PostApiWebchatLiveAgentWebchatConnectErrors[keyof PostApiWebchatLiveAgentWebchatConnectErrors];
959
+ type PostApiWebchatLiveAgentWebchatConnectResponses = {
960
+ /**
961
+ * Proxied response from the API live-agent-webchat-connect service
962
+ */
963
+ 200: {
964
+ [key: string]: unknown;
965
+ };
966
+ };
967
+ type PostApiWebchatLiveAgentWebchatConnectResponse = PostApiWebchatLiveAgentWebchatConnectResponses[keyof PostApiWebchatLiveAgentWebchatConnectResponses];
968
+ type PostApiWebchatLiveAgentWebchatEndData = {
969
+ body: {
970
+ [key: string]: unknown;
971
+ };
972
+ path?: never;
973
+ query?: never;
974
+ url: '/api/webchat/live-agent-webchat-end';
975
+ };
976
+ type PostApiWebchatLiveAgentWebchatEndErrors = {
977
+ /**
978
+ * "proxy_error" if the upstream call fails
979
+ */
980
+ 500: ErrorResponse;
981
+ };
982
+ type PostApiWebchatLiveAgentWebchatEndError = PostApiWebchatLiveAgentWebchatEndErrors[keyof PostApiWebchatLiveAgentWebchatEndErrors];
983
+ type PostApiWebchatLiveAgentWebchatEndResponses = {
984
+ /**
985
+ * Proxied response from the API live-agent-webchat-end service
986
+ */
987
+ 200: {
988
+ [key: string]: unknown;
989
+ };
990
+ };
991
+ type PostApiWebchatLiveAgentWebchatEndResponse = PostApiWebchatLiveAgentWebchatEndResponses[keyof PostApiWebchatLiveAgentWebchatEndResponses];
992
+ type PostApiWebchatUiConfigData = {
993
+ body: {
994
+ [key: string]: unknown;
995
+ };
996
+ path?: never;
997
+ query?: never;
998
+ url: '/api/webchat/ui-config';
999
+ };
1000
+ type PostApiWebchatUiConfigErrors = {
1001
+ /**
1002
+ * Both or neither of customerNumber/objectID were provided
1003
+ */
1004
+ 400: ErrorResponse;
1005
+ /**
1006
+ * "ui_config_error" if template lookup fails
1007
+ */
1008
+ 500: ErrorResponse;
1009
+ };
1010
+ type PostApiWebchatUiConfigError = PostApiWebchatUiConfigErrors[keyof PostApiWebchatUiConfigErrors];
1011
+ type PostApiWebchatUiConfigResponses = {
1012
+ /**
1013
+ * Success
1014
+ */
1015
+ 200: {
1016
+ /**
1017
+ * Dialog UI customization config from the template (or null)
1018
+ */
1019
+ ui: {
1020
+ [key: string]: unknown;
1021
+ };
1022
+ /**
1023
+ * Dialog link map from the template (or null)
1024
+ */
1025
+ linkMap: {
1026
+ [key: string]: unknown;
1027
+ };
1028
+ /**
1029
+ * Whether the chat link should be hidden (or null)
1030
+ */
1031
+ hideChatLink: boolean;
1032
+ /**
1033
+ * Resolved Algolia objectID for the template (or null)
1034
+ */
1035
+ templateObjectId: string;
1036
+ /**
1037
+ * Default language code for the template, e.g. 'es-ES' (or null)
1038
+ */
1039
+ templateLanguage: string;
1040
+ /**
1041
+ * Representative customer number resolved from objectID lookups (or null)
1042
+ */
1043
+ resolvedCustomerNumber: string;
1044
+ /**
1045
+ * Agent phone number resolved from objectID lookups (or null)
1046
+ */
1047
+ resolvedAgentNumber: string;
1048
+ /**
1049
+ * Template title (or null)
1050
+ */
1051
+ templateTitle: string;
1052
+ /**
1053
+ * Dialog UI customization config from the template (or null)
1054
+ */
1055
+ dialogConfig: {
1056
+ [key: string]: unknown;
1057
+ };
1058
+ /**
1059
+ * Dialog runtime settings (trait mappings, feature flags) (or null)
1060
+ */
1061
+ dialogSettings: {
1062
+ [key: string]: unknown;
1063
+ };
1064
+ };
1065
+ };
1066
+ type PostApiWebchatUiConfigResponse = PostApiWebchatUiConfigResponses[keyof PostApiWebchatUiConfigResponses];
1067
+ type GetApiWebchatVoiceTokenData = {
1068
+ body?: never;
1069
+ path?: never;
1070
+ query?: {
1071
+ /**
1072
+ * Voice grant identity (required)
1073
+ */
1074
+ identity?: string;
1075
+ };
1076
+ url: '/api/webchat/voice-token';
1077
+ };
1078
+ type GetApiWebchatVoiceTokenErrors = {
1079
+ /**
1080
+ * Missing identity query param
1081
+ */
1082
+ 400: ErrorResponse;
1083
+ /**
1084
+ * "proxy_error" if the upstream call fails
1085
+ */
1086
+ 500: ErrorResponse;
1087
+ };
1088
+ type GetApiWebchatVoiceTokenError = GetApiWebchatVoiceTokenErrors[keyof GetApiWebchatVoiceTokenErrors];
1089
+ type GetApiWebchatVoiceTokenResponses = {
1090
+ /**
1091
+ * Proxied response from the API voice-token service
1092
+ */
1093
+ 200: {
1094
+ [key: string]: unknown;
1095
+ };
1096
+ };
1097
+ type GetApiWebchatVoiceTokenResponse = GetApiWebchatVoiceTokenResponses[keyof GetApiWebchatVoiceTokenResponses];
1098
+ type PostApiWebchatWebchatSendData = {
1099
+ body: {
1100
+ [key: string]: unknown;
1101
+ };
1102
+ path?: never;
1103
+ query?: never;
1104
+ url: '/api/webchat/webchat-send';
1105
+ };
1106
+ type PostApiWebchatWebchatSendErrors = {
1107
+ /**
1108
+ * "proxy_error" if the upstream call fails
1109
+ */
1110
+ 500: ErrorResponse;
1111
+ };
1112
+ type PostApiWebchatWebchatSendError = PostApiWebchatWebchatSendErrors[keyof PostApiWebchatWebchatSendErrors];
1113
+ type PostApiWebchatWebchatSendResponses = {
1114
+ /**
1115
+ * Proxied response from the agent chat service
1116
+ */
1117
+ 200: {
1118
+ [key: string]: unknown;
1119
+ };
1120
+ };
1121
+ type PostApiWebchatWebchatSendResponse = PostApiWebchatWebchatSendResponses[keyof PostApiWebchatWebchatSendResponses];
619
1122
 
620
1123
  type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean, TResponse = unknown> = Options$1<TData, ThrowOnError, TResponse> & {
621
1124
  /**
@@ -686,7 +1189,57 @@ declare const getApiSyncToken: <ThrowOnError extends boolean = false>(options?:
686
1189
  * POST telemetry
687
1190
  */
688
1191
  declare const postApiTelemetry: <ThrowOnError extends boolean = false>(options?: Options<PostApiTelemetryData, ThrowOnError>) => RequestResult<PostApiTelemetryResponses, PostApiTelemetryErrors, ThrowOnError>;
1192
+ /**
1193
+ * POST webchat / chat
1194
+ */
1195
+ declare const postApiWebchatChat: <ThrowOnError extends boolean = false>(options: Options<PostApiWebchatChatData, ThrowOnError>) => RequestResult<PostApiWebchatChatResponses, PostApiWebchatChatErrors, ThrowOnError>;
1196
+ /**
1197
+ * GET webchat / conversations / token
1198
+ */
1199
+ declare const getApiWebchatConversationsToken: <ThrowOnError extends boolean = false>(options?: Options<GetApiWebchatConversationsTokenData, ThrowOnError>) => RequestResult<GetApiWebchatConversationsTokenResponses, GetApiWebchatConversationsTokenErrors, ThrowOnError>;
1200
+ /**
1201
+ * POST webchat / conversations / token
1202
+ */
1203
+ declare const postApiWebchatConversationsToken: <ThrowOnError extends boolean = false>(options: Options<PostApiWebchatConversationsTokenData, ThrowOnError>) => RequestResult<PostApiWebchatConversationsTokenResponses, PostApiWebchatConversationsTokenErrors, ThrowOnError>;
1204
+ /**
1205
+ * POST webchat / end-chat
1206
+ */
1207
+ declare const postApiWebchatEndChat: <ThrowOnError extends boolean = false>(options: Options<PostApiWebchatEndChatData, ThrowOnError>) => RequestResult<PostApiWebchatEndChatResponses, PostApiWebchatEndChatErrors, ThrowOnError>;
1208
+ /**
1209
+ * POST webchat / live-agent-chat
1210
+ */
1211
+ declare const postApiWebchatLiveAgentChat: <ThrowOnError extends boolean = false>(options: Options<PostApiWebchatLiveAgentChatData, ThrowOnError>) => RequestResult<PostApiWebchatLiveAgentChatResponses, PostApiWebchatLiveAgentChatErrors, ThrowOnError>;
1212
+ /**
1213
+ * POST webchat / live-agent-webchat-connect
1214
+ */
1215
+ declare const postApiWebchatLiveAgentWebchatConnect: <ThrowOnError extends boolean = false>(options: Options<PostApiWebchatLiveAgentWebchatConnectData, ThrowOnError>) => RequestResult<PostApiWebchatLiveAgentWebchatConnectResponses, PostApiWebchatLiveAgentWebchatConnectErrors, ThrowOnError>;
1216
+ /**
1217
+ * POST webchat / live-agent-webchat-end
1218
+ */
1219
+ declare const postApiWebchatLiveAgentWebchatEnd: <ThrowOnError extends boolean = false>(options: Options<PostApiWebchatLiveAgentWebchatEndData, ThrowOnError>) => RequestResult<PostApiWebchatLiveAgentWebchatEndResponses, PostApiWebchatLiveAgentWebchatEndErrors, ThrowOnError>;
1220
+ /**
1221
+ * POST webchat / ui-config
1222
+ */
1223
+ declare const postApiWebchatUiConfig: <ThrowOnError extends boolean = false>(options: Options<PostApiWebchatUiConfigData, ThrowOnError>) => RequestResult<PostApiWebchatUiConfigResponses, PostApiWebchatUiConfigErrors, ThrowOnError>;
1224
+ /**
1225
+ * GET webchat / voice-token
1226
+ */
1227
+ declare const getApiWebchatVoiceToken: <ThrowOnError extends boolean = false>(options?: Options<GetApiWebchatVoiceTokenData, ThrowOnError>) => RequestResult<GetApiWebchatVoiceTokenResponses, GetApiWebchatVoiceTokenErrors, ThrowOnError>;
1228
+ /**
1229
+ * POST webchat / webchat-send
1230
+ */
1231
+ declare const postApiWebchatWebchatSend: <ThrowOnError extends boolean = false>(options: Options<PostApiWebchatWebchatSendData, ThrowOnError>) => RequestResult<PostApiWebchatWebchatSendResponses, PostApiWebchatWebchatSendErrors, ThrowOnError>;
689
1232
 
1233
+ declare const zErrorResponse: z.ZodObject<{
1234
+ error: z.ZodOptional<z.ZodString>;
1235
+ details: z.ZodOptional<z.ZodString>;
1236
+ }, "strip", z.ZodTypeAny, {
1237
+ error?: string | undefined;
1238
+ details?: string | undefined;
1239
+ }, {
1240
+ error?: string | undefined;
1241
+ details?: string | undefined;
1242
+ }>;
690
1243
  declare const zGetApiActiveConversationsByCustomerNumberPath: z.ZodObject<{
691
1244
  customerNumber: z.ZodString;
692
1245
  }, "strip", z.ZodTypeAny, {
@@ -694,6 +1247,10 @@ declare const zGetApiActiveConversationsByCustomerNumberPath: z.ZodObject<{
694
1247
  }, {
695
1248
  customerNumber: string;
696
1249
  }>;
1250
+ /**
1251
+ * Proxied active-conversations payload from the agent server
1252
+ */
1253
+ declare const zGetApiActiveConversationsByCustomerNumberResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
697
1254
  declare const zGetApiActiveConversationsAgentByAgentNumberPath: z.ZodObject<{
698
1255
  agentNumber: z.ZodString;
699
1256
  }, "strip", z.ZodTypeAny, {
@@ -701,10 +1258,36 @@ declare const zGetApiActiveConversationsAgentByAgentNumberPath: z.ZodObject<{
701
1258
  }, {
702
1259
  agentNumber: string;
703
1260
  }>;
1261
+ /**
1262
+ * Proxied active-conversations-by-agent payload from the agent server
1263
+ */
1264
+ declare const zGetApiActiveConversationsAgentByAgentNumberResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
704
1265
  declare const zPostApiActiveConversationsAgentClaimBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1266
+ /**
1267
+ * Success
1268
+ */
1269
+ declare const zPostApiActiveConversationsAgentClaimResponse: z.ZodObject<{
1270
+ success: z.ZodBoolean;
1271
+ }, "strip", z.ZodTypeAny, {
1272
+ success: boolean;
1273
+ }, {
1274
+ success: boolean;
1275
+ }>;
705
1276
  declare const zPostApiClearBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1277
+ /**
1278
+ * Proxied JSON body from the dialog backend's /api/clear (status code mirrors the upstream response)
1279
+ */
1280
+ declare const zPostApiClearResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
706
1281
  declare const zPostApiConversationMemoryProfilesLookupBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1282
+ /**
1283
+ * Proxied profiles-lookup payload from the api server
1284
+ */
1285
+ declare const zPostApiConversationMemoryProfilesLookupResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
707
1286
  declare const zPostApiConversationMemoryRecallBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1287
+ /**
1288
+ * Proxied conversation-memory recall payload from the api server
1289
+ */
1290
+ declare const zPostApiConversationMemoryRecallResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
708
1291
  declare const zDeleteApiConversationMemoryResetQuery: z.ZodObject<{
709
1292
  profileId: z.ZodString;
710
1293
  }, "strip", z.ZodTypeAny, {
@@ -712,6 +1295,14 @@ declare const zDeleteApiConversationMemoryResetQuery: z.ZodObject<{
712
1295
  }, {
713
1296
  profileId: string;
714
1297
  }>;
1298
+ /**
1299
+ * Proxied conversation-memory reset payload from the api server
1300
+ */
1301
+ declare const zDeleteApiConversationMemoryResetResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1302
+ /**
1303
+ * Proxied country-configs payload from the agent server
1304
+ */
1305
+ declare const zGetApiCountryConfigsResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
715
1306
  declare const zDeleteApiKillConversationByPhonePath: z.ZodObject<{
716
1307
  phone: z.ZodString;
717
1308
  }, "strip", z.ZodTypeAny, {
@@ -719,6 +1310,14 @@ declare const zDeleteApiKillConversationByPhonePath: z.ZodObject<{
719
1310
  }, {
720
1311
  phone: string;
721
1312
  }>;
1313
+ /**
1314
+ * Proxied kill-conversation payload from the agent server (status mirrors the upstream response)
1315
+ */
1316
+ declare const zDeleteApiKillConversationByPhoneResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1317
+ /**
1318
+ * Proxied live-numbers deletion payload from the agent server
1319
+ */
1320
+ declare const zDeleteApiLiveNumbersResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
722
1321
  declare const zGetApiMessagesQuery: z.ZodObject<{
723
1322
  lastId: z.ZodOptional<z.ZodString>;
724
1323
  phoneNumber: z.ZodOptional<z.ZodString>;
@@ -729,7 +1328,34 @@ declare const zGetApiMessagesQuery: z.ZodObject<{
729
1328
  lastId?: string | undefined;
730
1329
  phoneNumber?: string | undefined;
731
1330
  }>;
1331
+ /**
1332
+ * Success
1333
+ */
1334
+ declare const zGetApiMessagesResponse: z.ZodObject<{
1335
+ success: z.ZodBoolean;
1336
+ messages: z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>, "many">;
1337
+ customerProfile: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1338
+ realtimeCintel: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1339
+ }, "strip", z.ZodTypeAny, {
1340
+ success: boolean;
1341
+ messages: Record<string, unknown>[];
1342
+ customerProfile: Record<string, unknown>;
1343
+ realtimeCintel: Record<string, unknown>;
1344
+ }, {
1345
+ success: boolean;
1346
+ messages: Record<string, unknown>[];
1347
+ customerProfile: Record<string, unknown>;
1348
+ realtimeCintel: Record<string, unknown>;
1349
+ }>;
732
1350
  declare const zPostApiRealTimeCintelUiBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1351
+ /**
1352
+ * Map of intelligenceOperatorId to the operator's parsed uiType; operators whose fetch failed or had no uiType are silently omitted
1353
+ */
1354
+ declare const zPostApiRealTimeCintelUiResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1355
+ /**
1356
+ * Proxied sync token payload from the api server
1357
+ */
1358
+ declare const zGetApiSyncTokenResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
733
1359
  declare const zPostApiTelemetryQuery: z.ZodObject<{
734
1360
  ddforward: z.ZodOptional<z.ZodString>;
735
1361
  }, "strip", z.ZodTypeAny, {
@@ -737,33 +1363,208 @@ declare const zPostApiTelemetryQuery: z.ZodObject<{
737
1363
  }, {
738
1364
  ddforward?: string | undefined;
739
1365
  }>;
1366
+ declare const zPostApiTelemetryResponse: z.ZodUnion<[z.ZodUnknown, z.ZodRecord<z.ZodString, z.ZodUnknown>]>;
1367
+ declare const zPostApiWebchatChatBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1368
+ /**
1369
+ * Proxied response from the agent chat service
1370
+ */
1371
+ declare const zPostApiWebchatChatResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1372
+ declare const zGetApiWebchatConversationsTokenQuery: z.ZodObject<{
1373
+ identity: z.ZodOptional<z.ZodString>;
1374
+ }, "strip", z.ZodTypeAny, {
1375
+ identity?: string | undefined;
1376
+ }, {
1377
+ identity?: string | undefined;
1378
+ }>;
1379
+ /**
1380
+ * Proxied response from the API conversations-token service
1381
+ */
1382
+ declare const zGetApiWebchatConversationsTokenResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1383
+ declare const zPostApiWebchatConversationsTokenBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1384
+ declare const zPostApiWebchatConversationsTokenQuery: z.ZodObject<{
1385
+ identity: z.ZodOptional<z.ZodString>;
1386
+ }, "strip", z.ZodTypeAny, {
1387
+ identity?: string | undefined;
1388
+ }, {
1389
+ identity?: string | undefined;
1390
+ }>;
1391
+ /**
1392
+ * Proxied response from the API conversations-token service
1393
+ */
1394
+ declare const zPostApiWebchatConversationsTokenResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1395
+ declare const zPostApiWebchatEndChatBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1396
+ /**
1397
+ * Proxied response from the agent live-numbers delete service
1398
+ */
1399
+ declare const zPostApiWebchatEndChatResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1400
+ declare const zPostApiWebchatLiveAgentChatBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1401
+ /**
1402
+ * Proxied response from the API live-agent-webchat-connect service
1403
+ */
1404
+ declare const zPostApiWebchatLiveAgentChatResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1405
+ declare const zPostApiWebchatLiveAgentWebchatConnectBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1406
+ /**
1407
+ * Proxied response from the API live-agent-webchat-connect service
1408
+ */
1409
+ declare const zPostApiWebchatLiveAgentWebchatConnectResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1410
+ declare const zPostApiWebchatLiveAgentWebchatEndBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1411
+ /**
1412
+ * Proxied response from the API live-agent-webchat-end service
1413
+ */
1414
+ declare const zPostApiWebchatLiveAgentWebchatEndResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1415
+ declare const zPostApiWebchatUiConfigBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1416
+ /**
1417
+ * Success
1418
+ */
1419
+ declare const zPostApiWebchatUiConfigResponse: z.ZodObject<{
1420
+ ui: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1421
+ linkMap: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1422
+ hideChatLink: z.ZodBoolean;
1423
+ templateObjectId: z.ZodString;
1424
+ templateLanguage: z.ZodString;
1425
+ resolvedCustomerNumber: z.ZodString;
1426
+ resolvedAgentNumber: z.ZodString;
1427
+ templateTitle: z.ZodString;
1428
+ dialogConfig: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1429
+ dialogSettings: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1430
+ }, "strip", z.ZodTypeAny, {
1431
+ ui: Record<string, unknown>;
1432
+ linkMap: Record<string, unknown>;
1433
+ hideChatLink: boolean;
1434
+ templateObjectId: string;
1435
+ templateLanguage: string;
1436
+ resolvedCustomerNumber: string;
1437
+ resolvedAgentNumber: string;
1438
+ templateTitle: string;
1439
+ dialogConfig: Record<string, unknown>;
1440
+ dialogSettings: Record<string, unknown>;
1441
+ }, {
1442
+ ui: Record<string, unknown>;
1443
+ linkMap: Record<string, unknown>;
1444
+ hideChatLink: boolean;
1445
+ templateObjectId: string;
1446
+ templateLanguage: string;
1447
+ resolvedCustomerNumber: string;
1448
+ resolvedAgentNumber: string;
1449
+ templateTitle: string;
1450
+ dialogConfig: Record<string, unknown>;
1451
+ dialogSettings: Record<string, unknown>;
1452
+ }>;
1453
+ declare const zGetApiWebchatVoiceTokenQuery: z.ZodObject<{
1454
+ identity: z.ZodOptional<z.ZodString>;
1455
+ }, "strip", z.ZodTypeAny, {
1456
+ identity?: string | undefined;
1457
+ }, {
1458
+ identity?: string | undefined;
1459
+ }>;
1460
+ /**
1461
+ * Proxied response from the API voice-token service
1462
+ */
1463
+ declare const zGetApiWebchatVoiceTokenResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1464
+ declare const zPostApiWebchatWebchatSendBody: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1465
+ /**
1466
+ * Proxied response from the agent chat service
1467
+ */
1468
+ declare const zPostApiWebchatWebchatSendResponse: z.ZodRecord<z.ZodString, z.ZodUnknown>;
740
1469
 
741
1470
  declare const zod_gen_zDeleteApiConversationMemoryResetQuery: typeof zDeleteApiConversationMemoryResetQuery;
1471
+ declare const zod_gen_zDeleteApiConversationMemoryResetResponse: typeof zDeleteApiConversationMemoryResetResponse;
742
1472
  declare const zod_gen_zDeleteApiKillConversationByPhonePath: typeof zDeleteApiKillConversationByPhonePath;
1473
+ declare const zod_gen_zDeleteApiKillConversationByPhoneResponse: typeof zDeleteApiKillConversationByPhoneResponse;
1474
+ declare const zod_gen_zDeleteApiLiveNumbersResponse: typeof zDeleteApiLiveNumbersResponse;
1475
+ declare const zod_gen_zErrorResponse: typeof zErrorResponse;
743
1476
  declare const zod_gen_zGetApiActiveConversationsAgentByAgentNumberPath: typeof zGetApiActiveConversationsAgentByAgentNumberPath;
1477
+ declare const zod_gen_zGetApiActiveConversationsAgentByAgentNumberResponse: typeof zGetApiActiveConversationsAgentByAgentNumberResponse;
744
1478
  declare const zod_gen_zGetApiActiveConversationsByCustomerNumberPath: typeof zGetApiActiveConversationsByCustomerNumberPath;
1479
+ declare const zod_gen_zGetApiActiveConversationsByCustomerNumberResponse: typeof zGetApiActiveConversationsByCustomerNumberResponse;
1480
+ declare const zod_gen_zGetApiCountryConfigsResponse: typeof zGetApiCountryConfigsResponse;
745
1481
  declare const zod_gen_zGetApiMessagesQuery: typeof zGetApiMessagesQuery;
1482
+ declare const zod_gen_zGetApiMessagesResponse: typeof zGetApiMessagesResponse;
1483
+ declare const zod_gen_zGetApiSyncTokenResponse: typeof zGetApiSyncTokenResponse;
1484
+ declare const zod_gen_zGetApiWebchatConversationsTokenQuery: typeof zGetApiWebchatConversationsTokenQuery;
1485
+ declare const zod_gen_zGetApiWebchatConversationsTokenResponse: typeof zGetApiWebchatConversationsTokenResponse;
1486
+ declare const zod_gen_zGetApiWebchatVoiceTokenQuery: typeof zGetApiWebchatVoiceTokenQuery;
1487
+ declare const zod_gen_zGetApiWebchatVoiceTokenResponse: typeof zGetApiWebchatVoiceTokenResponse;
746
1488
  declare const zod_gen_zPostApiActiveConversationsAgentClaimBody: typeof zPostApiActiveConversationsAgentClaimBody;
1489
+ declare const zod_gen_zPostApiActiveConversationsAgentClaimResponse: typeof zPostApiActiveConversationsAgentClaimResponse;
747
1490
  declare const zod_gen_zPostApiClearBody: typeof zPostApiClearBody;
1491
+ declare const zod_gen_zPostApiClearResponse: typeof zPostApiClearResponse;
748
1492
  declare const zod_gen_zPostApiConversationMemoryProfilesLookupBody: typeof zPostApiConversationMemoryProfilesLookupBody;
1493
+ declare const zod_gen_zPostApiConversationMemoryProfilesLookupResponse: typeof zPostApiConversationMemoryProfilesLookupResponse;
749
1494
  declare const zod_gen_zPostApiConversationMemoryRecallBody: typeof zPostApiConversationMemoryRecallBody;
1495
+ declare const zod_gen_zPostApiConversationMemoryRecallResponse: typeof zPostApiConversationMemoryRecallResponse;
750
1496
  declare const zod_gen_zPostApiRealTimeCintelUiBody: typeof zPostApiRealTimeCintelUiBody;
1497
+ declare const zod_gen_zPostApiRealTimeCintelUiResponse: typeof zPostApiRealTimeCintelUiResponse;
751
1498
  declare const zod_gen_zPostApiTelemetryQuery: typeof zPostApiTelemetryQuery;
1499
+ declare const zod_gen_zPostApiTelemetryResponse: typeof zPostApiTelemetryResponse;
1500
+ declare const zod_gen_zPostApiWebchatChatBody: typeof zPostApiWebchatChatBody;
1501
+ declare const zod_gen_zPostApiWebchatChatResponse: typeof zPostApiWebchatChatResponse;
1502
+ declare const zod_gen_zPostApiWebchatConversationsTokenBody: typeof zPostApiWebchatConversationsTokenBody;
1503
+ declare const zod_gen_zPostApiWebchatConversationsTokenQuery: typeof zPostApiWebchatConversationsTokenQuery;
1504
+ declare const zod_gen_zPostApiWebchatConversationsTokenResponse: typeof zPostApiWebchatConversationsTokenResponse;
1505
+ declare const zod_gen_zPostApiWebchatEndChatBody: typeof zPostApiWebchatEndChatBody;
1506
+ declare const zod_gen_zPostApiWebchatEndChatResponse: typeof zPostApiWebchatEndChatResponse;
1507
+ declare const zod_gen_zPostApiWebchatLiveAgentChatBody: typeof zPostApiWebchatLiveAgentChatBody;
1508
+ declare const zod_gen_zPostApiWebchatLiveAgentChatResponse: typeof zPostApiWebchatLiveAgentChatResponse;
1509
+ declare const zod_gen_zPostApiWebchatLiveAgentWebchatConnectBody: typeof zPostApiWebchatLiveAgentWebchatConnectBody;
1510
+ declare const zod_gen_zPostApiWebchatLiveAgentWebchatConnectResponse: typeof zPostApiWebchatLiveAgentWebchatConnectResponse;
1511
+ declare const zod_gen_zPostApiWebchatLiveAgentWebchatEndBody: typeof zPostApiWebchatLiveAgentWebchatEndBody;
1512
+ declare const zod_gen_zPostApiWebchatLiveAgentWebchatEndResponse: typeof zPostApiWebchatLiveAgentWebchatEndResponse;
1513
+ declare const zod_gen_zPostApiWebchatUiConfigBody: typeof zPostApiWebchatUiConfigBody;
1514
+ declare const zod_gen_zPostApiWebchatUiConfigResponse: typeof zPostApiWebchatUiConfigResponse;
1515
+ declare const zod_gen_zPostApiWebchatWebchatSendBody: typeof zPostApiWebchatWebchatSendBody;
1516
+ declare const zod_gen_zPostApiWebchatWebchatSendResponse: typeof zPostApiWebchatWebchatSendResponse;
752
1517
  declare namespace zod_gen {
753
1518
  export {
754
1519
  zod_gen_zDeleteApiConversationMemoryResetQuery as zDeleteApiConversationMemoryResetQuery,
1520
+ zod_gen_zDeleteApiConversationMemoryResetResponse as zDeleteApiConversationMemoryResetResponse,
755
1521
  zod_gen_zDeleteApiKillConversationByPhonePath as zDeleteApiKillConversationByPhonePath,
1522
+ zod_gen_zDeleteApiKillConversationByPhoneResponse as zDeleteApiKillConversationByPhoneResponse,
1523
+ zod_gen_zDeleteApiLiveNumbersResponse as zDeleteApiLiveNumbersResponse,
1524
+ zod_gen_zErrorResponse as zErrorResponse,
756
1525
  zod_gen_zGetApiActiveConversationsAgentByAgentNumberPath as zGetApiActiveConversationsAgentByAgentNumberPath,
1526
+ zod_gen_zGetApiActiveConversationsAgentByAgentNumberResponse as zGetApiActiveConversationsAgentByAgentNumberResponse,
757
1527
  zod_gen_zGetApiActiveConversationsByCustomerNumberPath as zGetApiActiveConversationsByCustomerNumberPath,
1528
+ zod_gen_zGetApiActiveConversationsByCustomerNumberResponse as zGetApiActiveConversationsByCustomerNumberResponse,
1529
+ zod_gen_zGetApiCountryConfigsResponse as zGetApiCountryConfigsResponse,
758
1530
  zod_gen_zGetApiMessagesQuery as zGetApiMessagesQuery,
1531
+ zod_gen_zGetApiMessagesResponse as zGetApiMessagesResponse,
1532
+ zod_gen_zGetApiSyncTokenResponse as zGetApiSyncTokenResponse,
1533
+ zod_gen_zGetApiWebchatConversationsTokenQuery as zGetApiWebchatConversationsTokenQuery,
1534
+ zod_gen_zGetApiWebchatConversationsTokenResponse as zGetApiWebchatConversationsTokenResponse,
1535
+ zod_gen_zGetApiWebchatVoiceTokenQuery as zGetApiWebchatVoiceTokenQuery,
1536
+ zod_gen_zGetApiWebchatVoiceTokenResponse as zGetApiWebchatVoiceTokenResponse,
759
1537
  zod_gen_zPostApiActiveConversationsAgentClaimBody as zPostApiActiveConversationsAgentClaimBody,
1538
+ zod_gen_zPostApiActiveConversationsAgentClaimResponse as zPostApiActiveConversationsAgentClaimResponse,
760
1539
  zod_gen_zPostApiClearBody as zPostApiClearBody,
1540
+ zod_gen_zPostApiClearResponse as zPostApiClearResponse,
761
1541
  zod_gen_zPostApiConversationMemoryProfilesLookupBody as zPostApiConversationMemoryProfilesLookupBody,
1542
+ zod_gen_zPostApiConversationMemoryProfilesLookupResponse as zPostApiConversationMemoryProfilesLookupResponse,
762
1543
  zod_gen_zPostApiConversationMemoryRecallBody as zPostApiConversationMemoryRecallBody,
1544
+ zod_gen_zPostApiConversationMemoryRecallResponse as zPostApiConversationMemoryRecallResponse,
763
1545
  zod_gen_zPostApiRealTimeCintelUiBody as zPostApiRealTimeCintelUiBody,
1546
+ zod_gen_zPostApiRealTimeCintelUiResponse as zPostApiRealTimeCintelUiResponse,
764
1547
  zod_gen_zPostApiTelemetryQuery as zPostApiTelemetryQuery,
1548
+ zod_gen_zPostApiTelemetryResponse as zPostApiTelemetryResponse,
1549
+ zod_gen_zPostApiWebchatChatBody as zPostApiWebchatChatBody,
1550
+ zod_gen_zPostApiWebchatChatResponse as zPostApiWebchatChatResponse,
1551
+ zod_gen_zPostApiWebchatConversationsTokenBody as zPostApiWebchatConversationsTokenBody,
1552
+ zod_gen_zPostApiWebchatConversationsTokenQuery as zPostApiWebchatConversationsTokenQuery,
1553
+ zod_gen_zPostApiWebchatConversationsTokenResponse as zPostApiWebchatConversationsTokenResponse,
1554
+ zod_gen_zPostApiWebchatEndChatBody as zPostApiWebchatEndChatBody,
1555
+ zod_gen_zPostApiWebchatEndChatResponse as zPostApiWebchatEndChatResponse,
1556
+ zod_gen_zPostApiWebchatLiveAgentChatBody as zPostApiWebchatLiveAgentChatBody,
1557
+ zod_gen_zPostApiWebchatLiveAgentChatResponse as zPostApiWebchatLiveAgentChatResponse,
1558
+ zod_gen_zPostApiWebchatLiveAgentWebchatConnectBody as zPostApiWebchatLiveAgentWebchatConnectBody,
1559
+ zod_gen_zPostApiWebchatLiveAgentWebchatConnectResponse as zPostApiWebchatLiveAgentWebchatConnectResponse,
1560
+ zod_gen_zPostApiWebchatLiveAgentWebchatEndBody as zPostApiWebchatLiveAgentWebchatEndBody,
1561
+ zod_gen_zPostApiWebchatLiveAgentWebchatEndResponse as zPostApiWebchatLiveAgentWebchatEndResponse,
1562
+ zod_gen_zPostApiWebchatUiConfigBody as zPostApiWebchatUiConfigBody,
1563
+ zod_gen_zPostApiWebchatUiConfigResponse as zPostApiWebchatUiConfigResponse,
1564
+ zod_gen_zPostApiWebchatWebchatSendBody as zPostApiWebchatWebchatSendBody,
1565
+ zod_gen_zPostApiWebchatWebchatSendResponse as zPostApiWebchatWebchatSendResponse,
765
1566
  };
766
1567
  }
767
1568
 
768
- export { createRampDialogClient, deleteApiConversationMemoryReset, deleteApiKillConversationByPhone, deleteApiLiveNumbers, getApiActiveConversationsAgentByAgentNumber, getApiActiveConversationsByCustomerNumber, getApiCountryConfigs, getApiMessages, getApiSyncToken, postApiActiveConversationsAgentClaim, postApiClear, postApiConversationMemoryProfilesLookup, postApiConversationMemoryRecall, postApiRealTimeCintelUi, postApiTelemetry, zod_gen as schemas };
769
- export type { Client, ClientOptions, Config, CreateRampDialogClientOptions, DeleteApiConversationMemoryResetData, DeleteApiConversationMemoryResetErrors, DeleteApiConversationMemoryResetResponses, DeleteApiKillConversationByPhoneData, DeleteApiKillConversationByPhoneErrors, DeleteApiKillConversationByPhoneResponses, DeleteApiLiveNumbersData, DeleteApiLiveNumbersErrors, DeleteApiLiveNumbersResponses, GetApiActiveConversationsAgentByAgentNumberData, GetApiActiveConversationsAgentByAgentNumberErrors, GetApiActiveConversationsAgentByAgentNumberResponses, GetApiActiveConversationsByCustomerNumberData, GetApiActiveConversationsByCustomerNumberErrors, GetApiActiveConversationsByCustomerNumberResponses, GetApiCountryConfigsData, GetApiCountryConfigsErrors, GetApiCountryConfigsResponses, GetApiMessagesData, GetApiMessagesErrors, GetApiMessagesResponses, GetApiSyncTokenData, GetApiSyncTokenErrors, GetApiSyncTokenResponses, Options, PostApiActiveConversationsAgentClaimData, PostApiActiveConversationsAgentClaimErrors, PostApiActiveConversationsAgentClaimResponses, PostApiClearData, PostApiClearErrors, PostApiClearResponses, PostApiConversationMemoryProfilesLookupData, PostApiConversationMemoryProfilesLookupErrors, PostApiConversationMemoryProfilesLookupResponses, PostApiConversationMemoryRecallData, PostApiConversationMemoryRecallErrors, PostApiConversationMemoryRecallResponses, PostApiRealTimeCintelUiData, PostApiRealTimeCintelUiErrors, PostApiRealTimeCintelUiResponses, PostApiTelemetryData, PostApiTelemetryErrors, PostApiTelemetryResponses, RequestResult };
1569
+ export { createRampDialogClient, deleteApiConversationMemoryReset, deleteApiKillConversationByPhone, deleteApiLiveNumbers, getApiActiveConversationsAgentByAgentNumber, getApiActiveConversationsByCustomerNumber, getApiCountryConfigs, getApiMessages, getApiSyncToken, getApiWebchatConversationsToken, getApiWebchatVoiceToken, postApiActiveConversationsAgentClaim, postApiClear, postApiConversationMemoryProfilesLookup, postApiConversationMemoryRecall, postApiRealTimeCintelUi, postApiTelemetry, postApiWebchatChat, postApiWebchatConversationsToken, postApiWebchatEndChat, postApiWebchatLiveAgentChat, postApiWebchatLiveAgentWebchatConnect, postApiWebchatLiveAgentWebchatEnd, postApiWebchatUiConfig, postApiWebchatWebchatSend, zod_gen as schemas };
1570
+ export type { Client, ClientOptions, Config, CreateRampDialogClientOptions, DeleteApiConversationMemoryResetData, DeleteApiConversationMemoryResetError, DeleteApiConversationMemoryResetErrors, DeleteApiConversationMemoryResetResponse, DeleteApiConversationMemoryResetResponses, DeleteApiKillConversationByPhoneData, DeleteApiKillConversationByPhoneError, DeleteApiKillConversationByPhoneErrors, DeleteApiKillConversationByPhoneResponse, DeleteApiKillConversationByPhoneResponses, DeleteApiLiveNumbersData, DeleteApiLiveNumbersError, DeleteApiLiveNumbersErrors, DeleteApiLiveNumbersResponse, DeleteApiLiveNumbersResponses, ErrorResponse, GetApiActiveConversationsAgentByAgentNumberData, GetApiActiveConversationsAgentByAgentNumberError, GetApiActiveConversationsAgentByAgentNumberErrors, GetApiActiveConversationsAgentByAgentNumberResponse, GetApiActiveConversationsAgentByAgentNumberResponses, GetApiActiveConversationsByCustomerNumberData, GetApiActiveConversationsByCustomerNumberError, GetApiActiveConversationsByCustomerNumberErrors, GetApiActiveConversationsByCustomerNumberResponse, GetApiActiveConversationsByCustomerNumberResponses, GetApiCountryConfigsData, GetApiCountryConfigsError, GetApiCountryConfigsErrors, GetApiCountryConfigsResponse, GetApiCountryConfigsResponses, GetApiMessagesData, GetApiMessagesErrors, GetApiMessagesResponse, GetApiMessagesResponses, GetApiSyncTokenData, GetApiSyncTokenError, GetApiSyncTokenErrors, GetApiSyncTokenResponse, GetApiSyncTokenResponses, GetApiWebchatConversationsTokenData, GetApiWebchatConversationsTokenError, GetApiWebchatConversationsTokenErrors, GetApiWebchatConversationsTokenResponse, GetApiWebchatConversationsTokenResponses, GetApiWebchatVoiceTokenData, GetApiWebchatVoiceTokenError, GetApiWebchatVoiceTokenErrors, GetApiWebchatVoiceTokenResponse, GetApiWebchatVoiceTokenResponses, Options, PostApiActiveConversationsAgentClaimData, PostApiActiveConversationsAgentClaimError, PostApiActiveConversationsAgentClaimErrors, PostApiActiveConversationsAgentClaimResponse, PostApiActiveConversationsAgentClaimResponses, PostApiClearData, PostApiClearError, PostApiClearErrors, PostApiClearResponse, PostApiClearResponses, PostApiConversationMemoryProfilesLookupData, PostApiConversationMemoryProfilesLookupError, PostApiConversationMemoryProfilesLookupErrors, PostApiConversationMemoryProfilesLookupResponse, PostApiConversationMemoryProfilesLookupResponses, PostApiConversationMemoryRecallData, PostApiConversationMemoryRecallError, PostApiConversationMemoryRecallErrors, PostApiConversationMemoryRecallResponse, PostApiConversationMemoryRecallResponses, PostApiRealTimeCintelUiData, PostApiRealTimeCintelUiError, PostApiRealTimeCintelUiErrors, PostApiRealTimeCintelUiResponse, PostApiRealTimeCintelUiResponses, PostApiTelemetryData, PostApiTelemetryError, PostApiTelemetryErrors, PostApiTelemetryResponse, PostApiTelemetryResponses, PostApiWebchatChatData, PostApiWebchatChatError, PostApiWebchatChatErrors, PostApiWebchatChatResponse, PostApiWebchatChatResponses, PostApiWebchatConversationsTokenData, PostApiWebchatConversationsTokenError, PostApiWebchatConversationsTokenErrors, PostApiWebchatConversationsTokenResponse, PostApiWebchatConversationsTokenResponses, PostApiWebchatEndChatData, PostApiWebchatEndChatError, PostApiWebchatEndChatErrors, PostApiWebchatEndChatResponse, PostApiWebchatEndChatResponses, PostApiWebchatLiveAgentChatData, PostApiWebchatLiveAgentChatError, PostApiWebchatLiveAgentChatErrors, PostApiWebchatLiveAgentChatResponse, PostApiWebchatLiveAgentChatResponses, PostApiWebchatLiveAgentWebchatConnectData, PostApiWebchatLiveAgentWebchatConnectError, PostApiWebchatLiveAgentWebchatConnectErrors, PostApiWebchatLiveAgentWebchatConnectResponse, PostApiWebchatLiveAgentWebchatConnectResponses, PostApiWebchatLiveAgentWebchatEndData, PostApiWebchatLiveAgentWebchatEndError, PostApiWebchatLiveAgentWebchatEndErrors, PostApiWebchatLiveAgentWebchatEndResponse, PostApiWebchatLiveAgentWebchatEndResponses, PostApiWebchatUiConfigData, PostApiWebchatUiConfigError, PostApiWebchatUiConfigErrors, PostApiWebchatUiConfigResponse, PostApiWebchatUiConfigResponses, PostApiWebchatWebchatSendData, PostApiWebchatWebchatSendError, PostApiWebchatWebchatSendErrors, PostApiWebchatWebchatSendResponse, PostApiWebchatWebchatSendResponses, RequestResult };