@asyncapi/converter 0.8.0 → 0.11.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/README.md +30 -4
- package/cli.js +18 -6
- package/lib/convert.d.ts +3 -0
- package/lib/convert.js +198 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.js +5 -212
- package/lib/interfaces.d.ts +7 -0
- package/lib/interfaces.js +2 -0
- package/lib/utils.d.ts +21 -0
- package/lib/utils.js +114 -0
- package/package.json +21 -6
- package/.github/workflows/add-good-first-issue-labels.yml +0 -68
- package/.github/workflows/automerge-for-humans-add-ready-to-merge-or-do-not-merge-label.yml +0 -54
- package/.github/workflows/automerge-for-humans-merging.yml +0 -32
- package/.github/workflows/automerge-for-humans-remove-ready-to-merge-label-on-edit.yml +0 -35
- package/.github/workflows/automerge-orphans.yml +0 -63
- package/.github/workflows/automerge.yml +0 -50
- package/.github/workflows/autoupdate.yml +0 -32
- package/.github/workflows/bump.yml +0 -33
- package/.github/workflows/help-command.yml +0 -43
- package/.github/workflows/if-go-pr-testing.yml +0 -68
- package/.github/workflows/if-nodejs-pr-testing.yml +0 -60
- package/.github/workflows/if-nodejs-release.yml +0 -85
- package/.github/workflows/if-nodejs-version-bump.yml +0 -48
- package/.github/workflows/issues-prs-notifications.yml +0 -72
- package/.github/workflows/lint-pr-title.yml +0 -22
- package/.github/workflows/notify-tsc-members-mention.yml +0 -142
- package/.github/workflows/release-announcements.yml +0 -76
- package/.github/workflows/sentiment-analysis.yml +0 -44
- package/.github/workflows/stale-issues-prs.yml +0 -42
- package/.github/workflows/welcome-first-time-contrib.yml +0 -83
- package/CODEOWNERS +0 -8
- package/lib/helpers.js +0 -109
- package/test/index.js +0 -257
- package/test/input/1.0.0/streetlights.yml +0 -120
- package/test/input/1.1.0/streetlights.yml +0 -120
- package/test/input/1.2.0/gitter-streaming.yml +0 -140
- package/test/input/1.2.0/slack-rtm.yml +0 -876
- package/test/input/1.2.0/streetlights.yml +0 -120
- package/test/input/2.0.0/streetlights.json +0 -172
- package/test/input/2.0.0/streetlights.yml +0 -112
- package/test/input/2.0.0-rc1/streetlights.yml +0 -109
- package/test/input/2.0.0-rc2/streetlights.yml +0 -112
- package/test/input/2.1.0/streetlights.yml +0 -112
- package/test/input/2.2.0/streetlights.yml +0 -112
- package/test/output/2.0.0/gitter-streaming.yml +0 -137
- package/test/output/2.0.0/slack-rtm.yml +0 -879
- package/test/output/2.0.0/streetlights.yml +0 -112
- package/test/output/2.0.0-rc1/gitter-streaming.yml +0 -137
- package/test/output/2.0.0-rc1/slack-rtm.yml +0 -879
- package/test/output/2.0.0-rc1/streetlights.yml +0 -109
- package/test/output/2.0.0-rc2/gitter-streaming.yml +0 -137
- package/test/output/2.0.0-rc2/slack-rtm.yml +0 -879
- package/test/output/2.0.0-rc2/streetlights.yml +0 -112
- package/test/output/2.1.0/streetlights.json +0 -172
- package/test/output/2.1.0/streetlights.yml +0 -112
- package/test/output/2.2.0/streetlights.yml +0 -112
- 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"
|