nexmo_api_specification 0.11.4 → 0.11.5

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: b5c8c40ce265d614d8a602e3cf2652dddb5c3fbb
4
- data.tar.gz: e2545074caadbf429c03c1c319b656a7967c587a
3
+ metadata.gz: 59797b79fc2bdf352abb7962f716b3db01d06111
4
+ data.tar.gz: 77b69d6178834b5ae12910073fa81542f088b352
5
5
  SHA512:
6
- metadata.gz: 01c84df8c3f285993f87ae39816bf4879c69f7506b686a7807beb39c6d0ff1b871264f5faac25b9d3d6f4660be46df0582065afbd824aa39853503aad6fde986
7
- data.tar.gz: 55e0bab7af7b6136b79bae403c592c2e6356928f6b80c47e742eed1e1dae4650b8d18fc4f81f71d3aba08ecbf97b14802d9cec9f4f6fc470f3214c1afb33fe7f
6
+ metadata.gz: 8a463096efb183165f0b44d8192a2ace7f7abb6c12669bd961bec3f49458a477eed21a1b8393fa3a0595264809be732408b752dfbbf7280528ac90ee4304953f
7
+ data.tar.gz: 2a318919dd2eb3f355cff0381d2459a4f6079399f3d70297b60d51f98e3ebdee3b0af4c147b9b6998999d83a684fe61856a2e9eb0a5dbffc9cf00be06e35fe97
@@ -124,7 +124,7 @@ components:
124
124
  pattern: '\d{7,15}'
125
125
  example: 447700900000
126
126
  text:
127
- description: The body of the message being sent
127
+ description: The body of the message being sent. If your message contains characters that can be encoded according to the GSM Standard and Extended tables then you can set the `type` to `text`. If your message contains characters outside this range, then you will need to set the `type` to `unicode`.
128
128
  type: string
129
129
  example: Hello World!
130
130
  ttl:
@@ -12,35 +12,7 @@ info:
12
12
  email: ea-support@nexmo.com
13
13
  x-label: Developer Preview
14
14
  paths:
15
- /legs:
16
- get:
17
- x-swagger-router-controller: listLegs
18
- operationId: listLegs
19
- x-group: leg
20
- summary: List legs
21
- responses:
22
- '200':
23
- $ref: '#/components/responses/LegsListed'
24
- '400':
25
- $ref: '#/components/responses/ValidationError'
26
- '/legs/{leg_id}':
27
- parameters:
28
- - name: leg_id
29
- in: path
30
- required: true
31
- description: Leg ID
32
- schema:
33
- type: string
34
- delete:
35
- x-swagger-router-controller: deleteLeg
36
- operationId: deleteLeg
37
- x-group: leg
38
- summary: Delete a leg
39
- responses:
40
- '200':
41
- $ref: '#/components/responses/Success'
42
- '400':
43
- $ref: '#/components/responses/ClientError'
15
+
44
16
  /conversations:
45
17
  post:
46
18
  x-swagger-router-controller: createConversation
@@ -67,11 +39,7 @@ paths:
67
39
  $ref: '#/components/responses/ConversationsListed'
68
40
  '400':
69
41
  $ref: '#/components/responses/ValidationError'
70
- requestBody:
71
- content:
72
- application/json:
73
- schema:
74
- $ref: '#/components/schemas/ListConversations'
42
+
75
43
  '/conversations/{conv_id}':
76
44
  parameters:
77
45
  - name: conv_id
@@ -150,11 +118,7 @@ paths:
150
118
  $ref: '#/components/responses/ClientError'
151
119
  '404':
152
120
  $ref: '#/components/responses/NotFound'
153
- requestBody:
154
- content:
155
- application/json:
156
- schema:
157
- $ref: '#/components/schemas/GetEventsObject'
121
+
158
122
  '/conversations/{conv_id}/events/{event_id}':
159
123
  parameters:
160
124
  - name: conv_id
@@ -193,11 +157,7 @@ paths:
193
157
  $ref: '#/components/responses/ClientError'
194
158
  '404':
195
159
  $ref: '#/components/responses/NotFound'
196
- requestBody:
197
- content:
198
- application/json:
199
- schema:
200
- $ref: '#/components/schemas/deleteEventRequestPayload'
160
+
201
161
  '/conversations/{conv_id}/members':
202
162
  parameters:
203
163
  - name: conv_id
@@ -359,6 +319,36 @@ paths:
359
319
  responses:
360
320
  '200':
361
321
  $ref: '#/components/responses/FoundList'
322
+
323
+ /legs:
324
+ get:
325
+ x-swagger-router-controller: listLegs
326
+ operationId: listLegs
327
+ x-group: leg
328
+ summary: List legs
329
+ responses:
330
+ '200':
331
+ $ref: '#/components/responses/LegsListed'
332
+ '400':
333
+ $ref: '#/components/responses/ValidationError'
334
+ '/legs/{leg_id}':
335
+ parameters:
336
+ - name: leg_id
337
+ in: path
338
+ required: true
339
+ description: Leg ID
340
+ schema:
341
+ type: string
342
+ delete:
343
+ x-swagger-router-controller: deleteLeg
344
+ operationId: deleteLeg
345
+ x-group: leg
346
+ summary: Delete a leg
347
+ responses:
348
+ '200':
349
+ $ref: '#/components/responses/Success'
350
+ '400':
351
+ $ref: '#/components/responses/ClientError'
362
352
  components:
