@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,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
+ /**
15
+ * Check if a given object implements the DomainFunctionAssignment interface.
16
+ */
17
+ export function instanceOfDomainFunctionAssignment(value) {
18
+ if (!('functionId' in value) || value['functionId'] === undefined)
19
+ return false;
20
+ if (!('subdomainName' in value) || value['subdomainName'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function DomainFunctionAssignmentFromJSON(json) {
25
+ return DomainFunctionAssignmentFromJSONTyped(json, false);
26
+ }
27
+ export function DomainFunctionAssignmentFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'functionId': json['functionId'],
33
+ 'subdomainName': json['subdomainName'],
34
+ 'parentDomain': json['parentDomain'] == null ? undefined : json['parentDomain'],
35
+ };
36
+ }
37
+ export function DomainFunctionAssignmentToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'functionId': value['functionId'],
43
+ 'subdomainName': value['subdomainName'],
44
+ 'parentDomain': value['parentDomain'],
45
+ };
46
+ }
@@ -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,54 @@
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 DomainRelationship interface.
16
+ */
17
+ export function instanceOfDomainRelationship(value) {
18
+ if (!('from' in value) || value['from'] === undefined)
19
+ return false;
20
+ if (!('to' in value) || value['to'] === undefined)
21
+ return false;
22
+ if (!('type' in value) || value['type'] === undefined)
23
+ return false;
24
+ if (!('strength' in value) || value['strength'] === undefined)
25
+ return false;
26
+ return true;
27
+ }
28
+ export function DomainRelationshipFromJSON(json) {
29
+ return DomainRelationshipFromJSONTyped(json, false);
30
+ }
31
+ export function DomainRelationshipFromJSONTyped(json, ignoreDiscriminator) {
32
+ if (json == null) {
33
+ return json;
34
+ }
35
+ return {
36
+ 'from': json['from'],
37
+ 'to': json['to'],
38
+ 'type': json['type'],
39
+ 'strength': json['strength'],
40
+ 'reason': json['reason'] == null ? undefined : json['reason'],
41
+ };
42
+ }
43
+ export function DomainRelationshipToJSON(value) {
44
+ if (value == null) {
45
+ return value;
46
+ }
47
+ return {
48
+ 'from': value['from'],
49
+ 'to': value['to'],
50
+ 'type': value['type'],
51
+ 'strength': value['strength'],
52
+ 'reason': value['reason'],
53
+ };
54
+ }
@@ -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,57 @@
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 { SubdomainSummaryFromJSON, SubdomainSummaryToJSON, } from './SubdomainSummary';
15
+ /**
16
+ * Check if a given object implements the DomainSummary interface.
17
+ */
18
+ export function instanceOfDomainSummary(value) {
19
+ if (!('name' in value) || value['name'] === undefined)
20
+ return false;
21
+ if (!('descriptionSummary' in value) || value['descriptionSummary'] === undefined)
22
+ return false;
23
+ if (!('keyFiles' in value) || value['keyFiles'] === undefined)
24
+ return false;
25
+ if (!('responsibilities' in value) || value['responsibilities'] === undefined)
26
+ return false;
27
+ if (!('subdomains' in value) || value['subdomains'] === undefined)
28
+ return false;
29
+ return true;
30
+ }
31
+ export function DomainSummaryFromJSON(json) {
32
+ return DomainSummaryFromJSONTyped(json, false);
33
+ }
34
+ export function DomainSummaryFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'name': json['name'],
40
+ 'descriptionSummary': json['descriptionSummary'],
41
+ 'keyFiles': json['keyFiles'],
42
+ 'responsibilities': json['responsibilities'],
43
+ 'subdomains': (json['subdomains'].map(SubdomainSummaryFromJSON)),
44
+ };
45
+ }
46
+ export function DomainSummaryToJSON(value) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'name': value['name'],
52
+ 'descriptionSummary': value['descriptionSummary'],
53
+ 'keyFiles': value['keyFiles'],
54
+ 'responsibilities': value['responsibilities'],
55
+ 'subdomains': (value['subdomains'].map(SubdomainSummaryToJSON)),
56
+ };
57
+ }
@@ -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,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
+ /**
15
+ * Check if a given object implements the ErrorDetailsInner interface.
16
+ */
17
+ export function instanceOfErrorDetailsInner(value) {
18
+ if (!('field' in value) || value['field'] === undefined)
19
+ return false;
20
+ if (!('issue' in value) || value['issue'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function ErrorDetailsInnerFromJSON(json) {
25
+ return ErrorDetailsInnerFromJSONTyped(json, false);
26
+ }
27
+ export function ErrorDetailsInnerFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'field': json['field'],
33
+ 'issue': json['issue'],
34
+ 'location': json['location'] == null ? undefined : json['location'],
35
+ };
36
+ }
37
+ export function ErrorDetailsInnerToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'field': value['field'],
43
+ 'issue': value['issue'],
44
+ 'location': value['location'],
45
+ };
46
+ }
@@ -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,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
+ /**
15
+ * Check if a given object implements the FunctionDescription interface.
16
+ */
17
+ export function instanceOfFunctionDescription(value) {
18
+ if (!('functionId' in value) || value['functionId'] === undefined)
19
+ return false;
20
+ if (!('descriptionSummary' in value) || value['descriptionSummary'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function FunctionDescriptionFromJSON(json) {
25
+ return FunctionDescriptionFromJSONTyped(json, false);
26
+ }
27
+ export function FunctionDescriptionFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'functionId': json['functionId'],
33
+ 'descriptionSummary': json['descriptionSummary'],
34
+ 'domainName': json['domainName'] == null ? undefined : json['domainName'],
35
+ };
36
+ }
37
+ export function FunctionDescriptionToJSON(value) {
38
+ if (value == null) {
39
+ return value;
40
+ }
41
+ return {
42
+ 'functionId': value['functionId'],
43
+ 'descriptionSummary': value['descriptionSummary'],
44
+ 'domainName': value['domainName'],
45
+ };
46
+ }
@@ -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,57 @@
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 { ErrorDetailsInnerFromJSON, ErrorDetailsInnerToJSON, } from './ErrorDetailsInner';
15
+ /**
16
+ * Check if a given object implements the ModelError interface.
17
+ */
18
+ export function instanceOfModelError(value) {
19
+ if (!('status' in value) || value['status'] === undefined)
20
+ return false;
21
+ if (!('code' in value) || value['code'] === undefined)
22
+ return false;
23
+ if (!('message' in value) || value['message'] === undefined)
24
+ return false;
25
+ if (!('timestamp' in value) || value['timestamp'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ export function ModelErrorFromJSON(json) {
30
+ return ModelErrorFromJSONTyped(json, false);
31
+ }
32
+ export function ModelErrorFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'status': json['status'],
38
+ 'code': json['code'],
39
+ 'message': json['message'],
40
+ 'timestamp': (new Date(json['timestamp'])),
41
+ 'requestId': json['requestId'] == null ? undefined : json['requestId'],
42
+ 'details': json['details'] == null ? undefined : (json['details'].map(ErrorDetailsInnerFromJSON)),
43
+ };
44
+ }
45
+ export function ModelErrorToJSON(value) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'status': value['status'],
51
+ 'code': value['code'],
52
+ 'message': value['message'],
53
+ 'timestamp': ((value['timestamp']).toISOString()),
54
+ 'requestId': value['requestId'],
55
+ 'details': value['details'] == null ? undefined : (value['details'].map(ErrorDetailsInnerToJSON)),
56
+ };
57
+ }
@@ -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;
@@ -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 SubdomainSummary interface.
16
+ */
17
+ export function instanceOfSubdomainSummary(value) {
18
+ if (!('name' in value) || value['name'] === undefined)
19
+ return false;
20
+ if (!('descriptionSummary' in value) || value['descriptionSummary'] === undefined)
21
+ return false;
22
+ return true;
23
+ }
24
+ export function SubdomainSummaryFromJSON(json) {
25
+ return SubdomainSummaryFromJSONTyped(json, false);
26
+ }
27
+ export function SubdomainSummaryFromJSONTyped(json, ignoreDiscriminator) {
28
+ if (json == null) {
29
+ return json;
30
+ }
31
+ return {
32
+ 'name': json['name'],
33
+ 'descriptionSummary': json['descriptionSummary'],
34
+ };
35
+ }
36
+ export function SubdomainSummaryToJSON(value) {
37
+ if (value == null) {
38
+ return value;
39
+ }
40
+ return {
41
+ 'name': value['name'],
42
+ 'descriptionSummary': value['descriptionSummary'],
43
+ };
44
+ }