@ellipsis-dev/sdk 0.8.1 → 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.
- package/dist/index.d.ts +45 -26
- package/dist/index.js +45 -24
- package/dist/store/index.d.ts +1 -1
- package/dist/stream/index.d.ts +1 -1
- package/dist/{types-Dx0e0Qs_.d.ts → types-BME-7Lbt.d.ts} +625 -408
- package/package.json +1 -1
- package/schema/frames.schema.json +392 -297
- package/schema/openapi.v1.json +811 -412
- package/schema/trigger_fields.schema.json +374 -0
|
@@ -0,0 +1,374 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"description": "The published react-surface field sets: per trigger surface, the dotted paths an agent config's input.message template may reference. Referencing an object- or array-typed path renders the whole value as pretty-printed JSON.",
|
|
4
|
+
"surfaces": {
|
|
5
|
+
"issue": [
|
|
6
|
+
{
|
|
7
|
+
"description": "The issue event that fired (opened | closed | commented).",
|
|
8
|
+
"path": "action",
|
|
9
|
+
"type": "string"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"description": "The repository name (without the owner).",
|
|
13
|
+
"path": "repository.name",
|
|
14
|
+
"type": "string"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"description": "The repository owner's login.",
|
|
18
|
+
"path": "repository.owner",
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"description": "The repository as \"owner/name\".",
|
|
23
|
+
"path": "repository.full_name",
|
|
24
|
+
"type": "string"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"description": "The repository's default branch name.",
|
|
28
|
+
"path": "repository.default_branch",
|
|
29
|
+
"type": "string"
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
"description": "The issue number.",
|
|
33
|
+
"path": "issue.number",
|
|
34
|
+
"type": "integer"
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
"description": "The issue title.",
|
|
38
|
+
"path": "issue.title",
|
|
39
|
+
"type": "string"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
"description": "The issue body (empty string when the issue has none).",
|
|
43
|
+
"path": "issue.body",
|
|
44
|
+
"type": "string"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"description": "The issue author's login.",
|
|
48
|
+
"path": "issue.author",
|
|
49
|
+
"type": "string"
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
"description": "The issue's web URL.",
|
|
53
|
+
"path": "issue.url",
|
|
54
|
+
"type": "string"
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
"description": "The issue state (open | closed).",
|
|
58
|
+
"path": "issue.state",
|
|
59
|
+
"type": "string"
|
|
60
|
+
},
|
|
61
|
+
{
|
|
62
|
+
"description": "The issue's label names.",
|
|
63
|
+
"path": "issue.labels",
|
|
64
|
+
"type": "array[string]"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"description": "The issue's comments, oldest first.",
|
|
68
|
+
"path": "comments",
|
|
69
|
+
"type": "array[object{author,body,url}]"
|
|
70
|
+
}
|
|
71
|
+
],
|
|
72
|
+
"linear_issue": [
|
|
73
|
+
{
|
|
74
|
+
"description": "The Linear issue event that fired (opened).",
|
|
75
|
+
"path": "action",
|
|
76
|
+
"type": "string"
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
"description": "The Linear issue's UUID.",
|
|
80
|
+
"path": "issue.id",
|
|
81
|
+
"type": "string"
|
|
82
|
+
},
|
|
83
|
+
{
|
|
84
|
+
"description": "The human identifier (e.g. \"ENG-123\").",
|
|
85
|
+
"path": "issue.identifier",
|
|
86
|
+
"type": "string"
|
|
87
|
+
},
|
|
88
|
+
{
|
|
89
|
+
"description": "The issue title.",
|
|
90
|
+
"path": "issue.title",
|
|
91
|
+
"type": "string"
|
|
92
|
+
},
|
|
93
|
+
{
|
|
94
|
+
"description": "The issue description (empty string when it has none).",
|
|
95
|
+
"path": "issue.description",
|
|
96
|
+
"type": "string"
|
|
97
|
+
},
|
|
98
|
+
{
|
|
99
|
+
"description": "The issue's web URL.",
|
|
100
|
+
"path": "issue.url",
|
|
101
|
+
"type": "string"
|
|
102
|
+
},
|
|
103
|
+
{
|
|
104
|
+
"description": "The owning team's name.",
|
|
105
|
+
"path": "issue.team",
|
|
106
|
+
"type": "string"
|
|
107
|
+
},
|
|
108
|
+
{
|
|
109
|
+
"description": "The issue's workflow state.",
|
|
110
|
+
"path": "issue.state",
|
|
111
|
+
"type": "string"
|
|
112
|
+
},
|
|
113
|
+
{
|
|
114
|
+
"description": "The issue creator's name (empty string when unknown).",
|
|
115
|
+
"path": "issue.creator",
|
|
116
|
+
"type": "string"
|
|
117
|
+
},
|
|
118
|
+
{
|
|
119
|
+
"description": "The issue's comments, oldest first.",
|
|
120
|
+
"path": "comments",
|
|
121
|
+
"type": "array[object{author,body}]"
|
|
122
|
+
}
|
|
123
|
+
],
|
|
124
|
+
"pull_request": [
|
|
125
|
+
{
|
|
126
|
+
"description": "The pull request event that fired (opened | pushed | merged | closed | review_submitted | commented).",
|
|
127
|
+
"path": "action",
|
|
128
|
+
"type": "string"
|
|
129
|
+
},
|
|
130
|
+
{
|
|
131
|
+
"description": "The repository name (without the owner).",
|
|
132
|
+
"path": "repository.name",
|
|
133
|
+
"type": "string"
|
|
134
|
+
},
|
|
135
|
+
{
|
|
136
|
+
"description": "The repository owner's login.",
|
|
137
|
+
"path": "repository.owner",
|
|
138
|
+
"type": "string"
|
|
139
|
+
},
|
|
140
|
+
{
|
|
141
|
+
"description": "The repository as \"owner/name\".",
|
|
142
|
+
"path": "repository.full_name",
|
|
143
|
+
"type": "string"
|
|
144
|
+
},
|
|
145
|
+
{
|
|
146
|
+
"description": "The repository's default branch name.",
|
|
147
|
+
"path": "repository.default_branch",
|
|
148
|
+
"type": "string"
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
"description": "The pull request number.",
|
|
152
|
+
"path": "pull_request.number",
|
|
153
|
+
"type": "integer"
|
|
154
|
+
},
|
|
155
|
+
{
|
|
156
|
+
"description": "The pull request title.",
|
|
157
|
+
"path": "pull_request.title",
|
|
158
|
+
"type": "string"
|
|
159
|
+
},
|
|
160
|
+
{
|
|
161
|
+
"description": "The pull request body (empty string when it has none).",
|
|
162
|
+
"path": "pull_request.body",
|
|
163
|
+
"type": "string"
|
|
164
|
+
},
|
|
165
|
+
{
|
|
166
|
+
"description": "The pull request author's login.",
|
|
167
|
+
"path": "pull_request.author",
|
|
168
|
+
"type": "string"
|
|
169
|
+
},
|
|
170
|
+
{
|
|
171
|
+
"description": "The pull request's web URL.",
|
|
172
|
+
"path": "pull_request.url",
|
|
173
|
+
"type": "string"
|
|
174
|
+
},
|
|
175
|
+
{
|
|
176
|
+
"description": "The pull request state (open | closed).",
|
|
177
|
+
"path": "pull_request.state",
|
|
178
|
+
"type": "string"
|
|
179
|
+
},
|
|
180
|
+
{
|
|
181
|
+
"description": "Whether the pull request is a draft.",
|
|
182
|
+
"path": "pull_request.draft",
|
|
183
|
+
"type": "boolean"
|
|
184
|
+
},
|
|
185
|
+
{
|
|
186
|
+
"description": "The branch the pull request targets.",
|
|
187
|
+
"path": "pull_request.base_branch",
|
|
188
|
+
"type": "string"
|
|
189
|
+
},
|
|
190
|
+
{
|
|
191
|
+
"description": "The branch the pull request is from.",
|
|
192
|
+
"path": "pull_request.head_branch",
|
|
193
|
+
"type": "string"
|
|
194
|
+
},
|
|
195
|
+
{
|
|
196
|
+
"description": "The base commit SHA.",
|
|
197
|
+
"path": "pull_request.base_sha",
|
|
198
|
+
"type": "string"
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
"description": "The head commit SHA (the event-time head).",
|
|
202
|
+
"path": "pull_request.head_sha",
|
|
203
|
+
"type": "string"
|
|
204
|
+
},
|
|
205
|
+
{
|
|
206
|
+
"description": "The pull request's label names.",
|
|
207
|
+
"path": "pull_request.labels",
|
|
208
|
+
"type": "array[string]"
|
|
209
|
+
},
|
|
210
|
+
{
|
|
211
|
+
"description": "The pull request's commits, oldest first.",
|
|
212
|
+
"path": "commits",
|
|
213
|
+
"type": "array[object{sha,message,author}]"
|
|
214
|
+
}
|
|
215
|
+
],
|
|
216
|
+
"push": [
|
|
217
|
+
{
|
|
218
|
+
"description": "The repository name (without the owner).",
|
|
219
|
+
"path": "repository.name",
|
|
220
|
+
"type": "string"
|
|
221
|
+
},
|
|
222
|
+
{
|
|
223
|
+
"description": "The repository owner's login.",
|
|
224
|
+
"path": "repository.owner",
|
|
225
|
+
"type": "string"
|
|
226
|
+
},
|
|
227
|
+
{
|
|
228
|
+
"description": "The repository as \"owner/name\".",
|
|
229
|
+
"path": "repository.full_name",
|
|
230
|
+
"type": "string"
|
|
231
|
+
},
|
|
232
|
+
{
|
|
233
|
+
"description": "The repository's default branch name.",
|
|
234
|
+
"path": "repository.default_branch",
|
|
235
|
+
"type": "string"
|
|
236
|
+
},
|
|
237
|
+
{
|
|
238
|
+
"description": "The pushed branch name.",
|
|
239
|
+
"path": "branch",
|
|
240
|
+
"type": "string"
|
|
241
|
+
},
|
|
242
|
+
{
|
|
243
|
+
"description": "The branch head SHA before the push.",
|
|
244
|
+
"path": "before",
|
|
245
|
+
"type": "string"
|
|
246
|
+
},
|
|
247
|
+
{
|
|
248
|
+
"description": "The branch head SHA after the push.",
|
|
249
|
+
"path": "after",
|
|
250
|
+
"type": "string"
|
|
251
|
+
},
|
|
252
|
+
{
|
|
253
|
+
"description": "Whether the push was a force push.",
|
|
254
|
+
"path": "forced",
|
|
255
|
+
"type": "boolean"
|
|
256
|
+
},
|
|
257
|
+
{
|
|
258
|
+
"description": "The pusher's login.",
|
|
259
|
+
"path": "pusher.login",
|
|
260
|
+
"type": "string"
|
|
261
|
+
},
|
|
262
|
+
{
|
|
263
|
+
"description": "The pushed commits (GitHub caps the payload at 20).",
|
|
264
|
+
"path": "commits",
|
|
265
|
+
"type": "array[object{sha,message,author}]"
|
|
266
|
+
}
|
|
267
|
+
],
|
|
268
|
+
"sentry": [
|
|
269
|
+
{
|
|
270
|
+
"description": "The Sentry alert kind (issue_alert | metric_alert).",
|
|
271
|
+
"path": "action",
|
|
272
|
+
"type": "string"
|
|
273
|
+
},
|
|
274
|
+
{
|
|
275
|
+
"description": "The Sentry organization slug.",
|
|
276
|
+
"path": "organization_slug",
|
|
277
|
+
"type": "string"
|
|
278
|
+
},
|
|
279
|
+
{
|
|
280
|
+
"description": "The Sentry project slug (empty string when unknown).",
|
|
281
|
+
"path": "project_slug",
|
|
282
|
+
"type": "string"
|
|
283
|
+
},
|
|
284
|
+
{
|
|
285
|
+
"description": "The Sentry issue id (issue alerts; empty otherwise).",
|
|
286
|
+
"path": "issue.id",
|
|
287
|
+
"type": "string"
|
|
288
|
+
},
|
|
289
|
+
{
|
|
290
|
+
"description": "The issue's web URL.",
|
|
291
|
+
"path": "issue.url",
|
|
292
|
+
"type": "string"
|
|
293
|
+
},
|
|
294
|
+
{
|
|
295
|
+
"description": "The issue title.",
|
|
296
|
+
"path": "issue.title",
|
|
297
|
+
"type": "string"
|
|
298
|
+
},
|
|
299
|
+
{
|
|
300
|
+
"description": "The code location Sentry blames.",
|
|
301
|
+
"path": "issue.culprit",
|
|
302
|
+
"type": "string"
|
|
303
|
+
},
|
|
304
|
+
{
|
|
305
|
+
"description": "The issue level (e.g. error).",
|
|
306
|
+
"path": "issue.level",
|
|
307
|
+
"type": "string"
|
|
308
|
+
},
|
|
309
|
+
{
|
|
310
|
+
"description": "The environment the event fired in.",
|
|
311
|
+
"path": "issue.environment",
|
|
312
|
+
"type": "string"
|
|
313
|
+
},
|
|
314
|
+
{
|
|
315
|
+
"description": "The release the event is on.",
|
|
316
|
+
"path": "issue.release",
|
|
317
|
+
"type": "string"
|
|
318
|
+
},
|
|
319
|
+
{
|
|
320
|
+
"description": "The triggering event's rendered stack trace, newest frame last.",
|
|
321
|
+
"path": "stack_trace",
|
|
322
|
+
"type": "string"
|
|
323
|
+
},
|
|
324
|
+
{
|
|
325
|
+
"description": "The firing alert rule's id (metric alerts; empty otherwise).",
|
|
326
|
+
"path": "alert_rule.id",
|
|
327
|
+
"type": "string"
|
|
328
|
+
},
|
|
329
|
+
{
|
|
330
|
+
"description": "The firing alert rule's name.",
|
|
331
|
+
"path": "alert_rule.name",
|
|
332
|
+
"type": "string"
|
|
333
|
+
},
|
|
334
|
+
{
|
|
335
|
+
"description": "The metric alert's title (metric alerts; empty otherwise).",
|
|
336
|
+
"path": "metric_alert.title",
|
|
337
|
+
"type": "string"
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
"description": "The metric alert's status (metric alerts; empty otherwise).",
|
|
341
|
+
"path": "metric_alert.status",
|
|
342
|
+
"type": "string"
|
|
343
|
+
}
|
|
344
|
+
],
|
|
345
|
+
"slack_channel": [
|
|
346
|
+
{
|
|
347
|
+
"description": "The Slack workspace (team) id.",
|
|
348
|
+
"path": "team_id",
|
|
349
|
+
"type": "string"
|
|
350
|
+
},
|
|
351
|
+
{
|
|
352
|
+
"description": "The created channel's id.",
|
|
353
|
+
"path": "channel.id",
|
|
354
|
+
"type": "string"
|
|
355
|
+
},
|
|
356
|
+
{
|
|
357
|
+
"description": "The created channel's name.",
|
|
358
|
+
"path": "channel.name",
|
|
359
|
+
"type": "string"
|
|
360
|
+
},
|
|
361
|
+
{
|
|
362
|
+
"description": "The channel's purpose (empty string when unset).",
|
|
363
|
+
"path": "channel.purpose",
|
|
364
|
+
"type": "string"
|
|
365
|
+
},
|
|
366
|
+
{
|
|
367
|
+
"description": "The Slack user id of whoever created the channel.",
|
|
368
|
+
"path": "channel.creator",
|
|
369
|
+
"type": "string"
|
|
370
|
+
}
|
|
371
|
+
]
|
|
372
|
+
},
|
|
373
|
+
"title": "TriggerFields"
|
|
374
|
+
}
|