Skip to content

Commit cb59191

Browse files
committed
Update TypeScript SDK for release v0.7.0
1 parent 106ae5a commit cb59191

31 files changed

+497
-32
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@supermodeltools/sdk",
3-
"version": "0.6.4",
3+
"version": "0.7.0",
44
"description": "TypeScript SDK for the Supermodel API - code graph generation and analysis",
55
"author": "Supermodel <support@supermodel.software>",
66
"license": "UNLICENSED",

src/apis/DefaultApi.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Supermodel
55
* Code Graphing & Analysis API
66
*
7-
* The version of the OpenAPI document: 0.6.4
7+
* The version of the OpenAPI document: 0.7.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/models/ClassificationStats.ts

Lines changed: 69 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Supermodel
55
* Code Graphing & Analysis API
66
*
7-
* The version of the OpenAPI document: 0.6.4
7+
* The version of the OpenAPI document: 0.7.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,18 +19,60 @@ import { mapValues } from '../runtime';
1919
* @interface ClassificationStats
2020
*/
2121
export interface ClassificationStats {
22+
/**
23+
* Total number of nodes in the graph
24+
* @type {number}
25+
* @memberof ClassificationStats
26+
*/
27+
nodeCount: number;
28+
/**
29+
* Total number of relationships in the graph
30+
* @type {number}
31+
* @memberof ClassificationStats
32+
*/
33+
relationshipCount: number;
34+
/**
35+
* Count of nodes by type
36+
* @type {{ [key: string]: number; }}
37+
* @memberof ClassificationStats
38+
*/
39+
nodeTypes: { [key: string]: number; };
40+
/**
41+
* Count of relationships by type
42+
* @type {{ [key: string]: number; }}
43+
* @memberof ClassificationStats
44+
*/
45+
relationshipTypes: { [key: string]: number; };
2246
/**
2347
* Number of domains discovered
2448
* @type {number}
2549
* @memberof ClassificationStats
2650
*/
2751
domainCount: number;
2852
/**
29-
* Number of relationships
53+
* Number of subdomains discovered
3054
* @type {number}
3155
* @memberof ClassificationStats
3256
*/
33-
relationshipCount: number;
57+
subdomainCount: number;
58+
/**
59+
* Number of files assigned to domains/subdomains
60+
* @type {number}
61+
* @memberof ClassificationStats
62+
*/
63+
assignedFileCount: number;
64+
/**
65+
* Number of functions assigned to domains/subdomains
66+
* @type {number}
67+
* @memberof ClassificationStats
68+
*/
69+
assignedFunctionCount: number;
70+
/**
71+
* Number of classes assigned to domains/subdomains
72+
* @type {number}
73+
* @memberof ClassificationStats
74+
*/
75+
assignedClassCount: number;
3476
/**
3577
* Count of file assignments
3678
* @type {number}
@@ -61,8 +103,15 @@ export interface ClassificationStats {
61103
* Check if a given object implements the ClassificationStats interface.
62104
*/
63105
export function instanceOfClassificationStats(value: object): value is ClassificationStats {
64-
if (!('domainCount' in value) || value['domainCount'] === undefined) return false;
106+
if (!('nodeCount' in value) || value['nodeCount'] === undefined) return false;
65107
if (!('relationshipCount' in value) || value['relationshipCount'] === undefined) return false;
108+
if (!('nodeTypes' in value) || value['nodeTypes'] === undefined) return false;
109+
if (!('relationshipTypes' in value) || value['relationshipTypes'] === undefined) return false;
110+
if (!('domainCount' in value) || value['domainCount'] === undefined) return false;
111+
if (!('subdomainCount' in value) || value['subdomainCount'] === undefined) return false;
112+
if (!('assignedFileCount' in value) || value['assignedFileCount'] === undefined) return false;
113+
if (!('assignedFunctionCount' in value) || value['assignedFunctionCount'] === undefined) return false;
114+
if (!('assignedClassCount' in value) || value['assignedClassCount'] === undefined) return false;
66115
if (!('fileAssignments' in value) || value['fileAssignments'] === undefined) return false;
67116
if (!('functionAssignments' in value) || value['functionAssignments'] === undefined) return false;
68117
if (!('unassignedFunctions' in value) || value['unassignedFunctions'] === undefined) return false;
@@ -80,8 +129,15 @@ export function ClassificationStatsFromJSONTyped(json: any, ignoreDiscriminator:
80129
}
81130
return {
82131

83-
'domainCount': json['domainCount'],
132+
'nodeCount': json['nodeCount'],
84133
'relationshipCount': json['relationshipCount'],
134+
'nodeTypes': json['nodeTypes'],
135+
'relationshipTypes': json['relationshipTypes'],
136+
'domainCount': json['domainCount'],
137+
'subdomainCount': json['subdomainCount'],
138+
'assignedFileCount': json['assignedFileCount'],
139+
'assignedFunctionCount': json['assignedFunctionCount'],
140+
'assignedClassCount': json['assignedClassCount'],
85141
'fileAssignments': json['fileAssignments'],
86142
'functionAssignments': json['functionAssignments'],
87143
'unassignedFunctions': json['unassignedFunctions'],
@@ -95,8 +151,15 @@ export function ClassificationStatsToJSON(value?: ClassificationStats | null): a
95151
}
96152
return {
97153

98-
'domainCount': value['domainCount'],
154+
'nodeCount': value['nodeCount'],
99155
'relationshipCount': value['relationshipCount'],
156+
'nodeTypes': value['nodeTypes'],
157+
'relationshipTypes': value['relationshipTypes'],
158+
'domainCount': value['domainCount'],
159+
'subdomainCount': value['subdomainCount'],
160+
'assignedFileCount': value['assignedFileCount'],
161+
'assignedFunctionCount': value['assignedFunctionCount'],
162+
'assignedClassCount': value['assignedClassCount'],
100163
'fileAssignments': value['fileAssignments'],
101164
'functionAssignments': value['functionAssignments'],
102165
'unassignedFunctions': value['unassignedFunctions'],

src/models/CodeGraphEnvelope.ts

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Supermodel
55
* Code Graphing & Analysis API
66
*
7-
* The version of the OpenAPI document: 0.6.4
7+
* The version of the OpenAPI document: 0.7.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -25,6 +25,12 @@ import {
2525
CodeGraphEnvelopeGraphFromJSONTyped,
2626
CodeGraphEnvelopeGraphToJSON,
2727
} from './CodeGraphEnvelopeGraph';
28+
import type { CodeGraphEnvelopeMetadata } from './CodeGraphEnvelopeMetadata';
29+
import {
30+
CodeGraphEnvelopeMetadataFromJSON,
31+
CodeGraphEnvelopeMetadataFromJSONTyped,
32+
CodeGraphEnvelopeMetadataToJSON,
33+
} from './CodeGraphEnvelopeMetadata';
2834

2935
/**
3036
*
@@ -50,6 +56,12 @@ export interface CodeGraphEnvelope {
5056
* @memberof CodeGraphEnvelope
5157
*/
5258
stats?: CodeGraphStats;
59+
/**
60+
*
61+
* @type {CodeGraphEnvelopeMetadata}
62+
* @memberof CodeGraphEnvelope
63+
*/
64+
metadata?: CodeGraphEnvelopeMetadata;
5365
/**
5466
*
5567
* @type {CodeGraphEnvelopeGraph}
@@ -79,6 +91,7 @@ export function CodeGraphEnvelopeFromJSONTyped(json: any, ignoreDiscriminator: b
7991
'generatedAt': json['generatedAt'] == null ? undefined : (new Date(json['generatedAt'])),
8092
'message': json['message'] == null ? undefined : json['message'],
8193
'stats': json['stats'] == null ? undefined : CodeGraphStatsFromJSON(json['stats']),
94+
'metadata': json['metadata'] == null ? undefined : CodeGraphEnvelopeMetadataFromJSON(json['metadata']),
8295
'graph': CodeGraphEnvelopeGraphFromJSON(json['graph']),
8396
};
8497
}
@@ -92,6 +105,7 @@ export function CodeGraphEnvelopeToJSON(value?: CodeGraphEnvelope | null): any {
92105
'generatedAt': value['generatedAt'] == null ? undefined : ((value['generatedAt']).toISOString()),
93106
'message': value['message'],
94107
'stats': CodeGraphStatsToJSON(value['stats']),
108+
'metadata': CodeGraphEnvelopeMetadataToJSON(value['metadata']),
95109
'graph': CodeGraphEnvelopeGraphToJSON(value['graph']),
96110
};
97111
}

src/models/CodeGraphEnvelopeAsync.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Supermodel
55
* Code Graphing & Analysis API
66
*
7-
* The version of the OpenAPI document: 0.6.4
7+
* The version of the OpenAPI document: 0.7.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/models/CodeGraphEnvelopeGraph.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Supermodel
55
* Code Graphing & Analysis API
66
*
7-
* The version of the OpenAPI document: 0.6.4
7+
* The version of the OpenAPI document: 0.7.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
Lines changed: 84 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,84 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* Supermodel
5+
* Code Graphing & Analysis API
6+
*
7+
* The version of the OpenAPI document: 0.7.0
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
import { mapValues } from '../runtime';
16+
/**
17+
* Analysis metadata including timing and file information
18+
* @export
19+
* @interface CodeGraphEnvelopeMetadata
20+
*/
21+
export interface CodeGraphEnvelopeMetadata {
22+
/**
23+
*
24+
* @type {Date}
25+
* @memberof CodeGraphEnvelopeMetadata
26+
*/
27+
analysisStartTime?: Date;
28+
/**
29+
*
30+
* @type {Date}
31+
* @memberof CodeGraphEnvelopeMetadata
32+
*/
33+
analysisEndTime?: Date;
34+
/**
35+
*
36+
* @type {number}
37+
* @memberof CodeGraphEnvelopeMetadata
38+
*/
39+
fileCount?: number;
40+
/**
41+
*
42+
* @type {Array<string>}
43+
* @memberof CodeGraphEnvelopeMetadata
44+
*/
45+
languages?: Array<string>;
46+
}
47+
48+
/**
49+
* Check if a given object implements the CodeGraphEnvelopeMetadata interface.
50+
*/
51+
export function instanceOfCodeGraphEnvelopeMetadata(value: object): value is CodeGraphEnvelopeMetadata {
52+
return true;
53+
}
54+
55+
export function CodeGraphEnvelopeMetadataFromJSON(json: any): CodeGraphEnvelopeMetadata {
56+
return CodeGraphEnvelopeMetadataFromJSONTyped(json, false);
57+
}
58+
59+
export function CodeGraphEnvelopeMetadataFromJSONTyped(json: any, ignoreDiscriminator: boolean): CodeGraphEnvelopeMetadata {
60+
if (json == null) {
61+
return json;
62+
}
63+
return {
64+
65+
'analysisStartTime': json['analysisStartTime'] == null ? undefined : (new Date(json['analysisStartTime'])),
66+
'analysisEndTime': json['analysisEndTime'] == null ? undefined : (new Date(json['analysisEndTime'])),
67+
'fileCount': json['fileCount'] == null ? undefined : json['fileCount'],
68+
'languages': json['languages'] == null ? undefined : json['languages'],
69+
};
70+
}
71+
72+
export function CodeGraphEnvelopeMetadataToJSON(value?: CodeGraphEnvelopeMetadata | null): any {
73+
if (value == null) {
74+
return value;
75+
}
76+
return {
77+
78+
'analysisStartTime': value['analysisStartTime'] == null ? undefined : ((value['analysisStartTime']).toISOString()),
79+
'analysisEndTime': value['analysisEndTime'] == null ? undefined : ((value['analysisEndTime']).toISOString()),
80+
'fileCount': value['fileCount'],
81+
'languages': value['languages'],
82+
};
83+
}
84+

src/models/CodeGraphNode.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Supermodel
55
* Code Graphing & Analysis API
66
*
7-
* The version of the OpenAPI document: 0.6.4
7+
* The version of the OpenAPI document: 0.7.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/models/CodeGraphRelationship.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Supermodel
55
* Code Graphing & Analysis API
66
*
7-
* The version of the OpenAPI document: 0.6.4
7+
* The version of the OpenAPI document: 0.7.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).

src/models/CodeGraphStats.ts

Lines changed: 33 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
* Supermodel
55
* Code Graphing & Analysis API
66
*
7-
* The version of the OpenAPI document: 0.6.4
7+
* The version of the OpenAPI document: 0.7.0
88
*
99
*
1010
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
@@ -19,6 +19,30 @@ import { mapValues } from '../runtime';
1919
* @interface CodeGraphStats
2020
*/
2121
export interface CodeGraphStats {
22+
/**
23+
* Total number of nodes in the graph
24+
* @type {number}
25+
* @memberof CodeGraphStats
26+
*/
27+
nodeCount?: number;
28+
/**
29+
* Total number of relationships in the graph
30+
* @type {number}
31+
* @memberof CodeGraphStats
32+
*/
33+
relationshipCount?: number;
34+
/**
35+
* Count of nodes by type
36+
* @type {{ [key: string]: number; }}
37+
* @memberof CodeGraphStats
38+
*/
39+
nodeTypes?: { [key: string]: number; };
40+
/**
41+
* Count of relationships by type
42+
* @type {{ [key: string]: number; }}
43+
* @memberof CodeGraphStats
44+
*/
45+
relationshipTypes?: { [key: string]: number; };
2246
/**
2347
*
2448
* @type {number}
@@ -68,6 +92,10 @@ export function CodeGraphStatsFromJSONTyped(json: any, ignoreDiscriminator: bool
6892
}
6993
return {
7094

95+
'nodeCount': json['nodeCount'] == null ? undefined : json['nodeCount'],
96+
'relationshipCount': json['relationshipCount'] == null ? undefined : json['relationshipCount'],
97+
'nodeTypes': json['nodeTypes'] == null ? undefined : json['nodeTypes'],
98+
'relationshipTypes': json['relationshipTypes'] == null ? undefined : json['relationshipTypes'],
7199
'filesProcessed': json['filesProcessed'] == null ? undefined : json['filesProcessed'],
72100
'classes': json['classes'] == null ? undefined : json['classes'],
73101
'functions': json['functions'] == null ? undefined : json['functions'],
@@ -82,6 +110,10 @@ export function CodeGraphStatsToJSON(value?: CodeGraphStats | null): any {
82110
}
83111
return {
84112

113+
'nodeCount': value['nodeCount'],
114+
'relationshipCount': value['relationshipCount'],
115+
'nodeTypes': value['nodeTypes'],
116+
'relationshipTypes': value['relationshipTypes'],
85117
'filesProcessed': value['filesProcessed'],
86118
'classes': value['classes'],
87119
'functions': value['functions'],

0 commit comments

Comments
 (0)