@snokam/mcp-api 0.12.0 → 1.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.
@@ -33,7 +33,736 @@
33
33
  }
34
34
  }
35
35
  }
36
+ },
37
+ "/v1.0/tenders": {
38
+ "get": {
39
+ "tags": [
40
+ "Tenders"
41
+ ],
42
+ "summary": "List all tenders",
43
+ "operationId": "ListTenders",
44
+ "responses": {
45
+ "200": {
46
+ "description": "Payload of Array of Tender",
47
+ "content": {
48
+ "application/json": {
49
+ "schema": {
50
+ "type": "array",
51
+ "items": {
52
+ "$ref": "#/components/schemas/tender"
53
+ }
54
+ }
55
+ }
56
+ }
57
+ }
58
+ },
59
+ "security": [
60
+ {
61
+ "Implicit": [
62
+ "api://7e877854-e62d-4637-a655-1da7141f7ac9/.default"
63
+ ]
64
+ }
65
+ ]
66
+ },
67
+ "post": {
68
+ "tags": [
69
+ "Tenders"
70
+ ],
71
+ "summary": "Create a new tender",
72
+ "operationId": "CreateTender",
73
+ "requestBody": {
74
+ "content": {
75
+ "application/json": {
76
+ "schema": {
77
+ "$ref": "#/components/schemas/tender"
78
+ }
79
+ }
80
+ },
81
+ "required": true
82
+ },
83
+ "responses": {
84
+ "201": {
85
+ "description": "Payload of Tender",
86
+ "content": {
87
+ "application/json": {
88
+ "schema": {
89
+ "$ref": "#/components/schemas/tender"
90
+ }
91
+ }
92
+ }
93
+ }
94
+ },
95
+ "security": [
96
+ {
97
+ "Implicit": [
98
+ "api://7e877854-e62d-4637-a655-1da7141f7ac9/.default"
99
+ ]
100
+ }
101
+ ]
102
+ }
103
+ },
104
+ "/v1.0/tenders/{id}": {
105
+ "get": {
106
+ "tags": [
107
+ "Tenders"
108
+ ],
109
+ "summary": "Get a tender by ID",
110
+ "operationId": "GetTender",
111
+ "parameters": [
112
+ {
113
+ "name": "id",
114
+ "in": "path",
115
+ "required": true,
116
+ "schema": {
117
+ "type": "string"
118
+ }
119
+ }
120
+ ],
121
+ "responses": {
122
+ "200": {
123
+ "description": "Payload of Tender",
124
+ "content": {
125
+ "application/json": {
126
+ "schema": {
127
+ "$ref": "#/components/schemas/tender"
128
+ }
129
+ }
130
+ }
131
+ },
132
+ "404": {
133
+ "description": "No description"
134
+ }
135
+ },
136
+ "security": [
137
+ {
138
+ "Implicit": [
139
+ "api://7e877854-e62d-4637-a655-1da7141f7ac9/.default"
140
+ ]
141
+ }
142
+ ]
143
+ },
144
+ "put": {
145
+ "tags": [
146
+ "Tenders"
147
+ ],
148
+ "summary": "Update a tender",
149
+ "operationId": "UpdateTender",
150
+ "parameters": [
151
+ {
152
+ "name": "id",
153
+ "in": "path",
154
+ "required": true,
155
+ "schema": {
156
+ "type": "string"
157
+ }
158
+ }
159
+ ],
160
+ "requestBody": {
161
+ "content": {
162
+ "application/json": {
163
+ "schema": {
164
+ "$ref": "#/components/schemas/tender"
165
+ }
166
+ }
167
+ },
168
+ "required": true
169
+ },
170
+ "responses": {
171
+ "200": {
172
+ "description": "Payload of Tender",
173
+ "content": {
174
+ "application/json": {
175
+ "schema": {
176
+ "$ref": "#/components/schemas/tender"
177
+ }
178
+ }
179
+ }
180
+ },
181
+ "404": {
182
+ "description": "No description"
183
+ }
184
+ },
185
+ "security": [
186
+ {
187
+ "Implicit": [
188
+ "api://7e877854-e62d-4637-a655-1da7141f7ac9/.default"
189
+ ]
190
+ }
191
+ ]
192
+ },
193
+ "delete": {
194
+ "tags": [
195
+ "Tenders"
196
+ ],
197
+ "summary": "Delete a tender",
198
+ "operationId": "DeleteTender",
199
+ "parameters": [
200
+ {
201
+ "name": "id",
202
+ "in": "path",
203
+ "required": true,
204
+ "schema": {
205
+ "type": "string"
206
+ }
207
+ }
208
+ ],
209
+ "responses": {
210
+ "204": {
211
+ "description": "No description"
212
+ },
213
+ "404": {
214
+ "description": "No description"
215
+ }
216
+ },
217
+ "security": [
218
+ {
219
+ "Implicit": [
220
+ "api://7e877854-e62d-4637-a655-1da7141f7ac9/.default"
221
+ ]
222
+ }
223
+ ]
224
+ }
225
+ },
226
+ "/v1.0/tenders/{id}/runs": {
227
+ "get": {
228
+ "tags": [
229
+ "Tenders"
230
+ ],
231
+ "summary": "List parser runs for a tender",
232
+ "operationId": "ListParseRuns",
233
+ "parameters": [
234
+ {
235
+ "name": "id",
236
+ "in": "path",
237
+ "required": true,
238
+ "schema": {
239
+ "type": "string"
240
+ }
241
+ }
242
+ ],
243
+ "responses": {
244
+ "200": {
245
+ "description": "Payload of Array of ParseRun",
246
+ "content": {
247
+ "application/json": {
248
+ "schema": {
249
+ "type": "array",
250
+ "items": {
251
+ "$ref": "#/components/schemas/parseRun"
252
+ }
253
+ }
254
+ }
255
+ }
256
+ }
257
+ },
258
+ "security": [
259
+ {
260
+ "Implicit": [
261
+ "api://7e877854-e62d-4637-a655-1da7141f7ac9/.default"
262
+ ]
263
+ }
264
+ ]
265
+ },
266
+ "post": {
267
+ "tags": [
268
+ "Tenders"
269
+ ],
270
+ "summary": "Trigger a new parser run on a tender's source files",
271
+ "operationId": "CreateParseRun",
272
+ "parameters": [
273
+ {
274
+ "name": "id",
275
+ "in": "path",
276
+ "required": true,
277
+ "schema": {
278
+ "type": "string"
279
+ }
280
+ }
281
+ ],
282
+ "responses": {
283
+ "201": {
284
+ "description": "Payload of ParseRun",
285
+ "content": {
286
+ "application/json": {
287
+ "schema": {
288
+ "$ref": "#/components/schemas/parseRun"
289
+ }
290
+ }
291
+ }
292
+ },
293
+ "404": {
294
+ "description": "No description"
295
+ }
296
+ },
297
+ "security": [
298
+ {
299
+ "Implicit": [
300
+ "api://7e877854-e62d-4637-a655-1da7141f7ac9/.default"
301
+ ]
302
+ }
303
+ ]
304
+ }
36
305
  }
