@sipgate/integration-bridge 1.0.36 → 1.0.40

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.
Files changed (103) hide show
  1. package/dist/cache/contact-cache-storage.js +79 -97
  2. package/dist/cache/contact-cache-storage.js.map +1 -1
  3. package/dist/cache/storage/memory-storage-adapter.js +8 -22
  4. package/dist/cache/storage/memory-storage-adapter.js.map +1 -1
  5. package/dist/cache/storage/redis-storage-adapter.js +16 -30
  6. package/dist/cache/storage/redis-storage-adapter.js.map +1 -1
  7. package/dist/cache/token-cache-storage.js +30 -43
  8. package/dist/cache/token-cache-storage.js.map +1 -1
  9. package/dist/controllers/call-log.controller.js +63 -78
  10. package/dist/controllers/call-log.controller.js.map +1 -1
  11. package/dist/controllers/task.controller.js +60 -75
  12. package/dist/controllers/task.controller.js.map +1 -1
  13. package/dist/index.d.ts +6 -2
  14. package/dist/index.js +38 -21
  15. package/dist/index.js.map +1 -1
  16. package/dist/middlewares/error-handler.middleware.js +1 -2
  17. package/dist/middlewares/error-handler.middleware.js.map +1 -1
  18. package/dist/middlewares/extract-header.middleware.d.ts +0 -1
  19. package/dist/middlewares/extract-header.middleware.js +2 -2
  20. package/dist/middlewares/extract-header.middleware.js.map +1 -1
  21. package/dist/models/cache-item-state.model.js +1 -1
  22. package/dist/models/cache-item-state.model.js.map +1 -1
  23. package/dist/models/call-direction.enum.js +1 -1
  24. package/dist/models/call-direction.enum.js.map +1 -1
  25. package/dist/models/call-event.model.js +2 -2
  26. package/dist/models/call-event.model.js.map +1 -1
  27. package/dist/models/contact.model.js +3 -3
  28. package/dist/models/contact.model.js.map +1 -1
  29. package/dist/models/controller.model.js +579 -622
  30. package/dist/models/controller.model.js.map +1 -1
  31. package/dist/models/integration-entity.model.js +1 -1
  32. package/dist/models/integration-entity.model.js.map +1 -1
  33. package/dist/models/integration-error.model.js +1 -1
  34. package/dist/models/integration-error.model.js.map +1 -1
  35. package/dist/models/integrations-event.model.js +1 -1
  36. package/dist/models/integrations-event.model.js.map +1 -1
  37. package/dist/models/pubsub/pubsub-client.model.js +16 -25
  38. package/dist/models/pubsub/pubsub-client.model.js.map +1 -1
  39. package/dist/models/pubsub/pubsub-contacts-message.model.js +1 -1
  40. package/dist/models/pubsub/pubsub-contacts-message.model.js.map +1 -1
  41. package/dist/models/server-error.model.js +1 -0
  42. package/dist/models/server-error.model.js.map +1 -1
  43. package/dist/swagger/openapi-spec.d.ts +972 -0
  44. package/dist/swagger/openapi-spec.js +787 -0
  45. package/dist/swagger/openapi-spec.js.map +1 -0
  46. package/dist/util/anonymize-key.js +1 -2
  47. package/dist/util/anonymize-key.js.map +1 -1
  48. package/dist/util/call-comment.js +5 -6
  49. package/dist/util/call-comment.js.map +1 -1
  50. package/dist/util/call-event.util.js +1 -2
  51. package/dist/util/call-event.util.js.map +1 -1
  52. package/dist/util/callEventHelper.js +4 -4
  53. package/dist/util/callEventHelper.js.map +1 -1
  54. package/dist/util/contact.util.js +10 -8
  55. package/dist/util/contact.util.js.map +1 -1
  56. package/dist/util/env.js +19 -9
  57. package/dist/util/env.js.map +1 -1
  58. package/dist/util/error/delegate-to-frontend.error.js +1 -0
  59. package/dist/util/error/delegate-to-frontend.error.js.map +1 -1
  60. package/dist/util/error/error.js +11 -8
  61. package/dist/util/error/error.js.map +1 -1
  62. package/dist/util/gdpr/gdprSlackNotification.js +22 -22
  63. package/dist/util/gdpr/gdprSlackNotification.js.map +1 -1
  64. package/dist/util/gdpr/index.js +17 -7
  65. package/dist/util/gdpr/index.js.map +1 -1
  66. package/dist/util/get-contact-cache.js +1 -2
  67. package/dist/util/get-contact-cache.js.map +1 -1
  68. package/dist/util/http/default-axios.js +1 -2
  69. package/dist/util/http/default-axios.js.map +1 -1
  70. package/dist/util/http/index.js +17 -7
  71. package/dist/util/http/index.js.map +1 -1
  72. package/dist/util/http/pagination.js +32 -85
  73. package/dist/util/http/pagination.js.map +1 -1
  74. package/dist/util/http/rate-limited-axios.js +42 -61
  75. package/dist/util/http/rate-limited-axios.js.map +1 -1
  76. package/dist/util/http/retrying-axios.js +11 -23
  77. package/dist/util/http/retrying-axios.js.map +1 -1
  78. package/dist/util/http/url.js +1 -2
  79. package/dist/util/http/url.js.map +1 -1
  80. package/dist/util/index.js +17 -7
  81. package/dist/util/index.js.map +1 -1
  82. package/dist/util/lang/delay.js +1 -2
  83. package/dist/util/lang/delay.js.map +1 -1
  84. package/dist/util/lang/diff.js +19 -10
  85. package/dist/util/lang/diff.js.map +1 -1
  86. package/dist/util/logger.util.js +7 -2
  87. package/dist/util/logger.util.js.map +1 -1
  88. package/dist/util/oauth.js +131 -134
  89. package/dist/util/oauth.js.map +1 -1
  90. package/dist/util/phone-number-utils.js +4 -5
  91. package/dist/util/phone-number-utils.js.map +1 -1
  92. package/dist/util/security/index.js +17 -7
  93. package/dist/util/security/index.js.map +1 -1
  94. package/dist/util/security/nonce.js +5 -6
  95. package/dist/util/security/nonce.js.map +1 -1
  96. package/dist/util/size-of.js +1 -1
  97. package/dist/util/size-of.js.map +1 -1
  98. package/dist/util/token-util.js +46 -62
  99. package/dist/util/token-util.js.map +1 -1
  100. package/dist/util/validate.js +1 -2
  101. package/dist/util/validate.js.map +1 -1
  102. package/package.json +25 -38
  103. package/README.md +0 -117