363
353
  responses:
364
354
  LegsListed:
@@ -642,11 +632,14 @@ components:
642
632
  properties:
643
633
  name:
644
634
  type: string
635
+ example: 'nexmo-conference-standard'
636
+ default: '63f61863-4a51-4f6b-86e1-46edebio0391'
645
637
  description: >-
646
638
  Unique name (within the same application) for the conversation. If
647
639
  not provided, one will be automatically generated.
648
640
  display_name:
649
641
  type: string
642
+ example: 'My-Conversation'
650
643
  description: The display name of the conversation
651
644
 
652
645
  required:
@@ -660,6 +653,7 @@ components:
660
653
  properties:
661
654
  id:
662
655
  type: string
656
+ example: '63f61863-4a51-4f6b-86e1-46edebio0391'
663
657
  description: Conversation ID
664
658
  href:
665
659
  type: string
@@ -674,12 +668,16 @@ components:
674
668
  description: Replace Conversation Request Payload Object
675
669
  properties:
676
670
  name:
671
+ example: 'nexmo-conference-standard'
672
+ default: '63f61863-4a51-4f6b-86e1-46edebio0391'
677
673
  type: string
678
674
  description: >-
679
675
  Unique name (within the same application) for the conversation. If
680
676
  not provided, one will be automatically generated.
681
677
  display_name:
682
678
  type: string
679
+ example: 'My-Conversation'
680
+ description: The display name of the conversation
683
681
 
684
682
  Conversation:
685
683
  discriminator:
@@ -689,18 +687,23 @@ components:
689
687
  properties:
690
688
  uuid:
691
689
  type: string
690
+ example: '63f61863-4a51-4f6b-86e1-46edebio0391'
692
691
  description: Conversation ID
693
692
  name:
693
+ example: 'nexmo-conference-standard'
694
694
  type: string
695
695
  description: Conversation Name
696
696
  display_name:
697
+ example: 'My-Conversation'
697
698
  type: string
698
699
  description: The display name of the conversation
699
700
  timestamp:
700
701
  type: string
702
+ example: '2020-01-01T14:00:00.00Z'
701
703
  description: time when conversation was created
702
704
  sequence_number:
703
705
  type: string
706
+ example: '1'
704
707
  description: the last event id
705
708
 
706
709
  members:
@@ -736,13 +739,16 @@ components:
736
739
  type: object
737
740
  properties:
738
741
  name:
742
+ example: 'nexmo-conference-standard'
739
743
  type: string
740
744
  description: Unique name (within the same application) for the conversation.
741
745
  date_start:
746
+ example: '2020-01-01 12:00:00'
742
747
  type: string
743
748
  format: dateTime
744
749
  description: Return the records that occurred after this point in time.
745
750
  date_end:
751
+ example: '2020-01-01 12:00:00'
746
752
  type: string
747
753
  format: dateTime
748
754
  description: Return the records that occurred at this point in time.
@@ -755,7 +761,7 @@ components:
755
761
  minimum: 0
756
762
  order:
757
763
  type: string
758
- description: Return the records that in ascending or descending order.
764
+ description: 'Return the records that in ascending or descending order.'
759
765
  enum:
760
766
  - asc
761
767
  - desc
@@ -765,21 +771,23 @@ components:
765
771
  discriminator:
766
772
  propertyName: ConversationsListed
767
773
  type: object
768
- description: List Conversations Response Payload Object.
774
+ description: 'List Conversations Response Payload Object.'
769
775
  properties:
770
776
  count:
771
777
  type: number
772
- description: The total number of records returned by your request.
778
+ example: '100'
779
+ description: 'The total number of records returned by your request.'
773
780
  page_size:
774
781
  type: number
775
- description: The amount of records returned in this response.
782
+ example: '20'
783
+ description: 'The amount of records returned in this response.'
776
784
 
777
785
  record_index:
778
786
  type: number
779
- description: Return page_size calls from this index in the response. That is, if your request returns 300 concersations, set record_index to 5 in order to return calls 50 to 59. The default value is 0. That is, the first page_size calls.
787
+ description: 'Return page_size calls from this index in the response. That is, if your request returns 300 concersations, set record_index to 5 in order to return calls 50 to 59. The default value is 0. That is, the first page_size calls.'
780
788
  _links:
781
789
  type: object
782
- description: A series of links between resources in this API in the http://stateless.co/hal_specification.html.
790
+ description: 'A series of links between resources in this API in the http://stateless.co/hal_specification.html.'
783
791
  properties:
784
792
  self:
785
793
  type: object
@@ -866,11 +874,12 @@ components:
866
874
  - record_index
