@sonatype/nexus-iq-api-client 0.156.1 → 0.156.3

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 (210) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/dist/apis/ApplicationCategoriesApi.d.ts +1 -1
  3. package/dist/apis/ApplicationCategoriesApi.js +42 -12
  4. package/dist/apis/ApplicationsApi.d.ts +5 -5
  5. package/dist/apis/ApplicationsApi.js +53 -14
  6. package/dist/apis/ClaimApi.d.ts +1 -1
  7. package/dist/apis/ClaimApi.js +17 -5
  8. package/dist/apis/ComponentsApi.d.ts +1 -1
  9. package/dist/apis/ComponentsApi.js +21 -6
  10. package/dist/apis/CompositeSourceControlApi.d.ts +1 -1
  11. package/dist/apis/CompositeSourceControlApi.js +5 -2
  12. package/dist/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
  13. package/dist/apis/CompositeSourceControlConfigValidatorApi.js +5 -2
  14. package/dist/apis/ConfigApi.js +15 -0
  15. package/dist/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
  16. package/dist/apis/ConfigArtifactoryConnectionApi.js +35 -11
  17. package/dist/apis/ConfigCrowdApi.d.ts +1 -1
  18. package/dist/apis/ConfigCrowdApi.js +17 -5
  19. package/dist/apis/ConfigJIRAApi.d.ts +1 -1
  20. package/dist/apis/ConfigJIRAApi.js +11 -2
  21. package/dist/apis/ConfigMailApi.d.ts +1 -1
  22. package/dist/apis/ConfigMailApi.js +16 -4
  23. package/dist/apis/ConfigProxyServerApi.d.ts +1 -1
  24. package/dist/apis/ConfigProxyServerApi.js +12 -3
  25. package/dist/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
  26. package/dist/apis/ConfigReverseProxyAuthenticationApi.js +12 -3
  27. package/dist/apis/ConfigSAMLApi.d.ts +1 -1
  28. package/dist/apis/ConfigSAMLApi.js +11 -2
  29. package/dist/apis/ConfigSourceControlApi.d.ts +1 -1
  30. package/dist/apis/ConfigSourceControlApi.js +11 -2
  31. package/dist/apis/CycloneDxApi.js +12 -0
  32. package/dist/apis/DataRetentionPoliciesApi.d.ts +1 -1
  33. package/dist/apis/DataRetentionPoliciesApi.js +9 -3
  34. package/dist/apis/EndpointsApi.js +3 -0
  35. package/dist/apis/EvaluationApi.d.ts +1 -1
  36. package/dist/apis/EvaluationApi.js +29 -11
  37. package/dist/apis/FirewallApi.d.ts +1 -1
  38. package/dist/apis/FirewallApi.js +30 -6
  39. package/dist/apis/LabelsApi.d.ts +1 -1
  40. package/dist/apis/LabelsApi.js +26 -8
  41. package/dist/apis/LicenseLegalMetadataApi.d.ts +1 -1
  42. package/dist/apis/LicenseLegalMetadataApi.js +48 -9
  43. package/dist/apis/OrganizationsApi.d.ts +1 -1
  44. package/dist/apis/OrganizationsApi.js +14 -5
  45. package/dist/apis/PoliciesApi.d.ts +1 -1
  46. package/dist/apis/PoliciesApi.js +5 -2
  47. package/dist/apis/PolicyViolationsApi.d.ts +1 -1
  48. package/dist/apis/PolicyViolationsApi.js +25 -7
  49. package/dist/apis/PolicyWaiverApi.js +3 -0
  50. package/dist/apis/PolicyWaiversApi.d.ts +1 -1
  51. package/dist/apis/PolicyWaiversApi.js +28 -7
  52. package/dist/apis/ReportsApi.d.ts +1 -1
  53. package/dist/apis/ReportsApi.js +29 -8
  54. package/dist/apis/RepositoriesApi.d.ts +1 -1
  55. package/dist/apis/RepositoriesApi.js +9 -3
  56. package/dist/apis/RoleMembershipsApi.d.ts +1 -1
  57. package/dist/apis/RoleMembershipsApi.js +21 -3
  58. package/dist/apis/RolesApi.d.ts +1 -1
  59. package/dist/apis/RolesApi.js +5 -2
  60. package/dist/apis/ScanApi.d.ts +1 -1
  61. package/dist/apis/ScanApi.js +8 -2
  62. package/dist/apis/SearchApi.d.ts +1 -1
  63. package/dist/apis/SearchApi.js +15 -3
  64. package/dist/apis/SecurityOverridesApi.d.ts +1 -1
  65. package/dist/apis/SecurityOverridesApi.js +5 -2
  66. package/dist/apis/SourceControlApi.d.ts +1 -1
  67. package/dist/apis/SourceControlApi.js +22 -7
  68. package/dist/apis/SourceControlMetricsApi.d.ts +1 -1
  69. package/dist/apis/SourceControlMetricsApi.js +5 -2
  70. package/dist/apis/TelemetryApi.js +3 -0
  71. package/dist/apis/UserTokensApi.d.ts +1 -1
  72. package/dist/apis/UserTokensApi.js +26 -5
  73. package/dist/apis/UsersApi.d.ts +1 -1
  74. package/dist/apis/UsersApi.js +21 -6
  75. package/dist/apis/VulnerabilitiesApi.d.ts +1 -1
  76. package/dist/apis/VulnerabilitiesApi.js +5 -2
  77. package/dist/esm/apis/ApplicationCategoriesApi.d.ts +1 -1
  78. package/dist/esm/apis/ApplicationCategoriesApi.js +31 -1
  79. package/dist/esm/apis/ApplicationsApi.d.ts +5 -5
  80. package/dist/esm/apis/ApplicationsApi.js +41 -2
  81. package/dist/esm/apis/ClaimApi.d.ts +1 -1
  82. package/dist/esm/apis/ClaimApi.js +13 -1
  83. package/dist/esm/apis/ComponentsApi.d.ts +1 -1
  84. package/dist/esm/apis/ComponentsApi.js +16 -1
  85. package/dist/esm/apis/CompositeSourceControlApi.d.ts +1 -1
  86. package/dist/esm/apis/CompositeSourceControlApi.js +4 -1
  87. package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.d.ts +1 -1
  88. package/dist/esm/apis/CompositeSourceControlConfigValidatorApi.js +4 -1
  89. package/dist/esm/apis/ConfigApi.js +15 -0
  90. package/dist/esm/apis/ConfigArtifactoryConnectionApi.d.ts +1 -1
  91. package/dist/esm/apis/ConfigArtifactoryConnectionApi.js +25 -1
  92. package/dist/esm/apis/ConfigCrowdApi.d.ts +1 -1
  93. package/dist/esm/apis/ConfigCrowdApi.js +13 -1
  94. package/dist/esm/apis/ConfigJIRAApi.d.ts +1 -1
  95. package/dist/esm/apis/ConfigJIRAApi.js +10 -1
  96. package/dist/esm/apis/ConfigMailApi.d.ts +1 -1
  97. package/dist/esm/apis/ConfigMailApi.js +13 -1
  98. package/dist/esm/apis/ConfigProxyServerApi.d.ts +1 -1
  99. package/dist/esm/apis/ConfigProxyServerApi.js +10 -1
  100. package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.d.ts +1 -1
  101. package/dist/esm/apis/ConfigReverseProxyAuthenticationApi.js +10 -1
  102. package/dist/esm/apis/ConfigSAMLApi.d.ts +1 -1
  103. package/dist/esm/apis/ConfigSAMLApi.js +10 -1
  104. package/dist/esm/apis/ConfigSourceControlApi.d.ts +1 -1
  105. package/dist/esm/apis/ConfigSourceControlApi.js +10 -1
  106. package/dist/esm/apis/CycloneDxApi.js +12 -0
  107. package/dist/esm/apis/DataRetentionPoliciesApi.d.ts +1 -1
  108. package/dist/esm/apis/DataRetentionPoliciesApi.js +7 -1
  109. package/dist/esm/apis/EndpointsApi.js +3 -0
  110. package/dist/esm/apis/EvaluationApi.d.ts +1 -1
  111. package/dist/esm/apis/EvaluationApi.js +19 -1
  112. package/dist/esm/apis/FirewallApi.d.ts +1 -1
  113. package/dist/esm/apis/FirewallApi.js +25 -1
  114. package/dist/esm/apis/LabelsApi.d.ts +1 -1
  115. package/dist/esm/apis/LabelsApi.js +19 -1
  116. package/dist/esm/apis/LicenseLegalMetadataApi.d.ts +1 -1
  117. package/dist/esm/apis/LicenseLegalMetadataApi.js +40 -1
  118. package/dist/esm/apis/OrganizationsApi.d.ts +1 -1
  119. package/dist/esm/apis/OrganizationsApi.js +10 -1
  120. package/dist/esm/apis/PoliciesApi.d.ts +1 -1
  121. package/dist/esm/apis/PoliciesApi.js +4 -1
  122. package/dist/esm/apis/PolicyViolationsApi.d.ts +1 -1
  123. package/dist/esm/apis/PolicyViolationsApi.js +19 -1
  124. package/dist/esm/apis/PolicyWaiverApi.js +3 -0
  125. package/dist/esm/apis/PolicyWaiversApi.d.ts +1 -1
  126. package/dist/esm/apis/PolicyWaiversApi.js +22 -1
  127. package/dist/esm/apis/ReportsApi.d.ts +1 -1
  128. package/dist/esm/apis/ReportsApi.js +22 -1
  129. package/dist/esm/apis/RepositoriesApi.d.ts +1 -1
  130. package/dist/esm/apis/RepositoriesApi.js +7 -1
  131. package/dist/esm/apis/RoleMembershipsApi.d.ts +1 -1
  132. package/dist/esm/apis/RoleMembershipsApi.js +19 -1
  133. package/dist/esm/apis/RolesApi.d.ts +1 -1
  134. package/dist/esm/apis/RolesApi.js +4 -1
  135. package/dist/esm/apis/ScanApi.d.ts +1 -1
  136. package/dist/esm/apis/ScanApi.js +7 -1
  137. package/dist/esm/apis/SearchApi.d.ts +1 -1
  138. package/dist/esm/apis/SearchApi.js +13 -1
  139. package/dist/esm/apis/SecurityOverridesApi.d.ts +1 -1
  140. package/dist/esm/apis/SecurityOverridesApi.js +4 -1
  141. package/dist/esm/apis/SourceControlApi.d.ts +1 -1
  142. package/dist/esm/apis/SourceControlApi.js +16 -1
  143. package/dist/esm/apis/SourceControlMetricsApi.d.ts +1 -1
  144. package/dist/esm/apis/SourceControlMetricsApi.js +4 -1
  145. package/dist/esm/apis/TelemetryApi.js +3 -0
  146. package/dist/esm/apis/UserTokensApi.d.ts +1 -1
  147. package/dist/esm/apis/UserTokensApi.js +22 -1
  148. package/dist/esm/apis/UsersApi.d.ts +1 -1
  149. package/dist/esm/apis/UsersApi.js +16 -1
  150. package/dist/esm/apis/VulnerabilitiesApi.d.ts +1 -1
  151. package/dist/esm/apis/VulnerabilitiesApi.js +4 -1
  152. package/dist/esm/index.d.ts +2 -2
  153. package/dist/esm/index.js +2 -2
  154. package/dist/esm/models/GetApplicationsDefaultResponse.d.ts +32 -0
  155. package/dist/esm/models/GetApplicationsDefaultResponse.js +44 -0
  156. package/dist/esm/models/index.d.ts +1 -0
  157. package/dist/esm/models/index.js +1 -0
  158. package/dist/esm/runtime.js +13 -5
  159. package/dist/index.d.ts +2 -2
  160. package/dist/index.js +2 -2
  161. package/dist/models/GetApplicationsDefaultResponse.d.ts +32 -0
  162. package/dist/models/GetApplicationsDefaultResponse.js +51 -0
  163. package/dist/models/index.d.ts +1 -0
  164. package/dist/models/index.js +1 -0
  165. package/dist/runtime.js +13 -5
  166. package/package.json +1 -1
  167. package/src/apis/ApplicationCategoriesApi.ts +32 -2
  168. package/src/apis/ApplicationsApi.ts +49 -7
  169. package/src/apis/ClaimApi.ts +14 -2
  170. package/src/apis/ComponentsApi.ts +17 -2
  171. package/src/apis/CompositeSourceControlApi.ts +5 -2
  172. package/src/apis/CompositeSourceControlConfigValidatorApi.ts +5 -2
  173. package/src/apis/ConfigApi.ts +15 -0
  174. package/src/apis/ConfigArtifactoryConnectionApi.ts +26 -2
  175. package/src/apis/ConfigCrowdApi.ts +14 -2
  176. package/src/apis/ConfigJIRAApi.ts +11 -2
  177. package/src/apis/ConfigMailApi.ts +14 -2
  178. package/src/apis/ConfigProxyServerApi.ts +11 -2
  179. package/src/apis/ConfigReverseProxyAuthenticationApi.ts +11 -2
  180. package/src/apis/ConfigSAMLApi.ts +11 -2
  181. package/src/apis/ConfigSourceControlApi.ts +11 -2
  182. package/src/apis/CycloneDxApi.ts +12 -0
  183. package/src/apis/DataRetentionPoliciesApi.ts +8 -2
  184. package/src/apis/EndpointsApi.ts +3 -0
  185. package/src/apis/EvaluationApi.ts +20 -2
  186. package/src/apis/FirewallApi.ts +26 -2
  187. package/src/apis/LabelsApi.ts +20 -2
  188. package/src/apis/LicenseLegalMetadataApi.ts +41 -2
  189. package/src/apis/OrganizationsApi.ts +11 -2
  190. package/src/apis/PoliciesApi.ts +5 -2
  191. package/src/apis/PolicyViolationsApi.ts +20 -2
  192. package/src/apis/PolicyWaiverApi.ts +3 -0
  193. package/src/apis/PolicyWaiversApi.ts +23 -2
  194. package/src/apis/ReportsApi.ts +23 -2
  195. package/src/apis/RepositoriesApi.ts +8 -2
  196. package/src/apis/RoleMembershipsApi.ts +20 -2
  197. package/src/apis/RolesApi.ts +5 -2
  198. package/src/apis/ScanApi.ts +8 -2
  199. package/src/apis/SearchApi.ts +14 -2
  200. package/src/apis/SecurityOverridesApi.ts +5 -2
  201. package/src/apis/SourceControlApi.ts +17 -2
  202. package/src/apis/SourceControlMetricsApi.ts +5 -2
  203. package/src/apis/TelemetryApi.ts +3 -0
  204. package/src/apis/UserTokensApi.ts +23 -2
  205. package/src/apis/UsersApi.ts +17 -2
  206. package/src/apis/VulnerabilitiesApi.ts +5 -2
  207. package/src/index.ts +2 -2
  208. package/src/models/GetApplicationsDefaultResponse.ts +72 -0
  209. package/src/models/index.ts +1 -0
  210. package/src/runtime.ts +12 -6
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiRoleListDTOFromJSON, } from '../models';
24
+ import { ApiRoleListDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class RolesApi extends runtime.BaseAPI {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
36
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
37
+ }
35
38
  const response = yield this.request({
36
39
  path: `/api/v2/roles`,
37
40
  method: 'GET',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiThirdPartyScanResultDTO } from '../models';
13
+ import type { ApiThirdPartyScanResultDTO } from '../models/index';
14
14
  export interface GetScanStatusRequest {
15
15
  applicationId: string;
16
16
  scanRequestId: string;
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiThirdPartyScanResultDTOFromJSON, } from '../models';
24
+ import { ApiThirdPartyScanResultDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -38,6 +38,9 @@ export class ScanApi extends runtime.BaseAPI {
38
38
  }
39
39
  const queryParameters = {};
40
40
  const headerParameters = {};
41
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
42
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
43
+ }
41
44
  const response = yield this.request({
42
45
  path: `/api/v2/scan/applications/{applicationId}/status/{scanRequestId}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"scanRequestId"}}`, encodeURIComponent(String(requestParameters.scanRequestId))),
43
46
  method: 'GET',
@@ -71,6 +74,9 @@ export class ScanApi extends runtime.BaseAPI {
71
74
  }
72
75
  const headerParameters = {};
73
76
  headerParameters['Content-Type'] = 'application/xml';
77
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
78
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
79
+ }
74
80
  const response = yield this.request({
75
81
  path: `/api/v2/scan/applications/{applicationId}/sources/{source}`.replace(`{${"applicationId"}}`, encodeURIComponent(String(requestParameters.applicationId))).replace(`{${"source"}}`, encodeURIComponent(String(requestParameters.source))),
76
82
  method: 'POST',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiSearchResultsDTOV2, ComponentIdentifier, SearchResultDTO } from '../models';
13
+ import type { ApiSearchResultsDTOV2, ComponentIdentifier, SearchResultDTO } from '../models/index';
14
14
  export interface GetExportResultsRequest {
15
15
  query?: string;
16
16
  allComponents?: boolean;
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiSearchResultsDTOV2FromJSON, SearchResultDTOFromJSON, } from '../models';
24
+ import { ApiSearchResultsDTOV2FromJSON, SearchResultDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class SearchApi extends runtime.BaseAPI {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
36
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
37
+ }
35
38
  const response = yield this.request({
36
39
  path: `/api/v2/search/advanced/index`,
37
40
  method: 'POST',
@@ -60,6 +63,9 @@ export class SearchApi extends runtime.BaseAPI {
60
63
  queryParameters['allComponents'] = requestParameters.allComponents;
61
64
  }
62
65
  const headerParameters = {};
66
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
67
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
68
+ }
63
69
  const response = yield this.request({
64
70
  path: `/api/v2/search/advanced/export/csv`,
65
71
  method: 'GET',
@@ -94,6 +100,9 @@ export class SearchApi extends runtime.BaseAPI {
94
100
  queryParameters['packageUrl'] = requestParameters.packageUrl;
95
101
  }
96
102
  const headerParameters = {};
103
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
104
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
105
+ }
97
106
  const response = yield this.request({
98
107
  path: `/api/v2/search/component`,
99
108
  method: 'GET',
@@ -129,6 +138,9 @@ export class SearchApi extends runtime.BaseAPI {
129
138
  queryParameters['allComponents'] = requestParameters.allComponents;
130
139
  }
131
140
  const headerParameters = {};
141
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
142
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
143
+ }
132
144
  const response = yield this.request({
133
145
  path: `/api/v2/search/advanced`,
134
146
  method: 'GET',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiSecurityVulnerabilityOverrideResponseDTOV2 } from '../models';
13
+ import type { ApiSecurityVulnerabilityOverrideResponseDTOV2 } from '../models/index';
14
14
  export interface GetSecurityVulnerabilityOverridesRequest {
15
15
  refId?: string;
16
16
  componentPurl?: string;
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiSecurityVulnerabilityOverrideResponseDTOV2FromJSON, } from '../models';
24
+ import { ApiSecurityVulnerabilityOverrideResponseDTOV2FromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -41,6 +41,9 @@ export class SecurityOverridesApi extends runtime.BaseAPI {
41
41
  queryParameters['ownerId'] = requestParameters.ownerId;
42
42
  }
43
43
  const headerParameters = {};
44
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
45
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
46
+ }
44
47
  const response = yield this.request({
45
48
  path: `/api/v2/securityOverrides`,
46
49
  method: 'GET',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiSourceControlDTO } from '../models';
13
+ import type { ApiSourceControlDTO } from '../models/index';
14
14
  export interface AddOrUpdateSourceControlRequest {
15
15
  publicId?: string;
16
16
  repositoryUrl?: string;
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiSourceControlDTOFromJSON, ApiSourceControlDTOToJSON, } from '../models';
24
+ import { ApiSourceControlDTOFromJSON, ApiSourceControlDTOToJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -38,6 +38,9 @@ export class SourceControlApi extends runtime.BaseAPI {
38
38
  queryParameters['repositoryUrl'] = requestParameters.repositoryUrl;
39
39
  }
40
40
  const headerParameters = {};
41
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
42
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
43
+ }
41
44
  const response = yield this.request({
42
45
  path: `/api/v2/sourceControl`,
43
46
  method: 'POST',
@@ -68,6 +71,9 @@ export class SourceControlApi extends runtime.BaseAPI {
68
71
  const queryParameters = {};
69
72
  const headerParameters = {};
70
73
  headerParameters['Content-Type'] = 'application/json';
74
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
75
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
76
+ }
71
77
  const response = yield this.request({
72
78
  path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
73
79
  method: 'POST',
@@ -98,6 +104,9 @@ export class SourceControlApi extends runtime.BaseAPI {
98
104
  }
99
105
  const queryParameters = {};
100
106
  const headerParameters = {};
107
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
108
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
109
+ }
101
110
  const response = yield this.request({
102
111
  path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
103
112
  method: 'DELETE',
@@ -126,6 +135,9 @@ export class SourceControlApi extends runtime.BaseAPI {
126
135
  }
127
136
  const queryParameters = {};
128
137
  const headerParameters = {};
138
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
139
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
140
+ }
129
141
  const response = yield this.request({
130
142
  path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
131
143
  method: 'GET',
@@ -156,6 +168,9 @@ export class SourceControlApi extends runtime.BaseAPI {
156
168
  const queryParameters = {};
157
169
  const headerParameters = {};
158
170
  headerParameters['Content-Type'] = 'application/json';
171
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
172
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
173
+ }
159
174
  const response = yield this.request({
160
175
  path: `/api/v2/sourceControl/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
161
176
  method: 'PUT',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiPullRequestResults } from '../models';
13
+ import type { ApiPullRequestResults } from '../models/index';
14
14
  export interface GetSourceControlRequest {
15
15
  ownerType: GetSourceControlOwnerTypeEnum;
16
16
  internalOwnerId: string;
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiPullRequestResultsFromJSON, } from '../models';
24
+ import { ApiPullRequestResultsFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -38,6 +38,9 @@ export class SourceControlMetricsApi extends runtime.BaseAPI {
38
38
  }
39
39
  const queryParameters = {};
40
40
  const headerParameters = {};
41
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
42
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
43
+ }
41
44
  const response = yield this.request({
42
45
  path: `/api/v2/sourceControlMetrics/{ownerType}/{internalOwnerId}`.replace(`{${"ownerType"}}`, encodeURIComponent(String(requestParameters.ownerType))).replace(`{${"internalOwnerId"}}`, encodeURIComponent(String(requestParameters.internalOwnerId))),
43
46
  method: 'GET',
@@ -35,6 +35,9 @@ export class TelemetryApi extends runtime.BaseAPI {
35
35
  if (requestParameters.userAgent !== undefined && requestParameters.userAgent !== null) {
36
36
  headerParameters['user-agent'] = String(requestParameters.userAgent);
37
37
  }
38
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
39
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
40
+ }
38
41
  const response = yield this.request({
39
42
  path: `/api/v2/telemetry`,
40
43
  method: 'POST',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiUserTokenDTO, ApiUserTokenExistsDTO } from '../models';
13
+ import type { ApiUserTokenDTO, ApiUserTokenExistsDTO } from '../models/index';
14
14
  export interface DeleteUserTokenByUserCodeRequest {
15
15
  userCode: string;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiUserTokenDTOFromJSON, ApiUserTokenExistsDTOFromJSON, } from '../models';
24
+ import { ApiUserTokenDTOFromJSON, ApiUserTokenExistsDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -32,6 +32,9 @@ export class UserTokensApi extends runtime.BaseAPI {
32
32
  return __awaiter(this, void 0, void 0, function* () {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
36
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
37
+ }
35
38
  const response = yield this.request({
36
39
  path: `/api/v2/userTokens/currentUser`,
37
40
  method: 'POST',
@@ -55,6 +58,9 @@ export class UserTokensApi extends runtime.BaseAPI {
55
58
  return __awaiter(this, void 0, void 0, function* () {
56
59
  const queryParameters = {};
57
60
  const headerParameters = {};
61
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
62
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
63
+ }
58
64
  const response = yield this.request({
59
65
  path: `/api/v2/userTokens/currentUser`,
60
66
  method: 'DELETE',
@@ -80,6 +86,9 @@ export class UserTokensApi extends runtime.BaseAPI {
80
86
  }
81
87
  const queryParameters = {};
82
88
  const headerParameters = {};
89
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
90
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
91
+ }
83
92
  const response = yield this.request({
84
93
  path: `/api/v2/userTokens/userCode/{userCode}`.replace(`{${"userCode"}}`, encodeURIComponent(String(requestParameters.userCode))),
85
94
  method: 'DELETE',
@@ -108,6 +117,9 @@ export class UserTokensApi extends runtime.BaseAPI {
108
117
  queryParameters['realm'] = requestParameters.realm;
109
118
  }
110
119
  const headerParameters = {};
120
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
121
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
122
+ }
111
123
  const response = yield this.request({
112
124
  path: `/api/v2/userTokens/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
113
125
  method: 'GET',
@@ -131,6 +143,9 @@ export class UserTokensApi extends runtime.BaseAPI {
131
143
  return __awaiter(this, void 0, void 0, function* () {
132
144
  const queryParameters = {};
133
145
  const headerParameters = {};
146
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
147
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
148
+ }
134
149
  const response = yield this.request({
135
150
  path: `/api/v2/userTokens/currentUser/hasToken`,
136
151
  method: 'GET',
@@ -163,6 +178,9 @@ export class UserTokensApi extends runtime.BaseAPI {
163
178
  queryParameters['realm'] = requestParameters.realm;
164
179
  }
165
180
  const headerParameters = {};
181
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
182
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
183
+ }
166
184
  const response = yield this.request({
167
185
  path: `/api/v2/userTokens`,
168
186
  method: 'GET',
@@ -186,6 +204,9 @@ export class UserTokensApi extends runtime.BaseAPI {
186
204
  return __awaiter(this, void 0, void 0, function* () {
187
205
  const queryParameters = {};
188
206
  const headerParameters = {};
207
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
208
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
209
+ }
189
210
  const response = yield this.request({
190
211
  path: `/api/v2/userTokens/purge`,
191
212
  method: 'DELETE',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ApiUserDTO, ApiUserListDTO } from '../models';
13
+ import type { ApiUserDTO, ApiUserListDTO } from '../models/index';
14
14
  export interface AddRequest {
15
15
  apiUserDTO?: ApiUserDTO;
16
16
  }
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { ApiUserDTOFromJSON, ApiUserDTOToJSON, ApiUserListDTOFromJSON, } from '../models';
24
+ import { ApiUserDTOFromJSON, ApiUserDTOToJSON, ApiUserListDTOFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -33,6 +33,9 @@ export class UsersApi extends runtime.BaseAPI {
33
33
  const queryParameters = {};
34
34
  const headerParameters = {};
35
35
  headerParameters['Content-Type'] = 'application/json';
36
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
37
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
38
+ }
36
39
  const response = yield this.request({
37
40
  path: `/api/v2/users`,
38
41
  method: 'POST',
@@ -62,6 +65,9 @@ export class UsersApi extends runtime.BaseAPI {
62
65
  queryParameters['realm'] = requestParameters.realm;
63
66
  }
64
67
  const headerParameters = {};
68
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
69
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
70
+ }
65
71
  const response = yield this.request({
66
72
  path: `/api/v2/users/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
67
73
  method: 'DELETE',
@@ -90,6 +96,9 @@ export class UsersApi extends runtime.BaseAPI {
90
96
  queryParameters['realm'] = requestParameters.realm;
91
97
  }
92
98
  const headerParameters = {};
99
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
100
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
101
+ }
93
102
  const response = yield this.request({
94
103
  path: `/api/v2/users/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
95
104
  method: 'GET',
@@ -116,6 +125,9 @@ export class UsersApi extends runtime.BaseAPI {
116
125
  queryParameters['realm'] = requestParameters.realm;
117
126
  }
118
127
  const headerParameters = {};
128
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
129
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
130
+ }
119
131
  const response = yield this.request({
120
132
  path: `/api/v2/users`,
121
133
  method: 'GET',
@@ -143,6 +155,9 @@ export class UsersApi extends runtime.BaseAPI {
143
155
  const queryParameters = {};
144
156
  const headerParameters = {};
145
157
  headerParameters['Content-Type'] = 'application/json';
158
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
159
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
160
+ }
146
161
  const response = yield this.request({
147
162
  path: `/api/v2/users/{username}`.replace(`{${"username"}}`, encodeURIComponent(String(requestParameters.username))),
148
163
  method: 'PUT',
@@ -10,7 +10,7 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { ComponentIdentifier, SecurityVulnerabilityData } from '../models';
13
+ import type { ComponentIdentifier, SecurityVulnerabilityData } from '../models/index';
14
14
  export interface GetSecurityVulnerabilityDetailsRequest {
15
15
  refId: string;
16
16
  componentIdentifier?: ComponentIdentifier;
@@ -21,7 +21,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
21
21
  });
22
22
  };
23
23
  import * as runtime from '../runtime';
24
- import { SecurityVulnerabilityDataFromJSON, } from '../models';
24
+ import { SecurityVulnerabilityDataFromJSON, } from '../models/index';
25
25
  /**
26
26
  *
27
27
  */
@@ -50,6 +50,9 @@ export class VulnerabilitiesApi extends runtime.BaseAPI {
50
50
  queryParameters['ownerId'] = requestParameters.ownerId;
51
51
  }
52
52
  const headerParameters = {};
53
+ if (this.configuration && (this.configuration.username !== undefined || this.configuration.password !== undefined)) {
54
+ headerParameters["Authorization"] = "Basic " + btoa(this.configuration.username + ":" + this.configuration.password);
55
+ }
53
56
  const response = yield this.request({
54
57
  path: `/api/v2/vulnerabilities/{refId}`.replace(`{${"refId"}}`, encodeURIComponent(String(requestParameters.refId))),
55
58
  method: 'GET',
@@ -1,3 +1,3 @@
1
1
  export * from './runtime';
2
- export * from './apis';
3
- export * from './models';
2
+ export * from './apis/index';
3
+ export * from './models/index';
package/dist/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /* tslint:disable */
2
2
  /* eslint-disable */
3
3
  export * from './runtime';
4
- export * from './apis';
5
- export * from './models';
4
+ export * from './apis/index';
5
+ export * from './models/index';
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Sonatype Nexus IQ Server
3
+ * This documents the available APIs into [Sonatype Nexus IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management) (also knwon as Nexus Lifecycle).
4
+ *
5
+ * The version of the OpenAPI document: 156
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 { ApiApplicationDTO } from './ApiApplicationDTO';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetApplicationsDefaultResponse
17
+ */
18
+ export interface GetApplicationsDefaultResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ApiApplicationDTO>}
22
+ * @memberof GetApplicationsDefaultResponse
23
+ */
24
+ applications?: Array<ApiApplicationDTO>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the GetApplicationsDefaultResponse interface.
28
+ */
29
+ export declare function instanceOfGetApplicationsDefaultResponse(value: object): boolean;
30
+ export declare function GetApplicationsDefaultResponseFromJSON(json: any): GetApplicationsDefaultResponse;
31
+ export declare function GetApplicationsDefaultResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetApplicationsDefaultResponse;
32
+ export declare function GetApplicationsDefaultResponseToJSON(value?: GetApplicationsDefaultResponse | null): any;
@@ -0,0 +1,44 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * Sonatype Nexus IQ Server
5
+ * This documents the available APIs into [Sonatype Nexus IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management) (also knwon as Nexus Lifecycle).
6
+ *
7
+ * The version of the OpenAPI document: 156
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 { exists } from '../runtime';
15
+ import { ApiApplicationDTOFromJSON, ApiApplicationDTOToJSON, } from './ApiApplicationDTO';
16
+ /**
17
+ * Check if a given object implements the GetApplicationsDefaultResponse interface.
18
+ */
19
+ export function instanceOfGetApplicationsDefaultResponse(value) {
20
+ let isInstance = true;
21
+ return isInstance;
22
+ }
23
+ export function GetApplicationsDefaultResponseFromJSON(json) {
24
+ return GetApplicationsDefaultResponseFromJSONTyped(json, false);
25
+ }
26
+ export function GetApplicationsDefaultResponseFromJSONTyped(json, ignoreDiscriminator) {
27
+ if ((json === undefined) || (json === null)) {
28
+ return json;
29
+ }
30
+ return {
31
+ 'applications': !exists(json, 'applications') ? undefined : (json['applications'].map(ApiApplicationDTOFromJSON)),
32
+ };
33
+ }
34
+ export function GetApplicationsDefaultResponseToJSON(value) {
35
+ if (value === undefined) {
36
+ return undefined;
37
+ }
38
+ if (value === null) {
39
+ return null;
40
+ }
41
+ return {
42
+ 'applications': value.applications === undefined ? undefined : (value.applications.map(ApiApplicationDTOToJSON)),
43
+ };
44
+ }
@@ -170,6 +170,7 @@ export * from './CweId';
170
170
  export * from './FormDataBodyPart';
171
171
  export * from './FormDataContentDisposition';
172
172
  export * from './FormDataMultiPart';
173
+ export * from './GetApplicationsDefaultResponse';
173
174
  export * from './GroupingByDTO';
174
175
  export * from './InnerSourceData';
175
176
  export * from './LabelsByOwner';
@@ -172,6 +172,7 @@ export * from './CweId';
172
172
  export * from './FormDataBodyPart';
173
173
  export * from './FormDataContentDisposition';
174
174
  export * from './FormDataMultiPart';
175
+ export * from './GetApplicationsDefaultResponse';
175
176
  export * from './GroupingByDTO';
176
177
  export * from './InnerSourceData';
177
178
  export * from './LabelsByOwner';
@@ -183,11 +183,19 @@ export class BaseAPI {
183
183
  init: initParams,
184
184
  context,
185
185
  })));
186
- const init = Object.assign(Object.assign({}, overriddenInit), { body: isFormData(overriddenInit.body) ||
187
- overriddenInit.body instanceof URLSearchParams ||
188
- isBlob(overriddenInit.body)
189
- ? overriddenInit.body
190
- : JSON.stringify(overriddenInit.body) });
186
+ let body;
187
+ if (isFormData(overriddenInit.body)
188
+ || (overriddenInit.body instanceof URLSearchParams)
189
+ || isBlob(overriddenInit.body)) {
190
+ body = overriddenInit.body;
191
+ }
192
+ else if (this.isJsonMime(headers['Content-Type'])) {
193
+ body = JSON.stringify(overriddenInit.body);
194
+ }
195
+ else {
196
+ body = overriddenInit.body;
197
+ }
198
+ const init = Object.assign(Object.assign({}, overriddenInit), { body });
191
199
  return { url, init };
192
200
  });
193
201
  }
package/dist/index.d.ts CHANGED
@@ -1,3 +1,3 @@
1
1
  export * from './runtime';
2
- export * from './apis';
3
- export * from './models';
2
+ export * from './apis/index';
3
+ export * from './models/index';
package/dist/index.js CHANGED
@@ -17,5 +17,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
17
17
  /* tslint:disable */
18
18
  /* eslint-disable */
19
19
  __exportStar(require("./runtime"), exports);
20
- __exportStar(require("./apis"), exports);
21
- __exportStar(require("./models"), exports);
20
+ __exportStar(require("./apis/index"), exports);
21
+ __exportStar(require("./models/index"), exports);
@@ -0,0 +1,32 @@
1
+ /**
2
+ * Sonatype Nexus IQ Server
3
+ * This documents the available APIs into [Sonatype Nexus IQ Server](https://www.sonatype.com/products/open-source-security-dependency-management) (also knwon as Nexus Lifecycle).
4
+ *
5
+ * The version of the OpenAPI document: 156
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 { ApiApplicationDTO } from './ApiApplicationDTO';
13
+ /**
14
+ *
15
+ * @export
16
+ * @interface GetApplicationsDefaultResponse
17
+ */
18
+ export interface GetApplicationsDefaultResponse {
19
+ /**
20
+ *
21
+ * @type {Array<ApiApplicationDTO>}
22
+ * @memberof GetApplicationsDefaultResponse
23
+ */
24
+ applications?: Array<ApiApplicationDTO>;
25
+ }
26
+ /**
27
+ * Check if a given object implements the GetApplicationsDefaultResponse interface.
28
+ */
29
+ export declare function instanceOfGetApplicationsDefaultResponse(value: object): boolean;
30
+ export declare function GetApplicationsDefaultResponseFromJSON(json: any): GetApplicationsDefaultResponse;
31
+ export declare function GetApplicationsDefaultResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): GetApplicationsDefaultResponse;
32
+ export declare function GetApplicationsDefaultResponseToJSON(value?: GetApplicationsDefaultResponse | null): any;