@@ -0,0 +1,972 @@
1
+ export declare const openApiSpec: {
2
+ openapi: string;
3
+ info: {
4
+ title: string;
5
+ description: string;
6
+ version: string;
7
+ };
8
+ tags: {
9
+ name: string;
10
+ description: string;
11
+ }[];
12
+ security: {
13
+ providerKey: never[];
14
+ }[];
15
+ paths: {
16
+ '/contacts': {
17
+ get: {
18
+ tags: string[];
19
+ summary: string;
20
+ description: string;
21
+ responses: {
22
+ '200': {
23
+ description: string;
24
+ headers: {
25
+ 'X-Fetching-State': {
26
+ schema: {
27
+ type: string;
28
+ enum: string[];
29
+ };
30
+ description: string;
31
+ };
32
+ 'X-Provider-Key': {
33
+ schema: {
34
+ type: string;
35
+ };
36
+ description: string;
37
+ };
38
+ };
39
+ content: {
40
+ 'application/json': {
41
+ schema: {
42
+ type: string;
43
+ items: {
44
+ $ref: string;
45
+ };
46
+ };
47
+ };
48
+ };
49
+ };
50
+ };
51
+ };
52
+ post: {
53
+ tags: string[];
54
+ summary: string;
55
+ requestBody: {
56
+ required: boolean;
57
+ content: {
58
+ 'application/json': {
59
+ schema: {
60
+ $ref: string;
61
+ };
62
+ };
63
+ };
64
+ };
65
+ responses: {
66
+ '200': {
67
+ description: string;
68
+ content: {
69
+ 'application/json': {
70
+ schema: {
71
+ $ref: string;
72
+ };
73
+ };
74
+ };
75
+ };
76
+ };
77
+ };
78
+ };
79
+ '/contacts/{id}': {
80
+ get: {
81
+ tags: string[];
82
+ summary: string;
83
+ parameters: ({
84
+ name: string;
85
+ in: string;
86
+ required: boolean;
87
+ schema: {
88
+ type: string;
89
+ $ref?: undefined;
90
+ };
91
+ description?: undefined;
92
+ } | {
93
+ name: string;
94
+ in: string;
95
+ required: boolean;
96
+ schema: {
97
+ $ref: string;
98
+ type?: undefined;
99
+ };
100
+ description: string;
101
+ })[];
102
+ responses: {
103
+ '200': {
104
+ description: string;
105
+ content: {
106
+ 'application/json': {
107
+ schema: {
108
+ $ref: string;
109
+ };
110
+ };
111
+ };
112
+ };
113
+ };
114
+ };
115
+ put: {
116
+ tags: string[];
117
+ summary: string;
118
+ parameters: {
119
+ name: string;
120
+ in: string;
121
+ required: boolean;
122
+ schema: {
123
+ type: string;
124
+ };
125
+ }[];
126
+ requestBody: {
127
+ required: boolean;
128
+ content: {
129
+ 'application/json': {
130
+ schema: {
131
+ $ref: string;
132
+ };
133
+ };
134
+ };
135
+ };
136
+ responses: {
137
+ '200': {
138
+ description: string;
139
+ content: {
140
+ 'application/json': {
141
+ schema: {
142
+ $ref: string;
143
+ };
144
+ };
145
+ };
146
+ };
147
+ };
148
+ };
149
+ delete: {
150
+ tags: string[];
151
+ summary: string;
152
+ parameters: {
153
+ name: string;
154
+ in: string;
155
+ required: boolean;
156
+ schema: {
157
+ type: string;
158
+ };
159
+ }[];
160
+ responses: {
161
+ '200': {
162
+ description: string;
163
+ };
164
+ };
165
+ };
166
+ };
167
+ '/contacts/stream': {
168
+ post: {
169
+ tags: string[];
170
+ summary: string;
171
+ description: string;
172
+ responses: {
173
+ '200': {
174
+ description: string;
175
+ content: {
176
+ 'application/json': {
177
+ schema: {
178
+ type: string;
179
+ properties: {
180
+ timestamp: {
181
+ type: string;
182
+ };
183
+ };
184
+ };
185
+ };
186
+ };
187
+ };
188
+ };
189
+ };
190
+ };
191
+ '/contacts/{id}/entities': {
192
+ get: {
193
+ tags: string[];
194
+ summary: string;
195
+ parameters: {
196
+ name: string;
197
+ in: string;
198
+ required: boolean;
199
+ schema: {
200
+ type: string;
201
+ };
202
+ description: string;
203
+ }[];
204
+ responses: {
205
+ '200': {
206
+ description: string;
207
+ content: {
208
+ 'application/json': {
209
+ schema: {
210
+ type: string;
211
+ items: {
212
+ $ref: string;
213
+ };
214
+ };
215
+ };
216
+ };
217
+ };
218
+ };
219
+ };
220
+ };
221
+ '/entity/{type}/{id}': {
222
+ get: {
223
+ tags: string[];
224
+ summary: string;
225
+ parameters: ({
226
+ name: string;
227
+ in: string;
228
+ required: boolean;
229
+ schema: {
230
+ $ref: string;
231
+ type?: undefined;
232
+ };
233
+ } | {
234
+ name: string;
235
+ in: string;
236
+ required: boolean;
237
+ schema: {
238
+ type: string;
239
+ $ref?: undefined;
240
+ };
241
+ })[];
242
+ responses: {
243
+ '200': {
244
+ description: string;
245
+ content: {
246
+ 'application/json': {
247
+ schema: {
248
+ $ref: string;
249
+ };
250
+ };
251
+ };
252
+ };
253
+ };
254
+ };
255
+ };
256
+ '/events/calls': {
257
+ post: {
258
+ tags: string[];
259
+ summary: string;
260
+ deprecated: boolean;
261
+ description: string;
262
+ requestBody: {
263
+ required: boolean;
264
+ content: {
265
+ 'application/json': {
266
+ schema: {
267
+ $ref: string;
268
+ };
269
+ };
270
+ };
271
+ };
272
+ responses: {
273
+ '200': {
274
+ description: string;
275
+ content: {
276
+ 'application/json': {
277
+ schema: {
278
+ type: string;
279
+ };
280
+ };
281
+ };
282
+ };
283
+ };
284
+ };
285
+ };
286
+ '/events/calls/{id}': {
287
+ put: {
288
+ tags: string[];
289
+ summary: string;
290
+ deprecated: boolean;
291
+ description: string;
292
+ parameters: {
293
+ name: string;
294
+ in: string;
295
+ required: boolean;
296
+ schema: {
297
+ type: string;
298
+ };
299
+ }[];
300
+ requestBody: {
301
+ required: boolean;
302
+ content: {
303
+ 'application/json': {
304
+ schema: {
305
+ $ref: string;
306
+ };
307
+ };
308
+ };
309
+ };
310
+ responses: {
311
+ '200': {
312
+ description: string;
313
+ };
314
+ };
315
+ };
316
+ };
317
+ '/events/connected': {
318
+ post: {
319
+ tags: string[];
320
+ summary: string;
321
+ description: string;
322
+ responses: {
323
+ '200': {
324
+ description: string;
325
+ };
326
+ };
327
+ };
328
+ };
329
+ '/events/disconnected': {
330
+ post: {
331
+ tags: string[];
332
+ summary: string;
333
+ description: string;
334
+ responses: {
335
+ '200': {
336
+ description: string;
337
+ };
338
+ };
339
+ };
340
+ };
341
+ '/call-log': {
342
+ put: {
343
+ tags: string[];
344
+ summary: string;
345
+ requestBody: {
346
+ required: boolean;
347
+ content: {
348
+ 'application/json': {
349
+ schema: {
350
+ $ref: string;
351
+ };
352
+ };
353
+ };
354
+ };
355
+ responses: {
356
+ '200': {
357
+ description: string;
358
+ content: {
359
+ 'application/json': {
360
+ schema: {
361
+ type: string;
362
+ items: {
363
+ $ref: string;
364
+ };
365
+ };
366
+ };
367
+ };
368
+ };
369
+ };
370
+ };
371
+ };
372
+ '/call-log/phoneNumber': {
373
+ put: {
374
+ tags: string[];
375
+ summary: string;
376
+ requestBody: {
377
+ required: boolean;
378
+ content: {
379
+ 'application/json': {
380
+ schema: {
381
+ $ref: string;
382
+ };
383
+ };
384
+ };
385
+ };
386
+ responses: {
387
+ '200': {
388
+ description: string;
389
+ content: {
390
+ 'application/json': {
391
+ schema: {
392
+ nullable: boolean;
393
+ $ref: string;
394
+ };
395
+ };
396
+ };
397
+ };
398
+ };
399
+ };
400
+ };
401
+ '/call-log-metadata': {
402
+ get: {
403
+ tags: string[];
404
+ summary: string;
405
+ responses: {
406
+ '200': {
407
+ description: string;
408
+ content: {
409
+ 'application/json': {
410
+ schema: {
411
+ $ref: string;
412
+ };
413
+ };
414
+ };
415
+ };
416
+ };
417
+ };
418
+ };
419
+ '/health': {
420
+ get: {
421
+ tags: string[];
422
+ summary: string;
423
+ description: string;
424
+ security: never[];
425
+ responses: {
426
+ '200': {
427
+ description: string;
428
+ };
429
+ };
430
+ };
431
+ };
432
+ '/validate-token': {
433
+ get: {
434
+ tags: string[];
435
+ summary: string;
436
+ responses: {
437
+ '200': {
438
+ description: string;
439
+ content: {
440
+ 'text/plain': {
441
+ schema: {
442
+ type: string;
443
+ example: string;
444
+ };
445
+ };
446
+ };
447
+ };
448
+ '401': {
449
+ description: string;
450
+ };
451
+ };
452
+ };
453
+ };
454
+ '/oauth2/redirect': {
455
+ get: {
456
+ tags: string[];
457
+ summary: string;
458
+ description: string;
459
+ security: never[];
460
+ responses: {
461
+ '200': {
462
+ description: string;
463
+ content: {
464
+ 'application/json': {
465
+ schema: {
466
+ type: string;
467
+ properties: {
468
+ redirectUrl: {
469
+ type: string;
470
+ };
471
+ };
472
+ };
473
+ };
474
+ };
475
+ };
476
+ };
477
+ };
478
+ };
479
+ '/oauth2/callback': {
480
+ get: {
481
+ tags: string[];
482
+ summary: string;
483
+ description: string;
484
+ security: never[];
485
+ parameters: {
486
+ name: string;
487
+ in: string;
488
+ schema: {
489
+ type: string;
490
+ };
491
+ description: string;
492
+ }[];
493
+ responses: {
494
+ '302': {
495
+ description: string;
496
+ };
497
+ };
498
+ };
499
+ };
500
+ '/oauth2/token': {
501
+ get: {
502
+ tags: string[];
503
+ summary: string;
504
+ description: string;
505
+ security: never[];
506
+ parameters: {
507
+ name: string;
508
+ in: string;
509
+ schema: {
510
+ type: string;
511
+ };
512
+ description: string;
513
+ }[];
514
+ responses: {
515
+ '200': {
516
+ description: string;
517
+ content: {
518
+ 'application/json': {
519
+ schema: {
520
+ type: string;
521
+ properties: {
522
+ apiKey: {
523
+ type: string;
524
+ };
525
+ apiUrl: {
526
+ type: string;
527
+ };
528
+ };
529
+ };
530
+ };
531
+ };
532
+ };
533
+ };
534
+ };
535
+ };
536
+ '/account/id': {
537
+ get: {
538
+ tags: string[];
539
+ summary: string;
540
+ responses: {
541
+ '200': {
542
+ description: string;
543
+ content: {
544
+ 'application/json': {
545
+ schema: {
546
+ type: string;
547
+ };
548
+ };
549
+ };
550
+ };
551
+ };
552
+ };
553
+ };
554
+ '/webhook': {
555
+ post: {
556
+ tags: string[];
557
+ summary: string;
558
+ description: string;
559
+ security: never[];
560
+ requestBody: {
561
+ required: boolean;
562
+ content: {
563
+ 'application/json': {
564
+ schema: {
565
+ type: string;
566
+ };
567
+ };
568
+ };
569
+ };
570
+ responses: {
571
+ '200': {
572
+ description: string;
573
+ };
574
+ '403': {
575
+ description: string;
576
+ };
577
+ };
578
+ };
579
+ };
580
+ '/tasks/{id}': {
581
+ get: {
582
+ tags: string[];
583
+ summary: string;
584
+ parameters: {
585
+ name: string;
586
+ in: string;
587
+ required: boolean;
588
+ schema: {
589
+ type: string;
590
+ };
591
+ }[];
592
+ responses: {
593
+ '200': {
594
+ description: string;
595
+ content: {
596
+ 'application/json': {
597
+ schema: {
598
+ $ref: string;
599
+ };
600
+ };
601
+ };
602
+ };
603
+ };
604
+ };
605
+ };
606
+ '/tasks': {
607
+ post: {
608
+ tags: string[];
609
+ summary: string;
610
+ requestBody: {
611
+ required: boolean;
612
+ content: {
613
+ 'application/json': {
614
+ schema: {
615
+ $ref: string;
616
+ };
617
+ };
618
+ };
619
+ };
620
+ responses: {
621
+ '200': {
622
+ description: string;
623
+ content: {
624
+ 'application/json': {
625
+ schema: {
626
+ type: string;
627
+ properties: {
628
+ followUpId: {
629
+ type: string;
630
+ };
631
+ };
632
+ };
633
+ };
634
+ };
635
+ };
636
+ };
637
+ };
638
+ };
639
+ '/task-metadata': {
640
+ get: {
641
+ tags: string[];
642
+ summary: string;
643
+ responses: {
644
+ '200': {
645
+ description: string;
646
+ content: {
647
+ 'application/json': {
648
+ schema: {
649
+ $ref: string;
650
+ };
651
+ };
652
+ };
653
+ };
654
+ };
655
+ };
656
+ };
657
+ };
658
+ components: {
659
+ securitySchemes: {
660
+ providerKey: {
661
+ type: string;
662
+ in: string;
663
+ name: string;
664
+ description: string;
665
+ };
666
+ };
667
+ schemas: {
668
+ PhoneNumberLabel: {
669
+ type: string;
670
+ enum: string[];
671
+ };
672
+ PhoneNumber: {
673
+ type: string;
674
+ required: string[];
675
+ properties: {
676
+ label: {
677
+ type: string;
678
+ description: string;
679
+ };
680
+ phoneNumber: {
681
+ type: string;
682
+ example: string;
683
+ };
684
+ };
685
+ };
686
+ ContactScope: {
687
+ type: string;
688
+ enum: string[];
689
+ };
690
+ IntegrationEntityType: {
691
+ type: string;
692
+ enum: string[];
693
+ };
694
+ ContactTemplate: {
695
+ type: string;
696
+ required: string[];
697
+ properties: {
698
+ name: {
699
+ type: string;
700
+ nullable: boolean;
701
+ };
702
+ firstName: {
703
+ type: string;
704
+ nullable: boolean;
705
+ };
706
+ lastName: {
707
+ type: string;
708
+ nullable: boolean;
709
+ };
710
+ email: {
711
+ type: string;
712
+ nullable: boolean;
713
+ };
714
+ organization: {
715
+ type: string;
716
+ nullable: boolean;
717
+ };
718
+ phoneNumbers: {
719
+ type: string;
720
+ items: {
721
+ $ref: string;
722
+ };
723
+ };
724
+ type: {
725
+ $ref: string;
726
+ };
727
+ scope: {
728
+ $ref: string;
729
+ };
730
+ };
731
+ };
732
+ Contact: {
733
+ allOf: ({
734
+ $ref: string;
735
+ type?: undefined;
736
+ required?: undefined;
737
+ properties?: undefined;
738
+ } | {
739
+ type: string;
740
+ required: string[];
741
+ properties: {
742
+ id: {
743
+ type: string;
744
+ };
745
+ contactUrl: {
746
+ type: string;
747
+ nullable: boolean;
748
+ };
749
+ avatarUrl: {
750
+ type: string;
751
+ nullable: boolean;
752
+ };
753
+ readonly: {
754
+ type: string;
755
+ };
756
+ relatesTo: {
757
+ type: string;
758
+ items: {
759
+ $ref: string;
760
+ };
761
+ };
762
+ };
763
+ $ref?: undefined;
764
+ })[];
765
+ };
766
+ IntegrationEntity: {
767
+ type: string;
768
+ required: string[];
769
+ properties: {
770
+ id: {
771
+ type: string;
772
+ };
773
+ type: {
774
+ $ref: string;
775
+ };
776
+ source: {
777
+ type: string;
778
+ };
779
+ };
780
+ };
781
+ LabeledIntegrationEntity: {
782
+ allOf: ({
783
+ $ref: string;
784
+ type?: undefined;
785
+ required?: undefined;
786
+ properties?: undefined;
787
+ } | {
788
+ type: string;
789
+ required: string[];
790
+ properties: {
791
+ label: {
792
+ type: string;
793
+ };
794
+ };
795
+ $ref?: undefined;
796
+ })[];
797
+ };
798
+ LoggedIntegrationEntity: {
799
+ allOf: ({
800
+ $ref: string;
801
+ type?: undefined;
802
+ required?: undefined;
803
+ properties?: undefined;
804
+ } | {
805
+ type: string;
806
+ required: string[];
807
+ properties: {
808
+ logId: {
809
+ type: string;
810
+ };
811
+ };
812
+ $ref?: undefined;
813
+ })[];
814
+ };
815
+ CallDirection: {
816
+ type: string;
817
+ enum: string[];
818
+ };
819
+ CallParticipantType: {
820
+ type: string;
821
+ enum: string[];
822
+ };
823
+ CallState: {
824
+ type: string;
825
+ enum: string[];
826
+ };
827
+ CallParticipant: {
828
+ type: string;
829
+ required: string[];
830
+ properties: {
831
+ type: {
832
+ $ref: string;
833
+ };
834
+ phoneNumber: {
835
+ type: string;
836
+ };
837
+ };
838
+ };
839
+ CallEvent: {
840
+ type: string;
841
+ required: string[];
842
+ properties: {
843
+ id: {
844
+ type: string;
845
+ };
846
+ startTime: {
847
+ type: string;
848
+ };
849
+ endTime: {
850
+ type: string;
851
+ };
852
+ direction: {
853
+ $ref: string;
854
+ };
855
+ participants: {
856
+ type: string;
857
+ items: {
858
+ $ref: string;
859
+ };
860
+ };
861
+ note: {
862
+ type: string;
863
+ };
864
+ state: {
865
+ $ref: string;
866
+ };
867
+ outcome: {
868
+ type: string;
869
+ };
870
+ };
871
+ };
872
+ CallEventWithIntegrationEntities: {
873
+ allOf: ({
874
+ $ref: string;
875
+ type?: undefined;
876
+ required?: undefined;
877
+ properties?: undefined;
878
+ } | {
879
+ type: string;
880
+ required: string[];
881
+ properties: {
882
+ integrationEntities: {
883
+ type: string;
884
+ items: {
885
+ $ref: string;
886
+ };
887
+ };
888
+ };
889
+ $ref?: undefined;
890
+ })[];
891
+ };
892
+ Task: {
893
+ type: string;
894
+ required: string[];
895
+ properties: {
896
+ id: {
897
+ type: string;
898
+ };
899
+ content: {
900
+ type: string;
901
+ };
902
+ createdAt: {
903
+ type: string;
904
+ };
905
+ dueAt: {
906
+ type: string;
907
+ };
908
+ title: {
909
+ type: string;
910
+ };
911
+ type: {
912
+ type: string;
913
+ };
914
+ link: {
915
+ type: string;
916
+ };
917
+ };
918
+ };
919
+ FollowUpWithIntegrationEntities: {
920
+ type: string;
921
+ required: string[];
922
+ properties: {
923
+ content: {
924
+ type: string;
925
+ };
926
+ dueAt: {
927
+ type: string;
928
+ };
929
+ title: {
930
+ type: string;
931
+ };
932
+ type: {
933
+ type: string;
934
+ };
935
+ integrationEntities: {
936
+ type: string;
937
+ items: {
938
+ $ref: string;
939
+ };
940
+ };
941
+ };
942
+ };
943
+ IntegrationDefinedOptions: {
944
+ type: string;
945
+ required: string[];
946
+ properties: {
947
+ label: {
948
+ type: string;
949
+ };
950
+ type: {
951
+ type: string;
952
+ };
953
+ options: {
954
+ type: string;
955
+ items: {
956
+ type: string;
957
+ required: string[];
958
+ properties: {
959
+ label: {
960
+ type: string;
961
+ };
962
+ key: {
963
+ type: string;
964
+ };
965
+ };
966
+ };
967
+ };
968
+ };
969
+ };
970
+ };
971
+ };
972
+ };