@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,43 @@
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 DomainFunctionAssignment
16
+ */
17
+ export interface DomainFunctionAssignment {
18
+ /**
19
+ * Stable function identifier (matching codegraph/function models)
20
+ * @type {string}
21
+ * @memberof DomainFunctionAssignment
22
+ */
23
+ functionId: string;
24
+ /**
25
+ * Subdomain assigned to the function
26
+ * @type {string}
27
+ * @memberof DomainFunctionAssignment
28
+ */
29
+ subdomainName: string;
30
+ /**
31
+ * Optional parent domain containing the subdomain
32
+ * @type {string}
33
+ * @memberof DomainFunctionAssignment
34
+ */
35
+ parentDomain?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the DomainFunctionAssignment interface.
39
+ */
40
+ export declare function instanceOfDomainFunctionAssignment(value: object): value is DomainFunctionAssignment;
41
+ export declare function DomainFunctionAssignmentFromJSON(json: any): DomainFunctionAssignment;
42
+ export declare function DomainFunctionAssignmentFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainFunctionAssignment;
43
+ export declare function DomainFunctionAssignmentToJSON(value?: DomainFunctionAssignment | 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.instanceOfDomainFunctionAssignment = instanceOfDomainFunctionAssignment;
17
+ exports.DomainFunctionAssignmentFromJSON = DomainFunctionAssignmentFromJSON;
18
+ exports.DomainFunctionAssignmentFromJSONTyped = DomainFunctionAssignmentFromJSONTyped;
19
+ exports.DomainFunctionAssignmentToJSON = DomainFunctionAssignmentToJSON;
20
+ /**
21
+ * Check if a given object implements the DomainFunctionAssignment interface.
22
+ */
23
+ function instanceOfDomainFunctionAssignment(value) {
24
+ if (!('functionId' in value) || value['functionId'] === undefined)
25
+ return false;
26
+ if (!('subdomainName' in value) || value['subdomainName'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function DomainFunctionAssignmentFromJSON(json) {
31
+ return DomainFunctionAssignmentFromJSONTyped(json, false);
32
+ }
33
+ function DomainFunctionAssignmentFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'functionId': json['functionId'],
39
+ 'subdomainName': json['subdomainName'],
40
+ 'parentDomain': json['parentDomain'] == null ? undefined : json['parentDomain'],
41
+ };
42
+ }
43
+ function DomainFunctionAssignmentToJSON(value) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'functionId': value['functionId'],
49
+ 'subdomainName': value['subdomainName'],
50
+ 'parentDomain': value['parentDomain'],
51
+ };
52
+ }
@@ -0,0 +1,55 @@
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 DomainRelationship
16
+ */
17
+ export interface DomainRelationship {
18
+ /**
19
+ * Source domain or subdomain name/id
20
+ * @type {string}
21
+ * @memberof DomainRelationship
22
+ */
23
+ from: string;
24
+ /**
25
+ * Target domain or subdomain name/id
26
+ * @type {string}
27
+ * @memberof DomainRelationship
28
+ */
29
+ to: string;
30
+ /**
31
+ * Relationship type (e.g., aggregates, dependsOn, relatesTo)
32
+ * @type {string}
33
+ * @memberof DomainRelationship
34
+ */
35
+ type: string;
36
+ /**
37
+ * Numeric strength/weight (0-1 or small integer)
38
+ * @type {number}
39
+ * @memberof DomainRelationship
40
+ */
41
+ strength: number;
42
+ /**
43
+ * Optional explanation for the relationship
44
+ * @type {string}
45
+ * @memberof DomainRelationship
46
+ */
47
+ reason?: string;
48
+ }
49
+ /**
50
+ * Check if a given object implements the DomainRelationship interface.
51
+ */
52
+ export declare function instanceOfDomainRelationship(value: object): value is DomainRelationship;
53
+ export declare function DomainRelationshipFromJSON(json: any): DomainRelationship;
54
+ export declare function DomainRelationshipFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainRelationship;
55
+ export declare function DomainRelationshipToJSON(value?: DomainRelationship | null): any;
@@ -0,0 +1,60 @@
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.instanceOfDomainRelationship = instanceOfDomainRelationship;
17
+ exports.DomainRelationshipFromJSON = DomainRelationshipFromJSON;
18
+ exports.DomainRelationshipFromJSONTyped = DomainRelationshipFromJSONTyped;
19
+ exports.DomainRelationshipToJSON = DomainRelationshipToJSON;
20
+ /**
21
+ * Check if a given object implements the DomainRelationship interface.
22
+ */
23
+ function instanceOfDomainRelationship(value) {
24
+ if (!('from' in value) || value['from'] === undefined)
25
+ return false;
26
+ if (!('to' in value) || value['to'] === undefined)
27
+ return false;
28
+ if (!('type' in value) || value['type'] === undefined)
29
+ return false;
30
+ if (!('strength' in value) || value['strength'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function DomainRelationshipFromJSON(json) {
35
+ return DomainRelationshipFromJSONTyped(json, false);
36
+ }
37
+ function DomainRelationshipFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'from': json['from'],
43
+ 'to': json['to'],
44
+ 'type': json['type'],
45
+ 'strength': json['strength'],
46
+ 'reason': json['reason'] == null ? undefined : json['reason'],
47
+ };
48
+ }
49
+ function DomainRelationshipToJSON(value) {
50
+ if (value == null) {
51
+ return value;
52
+ }
53
+ return {
54
+ 'from': value['from'],
55
+ 'to': value['to'],
56
+ 'type': value['type'],
57
+ 'strength': value['strength'],
58
+ 'reason': value['reason'],
59
+ };
60
+ }
@@ -0,0 +1,56 @@
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 { SubdomainSummary } from './SubdomainSummary';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface DomainSummary
17
+ */
18
+ export interface DomainSummary {
19
+ /**
20
+ * Domain name (e.g., BillingAccount)
21
+ * @type {string}
22
+ * @memberof DomainSummary
23
+ */
24
+ name: string;
25
+ /**
26
+ * Human-readable description of the domain
27
+ * @type {string}
28
+ * @memberof DomainSummary
29
+ */
30
+ descriptionSummary: string;
31
+ /**
32
+ * Representative files backing the domain
33
+ * @type {Array<string>}
34
+ * @memberof DomainSummary
35
+ */
36
+ keyFiles: Array<string>;
37
+ /**
38
+ * Key responsibilities/concerns of the domain
39
+ * @type {Array<string>}
40
+ * @memberof DomainSummary
41
+ */
42
+ responsibilities: Array<string>;
43
+ /**
44
+ * Subdomains for this domain
45
+ * @type {Array<SubdomainSummary>}
46
+ * @memberof DomainSummary
47
+ */
48
+ subdomains: Array<SubdomainSummary>;
49
+ }
50
+ /**
51
+ * Check if a given object implements the DomainSummary interface.
52
+ */
53
+ export declare function instanceOfDomainSummary(value: object): value is DomainSummary;
54
+ export declare function DomainSummaryFromJSON(json: any): DomainSummary;
55
+ export declare function DomainSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): DomainSummary;
56
+ export declare function DomainSummaryToJSON(value?: DomainSummary | null): any;
@@ -0,0 +1,63 @@
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.instanceOfDomainSummary = instanceOfDomainSummary;
17
+ exports.DomainSummaryFromJSON = DomainSummaryFromJSON;
18
+ exports.DomainSummaryFromJSONTyped = DomainSummaryFromJSONTyped;
19
+ exports.DomainSummaryToJSON = DomainSummaryToJSON;
20
+ const SubdomainSummary_1 = require("./SubdomainSummary");
21
+ /**
22
+ * Check if a given object implements the DomainSummary interface.
23
+ */
24
+ function instanceOfDomainSummary(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if (!('descriptionSummary' in value) || value['descriptionSummary'] === undefined)
28
+ return false;
29
+ if (!('keyFiles' in value) || value['keyFiles'] === undefined)
30
+ return false;
31
+ if (!('responsibilities' in value) || value['responsibilities'] === undefined)
32
+ return false;
33
+ if (!('subdomains' in value) || value['subdomains'] === undefined)
34
+ return false;
35
+ return true;
36
+ }
37
+ function DomainSummaryFromJSON(json) {
38
+ return DomainSummaryFromJSONTyped(json, false);
39
+ }
40
+ function DomainSummaryFromJSONTyped(json, ignoreDiscriminator) {
41
+ if (json == null) {
42
+ return json;
43
+ }
44
+ return {
45
+ 'name': json['name'],
46
+ 'descriptionSummary': json['descriptionSummary'],
47
+ 'keyFiles': json['keyFiles'],
48
+ 'responsibilities': json['responsibilities'],
49
+ 'subdomains': (json['subdomains'].map(SubdomainSummary_1.SubdomainSummaryFromJSON)),
50
+ };
51
+ }
52
+ function DomainSummaryToJSON(value) {
53
+ if (value == null) {
54
+ return value;
55
+ }
56
+ return {
57
+ 'name': value['name'],
58
+ 'descriptionSummary': value['descriptionSummary'],
59
+ 'keyFiles': value['keyFiles'],
60
+ 'responsibilities': value['responsibilities'],
61
+ 'subdomains': (value['subdomains'].map(SubdomainSummary_1.SubdomainSummaryToJSON)),
62
+ };
63
+ }
@@ -0,0 +1,43 @@
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 ErrorDetailsInner
16
+ */
17
+ export interface ErrorDetailsInner {
18
+ /**
19
+ * Name of the field or parameter related to the error.
20
+ * @type {string}
21
+ * @memberof ErrorDetailsInner
22
+ */
23
+ field: string;
24
+ /**
25
+ * Description of the specific issue encountered.
26
+ * @type {string}
27
+ * @memberof ErrorDetailsInner
28
+ */
29
+ issue: string;
30
+ /**
31
+ * Where the field resides (e.g., query, path, body).
32
+ * @type {string}
33
+ * @memberof ErrorDetailsInner
34
+ */
35
+ location?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the ErrorDetailsInner interface.
39
+ */
40
+ export declare function instanceOfErrorDetailsInner(value: object): value is ErrorDetailsInner;
41
+ export declare function ErrorDetailsInnerFromJSON(json: any): ErrorDetailsInner;
42
+ export declare function ErrorDetailsInnerFromJSONTyped(json: any, ignoreDiscriminator: boolean): ErrorDetailsInner;
43
+ export declare function ErrorDetailsInnerToJSON(value?: ErrorDetailsInner | 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.instanceOfErrorDetailsInner = instanceOfErrorDetailsInner;
17
+ exports.ErrorDetailsInnerFromJSON = ErrorDetailsInnerFromJSON;
18
+ exports.ErrorDetailsInnerFromJSONTyped = ErrorDetailsInnerFromJSONTyped;
19
+ exports.ErrorDetailsInnerToJSON = ErrorDetailsInnerToJSON;
20
+ /**
21
+ * Check if a given object implements the ErrorDetailsInner interface.
22
+ */
23
+ function instanceOfErrorDetailsInner(value) {
24
+ if (!('field' in value) || value['field'] === undefined)
25
+ return false;
26
+ if (!('issue' in value) || value['issue'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ErrorDetailsInnerFromJSON(json) {
31
+ return ErrorDetailsInnerFromJSONTyped(json, false);
32
+ }
33
+ function ErrorDetailsInnerFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'field': json['field'],
39
+ 'issue': json['issue'],
40
+ 'location': json['location'] == null ? undefined : json['location'],
41
+ };
42
+ }
43
+ function ErrorDetailsInnerToJSON(value) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'field': value['field'],
49
+ 'issue': value['issue'],
50
+ 'location': value['location'],
51
+ };
52
+ }
@@ -0,0 +1,43 @@
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 FunctionDescription
16
+ */
17
+ export interface FunctionDescription {
18
+ /**
19
+ * Function identifier
20
+ * @type {string}
21
+ * @memberof FunctionDescription
22
+ */
23
+ functionId: string;
24
+ /**
25
+ * Short summary of behavior
26
+ * @type {string}
27
+ * @memberof FunctionDescription
28
+ */
29
+ descriptionSummary: string;
30
+ /**
31
+ * Optional domain/subdomain association
32
+ * @type {string}
33
+ * @memberof FunctionDescription
34
+ */
35
+ domainName?: string;
36
+ }
37
+ /**
38
+ * Check if a given object implements the FunctionDescription interface.
39
+ */
40
+ export declare function instanceOfFunctionDescription(value: object): value is FunctionDescription;
41
+ export declare function FunctionDescriptionFromJSON(json: any): FunctionDescription;
42
+ export declare function FunctionDescriptionFromJSONTyped(json: any, ignoreDiscriminator: boolean): FunctionDescription;
43
+ export declare function FunctionDescriptionToJSON(value?: FunctionDescription | 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.instanceOfFunctionDescription = instanceOfFunctionDescription;
17
+ exports.FunctionDescriptionFromJSON = FunctionDescriptionFromJSON;
18
+ exports.FunctionDescriptionFromJSONTyped = FunctionDescriptionFromJSONTyped;
19
+ exports.FunctionDescriptionToJSON = FunctionDescriptionToJSON;
20
+ /**
21
+ * Check if a given object implements the FunctionDescription interface.
22
+ */
23
+ function instanceOfFunctionDescription(value) {
24
+ if (!('functionId' in value) || value['functionId'] === undefined)
25
+ return false;
26
+ if (!('descriptionSummary' in value) || value['descriptionSummary'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function FunctionDescriptionFromJSON(json) {
31
+ return FunctionDescriptionFromJSONTyped(json, false);
32
+ }
33
+ function FunctionDescriptionFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'functionId': json['functionId'],
39
+ 'descriptionSummary': json['descriptionSummary'],
40
+ 'domainName': json['domainName'] == null ? undefined : json['domainName'],
41
+ };
42
+ }
43
+ function FunctionDescriptionToJSON(value) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'functionId': value['functionId'],
49
+ 'descriptionSummary': value['descriptionSummary'],
50
+ 'domainName': value['domainName'],
51
+ };
52
+ }
@@ -0,0 +1,62 @@
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 { ErrorDetailsInner } from './ErrorDetailsInner';
13
+ /**
14
+ * Standardized error payload returned by the API.
15
+ * @export
16
+ * @interface ModelError
17
+ */
18
+ export interface ModelError {
19
+ /**
20
+ * HTTP status code associated with the error.
21
+ * @type {number}
22
+ * @memberof ModelError
23
+ */
24
+ status: number;
25
+ /**
26
+ * Stable, machine-readable error identifier.
27
+ * @type {string}
28
+ * @memberof ModelError
29
+ */
30
+ code: string;
31
+ /**
32
+ * Human-readable description of the error.
33
+ * @type {string}
34
+ * @memberof ModelError
35
+ */
36
+ message: string;
37
+ /**
38
+ * ISO-8601 timestamp indicating when the error occurred.
39
+ * @type {Date}
40
+ * @memberof ModelError
41
+ */
42
+ timestamp: Date;
43
+ /**
44
+ * Correlation identifier for tracing the failing request.
45
+ * @type {string}
46
+ * @memberof ModelError
47
+ */
48
+ requestId?: string;
49
+ /**
50
+ * Optional list of contextual error details.
51
+ * @type {Array<ErrorDetailsInner>}
52
+ * @memberof ModelError
53
+ */
54
+ details?: Array<ErrorDetailsInner>;
55
+ }
56
+ /**
57
+ * Check if a given object implements the ModelError interface.
58
+ */
59
+ export declare function instanceOfModelError(value: object): value is ModelError;
60
+ export declare function ModelErrorFromJSON(json: any): ModelError;
61
+ export declare function ModelErrorFromJSONTyped(json: any, ignoreDiscriminator: boolean): ModelError;
62
+ export declare function ModelErrorToJSON(value?: ModelError | null): any;
@@ -0,0 +1,63 @@
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.instanceOfModelError = instanceOfModelError;
17
+ exports.ModelErrorFromJSON = ModelErrorFromJSON;
18
+ exports.ModelErrorFromJSONTyped = ModelErrorFromJSONTyped;
19
+ exports.ModelErrorToJSON = ModelErrorToJSON;
20
+ const ErrorDetailsInner_1 = require("./ErrorDetailsInner");
21
+ /**
22
+ * Check if a given object implements the ModelError interface.
23
+ */
24
+ function instanceOfModelError(value) {
25
+ if (!('status' in value) || value['status'] === undefined)
26
+ return false;
27
+ if (!('code' in value) || value['code'] === undefined)
28
+ return false;
29
+ if (!('message' in value) || value['message'] === undefined)
30
+ return false;
31
+ if (!('timestamp' in value) || value['timestamp'] === undefined)
32
+ return false;
33
+ return true;
34
+ }
35
+ function ModelErrorFromJSON(json) {
36
+ return ModelErrorFromJSONTyped(json, false);
37
+ }
38
+ function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
39
+ if (json == null) {
40
+ return json;
41
+ }
42
+ return {
43
+ 'status': json['status'],
44
+ 'code': json['code'],
45
+ 'message': json['message'],
46
+ 'timestamp': (new Date(json['timestamp'])),
47
+ 'requestId': json['requestId'] == null ? undefined : json['requestId'],
48
+ 'details': json['details'] == null ? undefined : (json['details'].map(ErrorDetailsInner_1.ErrorDetailsInnerFromJSON)),
49
+ };
50
+ }
51
+ function ModelErrorToJSON(value) {
52
+ if (value == null) {
53
+ return value;
54
+ }
55
+ return {
56
+ 'status': value['status'],
57
+ 'code': value['code'],
58
+ 'message': value['message'],
59
+ 'timestamp': ((value['timestamp']).toISOString()),
60
+ 'requestId': value['requestId'],
61
+ 'details': value['details'] == null ? undefined : (value['details'].map(ErrorDetailsInner_1.ErrorDetailsInnerToJSON)),
62
+ };
63
+ }
@@ -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 SubdomainSummary
16
+ */
17
+ export interface SubdomainSummary {
18
+ /**
19
+ * Subdomain name
20
+ * @type {string}
21
+ * @memberof SubdomainSummary
22
+ */
23
+ name: string;
24
+ /**
25
+ * Concise description of the subdomain
26
+ * @type {string}
27
+ * @memberof SubdomainSummary
28
+ */
29
+ descriptionSummary: string;
30
+ }
31
+ /**
32
+ * Check if a given object implements the SubdomainSummary interface.
33
+ */
34
+ export declare function instanceOfSubdomainSummary(value: object): value is SubdomainSummary;
35
+ export declare function SubdomainSummaryFromJSON(json: any): SubdomainSummary;
36
+ export declare function SubdomainSummaryFromJSONTyped(json: any, ignoreDiscriminator: boolean): SubdomainSummary;
37
+ export declare function SubdomainSummaryToJSON(value?: SubdomainSummary | null): any;