@supermodeltools/sdk 0.3.7

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 (133) hide show
  1. package/.openapi-generator/FILES +32 -0
  2. package/.openapi-generator/VERSION +1 -0
  3. package/.openapi-generator/openapi.yaml-generate-typescript-client.sha256 +1 -0
  4. package/.openapi-generator-ignore +23 -0
  5. package/README.md +46 -0
  6. package/dist/apis/DefaultApi.d.ts +88 -0
  7. package/dist/apis/DefaultApi.js +323 -0
  8. package/dist/apis/index.d.ts +1 -0
  9. package/dist/apis/index.js +19 -0
  10. package/dist/esm/apis/DefaultApi.d.ts +88 -0
  11. package/dist/esm/apis/DefaultApi.js +319 -0
  12. package/dist/esm/apis/index.d.ts +1 -0
  13. package/dist/esm/apis/index.js +3 -0
  14. package/dist/esm/index.d.ts +3 -0
  15. package/dist/esm/index.js +5 -0
  16. package/dist/esm/models/ClassificationStats.d.ts +61 -0
  17. package/dist/esm/models/ClassificationStats.js +60 -0
  18. package/dist/esm/models/CodeGraphEnvelope.d.ts +51 -0
  19. package/dist/esm/models/CodeGraphEnvelope.js +48 -0
  20. package/dist/esm/models/CodeGraphEnvelopeGraph.d.ts +39 -0
  21. package/dist/esm/models/CodeGraphEnvelopeGraph.js +46 -0
  22. package/dist/esm/models/CodeGraphNode.d.ts +45 -0
  23. package/dist/esm/models/CodeGraphNode.js +44 -0
  24. package/dist/esm/models/CodeGraphRelationship.d.ts +57 -0
  25. package/dist/esm/models/CodeGraphRelationship.js +54 -0
  26. package/dist/esm/models/CodeGraphStats.d.ts +55 -0
  27. package/dist/esm/models/CodeGraphStats.js +46 -0
  28. package/dist/esm/models/DomainClassAssignment.d.ts +37 -0
  29. package/dist/esm/models/DomainClassAssignment.js +44 -0
  30. package/dist/esm/models/DomainClassificationResponse.d.ts +87 -0
  31. package/dist/esm/models/DomainClassificationResponse.js +78 -0
  32. package/dist/esm/models/DomainFileAssignment.d.ts +37 -0
  33. package/dist/esm/models/DomainFileAssignment.js +44 -0
  34. package/dist/esm/models/DomainFunctionAssignment.d.ts +43 -0
  35. package/dist/esm/models/DomainFunctionAssignment.js +46 -0
  36. package/dist/esm/models/DomainRelationship.d.ts +55 -0
  37. package/dist/esm/models/DomainRelationship.js +54 -0
  38. package/dist/esm/models/DomainSummary.d.ts +56 -0
  39. package/dist/esm/models/DomainSummary.js +57 -0
  40. package/dist/esm/models/ErrorDetailsInner.d.ts +43 -0
  41. package/dist/esm/models/ErrorDetailsInner.js +46 -0
  42. package/dist/esm/models/FunctionDescription.d.ts +43 -0
  43. package/dist/esm/models/FunctionDescription.js +46 -0
  44. package/dist/esm/models/ModelError.d.ts +62 -0
  45. package/dist/esm/models/ModelError.js +57 -0
  46. package/dist/esm/models/SubdomainSummary.d.ts +37 -0
  47. package/dist/esm/models/SubdomainSummary.js +44 -0
  48. package/dist/esm/models/SupermodelArtifact.d.ts +51 -0
  49. package/dist/esm/models/SupermodelArtifact.js +50 -0
  50. package/dist/esm/models/SupermodelIR.d.ts +71 -0
  51. package/dist/esm/models/SupermodelIR.js +62 -0
  52. package/dist/esm/models/SupermodelIRGraph.d.ts +39 -0
  53. package/dist/esm/models/SupermodelIRGraph.js +46 -0
  54. package/dist/esm/models/UnassignedFunction.d.ts +37 -0
  55. package/dist/esm/models/UnassignedFunction.js +44 -0
  56. package/dist/esm/models/index.d.ts +20 -0
  57. package/dist/esm/models/index.js +22 -0
  58. package/dist/esm/runtime.d.ts +181 -0
  59. package/dist/esm/runtime.js +326 -0
  60. package/dist/index.d.ts +3 -0
  61. package/dist/index.js +21 -0
  62. package/dist/models/ClassificationStats.d.ts +61 -0
  63. package/dist/models/ClassificationStats.js +66 -0
  64. package/dist/models/CodeGraphEnvelope.d.ts +51 -0
  65. package/dist/models/CodeGraphEnvelope.js +54 -0
  66. package/dist/models/CodeGraphEnvelopeGraph.d.ts +39 -0
  67. package/dist/models/CodeGraphEnvelopeGraph.js +52 -0
  68. package/dist/models/CodeGraphNode.d.ts +45 -0
  69. package/dist/models/CodeGraphNode.js +50 -0
  70. package/dist/models/CodeGraphRelationship.d.ts +57 -0
  71. package/dist/models/CodeGraphRelationship.js +60 -0
  72. package/dist/models/CodeGraphStats.d.ts +55 -0
  73. package/dist/models/CodeGraphStats.js +52 -0
  74. package/dist/models/DomainClassAssignment.d.ts +37 -0
  75. package/dist/models/DomainClassAssignment.js +50 -0
  76. package/dist/models/DomainClassificationResponse.d.ts +87 -0
  77. package/dist/models/DomainClassificationResponse.js +84 -0
  78. package/dist/models/DomainFileAssignment.d.ts +37 -0
  79. package/dist/models/DomainFileAssignment.js +50 -0
  80. package/dist/models/DomainFunctionAssignment.d.ts +43 -0
  81. package/dist/models/DomainFunctionAssignment.js +52 -0
  82. package/dist/models/DomainRelationship.d.ts +55 -0
  83. package/dist/models/DomainRelationship.js +60 -0
  84. package/dist/models/DomainSummary.d.ts +56 -0
  85. package/dist/models/DomainSummary.js +63 -0
  86. package/dist/models/ErrorDetailsInner.d.ts +43 -0
  87. package/dist/models/ErrorDetailsInner.js +52 -0
  88. package/dist/models/FunctionDescription.d.ts +43 -0
  89. package/dist/models/FunctionDescription.js +52 -0
  90. package/dist/models/ModelError.d.ts +62 -0
  91. package/dist/models/ModelError.js +63 -0
  92. package/dist/models/SubdomainSummary.d.ts +37 -0
  93. package/dist/models/SubdomainSummary.js +50 -0
  94. package/dist/models/SupermodelArtifact.d.ts +51 -0
  95. package/dist/models/SupermodelArtifact.js +56 -0
  96. package/dist/models/SupermodelIR.d.ts +71 -0
  97. package/dist/models/SupermodelIR.js +68 -0
  98. package/dist/models/SupermodelIRGraph.d.ts +39 -0
  99. package/dist/models/SupermodelIRGraph.js +52 -0
  100. package/dist/models/UnassignedFunction.d.ts +37 -0
  101. package/dist/models/UnassignedFunction.js +50 -0
  102. package/dist/models/index.d.ts +20 -0
  103. package/dist/models/index.js +38 -0
  104. package/dist/runtime.d.ts +181 -0
  105. package/dist/runtime.js +341 -0
  106. package/package.json +21 -0
  107. package/src/apis/DefaultApi.ts +416 -0
  108. package/src/apis/index.ts +3 -0
  109. package/src/index.ts +5 -0
  110. package/src/models/ClassificationStats.ts +106 -0
  111. package/src/models/CodeGraphEnvelope.ts +98 -0
  112. package/src/models/CodeGraphEnvelopeGraph.ts +83 -0
  113. package/src/models/CodeGraphNode.ts +77 -0
  114. package/src/models/CodeGraphRelationship.ts +96 -0
  115. package/src/models/CodeGraphStats.ts +92 -0
  116. package/src/models/DomainClassAssignment.ts +70 -0
  117. package/src/models/DomainClassificationResponse.ts +181 -0
  118. package/src/models/DomainFileAssignment.ts +70 -0
  119. package/src/models/DomainFunctionAssignment.ts +78 -0
  120. package/src/models/DomainRelationship.ts +96 -0
  121. package/src/models/DomainSummary.ts +104 -0
  122. package/src/models/ErrorDetailsInner.ts +78 -0
  123. package/src/models/FunctionDescription.ts +78 -0
  124. package/src/models/ModelError.ts +111 -0
  125. package/src/models/SubdomainSummary.ts +70 -0
  126. package/src/models/SupermodelArtifact.ts +87 -0
  127. package/src/models/SupermodelIR.ts +126 -0
  128. package/src/models/SupermodelIRGraph.ts +83 -0
  129. package/src/models/UnassignedFunction.ts +70 -0
  130. package/src/models/index.ts +22 -0
  131. package/src/runtime.ts +426 -0
  132. package/tsconfig.esm.json +7 -0
  133. package/tsconfig.json +16 -0
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Supermodel
6
+ * Code Graphing & Analysis API
7
+ *
8
+ * The version of the OpenAPI document: 0.3.7
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSubdomainSummary = instanceOfSubdomainSummary;
17
+ exports.SubdomainSummaryFromJSON = SubdomainSummaryFromJSON;
18
+ exports.SubdomainSummaryFromJSONTyped = SubdomainSummaryFromJSONTyped;
19
+ exports.SubdomainSummaryToJSON = SubdomainSummaryToJSON;
20
+ /**
21
+ * Check if a given object implements the SubdomainSummary interface.
22
+ */
23
+ function instanceOfSubdomainSummary(value) {
24
+ if (!('name' in value) || value['name'] === undefined)
25
+ return false;
26
+ if (!('descriptionSummary' in value) || value['descriptionSummary'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function SubdomainSummaryFromJSON(json) {
31
+ return SubdomainSummaryFromJSONTyped(json, false);
32
+ }
33
+ function SubdomainSummaryFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'name': json['name'],
39
+ 'descriptionSummary': json['descriptionSummary'],
40
+ };
41
+ }
42
+ function SubdomainSummaryToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'name': value['name'],
48
+ 'descriptionSummary': value['descriptionSummary'],
49
+ };
50
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * Supermodel
3
+ * Code Graphing & Analysis API
4
+ *
5
+ * The version of the OpenAPI document: 0.3.7
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface SupermodelArtifact
16
+ */
17
+ export interface SupermodelArtifact {
18
+ /**
19
+ * Unique identifier for the artifact.
20
+ * @type {string}
21
+ * @memberof SupermodelArtifact
22
+ */
23
+ id: string;
24
+ /**
25
+ * Artifact kind such as graph, summary, or embedding.
26
+ * @type {string}
27
+ * @memberof SupermodelArtifact
28
+ */
29
+ kind: string;
30
+ /**
31
+ * Human-readable name for the artifact.
32
+ * @type {string}
33
+ * @memberof SupermodelArtifact
34
+ */
35
+ label: string;
36
+ /**
37
+ * Additional metadata for consuming the artifact.
38
+ * @type {{ [key: string]: any; }}
39
+ * @memberof SupermodelArtifact
40
+ */
41
+ metadata?: {
42
+ [key: string]: any;
43
+ };
44
+ }
45
+ /**
46
+ * Check if a given object implements the SupermodelArtifact interface.
47
+ */
48
+ export declare function instanceOfSupermodelArtifact(value: object): value is SupermodelArtifact;
49
+ export declare function SupermodelArtifactFromJSON(json: any): SupermodelArtifact;
50
+ export declare function SupermodelArtifactFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupermodelArtifact;
51
+ export declare function SupermodelArtifactToJSON(value?: SupermodelArtifact | null): any;
@@ -0,0 +1,56 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Supermodel
6
+ * Code Graphing & Analysis API
7
+ *
8
+ * The version of the OpenAPI document: 0.3.7
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSupermodelArtifact = instanceOfSupermodelArtifact;
17
+ exports.SupermodelArtifactFromJSON = SupermodelArtifactFromJSON;
18
+ exports.SupermodelArtifactFromJSONTyped = SupermodelArtifactFromJSONTyped;
19
+ exports.SupermodelArtifactToJSON = SupermodelArtifactToJSON;
20
+ /**
21
+ * Check if a given object implements the SupermodelArtifact interface.
22
+ */
23
+ function instanceOfSupermodelArtifact(value) {
24
+ if (!('id' in value) || value['id'] === undefined)
25
+ return false;
26
+ if (!('kind' in value) || value['kind'] === undefined)
27
+ return false;
28
+ if (!('label' in value) || value['label'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function SupermodelArtifactFromJSON(json) {
33
+ return SupermodelArtifactFromJSONTyped(json, false);
34
+ }
35
+ function SupermodelArtifactFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'id': json['id'],
41
+ 'kind': json['kind'],
42
+ 'label': json['label'],
43
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
44
+ };
45
+ }
46
+ function SupermodelArtifactToJSON(value) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'id': value['id'],
52
+ 'kind': value['kind'],
53
+ 'label': value['label'],
54
+ 'metadata': value['metadata'],
55
+ };
56
+ }
@@ -0,0 +1,71 @@
1
+ /**
2
+ * Supermodel
3
+ * Code Graphing & Analysis API
4
+ *
5
+ * The version of the OpenAPI document: 0.3.7
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { SupermodelIRGraph } from './SupermodelIRGraph';
13
+ import type { SupermodelArtifact } from './SupermodelArtifact';
14
+ /**
15
+ *
16
+ * @export
17
+ * @interface SupermodelIR
18
+ */
19
+ export interface SupermodelIR {
20
+ /**
21
+ * Repository slug the IR was generated from.
22
+ * @type {string}
23
+ * @memberof SupermodelIR
24
+ */
25
+ repo: string;
26
+ /**
27
+ * Version identifier for the IR content.
28
+ * @type {string}
29
+ * @memberof SupermodelIR
30
+ */
31
+ version: string;
32
+ /**
33
+ * Version of the IR schema.
34
+ * @type {string}
35
+ * @memberof SupermodelIR
36
+ */
37
+ schemaVersion: string;
38
+ /**
39
+ * Timestamp when the IR was generated.
40
+ * @type {Date}
41
+ * @memberof SupermodelIR
42
+ */
43
+ generatedAt: Date;
44
+ /**
45
+ * High-level metadata and summary insights including filesProcessed, classes, functions, types, primaryLanguage, and domains count.
46
+ * @type {{ [key: string]: any; }}
47
+ * @memberof SupermodelIR
48
+ */
49
+ summary?: {
50
+ [key: string]: any;
51
+ };
52
+ /**
53
+ *
54
+ * @type {SupermodelIRGraph}
55
+ * @memberof SupermodelIR
56
+ */
57
+ graph: SupermodelIRGraph;
58
+ /**
59
+ * Per-source statistics and metadata for parse graph, call graph, and domain classification.
60
+ * @type {Array<SupermodelArtifact>}
61
+ * @memberof SupermodelIR
62
+ */
63
+ artifacts?: Array<SupermodelArtifact>;
64
+ }
65
+ /**
66
+ * Check if a given object implements the SupermodelIR interface.
67
+ */
68
+ export declare function instanceOfSupermodelIR(value: object): value is SupermodelIR;
69
+ export declare function SupermodelIRFromJSON(json: any): SupermodelIR;
70
+ export declare function SupermodelIRFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupermodelIR;
71
+ export declare function SupermodelIRToJSON(value?: SupermodelIR | null): any;
@@ -0,0 +1,68 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Supermodel
6
+ * Code Graphing & Analysis API
7
+ *
8
+ * The version of the OpenAPI document: 0.3.7
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSupermodelIR = instanceOfSupermodelIR;
17
+ exports.SupermodelIRFromJSON = SupermodelIRFromJSON;
18
+ exports.SupermodelIRFromJSONTyped = SupermodelIRFromJSONTyped;
19
+ exports.SupermodelIRToJSON = SupermodelIRToJSON;
20
+ const SupermodelIRGraph_1 = require("./SupermodelIRGraph");
21
+ const SupermodelArtifact_1 = require("./SupermodelArtifact");
22
+ /**
23
+ * Check if a given object implements the SupermodelIR interface.
24
+ */
25
+ function instanceOfSupermodelIR(value) {
26
+ if (!('repo' in value) || value['repo'] === undefined)
27
+ return false;
28
+ if (!('version' in value) || value['version'] === undefined)
29
+ return false;
30
+ if (!('schemaVersion' in value) || value['schemaVersion'] === undefined)
31
+ return false;
32
+ if (!('generatedAt' in value) || value['generatedAt'] === undefined)
33
+ return false;
34
+ if (!('graph' in value) || value['graph'] === undefined)
35
+ return false;
36
+ return true;
37
+ }
38
+ function SupermodelIRFromJSON(json) {
39
+ return SupermodelIRFromJSONTyped(json, false);
40
+ }
41
+ function SupermodelIRFromJSONTyped(json, ignoreDiscriminator) {
42
+ if (json == null) {
43
+ return json;
44
+ }
45
+ return {
46
+ 'repo': json['repo'],
47
+ 'version': json['version'],
48
+ 'schemaVersion': json['schemaVersion'],
49
+ 'generatedAt': (new Date(json['generatedAt'])),
50
+ 'summary': json['summary'] == null ? undefined : json['summary'],
51
+ 'graph': (0, SupermodelIRGraph_1.SupermodelIRGraphFromJSON)(json['graph']),
52
+ 'artifacts': json['artifacts'] == null ? undefined : (json['artifacts'].map(SupermodelArtifact_1.SupermodelArtifactFromJSON)),
53
+ };
54
+ }
55
+ function SupermodelIRToJSON(value) {
56
+ if (value == null) {
57
+ return value;
58
+ }
59
+ return {
60
+ 'repo': value['repo'],
61
+ 'version': value['version'],
62
+ 'schemaVersion': value['schemaVersion'],
63
+ 'generatedAt': ((value['generatedAt']).toISOString()),
64
+ 'summary': value['summary'],
65
+ 'graph': (0, SupermodelIRGraph_1.SupermodelIRGraphToJSON)(value['graph']),
66
+ 'artifacts': value['artifacts'] == null ? undefined : (value['artifacts'].map(SupermodelArtifact_1.SupermodelArtifactToJSON)),
67
+ };
68
+ }
@@ -0,0 +1,39 @@
1
+ /**
2
+ * Supermodel
3
+ * Code Graphing & Analysis API
4
+ *
5
+ * The version of the OpenAPI document: 0.3.7
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { CodeGraphNode } from './CodeGraphNode';
13
+ import type { CodeGraphRelationship } from './CodeGraphRelationship';
14
+ /**
15
+ * Unified code graph containing all nodes and relationships.
16
+ * @export
17
+ * @interface SupermodelIRGraph
18
+ */
19
+ export interface SupermodelIRGraph {
20
+ /**
21
+ * All nodes from parse graph, call graph, and domain classification.
22
+ * @type {Array<CodeGraphNode>}
23
+ * @memberof SupermodelIRGraph
24
+ */
25
+ nodes: Array<CodeGraphNode>;
26
+ /**
27
+ * All relationships including contains, imports, calls, and belongsTo.
28
+ * @type {Array<CodeGraphRelationship>}
29
+ * @memberof SupermodelIRGraph
30
+ */
31
+ relationships: Array<CodeGraphRelationship>;
32
+ }
33
+ /**
34
+ * Check if a given object implements the SupermodelIRGraph interface.
35
+ */
36
+ export declare function instanceOfSupermodelIRGraph(value: object): value is SupermodelIRGraph;
37
+ export declare function SupermodelIRGraphFromJSON(json: any): SupermodelIRGraph;
38
+ export declare function SupermodelIRGraphFromJSONTyped(json: any, ignoreDiscriminator: boolean): SupermodelIRGraph;
39
+ export declare function SupermodelIRGraphToJSON(value?: SupermodelIRGraph | null): any;
@@ -0,0 +1,52 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Supermodel
6
+ * Code Graphing & Analysis API
7
+ *
8
+ * The version of the OpenAPI document: 0.3.7
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfSupermodelIRGraph = instanceOfSupermodelIRGraph;
17
+ exports.SupermodelIRGraphFromJSON = SupermodelIRGraphFromJSON;
18
+ exports.SupermodelIRGraphFromJSONTyped = SupermodelIRGraphFromJSONTyped;
19
+ exports.SupermodelIRGraphToJSON = SupermodelIRGraphToJSON;
20
+ const CodeGraphNode_1 = require("./CodeGraphNode");
21
+ const CodeGraphRelationship_1 = require("./CodeGraphRelationship");
22
+ /**
23
+ * Check if a given object implements the SupermodelIRGraph interface.
24
+ */
25
+ function instanceOfSupermodelIRGraph(value) {
26
+ if (!('nodes' in value) || value['nodes'] === undefined)
27
+ return false;
28
+ if (!('relationships' in value) || value['relationships'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ function SupermodelIRGraphFromJSON(json) {
33
+ return SupermodelIRGraphFromJSONTyped(json, false);
34
+ }
35
+ function SupermodelIRGraphFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'nodes': (json['nodes'].map(CodeGraphNode_1.CodeGraphNodeFromJSON)),
41
+ 'relationships': (json['relationships'].map(CodeGraphRelationship_1.CodeGraphRelationshipFromJSON)),
42
+ };
43
+ }
44
+ function SupermodelIRGraphToJSON(value) {
45
+ if (value == null) {
46
+ return value;
47
+ }
48
+ return {
49
+ 'nodes': (value['nodes'].map(CodeGraphNode_1.CodeGraphNodeToJSON)),
50
+ 'relationships': (value['relationships'].map(CodeGraphRelationship_1.CodeGraphRelationshipToJSON)),
51
+ };
52
+ }
@@ -0,0 +1,37 @@
1
+ /**
2
+ * Supermodel
3
+ * Code Graphing & Analysis API
4
+ *
5
+ * The version of the OpenAPI document: 0.3.7
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ *
14
+ * @export
15
+ * @interface UnassignedFunction
16
+ */
17
+ export interface UnassignedFunction {
18
+ /**
19
+ * Function that could not be assigned
20
+ * @type {string}
21
+ * @memberof UnassignedFunction
22
+ */
23
+ functionId: string;
24
+ /**
25
+ * Reason it was left unassigned
26
+ * @type {string}
27
+ * @memberof UnassignedFunction
28
+ */
29
+ reason: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the UnassignedFunction interface.
33
+ */
34
+ export declare function instanceOfUnassignedFunction(value: object): value is UnassignedFunction;
35
+ export declare function UnassignedFunctionFromJSON(json: any): UnassignedFunction;
36
+ export declare function UnassignedFunctionFromJSONTyped(json: any, ignoreDiscriminator: boolean): UnassignedFunction;
37
+ export declare function UnassignedFunctionToJSON(value?: UnassignedFunction | null): any;
@@ -0,0 +1,50 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Supermodel
6
+ * Code Graphing & Analysis API
7
+ *
8
+ * The version of the OpenAPI document: 0.3.7
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfUnassignedFunction = instanceOfUnassignedFunction;
17
+ exports.UnassignedFunctionFromJSON = UnassignedFunctionFromJSON;
18
+ exports.UnassignedFunctionFromJSONTyped = UnassignedFunctionFromJSONTyped;
19
+ exports.UnassignedFunctionToJSON = UnassignedFunctionToJSON;
20
+ /**
21
+ * Check if a given object implements the UnassignedFunction interface.
22
+ */
23
+ function instanceOfUnassignedFunction(value) {
24
+ if (!('functionId' in value) || value['functionId'] === undefined)
25
+ return false;
26
+ if (!('reason' in value) || value['reason'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function UnassignedFunctionFromJSON(json) {
31
+ return UnassignedFunctionFromJSONTyped(json, false);
32
+ }
33
+ function UnassignedFunctionFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'functionId': json['functionId'],
39
+ 'reason': json['reason'],
40
+ };
41
+ }
42
+ function UnassignedFunctionToJSON(value) {
43
+ if (value == null) {
44
+ return value;
45
+ }
46
+ return {
47
+ 'functionId': value['functionId'],
48
+ 'reason': value['reason'],
49
+ };
50
+ }
@@ -0,0 +1,20 @@
1
+ export * from './ClassificationStats';
2
+ export * from './CodeGraphEnvelope';
3
+ export * from './CodeGraphEnvelopeGraph';
4
+ export * from './CodeGraphNode';
5
+ export * from './CodeGraphRelationship';
6
+ export * from './CodeGraphStats';
7
+ export * from './DomainClassAssignment';
8
+ export * from './DomainClassificationResponse';
9
+ export * from './DomainFileAssignment';
10
+ export * from './DomainFunctionAssignment';
11
+ export * from './DomainRelationship';
12
+ export * from './DomainSummary';
13
+ export * from './ErrorDetailsInner';
14
+ export * from './FunctionDescription';
15
+ export * from './ModelError';
16
+ export * from './SubdomainSummary';
17
+ export * from './SupermodelArtifact';
18
+ export * from './SupermodelIR';
19
+ export * from './SupermodelIRGraph';
20
+ export * from './UnassignedFunction';
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
+ for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
+ };
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ /* tslint:disable */
18
+ /* eslint-disable */
19
+ __exportStar(require("./ClassificationStats"), exports);
20
+ __exportStar(require("./CodeGraphEnvelope"), exports);
21
+ __exportStar(require("./CodeGraphEnvelopeGraph"), exports);
22
+ __exportStar(require("./CodeGraphNode"), exports);
23
+ __exportStar(require("./CodeGraphRelationship"), exports);
24
+ __exportStar(require("./CodeGraphStats"), exports);
25
+ __exportStar(require("./DomainClassAssignment"), exports);
26
+ __exportStar(require("./DomainClassificationResponse"), exports);
27
+ __exportStar(require("./DomainFileAssignment"), exports);
28
+ __exportStar(require("./DomainFunctionAssignment"), exports);
29
+ __exportStar(require("./DomainRelationship"), exports);
30
+ __exportStar(require("./DomainSummary"), exports);
31
+ __exportStar(require("./ErrorDetailsInner"), exports);
32
+ __exportStar(require("./FunctionDescription"), exports);
33
+ __exportStar(require("./ModelError"), exports);
34
+ __exportStar(require("./SubdomainSummary"), exports);
35
+ __exportStar(require("./SupermodelArtifact"), exports);
36
+ __exportStar(require("./SupermodelIR"), exports);
37
+ __exportStar(require("./SupermodelIRGraph"), exports);
38
+ __exportStar(require("./UnassignedFunction"), exports);