@asyncapi/converter 0.7.2 → 0.10.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.
Files changed (58) hide show
  1. package/README.md +30 -4
  2. package/cli.js +17 -5
  3. package/lib/convert.d.ts +3 -0
  4. package/lib/convert.js +193 -0
  5. package/lib/index.d.ts +2 -0
  6. package/lib/index.js +5 -215
  7. package/lib/interfaces.d.ts +7 -0
  8. package/lib/interfaces.js +2 -0
  9. package/lib/utils.d.ts +21 -0
  10. package/lib/utils.js +114 -0
  11. package/package.json +21 -6
  12. package/.github/workflows/add-good-first-issue-labels.yml +0 -68
  13. package/.github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml +0 -54
  14. package/.github/workflows/automerge-for-humans-merging.yml +0 -32
  15. package/.github/workflows/automerge-for-humans-remove-ready-to-merge-label-on-edit.yml +0 -35
  16. package/.github/workflows/automerge-orphans.yml +0 -63
  17. package/.github/workflows/automerge.yml +0 -50
  18. package/.github/workflows/autoupdate.yml +0 -32
  19. package/.github/workflows/bump.yml +0 -33
  20. package/.github/workflows/help-command.yml +0 -43
  21. package/.github/workflows/if-go-pr-testing.yml +0 -68
  22. package/.github/workflows/if-nodejs-pr-testing.yml +0 -60
  23. package/.github/workflows/if-nodejs-release.yml +0 -85
  24. package/.github/workflows/if-nodejs-version-bump.yml +0 -48
  25. package/.github/workflows/issues-prs-notifications.yml +0 -72
  26. package/.github/workflows/lint-pr-title.yml +0 -22
  27. package/.github/workflows/notify-tsc-members-mention.yml +0 -142
  28. package/.github/workflows/release-announcements.yml +0 -76
  29. package/.github/workflows/sentiment-analysis.yml +0 -44
  30. package/.github/workflows/stale-issues-prs.yml +0 -42
  31. package/.github/workflows/welcome-first-time-contrib.yml +0 -83
  32. package/CODEOWNERS +0 -8
  33. package/lib/helpers.js +0 -109
  34. package/test/index.js +0 -251
  35. package/test/input/1.0.0/streetlights.yml +0 -120
  36. package/test/input/1.1.0/streetlights.yml +0 -120
  37. package/test/input/1.2.0/gitter-streaming.yml +0 -140
  38. package/test/input/1.2.0/slack-rtm.yml +0 -876
  39. package/test/input/1.2.0/streetlights.yml +0 -120
  40. package/test/input/2.0.0/streetlights.json +0 -172
  41. package/test/input/2.0.0/streetlights.yml +0 -112
  42. package/test/input/2.0.0-rc1/streetlights.yml +0 -109
  43. package/test/input/2.0.0-rc2/streetlights.yml +0 -112
  44. package/test/input/2.1.0/streetlights.yml +0 -112
  45. package/test/input/2.2.0/streetlights.yml +0 -112
  46. package/test/output/2.0.0/gitter-streaming.yml +0 -137
  47. package/test/output/2.0.0/slack-rtm.yml +0 -879
  48. package/test/output/2.0.0/streetlights.yml +0 -112
  49. package/test/output/2.0.0-rc1/gitter-streaming.yml +0 -137
  50. package/test/output/2.0.0-rc1/slack-rtm.yml +0 -879
  51. package/test/output/2.0.0-rc1/streetlights.yml +0 -109
  52. package/test/output/2.0.0-rc2/gitter-streaming.yml +0 -137
  53. package/test/output/2.0.0-rc2/slack-rtm.yml +0 -879
  54. package/test/output/2.0.0-rc2/streetlights.yml +0 -112
  55. package/test/output/2.1.0/streetlights.json +0 -172
  56. package/test/output/2.1.0/streetlights.yml +0 -112
  57. package/test/output/2.2.0/streetlights.yml +0 -112
  58. package/test/output/2.3.0/streetlights.yml +0 -112
@@ -1,140 +0,0 @@
1
- asyncapi: '1.2.0'
2
- info:
3
- title: Gitter Streaming API
4
- version: '1.0.0'
5
-
6
- servers:
7
- - url: https://stream.gitter.im/v1/rooms/{roomId}/{resource}
8
- scheme: https
9
- schemeVersion: '1.1'
10
- variables:
11
- roomId:
12
- description: Id of the Gitter room.
13
- resource:
14
- description: The resource to consume.
15
- enum:
16
- - chatMessages
17
- - events
18
-
19
- security:
20
- - httpBearerToken: []
21
-
22
- stream:
23
- framing:
24
- type: 'chunked'
25
- delimiter: '\n'
26
- read:
27
- - $ref: '#/components/messages/chatMessage'
28
- - $ref: '#/components/messages/heartbeat'
29
-
30
- components:
31
- securitySchemes:
32
- httpBearerToken:
33
- type: http
34
- scheme: bearer
35
- messages:
36
- chatMessage:
37
- summary: >-
38
- A message represents an individual chat message sent to a room.
39
- They are a sub-resource of a room.
40
- payload:
41
- type: object
42
- properties:
43
- id:
44
- type: string
45
- description: ID of the message.
46
- text:
47
- type: string
48
- description: Original message in plain-text/markdown.
49
- html:
50
- type: string
51
- description: HTML formatted message.
52
- sent:
53
- type: string
54
- format: date-time
55
- description: ISO formatted date of the message.
56
- fromUser:
57
- type: object
58
- description: User that sent the message.
59
- properties:
60
- id:
61
- type: string
62
- description: Gitter User ID.
63
- username:
64
- type: string
65
- description: Gitter/GitHub username.
66
- displayName:
67
- type: string
68
- description: Gitter/GitHub user real name.
69
- url:
70
- type: string
71
- description: Path to the user on Gitter.
72
- avatarUrl:
73
- type: string
74
- format: uri
75
- description: User avatar URI.
76
- avatarUrlSmall:
77
- type: string
78
- format: uri
79
- description: User avatar URI (small).
80
- avatarUrlMedium:
81
- type: string
82
- format: uri
83
- description: User avatar URI (medium).
84
- v:
85
- type: number
86
- description: Version.
87
- gv:
88
- type: string
89
- description: Stands for "Gravatar version" and is used for cache busting.
90
- unread:
91
- type: boolean
92
- description: Boolean that indicates if the current user has read the message.
93
- readBy:
94
- type: number
95
- description: Number of users that have read the message.
96
- urls:
97
- type: array
98
- description: List of URLs present in the message.
99
- items:
100
- type: string
101
- format: uri
102
- mentions:
103
- type: array
104
- description: List of @Mentions in the message.
105
- items:
106
- type: object
107
- properties:
108
- screenName:
109
- type: string
110
- userId:
111
- type: string
112
- userIds:
113
- type: array
114
- items:
115
- type: string
116
- issues:
117
- type: array
118
- description: 'List of #Issues referenced in the message.'
119
- items:
120
- type: object
121
- properties:
122
- number:
123
- type: string
124
- meta:
125
- type: array
126
- description: Metadata. This is currently not used for anything.
127
- items: {}
128
- v:
129
- type: number
130
- description: Version.
131
- gv:
132
- type: string
133
- description: Stands for "Gravatar version" and is used for cache busting.
134
-
135
- heartbeat:
136
- summary: Its purpose is to keep the connection alive.
137
- payload:
138
- type: string
139
- enum:
140
- - "\n"