nexmo_api_specification 0.10.0 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 545b648b9c7d8a69b9e40890dc6dcf5c43cc3348
4
- data.tar.gz: 40d04446387f76895e2e35b8d0b133b212cbc34a
3
+ metadata.gz: 1353dac0ec6ddecf1c94d47d83eeed7035afa953
4
+ data.tar.gz: 924fc6235debefb6aa19373465b733399818ca40
5
5
  SHA512:
6
- metadata.gz: ebc369d67f21697d8a5bccba58d529200760793c7c2fcca383a4d89b0a25ea59496fd0a1a7ddb499a91ce2a12edfafdaee95c3348f6f3c61b1b617e4b5be415e
7
- data.tar.gz: b3d55b74c67007aa6cc05d5d93004b734a752eae559a544eef6c10501654f6b2b6d520e2a54043bfca3b95926f1c1145ddfc8c599818a7ef1def4933cd278ac3
6
+ metadata.gz: 0ff01bac671dd259b48b9e24df197647648914b56759965a6248293838db80e26315131851d0c4fc202839710acef2609c1d7075050049eef84680b4f6e7b69e
7
+ data.tar.gz: 72607f8a4c13b9a4e1eeb8839cac408b3f190d63351124fa09404b5f85b5d2f5ff18d023a41562bc9267b22c082d9fac212bc8635439b9e7250beb9599d68d56
@@ -0,0 +1,1310 @@
1
+ openapi: 3.0.0
2
+ servers:
3
+ - url: 'https://api.nexmo.com/beta'
4
+ info:
5
+ version: 1.6.0
6
+ title: Nexmo Stitch API
7
+ description: >-
8
+ The Nexmo Stitch API enables you to build conversation features where communication can take place across multiple mediums including IP Messaging, PSTN Voice, SMS and WebRTC Audio and Video. The context of the conversations is maintained though each communication event taking place within a conversation, no matter the medium.
9
+ contact:
10
+ name: Nexmo Support
11
+ url: 'https://developer.nexmo.com/'
12
+ email: ea-support@nexmo.com
13
+ paths:
14
+ /conversations:
15
+ post:
16
+ x-swagger-router-controller: createConversation
17
+ operationId: createConversation
18
+ x-group: conversation
19
+ summary: Create a conversation
20
+ responses:
21
+ '201':
22
+ $ref: '#/components/responses/ConversationUpdated'
23
+ '400':
24
+ $ref: '#/components/responses/ClientError'
25
+ requestBody:
26
+ content:
27
+ application/json:
28
+ schema:
29
+ $ref: '#/components/schemas/CreateConversation'
30
+ get:
31
+ x-swagger-router-controller: listConversations
32
+ operationId: listConversations
33
+ x-group: conversation
34
+ summary: List conversations
35
+ responses:
36
+ '200':
37
+ $ref: '#/components/responses/ConversationsListed'
38
+ '400':
39
+ $ref: '#/components/responses/ValidationError'
40
+ requestBody:
41
+ content:
42
+ application/json:
43
+ schema:
44
+ $ref: '#/components/schemas/ListConversations'
45
+ '/conversations/{conv_id}':
46
+ parameters:
47
+ - name: conv_id
48
+ in: path
49
+ required: true
50
+ description: Conversation ID
51
+ schema:
52
+ type: string
53
+ put:
54
+ x-swagger-router-controller: conversations
55
+ operationId: replaceConversation
56
+ x-group: conversation
57
+ summary: Update a conversation
58
+ responses:
59
+ '200':
60
+ $ref: '#/components/responses/ConversationUpdated'
61
+ '400':
62
+ $ref: '#/components/responses/ClientError'
63
+ requestBody:
64
+ content:
65
+ application/json:
66
+ schema:
67
+ $ref: '#/components/schemas/ReplaceConversation'
68
+ get:
69
+ x-swagger-router-controller: retrieveConversation
70
+ operationId: retrieveConversation
71
+ x-group: conversation
72
+ summary: Retrieve a conversation
73
+ responses:
74
+ '200':
75
+ $ref: '#/components/responses/ConversationRetrieved'
76
+ '400':
77
+ $ref: '#/components/responses/ClientError'
78
+ delete:
79
+ x-swagger-router-controller: deleteConversation
80
+ operationId: deleteConversation
81
+ x-group: conversation
82
+ summary: Delete a conversation
83
+ responses:
84
+ '200':
85
+ $ref: '#/components/responses/Success'
86
+ '400':
87
+ $ref: '#/components/responses/ClientError'
88
+ '/conversations/{conv_id}/events':
89
+ parameters:
90
+ - name: conv_id
91
+ in: path
92
+ required: true
93
+ description: Conversation ID
94
+ schema:
95
+ type: string
96
+ post:
97
+ x-swagger-router-controller: createEvent
98
+ operationId: createEvent
99
+ x-group: event
100
+ summary: Create an event
101
+ responses:
102
+ '201':
103
+ $ref: '#/components/responses/EventCreated'
104
+ '400':
105
+ $ref: '#/components/responses/ClientError'
106
+ requestBody:
107
+ content:
108
+ application/json:
109
+ schema:
110
+ $ref: '#/components/schemas/CreateEvent'
111
+ get:
112
+ x-swagger-router-controller: getEvents
113
+ operationId: getEvents
114
+ x-group: event
115
+ summary: List events
116
+ responses:
117
+ '200':
118
+ $ref: '#/components/responses/EventsRetrieved'
119
+ '400':
120
+ $ref: '#/components/responses/ClientError'
121
+ '404':
122
+ $ref: '#/components/responses/NotFound'
123
+ requestBody:
124
+ content:
125
+ application/json:
126
+ schema:
127
+ $ref: '#/components/schemas/GetEventsObject'
128
+ '/conversations/{conv_id}/events/{event_id}':
129
+ parameters:
130
+ - name: conv_id
131
+ in: path
132
+ required: true
133
+ description: Conversation ID
134
+ schema:
135
+ type: string
136
+ - name: event_id
137
+ in: path
138
+ required: true
139
+ description: Event ID
140
+ schema:
141
+ type: string
142
+ get:
143
+ x-swagger-router-controller: getEvent
144
+ operationId: getEvent
145
+ x-group: event
146
+ summary: Retrieve an event
147
+ responses:
148
+ '200':
149
+ $ref: '#/components/responses/EventRetrieved'
150
+ '400':
151
+ $ref: '#/components/responses/ClientError'
152
+ '404':
153
+ $ref: '#/components/responses/NotFound'
154
+ delete:
155
+ x-swagger-router-controller: deleteEvent
156
+ operationId: deleteEvent
157
+ x-group: event
158
+ summary: Delete an event
159
+ responses:
160
+ '200':
161
+ $ref: '#/components/responses/EventDeleted'
162
+ '400':
163
+ $ref: '#/components/responses/ClientError'
164
+ '404':
165
+ $ref: '#/components/responses/NotFound'
166
+ requestBody:
167
+ content:
168
+ application/json:
169
+ schema:
170
+ $ref: '#/components/schemas/deleteEventRequestPayload'
171
+ '/conversations/{conv_id}/members':
172
+ parameters:
173
+ - name: conv_id
174
+ in: path
175
+ required: true
176
+ description: Conversation ID
177
+ schema:
178
+ type: string
179
+ get:
180
+ x-swagger-router-controller: members
181
+ operationId: getMembers
182
+ x-group: member
183
+ summary: List members
184
+ responses:
185
+ '200':
186
+ $ref: '#/components/responses/MembersRetrieved'
187
+ '400':
188
+ $ref: '#/components/responses/ClientError'
189
+ post:
190
+ x-swagger-router-controller: members
191
+ operationId: createMember
192
+ x-group: member
193
+ summary: Create a member
194
+ responses:
195
+ '201':
196
+ $ref: '#/components/responses/MemberCreated'
197
+ '400':
198
+ $ref: '#/components/responses/ClientError'
199
+ requestBody:
200
+ content:
201
+ application/json:
202
+ schema:
203
+ $ref: '#/components/schemas/CreateMember'
204
+ '/conversations/{conv_id}/members/{member_id}':
205
+ parameters:
206
+ - name: conv_id
207
+ in: path
208
+ required: true
209
+ description: Conversation ID
210
+ schema:
211
+ type: string
212
+ - name: member_id
213
+ in: path
214
+ required: true
215
+ description: Member ID
216
+ schema:
217
+ type: string
218
+ get:
219
+ x-swagger-router-controller: members
220
+ operationId: getMember
221
+ x-group: member
222
+ summary: Retrieve a member
223
+ responses:
224
+ '200':
225
+ $ref: '#/components/responses/MemberRetrieved'
226
+ '404':
227
+ $ref: '#/components/responses/NotFound'
228
+ put:
229
+ x-swagger-router-controller: members
230
+ operationId: updateMember
231
+ x-group: member
232
+ summary: Update a member
233
+ responses:
234
+ '200':
235
+ $ref: '#/components/responses/MemberUpdated'
236
+ requestBody:
237
+ content:
238
+ application/json:
239
+ schema:
240
+ $ref: '#/components/schemas/UpdateMember'
241
+ delete:
242
+ x-swagger-router-controller: members
243
+ operationId: deleteMember
244
+ x-group: member
245
+ summary: Delete a member
246
+ responses:
247
+ '200':
248
+ $ref: '#/components/responses/Success'
249
+ '/conversations/{conv_id}/rtc':
250
+ parameters:
251
+ - name: conv_id
252
+ in: path
253
+ required: true
254
+ description: Conversation ID
255
+ schema:
256
+ type: string
257
+ /users:
258
+ post:
259
+ x-swagger-router-controller: users
260
+ operationId: createUser
261
+ x-group: user
262
+ summary: Create a user
263
+ responses:
264
+ '201':
265
+ $ref: '#/components/responses/Created'
266
+ '400':
267
+ $ref: '#/components/responses/NotFound'
268
+ requestBody:
269
+ $ref: '#/components/requestBodies/UserDetails'
270
+ get:
271
+ x-swagger-router-controller: users
272
+ operationId: getUsers
273
+ x-group: user
274
+ summary: List users
275
+ responses:
276
+ '200':
277
+ $ref: '#/components/responses/FoundUsers'
278
+ '/users/{user_id}':
279
+ parameters:
280
+ - name: user_id
281
+ in: path
282
+ required: true
283
+ description: User ID
284
+ schema:
285
+ type: string
286
+ get:
287
+ x-swagger-router-controller: users
288
+ operationId: getUser
289
+ x-group: user
290
+ summary: Retrieve a user
291
+ responses:
292
+ '200':
293
+ $ref: '#/components/responses/FoundUser'
294
+ '404':
295
+ $ref: '#/components/responses/NotFound'
296
+ put:
297
+ x-swagger-router-controller: users
298
+ operationId: updateUser
299
+ x-group: user
300
+ summary: Update a user
301
+ responses:
302
+ '200':
303
+ $ref: '#/components/responses/Updated'
304
+ '404':
305
+ $ref: '#/components/responses/NotFound'
306
+ requestBody:
307
+ $ref: '#/components/requestBodies/UserDetails'
308
+ delete:
309
+ x-swagger-router-controller: users
310
+ operationId: deleteUser
311
+ x-group: user
312
+ summary: Delete a user
313
+ responses:
314
+ '200':
315
+ $ref: '#/components/responses/Success'
316
+ '/users/{user_id}/conversations':
317
+ parameters:
318
+ - name: user_id
319
+ in: path
320
+ required: true
321
+ description: User ID
322
+ schema:
323
+ type: string
324
+ get:
325
+ x-swagger-router-controller: users
326
+ operationId: getuserConversations
327
+ x-group: user
328
+ summary: List user conversations
329
+ responses:
330
+ '200':
331
+ $ref: '#/components/responses/FoundList'
332
+ components:
333
+ responses:
334
+ ConversationUpdated:
335
+ description: Create / Update Conversation Successfully
336
+ content:
337
+ application/json:
338
+ schema:
339
+ $ref: '#/components/schemas/ConversationUpdated'
340
+ ConversationRetrieved:
341
+ description: Retrieved Conversation Successfully
342
+ content:
343
+ application/json:
344
+ schema:
345
+ $ref: '#/components/schemas/Conversation'
346
+ ConversationsListed:
347
+ description: List Conversations Successfully
348
+ content:
349
+ application/json:
350
+ schema:
351
+ $ref: '#/components/schemas/ConversationsListed'
352
+ DeviceCreated:
353
+ description: Create Device Successfully
354
+ content:
355
+ application/json:
356
+ schema:
357
+ $ref: '#/components/schemas/DeviceCreated'
358
+ EventCreated:
359
+ description: Create Event Successfully
360
+ content:
361
+ application/json:
362
+ schema:
363
+ $ref: '#/components/schemas/EventCreated'
364
+ EventRetrieved:
365
+ description: Retrieved Event Successfully
366
+ content:
367
+ application/json:
368
+ schema:
369
+ $ref: '#/components/schemas/EventRetrieved'
370
+ EventsRetrieved:
371
+ description: Retrieved Events Successfully
372
+ content:
373
+ application/json:
374
+ schema:
375
+ $ref: '#/components/schemas/EventsRetrieved'
376
+ EventDeleted:
377
+ description: Delete Event Successfully
378
+ content:
379
+ application/json:
380
+ schema:
381
+ $ref: '#/components/schemas/EventDeleted'
382
+ Success:
383
+ description: Success
384
+ content:
385
+ application/json:
386
+ schema:
387
+ $ref: '#/components/schemas/Success'
388
+ EmptyJSON:
389
+ description: Empty JSON
390
+ content:
391
+ application/json:
392
+ schema:
393
+ $ref: '#/components/schemas/EmptyJSON'
394
+ ClientError:
395
+ description: Not Found
396
+ content:
397
+ application/json:
398
+ schema:
399
+ $ref: '#/components/schemas/ClientError'
400
+ ValidationError:
401
+ description: Validation Error
402
+ content:
403
+ application/json:
404
+ schema:
405
+ $ref: '#/components/schemas/ValidationError'
406
+ NotFound:
407
+ description: Not Found
408
+ content:
409
+ application/json:
410
+ schema:
411
+ $ref: '#/components/schemas/NotFoundError'
412
+ InternalServerError:
413
+ description: Internal Server Error
414
+ content:
415
+ application/json:
416
+ schema:
417
+ $ref: '#/components/schemas/InternalServerError'
418
+ Created:
419
+ description: Created Successfully
420
+ content:
421
+ application/json:
422
+ schema:
423
+ $ref: '#/components/schemas/Created'
424
+ Updated:
425
+ description: Updated Successfully
426
+ content:
427
+ application/json:
428
+ schema:
429
+ $ref: '#/components/schemas/Updated'
430
+ FoundList:
431
+ description: Retrieved Listing Successfully
432
+ content:
433
+ application/json:
434
+ schema:
435
+ $ref: '#/components/schemas/FoundList'
436
+ MemberCreated:
437
+ description: Create Member Successfully
438
+ content:
439
+ application/json:
440
+ schema:
441
+ $ref: '#/components/schemas/MemberCreated'
442
+ MemberUpdated:
443
+ description: Update Member Successfully
444
+ content:
445
+ application/json:
446
+ schema:
447
+ $ref: '#/components/schemas/MemberRetrieved'
448
+ MemberRetrieved:
449
+ description: Member Retrieved Successfully
450
+ content:
451
+ application/json:
452
+ schema:
453
+ $ref: '#/components/schemas/MemberRetrieved'
454
+ MembersRetrieved:
455
+ description: Members Retrieved Successfully
456
+ content:
457
+ application/json:
458
+ schema:
459
+ $ref: '#/components/schemas/MembersRetrieved'
460
+ CallCreated:
461
+ description: Create Call Successfully
462
+ content:
463
+ application/json:
464
+ schema:
465
+ $ref: '#/components/schemas/CallCreated'
466
+ OfferCreated:
467
+ description: Create Offer Successfully
468
+ content:
469
+ application/json:
470
+ schema:
471
+ $ref: '#/components/schemas/OfferCreated'
472
+ CallAnswered:
473
+ description: Call Answered Successfully
474
+ content:
475
+ application/json:
476
+ schema:
477
+ $ref: '#/components/schemas/CallAnswered'
478
+ CallTerminated:
479
+ description: Call Terminated Successfully
480
+ content:
481
+ application/json:
482
+ schema:
483
+ $ref: '#/components/schemas/CallTerminated'
484
+ SessionCreated:
485
+ description: Create Session Successfully
486
+ content:
487
+ application/json:
488
+ schema:
489
+ $ref: '#/components/schemas/SessionCreated'
490
+ SessionDeleted:
491
+ description: Delete Session Successfully
492
+ content:
493
+ application/json:
494
+ schema:
495
+ $ref: '#/components/schemas/SessionDeleted'
496
+ SessionsPurged:
497
+ description: Purge Session Successfully
498
+ content:
499
+ application/json:
500
+ schema:
501
+ $ref: '#/components/schemas/SessionsPurged'
502
+ FoundUser:
503
+ description: Retrieved User Successfully
504
+ content:
505
+ application/json:
506
+ schema:
507
+ $ref: '#/components/schemas/User'
508
+ FoundUsers:
509
+ description: Retrieved Users Successfully
510
+ content:
511
+ application/json:
512
+ schema:
513
+ $ref: '#/components/schemas/FoundUsers'
514
+ requestBodies:
515
+ UserDetails:
516
+ content:
517
+ application/json:
518
+ schema:
519
+ $ref: '#/components/schemas/UserDetails'
520
+ schemas:
521
+ CreateConversation:
522
+ discriminator:
523
+ propertyName: CreateConversation
524
+ type: object
525
+ description: Create Conversation Request Payload Object
526
+ properties:
527
+ name:
528
+ type: string
529
+ description: >-
530
+ Unique name (within the same application) for the conversation. If
531
+ not provided, one will be automatically generated.
532
+ display_name:
533
+ type: string
534
+ image_url:
535
+ type: string
536
+ numbers:
537
+ type: object
538
+ properties:
539
+ pstn:
540
+ type: string
541
+ sms:
542
+ type: string
543
+ sip:
544
+ type: string
545
+ properties:
546
+ type: object
547
+ properties:
548
+ ttl:
549
+ type: string
550
+ required:
551
+ - display_name
552
+ - image_url
553
+ ConversationUpdated:
554
+ discriminator:
555
+ propertyName: ConversationUpdated
556
+ type: object
557
+ description: Create / Update Conversation Response Payload Object
558
+ properties:
559
+ id:
560
+ type: string
561
+ description: Conversation ID
562
+ href:
563
+ type: string
564
+ description: URL to the conversation
565
+ required:
566
+ - id
567
+ - href
568
+ ReplaceConversation:
569
+ discriminator:
570
+ propertyName: ReplaceConversation
571
+ type: object
572
+ description: Replace Conversation Request Payload Object
573
+ properties:
574
+ name:
575
+ type: string
576
+ description: >-
577
+ Unique name (within the same application) for the conversation. If
578
+ not provided, one will be automatically generated.
579
+ display_name:
580
+ type: string
581
+ image_url:
582
+ type: string
583
+ numbers:
584
+ type: object
585
+ properties:
586
+ pstn:
587
+ type: string
588
+ sms:
589
+ type: string
590
+ sip:
591
+ type: string
592
+ properties:
593
+ type: object
594
+ properties:
595
+ ttl:
596
+ type: string
597
+ Conversation:
598
+ discriminator:
599
+ propertyName: Conversation
600
+ type: object
601
+ description: Conversation Object
602
+ properties:
603
+ uuid:
604
+ type: string
605
+ description: Conversation ID
606
+ name:
607
+ type: string
608
+ description: Conversation Name
609
+ display_name:
610
+ type: string
611
+ description: Display Name
612
+ image_url:
613
+ type: string
614
+ description: Display Name
615
+ timestamp:
616
+ type: string
617
+ description: Display Name
618
+ sequence_number:
619
+ type: string
620
+ description: Display Name
621
+ numbers:
622
+ type: object
623
+ properties:
624
+ pstn:
625
+ type: string
626
+ sms:
627
+ type: string
628
+ sip:
629
+ type: string
630
+ properties:
631
+ type: object
632
+ properties:
633
+ ttl:
634
+ type: string
635
+ members:
636
+ type: array
637
+ items:
638
+ $ref: '#/components/schemas/Member'
639
+ api_key:
640
+ type: string
641
+ _links:
642
+ type: object
643
+ properties:
644
+ self:
645
+ type: object
646
+ properties:
647
+ href:
648
+ type: string
649
+ _embedded:
650
+ type: object
651
+ properties:
652
+ legs:
653
+ type: object
654
+ properties:
655
+ _links:
656
+ type: array
657
+ items:
658
+ $ref: '#/components/schemas/ConversationLeg'
659
+ required:
660
+ - uuid
661
+ ListConversations:
662
+ discriminator:
663
+ propertyName: ListConversations
664
+ description: List Conversations Request Payload Object
665
+ type: object
666
+ properties:
667
+ name:
668
+ type: string
669
+ date_start:
670
+ type: string
671
+ format: dateTime
672
+ date_end:
673
+ type: string
674
+ format: dateTime
675
+ page_size:
676
+ type: number
677
+ minimum: 1
678
+ maximum: 100
679
+ record_index:
680
+ type: number
681
+ minimum: 0
682
+ order:
683
+ type: string
684
+ enum:
685
+ - asc
686
+ - desc
687
+ - ASC
688
+ - DESC
689
+ ConversationsListed:
690
+ discriminator:
691
+ propertyName: ConversationsListed
692
+ type: object
693
+ description: List Conversations Response Payload Object
694
+ properties:
695
+ count:
696
+ type: number
697
+ page_size:
698
+ type: number
699
+ record_index:
700
+ type: number
701
+ _links:
702
+ type: object
703
+ properties:
704
+ self:
705
+ type: object
706
+ properties:
707
+ href:
708
+ type: string
709
+ required:
710
+ - href
711
+ required:
712
+ - self
713
+ _embedded:
714
+ type: object
715
+ properties:
716
+ conversations:
717
+ type: array
718
+ items:
719
+ type: object
720
+ properties:
721
+ uuid:
722
+ type: string
723
+ name:
724
+ type: string
725
+ href:
726
+ type: string
727
+ required:
728
+ - uuid
729
+ - name
730
+ - href
731
+ required:
732
+ - conversations
733
+ required:
734
+ - count
735
+ - page_size
736
+ - record_index
737
+ - _links
738
+ - _embedded
739
+ CreateDeviceObject:
740
+ discriminator:
741
+ propertyName: CreateDeviceObject
742
+ type: object
743
+ description: Create New Device Request Payload Object
744
+ properties:
745
+ device_token:
746
+ type: string
747
+ device_type:
748
+ type: string
749
+ device_push_environment:
750
+ type: string
751
+ required:
752
+ - device_token
753
+ - device_type
754
+ DeviceCreated:
755
+ discriminator:
756
+ propertyName: DeviceCreated
757
+ type: object
758
+ description: Create New Device Response Payload Object
759
+ properties:
760
+ id:
761
+ type: string
762
+ description: Device ID
763
+ href:
764
+ type: string
765
+ CreateEvent:
766
+ discriminator:
767
+ propertyName: CreateEvent
768
+ type: object
769
+ description: Create New Event Request Payload Object
770
+ properties:
771
+ type:
772
+ type: string
773
+ to:
774
+ type: string
775
+ from:
776
+ type: string
777
+ body:
778
+ type: object
779
+ required:
780
+ - type
781
+ - to
782
+ - from
783
+ EventCreated:
784
+ discriminator:
785
+ propertyName: EventCreated
786
+ type: object
787
+ description: Create New Event Response Payload Object
788
+ properties:
789
+ id:
790
+ type: string
791
+ description: Event ID
792
+ timestamp:
793
+ type: string
794
+ href:
795
+ type: string
796
+ EventRetrieved:
797
+ discriminator:
798
+ propertyName: EventRetrieved
799
+ type: object
800
+ description: Retrieve Event Response Payload Object
801
+ properties:
802
+ id:
803
+ type: string
804
+ description: Event ID
805
+ type:
806
+ type: string
807
+ application_id:
808
+ type: string
809
+ conversation_id:
810
+ type: string
811
+ from:
812
+ type: string
813
+ to:
814
+ type: string
815
+ body:
816
+ type: object
817
+ timestamp:
818
+ type: string
819
+ required:
820
+ - id
821
+ - type
822
+ - application_id
823
+ - conversation_id
824
+ - body
825
+ - timestamp
826
+ GetEventsObject:
827
+ discriminator:
828
+ propertyName: GetEventsObject
829
+ type: object
830
+ description: Get Events Request Payload Object
831
+ properties:
832
+ start_id:
833
+ type: string
834
+ end_id:
835
+ type: string
836
+ EventsRetrieved:
837
+ discriminator:
838
+ propertyName: EventsRetrieved
839
+ type: array
840
+ description: Retrieve Events Response Payload Object
841
+ items:
842
+ $ref: '#/components/schemas/EventsRetrievedItem'
843
+ EventsRetrievedItem:
844
+ discriminator:
845
+ propertyName: EventsRetrievedItem
846
+ type: object
847
+ description: Retrieve Events Response Payload Object Item
848
+ properties:
849
+ id:
850
+ type: string
851
+ description: Event ID
852
+ type:
853
+ type: string
854
+ from:
855
+ type: string
856
+ to:
857
+ type: string
858
+ body:
859
+ type: object
860
+ state:
861
+ type: string
862
+ timestamp:
863
+ type: string
864
+ href:
865
+ type: string
866
+ required:
867
+ - id
868
+ - type
869
+ - body
870
+ - timestamp
871
+ - href
872
+ deleteEventRequestPayload:
873
+ discriminator:
874
+ propertyName: deleteEventRequestPayload
875
+ type: object
876
+ description: Delete Event Request Payload Object
877
+ properties:
878
+ from:
879
+ type: string
880
+ EventDeleted:
881
+ discriminator:
882
+ propertyName: EventDeleted
883
+ type: object
884
+ description: Delete Event Response Payload Object
885
+ Success:
886
+ type: object
887
+ description: Success
888
+ discriminator:
889
+ propertyName: Success
890
+ EmptyJSON:
891
+ type: object
892
+ description: Empty JSON payload
893
+ discriminator:
894
+ propertyName: empty
895
+ GenericError:
896
+ type: object
897
+ description: Generic Error
898
+ discriminator:
899
+ propertyName: error
900
+ properties:
901
+ code:
902
+ type: string
903
+ message:
904
+ type: string
905
+ details:
906
+ type: string
907
+ description:
908
+ type: string
909
+ required:
910
+ - code
911
+ ClientError:
912
+ discriminator:
913
+ propertyName: notFound
914
+ allOf:
915
+ - $ref: '#/components/schemas/GenericError'
916
+ NotFoundError:
917
+ discriminator:
918
+ propertyName: notFound
919
+ allOf:
920
+ - $ref: '#/components/schemas/GenericError'
921
+ ValidationError:
922
+ type: object
923
+ description: Validation Error
924
+ discriminator:
925
+ propertyName: validationError
926
+ properties:
927
+ code:
928
+ type: string
929
+ description:
930
+ type: string
931
+ validation:
932
+ type: object
933
+ description: >-
934
+ Validation Errors. See https://validatejs.org/ for the format of the
935
+ errors.
936
+ required:
937
+ - code
938
+ InternalServerError:
939
+ discriminator:
940
+ propertyName: internalServer
941
+ allOf:
942
+ - $ref: '#/components/schemas/GenericError'
943
+ Created:
944
+ discriminator:
945
+ propertyName: created
946
+ allOf:
947
+ - $ref: '#/components/schemas/Success'
948
+ - $ref: '#/components/schemas/GenericResource'
949
+ - description: Created Successfully
950
+ Updated:
951
+ discriminator:
952
+ propertyName: updated
953
+ allOf:
954
+ - $ref: '#/components/schemas/Created'
955
+ - description: Updated Successfully
956
+ FoundList:
957
+ discriminator:
958
+ propertyName: foundList
959
+ allOf:
960
+ - $ref: '#/components/schemas/Success'
961
+ - type: array
962
+ items:
963
+ $ref: '#/components/schemas/GenericResource'
964
+ GenericResource:
965
+ discriminator:
966
+ propertyName: resource
967
+ type: object
968
+ description: Generic Resource
969
+ properties:
970
+ id:
971
+ type: string
972
+ href:
973
+ type: string
974
+ required:
975
+ - id
976
+ - href
977
+ ConversationLeg:
978
+ discriminator:
979
+ propertyName: ConversationLeg
980
+ type: object
981
+ description: Conversation Leg Object
982
+ properties:
983
+ leg_id:
984
+ type: string
985
+ member_id:
986
+ type: string
987
+ required:
988
+ - leg_id
989
+ - member_id
990
+ Member:
991
+ discriminator:
992
+ propertyName: Member
993
+ type: object
994
+ description: Member Object
995
+ properties:
996
+ member_id:
997
+ type: string
998
+ user_id:
999
+ type: string
1000
+ name:
1001
+ type: string
1002
+ state:
1003
+ type: string
1004
+ timestamp:
1005
+ type: string
1006
+ invited_by:
1007
+ type: string
1008
+ required:
1009
+ - member_id
1010
+ - user_id
1011
+ - name
1012
+ - state
1013
+ - timestamp
1014
+ - invited_by
1015
+ CreateMember:
1016
+ discriminator:
1017
+ propertyName: CreateMember
1018
+ type: object
1019
+ description: Create Member Request Payload Object
1020
+ properties:
1021
+ user_id:
1022
+ type: string
1023
+ user_name:
1024
+ type: string
1025
+ member_id:
1026
+ type: string
1027
+ channel:
1028
+ type: string
1029
+ media:
1030
+ type: string
1031
+ action:
1032
+ type: string
1033
+ enum:
1034
+ - invite
1035
+ - join
1036
+ required:
1037
+ - user_id
1038
+ - user_name
1039
+ - member_id
1040
+ - channel
1041
+ - media
1042
+ MemberCreated:
1043
+ discriminator:
1044
+ propertyName: MemberCreated
1045
+ type: object
1046
+ description: Member Created Object
1047
+ properties:
1048
+ id:
1049
+ type: string
1050
+ description: Member ID
1051
+ user_id:
1052
+ type: string
1053
+ state:
1054
+ type: string
1055
+ timestamp:
1056
+ type: string
1057
+ channel:
1058
+ type: string
1059
+ href:
1060
+ type: string
1061
+ format: url
1062
+ required:
1063
+ - id
1064
+ - user_id
1065
+ - state
1066
+ - timestamp
1067
+ - channel
1068
+ - href
1069
+ UpdateMember:
1070
+ discriminator:
1071
+ propertyName: UpdateMember
1072
+ type: object
1073
+ description: Update Member Request Payload Object
1074
+ properties:
1075
+ channel:
1076
+ type: string
1077
+ action:
1078
+ type: string
1079
+ enum:
1080
+ - join
1081
+ MemberRetrieved:
1082
+ discriminator:
1083
+ propertyName: MemberRetrieved
1084
+ type: object
1085
+ description: Member Retrieved Object
1086
+ properties:
1087
+ id:
1088
+ type: string
1089
+ description: Member ID
1090
+ href:
1091
+ type: string
1092
+ format: url
1093
+ required:
1094
+ - id
1095
+ - href
1096
+ MembersListItem:
1097
+ discriminator:
1098
+ propertyName: MembersListItem
1099
+ type: object
1100
+ description: Members List Object
1101
+ properties:
1102
+ user_id:
1103
+ type: string
1104
+ user_name:
1105
+ type: string
1106
+ name:
1107
+ type: string
1108
+ state:
1109
+ type: string
1110
+ required:
1111
+ - user_id
1112
+ - name
1113
+ - user_name
1114
+ - state
1115
+ MembersRetrieved:
1116
+ discriminator:
1117
+ propertyName: MembersRetrieved
1118
+ description: Members List
1119
+ type: array
1120
+ items:
1121
+ $ref: '#/components/schemas/MembersListItem'
1122
+ CreateCall:
1123
+ discriminator:
1124
+ propertyName: CreateCall
1125
+ type: object
1126
+ description: Create Call Request Payload Object
1127
+ properties:
1128
+ body:
1129
+ type: object
1130
+ originating_session:
1131
+ type: string
1132
+ from:
1133
+ type: string
1134
+ CallCreated:
1135
+ discriminator:
1136
+ propertyName: CallCreated
1137
+ type: object
1138
+ description: Create Call Response Payload Object
1139
+ properties:
1140
+ rtc_id:
1141
+ type: string
1142
+ href:
1143
+ type: string
1144
+ format: url
1145
+ CreateOffer:
1146
+ discriminator:
1147
+ propertyName: CreateOffer
1148
+ type: object
1149
+ description: Create Offer Request Payload Object
1150
+ properties:
1151
+ body:
1152
+ type: object
1153
+ OfferCreated:
1154
+ discriminator:
1155
+ propertyName: OfferCreated
1156
+ type: object
1157
+ description: Create Offer Response Payload Object
1158
+ properties:
1159
+ id:
1160
+ type: string
1161
+ href:
1162
+ type: string
1163
+ format: url
1164
+ AnswerCall:
1165
+ discriminator:
1166
+ propertyName: AnswerCall
1167
+ type: object
1168
+ description: Answer Call Request Payload Object
1169
+ properties:
1170
+ body:
1171
+ type: object
1172
+ CallAnswered:
1173
+ discriminator:
1174
+ propertyName: CallAnswered
1175
+ type: object
1176
+ description: Answer Call Response Payload Object
1177
+ properties:
1178
+ id:
1179
+ type: string
1180
+ href:
1181
+ type: string
1182
+ format: url
1183
+ TerminateCall:
1184
+ discriminator:
1185
+ propertyName: TerminatCall
1186
+ type: object
1187
+ description: Terminate Call Request Payload Object
1188
+ properties:
1189
+ body:
1190
+ type: object
1191
+ properties:
1192
+ from:
1193
+ type: string
1194
+ CallTerminated:
1195
+ discriminator:
1196
+ propertyName: CallTerminated
1197
+ type: object
1198
+ description: Terminate Call Response Payload Object
1199
+ properties:
1200
+ id:
1201
+ type: string
1202
+ href:
1203
+ type: string
1204
+ format: url
1205
+ SessionCreated:
1206
+ discriminator:
1207
+ propertyName: SessionCreated
1208
+ type: object
1209
+ description: Create Session Response Payload Object
1210
+ properties:
1211
+ id:
1212
+ type: string
1213
+ user_id:
1214
+ type: string
1215
+ name:
1216
+ type: string
1217
+ href:
1218
+ type: string
1219
+ format: url
1220
+ SessionDeleted:
1221
+ discriminator:
1222
+ propertyName: SessionDeleted
1223
+ type: object
1224
+ description: Delete Session Response Payload Object
1225
+ SessionsPurged:
1226
+ discriminator:
1227
+ propertyName: SessionsPurged
1228
+ type: object
1229
+ description: Purge Session Response Payload Object
1230
+ properties:
1231
+ count:
1232
+ type: integer
1233
+ description: Number of sessions purged
1234
+ FoundUsers:
1235
+ discriminator:
1236
+ propertyName: foundUsers
1237
+ allOf:
1238
+ - $ref: '#/components/schemas/FoundList'
1239
+ - type: array
1240
+ items:
1241
+ $ref: '#/components/schemas/UserOverview'
1242
+ UserOverview:
1243
+ discriminator:
1244
+ propertyName: userOverview
1245
+ allOf:
1246
+ - $ref: '#/components/schemas/GenericResource'
1247
+ - description: User Overview Object
1248
+ UserDetails:
1249
+ discriminator:
1250
+ propertyName: userDetails
1251
+ type: object
1252
+ description: User Details Object
1253
+ properties:
1254
+ name:
1255
+ type: string
1256
+ image_url:
1257
+ type: string
1258
+ display_name:
1259
+ type: string
1260
+ channels:
1261
+ type: string
1262
+ User:
1263
+ discriminator:
1264
+ propertyName: user
1265
+ type: object
1266
+ description: User Object
1267
+ allOf:
1268
+ - $ref: '#/components/schemas/UserOverview'
1269
+ - $ref: '#/components/schemas/UserDetails'
1270
+ x-groups:
1271
+ conversation:
1272
+ name: "Conversation"
1273
+ order: 1
1274
+ description: >-
1275
+ A conversation is a shared core component that Nexmo APIs rely on. Conversations happen over multiple mediums and and can have associated Users through Memberships.
1276
+ schema:
1277
+ application/json:
1278
+ $ref: '#/components/schemas/ConversationUpdated'
1279
+ user:
1280
+ name: "User"
1281
+ order: 2
1282
+ description: >-
1283
+ The concept of a user exists in Nexmo APIs, you can associate one with a user in your own application if you choose. A user can have multiple memberships to conversations and can communicate with other users through various different mediums.
1284
+ schema:
1285
+ application/json:
1286
+ $ref: '#/components/schemas/GenericResource'
1287
+ member:
1288
+ name: "Member"
1289
+ order: 3
1290
+ description: >-
1291
+ Memberships connect users with conversations. Each membership has one conversation and one user however a user can have many memberships to conversations just as conversations can have many members.
1292
+ schema:
1293
+ application/json:
1294
+ $ref: '#/components/schemas/MemberCreated'
1295
+ session:
1296
+ name: "Session"
1297
+ order: 3
1298
+ description: >-
1299
+ Coming soon
1300
+ schema:
1301
+ application/json:
1302
+ $ref: '#/components/schemas/SessionCreated'
1303
+ event:
1304
+ name: "Event"
1305
+ order: 4
1306
+ description: >-
1307
+ Coming soon
1308
+ schema:
1309
+ application/json:
1310
+ $ref: '#/components/schemas/EventCreated'