867
875
  - _links
868
876
  - _embedded
877
+
869
878
  CreateDeviceObject:
870
879
  discriminator:
871
880
  propertyName: CreateDeviceObject
872
881
  type: object
873
- description: Create New Device Request Payload Object
882
+ description: 'Create New Device Request Payload Object'
874
883
  properties:
875
884
  device_token:
876
885
  type: string
@@ -885,7 +894,7 @@ components:
885
894
  discriminator:
886
895
  propertyName: DeviceCreated
887
896
  type: object
888
- description: Create New Device Response Payload Object
897
+ description: 'Create New Device Response Payload Object'
889
898
  properties:
890
899
  id:
891
900
  type: string
@@ -896,7 +905,7 @@ components:
896
905
  discriminator:
897
906
  propertyName: CreateEvent
898
907
  type: object
899
- description: Create New Event Request Payload Object
908
+ description: 'Create New Event Request Payload Object'
900
909
  properties:
901
910
  type:
902
911
  type: string
@@ -914,21 +923,21 @@ components:
914
923
  discriminator:
915
924
  propertyName: EventCreated
916
925
  type: object
917
- description: Create New Event Response Payload Object
926
+ description: 'Create New Event Response Payload Object'
918
927
  properties:
919
928
  id:
920
929
  type: string
921
930
  description: Event ID
922
931
  timestamp:
923
932
  type: string
924
- description: time when event was created
933
+ description: 'time when event was created'
925
934
  href:
926
935
  type: string
927
936
  EventRetrieved:
928
937
  discriminator:
929
938
  propertyName: EventRetrieved
930
939
  type: object
931
- description: Retrieve Event Response Payload Object
940
+ description: 'Retrieve Event Response Payload Object'
932
941
  properties:
933
942
  id:
934
943
  type: string
@@ -958,7 +967,7 @@ components:
958
967
  discriminator:
959
968
  propertyName: GetEventsObject
960
969
  type: object
961
- description: Get Events Request Payload Object
970
+ description: 'Get Events Request Payload Object'
962
971
  properties:
963
972
  start_id:
964
973
  type: string
@@ -1400,15 +1409,15 @@ components:
1400
1409
  - $ref: '#/components/schemas/UserDetails'
1401
1410
  x-groups:
1402
1411
  conversation:
1403
- name: "Conversation"
1412
+ name: 'Conversation'
1404
1413
  order: 1
1405
1414
  description: >-
1406
1415
  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.
1407
1416
  schema:
1408
1417
  application/json:
1409
- $ref: '#/components/schemas/ConversationUpdated'
1418
+ $ref: '#/components/schemas/Conversation'
1410
1419
  user:
1411
- name: "User"
1420
+ name: 'User'
1412
1421
  order: 2
1413
1422
  description: >-
1414
1423
  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.
@@ -1416,7 +1425,7 @@ x-groups:
1416
1425
  application/json:
1417
1426
  $ref: '#/components/schemas/GenericResource'
1418
1427
  member:
1419
- name: "Member"
1428
+ name: 'Member'
1420
1429
  order: 3
1421
1430
  description: >-
1422
1431
  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.
@@ -1424,7 +1433,7 @@ x-groups:
1424
1433
  application/json:
1425
1434
  $ref: '#/components/schemas/MemberCreated'
1426
1435
  session:
1427
- name: "Session"
1436
+ name: 'Session'
1428
1437
  order: 3
1429
1438
  description: >-
1430
1439
  Coming soon
@@ -1432,7 +1441,7 @@ x-groups:
1432
1441
  application/json:
1433
1442
  $ref: '#/components/schemas/SessionCreated'
1434
1443
  event:
1435
- name: "Event"
1444
+ name: 'Event'
1436
1445
  order: 4
1437
1446
  description: >-
1438
1447
  Coming soon
@@ -1440,10 +1449,10 @@ x-groups:
1440
1449
  application/json:
1441
1450
  $ref: '#/components/schemas/EventCreated'
1442
1451
  leg:
1443
- name: "Leg"
1444
- order: 4
1445
- description: >-
1446
- A leg can be a video call, IP call, or PSTN call that users participate in using multiple platforms. With this endpoint you can retrieve the details about all of the legs that took place in your application.
1447
- schema:
1448
- application/json:
1449
- $ref: '#/components/schemas/Leg'
1452
+ name: "Leg"
1453
+ order: 4
1454
+ description: >-
1455
+ A leg can be a video call, IP call, or PSTN call that users participate in using multiple platforms. With this endpoint you can retrieve the details about all of the legs that took place in your application.
1456
+ schema:
1457
+ application/json:
1458
+ $ref: '#/components/schemas/Leg'
@@ -1,3 +1,3 @@
1
1
  module NexmoApiSpecification
2
- VERSION = '0.11.4'.freeze
2
+ VERSION = '0.11.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nexmo_api_specification
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.11.4
4
+ version: 0.11.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Butler
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-04 00:00:00.000000000 Z
11
+ date: 2018-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler