@cirrobio/api-client 0.4.2 → 0.9.0

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 (320) hide show
  1. package/.openapi-generator/FILES +1 -0
  2. package/README.md +1 -1
  3. package/package.json +4 -2
  4. package/src/models/ProjectRequirement.ts +10 -1
  5. package/tsconfig.esm.json +7 -0
  6. package/tsconfig.json +1 -5
  7. package/dist/apis/AuditApi.d.ts +0 -60
  8. package/dist/apis/AuditApi.js +0 -194
  9. package/dist/apis/BillingApi.d.ts +0 -71
  10. package/dist/apis/BillingApi.js +0 -304
  11. package/dist/apis/ComputeEnvironmentApi.d.ts +0 -124
  12. package/dist/apis/ComputeEnvironmentApi.js +0 -532
  13. package/dist/apis/DashboardsApi.d.ts +0 -88
  14. package/dist/apis/DashboardsApi.js +0 -374
  15. package/dist/apis/DatasetsApi.d.ts +0 -162
  16. package/dist/apis/DatasetsApi.js +0 -670
  17. package/dist/apis/ExecutionApi.d.ts +0 -110
  18. package/dist/apis/ExecutionApi.js +0 -442
  19. package/dist/apis/FileApi.d.ts +0 -60
  20. package/dist/apis/FileApi.js +0 -260
  21. package/dist/apis/GovernanceApi.d.ts +0 -253
  22. package/dist/apis/GovernanceApi.js +0 -1094
  23. package/dist/apis/MetadataApi.d.ts +0 -85
  24. package/dist/apis/MetadataApi.js +0 -371
  25. package/dist/apis/MetricsApi.d.ts +0 -41
  26. package/dist/apis/MetricsApi.js +0 -187
  27. package/dist/apis/NotebooksApi.d.ts +0 -101
  28. package/dist/apis/NotebooksApi.js +0 -423
  29. package/dist/apis/ProcessesApi.d.ts +0 -138
  30. package/dist/apis/ProcessesApi.js +0 -589
  31. package/dist/apis/ProjectRequestsApi.d.ts +0 -31
  32. package/dist/apis/ProjectRequestsApi.js +0 -137
  33. package/dist/apis/ProjectsApi.d.ts +0 -225
  34. package/dist/apis/ProjectsApi.js +0 -973
  35. package/dist/apis/ReferencesApi.d.ts +0 -91
  36. package/dist/apis/ReferencesApi.js +0 -405
  37. package/dist/apis/SharingApi.d.ts +0 -145
  38. package/dist/apis/SharingApi.js +0 -601
  39. package/dist/apis/SystemApi.d.ts +0 -36
  40. package/dist/apis/SystemApi.js +0 -182
  41. package/dist/apis/ToolsApi.d.ts +0 -31
  42. package/dist/apis/ToolsApi.js +0 -137
  43. package/dist/apis/UsersApi.d.ts +0 -86
  44. package/dist/apis/UsersApi.js +0 -367
  45. package/dist/apis/index.d.ts +0 -19
  46. package/dist/apis/index.js +0 -37
  47. package/dist/index.d.ts +0 -3
  48. package/dist/index.js +0 -21
  49. package/dist/models/AWSCredentials.d.ts +0 -55
  50. package/dist/models/AWSCredentials.js +0 -62
  51. package/dist/models/Agent.d.ts +0 -52
  52. package/dist/models/Agent.js +0 -58
  53. package/dist/models/AgentDetail.d.ts +0 -91
  54. package/dist/models/AgentDetail.js +0 -77
  55. package/dist/models/AgentInput.d.ts +0 -67
  56. package/dist/models/AgentInput.js +0 -62
  57. package/dist/models/AgentRegistration.d.ts +0 -55
  58. package/dist/models/AgentRegistration.js +0 -62
  59. package/dist/models/AgentStatus.d.ts +0 -23
  60. package/dist/models/AgentStatus.js +0 -38
  61. package/dist/models/AllowedDataType.d.ts +0 -44
  62. package/dist/models/AllowedDataType.js +0 -57
  63. package/dist/models/ApproveAccessRequest.d.ts +0 -32
  64. package/dist/models/ApproveAccessRequest.js +0 -51
  65. package/dist/models/ApproveProjectAccessRequest.d.ts +0 -32
  66. package/dist/models/ApproveProjectAccessRequest.js +0 -51
  67. package/dist/models/Artifact.d.ts +0 -38
  68. package/dist/models/Artifact.js +0 -54
  69. package/dist/models/ArtifactType.d.ts +0 -34
  70. package/dist/models/ArtifactType.js +0 -49
  71. package/dist/models/AuditEvent.d.ts +0 -89
  72. package/dist/models/AuditEvent.js +0 -68
  73. package/dist/models/AuthInfo.d.ts +0 -55
  74. package/dist/models/AuthInfo.js +0 -62
  75. package/dist/models/BillingAccount.d.ts +0 -88
  76. package/dist/models/BillingAccount.js +0 -80
  77. package/dist/models/BillingAccountRequest.d.ts +0 -70
  78. package/dist/models/BillingAccountRequest.js +0 -71
  79. package/dist/models/BillingMethod.d.ts +0 -24
  80. package/dist/models/BillingMethod.js +0 -39
  81. package/dist/models/BudgetPeriod.d.ts +0 -24
  82. package/dist/models/BudgetPeriod.js +0 -39
  83. package/dist/models/ClassificationInput.d.ts +0 -43
  84. package/dist/models/ClassificationInput.js +0 -56
  85. package/dist/models/CloudAccount.d.ts +0 -50
  86. package/dist/models/CloudAccount.js +0 -58
  87. package/dist/models/CloudAccountType.d.ts +0 -23
  88. package/dist/models/CloudAccountType.js +0 -38
  89. package/dist/models/ColumnDefinition.d.ts +0 -43
  90. package/dist/models/ColumnDefinition.js +0 -54
  91. package/dist/models/ComputeEnvironmentConfiguration.d.ts +0 -77
  92. package/dist/models/ComputeEnvironmentConfiguration.js +0 -69
  93. package/dist/models/ComputeEnvironmentConfigurationInput.d.ts +0 -45
  94. package/dist/models/ComputeEnvironmentConfigurationInput.js +0 -55
  95. package/dist/models/Contact.d.ts +0 -49
  96. package/dist/models/Contact.js +0 -59
  97. package/dist/models/ContactInput.d.ts +0 -55
  98. package/dist/models/ContactInput.js +0 -62
  99. package/dist/models/CreateNotebookInstanceRequest.d.ts +0 -61
  100. package/dist/models/CreateNotebookInstanceRequest.js +0 -64
  101. package/dist/models/CreateProjectAccessRequest.d.ts +0 -38
  102. package/dist/models/CreateProjectAccessRequest.js +0 -54
  103. package/dist/models/CreateReferenceRequest.d.ts +0 -49
  104. package/dist/models/CreateReferenceRequest.js +0 -59
  105. package/dist/models/CreateResponse.d.ts +0 -37
  106. package/dist/models/CreateResponse.js +0 -53
  107. package/dist/models/CustomPipelineSettings.d.ts +0 -75
  108. package/dist/models/CustomPipelineSettings.js +0 -67
  109. package/dist/models/CustomProcessInput.d.ts +0 -131
  110. package/dist/models/CustomProcessInput.js +0 -93
  111. package/dist/models/CustomerType.d.ts +0 -24
  112. package/dist/models/CustomerType.js +0 -39
  113. package/dist/models/Dashboard.d.ts +0 -83
  114. package/dist/models/Dashboard.js +0 -74
  115. package/dist/models/DashboardRequest.d.ts +0 -59
  116. package/dist/models/DashboardRequest.js +0 -62
  117. package/dist/models/DataFile.d.ts +0 -39
  118. package/dist/models/DataFile.js +0 -53
  119. package/dist/models/Dataset.d.ts +0 -93
  120. package/dist/models/Dataset.js +0 -82
  121. package/dist/models/DatasetAssetsManifest.d.ts +0 -65
  122. package/dist/models/DatasetAssetsManifest.js +0 -64
  123. package/dist/models/DatasetCondition.d.ts +0 -38
  124. package/dist/models/DatasetCondition.js +0 -54
  125. package/dist/models/DatasetConditionField.d.ts +0 -25
  126. package/dist/models/DatasetConditionField.js +0 -40
  127. package/dist/models/DatasetDetail.d.ts +0 -146
  128. package/dist/models/DatasetDetail.js +0 -107
  129. package/dist/models/DatasetViz.d.ts +0 -55
  130. package/dist/models/DatasetViz.js +0 -58
  131. package/dist/models/EnvironmentType.d.ts +0 -25
  132. package/dist/models/EnvironmentType.js +0 -40
  133. package/dist/models/ErrorMessage.d.ts +0 -31
  134. package/dist/models/ErrorMessage.js +0 -50
  135. package/dist/models/Executor.d.ts +0 -25
  136. package/dist/models/Executor.js +0 -40
  137. package/dist/models/FeatureFlags.d.ts +0 -43
  138. package/dist/models/FeatureFlags.js +0 -56
  139. package/dist/models/FileEntry.d.ts +0 -45
  140. package/dist/models/FileEntry.js +0 -54
  141. package/dist/models/FileMappingRule.d.ts +0 -56
  142. package/dist/models/FileMappingRule.js +0 -61
  143. package/dist/models/FileNamePattern.d.ts +0 -43
  144. package/dist/models/FileNamePattern.js +0 -56
  145. package/dist/models/FileRequirements.d.ts +0 -44
  146. package/dist/models/FileRequirements.js +0 -57
  147. package/dist/models/FormSchema.d.ts +0 -41
  148. package/dist/models/FormSchema.js +0 -52
  149. package/dist/models/FulfillmentResponse.d.ts +0 -37
  150. package/dist/models/FulfillmentResponse.js +0 -53
  151. package/dist/models/GenerateSftpCredentialsRequest.d.ts +0 -31
  152. package/dist/models/GenerateSftpCredentialsRequest.js +0 -50
  153. package/dist/models/GetExecutionLogsResponse.d.ts +0 -32
  154. package/dist/models/GetExecutionLogsResponse.js +0 -51
  155. package/dist/models/GovernanceAccessType.d.ts +0 -25
  156. package/dist/models/GovernanceAccessType.js +0 -40
  157. package/dist/models/GovernanceClassification.d.ts +0 -67
  158. package/dist/models/GovernanceClassification.js +0 -68
  159. package/dist/models/GovernanceContact.d.ts +0 -79
  160. package/dist/models/GovernanceContact.js +0 -74
  161. package/dist/models/GovernanceExpiry.d.ts +0 -44
  162. package/dist/models/GovernanceExpiry.js +0 -55
  163. package/dist/models/GovernanceExpiryType.d.ts +0 -25
  164. package/dist/models/GovernanceExpiryType.js +0 -40
  165. package/dist/models/GovernanceFile.d.ts +0 -50
  166. package/dist/models/GovernanceFile.js +0 -57
  167. package/dist/models/GovernanceFileAccessRequest.d.ts +0 -50
  168. package/dist/models/GovernanceFileAccessRequest.js +0 -58
  169. package/dist/models/GovernanceFileInput.d.ts +0 -50
  170. package/dist/models/GovernanceFileInput.js +0 -60
  171. package/dist/models/GovernanceFileType.d.ts +0 -23
  172. package/dist/models/GovernanceFileType.js +0 -38
  173. package/dist/models/GovernanceRequirement.d.ts +0 -146
  174. package/dist/models/GovernanceRequirement.js +0 -102
  175. package/dist/models/GovernanceRequirementFile.d.ts +0 -50
  176. package/dist/models/GovernanceRequirementFile.js +0 -57
  177. package/dist/models/GovernanceScope.d.ts +0 -23
  178. package/dist/models/GovernanceScope.js +0 -38
  179. package/dist/models/GovernanceTrainingVerification.d.ts +0 -23
  180. package/dist/models/GovernanceTrainingVerification.js +0 -38
  181. package/dist/models/GovernanceType.d.ts +0 -24
  182. package/dist/models/GovernanceType.js +0 -39
  183. package/dist/models/ImportDataRequest.d.ts +0 -50
  184. package/dist/models/ImportDataRequest.js +0 -59
  185. package/dist/models/InviteUserRequest.d.ts +0 -43
  186. package/dist/models/InviteUserRequest.js +0 -56
  187. package/dist/models/InviteUserResponse.d.ts +0 -31
  188. package/dist/models/InviteUserResponse.js +0 -50
  189. package/dist/models/LogEntry.d.ts +0 -37
  190. package/dist/models/LogEntry.js +0 -53
  191. package/dist/models/LoginProvider.d.ts +0 -49
  192. package/dist/models/LoginProvider.js +0 -59
  193. package/dist/models/MetricRecord.d.ts +0 -45
  194. package/dist/models/MetricRecord.js +0 -55
  195. package/dist/models/MoveDatasetInput.d.ts +0 -43
  196. package/dist/models/MoveDatasetInput.js +0 -56
  197. package/dist/models/MoveDatasetResponse.d.ts +0 -43
  198. package/dist/models/MoveDatasetResponse.js +0 -56
  199. package/dist/models/NamedItem.d.ts +0 -37
  200. package/dist/models/NamedItem.js +0 -53
  201. package/dist/models/NotebookInstance.d.ts +0 -98
  202. package/dist/models/NotebookInstance.js +0 -84
  203. package/dist/models/NotebookInstanceStatusResponse.d.ts +0 -37
  204. package/dist/models/NotebookInstanceStatusResponse.js +0 -53
  205. package/dist/models/OpenNotebookInstanceResponse.d.ts +0 -37
  206. package/dist/models/OpenNotebookInstanceResponse.js +0 -53
  207. package/dist/models/PaginatedResponseDatasetListDto.d.ts +0 -38
  208. package/dist/models/PaginatedResponseDatasetListDto.js +0 -54
  209. package/dist/models/PaginatedResponseSampleDto.d.ts +0 -38
  210. package/dist/models/PaginatedResponseSampleDto.js +0 -54
  211. package/dist/models/PaginatedResponseUserDto.d.ts +0 -38
  212. package/dist/models/PaginatedResponseUserDto.js +0 -54
  213. package/dist/models/PipelineCode.d.ts +0 -50
  214. package/dist/models/PipelineCode.js +0 -60
  215. package/dist/models/PipelineCost.d.ts +0 -43
  216. package/dist/models/PipelineCost.js +0 -54
  217. package/dist/models/PortalErrorResponse.d.ts +0 -50
  218. package/dist/models/PortalErrorResponse.js +0 -60
  219. package/dist/models/Process.d.ts +0 -140
  220. package/dist/models/Process.js +0 -99
  221. package/dist/models/ProcessDetail.d.ts +0 -161
  222. package/dist/models/ProcessDetail.js +0 -108
  223. package/dist/models/Project.d.ts +0 -75
  224. package/dist/models/Project.js +0 -73
  225. package/dist/models/ProjectAccessRequest.d.ts +0 -81
  226. package/dist/models/ProjectAccessRequest.js +0 -76
  227. package/dist/models/ProjectAccessType.d.ts +0 -26
  228. package/dist/models/ProjectAccessType.js +0 -41
  229. package/dist/models/ProjectCreateOptions.d.ts +0 -56
  230. package/dist/models/ProjectCreateOptions.js +0 -63
  231. package/dist/models/ProjectDetail.d.ts +0 -120
  232. package/dist/models/ProjectDetail.js +0 -97
  233. package/dist/models/ProjectFileAccessRequest.d.ts +0 -44
  234. package/dist/models/ProjectFileAccessRequest.js +0 -56
  235. package/dist/models/ProjectInput.d.ts +0 -77
  236. package/dist/models/ProjectInput.js +0 -73
  237. package/dist/models/ProjectMetrics.d.ts +0 -44
  238. package/dist/models/ProjectMetrics.js +0 -56
  239. package/dist/models/ProjectRequest.d.ts +0 -61
  240. package/dist/models/ProjectRequest.js +0 -65
  241. package/dist/models/ProjectRequirement.d.ts +0 -157
  242. package/dist/models/ProjectRequirement.js +0 -104
  243. package/dist/models/ProjectRole.d.ts +0 -26
  244. package/dist/models/ProjectRole.js +0 -41
  245. package/dist/models/ProjectSettings.d.ts +0 -140
  246. package/dist/models/ProjectSettings.js +0 -89
  247. package/dist/models/ProjectUser.d.ts +0 -62
  248. package/dist/models/ProjectUser.js +0 -66
  249. package/dist/models/Reference.d.ts +0 -68
  250. package/dist/models/Reference.js +0 -69
  251. package/dist/models/ReferenceType.d.ts +0 -51
  252. package/dist/models/ReferenceType.js +0 -59
  253. package/dist/models/RepositoryType.d.ts +0 -25
  254. package/dist/models/RepositoryType.js +0 -40
  255. package/dist/models/RequestStatus.d.ts +0 -24
  256. package/dist/models/RequestStatus.js +0 -39
  257. package/dist/models/RequirementFulfillmentInput.d.ts +0 -37
  258. package/dist/models/RequirementFulfillmentInput.js +0 -52
  259. package/dist/models/RequirementInput.d.ts +0 -108
  260. package/dist/models/RequirementInput.js +0 -85
  261. package/dist/models/ResourcesInfo.d.ts +0 -49
  262. package/dist/models/ResourcesInfo.js +0 -59
  263. package/dist/models/RunAnalysisRequest.d.ts +0 -81
  264. package/dist/models/RunAnalysisRequest.js +0 -71
  265. package/dist/models/Sample.d.ts +0 -70
  266. package/dist/models/Sample.js +0 -65
  267. package/dist/models/SampleRequest.d.ts +0 -39
  268. package/dist/models/SampleRequest.js +0 -53
  269. package/dist/models/ServiceConnection.d.ts +0 -37
  270. package/dist/models/ServiceConnection.js +0 -53
  271. package/dist/models/SetUserProjectRoleRequest.d.ts +0 -44
  272. package/dist/models/SetUserProjectRoleRequest.js +0 -57
  273. package/dist/models/SftpCredentials.d.ts +0 -49
  274. package/dist/models/SftpCredentials.js +0 -59
  275. package/dist/models/Share.d.ts +0 -93
  276. package/dist/models/Share.js +0 -82
  277. package/dist/models/ShareDetail.d.ts +0 -112
  278. package/dist/models/ShareDetail.js +0 -92
  279. package/dist/models/ShareInput.d.ts +0 -68
  280. package/dist/models/ShareInput.js +0 -67
  281. package/dist/models/ShareType.d.ts +0 -24
  282. package/dist/models/ShareType.js +0 -39
  283. package/dist/models/Status.d.ts +0 -31
  284. package/dist/models/Status.js +0 -46
  285. package/dist/models/StopExecutionResponse.d.ts +0 -37
  286. package/dist/models/StopExecutionResponse.js +0 -52
  287. package/dist/models/SyncStatus.d.ts +0 -23
  288. package/dist/models/SyncStatus.js +0 -38
  289. package/dist/models/SystemInfoResponse.d.ts +0 -100
  290. package/dist/models/SystemInfoResponse.js +0 -86
  291. package/dist/models/Table.d.ts +0 -62
  292. package/dist/models/Table.js +0 -62
  293. package/dist/models/Tag.d.ts +0 -44
  294. package/dist/models/Tag.js +0 -55
  295. package/dist/models/Task.d.ts +0 -79
  296. package/dist/models/Task.js +0 -70
  297. package/dist/models/TenantInfo.d.ts +0 -87
  298. package/dist/models/TenantInfo.js +0 -79
  299. package/dist/models/UpdateDatasetRequest.d.ts +0 -50
  300. package/dist/models/UpdateDatasetRequest.js +0 -60
  301. package/dist/models/UpdateUserRequest.d.ts +0 -74
  302. package/dist/models/UpdateUserRequest.js +0 -67
  303. package/dist/models/UploadDatasetCreateResponse.d.ts +0 -49
  304. package/dist/models/UploadDatasetCreateResponse.js +0 -59
  305. package/dist/models/UploadDatasetRequest.d.ts +0 -56
  306. package/dist/models/UploadDatasetRequest.js +0 -62
  307. package/dist/models/User.d.ts +0 -49
  308. package/dist/models/User.js +0 -59
  309. package/dist/models/UserDetail.d.ts +0 -99
  310. package/dist/models/UserDetail.js +0 -85
  311. package/dist/models/UserProjectAssignment.d.ts +0 -50
  312. package/dist/models/UserProjectAssignment.js +0 -60
  313. package/dist/models/UserSettings.d.ts +0 -32
  314. package/dist/models/UserSettings.js +0 -57
  315. package/dist/models/ValidateFileRequirementsRequest.d.ts +0 -37
  316. package/dist/models/ValidateFileRequirementsRequest.js +0 -53
  317. package/dist/models/index.d.ts +0 -132
  318. package/dist/models/index.js +0 -150
  319. package/dist/runtime.d.ts +0 -182
  320. package/dist/runtime.js +0 -562
