@crvouga/mockingbird-service-sentry 0.1.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/server.js ADDED
@@ -0,0 +1,12 @@
1
+ import {
2
+ DEFAULT_PORT,
3
+ createServer,
4
+ serveTarget
5
+ } from "./chunk-JD4COCF5.js";
6
+ import "./chunk-CKV7NKVO.js";
7
+ export {
8
+ DEFAULT_PORT,
9
+ createServer,
10
+ serveTarget
11
+ };
12
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
package/openapi.yaml ADDED
@@ -0,0 +1,697 @@
1
+ openapi: 3.1.0
2
+ info:
3
+ title: Sentry transport and event API
4
+ version: 0.1.0
5
+ x-mockingbird-upstream:
6
+ note: Hand-authored bounded subset from official Sentry envelope/rate-limit/REST
7
+ docs and Relay c4e9930349068039dd6ecd06cf338c527ee90165; official SDK
8
+ 11.4.0 verifies transport.
9
+ paths:
10
+ /api/{project}/envelope/:
11
+ post:
12
+ operationId: IngestEnvelope
13
+ summary: Ingest Envelope
14
+ parameters:
15
+ - &a2
16
+ name: project
17
+ in: path
18
+ required: true
19
+ schema:
20
+ type: string
21
+ enum:
22
+ - "1"
23
+ responses:
24
+ "200":
25
+ description: Success
26
+ content:
27
+ application/json:
28
+ schema:
29
+ $ref: "#/components/schemas/IngestResponse"
30
+ "400": &a1
31
+ description: Sentry error
32
+ content:
33
+ application/json:
34
+ schema:
35
+ $ref: "#/components/schemas/Error"
36
+ "401": *a1
37
+ "403": *a1
38
+ "404": *a1
39
+ "413": *a1
40
+ "429": *a1
41
+ "500": *a1
42
+ "503": *a1
43
+ requestBody:
44
+ required: true
45
+ content:
46
+ application/x-sentry-envelope:
47
+ schema:
48
+ type: string
49
+ x-mockingbird:
50
+ parity:
51
+ enabled: false
52
+ reason: Envelope byte lengths and mixed binary items require the dedicated
53
+ official SDK and codec acceptance tests.
54
+ safe: false
55
+ security:
56
+ - dsnHeader: []
57
+ - dsnQuery: []
58
+ - {}
59
+ /api/{project}/store/:
60
+ post:
61
+ operationId: StoreEvent
62
+ summary: Store Event
63
+ parameters:
64
+ - *a2
65
+ - name: sentry_key
66
+ in: query
67
+ required: true
68
+ schema:
69
+ type: string
70
+ enum:
71
+ - "00000000000000000000000000000001"
72
+ - name: sentry_version
73
+ in: query
74
+ required: false
75
+ schema:
76
+ type: string
77
+ enum:
78
+ - "7"
79
+ responses:
80
+ "200":
81
+ description: Success
82
+ content:
83
+ application/json:
84
+ schema:
85
+ $ref: "#/components/schemas/IngestResponse"
86
+ "400": *a1
87
+ "401": *a1
88
+ "403": *a1
89
+ "404": *a1
90
+ "413": *a1
91
+ "429": *a1
92
+ "500": *a1
93
+ "503": *a1
94
+ requestBody:
95
+ required: true
96
+ content:
97
+ application/json:
98
+ schema:
99
+ type: object
100
+ properties:
101
+ event_id:
102
+ type: string
103
+ enum:
104
+ - "00000000000000000000000000000011"
105
+ - "00000000000000000000000000000022"
106
+ message:
107
+ type: string
108
+ enum:
109
+ - Fixture error
110
+ - Other fixture
111
+ level:
112
+ type: string
113
+ enum:
114
+ - error
115
+ - warning
116
+ release:
117
+ type: string
118
+ enum:
119
+ - fixture-release
120
+ type:
121
+ type: string
122
+ enum:
123
+ - error
124
+ - transaction
125
+ fingerprint:
126
+ type: array
127
+ items:
128
+ type: string
129
+ enum:
130
+ - fixture-group
131
+ maxItems: 2
132
+ required:
133
+ - message
134
+ additionalProperties: true
135
+ x-mockingbird:
136
+ parity:
137
+ safe: false
138
+ security:
139
+ - dsnHeader: []
140
+ - dsnQuery: []
141
+ - {}
142
+ /api/{project}/minidump/:
143
+ post:
144
+ operationId: IngestMinidump
145
+ summary: Ingest Minidump
146
+ parameters:
147
+ - *a2
148
+ responses:
149
+ "200":
150
+ description: Hyphenated event UUID
151
+ content:
152
+ text/plain:
153
+ schema:
154
+ type: string
155
+ x-mockingbird-volatile:
156
+ kind: id
157
+ "400": *a1
158
+ "401": *a1
159
+ "403": *a1
160
+ "404": *a1
161
+ "413": *a1
162
+ "429": *a1
163
+ "500": *a1
164
+ "503": *a1
165
+ requestBody:
166
+ required: true
167
+ content:
168
+ application/octet-stream:
169
+ schema:
170
+ type: string
171
+ format: binary
172
+ x-mockingbird:
173
+ parity:
174
+ enabled: false
175
+ reason: Native minidump and multipart bodies require the dedicated served binary
176
+ tests.
177
+ safe: false
178
+ security:
179
+ - dsnHeader: []
180
+ - dsnQuery: []
181
+ - {}
182
+ /api/0/projects/{organization}/{project}/events/:
183
+ get:
184
+ operationId: ListProjectEvents
185
+ summary: List Project Events
186
+ parameters:
187
+ - &a3
188
+ name: organization
189
+ in: path
190
+ required: true
191
+ schema:
192
+ type: string
193
+ enum:
194
+ - fixture-org
195
+ - *a2
196
+ - &a4
197
+ name: limit
198
+ in: query
199
+ required: false
200
+ schema:
201
+ type: integer
202
+ minimum: 1
203
+ maximum: 100
204
+ - &a5
205
+ name: cursor
206
+ in: query
207
+ required: false
208
+ schema:
209
+ type: string
210
+ enum:
211
+ - 0:0:0
212
+ - 0:1:0
213
+ - bad
214
+ - &a6
215
+ name: query
216
+ in: query
217
+ required: false
218
+ schema:
219
+ type: string
220
+ enum:
221
+ - ""
222
+ - is:unresolved
223
+ - is:resolved
224
+ - release:fixture-release
225
+ - name: full
226
+ in: query
227
+ required: false
228
+ schema:
229
+ type: boolean
230
+ responses:
231
+ "200":
232
+ description: Success
233
+ content:
234
+ application/json:
235
+ schema:
236
+ type: array
237
+ items:
238
+ $ref: "#/components/schemas/Event"
239
+ "400": *a1
240
+ "401": *a1
241
+ "403": *a1
242
+ "404": *a1
243
+ "413": *a1
244
+ "429": *a1
245
+ "500": *a1
246
+ "503": *a1
247
+ security:
248
+ - restToken: []
249
+ /api/0/projects/{organization}/{project}/events/{event}/:
250
+ get:
251
+ operationId: GetProjectEvent
252
+ summary: Get Project Event
253
+ parameters:
254
+ - *a3
255
+ - *a2
256
+ - &a8
257
+ name: event
258
+ in: path
259
+ required: true
260
+ schema:
261
+ type: string
262
+ x-mockingbird-resource-ref:
263
+ type: Event
264
+ missing: "00000000000000000000000000000000"
265
+ responses:
266
+ "200":
267
+ description: Success
268
+ content:
269
+ application/json:
270
+ schema:
271
+ $ref: "#/components/schemas/Event"
272
+ "400": *a1
273
+ "401": *a1
274
+ "403": *a1
275
+ "404": *a1
276
+ "413": *a1
277
+ "429": *a1
278
+ "500": *a1
279
+ "503": *a1
280
+ security:
281
+ - restToken: []
282
+ /api/0/projects/{organization}/{project}/issues/:
283
+ get:
284
+ operationId: ListProjectIssues
285
+ summary: List Project Issues
286
+ parameters:
287
+ - *a3
288
+ - *a2
289
+ - *a4
290
+ - *a5
291
+ - *a6
292
+ responses:
293
+ "200":
294
+ description: Success
295
+ content:
296
+ application/json:
297
+ schema:
298
+ type: array
299
+ items:
300
+ $ref: "#/components/schemas/Issue"
301
+ "400": *a1
302
+ "401": *a1
303
+ "403": *a1
304
+ "404": *a1
305
+ "413": *a1
306
+ "429": *a1
307
+ "500": *a1
308
+ "503": *a1
309
+ security:
310
+ - restToken: []
311
+ /api/0/issues/{issue}/:
312
+ get:
313
+ operationId: GetIssue
314
+ summary: Get Issue
315
+ parameters:
316
+ - &a7
317
+ name: issue
318
+ in: path
319
+ required: true
320
+ schema:
321
+ type: string
322
+ x-mockingbird-resource-ref:
323
+ type: Issue
324
+ missing: missing-issue
325
+ responses:
326
+ "200":
327
+ description: Success
328
+ content:
329
+ application/json:
330
+ schema:
331
+ $ref: "#/components/schemas/Issue"
332
+ "400": *a1
333
+ "401": *a1
334
+ "403": *a1
335
+ "404": *a1
336
+ "413": *a1
337
+ "429": *a1
338
+ "500": *a1
339
+ "503": *a1
340
+ security:
341
+ - restToken: []
342
+ put:
343
+ operationId: UpdateIssue
344
+ summary: Update Issue
345
+ parameters:
346
+ - *a7
347
+ responses:
348
+ "200":
349
+ description: Success
350
+ content:
351
+ application/json:
352
+ schema:
353
+ $ref: "#/components/schemas/Issue"
354
+ "400": *a1
355
+ "401": *a1
356
+ "403": *a1
357
+ "404": *a1
358
+ "413": *a1
359
+ "429": *a1
360
+ "500": *a1
361
+ "503": *a1
362
+ requestBody:
363
+ required: true
364
+ content:
365
+ application/json:
366
+ schema:
367
+ type: object
368
+ properties:
369
+ status:
370
+ type: string
371
+ enum:
372
+ - resolved
373
+ - unresolved
374
+ - ignored
375
+ required:
376
+ - status
377
+ additionalProperties: true
378
+ x-mockingbird:
379
+ parity:
380
+ safe: false
381
+ security:
382
+ - restToken: []
383
+ /api/0/organizations/{organization}/issues/{issue}/:
384
+ get:
385
+ operationId: GetOrganizationIssue
386
+ summary: Get Organization Issue
387
+ parameters:
388
+ - *a3
389
+ - *a7
390
+ responses:
391
+ "200":
392
+ description: Success
393
+ content:
394
+ application/json:
395
+ schema:
396
+ $ref: "#/components/schemas/Issue"
397
+ "400": *a1
398
+ "401": *a1
399
+ "403": *a1
400
+ "404": *a1
401
+ "413": *a1
402
+ "429": *a1
403
+ "500": *a1
404
+ "503": *a1
405
+ security:
406
+ - restToken: []
407
+ put:
408
+ operationId: UpdateOrganizationIssue
409
+ summary: Update Organization Issue
410
+ parameters:
411
+ - *a3
412
+ - *a7
413
+ responses:
414
+ "200":
415
+ description: Success
416
+ content:
417
+ application/json:
418
+ schema:
419
+ $ref: "#/components/schemas/Issue"
420
+ "400": *a1
421
+ "401": *a1
422
+ "403": *a1
423
+ "404": *a1
424
+ "413": *a1
425
+ "429": *a1
426
+ "500": *a1
427
+ "503": *a1
428
+ requestBody:
429
+ required: true
430
+ content:
431
+ application/json:
432
+ schema:
433
+ type: object
434
+ properties:
435
+ status:
436
+ type: string
437
+ enum:
438
+ - resolved
439
+ - unresolved
440
+ - ignored
441
+ required:
442
+ - status
443
+ additionalProperties: true
444
+ x-mockingbird:
445
+ parity:
446
+ safe: false
447
+ security:
448
+ - restToken: []
449
+ /api/0/projects/{organization}/{project}/events/{event}/attachments/:
450
+ get:
451
+ operationId: ListEventAttachments
452
+ summary: List Event Attachments
453
+ parameters:
454
+ - *a3
455
+ - *a2
456
+ - *a8
457
+ - *a4
458
+ - *a5
459
+ - *a6
460
+ responses:
461
+ "200":
462
+ description: Success
463
+ content:
464
+ application/json:
465
+ schema:
466
+ type: array
467
+ items:
468
+ $ref: "#/components/schemas/Attachment"
469
+ "400": *a1
470
+ "401": *a1
471
+ "403": *a1
472
+ "404": *a1
473
+ "413": *a1
474
+ "429": *a1
475
+ "500": *a1
476
+ "503": *a1
477
+ security:
478
+ - restToken: []
479
+ /api/0/projects/{organization}/{project}/events/{event}/attachments/{attachment}/:
480
+ get:
481
+ operationId: GetEventAttachment
482
+ summary: Get Event Attachment
483
+ parameters:
484
+ - *a3
485
+ - *a2
486
+ - *a8
487
+ - name: attachment
488
+ in: path
489
+ required: true
490
+ schema:
491
+ type: string
492
+ x-mockingbird-resource-ref:
493
+ type: Attachment
494
+ missing: missing-attachment
495
+ - name: download
496
+ in: query
497
+ required: false
498
+ schema:
499
+ type: boolean
500
+ responses:
501
+ "200":
502
+ description: Success
503
+ content:
504
+ application/json:
505
+ schema:
506
+ $ref: "#/components/schemas/Attachment"
507
+ application/octet-stream:
508
+ schema:
509
+ type: string
510
+ format: binary
511
+ "400": *a1
512
+ "401": *a1
513
+ "403": *a1
514
+ "404": *a1
515
+ "413": *a1
516
+ "429": *a1
517
+ "500": *a1
518
+ "503": *a1
519
+ security:
520
+ - restToken: []
521
+ components:
522
+ schemas:
523
+ Error:
524
+ type: object
525
+ properties:
526
+ detail:
527
+ type: string
528
+ causes:
529
+ type: array
530
+ items:
531
+ type: string
532
+ required:
533
+ - detail
534
+ additionalProperties: true
535
+ IngestResponse:
536
+ type: object
537
+ properties:
538
+ id:
539
+ type: string
540
+ x-mockingbird-resource:
541
+ type: Event
542
+ identity: true
543
+ x-mockingbird-volatile:
544
+ kind: id
545
+ additionalProperties: false
546
+ Event:
547
+ type: object
548
+ properties:
549
+ id:
550
+ type: string
551
+ x-mockingbird-resource:
552
+ type: Event
553
+ identity: true
554
+ eventID:
555
+ type: string
556
+ x-mockingbird-resource:
557
+ type: Event
558
+ identity: true
559
+ groupID:
560
+ type:
561
+ - string
562
+ - "null"
563
+ projectID:
564
+ type: string
565
+ dateCreated: &a9
566
+ type: string
567
+ x-mockingbird-volatile:
568
+ kind: timestamp
569
+ dateReceived: *a9
570
+ title:
571
+ type: string
572
+ message:
573
+ type: string
574
+ platform:
575
+ type: string
576
+ type:
577
+ type: string
578
+ tags:
579
+ type: array
580
+ items:
581
+ type: object
582
+ properties:
583
+ key:
584
+ type: string
585
+ value:
586
+ type: string
587
+ required:
588
+ - key
589
+ - value
590
+ entries:
591
+ type: array
592
+ items: &a10
593
+ type: object
594
+ additionalProperties: true
595
+ user:
596
+ type:
597
+ - object
598
+ - "null"
599
+ additionalProperties: true
600
+ metadata: *a10
601
+ required:
602
+ - id
603
+ - eventID
604
+ - projectID
605
+ - dateCreated
606
+ - title
607
+ - message
608
+ - tags
609
+ - entries
610
+ additionalProperties: true
611
+ Issue:
612
+ type: object
613
+ properties:
614
+ id:
615
+ type: string
616
+ x-mockingbird-resource:
617
+ type: Issue
618
+ identity: true
619
+ shortId:
620
+ type: string
621
+ title:
622
+ type: string
623
+ count:
624
+ type: string
625
+ firstSeen: *a9
626
+ lastSeen: *a9
627
+ status:
628
+ type: string
629
+ enum:
630
+ - unresolved
631
+ - resolved
632
+ - ignored
633
+ level:
634
+ type: string
635
+ project:
636
+ type: object
637
+ properties:
638
+ id:
639
+ type: string
640
+ slug:
641
+ type: string
642
+ name:
643
+ type: string
644
+ required:
645
+ - id
646
+ - slug
647
+ - name
648
+ metadata: *a10
649
+ required:
650
+ - id
651
+ - title
652
+ - count
653
+ - firstSeen
654
+ - lastSeen
655
+ - status
656
+ - project
657
+ additionalProperties: true
658
+ Attachment:
659
+ type: object
660
+ properties:
661
+ id:
662
+ type: string
663
+ x-mockingbird-resource:
664
+ type: Attachment
665
+ identity: true
666
+ name:
667
+ type: string
668
+ size:
669
+ type: integer
670
+ mimetype:
671
+ type: string
672
+ dateCreated: *a9
673
+ sha1:
674
+ type: string
675
+ required:
676
+ - id
677
+ - name
678
+ - size
679
+ - mimetype
680
+ additionalProperties: true
681
+ securitySchemes:
682
+ restToken:
683
+ type: http
684
+ scheme: bearer
685
+ description: Fixture REST token; defaults to fixture-rest-token.
686
+ dsnHeader:
687
+ type: apiKey
688
+ in: header
689
+ name: X-Sentry-Auth
690
+ description: Sentry sentry_key=<32 hex fixture public key>, sentry_version=7
691
+ dsnQuery:
692
+ type: apiKey
693
+ in: query
694
+ name: sentry_key
695
+ description: 32 hex fixture DSN public key; or self-authenticated envelope dsn.
696
+ servers:
697
+ - url: https://sentry.io