@supermodeltools/sdk 0.3.8 → 0.4.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/README.md +40 -31
- package/dist/apis/DefaultApi.d.ts +1 -1
- package/dist/apis/DefaultApi.js +1 -1
- package/dist/esm/apis/DefaultApi.d.ts +1 -1
- package/dist/esm/apis/DefaultApi.js +1 -1
- package/dist/esm/models/ClassificationStats.d.ts +1 -1
- package/dist/esm/models/ClassificationStats.js +1 -1
- package/dist/esm/models/CodeGraphEnvelope.d.ts +1 -1
- package/dist/esm/models/CodeGraphEnvelope.js +1 -1
- package/dist/esm/models/CodeGraphEnvelopeGraph.d.ts +1 -1
- package/dist/esm/models/CodeGraphEnvelopeGraph.js +1 -1
- package/dist/esm/models/CodeGraphNode.d.ts +1 -1
- package/dist/esm/models/CodeGraphNode.js +1 -1
- package/dist/esm/models/CodeGraphRelationship.d.ts +1 -1
- package/dist/esm/models/CodeGraphRelationship.js +1 -1
- package/dist/esm/models/CodeGraphStats.d.ts +1 -1
- package/dist/esm/models/CodeGraphStats.js +1 -1
- package/dist/esm/models/DomainClassAssignment.d.ts +1 -1
- package/dist/esm/models/DomainClassAssignment.js +1 -1
- package/dist/esm/models/DomainClassificationResponse.d.ts +1 -1
- package/dist/esm/models/DomainClassificationResponse.js +1 -1
- package/dist/esm/models/DomainFileAssignment.d.ts +1 -1
- package/dist/esm/models/DomainFileAssignment.js +1 -1
- package/dist/esm/models/DomainFunctionAssignment.d.ts +1 -1
- package/dist/esm/models/DomainFunctionAssignment.js +1 -1
- package/dist/esm/models/DomainRelationship.d.ts +1 -1
- package/dist/esm/models/DomainRelationship.js +1 -1
- package/dist/esm/models/DomainSummary.d.ts +1 -1
- package/dist/esm/models/DomainSummary.js +1 -1
- package/dist/esm/models/ErrorDetailsInner.d.ts +1 -1
- package/dist/esm/models/ErrorDetailsInner.js +1 -1
- package/dist/esm/models/FunctionDescription.d.ts +1 -1
- package/dist/esm/models/FunctionDescription.js +1 -1
- package/dist/esm/models/ModelError.d.ts +1 -1
- package/dist/esm/models/ModelError.js +1 -1
- package/dist/esm/models/SubdomainSummary.d.ts +1 -1
- package/dist/esm/models/SubdomainSummary.js +1 -1
- package/dist/esm/models/SupermodelArtifact.d.ts +1 -1
- package/dist/esm/models/SupermodelArtifact.js +1 -1
- package/dist/esm/models/SupermodelIR.d.ts +1 -1
- package/dist/esm/models/SupermodelIR.js +1 -1
- package/dist/esm/models/SupermodelIRGraph.d.ts +1 -1
- package/dist/esm/models/SupermodelIRGraph.js +1 -1
- package/dist/esm/models/UnassignedFunction.d.ts +1 -1
- package/dist/esm/models/UnassignedFunction.js +1 -1
- package/dist/esm/runtime.d.ts +1 -1
- package/dist/esm/runtime.js +1 -1
- package/dist/models/ClassificationStats.d.ts +1 -1
- package/dist/models/ClassificationStats.js +1 -1
- package/dist/models/CodeGraphEnvelope.d.ts +1 -1
- package/dist/models/CodeGraphEnvelope.js +1 -1
- package/dist/models/CodeGraphEnvelopeGraph.d.ts +1 -1
- package/dist/models/CodeGraphEnvelopeGraph.js +1 -1
- package/dist/models/CodeGraphNode.d.ts +1 -1
- package/dist/models/CodeGraphNode.js +1 -1
- package/dist/models/CodeGraphRelationship.d.ts +1 -1
- package/dist/models/CodeGraphRelationship.js +1 -1
- package/dist/models/CodeGraphStats.d.ts +1 -1
- package/dist/models/CodeGraphStats.js +1 -1
- package/dist/models/DomainClassAssignment.d.ts +1 -1
- package/dist/models/DomainClassAssignment.js +1 -1
- package/dist/models/DomainClassificationResponse.d.ts +1 -1
- package/dist/models/DomainClassificationResponse.js +1 -1
- package/dist/models/DomainFileAssignment.d.ts +1 -1
- package/dist/models/DomainFileAssignment.js +1 -1
- package/dist/models/DomainFunctionAssignment.d.ts +1 -1
- package/dist/models/DomainFunctionAssignment.js +1 -1
- package/dist/models/DomainRelationship.d.ts +1 -1
- package/dist/models/DomainRelationship.js +1 -1
- package/dist/models/DomainSummary.d.ts +1 -1
- package/dist/models/DomainSummary.js +1 -1
- package/dist/models/ErrorDetailsInner.d.ts +1 -1
- package/dist/models/ErrorDetailsInner.js +1 -1
- package/dist/models/FunctionDescription.d.ts +1 -1
- package/dist/models/FunctionDescription.js +1 -1
- package/dist/models/ModelError.d.ts +1 -1
- package/dist/models/ModelError.js +1 -1
- package/dist/models/SubdomainSummary.d.ts +1 -1
- package/dist/models/SubdomainSummary.js +1 -1
- package/dist/models/SupermodelArtifact.d.ts +1 -1
- package/dist/models/SupermodelArtifact.js +1 -1
- package/dist/models/SupermodelIR.d.ts +1 -1
- package/dist/models/SupermodelIR.js +1 -1
- package/dist/models/SupermodelIRGraph.d.ts +1 -1
- package/dist/models/SupermodelIRGraph.js +1 -1
- package/dist/models/UnassignedFunction.d.ts +1 -1
- package/dist/models/UnassignedFunction.js +1 -1
- package/dist/runtime.d.ts +1 -1
- package/dist/runtime.js +1 -1
- package/package.json +22 -5
- package/.openapi-generator/FILES +0 -32
- package/.openapi-generator/VERSION +0 -1
- package/.openapi-generator/openapi.yaml-generate-typescript-client.sha256 +0 -1
- package/.openapi-generator-ignore +0 -23
- package/src/apis/DefaultApi.ts +0 -416
- package/src/apis/index.ts +0 -3
- package/src/index.ts +0 -5
- package/src/models/ClassificationStats.ts +0 -106
- package/src/models/CodeGraphEnvelope.ts +0 -98
- package/src/models/CodeGraphEnvelopeGraph.ts +0 -83
- package/src/models/CodeGraphNode.ts +0 -77
- package/src/models/CodeGraphRelationship.ts +0 -96
- package/src/models/CodeGraphStats.ts +0 -92
- package/src/models/DomainClassAssignment.ts +0 -70
- package/src/models/DomainClassificationResponse.ts +0 -181
- package/src/models/DomainFileAssignment.ts +0 -70
- package/src/models/DomainFunctionAssignment.ts +0 -78
- package/src/models/DomainRelationship.ts +0 -96
- package/src/models/DomainSummary.ts +0 -104
- package/src/models/ErrorDetailsInner.ts +0 -78
- package/src/models/FunctionDescription.ts +0 -78
- package/src/models/ModelError.ts +0 -111
- package/src/models/SubdomainSummary.ts +0 -70
- package/src/models/SupermodelArtifact.ts +0 -87
- package/src/models/SupermodelIR.ts +0 -126
- package/src/models/SupermodelIRGraph.ts +0 -83
- package/src/models/UnassignedFunction.ts +0 -70
- package/src/models/index.ts +0 -22
- package/src/runtime.ts +0 -426
- package/tsconfig.esm.json +0 -7
- package/tsconfig.json +0 -16
|
@@ -1,126 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Supermodel
|
|
5
|
-
* Code Graphing & Analysis API
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.3.8
|
|
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
|
-
import type { SupermodelIRGraph } from './SupermodelIRGraph';
|
|
17
|
-
import {
|
|
18
|
-
SupermodelIRGraphFromJSON,
|
|
19
|
-
SupermodelIRGraphFromJSONTyped,
|
|
20
|
-
SupermodelIRGraphToJSON,
|
|
21
|
-
} from './SupermodelIRGraph';
|
|
22
|
-
import type { SupermodelArtifact } from './SupermodelArtifact';
|
|
23
|
-
import {
|
|
24
|
-
SupermodelArtifactFromJSON,
|
|
25
|
-
SupermodelArtifactFromJSONTyped,
|
|
26
|
-
SupermodelArtifactToJSON,
|
|
27
|
-
} from './SupermodelArtifact';
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
*
|
|
31
|
-
* @export
|
|
32
|
-
* @interface SupermodelIR
|
|
33
|
-
*/
|
|
34
|
-
export interface SupermodelIR {
|
|
35
|
-
/**
|
|
36
|
-
* Repository slug the IR was generated from.
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof SupermodelIR
|
|
39
|
-
*/
|
|
40
|
-
repo: string;
|
|
41
|
-
/**
|
|
42
|
-
* Version identifier for the IR content.
|
|
43
|
-
* @type {string}
|
|
44
|
-
* @memberof SupermodelIR
|
|
45
|
-
*/
|
|
46
|
-
version: string;
|
|
47
|
-
/**
|
|
48
|
-
* Version of the IR schema.
|
|
49
|
-
* @type {string}
|
|
50
|
-
* @memberof SupermodelIR
|
|
51
|
-
*/
|
|
52
|
-
schemaVersion: string;
|
|
53
|
-
/**
|
|
54
|
-
* Timestamp when the IR was generated.
|
|
55
|
-
* @type {Date}
|
|
56
|
-
* @memberof SupermodelIR
|
|
57
|
-
*/
|
|
58
|
-
generatedAt: Date;
|
|
59
|
-
/**
|
|
60
|
-
* High-level metadata and summary insights including filesProcessed, classes, functions, types, primaryLanguage, and domains count.
|
|
61
|
-
* @type {{ [key: string]: any; }}
|
|
62
|
-
* @memberof SupermodelIR
|
|
63
|
-
*/
|
|
64
|
-
summary?: { [key: string]: any; };
|
|
65
|
-
/**
|
|
66
|
-
*
|
|
67
|
-
* @type {SupermodelIRGraph}
|
|
68
|
-
* @memberof SupermodelIR
|
|
69
|
-
*/
|
|
70
|
-
graph: SupermodelIRGraph;
|
|
71
|
-
/**
|
|
72
|
-
* Per-source statistics and metadata for parse graph, call graph, and domain classification.
|
|
73
|
-
* @type {Array<SupermodelArtifact>}
|
|
74
|
-
* @memberof SupermodelIR
|
|
75
|
-
*/
|
|
76
|
-
artifacts?: Array<SupermodelArtifact>;
|
|
77
|
-
}
|
|
78
|
-
|
|
79
|
-
/**
|
|
80
|
-
* Check if a given object implements the SupermodelIR interface.
|
|
81
|
-
*/
|
|
82
|
-
export function instanceOfSupermodelIR(value: object): value is SupermodelIR {
|
|
83
|
-
if (!('repo' in value) || value['repo'] === undefined) return false;
|
|
84
|
-
if (!('version' in value) || value['version'] === undefined) return false;
|
|
85
|
-
if (!('schemaVersion' in value) || value['schemaVersion'] === undefined) return false;
|
|
86
|
-
if (!('generatedAt' in value) || value['generatedAt'] === undefined) return false;
|
|
87
|
-
if (!('graph' in value) || value['graph'] === undefined) return false;
|
|
88
|
-
return true;
|
|
89
|
-
}
|
|
90
|
-
|
|
91
|
-
export function SupermodelIRFromJSON(json: any): SupermodelIR {
|
|
92
|
-
return SupermodelIRFromJSONTyped(json, false);
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
export function SupermodelIRFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupermodelIR {
|
|
96
|
-
if (json == null) {
|
|
97
|
-
return json;
|
|
98
|
-
}
|
|
99
|
-
return {
|
|
100
|
-
|
|
101
|
-
'repo': json['repo'],
|
|
102
|
-
'version': json['version'],
|
|
103
|
-
'schemaVersion': json['schemaVersion'],
|
|
104
|
-
'generatedAt': (new Date(json['generatedAt'])),
|
|
105
|
-
'summary': json['summary'] == null ? undefined : json['summary'],
|
|
106
|
-
'graph': SupermodelIRGraphFromJSON(json['graph']),
|
|
107
|
-
'artifacts': json['artifacts'] == null ? undefined : ((json['artifacts'] as Array<any>).map(SupermodelArtifactFromJSON)),
|
|
108
|
-
};
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
export function SupermodelIRToJSON(value?: SupermodelIR | null): any {
|
|
112
|
-
if (value == null) {
|
|
113
|
-
return value;
|
|
114
|
-
}
|
|
115
|
-
return {
|
|
116
|
-
|
|
117
|
-
'repo': value['repo'],
|
|
118
|
-
'version': value['version'],
|
|
119
|
-
'schemaVersion': value['schemaVersion'],
|
|
120
|
-
'generatedAt': ((value['generatedAt']).toISOString()),
|
|
121
|
-
'summary': value['summary'],
|
|
122
|
-
'graph': SupermodelIRGraphToJSON(value['graph']),
|
|
123
|
-
'artifacts': value['artifacts'] == null ? undefined : ((value['artifacts'] as Array<any>).map(SupermodelArtifactToJSON)),
|
|
124
|
-
};
|
|
125
|
-
}
|
|
126
|
-
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Supermodel
|
|
5
|
-
* Code Graphing & Analysis API
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.3.8
|
|
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
|
-
import type { CodeGraphNode } from './CodeGraphNode';
|
|
17
|
-
import {
|
|
18
|
-
CodeGraphNodeFromJSON,
|
|
19
|
-
CodeGraphNodeFromJSONTyped,
|
|
20
|
-
CodeGraphNodeToJSON,
|
|
21
|
-
} from './CodeGraphNode';
|
|
22
|
-
import type { CodeGraphRelationship } from './CodeGraphRelationship';
|
|
23
|
-
import {
|
|
24
|
-
CodeGraphRelationshipFromJSON,
|
|
25
|
-
CodeGraphRelationshipFromJSONTyped,
|
|
26
|
-
CodeGraphRelationshipToJSON,
|
|
27
|
-
} from './CodeGraphRelationship';
|
|
28
|
-
|
|
29
|
-
/**
|
|
30
|
-
* Unified code graph containing all nodes and relationships.
|
|
31
|
-
* @export
|
|
32
|
-
* @interface SupermodelIRGraph
|
|
33
|
-
*/
|
|
34
|
-
export interface SupermodelIRGraph {
|
|
35
|
-
/**
|
|
36
|
-
* All nodes from parse graph, call graph, and domain classification.
|
|
37
|
-
* @type {Array<CodeGraphNode>}
|
|
38
|
-
* @memberof SupermodelIRGraph
|
|
39
|
-
*/
|
|
40
|
-
nodes: Array<CodeGraphNode>;
|
|
41
|
-
/**
|
|
42
|
-
* All relationships including contains, imports, calls, and belongsTo.
|
|
43
|
-
* @type {Array<CodeGraphRelationship>}
|
|
44
|
-
* @memberof SupermodelIRGraph
|
|
45
|
-
*/
|
|
46
|
-
relationships: Array<CodeGraphRelationship>;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/**
|
|
50
|
-
* Check if a given object implements the SupermodelIRGraph interface.
|
|
51
|
-
*/
|
|
52
|
-
export function instanceOfSupermodelIRGraph(value: object): value is SupermodelIRGraph {
|
|
53
|
-
if (!('nodes' in value) || value['nodes'] === undefined) return false;
|
|
54
|
-
if (!('relationships' in value) || value['relationships'] === undefined) return false;
|
|
55
|
-
return true;
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export function SupermodelIRGraphFromJSON(json: any): SupermodelIRGraph {
|
|
59
|
-
return SupermodelIRGraphFromJSONTyped(json, false);
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
export function SupermodelIRGraphFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupermodelIRGraph {
|
|
63
|
-
if (json == null) {
|
|
64
|
-
return json;
|
|
65
|
-
}
|
|
66
|
-
return {
|
|
67
|
-
|
|
68
|
-
'nodes': ((json['nodes'] as Array<any>).map(CodeGraphNodeFromJSON)),
|
|
69
|
-
'relationships': ((json['relationships'] as Array<any>).map(CodeGraphRelationshipFromJSON)),
|
|
70
|
-
};
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
export function SupermodelIRGraphToJSON(value?: SupermodelIRGraph | null): any {
|
|
74
|
-
if (value == null) {
|
|
75
|
-
return value;
|
|
76
|
-
}
|
|
77
|
-
return {
|
|
78
|
-
|
|
79
|
-
'nodes': ((value['nodes'] as Array<any>).map(CodeGraphNodeToJSON)),
|
|
80
|
-
'relationships': ((value['relationships'] as Array<any>).map(CodeGraphRelationshipToJSON)),
|
|
81
|
-
};
|
|
82
|
-
}
|
|
83
|
-
|
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* Supermodel
|
|
5
|
-
* Code Graphing & Analysis API
|
|
6
|
-
*
|
|
7
|
-
* The version of the OpenAPI document: 0.3.8
|
|
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
|
-
*
|
|
18
|
-
* @export
|
|
19
|
-
* @interface UnassignedFunction
|
|
20
|
-
*/
|
|
21
|
-
export interface UnassignedFunction {
|
|
22
|
-
/**
|
|
23
|
-
* Function that could not be assigned
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof UnassignedFunction
|
|
26
|
-
*/
|
|
27
|
-
functionId: string;
|
|
28
|
-
/**
|
|
29
|
-
* Reason it was left unassigned
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof UnassignedFunction
|
|
32
|
-
*/
|
|
33
|
-
reason: string;
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
/**
|
|
37
|
-
* Check if a given object implements the UnassignedFunction interface.
|
|
38
|
-
*/
|
|
39
|
-
export function instanceOfUnassignedFunction(value: object): value is UnassignedFunction {
|
|
40
|
-
if (!('functionId' in value) || value['functionId'] === undefined) return false;
|
|
41
|
-
if (!('reason' in value) || value['reason'] === undefined) return false;
|
|
42
|
-
return true;
|
|
43
|
-
}
|
|
44
|
-
|
|
45
|
-
export function UnassignedFunctionFromJSON(json: any): UnassignedFunction {
|
|
46
|
-
return UnassignedFunctionFromJSONTyped(json, false);
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
export function UnassignedFunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnassignedFunction {
|
|
50
|
-
if (json == null) {
|
|
51
|
-
return json;
|
|
52
|
-
}
|
|
53
|
-
return {
|
|
54
|
-
|
|
55
|
-
'functionId': json['functionId'],
|
|
56
|
-
'reason': json['reason'],
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
export function UnassignedFunctionToJSON(value?: UnassignedFunction | null): any {
|
|
61
|
-
if (value == null) {
|
|
62
|
-
return value;
|
|
63
|
-
}
|
|
64
|
-
return {
|
|
65
|
-
|
|
66
|
-
'functionId': value['functionId'],
|
|
67
|
-
'reason': value['reason'],
|
|
68
|
-
};
|
|
69
|
-
}
|
|
70
|
-
|
package/src/models/index.ts
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
export * from './ClassificationStats';
|
|
4
|
-
export * from './CodeGraphEnvelope';
|
|
5
|
-
export * from './CodeGraphEnvelopeGraph';
|
|
6
|
-
export * from './CodeGraphNode';
|
|
7
|
-
export * from './CodeGraphRelationship';
|
|
8
|
-
export * from './CodeGraphStats';
|
|
9
|
-
export * from './DomainClassAssignment';
|
|
10
|
-
export * from './DomainClassificationResponse';
|
|
11
|
-
export * from './DomainFileAssignment';
|
|
12
|
-
export * from './DomainFunctionAssignment';
|
|
13
|
-
export * from './DomainRelationship';
|
|
14
|
-
export * from './DomainSummary';
|
|
15
|
-
export * from './ErrorDetailsInner';
|
|
16
|
-
export * from './FunctionDescription';
|
|
17
|
-
export * from './ModelError';
|
|
18
|
-
export * from './SubdomainSummary';
|
|
19
|
-
export * from './SupermodelArtifact';
|
|
20
|
-
export * from './SupermodelIR';
|
|
21
|
-
export * from './SupermodelIRGraph';
|
|
22
|
-
export * from './UnassignedFunction';
|