@@ -1,304 +0,0 @@
1
- "use strict";
2
- /* tslint:disable */
3
- /* eslint-disable */
4
- /**
5
- * Cirro Data
6
- * Cirro Data Platform service API
7
- *
8
- * The version of the OpenAPI document: latest
9
- * Contact: support@cirro.bio
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
- var __extends = (this && this.__extends) || (function () {
16
- var extendStatics = function (d, b) {
17
- extendStatics = Object.setPrototypeOf ||
18
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
19
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
20
- return extendStatics(d, b);
21
- };
22
- return function (d, b) {
23
- if (typeof b !== "function" && b !== null)
24
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
25
- extendStatics(d, b);
26
- function __() { this.constructor = d; }
27
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
28
- };
29
- })();
30
- var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
31
- function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
32
- return new (P || (P = Promise))(function (resolve, reject) {
33
- function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
34
- function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
35
- function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
36
- step((generator = generator.apply(thisArg, _arguments || [])).next());
37
- });
38
- };
39
- var __generator = (this && this.__generator) || function (thisArg, body) {
40
- var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
41
- return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
42
- function verb(n) { return function (v) { return step([n, v]); }; }
43
- function step(op) {
44
- if (f) throw new TypeError("Generator is already executing.");
45
- while (g && (g = 0, op[0] && (_ = 0)), _) try {
46
- if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
47
- if (y = 0, t) op = [op[0] & 2, t.value];
48
- switch (op[0]) {
49
- case 0: case 1: t = op; break;
50
- case 4: _.label++; return { value: op[1], done: false };
51
- case 5: _.label++; y = op[1]; op = [0]; continue;
52
- case 7: op = _.ops.pop(); _.trys.pop(); continue;
53
- default:
54
- if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
55
- if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
56
- if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
57
- if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
58
- if (t[2]) _.ops.pop();
59
- _.trys.pop(); continue;
60
- }
61
- op = body.call(thisArg, _);
62
- } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
63
- if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
64
- }
65
- };
66
- Object.defineProperty(exports, "__esModule", { value: true });
67
- exports.BillingApi = void 0;
68
- var runtime = require("../runtime");
69
- var index_1 = require("../models/index");
70
- /**
71
- *
72
- */
73
- var BillingApi = /** @class */ (function (_super) {
74
- __extends(BillingApi, _super);
75
- function BillingApi() {
76
- return _super !== null && _super.apply(this, arguments) || this;
77
- }
78
- /**
79
- * Creates a billing account
80
- * Create billing account
81
- */
82
- BillingApi.prototype.createBillingAccountRaw = function (requestParameters, initOverrides) {
83
- return __awaiter(this, void 0, void 0, function () {
84
- var queryParameters, headerParameters, token, tokenString, response;
85
- return __generator(this, function (_a) {
86
- switch (_a.label) {
87
- case 0:
88
- if (requestParameters.billingAccountRequest === null || requestParameters.billingAccountRequest === undefined) {
89
- throw new runtime.RequiredError('billingAccountRequest', 'Required parameter requestParameters.billingAccountRequest was null or undefined when calling createBillingAccount.');
90
- }
91
- queryParameters = {};
92
- headerParameters = {};
93
- headerParameters['Content-Type'] = 'application/json';
94
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
95
- token = this.configuration.accessToken;
96
- return [4 /*yield*/, token("accessToken", [])];
97
- case 1:
98
- tokenString = _a.sent();
99
- if (tokenString) {
100
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
101
- }
102
- _a.label = 2;
103
- case 2: return [4 /*yield*/, this.request({
104
- path: "/billing",
105
- method: 'POST',
106
- headers: headerParameters,
107
- query: queryParameters,
108
- body: (0, index_1.BillingAccountRequestToJSON)(requestParameters.billingAccountRequest),
109
- }, initOverrides)];
110
- case 3:
111
- response = _a.sent();
112
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return (0, index_1.CreateResponseFromJSON)(jsonValue); })];
113
- }
114
- });
115
- });
116
- };
117
- /**
118
- * Creates a billing account
119
- * Create billing account
120
- */
121
- BillingApi.prototype.createBillingAccount = function (requestParameters, initOverrides) {
122
- return __awaiter(this, void 0, void 0, function () {
123
- var response;
124
- return __generator(this, function (_a) {
125
- switch (_a.label) {
126
- case 0: return [4 /*yield*/, this.createBillingAccountRaw(requestParameters, initOverrides)];
127
- case 1:
128
- response = _a.sent();
129
- return [4 /*yield*/, response.value()];
130
- case 2: return [2 /*return*/, _a.sent()];
131
- }
132
- });
133
- });
134
- };
135
- /**
136
- * Deletes a billing account
137
- * Delete billing account
138
- */
139
- BillingApi.prototype.deleteBillingAccountRaw = function (requestParameters, initOverrides) {
140
- return __awaiter(this, void 0, void 0, function () {
141
- var queryParameters, headerParameters, token, tokenString, response;
142
- return __generator(this, function (_a) {
143
- switch (_a.label) {
144
- case 0:
145
- if (requestParameters.billingAccountId === null || requestParameters.billingAccountId === undefined) {
146
- throw new runtime.RequiredError('billingAccountId', 'Required parameter requestParameters.billingAccountId was null or undefined when calling deleteBillingAccount.');
147
- }
148
- queryParameters = {};
149
- headerParameters = {};
150
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
151
- token = this.configuration.accessToken;
152
- return [4 /*yield*/, token("accessToken", [])];
153
- case 1:
154
- tokenString = _a.sent();
155
- if (tokenString) {
156
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
157
- }
158
- _a.label = 2;
159
- case 2: return [4 /*yield*/, this.request({
160
- path: "/billing/{billingAccountId}".replace("{".concat("billingAccountId", "}"), encodeURIComponent(String(requestParameters.billingAccountId))),
161
- method: 'DELETE',
162
- headers: headerParameters,
163
- query: queryParameters,
164
- }, initOverrides)];
165
- case 3:
166
- response = _a.sent();
167
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
168
- }
169
- });
170
- });
171
- };
172
- /**
173
- * Deletes a billing account
174
- * Delete billing account
175
- */
176
- BillingApi.prototype.deleteBillingAccount = function (requestParameters, initOverrides) {
177
- return __awaiter(this, void 0, void 0, function () {
178
- return __generator(this, function (_a) {
179
- switch (_a.label) {
180
- case 0: return [4 /*yield*/, this.deleteBillingAccountRaw(requestParameters, initOverrides)];
181
- case 1:
182
- _a.sent();
183
- return [2 /*return*/];
184
- }
185
- });
186
- });
187
- };
188
- /**
189
- * Gets a list of billing accounts the current user has access to
190
- * List billing accounts
191
- */
192
- BillingApi.prototype.getBillingAccountsRaw = function (requestParameters, initOverrides) {
193
- return __awaiter(this, void 0, void 0, function () {
194
- var queryParameters, headerParameters, token, tokenString, response;
195
- return __generator(this, function (_a) {
196
- switch (_a.label) {
197
- case 0:
198
- queryParameters = {};
199
- if (requestParameters.includeArchived !== undefined) {
200
- queryParameters['includeArchived'] = requestParameters.includeArchived;
201
- }
202
- headerParameters = {};
203
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
204
- token = this.configuration.accessToken;
205
- return [4 /*yield*/, token("accessToken", [])];
206
- case 1:
207
- tokenString = _a.sent();
208
- if (tokenString) {
209
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
210
- }
211
- _a.label = 2;
212
- case 2: return [4 /*yield*/, this.request({
213
- path: "/billing",
214
- method: 'GET',
215
- headers: headerParameters,
216
- query: queryParameters,
217
- }, initOverrides)];
218
- case 3:
219
- response = _a.sent();
220
- return [2 /*return*/, new runtime.JSONApiResponse(response, function (jsonValue) { return jsonValue.map(index_1.BillingAccountFromJSON); })];
221
- }
222
- });
223
- });
224
- };
225
- /**
226
- * Gets a list of billing accounts the current user has access to
227
- * List billing accounts
228
- */
229
- BillingApi.prototype.getBillingAccounts = function (requestParameters, initOverrides) {
230
- if (requestParameters === void 0) { requestParameters = {}; }
231
- return __awaiter(this, void 0, void 0, function () {
232
- var response;
233
- return __generator(this, function (_a) {
234
- switch (_a.label) {
235
- case 0: return [4 /*yield*/, this.getBillingAccountsRaw(requestParameters, initOverrides)];
236
- case 1:
237
- response = _a.sent();
238
- return [4 /*yield*/, response.value()];
239
- case 2: return [2 /*return*/, _a.sent()];
240
- }
241
- });
242
- });
243
- };
244
- /**
245
- * Updates a billing account
246
- * Update billing account
247
- */
248
- BillingApi.prototype.updateBillingAccountRaw = function (requestParameters, initOverrides) {
249
- return __awaiter(this, void 0, void 0, function () {
250
- var queryParameters, headerParameters, token, tokenString, response;
251
- return __generator(this, function (_a) {
252
- switch (_a.label) {
253
- case 0:
254
- if (requestParameters.billingAccountId === null || requestParameters.billingAccountId === undefined) {
255
- throw new runtime.RequiredError('billingAccountId', 'Required parameter requestParameters.billingAccountId was null or undefined when calling updateBillingAccount.');
256
- }
257
- if (requestParameters.billingAccountRequest === null || requestParameters.billingAccountRequest === undefined) {
258
- throw new runtime.RequiredError('billingAccountRequest', 'Required parameter requestParameters.billingAccountRequest was null or undefined when calling updateBillingAccount.');
259
- }
260
- queryParameters = {};
261
- headerParameters = {};
262
- headerParameters['Content-Type'] = 'application/json';
263
- if (!(this.configuration && this.configuration.accessToken)) return [3 /*break*/, 2];
264
- token = this.configuration.accessToken;
265
- return [4 /*yield*/, token("accessToken", [])];
266
- case 1:
267
- tokenString = _a.sent();
268
- if (tokenString) {
269
- headerParameters["Authorization"] = "Bearer ".concat(tokenString);
270
- }
271
- _a.label = 2;
272
- case 2: return [4 /*yield*/, this.request({
273
- path: "/billing/{billingAccountId}".replace("{".concat("billingAccountId", "}"), encodeURIComponent(String(requestParameters.billingAccountId))),
274
- method: 'PUT',
275
- headers: headerParameters,
276
- query: queryParameters,
277
- body: (0, index_1.BillingAccountRequestToJSON)(requestParameters.billingAccountRequest),
278
- }, initOverrides)];
279
- case 3:
280
- response = _a.sent();
281
- return [2 /*return*/, new runtime.VoidApiResponse(response)];
282
- }
283
- });
284
- });
285
- };
286
- /**
287
- * Updates a billing account
288
- * Update billing account
289
- */
290
- BillingApi.prototype.updateBillingAccount = function (requestParameters, initOverrides) {
291
- return __awaiter(this, void 0, void 0, function () {
292
- return __generator(this, function (_a) {
293
- switch (_a.label) {
294
- case 0: return [4 /*yield*/, this.updateBillingAccountRaw(requestParameters, initOverrides)];
295
- case 1:
296
- _a.sent();
297
- return [2 /*return*/];
298
- }
299
- });
300
- });
301
- };
302
- return BillingApi;
303
- }(runtime.BaseAPI));
304
- exports.BillingApi = BillingApi;
@@ -1,124 +0,0 @@
1
- /**
2
- * Cirro Data
3
- * Cirro Data Platform service API
4
- *
5
- * The version of the OpenAPI document: latest
6
- * Contact: support@cirro.bio
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 * as runtime from '../runtime';
13
- import type { AgentDetail, AgentInput, ComputeEnvironmentConfiguration, ComputeEnvironmentConfigurationInput, CreateResponse } from '../models/index';
14
- export interface CreateAgentRequest {
15
- agentInput: AgentInput;
16
- }
17
- export interface CreateComputeEnvironmentRequest {
18
- projectId: string;
19
- computeEnvironmentConfigurationInput: ComputeEnvironmentConfigurationInput;
20
- }
21
- export interface DeleteAgentRequest {
22
- agentId: string;
23
- }
24
- export interface DeleteComputeEnvironmentRequest {
25
- projectId: string;
26
- computeEnvironmentId: string;
27
- }
28
- export interface GetComputeEnvironmentsRequest {
29
- projectId: string;
30
- }
31
- export interface UpdateAgentRequest {
32
- agentId: string;
33
- agentInput: AgentInput;
34
- }
35
- export interface UpdateComputeEnvironmentRequest {
36
- projectId: string;
37
- computeEnvironmentId: string;
38
- computeEnvironmentConfigurationInput: ComputeEnvironmentConfigurationInput;
39
- }
40
- /**
41
- *
42
- */
43
- export declare class ComputeEnvironmentApi extends runtime.BaseAPI {
44
- /**
45
- * Create a new agent
46
- * Create agent
47
- */
48
- createAgentRaw(requestParameters: CreateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>>;
49
- /**
50
- * Create a new agent
51
- * Create agent
52
- */
53
- createAgent(requestParameters: CreateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse>;
54
- /**
55
- * Create a new compute environment for a project
56
- * Create compute environment
57
- */
58
- createComputeEnvironmentRaw(requestParameters: CreateComputeEnvironmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CreateResponse>>;
59
- /**
60
- * Create a new compute environment for a project
61
- * Create compute environment
62
- */
63
- createComputeEnvironment(requestParameters: CreateComputeEnvironmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CreateResponse>;
64
- /**
65
- * Delete an agent
66
- * Delete agent
67
- */
68
- deleteAgentRaw(requestParameters: DeleteAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
69
- /**
70
- * Delete an agent
71
- * Delete agent
72
- */
73
- deleteAgent(requestParameters: DeleteAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
74
- /**
75
- * Delete a compute environment for a project
76
- * Delete compute environment
77
- */
78
- deleteComputeEnvironmentRaw(requestParameters: DeleteComputeEnvironmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
79
- /**
80
- * Delete a compute environment for a project
81
- * Delete compute environment
82
- */
83
- deleteComputeEnvironment(requestParameters: DeleteComputeEnvironmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
84
- /**
85
- * Get a list of agents
86
- * Get agents
87
- */
88
- getAgentsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AgentDetail>>>;
89
- /**
90
- * Get a list of agents
91
- * Get agents
92
- */
93
- getAgents(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AgentDetail>>;
94
- /**
95
- * Get a list of compute environments for a project
96
- * Get compute environments
97
- */
98
- getComputeEnvironmentsRaw(requestParameters: GetComputeEnvironmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<ComputeEnvironmentConfiguration>>>;
99
- /**
100
- * Get a list of compute environments for a project
101
- * Get compute environments
102
- */
103
- getComputeEnvironments(requestParameters: GetComputeEnvironmentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<ComputeEnvironmentConfiguration>>;
104
- /**
105
- * Update an agent
106
- * Update agent
107
- */
108
- updateAgentRaw(requestParameters: UpdateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
109
- /**
110
- * Update an agent
111
- * Update agent
112
- */
113
- updateAgent(requestParameters: UpdateAgentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
114
- /**
115
- * Update a compute environment for a project
116
- * Update compute environment
117
- */
118
- updateComputeEnvironmentRaw(requestParameters: UpdateComputeEnvironmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
119
- /**
120
- * Update a compute environment for a project
121
- * Update compute environment
122
- */
123
- updateComputeEnvironment(requestParameters: UpdateComputeEnvironmentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
124
- }