@checkdigit/eslint-plugin 7.18.0-PR.143-072f → 7.18.0-PR.143-8126

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 (33) hide show
  1. package/dist-mjs/athena/api-locator.mjs +9 -3
  2. package/dist-mjs/athena/api-matcher.mjs +4 -2
  3. package/dist-mjs/athena/athena.mjs +5 -5
  4. package/dist-mjs/openapi/generate-schema.mjs +9 -1
  5. package/dist-mjs/openapi/service-schema-generator.mjs +40 -18
  6. package/dist-types/athena/api-locator.d.ts +1 -1
  7. package/package.json +1 -1
  8. package/src/api/v1/swagger.yml +81 -0
  9. package/src/athena/api-locator.ts +9 -2
  10. package/src/athena/api-matcher.ts +3 -1
  11. package/src/athena/athena.ts +4 -4
  12. package/src/openapi/generate-schema.ts +12 -0
  13. package/src/openapi/service-schema-generator.ts +46 -19
  14. package/src/services/eslintPlugin/v1/swagger.schema.deref.json +167 -0
  15. package/src/services/interchange/v1/swagger.schema.deref.json +1 -75
  16. package/src/services/interchange/v1/swagger.schema.json +1 -51
  17. package/src/services/ledger/v1/swagger.schema.deref.json +49 -2610
  18. package/src/services/ledger/v1/swagger.schema.json +106 -878
  19. package/src/services/link/v1/swagger.schema.deref.json +3 -426
  20. package/src/services/link/v1/swagger.schema.json +3 -261
  21. package/src/services/message/v1/swagger.schema.deref.json +1669 -8447
  22. package/src/services/message/v1/swagger.schema.json +5 -531
  23. package/src/services/message/v2/swagger.schema.deref.json +5125 -27716
  24. package/src/services/message/v2/swagger.schema.json +5 -523
  25. package/src/services/paymentCard/v1/swagger.schema.deref.json +36 -1185
  26. package/src/services/paymentCard/v1/swagger.schema.json +5 -499
  27. package/src/services/paymentCard/v2/swagger.schema.deref.json +60 -1186
  28. package/src/services/paymentCard/v2/swagger.schema.json +5 -511
  29. package/src/services/person/v1/swagger.schema.deref.json +510 -2348
  30. package/src/services/person/v1/swagger.schema.json +4 -470
  31. package/src/services/teampayClientManagement/v1/swagger.schema.deref.json +155 -1254
  32. package/src/services/teampayClientManagement/v1/swagger.schema.json +3 -369
  33. package/src/services/vault/v2/swagger.schema.deref.json +2048 -0