37
306
  },
38
- "components": {}
307
+ "components": {
308
+ "schemas": {
309
+ "consultantMatch": {
310
+ "type": "object",
311
+ "properties": {
312
+ "consultantId": {
313
+ "type": "string",
314
+ "nullable": true
315
+ },
316
+ "name": {
317
+ "type": "string",
318
+ "nullable": true
319
+ },
320
+ "fitScore": {
321
+ "type": "number",
322
+ "format": "double",
323
+ "nullable": true
324
+ },
325
+ "availabilityStatus": {
326
+ "type": "string",
327
+ "nullable": true
328
+ },
329
+ "availableFrom": {
330
+ "type": "string",
331
+ "nullable": true
332
+ },
333
+ "matchedTechnologies": {
334
+ "type": "array",
335
+ "items": {
336
+ "type": "string"
337
+ },
338
+ "nullable": true
339
+ },
340
+ "missingTechnologies": {
341
+ "type": "array",
342
+ "items": {
343
+ "type": "string"
344
+ },
345
+ "nullable": true
346
+ },
347
+ "selected": {
348
+ "type": "boolean",
349
+ "nullable": true
350
+ }
351
+ }
352
+ },
353
+ "parseRun": {
354
+ "type": "object",
355
+ "properties": {
356
+ "id": {
357
+ "type": "string",
358
+ "nullable": true
359
+ },
360
+ "type": {
361
+ "type": "string",
362
+ "nullable": true
363
+ },
364
+ "tenderId": {
365
+ "type": "string",
366
+ "nullable": true
367
+ },
368
+ "sourceFiles": {
369
+ "type": "array",
370
+ "items": {
371
+ "$ref": "#/components/schemas/sourceFile"
372
+ },
373
+ "nullable": true
374
+ },
375
+ "status": {
376
+ "type": "string",
377
+ "nullable": true
378
+ },
379
+ "version": {
380
+ "type": "string",
381
+ "nullable": true
382
+ },
383
+ "confidence": {
384
+ "type": "number",
385
+ "format": "double",
386
+ "nullable": true
387
+ },
388
+ "warnings": {
389
+ "type": "array",
390
+ "items": {
391
+ "type": "string"
392
+ },
393
+ "nullable": true
394
+ },
395
+ "startedAt": {
396
+ "type": "string",
397
+ "format": "date-time",
398
+ "nullable": true
399
+ },
400
+ "completedAt": {
401
+ "type": "string",
402
+ "format": "date-time",
403
+ "nullable": true
404
+ },
405
+ "triggeredBy": {
406
+ "type": "string",
407
+ "nullable": true
408
+ }
409
+ }
410
+ },
411
+ "sourceFile": {
412
+ "type": "object",
413
+ "properties": {
414
+ "name": {
415
+ "type": "string",
416
+ "nullable": true
417
+ },
418
+ "url": {
419
+ "type": "string",
420
+ "nullable": true
421
+ }
422
+ }
423
+ },
424
+ "tender": {
425
+ "type": "object",
426
+ "properties": {
427
+ "id": {
428
+ "type": "string",
429
+ "nullable": true
430
+ },
431
+ "type": {
432
+ "type": "string",
433
+ "nullable": true
434
+ },
435
+ "source": {
436
+ "$ref": "#/components/schemas/tenderSource"
437
+ },
438
+ "info": {
439
+ "$ref": "#/components/schemas/tenderInfo"
440
+ },
441
+ "dates": {
442
+ "$ref": "#/components/schemas/tenderDates"
443
+ },
444
+ "status": {
445
+ "$ref": "#/components/schemas/tenderStatus"
446
+ },
447
+ "classification": {
448
+ "$ref": "#/components/schemas/tenderClassification"
449
+ },
450
+ "parser": {
451
+ "$ref": "#/components/schemas/tenderParser"
452
+ },
453
+ "todos": {
454
+ "type": "array",
455
+ "items": {
456
+ "$ref": "#/components/schemas/tenderTodo"
457
+ },
458
+ "nullable": true
459
+ },
460
+ "documents": {
461
+ "type": "array",
462
+ "items": {
463
+ "$ref": "#/components/schemas/tenderDocument"
464
+ },
465
+ "nullable": true
466
+ },
467
+ "consultantMatches": {
468
+ "type": "array",
469
+ "items": {
470
+ "$ref": "#/components/schemas/consultantMatch"
471
+ },
472
+ "nullable": true
473
+ },
474
+ "audit": {
475
+ "$ref": "#/components/schemas/tenderAudit"
476
+ }
477
+ }
478
+ },
479
+ "tenderAudit": {
480
+ "type": "object",
481
+ "properties": {
482
+ "createdAt": {
483
+ "type": "string",
484
+ "format": "date-time",
485
+ "nullable": true
486
+ },
487
+ "updatedAt": {
488
+ "type": "string",
489
+ "format": "date-time",
490
+ "nullable": true
491
+ },
492
+ "updatedBy": {
493
+ "type": "string",
494
+ "nullable": true
495
+ }
496
+ },
497
+ "nullable": true
498
+ },
499
+ "tenderClassification": {
500
+ "type": "object",
501
+ "properties": {
502
+ "technologies": {
503
+ "type": "array",
504
+ "items": {
505
+ "type": "string"
506
+ },
507
+ "nullable": true
508
+ },
509
+ "competenceAreas": {
510
+ "type": "array",
511
+ "items": {
512
+ "type": "string"
513
+ },
514
+ "nullable": true
515
+ },
516
+ "domains": {
517
+ "type": "array",
518
+ "items": {
519
+ "type": "string"
520
+ },
521
+ "nullable": true
522
+ },
523
+ "languageRequirements": {
524
+ "type": "array",
525
+ "items": {
526
+ "type": "string"
527
+ },
528
+ "nullable": true
529
+ },
530
+ "seniorityRequirements": {
531
+ "type": "array",
532
+ "items": {
533
+ "type": "string"
534
+ },
535
+ "nullable": true
536
+ },
537
+ "securityRequirements": {
538
+ "type": "array",
539
+ "items": {
540
+ "type": "string"
541
+ },
542
+ "nullable": true
543
+ }
544
+ },
545
+ "nullable": true
546
+ },
547
+ "tenderDates": {
548
+ "type": "object",
549
+ "properties": {
550
+ "foundAt": {
551
+ "type": "string",
552
+ "format": "date-time",
553
+ "nullable": true
554
+ },
555
+ "publishedAt": {
556
+ "type": "string",
557
+ "format": "date-time",
558
+ "nullable": true
559
+ },
560
+ "deadlineAt": {
561
+ "type": "string",
562
+ "format": "date-time",
563
+ "nullable": true
564
+ },
565
+ "lastUpdatedAt": {
566
+ "type": "string",
567
+ "format": "date-time",
568
+ "nullable": true
569
+ }
570
+ },
571
+ "nullable": true
572
+ },
573
+ "tenderDocument": {
574
+ "type": "object",
575
+ "properties": {
576
+ "id": {
577
+ "type": "string",
578
+ "nullable": true
579
+ },
580
+ "type": {
581
+ "type": "string",
582
+ "nullable": true
583
+ },
584
+ "title": {
585
+ "type": "string",
586
+ "nullable": true
587
+ },
588
+ "consultantId": {
589
+ "type": "string",
590
+ "nullable": true
591
+ },
592
+ "status": {
593
+ "type": "string",
594
+ "nullable": true
595
+ },
596
+ "reviewStatus": {
597
+ "type": "string",
598
+ "nullable": true
599
+ },
600
+ "sharepointUrl": {
601
+ "type": "string",
602
+ "nullable": true
603
+ },
604
+ "generatedAt": {
605
+ "type": "string",
606
+ "format": "date-time",
607
+ "nullable": true
608
+ },
609
+ "lastReviewedAt": {
610
+ "type": "string",
611
+ "format": "date-time",
612
+ "nullable": true
613
+ }
614
+ }
615
+ },
616
+ "tenderInfo": {
617
+ "type": "object",
618
+ "properties": {
619
+ "title": {
620
+ "type": "string",
621
+ "nullable": true
622
+ },
623
+ "customer": {
624
+ "type": "string",
625
+ "nullable": true
626
+ },
627
+ "country": {
628
+ "type": "string",
629
+ "nullable": true
630
+ }
631
+ },
632
+ "nullable": true
633
+ },
634
+ "tenderParser": {
635
+ "type": "object",
636
+ "properties": {
637
+ "lastRunAt": {
638
+ "type": "string",
639
+ "format": "date-time",
640
+ "nullable": true
641
+ },
642
+ "status": {
643
+ "type": "string",
644
+ "nullable": true
645
+ },
646
+ "version": {
647
+ "type": "string",
648
+ "nullable": true
649
+ },
650
+ "confidence": {
651
+ "type": "number",
652
+ "format": "double",
653
+ "nullable": true
654
+ },
655
+ "warnings": {
656
+ "type": "array",
657
+ "items": {
658
+ "type": "string"
659
+ },
660
+ "nullable": true
661
+ }
662
+ },
663
+ "nullable": true
664
+ },
665
+ "tenderSource": {
666
+ "type": "object",
667
+ "properties": {
668
+ "externalTenderId": {
669
+ "type": "string",
670
+ "nullable": true
671
+ },
672
+ "sourceSystem": {
673
+ "type": "string",
674
+ "nullable": true
675
+ },
676
+ "sourceFiles": {
677
+ "type": "array",
678
+ "items": {
679
+ "$ref": "#/components/schemas/sourceFile"
680
+ },
681
+ "nullable": true
682
+ }
683
+ },
684
+ "nullable": true
685
+ },
686
+ "tenderStatus": {
687
+ "type": "object",
688
+ "properties": {
689
+ "stage": {
690
+ "type": "string",
691
+ "nullable": true
692
+ },
693
+ "state": {
694
+ "type": "string",
695
+ "nullable": true
696
+ },
697
+ "health": {
698
+ "type": "string",
699
+ "nullable": true
700
+ }
701
+ },
702
+ "nullable": true
703
+ },
704
+ "tenderTodo": {
705
+ "type": "object",
706
+ "properties": {
707
+ "id": {
708
+ "type": "string",
709
+ "nullable": true
710
+ },
711
+ "title": {
712
+ "type": "string",
713
+ "nullable": true
714
+ },
715
+ "description": {
716
+ "type": "string",
717
+ "nullable": true
718
+ },
719
+ "source": {
720
+ "type": "string",
721
+ "nullable": true
722
+ },
723
+ "category": {
724
+ "type": "string",
725
+ "nullable": true
726
+ },
727
+ "priority": {
728
+ "type": "string",
729
+ "nullable": true
730
+ },
731
+ "status": {
732
+ "type": "string",
733
+ "nullable": true
734
+ },
735
+ "assignedTo": {
736
+ "type": "string",
737
+ "nullable": true
738
+ },
739
+ "dueAt": {
740
+ "type": "string",
741
+ "format": "date-time",
742
+ "nullable": true
743
+ },
744
+ "completedAt": {
745
+ "type": "string",
746
+ "format": "date-time",
747
+ "nullable": true
748
+ }
749
+ }
750
+ }
751
+ },
752
+ "securitySchemes": {
753
+ "Implicit": {
754
+ "type": "oauth2",
755
+ "flows": {
756
+ "implicit": {
757
+ "authorizationUrl": "https://login.microsoftonline.com/81a4f38d-6712-4b65-868b-c3771f9ba91e/oauth2/v2.0/authorize",
758
+ "tokenUrl": "https://login.microsoftonline.com/81a4f38d-6712-4b65-868b-c3771f9ba91e/oauth2/v2.0/token",
759
+ "refreshUrl": "https://login.microsoftonline.com/81a4f38d-6712-4b65-868b-c3771f9ba91e/oauth2/v2.0/token",
760
+ "scopes": {
761
+ "api://7e877854-e62d-4637-a655-1da7141f7ac9/.default": "Default function scope"
762
+ }
763
+ }
764
+ }
765
+ }
766
+ }
767
+ }
39
768
  }