@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,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,50 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Supermodel
5
+ * Code Graphing & Analysis API
6
+ *
7
+ * The version of the OpenAPI document: 0.3.7
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
+ * Check if a given object implements the SupermodelArtifact interface.
16
+ */
17
+ export function instanceOfSupermodelArtifact(value) {
18
+ if (!('id' in value) || value['id'] === undefined)
19
+ return false;
20
+ if (!('kind' in value) || value['kind'] === undefined)
21
+ return false;
22
+ if (!('label' in value) || value['label'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function SupermodelArtifactFromJSON(json) {
27
+ return SupermodelArtifactFromJSONTyped(json, false);
28
+ }
29
+ export function SupermodelArtifactFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'id': json['id'],
35
+ 'kind': json['kind'],
36
+ 'label': json['label'],
37
+ 'metadata': json['metadata'] == null ? undefined : json['metadata'],
38
+ };
39
+ }
40
+ export function SupermodelArtifactToJSON(value) {
41
+ if (value == null) {
42
+ return value;
43
+ }
44
+ return {
45
+ 'id': value['id'],
46
+ 'kind': value['kind'],
47
+ 'label': value['label'],
48
+ 'metadata': value['metadata'],
49
+ };
50
+ }
@@ -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,62 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Supermodel
5
+ * Code Graphing & Analysis API
6
+ *
7
+ * The version of the OpenAPI document: 0.3.7
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
+ import { SupermodelIRGraphFromJSON, SupermodelIRGraphToJSON, } from './SupermodelIRGraph';
15
+ import { SupermodelArtifactFromJSON, SupermodelArtifactToJSON, } from './SupermodelArtifact';
16
+ /**
17
+ * Check if a given object implements the SupermodelIR interface.
18
+ */
19
+ export function instanceOfSupermodelIR(value) {
20
+ if (!('repo' in value) || value['repo'] === undefined)
21
+ return false;
22
+ if (!('version' in value) || value['version'] === undefined)
23
+ return false;
24
+ if (!('schemaVersion' in value) || value['schemaVersion'] === undefined)
25
+ return false;
26
+ if (!('generatedAt' in value) || value['generatedAt'] === undefined)
27
+ return false;
28
+ if (!('graph' in value) || value['graph'] === undefined)
29
+ return false;
30
+ return true;
31
+ }
32
+ export function SupermodelIRFromJSON(json) {
33
+ return SupermodelIRFromJSONTyped(json, false);
34
+ }
35
+ export function SupermodelIRFromJSONTyped(json, ignoreDiscriminator) {
36
+ if (json == null) {
37
+ return json;
38
+ }
39
+ return {
40
+ 'repo': json['repo'],
41
+ 'version': json['version'],
42
+ 'schemaVersion': json['schemaVersion'],
43
+ 'generatedAt': (new Date(json['generatedAt'])),
44
+ 'summary': json['summary'] == null ? undefined : json['summary'],
45
+ 'graph': SupermodelIRGraphFromJSON(json['graph']),
46
+ 'artifacts': json['artifacts'] == null ? undefined : (json['artifacts'].map(SupermodelArtifactFromJSON)),
47
+ };
48
+ }
49
+ export function SupermodelIRToJSON(value) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'repo': value['repo'],
55
+ 'version': value['version'],
56
+ 'schemaVersion': value['schemaVersion'],
57
+ 'generatedAt': ((value['generatedAt']).toISOString()),
58
+ 'summary': value['summary'],
59
+ 'graph': SupermodelIRGraphToJSON(value['graph']),
60
+ 'artifacts': value['artifacts'] == null ? undefined : (value['artifacts'].map(SupermodelArtifactToJSON)),
61
+ };
62
+ }
@@ -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,46 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Supermodel
5
+ * Code Graphing & Analysis API
6
+ *
7
+ * The version of the OpenAPI document: 0.3.7
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
+ import { CodeGraphNodeFromJSON, CodeGraphNodeToJSON, } from './CodeGraphNode';
15
+ import { CodeGraphRelationshipFromJSON, CodeGraphRelationshipToJSON, } from './CodeGraphRelationship';
16
+ /**
17
+ * Check if a given object implements the SupermodelIRGraph interface.
18
+ */
19
+ export function instanceOfSupermodelIRGraph(value) {
20
+ if (!('nodes' in value) || value['nodes'] === undefined)
21
+ return false;
22
+ if (!('relationships' in value) || value['relationships'] === undefined)
23
+ return false;
24
+ return true;
25
+ }
26
+ export function SupermodelIRGraphFromJSON(json) {
27
+ return SupermodelIRGraphFromJSONTyped(json, false);
28
+ }
29
+ export function SupermodelIRGraphFromJSONTyped(json, ignoreDiscriminator) {
30
+ if (json == null) {
31
+ return json;
32
+ }
33
+ return {
34
+ 'nodes': (json['nodes'].map(CodeGraphNodeFromJSON)),
35
+ 'relationships': (json['relationships'].map(CodeGraphRelationshipFromJSON)),
36
+ };
37
+ }
38
+ export function SupermodelIRGraphToJSON(value) {
39
+ if (value == null) {
40
+ return value;
41
+ }
42
+ return {
43
+ 'nodes': (value['nodes'].map(CodeGraphNodeToJSON)),
44
+ 'relationships': (value['relationships'].map(CodeGraphRelationshipToJSON)),
45
+ };
46
+ }
@@ -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,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Supermodel
5
+ * Code Graphing & Analysis API
6
+ *
7
+ * The version of the OpenAPI document: 0.3.7
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
+ * Check if a given object implements the UnassignedFunction interface.
16
+ */
17
+ export function instanceOfUnassignedFunction(value) {
18
+ if (!('functionId' in value) || value['functionId'] === undefined)
19
+ return false;
20
+ if (!('reason' in value) || value['reason'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function UnassignedFunctionFromJSON(json) {
25
+ return UnassignedFunctionFromJSONTyped(json, false);
26
+ }
27
+ export function UnassignedFunctionFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'functionId': json['functionId'],
33
+ 'reason': json['reason'],
34
+ };
35
+ }
36
+ export function UnassignedFunctionToJSON(value) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'functionId': value['functionId'],
42
+ 'reason': value['reason'],
43
+ };
44
+ }
@@ -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,22 @@
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';
@@ -0,0 +1,181 @@
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
+ export declare const BASE_PATH: string;
13
+ export interface ConfigurationParameters {
14
+ basePath?: string;
15
+ fetchApi?: FetchAPI;
16
+ middleware?: Middleware[];
17
+ queryParamsStringify?: (params: HTTPQuery) => string;
18
+ username?: string;
19
+ password?: string;
20
+ apiKey?: string | Promise<string> | ((name: string) => string | Promise<string>);
21
+ accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
22
+ headers?: HTTPHeaders;
23
+ credentials?: RequestCredentials;
24
+ }
25
+ export declare class Configuration {
26
+ private configuration;
27
+ constructor(configuration?: ConfigurationParameters);
28
+ set config(configuration: Configuration);
29
+ get basePath(): string;
30
+ get fetchApi(): FetchAPI | undefined;
31
+ get middleware(): Middleware[];
32
+ get queryParamsStringify(): (params: HTTPQuery) => string;
33
+ get username(): string | undefined;
34
+ get password(): string | undefined;
35
+ get apiKey(): ((name: string) => string | Promise<string>) | undefined;
36
+ get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
37
+ get headers(): HTTPHeaders | undefined;
38
+ get credentials(): RequestCredentials | undefined;
39
+ }
40
+ export declare const DefaultConfig: Configuration;
41
+ /**
42
+ * This is the base class for all generated API classes.
43
+ */
44
+ export declare class BaseAPI {
45
+ protected configuration: Configuration;
46
+ private static readonly jsonRegex;
47
+ private middleware;
48
+ constructor(configuration?: Configuration);
49
+ withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
50
+ withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
51
+ withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
52
+ /**
53
+ * Check if the given MIME is a JSON MIME.
54
+ * JSON MIME examples:
55
+ * application/json
56
+ * application/json; charset=UTF8
57
+ * APPLICATION/JSON
58
+ * application/vnd.company+json
59
+ * @param mime - MIME (Multipurpose Internet Mail Extensions)
60
+ * @return True if the given MIME is JSON, false otherwise.
61
+ */
62
+ protected isJsonMime(mime: string | null | undefined): boolean;
63
+ protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
64
+ private createFetchParams;
65
+ private fetchApi;
66
+ /**
67
+ * Create a shallow clone of `this` by constructing a new instance
68
+ * and then shallow cloning data members.
69
+ */
70
+ private clone;
71
+ }
72
+ export declare class ResponseError extends Error {
73
+ response: Response;
74
+ name: "ResponseError";
75
+ constructor(response: Response, msg?: string);
76
+ }
77
+ export declare class FetchError extends Error {
78
+ cause: Error;
79
+ name: "FetchError";
80
+ constructor(cause: Error, msg?: string);
81
+ }
82
+ export declare class RequiredError extends Error {
83
+ field: string;
84
+ name: "RequiredError";
85
+ constructor(field: string, msg?: string);
86
+ }
87
+ export declare const COLLECTION_FORMATS: {
88
+ csv: string;
89
+ ssv: string;
90
+ tsv: string;
91
+ pipes: string;
92
+ };
93
+ export type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
94
+ export type Json = any;
95
+ export type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
96
+ export type HTTPHeaders = {
97
+ [key: string]: string;
98
+ };
99
+ export type HTTPQuery = {
100
+ [key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
101
+ };
102
+ export type HTTPBody = Json | FormData | URLSearchParams;
103
+ export type HTTPRequestInit = {
104
+ headers?: HTTPHeaders;
105
+ method: HTTPMethod;
106
+ credentials?: RequestCredentials;
107
+ body?: HTTPBody;
108
+ };
109
+ export type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
110
+ export type InitOverrideFunction = (requestContext: {
111
+ init: HTTPRequestInit;
112
+ context: RequestOpts;
113
+ }) => Promise<RequestInit>;
114
+ export interface FetchParams {
115
+ url: string;
116
+ init: RequestInit;
117
+ }
118
+ export interface RequestOpts {
119
+ path: string;
120
+ method: HTTPMethod;
121
+ headers: HTTPHeaders;
122
+ query?: HTTPQuery;
123
+ body?: HTTPBody;
124
+ }
125
+ export declare function querystring(params: HTTPQuery, prefix?: string): string;
126
+ export declare function mapValues(data: any, fn: (item: any) => any): {};
127
+ export declare function canConsumeForm(consumes: Consume[]): boolean;
128
+ export interface Consume {
129
+ contentType: string;
130
+ }
131
+ export interface RequestContext {
132
+ fetch: FetchAPI;
133
+ url: string;
134
+ init: RequestInit;
135
+ }
136
+ export interface ResponseContext {
137
+ fetch: FetchAPI;
138
+ url: string;
139
+ init: RequestInit;
140
+ response: Response;
141
+ }
142
+ export interface ErrorContext {
143
+ fetch: FetchAPI;
144
+ url: string;
145
+ init: RequestInit;
146
+ error: unknown;
147
+ response?: Response;
148
+ }
149
+ export interface Middleware {
150
+ pre?(context: RequestContext): Promise<FetchParams | void>;
151
+ post?(context: ResponseContext): Promise<Response | void>;
152
+ onError?(context: ErrorContext): Promise<Response | void>;
153
+ }
154
+ export interface ApiResponse<T> {
155
+ raw: Response;
156
+ value(): Promise<T>;
157
+ }
158
+ export interface ResponseTransformer<T> {
159
+ (json: any): T;
160
+ }
161
+ export declare class JSONApiResponse<T> {
162
+ raw: Response;
163
+ private transformer;
164
+ constructor(raw: Response, transformer?: ResponseTransformer<T>);
165
+ value(): Promise<T>;
166
+ }
167
+ export declare class VoidApiResponse {
168
+ raw: Response;
169
+ constructor(raw: Response);
170
+ value(): Promise<void>;
171
+ }
172
+ export declare class BlobApiResponse {
173
+ raw: Response;
174
+ constructor(raw: Response);
175
+ value(): Promise<Blob>;
176
+ }
177
+ export declare class TextApiResponse {
178
+ raw: Response;
179
+ constructor(raw: Response);
180
+ value(): Promise<string>;
181
+ }