@@ -1,204 +1,8 @@
1
1
  {
2
2
  "apis": {
3
- "/person/v1/ping": {
4
- "get": {
5
- "request": {
6
- "$schema": "https://json-schema.org/draft/2020-12/schema",
7
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PingGetRequestContext",
8
- "type": "object",
9
- "properties": {
10
- "headers": {
11
- "type": "object",
12
- "additionalProperties": true
13
- }
14
- },
15
- "required": [],
16
- "additionalProperties": false
17
- },
18
- "responses": {
19
- "200": {
20
- "$schema": "https://json-schema.org/draft/2020-12/schema",
21
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PingGetResponseOK",
22
- "type": "object",
23
- "properties": {
24
- "headers": {
25
- "type": "object",
26
- "additionalProperties": true
27
- },
28
- "body": {
29
- "$ref": "/person/v1/schemas/definitions/Ping"
30
- }
31
- },
32
- "required": ["body"],
33
- "additionalProperties": false
34
- },
35
- "default": {
36
- "$schema": "https://json-schema.org/draft/2020-12/schema",
37
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PingGetResponseDefault",
38
- "type": "object",
39
- "properties": {
40
- "headers": {
41
- "type": "object",
42
- "additionalProperties": true
43
- },
44
- "body": {
45
- "$ref": "/person/v1/schemas/definitions/Error"
46
- }
47
- },
48
- "required": ["body"],
49
- "additionalProperties": false
50
- }
51
- }
52
- }
53
- },
54
- "/person/v1/public-key": {
55
- "get": {
56
- "request": {
57
- "$schema": "https://json-schema.org/draft/2020-12/schema",
58
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PublicKeyGetRequestContext",
59
- "type": "object",
60
- "properties": {
61
- "headers": {
62
- "type": "object",
63
- "additionalProperties": true
64
- }
65
- },
66
- "required": [],
67
- "additionalProperties": false
68
- },
69
- "responses": {
70
- "200": {
71
- "$schema": "https://json-schema.org/draft/2020-12/schema",
72
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PublicKeyGetResponseOK",
73
- "type": "object",
74
- "properties": {
75
- "headers": {
76
- "type": "object",
77
- "properties": {
78
- "created-on": {
79
- "type": "string",
80
- "format": "date-time"
81
- },
82
- "updated-on": {
83
- "type": "string",
84
- "format": "date-time"
85
- }
86
- },
87
- "required": ["created-on", "updated-on"]
88
- },
89
- "body": {
90
- "$ref": "/person/v1/schemas/definitions/PublicKeyResponse"
91
- }
92
- },
93
- "required": ["headers", "body"],
94
- "additionalProperties": false
95
- },
96
- "default": {
97
- "$schema": "https://json-schema.org/draft/2020-12/schema",
98
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PublicKeyGetResponseDefault",
99
- "type": "object",
100
- "properties": {
101
- "headers": {
102
- "type": "object",
103
- "additionalProperties": true
104
- },
105
- "body": {
106
- "$ref": "/person/v1/schemas/definitions/Error"
107
- }
108
- },
109
- "required": ["body"],
110
- "additionalProperties": false
111
- }
112
- }
113
- }
114
- },
3
+ "/person/v1/ping": {},
4
+ "/person/v1/public-key": {},
115
5
  "/person/v1/data-encryption-key/:dataEncryptionKeyId": {
116
- "get": {
117
- "request": {
118
- "$schema": "https://json-schema.org/draft/2020-12/schema",
119
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/DataEncryptionKeyGetRequestContext",
120
- "type": "object",
121
- "properties": {
122
- "params": {
123
- "type": "object",
124
- "additionalProperties": false,
125
- "properties": {
126
- "dataEncryptionKeyId": {
127
- "type": "string",
128
- "format": "uuid"
129
- }
130
- },
131
- "required": ["dataEncryptionKeyId"]
132
- },
133
- "headers": {
134
- "type": "object",
135
- "additionalProperties": true
136
- }
137
- },
138
- "required": ["params"],
139
- "additionalProperties": false
140
- },
141
- "responses": {
142
- "200": {
143
- "$schema": "https://json-schema.org/draft/2020-12/schema",
144
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/DataEncryptionKeyGetResponseOK",
145
- "type": "object",
146
- "properties": {
147
- "headers": {
148
- "type": "object",
149
- "properties": {
150
- "created-on": {
151
- "type": "string",
152
- "format": "date-time"
153
- },
154
- "updated-on": {
155
- "type": "string",
156
- "format": "date-time"
157
- },
158
- "last-modified": {
159
- "type": "string",
160
- "format": "date-time"
161
- }
162
- }
163
- },
164
- "body": {
165
- "$ref": "/person/v1/schemas/definitions/DataEncryptionKeyResponse"
166
- }
167
- },
168
- "required": ["body"],
169
- "additionalProperties": false
170
- },
171
- "404": {
172
- "$schema": "https://json-schema.org/draft/2020-12/schema",
173
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/DataEncryptionKeyGetResponseNotFound",
174
- "type": "object",
175
- "properties": {
176
- "headers": {
177
- "type": "object",
178
- "additionalProperties": true
179
- }
180
- },
181
- "required": [],
182
- "additionalProperties": false
183
- },
184
- "default": {
185
- "$schema": "https://json-schema.org/draft/2020-12/schema",
186
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/DataEncryptionKeyGetResponseDefault",
187
- "type": "object",
188
- "properties": {
189
- "headers": {
190
- "type": "object",
191
- "additionalProperties": true
192
- },
193
- "body": {
194
- "$ref": "/person/v1/schemas/definitions/Error"
195
- }
196
- },
197
- "required": ["body"],
198
- "additionalProperties": false
199
- }
200
- }
201
- },
202
6
  "put": {
203
7
  "request": {
204
8
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -277,100 +81,6 @@
277
81
  }
278
82
  },
279
83
  "/person/v1/person/:personId": {
280
- "get": {
281
- "request": {
282
- "$schema": "https://json-schema.org/draft/2020-12/schema",
283
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PersonGetRequestContext",
284
- "type": "object",
285
- "properties": {
286
- "params": {
287
- "type": "object",
288
- "additionalProperties": false,
289
- "properties": {
290
- "at": {
291
- "type": "string",
292
- "format": "date-time"
293
- },
294
- "publicKeyHash": {
295
- "type": "string",
296
- "format": "uuid",
297
- "example": "15a85f64-5717-4562-b3fc-2c963f66afa6"
298
- }
299
- },
300
- "required": ["at"]
301
- },
302
- "headers": {
303
- "type": "object",
304
- "additionalProperties": true
305
- }
306
- },
307
- "required": ["params", "query"],
308
- "additionalProperties": false
309
- },
310
- "responses": {
311
- "200": {
312
- "$schema": "https://json-schema.org/draft/2020-12/schema",
313
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PersonGetResponseOK",
314
- "type": "object",
315
- "properties": {
316
- "headers": {
317
- "type": "object",
318
- "properties": {
319
- "last-modified": {
320
- "type": "string",
321
- "format": "date-time"
322
- },
323
- "created-on": {
324
- "type": "string",
325
- "format": "date-time"
326
- },
327
- "updated-on": {
328
- "type": "string",
329
- "format": "date-time"
330
- },
331
- "etag": {
332
- "type": "string"
333
- }
334
- }
335
- },
336
- "body": {
337
- "$ref": "/person/v1/schemas/definitions/PersonResponse"
338
- }
339
- },
340
- "required": ["body"],
341
- "additionalProperties": false
342
- },
343
- "404": {
344
- "$schema": "https://json-schema.org/draft/2020-12/schema",
345
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PersonGetResponseNotFound",
346
- "type": "object",
347
- "properties": {
348
- "headers": {
349
- "type": "object",
350
- "additionalProperties": true
351
- }
352
- },
353
- "required": [],
354
- "additionalProperties": false
355
- },
356
- "default": {
357
- "$schema": "https://json-schema.org/draft/2020-12/schema",
358
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PersonGetResponseDefault",
359
- "type": "object",
360
- "properties": {
361
- "headers": {
362
- "type": "object",
363
- "additionalProperties": true
364
- },
365
- "body": {
366
- "$ref": "/person/v1/schemas/definitions/Error"
367
- }
368
- },
369
- "required": ["body"],
370
- "additionalProperties": false
371
- }
372
- }
373
- },
374
84
  "put": {
375
85
  "request": {
376
86
  "$schema": "https://json-schema.org/draft/2020-12/schema",
@@ -490,184 +200,8 @@
490
200
  }
491
201
  }
492
202
  },
493
- "/person/v1/person/:personId/history": {
494
- "get": {
495
- "request": {
496
- "$schema": "https://json-schema.org/draft/2020-12/schema",
497
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PersonHistoryGetRequestContext",
498
- "type": "object",
499
- "properties": {
500
- "params": {
501
- "type": "object",
502
- "additionalProperties": false,
503
- "properties": {
504
- "toDate": {
505
- "type": "string",
506
- "description": "Date time in simplified extended ISO format",
507
- "format": "date-time"
508
- },
509
- "fromDate": {
510
- "type": "string",
511
- "description": "Date time in simplified extended ISO format",
512
- "default": "1970-01-01T00:00:00.000Z",
513
- "format": "date-time"
514
- },
515
- "publicKeyHash": {
516
- "type": "string",
517
- "format": "uuid",
518
- "example": "15a85f64-5717-4562-b3fc-2c963f66afa6"
519
- }
520
- },
521
- "required": ["toDate"]
522
- },
523
- "headers": {
524
- "type": "object",
525
- "additionalProperties": true
526
- }
527
- },
528
- "required": ["params", "query"],
529
- "additionalProperties": false
530
- },
531
- "responses": {
532
- "200": {
533
- "$schema": "https://json-schema.org/draft/2020-12/schema",
534
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PersonHistoryGetResponseOK",
535
- "type": "object",
536
- "properties": {
537
- "headers": {
538
- "type": "object",
539
- "additionalProperties": true
540
- },
541
- "body": {
542
- "$ref": "/person/v1/schemas/definitions/History"
543
- }
544
- },
545
- "required": ["body"],
546
- "additionalProperties": false
547
- },
548
- "404": {
549
- "$schema": "https://json-schema.org/draft/2020-12/schema",
550
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PersonHistoryGetResponseNotFound",
551
- "type": "object",
552
- "properties": {
553
- "headers": {
554
- "type": "object",
555
- "additionalProperties": true
556
- }
557
- },
558
- "required": [],
559
- "additionalProperties": false
560
- },
561
- "default": {
562
- "$schema": "https://json-schema.org/draft/2020-12/schema",
563
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PersonHistoryGetResponseDefault",
564
- "type": "object",
565
- "properties": {
566
- "headers": {
567
- "type": "object",
568
- "additionalProperties": true
569
- },
570
- "body": {
571
- "$ref": "/person/v1/schemas/definitions/Error"
572
- }
573
- },
574
- "required": ["body"],
575
- "additionalProperties": false
576
- }
577
- }
578
- }
579
- },
580
- "/person/v1/person/:personId/masked": {
581
- "get": {
582
- "request": {
583
- "$schema": "https://json-schema.org/draft/2020-12/schema",
584
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PersonMaskedGetRequestContext",
585
- "type": "object",
586
- "properties": {
587
- "params": {
588
- "type": "object",
589
- "additionalProperties": false,
590
- "properties": {
591
- "at": {
592
- "type": "string",
593
- "format": "date-time"
594
- }
595
- },
596
- "required": ["at"]
597
- },
598
- "headers": {
599
- "type": "object",
600
- "additionalProperties": true
601
- }
602
- },
603
- "required": ["params", "query"],
604
- "additionalProperties": false
605
- },
606
- "responses": {
607
- "200": {
608
- "$schema": "https://json-schema.org/draft/2020-12/schema",
609
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PersonMaskedGetResponseOK",
610
- "type": "object",
611
- "properties": {
612
- "headers": {
613
- "type": "object",
614
- "properties": {
615
- "last-modified": {
616
- "type": "string",
617
- "format": "date-time"
618
- },
619
- "created-on": {
620
- "type": "string",
621
- "format": "date-time"
622
- },
623
- "updated-on": {
624
- "type": "string",
625
- "format": "date-time"
626
- },
627
- "etag": {
628
- "type": "string"
629
- }
630
- }
631
- },
632
- "body": {
633
- "$ref": "/person/v1/schemas/definitions/PersonMaskedResponse"
634
- }
635
- },
636
- "required": ["body"],
637
- "additionalProperties": false
638
- },
639
- "404": {
640
- "$schema": "https://json-schema.org/draft/2020-12/schema",
641
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PersonMaskedGetResponseNotFound",
642
- "type": "object",
643
- "properties": {
644
- "headers": {
645
- "type": "object",
646
- "additionalProperties": true
647
- }
648
- },
649
- "required": [],
650
- "additionalProperties": false
651
- },
652
- "default": {
653
- "$schema": "https://json-schema.org/draft/2020-12/schema",
654
- "$id": "https://eslint-plugin.checkdigit/person/v1/schemas/api/PersonMaskedGetResponseDefault",
655
- "type": "object",
656
- "properties": {
657
- "headers": {
658
- "type": "object",
659
- "additionalProperties": true
660
- },
661
- "body": {
662
- "$ref": "/person/v1/schemas/definitions/Error"
663
- }
664
- },
665
- "required": ["body"],
666
- "additionalProperties": false
667
- }
668
- }
669
- }
670
- }
203
+ "/person/v1/person/:personId/history": {},
204
+ "/person/v1/person/:personId/masked": {}
671
205
  },
672
206
  "definitions": {
673
207
  "Ping": {