@epilot/message-client 1.15.3 → 1.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/definition.js +1 -1
- package/dist/openapi-runtime.json +143 -0
- package/dist/openapi.d.ts +605 -18
- package/dist/openapi.json +592 -9
- package/package.json +2 -2
package/dist/openapi.json
CHANGED
|
@@ -463,6 +463,117 @@
|
|
|
463
463
|
}
|
|
464
464
|
}
|
|
465
465
|
},
|
|
466
|
+
"/v2/message/threads:search": {
|
|
467
|
+
"post": {
|
|
468
|
+
"operationId": "searchThreadsV2",
|
|
469
|
+
"summary": "searchThreadsV2",
|
|
470
|
+
"description": "Search for threads of email messages.\n\nMessages with no replies yet are treated as threads with single message.\n\nLucene syntax supported.\n",
|
|
471
|
+
"tags": [
|
|
472
|
+
"Threads"
|
|
473
|
+
],
|
|
474
|
+
"requestBody": {
|
|
475
|
+
"content": {
|
|
476
|
+
"application/json": {
|
|
477
|
+
"schema": {
|
|
478
|
+
"$ref": "#/components/schemas/SearchParamsV2"
|
|
479
|
+
}
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
},
|
|
483
|
+
"responses": {
|
|
484
|
+
"200": {
|
|
485
|
+
"description": "Success",
|
|
486
|
+
"content": {
|
|
487
|
+
"application/json": {
|
|
488
|
+
"schema": {
|
|
489
|
+
"type": "object",
|
|
490
|
+
"required": [
|
|
491
|
+
"hits",
|
|
492
|
+
"results"
|
|
493
|
+
],
|
|
494
|
+
"properties": {
|
|
495
|
+
"hits": {
|
|
496
|
+
"type": "number",
|
|
497
|
+
"description": "Total of matched threads",
|
|
498
|
+
"example": 14
|
|
499
|
+
},
|
|
500
|
+
"results": {
|
|
501
|
+
"type": "array",
|
|
502
|
+
"description": "Matched threads",
|
|
503
|
+
"items": {
|
|
504
|
+
"allOf": [
|
|
505
|
+
{
|
|
506
|
+
"$ref": "#/components/schemas/BaseEntity"
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
"$ref": "#/components/schemas/Thread"
|
|
510
|
+
}
|
|
511
|
+
]
|
|
512
|
+
}
|
|
513
|
+
}
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
}
|
|
518
|
+
},
|
|
519
|
+
"403": {
|
|
520
|
+
"description": "Forbidden"
|
|
521
|
+
}
|
|
522
|
+
}
|
|
523
|
+
}
|
|
524
|
+
},
|
|
525
|
+
"/v1/message/threads:searchIds": {
|
|
526
|
+
"post": {
|
|
527
|
+
"operationId": "searchIds",
|
|
528
|
+
"summary": "Search threads and return all id's",
|
|
529
|
+
"description": "Return all thread id's that match a criteria\n\nLucene syntax supported.\n",
|
|
530
|
+
"tags": [
|
|
531
|
+
"Threads"
|
|
532
|
+
],
|
|
533
|
+
"requestBody": {
|
|
534
|
+
"content": {
|
|
535
|
+
"application/json": {
|
|
536
|
+
"schema": {
|
|
537
|
+
"$ref": "#/components/schemas/SearchIDParams"
|
|
538
|
+
}
|
|
539
|
+
}
|
|
540
|
+
}
|
|
541
|
+
},
|
|
542
|
+
"responses": {
|
|
543
|
+
"200": {
|
|
544
|
+
"description": "Success",
|
|
545
|
+
"content": {
|
|
546
|
+
"application/json": {
|
|
547
|
+
"schema": {
|
|
548
|
+
"type": "object",
|
|
549
|
+
"required": [
|
|
550
|
+
"hits",
|
|
551
|
+
"results"
|
|
552
|
+
],
|
|
553
|
+
"properties": {
|
|
554
|
+
"hits": {
|
|
555
|
+
"type": "number",
|
|
556
|
+
"description": "Total of matched threads",
|
|
557
|
+
"example": 14
|
|
558
|
+
},
|
|
559
|
+
"results": {
|
|
560
|
+
"type": "array",
|
|
561
|
+
"description": "Matched threads ids",
|
|
562
|
+
"items": {
|
|
563
|
+
"type": "string"
|
|
564
|
+
}
|
|
565
|
+
}
|
|
566
|
+
}
|
|
567
|
+
}
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
},
|
|
571
|
+
"403": {
|
|
572
|
+
"description": "Forbidden"
|
|
573
|
+
}
|
|
574
|
+
}
|
|
575
|
+
}
|
|
576
|
+
},
|
|
466
577
|
"/v1/message/threads": {
|
|
467
578
|
"put": {
|
|
468
579
|
"operationId": "updateThread",
|
|
@@ -582,6 +693,42 @@
|
|
|
582
693
|
}
|
|
583
694
|
}
|
|
584
695
|
},
|
|
696
|
+
"/v1/message/threads/{id}/timeline": {
|
|
697
|
+
"get": {
|
|
698
|
+
"operationId": "getThreadTimeline",
|
|
699
|
+
"summary": "getThreadTimeline",
|
|
700
|
+
"description": "Get thread timeline",
|
|
701
|
+
"tags": [
|
|
702
|
+
"Threads"
|
|
703
|
+
],
|
|
704
|
+
"parameters": [
|
|
705
|
+
{
|
|
706
|
+
"name": "id",
|
|
707
|
+
"description": "Thread ID",
|
|
708
|
+
"in": "path",
|
|
709
|
+
"required": true,
|
|
710
|
+
"schema": {
|
|
711
|
+
"type": "string"
|
|
712
|
+
}
|
|
713
|
+
}
|
|
714
|
+
],
|
|
715
|
+
"responses": {
|
|
716
|
+
"200": {
|
|
717
|
+
"description": "Success",
|
|
718
|
+
"content": {
|
|
719
|
+
"application/json": {
|
|
720
|
+
"schema": {
|
|
721
|
+
"$ref": "#/components/schemas/ThreadTimeline"
|
|
722
|
+
}
|
|
723
|
+
}
|
|
724
|
+
}
|
|
725
|
+
},
|
|
726
|
+
"403": {
|
|
727
|
+
"description": "Forbidden"
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
},
|
|
585
732
|
"/v1/message/threads/{id}/trash": {
|
|
586
733
|
"post": {
|
|
587
734
|
"operationId": "trashThread",
|
|
@@ -602,7 +749,7 @@
|
|
|
602
749
|
}
|
|
603
750
|
],
|
|
604
751
|
"responses": {
|
|
605
|
-
"
|
|
752
|
+
"200": {
|
|
606
753
|
"description": "Success"
|
|
607
754
|
},
|
|
608
755
|
"403": {
|
|
@@ -631,7 +778,259 @@
|
|
|
631
778
|
}
|
|
632
779
|
],
|
|
633
780
|
"responses": {
|
|
634
|
-
"
|
|
781
|
+
"200": {
|
|
782
|
+
"description": "Success"
|
|
783
|
+
},
|
|
784
|
+
"403": {
|
|
785
|
+
"description": "Forbidden"
|
|
786
|
+
}
|
|
787
|
+
}
|
|
788
|
+
}
|
|
789
|
+
},
|
|
790
|
+
"/v1/message/threads/bulk:read": {
|
|
791
|
+
"post": {
|
|
792
|
+
"operationId": "threadBulkActionsRead",
|
|
793
|
+
"summary": "threadBulkActionsRead",
|
|
794
|
+
"description": "Perform a bulk action of marking an array of thread ids as read",
|
|
795
|
+
"tags": [
|
|
796
|
+
"Threads"
|
|
797
|
+
],
|
|
798
|
+
"requestBody": {
|
|
799
|
+
"required": true,
|
|
800
|
+
"content": {
|
|
801
|
+
"application/json": {
|
|
802
|
+
"schema": {
|
|
803
|
+
"$ref": "#/components/schemas/BulkActionsPayloadWithScopes"
|
|
804
|
+
}
|
|
805
|
+
}
|
|
806
|
+
}
|
|
807
|
+
},
|
|
808
|
+
"responses": {
|
|
809
|
+
"200": {
|
|
810
|
+
"description": "Success"
|
|
811
|
+
},
|
|
812
|
+
"403": {
|
|
813
|
+
"description": "Forbidden"
|
|
814
|
+
}
|
|
815
|
+
}
|
|
816
|
+
}
|
|
817
|
+
},
|
|
818
|
+
"/v1/message/threads/bulk:unread": {
|
|
819
|
+
"post": {
|
|
820
|
+
"operationId": "threadBulkActionsUnread",
|
|
821
|
+
"summary": "threadBulkActionsUnread",
|
|
822
|
+
"description": "Perform a bulk action of marking an array of thread ids as unread",
|
|
823
|
+
"tags": [
|
|
824
|
+
"Threads"
|
|
825
|
+
],
|
|
826
|
+
"requestBody": {
|
|
827
|
+
"required": true,
|
|
828
|
+
"content": {
|
|
829
|
+
"application/json": {
|
|
830
|
+
"schema": {
|
|
831
|
+
"$ref": "#/components/schemas/BulkActionsPayloadWithScopes"
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
}
|
|
835
|
+
},
|
|
836
|
+
"responses": {
|
|
837
|
+
"200": {
|
|
838
|
+
"description": "Success"
|
|
839
|
+
},
|
|
840
|
+
"403": {
|
|
841
|
+
"description": "Forbidden"
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
}
|
|
845
|
+
},
|
|
846
|
+
"/v1/message/threads/bulk:favorite": {
|
|
847
|
+
"post": {
|
|
848
|
+
"operationId": "threadBulkActionsFavorite",
|
|
849
|
+
"summary": "threadBulkActionsFavorite",
|
|
850
|
+
"description": "Perform a bulk action of marking an array of thread ids favorite",
|
|
851
|
+
"tags": [
|
|
852
|
+
"Threads"
|
|
853
|
+
],
|
|
854
|
+
"requestBody": {
|
|
855
|
+
"required": true,
|
|
856
|
+
"content": {
|
|
857
|
+
"application/json": {
|
|
858
|
+
"schema": {
|
|
859
|
+
"$ref": "#/components/schemas/BulkActionsPayload"
|
|
860
|
+
}
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
},
|
|
864
|
+
"responses": {
|
|
865
|
+
"200": {
|
|
866
|
+
"description": "Success"
|
|
867
|
+
},
|
|
868
|
+
"403": {
|
|
869
|
+
"description": "Forbidden"
|
|
870
|
+
}
|
|
871
|
+
}
|
|
872
|
+
}
|
|
873
|
+
},
|
|
874
|
+
"/v1/message/threads/bulk:unfavorite": {
|
|
875
|
+
"post": {
|
|
876
|
+
"operationId": "threadBulkActionsUnfavorite",
|
|
877
|
+
"summary": "threadBulkActionsUnfavorite",
|
|
878
|
+
"description": "Perform a bulk action of marking an array of thread ids unfavorited",
|
|
879
|
+
"tags": [
|
|
880
|
+
"Threads"
|
|
881
|
+
],
|
|
882
|
+
"requestBody": {
|
|
883
|
+
"required": true,
|
|
884
|
+
"content": {
|
|
885
|
+
"application/json": {
|
|
886
|
+
"schema": {
|
|
887
|
+
"$ref": "#/components/schemas/BulkActionsPayload"
|
|
888
|
+
}
|
|
889
|
+
}
|
|
890
|
+
}
|
|
891
|
+
},
|
|
892
|
+
"responses": {
|
|
893
|
+
"200": {
|
|
894
|
+
"description": "Success"
|
|
895
|
+
},
|
|
896
|
+
"403": {
|
|
897
|
+
"description": "Forbidden"
|
|
898
|
+
}
|
|
899
|
+
}
|
|
900
|
+
}
|
|
901
|
+
},
|
|
902
|
+
"/v1/message/threads/bulk:trash": {
|
|
903
|
+
"post": {
|
|
904
|
+
"operationId": "threadBulkActionsTrash",
|
|
905
|
+
"summary": "threadBulkActionsTrash",
|
|
906
|
+
"description": "Perform a bulk action of trashing an array of threads",
|
|
907
|
+
"tags": [
|
|
908
|
+
"Threads"
|
|
909
|
+
],
|
|
910
|
+
"requestBody": {
|
|
911
|
+
"required": true,
|
|
912
|
+
"content": {
|
|
913
|
+
"application/json": {
|
|
914
|
+
"schema": {
|
|
915
|
+
"$ref": "#/components/schemas/BulkActionsPayload"
|
|
916
|
+
}
|
|
917
|
+
}
|
|
918
|
+
}
|
|
919
|
+
},
|
|
920
|
+
"responses": {
|
|
921
|
+
"200": {
|
|
922
|
+
"description": "Success"
|
|
923
|
+
},
|
|
924
|
+
"403": {
|
|
925
|
+
"description": "Forbidden"
|
|
926
|
+
}
|
|
927
|
+
}
|
|
928
|
+
}
|
|
929
|
+
},
|
|
930
|
+
"/v1/message/threads/bulk:untrash": {
|
|
931
|
+
"post": {
|
|
932
|
+
"operationId": "threadBulkActionsUntrash",
|
|
933
|
+
"summary": "threadBulkActionsUntrash",
|
|
934
|
+
"description": "Perform a bulk action of untrashing an array of threads",
|
|
935
|
+
"tags": [
|
|
936
|
+
"Threads"
|
|
937
|
+
],
|
|
938
|
+
"requestBody": {
|
|
939
|
+
"required": true,
|
|
940
|
+
"content": {
|
|
941
|
+
"application/json": {
|
|
942
|
+
"schema": {
|
|
943
|
+
"$ref": "#/components/schemas/BulkActionsPayload"
|
|
944
|
+
}
|
|
945
|
+
}
|
|
946
|
+
}
|
|
947
|
+
},
|
|
948
|
+
"responses": {
|
|
949
|
+
"200": {
|
|
950
|
+
"description": "Success"
|
|
951
|
+
},
|
|
952
|
+
"403": {
|
|
953
|
+
"description": "Forbidden"
|
|
954
|
+
}
|
|
955
|
+
}
|
|
956
|
+
}
|
|
957
|
+
},
|
|
958
|
+
"/v1/message/threads/bulk:delete": {
|
|
959
|
+
"post": {
|
|
960
|
+
"operationId": "threadBulkActionsDelete",
|
|
961
|
+
"summary": "threadBulkActionsDelete",
|
|
962
|
+
"description": "Performs a bulk permanent delete for all threads",
|
|
963
|
+
"tags": [
|
|
964
|
+
"Threads"
|
|
965
|
+
],
|
|
966
|
+
"requestBody": {
|
|
967
|
+
"required": true,
|
|
968
|
+
"content": {
|
|
969
|
+
"application/json": {
|
|
970
|
+
"schema": {
|
|
971
|
+
"$ref": "#/components/schemas/BulkActionsPayload"
|
|
972
|
+
}
|
|
973
|
+
}
|
|
974
|
+
}
|
|
975
|
+
},
|
|
976
|
+
"responses": {
|
|
977
|
+
"200": {
|
|
978
|
+
"description": "Success"
|
|
979
|
+
},
|
|
980
|
+
"403": {
|
|
981
|
+
"description": "Forbidden"
|
|
982
|
+
}
|
|
983
|
+
}
|
|
984
|
+
}
|
|
985
|
+
},
|
|
986
|
+
"/v1/message/threads/bulk:done": {
|
|
987
|
+
"post": {
|
|
988
|
+
"operationId": "threadBulkActionsDone",
|
|
989
|
+
"summary": "threadBulkActionsDone",
|
|
990
|
+
"description": "Perform a bulk action of marking an array of threads as done",
|
|
991
|
+
"tags": [
|
|
992
|
+
"Threads"
|
|
993
|
+
],
|
|
994
|
+
"requestBody": {
|
|
995
|
+
"required": true,
|
|
996
|
+
"content": {
|
|
997
|
+
"application/json": {
|
|
998
|
+
"schema": {
|
|
999
|
+
"$ref": "#/components/schemas/BulkActionsPayload"
|
|
1000
|
+
}
|
|
1001
|
+
}
|
|
1002
|
+
}
|
|
1003
|
+
},
|
|
1004
|
+
"responses": {
|
|
1005
|
+
"200": {
|
|
1006
|
+
"description": "Success"
|
|
1007
|
+
},
|
|
1008
|
+
"403": {
|
|
1009
|
+
"description": "Forbidden"
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
}
|
|
1013
|
+
},
|
|
1014
|
+
"/v1/message/threads/bulk:open": {
|
|
1015
|
+
"post": {
|
|
1016
|
+
"operationId": "threadBulkActionsOpen",
|
|
1017
|
+
"summary": "threadBulkActionsOpen",
|
|
1018
|
+
"description": "Perform a bulk action of marking an array of threads as open",
|
|
1019
|
+
"tags": [
|
|
1020
|
+
"Threads"
|
|
1021
|
+
],
|
|
1022
|
+
"requestBody": {
|
|
1023
|
+
"required": true,
|
|
1024
|
+
"content": {
|
|
1025
|
+
"application/json": {
|
|
1026
|
+
"schema": {
|
|
1027
|
+
"$ref": "#/components/schemas/BulkActionsPayload"
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
}
|
|
1031
|
+
},
|
|
1032
|
+
"responses": {
|
|
1033
|
+
"200": {
|
|
635
1034
|
"description": "Success"
|
|
636
1035
|
},
|
|
637
1036
|
"403": {
|
|
@@ -660,7 +1059,7 @@
|
|
|
660
1059
|
}
|
|
661
1060
|
],
|
|
662
1061
|
"responses": {
|
|
663
|
-
"
|
|
1062
|
+
"200": {
|
|
664
1063
|
"description": "Success"
|
|
665
1064
|
},
|
|
666
1065
|
"403": {
|
|
@@ -699,7 +1098,7 @@
|
|
|
699
1098
|
}
|
|
700
1099
|
},
|
|
701
1100
|
"responses": {
|
|
702
|
-
"
|
|
1101
|
+
"200": {
|
|
703
1102
|
"description": "Success"
|
|
704
1103
|
},
|
|
705
1104
|
"403": {
|
|
@@ -728,7 +1127,7 @@
|
|
|
728
1127
|
}
|
|
729
1128
|
],
|
|
730
1129
|
"responses": {
|
|
731
|
-
"
|
|
1130
|
+
"200": {
|
|
732
1131
|
"description": "Success"
|
|
733
1132
|
},
|
|
734
1133
|
"403": {
|
|
@@ -767,7 +1166,7 @@
|
|
|
767
1166
|
}
|
|
768
1167
|
},
|
|
769
1168
|
"responses": {
|
|
770
|
-
"
|
|
1169
|
+
"200": {
|
|
771
1170
|
"description": "Success"
|
|
772
1171
|
},
|
|
773
1172
|
"403": {
|
|
@@ -1523,6 +1922,41 @@
|
|
|
1523
1922
|
}
|
|
1524
1923
|
}
|
|
1525
1924
|
},
|
|
1925
|
+
"SearchParamsV2": {
|
|
1926
|
+
"type": "object",
|
|
1927
|
+
"required": [
|
|
1928
|
+
"q"
|
|
1929
|
+
],
|
|
1930
|
+
"properties": {
|
|
1931
|
+
"q": {
|
|
1932
|
+
"description": "Lucene query syntax supported with ElasticSearch",
|
|
1933
|
+
"type": "string",
|
|
1934
|
+
"example": "subject:\"Request for solar panel price\" AND _tags:INBOX"
|
|
1935
|
+
},
|
|
1936
|
+
"from": {
|
|
1937
|
+
"type": "integer",
|
|
1938
|
+
"minimum": 0,
|
|
1939
|
+
"default": 0
|
|
1940
|
+
},
|
|
1941
|
+
"size": {
|
|
1942
|
+
"type": "integer",
|
|
1943
|
+
"minimum": 1,
|
|
1944
|
+
"default": 10
|
|
1945
|
+
},
|
|
1946
|
+
"hydrate": {
|
|
1947
|
+
"type": "boolean",
|
|
1948
|
+
"default": false
|
|
1949
|
+
},
|
|
1950
|
+
"include_scores": {
|
|
1951
|
+
"type": "boolean",
|
|
1952
|
+
"default": false
|
|
1953
|
+
},
|
|
1954
|
+
"sort": {
|
|
1955
|
+
"type": "string"
|
|
1956
|
+
},
|
|
1957
|
+
"highlight": {}
|
|
1958
|
+
}
|
|
1959
|
+
},
|
|
1526
1960
|
"SearchParams": {
|
|
1527
1961
|
"type": "object",
|
|
1528
1962
|
"required": [
|
|
@@ -1550,6 +1984,16 @@
|
|
|
1550
1984
|
}
|
|
1551
1985
|
}
|
|
1552
1986
|
},
|
|
1987
|
+
"SearchIDParams": {
|
|
1988
|
+
"type": "object",
|
|
1989
|
+
"properties": {
|
|
1990
|
+
"q": {
|
|
1991
|
+
"description": "Lucene query syntax supported with ElasticSearch",
|
|
1992
|
+
"type": "string",
|
|
1993
|
+
"example": "subject:\"Request for solar panel price\" AND _tags:INBOX"
|
|
1994
|
+
}
|
|
1995
|
+
}
|
|
1996
|
+
},
|
|
1553
1997
|
"ReadMessagePayload": {
|
|
1554
1998
|
"type": "object",
|
|
1555
1999
|
"required": [
|
|
@@ -1580,13 +2024,152 @@
|
|
|
1580
2024
|
"organization",
|
|
1581
2025
|
"user"
|
|
1582
2026
|
]
|
|
2027
|
+
},
|
|
2028
|
+
"ThreadTimeline": {
|
|
2029
|
+
"type": "object",
|
|
2030
|
+
"required": [
|
|
2031
|
+
"events"
|
|
2032
|
+
],
|
|
2033
|
+
"properties": {
|
|
2034
|
+
"events": {
|
|
2035
|
+
"type": "array",
|
|
2036
|
+
"items": {
|
|
2037
|
+
"$ref": "#/components/schemas/TimelineEvent"
|
|
2038
|
+
}
|
|
2039
|
+
}
|
|
2040
|
+
}
|
|
2041
|
+
},
|
|
2042
|
+
"ThreadDoneEvent": {
|
|
2043
|
+
"type": "object",
|
|
2044
|
+
"required": [
|
|
2045
|
+
"type",
|
|
2046
|
+
"user_id",
|
|
2047
|
+
"organization_id"
|
|
2048
|
+
],
|
|
2049
|
+
"properties": {
|
|
2050
|
+
"type": {
|
|
2051
|
+
"type": "string",
|
|
2052
|
+
"enum": [
|
|
2053
|
+
"THREAD_DONE"
|
|
2054
|
+
]
|
|
2055
|
+
},
|
|
2056
|
+
"user_id": {
|
|
2057
|
+
"type": "string",
|
|
2058
|
+
"description": "User ID of the user who marked the thread as done",
|
|
2059
|
+
"example": 123
|
|
2060
|
+
},
|
|
2061
|
+
"organization_id": {
|
|
2062
|
+
"type": "string",
|
|
2063
|
+
"description": "Organization ID of the organization who marked the thread as done",
|
|
2064
|
+
"example": 456
|
|
2065
|
+
}
|
|
2066
|
+
}
|
|
2067
|
+
},
|
|
2068
|
+
"ThreadOpenEvent": {
|
|
2069
|
+
"type": "object",
|
|
2070
|
+
"required": [
|
|
2071
|
+
"type",
|
|
2072
|
+
"user_id",
|
|
2073
|
+
"organization_id"
|
|
2074
|
+
],
|
|
2075
|
+
"properties": {
|
|
2076
|
+
"type": {
|
|
2077
|
+
"type": "string",
|
|
2078
|
+
"enum": [
|
|
2079
|
+
"THREAD_OPEN"
|
|
2080
|
+
]
|
|
2081
|
+
},
|
|
2082
|
+
"user_id": {
|
|
2083
|
+
"type": "string",
|
|
2084
|
+
"description": "User ID of the user who marked the thread as open",
|
|
2085
|
+
"example": 123
|
|
2086
|
+
},
|
|
2087
|
+
"organization_id": {
|
|
2088
|
+
"type": "string",
|
|
2089
|
+
"description": "Organization ID of the organization who marked the thread as open",
|
|
2090
|
+
"example": 456
|
|
2091
|
+
}
|
|
2092
|
+
}
|
|
2093
|
+
},
|
|
2094
|
+
"TimelineEventData": {
|
|
2095
|
+
"type": "object",
|
|
2096
|
+
"discriminator": {
|
|
2097
|
+
"propertyName": "type"
|
|
2098
|
+
},
|
|
2099
|
+
"oneOf": [
|
|
2100
|
+
{
|
|
2101
|
+
"$ref": "#/components/schemas/ThreadDoneEvent"
|
|
2102
|
+
},
|
|
2103
|
+
{
|
|
2104
|
+
"$ref": "#/components/schemas/ThreadOpenEvent"
|
|
2105
|
+
}
|
|
2106
|
+
]
|
|
2107
|
+
},
|
|
2108
|
+
"TimelineEvent": {
|
|
2109
|
+
"type": "object",
|
|
2110
|
+
"required": [
|
|
2111
|
+
"timestamp",
|
|
2112
|
+
"data"
|
|
2113
|
+
],
|
|
2114
|
+
"properties": {
|
|
2115
|
+
"data": {
|
|
2116
|
+
"$ref": "#/components/schemas/TimelineEventData"
|
|
2117
|
+
},
|
|
2118
|
+
"timestamp": {
|
|
2119
|
+
"type": "string",
|
|
2120
|
+
"description": "Timestamp of the event",
|
|
2121
|
+
"example": "2024-01-01T00:00:00.000Z"
|
|
2122
|
+
}
|
|
2123
|
+
}
|
|
2124
|
+
},
|
|
2125
|
+
"BulkActionsPayloadWithScopes": {
|
|
2126
|
+
"allOf": [
|
|
2127
|
+
{
|
|
2128
|
+
"$ref": "#/components/schemas/BulkActionsPayload"
|
|
2129
|
+
},
|
|
2130
|
+
{
|
|
2131
|
+
"type": "object",
|
|
2132
|
+
"properties": {
|
|
2133
|
+
"scopes": {
|
|
2134
|
+
"description": "The scopes to be used when marking an item as read or unread. The read status will be synced for all provided scopes.",
|
|
2135
|
+
"example": [
|
|
2136
|
+
"organization",
|
|
2137
|
+
"user"
|
|
2138
|
+
],
|
|
2139
|
+
"type": "array",
|
|
2140
|
+
"default": [
|
|
2141
|
+
"organization",
|
|
2142
|
+
"user"
|
|
2143
|
+
],
|
|
2144
|
+
"items": {
|
|
2145
|
+
"$ref": "#/components/schemas/ReadingScope"
|
|
2146
|
+
}
|
|
2147
|
+
}
|
|
2148
|
+
}
|
|
2149
|
+
}
|
|
2150
|
+
]
|
|
2151
|
+
},
|
|
2152
|
+
"BulkActionsPayload": {
|
|
2153
|
+
"type": "object",
|
|
2154
|
+
"required": [
|
|
2155
|
+
"ids"
|
|
2156
|
+
],
|
|
2157
|
+
"properties": {
|
|
2158
|
+
"ids": {
|
|
2159
|
+
"description": "Array of threads you wish to perform bulk actions on",
|
|
2160
|
+
"example": [
|
|
2161
|
+
"6b299eda-4018-4554-8965-c4b5598e6531"
|
|
2162
|
+
],
|
|
2163
|
+
"type": "array",
|
|
2164
|
+
"items": {
|
|
2165
|
+
"type": "string"
|
|
2166
|
+
}
|
|
2167
|
+
}
|
|
2168
|
+
}
|
|
1583
2169
|
}
|
|
1584
2170
|
}
|
|
1585
2171
|
},
|
|
1586
2172
|
"servers": [
|
|
1587
|
-
{
|
|
1588
|
-
"url": "https://message.sls.epilot.io"
|
|
1589
|
-
},
|
|
1590
2173
|
{
|
|
1591
2174
|
"url": "https://message.sls.epilot.io"
|
|
1592
2175
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@epilot/message-client",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.16.0",
|
|
4
4
|
"description": "API Client for epilot Message API",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -72,4 +72,4 @@
|
|
|
72
72
|
"webpack-cli": "^4.4.0"
|
|
73
73
|
},
|
|
74
74
|
"gitHead": "39426e86cfb320fa3227dc03f60ee6a10848e7c7"
|
|
75
|
-
}
|
|
75
|
+
}
|