@supermodeltools/openapi-spec 0.5.4 → 0.6.2
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/openapi.yaml +403 -241
- package/package.json +1 -1
package/openapi.yaml
CHANGED
|
@@ -2,7 +2,7 @@ openapi: 3.0.0
|
|
|
2
2
|
info:
|
|
3
3
|
title: Supermodel
|
|
4
4
|
description: Code Graphing & Analysis API
|
|
5
|
-
version: 0.
|
|
5
|
+
version: 0.6.2
|
|
6
6
|
license:
|
|
7
7
|
name: Supermodel API Terms of Service
|
|
8
8
|
url: https://supermodeltools.com/legal/api-terms
|
|
@@ -188,7 +188,7 @@ paths:
|
|
|
188
188
|
}
|
|
189
189
|
responses:
|
|
190
190
|
'200':
|
|
191
|
-
description: Dependency graph
|
|
191
|
+
description: Dependency graph (job completed)
|
|
192
192
|
headers:
|
|
193
193
|
X-Request-Id:
|
|
194
194
|
$ref: '#/components/headers/X-Request-Id'
|
|
@@ -205,36 +205,58 @@ paths:
|
|
|
205
205
|
content:
|
|
206
206
|
application/json:
|
|
207
207
|
schema:
|
|
208
|
-
$ref: '#/components/schemas/
|
|
208
|
+
$ref: '#/components/schemas/CodeGraphEnvelopeAsync'
|
|
209
209
|
example:
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
210
|
+
status: completed
|
|
211
|
+
jobId: abc-123-def
|
|
212
|
+
result:
|
|
213
|
+
generatedAt: '2025-02-05 15:42:10.000000000 Z'
|
|
214
|
+
message: Graph generated successfully
|
|
215
|
+
stats:
|
|
216
|
+
filesProcessed: 2
|
|
217
|
+
classes: 0
|
|
218
|
+
functions: 0
|
|
219
|
+
types: 0
|
|
220
|
+
processingTimeMs: 15
|
|
221
|
+
graph:
|
|
222
|
+
nodes:
|
|
223
|
+
- id: src/main.js
|
|
224
|
+
labels:
|
|
225
|
+
- File
|
|
226
|
+
properties:
|
|
227
|
+
path: src/main.js
|
|
228
|
+
name: main.js
|
|
229
|
+
- id: src/math.js
|
|
230
|
+
labels:
|
|
231
|
+
- File
|
|
232
|
+
properties:
|
|
233
|
+
path: src/math.js
|
|
234
|
+
name: math.js
|
|
235
|
+
relationships:
|
|
236
|
+
- id: src/main.js_imports_src/math.js
|
|
237
|
+
type: imports
|
|
238
|
+
startNode: src/main.js
|
|
239
|
+
endNode: src/math.js
|
|
240
|
+
properties: {}
|
|
241
|
+
'202':
|
|
242
|
+
description: Job accepted and processing
|
|
243
|
+
headers:
|
|
244
|
+
X-Request-Id:
|
|
245
|
+
$ref: '#/components/headers/X-Request-Id'
|
|
246
|
+
X-API-Version:
|
|
247
|
+
$ref: '#/components/headers/X-API-Version'
|
|
248
|
+
Retry-After:
|
|
249
|
+
description: Recommended wait time in seconds before polling again.
|
|
250
|
+
schema:
|
|
251
|
+
type: integer
|
|
252
|
+
content:
|
|
253
|
+
application/json:
|
|
254
|
+
schema:
|
|
255
|
+
$ref: '#/components/schemas/CodeGraphEnvelopeAsync'
|
|
256
|
+
example:
|
|
257
|
+
status: processing
|
|
258
|
+
jobId: abc-123-def
|
|
259
|
+
retryAfter: 5
|
|
238
260
|
'400':
|
|
239
261
|
$ref: '#/components/responses/BadRequest'
|
|
240
262
|
'401':
|
|
@@ -428,7 +450,7 @@ paths:
|
|
|
428
450
|
}
|
|
429
451
|
responses:
|
|
430
452
|
'200':
|
|
431
|
-
description: Call graph
|
|
453
|
+
description: Call graph (job completed)
|
|
432
454
|
headers:
|
|
433
455
|
X-Request-Id:
|
|
434
456
|
$ref: '#/components/headers/X-Request-Id'
|
|
@@ -445,35 +467,57 @@ paths:
|
|
|
445
467
|
content:
|
|
446
468
|
application/json:
|
|
447
469
|
schema:
|
|
448
|
-
$ref: '#/components/schemas/
|
|
470
|
+
$ref: '#/components/schemas/CodeGraphEnvelopeAsync'
|
|
449
471
|
example:
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
472
|
+
status: completed
|
|
473
|
+
jobId: abc-123-def
|
|
474
|
+
result:
|
|
475
|
+
generatedAt: '2025-02-05 15:42:10.000000000 Z'
|
|
476
|
+
message: Call graph generated successfully
|
|
477
|
+
stats:
|
|
478
|
+
filesProcessed: 2
|
|
479
|
+
classes: 0
|
|
480
|
+
functions: 2
|
|
481
|
+
types: 0
|
|
482
|
+
processingTimeMs: 8
|
|
483
|
+
graph:
|
|
484
|
+
nodes:
|
|
485
|
+
- id: fn:index.ts:init
|
|
486
|
+
labels:
|
|
487
|
+
- Function
|
|
488
|
+
properties:
|
|
489
|
+
file: src/index.ts
|
|
490
|
+
- id: fn:service.ts:handle
|
|
491
|
+
labels:
|
|
492
|
+
- Function
|
|
493
|
+
properties:
|
|
494
|
+
file: src/service.ts
|
|
495
|
+
relationships:
|
|
496
|
+
- id: fn:index.ts:init_calls_fn:service.ts:handle
|
|
497
|
+
type: calls
|
|
498
|
+
startNode: fn:index.ts:init
|
|
499
|
+
endNode: fn:service.ts:handle
|
|
500
|
+
properties:
|
|
501
|
+
count: 4
|
|
502
|
+
'202':
|
|
503
|
+
description: Job accepted and processing
|
|
504
|
+
headers:
|
|
505
|
+
X-Request-Id:
|
|
506
|
+
$ref: '#/components/headers/X-Request-Id'
|
|
507
|
+
X-API-Version:
|
|
508
|
+
$ref: '#/components/headers/X-API-Version'
|
|
509
|
+
Retry-After:
|
|
510
|
+
description: Recommended wait time in seconds before polling again.
|
|
511
|
+
schema:
|
|
512
|
+
type: integer
|
|
513
|
+
content:
|
|
514
|
+
application/json:
|
|
515
|
+
schema:
|
|
516
|
+
$ref: '#/components/schemas/CodeGraphEnvelopeAsync'
|
|
517
|
+
example:
|
|
518
|
+
status: processing
|
|
519
|
+
jobId: abc-123-def
|
|
520
|
+
retryAfter: 5
|
|
477
521
|
'400':
|
|
478
522
|
$ref: '#/components/responses/BadRequest'
|
|
479
523
|
'401':
|
|
@@ -667,7 +711,7 @@ paths:
|
|
|
667
711
|
}
|
|
668
712
|
responses:
|
|
669
713
|
'200':
|
|
670
|
-
description: Domain graph
|
|
714
|
+
description: Domain graph (job completed)
|
|
671
715
|
headers:
|
|
672
716
|
X-Request-Id:
|
|
673
717
|
$ref: '#/components/headers/X-Request-Id'
|
|
@@ -684,63 +728,85 @@ paths:
|
|
|
684
728
|
content:
|
|
685
729
|
application/json:
|
|
686
730
|
schema:
|
|
687
|
-
$ref: '#/components/schemas/
|
|
731
|
+
$ref: '#/components/schemas/DomainClassificationResponseAsync'
|
|
688
732
|
example:
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
|
|
724
|
-
|
|
725
|
-
|
|
726
|
-
|
|
727
|
-
|
|
728
|
-
|
|
729
|
-
|
|
730
|
-
|
|
731
|
-
|
|
732
|
-
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
737
|
-
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
733
|
+
status: completed
|
|
734
|
+
jobId: abc-123-def
|
|
735
|
+
result:
|
|
736
|
+
runId: smart-sampling-a1b2c3d4
|
|
737
|
+
domains:
|
|
738
|
+
- name: BillingAccount
|
|
739
|
+
descriptionSummary: Handles billing and account management
|
|
740
|
+
keyFiles:
|
|
741
|
+
- src/domain/billing.ts
|
|
742
|
+
- src/services/billing.service.ts
|
|
743
|
+
responsibilities:
|
|
744
|
+
- Account creation
|
|
745
|
+
- Payment processing
|
|
746
|
+
subdomains:
|
|
747
|
+
- name: PaymentProcessing
|
|
748
|
+
descriptionSummary: Processes payment transactions
|
|
749
|
+
- name: UsageSummary
|
|
750
|
+
descriptionSummary: Tracks and summarizes usage metrics
|
|
751
|
+
keyFiles:
|
|
752
|
+
- src/domain/usage.ts
|
|
753
|
+
responsibilities:
|
|
754
|
+
- Usage tracking
|
|
755
|
+
- Metrics aggregation
|
|
756
|
+
subdomains: []
|
|
757
|
+
relationships:
|
|
758
|
+
- from: BillingAccount
|
|
759
|
+
to: UsageSummary
|
|
760
|
+
type: aggregates
|
|
761
|
+
strength: 0.8
|
|
762
|
+
reason: BillingAccount aggregates usage data for billing purposes
|
|
763
|
+
fileAssignments:
|
|
764
|
+
- filePath: src/domain/billing.ts
|
|
765
|
+
domainName: BillingAccount
|
|
766
|
+
- filePath: src/domain/usage.ts
|
|
767
|
+
domainName: UsageSummary
|
|
768
|
+
functionAssignments:
|
|
769
|
+
- functionId: func-123
|
|
770
|
+
subdomainName: PaymentProcessing
|
|
771
|
+
parentDomain: BillingAccount
|
|
772
|
+
unassignedFunctions:
|
|
773
|
+
- functionId: func-456
|
|
774
|
+
reason: Utility function with unclear domain association
|
|
775
|
+
classAssignments:
|
|
776
|
+
- classId: class-789
|
|
777
|
+
domainName: BillingAccount
|
|
778
|
+
functionDescriptions:
|
|
779
|
+
- functionId: func-123
|
|
780
|
+
descriptionSummary: Processes incoming payment transactions
|
|
781
|
+
domainName: BillingAccount
|
|
782
|
+
- functionId: func-456
|
|
783
|
+
descriptionSummary: Aggregates usage metrics for billing period
|
|
784
|
+
stats:
|
|
785
|
+
domainCount: 2
|
|
786
|
+
relationshipCount: 1
|
|
787
|
+
fileAssignments: 2
|
|
788
|
+
functionAssignments: 1
|
|
789
|
+
unassignedFunctions: 1
|
|
790
|
+
classAssignments: 1
|
|
791
|
+
'202':
|
|
792
|
+
description: Job accepted and processing
|
|
793
|
+
headers:
|
|
794
|
+
X-Request-Id:
|
|
795
|
+
$ref: '#/components/headers/X-Request-Id'
|
|
796
|
+
X-API-Version:
|
|
797
|
+
$ref: '#/components/headers/X-API-Version'
|
|
798
|
+
Retry-After:
|
|
799
|
+
description: Recommended wait time in seconds before polling again.
|
|
800
|
+
schema:
|
|
801
|
+
type: integer
|
|
802
|
+
content:
|
|
803
|
+
application/json:
|
|
804
|
+
schema:
|
|
805
|
+
$ref: '#/components/schemas/DomainClassificationResponseAsync'
|
|
806
|
+
example:
|
|
807
|
+
status: processing
|
|
808
|
+
jobId: abc-123-def
|
|
809
|
+
retryAfter: 5
|
|
744
810
|
'400':
|
|
745
811
|
$ref: '#/components/responses/BadRequest'
|
|
746
812
|
'401':
|
|
@@ -934,7 +1000,7 @@ paths:
|
|
|
934
1000
|
}
|
|
935
1001
|
responses:
|
|
936
1002
|
'200':
|
|
937
|
-
description: Parse graph
|
|
1003
|
+
description: Parse graph (job completed)
|
|
938
1004
|
headers:
|
|
939
1005
|
X-Request-Id:
|
|
940
1006
|
$ref: '#/components/headers/X-Request-Id'
|
|
@@ -951,35 +1017,57 @@ paths:
|
|
|
951
1017
|
content:
|
|
952
1018
|
application/json:
|
|
953
1019
|
schema:
|
|
954
|
-
$ref: '#/components/schemas/
|
|
1020
|
+
$ref: '#/components/schemas/CodeGraphEnvelopeAsync'
|
|
955
1021
|
example:
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
1022
|
+
status: completed
|
|
1023
|
+
jobId: abc-123-def
|
|
1024
|
+
result:
|
|
1025
|
+
generatedAt: '2025-02-05 15:42:10.000000000 Z'
|
|
1026
|
+
message: Parse graph generated successfully
|
|
1027
|
+
stats:
|
|
1028
|
+
filesProcessed: 1
|
|
1029
|
+
classes: 0
|
|
1030
|
+
functions: 1
|
|
1031
|
+
types: 0
|
|
1032
|
+
processingTimeMs: 12
|
|
1033
|
+
graph:
|
|
1034
|
+
nodes:
|
|
1035
|
+
- id: ast:src/index.ts:1:0
|
|
1036
|
+
labels:
|
|
1037
|
+
- Program
|
|
1038
|
+
properties:
|
|
1039
|
+
kind: Program
|
|
1040
|
+
- id: ast:src/index.ts:3:2
|
|
1041
|
+
labels:
|
|
1042
|
+
- FunctionDeclaration
|
|
1043
|
+
properties:
|
|
1044
|
+
name: init
|
|
1045
|
+
relationships:
|
|
1046
|
+
- id: ast:src/index.ts:1:0_contains_ast:src/index.ts:3:2
|
|
1047
|
+
type: contains
|
|
1048
|
+
startNode: ast:src/index.ts:1:0
|
|
1049
|
+
endNode: ast:src/index.ts:3:2
|
|
1050
|
+
properties:
|
|
1051
|
+
order: 1
|
|
1052
|
+
'202':
|
|
1053
|
+
description: Job accepted and processing
|
|
1054
|
+
headers:
|
|
1055
|
+
X-Request-Id:
|
|
1056
|
+
$ref: '#/components/headers/X-Request-Id'
|
|
1057
|
+
X-API-Version:
|
|
1058
|
+
$ref: '#/components/headers/X-API-Version'
|
|
1059
|
+
Retry-After:
|
|
1060
|
+
description: Recommended wait time in seconds before polling again.
|
|
1061
|
+
schema:
|
|
1062
|
+
type: integer
|
|
1063
|
+
content:
|
|
1064
|
+
application/json:
|
|
1065
|
+
schema:
|
|
1066
|
+
$ref: '#/components/schemas/CodeGraphEnvelopeAsync'
|
|
1067
|
+
example:
|
|
1068
|
+
status: processing
|
|
1069
|
+
jobId: abc-123-def
|
|
1070
|
+
retryAfter: 5
|
|
983
1071
|
'400':
|
|
984
1072
|
$ref: '#/components/responses/BadRequest'
|
|
985
1073
|
'401':
|
|
@@ -1173,7 +1261,7 @@ paths:
|
|
|
1173
1261
|
}
|
|
1174
1262
|
responses:
|
|
1175
1263
|
'200':
|
|
1176
|
-
description: Supermodel IR document
|
|
1264
|
+
description: Supermodel IR document (job completed)
|
|
1177
1265
|
headers:
|
|
1178
1266
|
X-Request-Id:
|
|
1179
1267
|
$ref: '#/components/headers/X-Request-Id'
|
|
@@ -1190,101 +1278,123 @@ paths:
|
|
|
1190
1278
|
content:
|
|
1191
1279
|
application/json:
|
|
1192
1280
|
schema:
|
|
1193
|
-
$ref: '#/components/schemas/
|
|
1281
|
+
$ref: '#/components/schemas/SupermodelIRAsync'
|
|
1194
1282
|
example:
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1283
|
+
status: completed
|
|
1284
|
+
jobId: abc-123-def
|
|
1285
|
+
result:
|
|
1286
|
+
repo: supermodel/supermodel-public-api
|
|
1287
|
+
version: sir-2025-02-05
|
|
1288
|
+
schemaVersion: 1.2.0
|
|
1289
|
+
generatedAt: '2025-02-05 15:42:10.000000000 Z'
|
|
1290
|
+
summary:
|
|
1291
|
+
repoSizeBytes: 123456
|
|
1292
|
+
filesProcessed: 42
|
|
1293
|
+
classes: 8
|
|
1294
|
+
functions: 156
|
|
1295
|
+
types: 12
|
|
1296
|
+
primaryLanguage: typescript
|
|
1297
|
+
domains: 5
|
|
1298
|
+
graph:
|
|
1299
|
+
nodes:
|
|
1300
|
+
- id: src/index.ts
|
|
1301
|
+
labels:
|
|
1302
|
+
- File
|
|
1303
|
+
properties:
|
|
1304
|
+
path: src/index.ts
|
|
1305
|
+
name: index.ts
|
|
1306
|
+
language: typescript
|
|
1307
|
+
- id: fn:src/index.ts:main
|
|
1308
|
+
labels:
|
|
1309
|
+
- Function
|
|
1310
|
+
properties:
|
|
1311
|
+
name: main
|
|
1312
|
+
filePath: src/index.ts
|
|
1313
|
+
startLine: 10
|
|
1314
|
+
endLine: 25
|
|
1315
|
+
- id: fn:src/utils.ts:helper
|
|
1316
|
+
labels:
|
|
1317
|
+
- Function
|
|
1318
|
+
properties:
|
|
1319
|
+
name: helper
|
|
1320
|
+
filePath: src/utils.ts
|
|
1321
|
+
- id: domain:Core
|
|
1322
|
+
labels:
|
|
1323
|
+
- Domain
|
|
1324
|
+
properties:
|
|
1325
|
+
name: Core
|
|
1326
|
+
description: Core application logic
|
|
1327
|
+
- id: subdomain:Core:Initialization
|
|
1328
|
+
labels:
|
|
1329
|
+
- Subdomain
|
|
1330
|
+
properties:
|
|
1331
|
+
name: Initialization
|
|
1332
|
+
parentDomain: Core
|
|
1333
|
+
relationships:
|
|
1334
|
+
- id: src/index.ts_contains_fn:src/index.ts:main
|
|
1335
|
+
type: contains
|
|
1336
|
+
startNode: src/index.ts
|
|
1337
|
+
endNode: fn:src/index.ts:main
|
|
1338
|
+
- id: src/index.ts_imports_src/utils.ts
|
|
1339
|
+
type: imports
|
|
1340
|
+
startNode: src/index.ts
|
|
1341
|
+
endNode: src/utils.ts
|
|
1342
|
+
- id: fn:src/index.ts:main_calls_fn:src/utils.ts:helper
|
|
1343
|
+
type: calls
|
|
1344
|
+
startNode: fn:src/index.ts:main
|
|
1345
|
+
endNode: fn:src/utils.ts:helper
|
|
1346
|
+
- id: fn:src/index.ts:main_belongsTo_subdomain:Core:Initialization
|
|
1347
|
+
type: belongsTo
|
|
1348
|
+
startNode: fn:src/index.ts:main
|
|
1349
|
+
endNode: subdomain:Core:Initialization
|
|
1350
|
+
artifacts:
|
|
1351
|
+
- id: artifact-usage-summary
|
|
1352
|
+
kind: summary
|
|
1353
|
+
label: Usage Insights
|
|
1354
|
+
metadata:
|
|
1355
|
+
repoSizeBytes: 123456
|
|
1356
|
+
filesProcessed: 42
|
|
1357
|
+
functions: 156
|
|
1358
|
+
classes: 8
|
|
1359
|
+
- id: parse-graph
|
|
1360
|
+
kind: graph
|
|
1361
|
+
label: Parse Graph
|
|
1362
|
+
metadata:
|
|
1363
|
+
nodeCount: 150
|
|
1364
|
+
relationshipCount: 280
|
|
1365
|
+
- id: call-graph
|
|
1366
|
+
kind: graph
|
|
1367
|
+
label: Call Graph
|
|
1368
|
+
metadata:
|
|
1369
|
+
totalFunctions: 156
|
|
1370
|
+
totalCalls: 423
|
|
1371
|
+
- id: domain-classification
|
|
1372
|
+
kind: classification
|
|
1373
|
+
label: Domain Classification
|
|
1374
|
+
metadata:
|
|
1375
|
+
domainCount: 5
|
|
1376
|
+
relationshipCount: 8
|
|
1377
|
+
fileAssignments: 42
|
|
1378
|
+
functionAssignments: 120
|
|
1379
|
+
'202':
|
|
1380
|
+
description: Job accepted and processing
|
|
1381
|
+
headers:
|
|
1382
|
+
X-Request-Id:
|
|
1383
|
+
$ref: '#/components/headers/X-Request-Id'
|
|
1384
|
+
X-API-Version:
|
|
1385
|
+
$ref: '#/components/headers/X-API-Version'
|
|
1386
|
+
Retry-After:
|
|
1387
|
+
description: Recommended wait time in seconds before polling again.
|
|
1388
|
+
schema:
|
|
1389
|
+
type: integer
|
|
1390
|
+
content:
|
|
1391
|
+
application/json:
|
|
1392
|
+
schema:
|
|
1393
|
+
$ref: '#/components/schemas/SupermodelIRAsync'
|
|
1394
|
+
example:
|
|
1395
|
+
status: processing
|
|
1396
|
+
jobId: abc-123-def
|
|
1397
|
+
retryAfter: 5
|
|
1288
1398
|
'400':
|
|
1289
1399
|
$ref: '#/components/responses/BadRequest'
|
|
1290
1400
|
'401':
|
|
@@ -1586,6 +1696,58 @@ components:
|
|
|
1586
1696
|
- relationships
|
|
1587
1697
|
required:
|
|
1588
1698
|
- graph
|
|
1699
|
+
JobStatus:
|
|
1700
|
+
type: object
|
|
1701
|
+
description: Common fields for async job status tracking.
|
|
1702
|
+
required:
|
|
1703
|
+
- status
|
|
1704
|
+
- jobId
|
|
1705
|
+
properties:
|
|
1706
|
+
status:
|
|
1707
|
+
type: string
|
|
1708
|
+
description: Current status of the job.
|
|
1709
|
+
enum:
|
|
1710
|
+
- pending
|
|
1711
|
+
- processing
|
|
1712
|
+
- completed
|
|
1713
|
+
- failed
|
|
1714
|
+
jobId:
|
|
1715
|
+
type: string
|
|
1716
|
+
description: Unique identifier for the job.
|
|
1717
|
+
retryAfter:
|
|
1718
|
+
type: integer
|
|
1719
|
+
format: int32
|
|
1720
|
+
description: Recommended seconds to wait before polling again.
|
|
1721
|
+
error:
|
|
1722
|
+
type: string
|
|
1723
|
+
description: Error message (present when status is failed).
|
|
1724
|
+
CodeGraphEnvelopeAsync:
|
|
1725
|
+
allOf:
|
|
1726
|
+
- $ref: '#/components/schemas/JobStatus'
|
|
1727
|
+
- type: object
|
|
1728
|
+
description: Async response envelope for code graph operations.
|
|
1729
|
+
properties:
|
|
1730
|
+
result:
|
|
1731
|
+
$ref: '#/components/schemas/CodeGraphEnvelope'
|
|
1732
|
+
description: The result (present when status is completed).
|
|
1733
|
+
DomainClassificationResponseAsync:
|
|
1734
|
+
allOf:
|
|
1735
|
+
- $ref: '#/components/schemas/JobStatus'
|
|
1736
|
+
- type: object
|
|
1737
|
+
description: Async response envelope for domain classification operations.
|
|
1738
|
+
properties:
|
|
1739
|
+
result:
|
|
1740
|
+
$ref: '#/components/schemas/DomainClassificationResponse'
|
|
1741
|
+
description: The result (present when status is completed).
|
|
1742
|
+
SupermodelIRAsync:
|
|
1743
|
+
allOf:
|
|
1744
|
+
- $ref: '#/components/schemas/JobStatus'
|
|
1745
|
+
- type: object
|
|
1746
|
+
description: Async response envelope for Supermodel IR operations.
|
|
1747
|
+
properties:
|
|
1748
|
+
result:
|
|
1749
|
+
$ref: '#/components/schemas/SupermodelIR'
|
|
1750
|
+
description: The result (present when status is completed).
|
|
1589
1751
|
Error:
|
|
1590
1752
|
type: object
|
|
1591
1753
|
description: Standardized error payload returned by the API.
|