@zlayer/api-client 0.10.86 → 0.11.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 (345) hide show
  1. package/.openapi-generator/FILES +58 -1
  2. package/README.md +48 -6
  3. package/dist/apis/AuthenticationApi.d.ts +43 -1
  4. package/dist/apis/AuthenticationApi.js +112 -0
  5. package/dist/apis/ContainerNetworksApi.d.ts +123 -0
  6. package/dist/apis/ContainerNetworksApi.js +331 -0
  7. package/dist/apis/ContainersApi.d.ts +7 -4
  8. package/dist/apis/ContainersApi.js +13 -4
  9. package/dist/apis/EventsApi.d.ts +35 -0
  10. package/dist/apis/EventsApi.js +81 -0
  11. package/dist/apis/PermissionsApi.d.ts +18 -0
  12. package/dist/apis/PermissionsApi.js +46 -0
  13. package/dist/apis/SecretsApi.d.ts +38 -1
  14. package/dist/apis/SecretsApi.js +109 -0
  15. package/dist/apis/VolumesApi.d.ts +41 -7
  16. package/dist/apis/VolumesApi.js +102 -5
  17. package/dist/apis/index.d.ts +2 -0
  18. package/dist/apis/index.js +2 -0
  19. package/dist/models/BridgeNetwork.d.ts +72 -0
  20. package/dist/models/BridgeNetwork.js +67 -0
  21. package/dist/models/BridgeNetworkAttachment.d.ts +50 -0
  22. package/dist/models/BridgeNetworkAttachment.js +56 -0
  23. package/dist/models/BridgeNetworkDetails.d.ts +79 -0
  24. package/dist/models/BridgeNetworkDetails.js +72 -0
  25. package/dist/models/BridgeNetworkDriver.d.ts +25 -0
  26. package/dist/models/BridgeNetworkDriver.js +51 -0
  27. package/dist/models/ConnectBridgeNetworkRequest.d.ts +45 -0
  28. package/dist/models/ConnectBridgeNetworkRequest.js +54 -0
  29. package/dist/models/ContainerEvent.d.ts +82 -0
  30. package/dist/models/ContainerEvent.js +67 -0
  31. package/dist/models/ContainerEventKind.d.ts +27 -0
  32. package/dist/models/ContainerEventKind.js +53 -0
  33. package/dist/models/ContainerHealthInfo.d.ts +53 -0
  34. package/dist/models/ContainerHealthInfo.js +54 -0
  35. package/dist/models/ContainerInfo.d.ts +40 -0
  36. package/dist/models/ContainerInfo.js +13 -0
  37. package/dist/models/ContainerRestartKind.d.ts +27 -0
  38. package/dist/models/ContainerRestartKind.js +53 -0
  39. package/dist/models/ContainerRestartPolicy.d.ts +53 -0
  40. package/dist/models/ContainerRestartPolicy.js +55 -0
  41. package/dist/models/ContainerWaitResponse.d.ts +30 -2
  42. package/dist/models/ContainerWaitResponse.js +6 -0
  43. package/dist/models/CreateBridgeNetworkRequest.d.ts +60 -0
  44. package/dist/models/CreateBridgeNetworkRequest.js +59 -0
  45. package/dist/models/CreateContainerRequest.d.ts +77 -0
  46. package/dist/models/CreateContainerRequest.js +23 -0
  47. package/dist/models/CreateVolumeRequest.d.ts +54 -0
  48. package/dist/models/CreateVolumeRequest.js +56 -0
  49. package/dist/models/DisconnectBridgeNetworkRequest.d.ts +38 -0
  50. package/dist/models/DisconnectBridgeNetworkRequest.js +52 -0
  51. package/dist/models/HealthCheckRequest.d.ts +94 -0
  52. package/dist/models/HealthCheckRequest.js +66 -0
  53. package/dist/models/NetworkAttachmentInfo.d.ts +49 -0
  54. package/dist/models/NetworkAttachmentInfo.js +54 -0
  55. package/dist/models/NetworkAttachmentRequest.d.ts +51 -0
  56. package/dist/models/NetworkAttachmentRequest.js +54 -0
  57. package/dist/models/OidcCallbackResponse.d.ts +47 -0
  58. package/dist/models/OidcCallbackResponse.js +59 -0
  59. package/dist/models/OidcProviderPublic.d.ts +39 -0
  60. package/dist/models/OidcProviderPublic.js +54 -0
  61. package/dist/models/PortMapping.d.ts +55 -0
  62. package/dist/models/PortMapping.js +57 -0
  63. package/dist/models/PortProtocol.d.ts +25 -0
  64. package/dist/models/PortProtocol.js +51 -0
  65. package/dist/models/PullImageRequest.d.ts +18 -0
  66. package/dist/models/PullImageRequest.js +5 -0
  67. package/dist/models/RegistryAuth.d.ts +52 -0
  68. package/dist/models/RegistryAuth.js +57 -0
  69. package/dist/models/RegistryAuthType.d.ts +25 -0
  70. package/dist/models/RegistryAuthType.js +51 -0
  71. package/dist/models/RevealAllSecretsResponse.d.ts +41 -0
  72. package/dist/models/RevealAllSecretsResponse.js +54 -0
  73. package/dist/models/RotateSecretRequest.d.ts +32 -0
  74. package/dist/models/RotateSecretRequest.js +50 -0
  75. package/dist/models/RotateSecretResponse.d.ts +46 -0
  76. package/dist/models/RotateSecretResponse.js +56 -0
  77. package/dist/models/VolumeInfo.d.ts +70 -0
  78. package/dist/models/VolumeInfo.js +64 -0
  79. package/dist/models/VolumeMount.d.ts +16 -3
  80. package/dist/models/VolumeMount.js +4 -3
  81. package/dist/models/VolumeMountType.d.ts +30 -0
  82. package/dist/models/VolumeMountType.js +56 -0
  83. package/dist/models/VolumeSummary.d.ts +7 -4
  84. package/dist/models/index.d.ts +27 -0
  85. package/dist/models/index.js +27 -0
  86. package/docs/AddMemberRequest.md +1 -1
  87. package/docs/AuditApi.md +3 -3
  88. package/docs/AuditEntry.md +1 -1
  89. package/docs/AuthenticationApi.md +212 -18
  90. package/docs/BackendGroupInfo.md +1 -1
  91. package/docs/BackendInfo.md +1 -1
  92. package/docs/BackendsResponse.md +1 -1
  93. package/docs/BootstrapRequest.md +1 -1
  94. package/docs/BridgeNetwork.md +47 -0
  95. package/docs/BridgeNetworkAttachment.md +41 -0
  96. package/docs/BridgeNetworkDetails.md +49 -0
  97. package/docs/BridgeNetworkDriver.md +33 -0
  98. package/docs/BuildApi.md +21 -21
  99. package/docs/BuildKind.md +1 -1
  100. package/docs/BuildRequest.md +1 -1
  101. package/docs/BuildRequestWithContext.md +1 -1
  102. package/docs/BuildStateEnum.md +1 -1
  103. package/docs/BuildStatus.md +1 -1
  104. package/docs/BulkImportResponse.md +1 -1
  105. package/docs/CertInfo.md +1 -1
  106. package/docs/ClusterApi.md +12 -12
  107. package/docs/ClusterJoinRequest.md +1 -1
  108. package/docs/ClusterJoinResponse.md +1 -1
  109. package/docs/ClusterNodeSummary.md +1 -1
  110. package/docs/ClusterPeer.md +1 -1
  111. package/docs/ConnectBridgeNetworkRequest.md +39 -0
  112. package/docs/ContainerEvent.md +47 -0
  113. package/docs/ContainerEventKind.md +33 -0
  114. package/docs/ContainerExecRequest.md +1 -1
  115. package/docs/ContainerExecResponse.md +1 -1
  116. package/docs/ContainerHealthInfo.md +39 -0
  117. package/docs/ContainerInfo.md +11 -1
  118. package/docs/ContainerNetworksApi.md +466 -0
  119. package/docs/ContainerResourceLimits.md +1 -1
  120. package/docs/ContainerRestartKind.md +33 -0
  121. package/docs/ContainerRestartPolicy.md +39 -0
  122. package/docs/ContainerStatsResponse.md +1 -1
  123. package/docs/ContainerWaitResponse.md +8 -2
  124. package/docs/ContainersApi.md +51 -42
  125. package/docs/CreateBridgeNetworkRequest.md +43 -0
  126. package/docs/CreateContainerRequest.md +19 -1
  127. package/docs/CreateDeploymentRequest.md +1 -1
  128. package/docs/CreateEnvironmentRequest.md +1 -1
  129. package/docs/CreateGitCredentialRequest.md +1 -1
  130. package/docs/CreateGroupRequest.md +1 -1
  131. package/docs/CreateNodeTunnelRequest.md +1 -1
  132. package/docs/CreateNodeTunnelResponse.md +1 -1
  133. package/docs/CreateNotifierRequest.md +1 -1
  134. package/docs/CreateProjectRequest.md +1 -1
  135. package/docs/CreateRegistryCredentialRequest.md +1 -1
  136. package/docs/CreateSecretRequest.md +1 -1
  137. package/docs/CreateSyncRequest.md +1 -1
  138. package/docs/CreateTaskRequest.md +1 -1
  139. package/docs/CreateTunnelRequest.md +1 -1
  140. package/docs/CreateTunnelResponse.md +1 -1
  141. package/docs/CreateUserRequest.md +1 -1
  142. package/docs/CreateVariableRequest.md +1 -1
  143. package/docs/CreateVolumeRequest.md +41 -0
  144. package/docs/CreateWorkflowRequest.md +1 -1
  145. package/docs/CredentialsApi.md +18 -18
  146. package/docs/CronApi.md +15 -15
  147. package/docs/CronJobResponse.md +1 -1
  148. package/docs/CronStatusResponse.md +1 -1
  149. package/docs/CsrfResponse.md +1 -1
  150. package/docs/DeploymentDetails.md +1 -1
  151. package/docs/DeploymentSummary.md +1 -1
  152. package/docs/DeploymentsApi.md +12 -12
  153. package/docs/DisconnectBridgeNetworkRequest.md +37 -0
  154. package/docs/DnsStatusResponse.md +1 -1
  155. package/docs/EnvironmentsApi.md +15 -15
  156. package/docs/EventsApi.md +85 -0
  157. package/docs/ForceLeaderRequest.md +1 -1
  158. package/docs/ForceLeaderResponse.md +1 -1
  159. package/docs/GitCredentialKindSchema.md +1 -1
  160. package/docs/GitCredentialResponse.md +1 -1
  161. package/docs/GpuInfoSummary.md +1 -1
  162. package/docs/GpuUtilizationReport.md +1 -1
  163. package/docs/GrantPermissionRequest.md +1 -1
  164. package/docs/GroupMembersResponse.md +1 -1
  165. package/docs/GroupsApi.md +21 -21
  166. package/docs/HealthApi.md +6 -6
  167. package/docs/HealthCheckRequest.md +51 -0
  168. package/docs/HealthResponse.md +1 -1
  169. package/docs/HeartbeatRequest.md +1 -1
  170. package/docs/ImageInfoDto.md +1 -1
  171. package/docs/ImagesApi.md +15 -15
  172. package/docs/InternalApi.md +6 -6
  173. package/docs/InternalScaleRequest.md +1 -1
  174. package/docs/InternalScaleResponse.md +1 -1
  175. package/docs/IpAllocationResponse.md +1 -1
  176. package/docs/JobExecutionResponse.md +1 -1
  177. package/docs/JobsApi.md +12 -12
  178. package/docs/JoinTokenResponse.md +1 -1
  179. package/docs/KillContainerRequest.md +1 -1
  180. package/docs/LinkDeploymentRequest.md +1 -1
  181. package/docs/LoginRequest.md +1 -1
  182. package/docs/LoginResponse.md +1 -1
  183. package/docs/NetworkAttachmentInfo.md +39 -0
  184. package/docs/NetworkAttachmentRequest.md +39 -0
  185. package/docs/NetworkSummary.md +1 -1
  186. package/docs/NetworksApi.md +15 -15
  187. package/docs/NodeDetails.md +1 -1
  188. package/docs/NodeResourceInfo.md +1 -1
  189. package/docs/NodeSummary.md +1 -1
  190. package/docs/NodesApi.md +12 -12
  191. package/docs/NotifierConfig.md +1 -1
  192. package/docs/NotifierConfigOneOf.md +1 -1
  193. package/docs/NotifierConfigOneOf1.md +1 -1
  194. package/docs/NotifierConfigOneOf2.md +1 -1
  195. package/docs/NotifierConfigOneOf3.md +1 -1
  196. package/docs/NotifierKind.md +1 -1
  197. package/docs/NotifiersApi.md +18 -18
  198. package/docs/OidcCallbackResponse.md +39 -0
  199. package/docs/OidcProviderPublic.md +37 -0
  200. package/docs/OverlayApi.md +12 -12
  201. package/docs/OverlayStatusResponse.md +1 -1
  202. package/docs/PeerInfo.md +1 -1
  203. package/docs/PeerListResponse.md +1 -1
  204. package/docs/PermissionLevel.md +1 -1
  205. package/docs/PermissionsApi.md +80 -9
  206. package/docs/PortMapping.md +41 -0
  207. package/docs/PortProtocol.md +33 -0
  208. package/docs/ProjectPullResponse.md +1 -1
  209. package/docs/ProjectsApi.md +27 -27
  210. package/docs/ProxyApi.md +12 -12
  211. package/docs/PruneResultDto.md +1 -1
  212. package/docs/PullImageRequest.md +5 -1
  213. package/docs/PullImageResponse.md +1 -1
  214. package/docs/RegisteredServiceInfo.md +1 -1
  215. package/docs/RegistryAuth.md +39 -0
  216. package/docs/RegistryAuthType.md +33 -0
  217. package/docs/RegistryAuthTypeSchema.md +1 -1
  218. package/docs/RegistryCredentialResponse.md +1 -1
  219. package/docs/ReplicationInfo.md +1 -1
  220. package/docs/RestartContainerRequest.md +1 -1
  221. package/docs/RevealAllSecretsResponse.md +37 -0
  222. package/docs/RotateSecretRequest.md +35 -0
  223. package/docs/RotateSecretResponse.md +39 -0
  224. package/docs/RouteInfo.md +1 -1
  225. package/docs/RoutesResponse.md +1 -1
  226. package/docs/ScaleRequest.md +1 -1
  227. package/docs/SecretMetadataResponse.md +1 -1
  228. package/docs/SecretsApi.md +175 -15
  229. package/docs/ServiceDetails.md +1 -1
  230. package/docs/ServiceEndpoint.md +1 -1
  231. package/docs/ServiceHealthInfo.md +1 -1
  232. package/docs/ServiceMetrics.md +1 -1
  233. package/docs/ServiceSummary.md +1 -1
  234. package/docs/ServicesApi.md +12 -12
  235. package/docs/SetPasswordRequest.md +1 -1
  236. package/docs/StepResult.md +1 -1
  237. package/docs/StopContainerRequest.md +1 -1
  238. package/docs/StorageApi.md +3 -3
  239. package/docs/StorageStatusResponse.md +1 -1
  240. package/docs/StoredEnvironment.md +1 -1
  241. package/docs/StoredNotifier.md +1 -1
  242. package/docs/StoredPermission.md +1 -1
  243. package/docs/StoredProject.md +1 -1
  244. package/docs/StoredSync.md +1 -1
  245. package/docs/StoredTask.md +1 -1
  246. package/docs/StoredUserGroup.md +1 -1
  247. package/docs/StoredVariable.md +1 -1
  248. package/docs/StoredWorkflow.md +1 -1
  249. package/docs/StreamBackendInfo.md +1 -1
  250. package/docs/StreamInfo.md +1 -1
  251. package/docs/StreamsResponse.md +1 -1
  252. package/docs/SubjectKind.md +1 -1
  253. package/docs/SuccessResponse.md +1 -1
  254. package/docs/SyncApplyResponse.md +1 -1
  255. package/docs/SyncDiffResponse.md +1 -1
  256. package/docs/SyncResourceResponse.md +1 -1
  257. package/docs/SyncResourceResult.md +1 -1
  258. package/docs/SyncsApi.md +15 -15
  259. package/docs/TagImageRequest.md +1 -1
  260. package/docs/TaskKind.md +1 -1
  261. package/docs/TaskRun.md +1 -1
  262. package/docs/TasksApi.md +18 -18
  263. package/docs/TemplateInfo.md +1 -1
  264. package/docs/TestNotifierResponse.md +1 -1
  265. package/docs/TlsResponse.md +1 -1
  266. package/docs/TokenRequest.md +1 -1
  267. package/docs/TokenResponse.md +1 -1
  268. package/docs/TriggerBuildResponse.md +1 -1
  269. package/docs/TriggerCronResponse.md +1 -1
  270. package/docs/TriggerJobResponse.md +1 -1
  271. package/docs/TunnelStatus.md +1 -1
  272. package/docs/TunnelSummary.md +1 -1
  273. package/docs/TunnelsApi.md +18 -18
  274. package/docs/UpdateEnvironmentRequest.md +1 -1
  275. package/docs/UpdateGroupRequest.md +1 -1
  276. package/docs/UpdateLabelsRequest.md +1 -1
  277. package/docs/UpdateLabelsResponse.md +1 -1
  278. package/docs/UpdateNotifierRequest.md +1 -1
  279. package/docs/UpdateProjectRequest.md +1 -1
  280. package/docs/UpdateUserRequest.md +1 -1
  281. package/docs/UpdateVariableRequest.md +1 -1
  282. package/docs/UserRole.md +1 -1
  283. package/docs/UserView.md +1 -1
  284. package/docs/UsersApi.md +18 -18
  285. package/docs/VariablesApi.md +15 -15
  286. package/docs/VolumeInfo.md +45 -0
  287. package/docs/VolumeMount.md +4 -2
  288. package/docs/VolumeMountType.md +33 -0
  289. package/docs/VolumeSummary.md +2 -2
  290. package/docs/VolumesApi.md +163 -13
  291. package/docs/WebhookInfoResponse.md +1 -1
  292. package/docs/WebhookResponse.md +1 -1
  293. package/docs/WebhooksApi.md +9 -9
  294. package/docs/WorkflowAction.md +1 -1
  295. package/docs/WorkflowActionOneOf.md +1 -1
  296. package/docs/WorkflowActionOneOf1.md +1 -1
  297. package/docs/WorkflowActionOneOf2.md +1 -1
  298. package/docs/WorkflowActionOneOf3.md +1 -1
  299. package/docs/WorkflowRun.md +1 -1
  300. package/docs/WorkflowRunStatus.md +1 -1
  301. package/docs/WorkflowStep.md +1 -1
  302. package/docs/WorkflowsApi.md +18 -18
  303. package/package.json +1 -1
  304. package/src/apis/AuthenticationApi.ts +140 -0
  305. package/src/apis/ContainerNetworksApi.ts +418 -0
  306. package/src/apis/ContainersApi.ts +19 -4
  307. package/src/apis/EventsApi.ts +82 -0
  308. package/src/apis/PermissionsApi.ts +59 -0
  309. package/src/apis/SecretsApi.ts +151 -0
  310. package/src/apis/VolumesApi.ts +133 -10
  311. package/src/apis/index.ts +2 -0
  312. package/src/models/BridgeNetwork.ts +127 -0
  313. package/src/models/BridgeNetworkAttachment.ts +90 -0
  314. package/src/models/BridgeNetworkDetails.ts +143 -0
  315. package/src/models/BridgeNetworkDriver.ts +53 -0
  316. package/src/models/ConnectBridgeNetworkRequest.ts +83 -0
  317. package/src/models/ContainerEvent.ts +137 -0
  318. package/src/models/ContainerEventKind.ts +55 -0
  319. package/src/models/ContainerHealthInfo.ts +91 -0
  320. package/src/models/ContainerInfo.ts +69 -0
  321. package/src/models/ContainerRestartKind.ts +55 -0
  322. package/src/models/ContainerRestartPolicy.ts +100 -0
  323. package/src/models/ContainerWaitResponse.ts +36 -2
  324. package/src/models/CreateBridgeNetworkRequest.ts +109 -0
  325. package/src/models/CreateContainerRequest.ts +125 -0
  326. package/src/models/CreateVolumeRequest.ts +92 -0
  327. package/src/models/DisconnectBridgeNetworkRequest.ts +74 -0
  328. package/src/models/HealthCheckRequest.ts +144 -0
  329. package/src/models/NetworkAttachmentInfo.ts +87 -0
  330. package/src/models/NetworkAttachmentRequest.ts +89 -0
  331. package/src/models/OidcCallbackResponse.ts +94 -0
  332. package/src/models/OidcProviderPublic.ts +76 -0
  333. package/src/models/PortMapping.ts +104 -0
  334. package/src/models/PortProtocol.ts +53 -0
  335. package/src/models/PullImageRequest.ts +29 -0
  336. package/src/models/RegistryAuth.ts +100 -0
  337. package/src/models/RegistryAuthType.ts +53 -0
  338. package/src/models/RevealAllSecretsResponse.ts +76 -0
  339. package/src/models/RotateSecretRequest.ts +66 -0
  340. package/src/models/RotateSecretResponse.ts +85 -0
  341. package/src/models/VolumeInfo.ts +114 -0
  342. package/src/models/VolumeMount.ts +28 -5
  343. package/src/models/VolumeMountType.ts +58 -0
  344. package/src/models/VolumeSummary.ts +7 -4
  345. package/src/models/index.ts +27 -0
@@ -0,0 +1,67 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ZLayer API
6
+ * Container orchestration API for ZLayer
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfContainerEvent = instanceOfContainerEvent;
17
+ exports.ContainerEventFromJSON = ContainerEventFromJSON;
18
+ exports.ContainerEventFromJSONTyped = ContainerEventFromJSONTyped;
19
+ exports.ContainerEventToJSON = ContainerEventToJSON;
20
+ exports.ContainerEventToJSONTyped = ContainerEventToJSONTyped;
21
+ const ContainerEventKind_1 = require("./ContainerEventKind");
22
+ /**
23
+ * Check if a given object implements the ContainerEvent interface.
24
+ */
25
+ function instanceOfContainerEvent(value) {
26
+ if (!('at' in value) || value['at'] === undefined)
27
+ return false;
28
+ if (!('id' in value) || value['id'] === undefined)
29
+ return false;
30
+ if (!('kind' in value) || value['kind'] === undefined)
31
+ return false;
32
+ return true;
33
+ }
34
+ function ContainerEventFromJSON(json) {
35
+ return ContainerEventFromJSONTyped(json, false);
36
+ }
37
+ function ContainerEventFromJSONTyped(json, ignoreDiscriminator) {
38
+ if (json == null) {
39
+ return json;
40
+ }
41
+ return {
42
+ 'at': (new Date(json['at'])),
43
+ 'exitCode': json['exit_code'] == null ? undefined : json['exit_code'],
44
+ 'id': json['id'],
45
+ 'kind': (0, ContainerEventKind_1.ContainerEventKindFromJSON)(json['kind']),
46
+ 'labels': json['labels'] == null ? undefined : json['labels'],
47
+ 'reason': json['reason'] == null ? undefined : json['reason'],
48
+ 'status': json['status'] == null ? undefined : json['status'],
49
+ };
50
+ }
51
+ function ContainerEventToJSON(json) {
52
+ return ContainerEventToJSONTyped(json, false);
53
+ }
54
+ function ContainerEventToJSONTyped(value, ignoreDiscriminator = false) {
55
+ if (value == null) {
56
+ return value;
57
+ }
58
+ return {
59
+ 'at': value['at'].toISOString(),
60
+ 'exit_code': value['exitCode'],
61
+ 'id': value['id'],
62
+ 'kind': (0, ContainerEventKind_1.ContainerEventKindToJSON)(value['kind']),
63
+ 'labels': value['labels'],
64
+ 'reason': value['reason'],
65
+ 'status': value['status'],
66
+ };
67
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * ZLayer API
3
+ * Container orchestration API for ZLayer
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
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
+ * Kind of container lifecycle event.
14
+ * @export
15
+ */
16
+ export declare const ContainerEventKind: {
17
+ readonly Start: "start";
18
+ readonly Die: "die";
19
+ readonly Oom: "oom";
20
+ readonly Health: "health";
21
+ };
22
+ export type ContainerEventKind = typeof ContainerEventKind[keyof typeof ContainerEventKind];
23
+ export declare function instanceOfContainerEventKind(value: any): boolean;
24
+ export declare function ContainerEventKindFromJSON(json: any): ContainerEventKind;
25
+ export declare function ContainerEventKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContainerEventKind;
26
+ export declare function ContainerEventKindToJSON(value?: ContainerEventKind | null): any;
27
+ export declare function ContainerEventKindToJSONTyped(value: any, ignoreDiscriminator: boolean): ContainerEventKind;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ZLayer API
6
+ * Container orchestration API for ZLayer
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ContainerEventKind = void 0;
17
+ exports.instanceOfContainerEventKind = instanceOfContainerEventKind;
18
+ exports.ContainerEventKindFromJSON = ContainerEventKindFromJSON;
19
+ exports.ContainerEventKindFromJSONTyped = ContainerEventKindFromJSONTyped;
20
+ exports.ContainerEventKindToJSON = ContainerEventKindToJSON;
21
+ exports.ContainerEventKindToJSONTyped = ContainerEventKindToJSONTyped;
22
+ /**
23
+ * Kind of container lifecycle event.
24
+ * @export
25
+ */
26
+ exports.ContainerEventKind = {
27
+ Start: 'start',
28
+ Die: 'die',
29
+ Oom: 'oom',
30
+ Health: 'health'
31
+ };
32
+ function instanceOfContainerEventKind(value) {
33
+ for (const key in exports.ContainerEventKind) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.ContainerEventKind, key)) {
35
+ if (exports.ContainerEventKind[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function ContainerEventKindFromJSON(json) {
43
+ return ContainerEventKindFromJSONTyped(json, false);
44
+ }
45
+ function ContainerEventKindFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function ContainerEventKindToJSON(value) {
49
+ return value;
50
+ }
51
+ function ContainerEventKindToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * ZLayer API
3
+ * Container orchestration API for ZLayer
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
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
+ * Runtime-native health snapshot on [`ContainerInfo::health`].
14
+ *
15
+ * Sourced from bollard's `ContainerState.health` for Docker-backed
16
+ * containers. The internal `HealthMonitor` in
17
+ * `crates/zlayer-agent/src/health.rs` drives service-level health events
18
+ * against user-configured health specs; for standalone containers the API
19
+ * reports the runtime-native status instead so images with a baked-in
20
+ * `HEALTHCHECK` still surface correctly.
21
+ * @export
22
+ * @interface ContainerHealthInfo
23
+ */
24
+ export interface ContainerHealthInfo {
25
+ /**
26
+ * Consecutive failing probe count, when the runtime tracks it.
27
+ * @type {number}
28
+ * @memberof ContainerHealthInfo
29
+ */
30
+ failingStreak?: number | null;
31
+ /**
32
+ * Output from the most recent failing probe, when available.
33
+ * @type {string}
34
+ * @memberof ContainerHealthInfo
35
+ */
36
+ lastOutput?: string | null;
37
+ /**
38
+ * One of `"none"`, `"starting"`, `"healthy"`, `"unhealthy"` (Docker
39
+ * `HealthStatusEnum`). Empty / missing upstream values normalise to
40
+ * `"none"`.
41
+ * @type {string}
42
+ * @memberof ContainerHealthInfo
43
+ */
44
+ status: string;
45
+ }
46
+ /**
47
+ * Check if a given object implements the ContainerHealthInfo interface.
48
+ */
49
+ export declare function instanceOfContainerHealthInfo(value: object): value is ContainerHealthInfo;
50
+ export declare function ContainerHealthInfoFromJSON(json: any): ContainerHealthInfo;
51
+ export declare function ContainerHealthInfoFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContainerHealthInfo;
52
+ export declare function ContainerHealthInfoToJSON(json: any): ContainerHealthInfo;
53
+ export declare function ContainerHealthInfoToJSONTyped(value?: ContainerHealthInfo | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,54 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ZLayer API
6
+ * Container orchestration API for ZLayer
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfContainerHealthInfo = instanceOfContainerHealthInfo;
17
+ exports.ContainerHealthInfoFromJSON = ContainerHealthInfoFromJSON;
18
+ exports.ContainerHealthInfoFromJSONTyped = ContainerHealthInfoFromJSONTyped;
19
+ exports.ContainerHealthInfoToJSON = ContainerHealthInfoToJSON;
20
+ exports.ContainerHealthInfoToJSONTyped = ContainerHealthInfoToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the ContainerHealthInfo interface.
23
+ */
24
+ function instanceOfContainerHealthInfo(value) {
25
+ if (!('status' in value) || value['status'] === undefined)
26
+ return false;
27
+ return true;
28
+ }
29
+ function ContainerHealthInfoFromJSON(json) {
30
+ return ContainerHealthInfoFromJSONTyped(json, false);
31
+ }
32
+ function ContainerHealthInfoFromJSONTyped(json, ignoreDiscriminator) {
33
+ if (json == null) {
34
+ return json;
35
+ }
36
+ return {
37
+ 'failingStreak': json['failing_streak'] == null ? undefined : json['failing_streak'],
38
+ 'lastOutput': json['last_output'] == null ? undefined : json['last_output'],
39
+ 'status': json['status'],
40
+ };
41
+ }
42
+ function ContainerHealthInfoToJSON(json) {
43
+ return ContainerHealthInfoToJSONTyped(json, false);
44
+ }
45
+ function ContainerHealthInfoToJSONTyped(value, ignoreDiscriminator = false) {
46
+ if (value == null) {
47
+ return value;
48
+ }
49
+ return {
50
+ 'failing_streak': value['failingStreak'],
51
+ 'last_output': value['lastOutput'],
52
+ 'status': value['status'],
53
+ };
54
+ }
@@ -9,6 +9,9 @@
9
9
  * https://openapi-generator.tech
10
10
  * Do not edit the class manually.
11
11
  */
12
+ import type { ContainerHealthInfo } from './ContainerHealthInfo';
13
+ import type { PortMapping } from './PortMapping';
14
+ import type { NetworkAttachmentInfo } from './NetworkAttachmentInfo';
12
15
  /**
13
16
  * Container information returned by the API
14
17
  * @export
@@ -21,6 +24,21 @@ export interface ContainerInfo {
21
24
  * @memberof ContainerInfo
22
25
  */
23
26
  createdAt: string;
27
+ /**
28
+ * Most-recent exit code. `None` for containers still running and for
29
+ * containers that have never exited.
30
+ * @type {number}
31
+ * @memberof ContainerInfo
32
+ */
33
+ exitCode?: number | null;
34
+ /**
35
+ * Runtime-native health status, when the container image declares a
36
+ * `HEALTHCHECK` (or equivalent). `None` when the runtime doesn't track
37
+ * health for this container.
38
+ * @type {ContainerHealthInfo}
39
+ * @memberof ContainerInfo
40
+ */
41
+ health?: ContainerHealthInfo | null;
24
42
  /**
25
43
  * Container identifier
26
44
  * @type {string}
@@ -33,6 +51,13 @@ export interface ContainerInfo {
33
51
  * @memberof ContainerInfo
34
52
  */
35
53
  image: string;
54
+ /**
55
+ * Primary IPv4 address (first non-empty IP across attached networks).
56
+ * Docker's `bridge` network is preferred when present.
57
+ * @type {string}
58
+ * @memberof ContainerInfo
59
+ */
60
+ ipv4?: string | null;
36
61
  /**
37
62
  * Labels
38
63
  * @type {{ [key: string]: string; }}
@@ -47,12 +72,27 @@ export interface ContainerInfo {
47
72
  * @memberof ContainerInfo
48
73
  */
49
74
  name?: string | null;
75
+ /**
76
+ * Networks this container is attached to, with per-network aliases
77
+ * and IPv4. Empty when the runtime doesn't surface network detail.
78
+ * @type {Array<NetworkAttachmentInfo>}
79
+ * @memberof ContainerInfo
80
+ */
81
+ networks?: Array<NetworkAttachmentInfo>;
50
82
  /**
51
83
  * Process ID (if running)
52
84
  * @type {number}
53
85
  * @memberof ContainerInfo
54
86
  */
55
87
  pid?: number | null;
88
+ /**
89
+ * Published port mappings (container → host). Populated from the
90
+ * runtime's inspect response; empty when the runtime doesn't expose
91
+ * port-level detail or the container has no published ports.
92
+ * @type {Array<PortMapping>}
93
+ * @memberof ContainerInfo
94
+ */
95
+ ports?: Array<PortMapping>;
56
96
  /**
57
97
  * Container state (pending, running, exited, failed)
58
98
  * @type {string}
@@ -18,6 +18,9 @@ exports.ContainerInfoFromJSON = ContainerInfoFromJSON;
18
18
  exports.ContainerInfoFromJSONTyped = ContainerInfoFromJSONTyped;
19
19
  exports.ContainerInfoToJSON = ContainerInfoToJSON;
20
20
  exports.ContainerInfoToJSONTyped = ContainerInfoToJSONTyped;
21
+ const ContainerHealthInfo_1 = require("./ContainerHealthInfo");
22
+ const PortMapping_1 = require("./PortMapping");
23
+ const NetworkAttachmentInfo_1 = require("./NetworkAttachmentInfo");
21
24
  /**
22
25
  * Check if a given object implements the ContainerInfo interface.
23
26
  */
@@ -43,11 +46,16 @@ function ContainerInfoFromJSONTyped(json, ignoreDiscriminator) {
43
46
  }
44
47
  return {
45
48
  'createdAt': json['created_at'],
49
+ 'exitCode': json['exit_code'] == null ? undefined : json['exit_code'],
50
+ 'health': json['health'] == null ? undefined : (0, ContainerHealthInfo_1.ContainerHealthInfoFromJSON)(json['health']),
46
51
  'id': json['id'],
47
52
  'image': json['image'],
53
+ 'ipv4': json['ipv4'] == null ? undefined : json['ipv4'],
48
54
  'labels': json['labels'],
49
55
  'name': json['name'] == null ? undefined : json['name'],
56
+ 'networks': json['networks'] == null ? undefined : (json['networks'].map(NetworkAttachmentInfo_1.NetworkAttachmentInfoFromJSON)),
50
57
  'pid': json['pid'] == null ? undefined : json['pid'],
58
+ 'ports': json['ports'] == null ? undefined : (json['ports'].map(PortMapping_1.PortMappingFromJSON)),
51
59
  'state': json['state'],
52
60
  };
53
61
  }
@@ -60,11 +68,16 @@ function ContainerInfoToJSONTyped(value, ignoreDiscriminator = false) {
60
68
  }
61
69
  return {
62
70
  'created_at': value['createdAt'],
71
+ 'exit_code': value['exitCode'],
72
+ 'health': (0, ContainerHealthInfo_1.ContainerHealthInfoToJSON)(value['health']),
63
73
  'id': value['id'],
64
74
  'image': value['image'],
75
+ 'ipv4': value['ipv4'],
65
76
  'labels': value['labels'],
66
77
  'name': value['name'],
78
+ 'networks': value['networks'] == null ? undefined : (value['networks'].map(NetworkAttachmentInfo_1.NetworkAttachmentInfoToJSON)),
67
79
  'pid': value['pid'],
80
+ 'ports': value['ports'] == null ? undefined : (value['ports'].map(PortMapping_1.PortMappingToJSON)),
68
81
  'state': value['state'],
69
82
  };
70
83
  }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * ZLayer API
3
+ * Container orchestration API for ZLayer
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
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
+ * Which flavor of container restart policy to apply.
14
+ * @export
15
+ */
16
+ export declare const ContainerRestartKind: {
17
+ readonly No: "no";
18
+ readonly Always: "always";
19
+ readonly UnlessStopped: "unless_stopped";
20
+ readonly OnFailure: "on_failure";
21
+ };
22
+ export type ContainerRestartKind = typeof ContainerRestartKind[keyof typeof ContainerRestartKind];
23
+ export declare function instanceOfContainerRestartKind(value: any): boolean;
24
+ export declare function ContainerRestartKindFromJSON(json: any): ContainerRestartKind;
25
+ export declare function ContainerRestartKindFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContainerRestartKind;
26
+ export declare function ContainerRestartKindToJSON(value?: ContainerRestartKind | null): any;
27
+ export declare function ContainerRestartKindToJSONTyped(value: any, ignoreDiscriminator: boolean): ContainerRestartKind;
@@ -0,0 +1,53 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ZLayer API
6
+ * Container orchestration API for ZLayer
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.ContainerRestartKind = void 0;
17
+ exports.instanceOfContainerRestartKind = instanceOfContainerRestartKind;
18
+ exports.ContainerRestartKindFromJSON = ContainerRestartKindFromJSON;
19
+ exports.ContainerRestartKindFromJSONTyped = ContainerRestartKindFromJSONTyped;
20
+ exports.ContainerRestartKindToJSON = ContainerRestartKindToJSON;
21
+ exports.ContainerRestartKindToJSONTyped = ContainerRestartKindToJSONTyped;
22
+ /**
23
+ * Which flavor of container restart policy to apply.
24
+ * @export
25
+ */
26
+ exports.ContainerRestartKind = {
27
+ No: 'no',
28
+ Always: 'always',
29
+ UnlessStopped: 'unless_stopped',
30
+ OnFailure: 'on_failure'
31
+ };
32
+ function instanceOfContainerRestartKind(value) {
33
+ for (const key in exports.ContainerRestartKind) {
34
+ if (Object.prototype.hasOwnProperty.call(exports.ContainerRestartKind, key)) {
35
+ if (exports.ContainerRestartKind[key] === value) {
36
+ return true;
37
+ }
38
+ }
39
+ }
40
+ return false;
41
+ }
42
+ function ContainerRestartKindFromJSON(json) {
43
+ return ContainerRestartKindFromJSONTyped(json, false);
44
+ }
45
+ function ContainerRestartKindFromJSONTyped(json, ignoreDiscriminator) {
46
+ return json;
47
+ }
48
+ function ContainerRestartKindToJSON(value) {
49
+ return value;
50
+ }
51
+ function ContainerRestartKindToJSONTyped(value, ignoreDiscriminator) {
52
+ return value;
53
+ }
@@ -0,0 +1,53 @@
1
+ /**
2
+ * ZLayer API
3
+ * Container orchestration API for ZLayer
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
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 { ContainerRestartKind } from './ContainerRestartKind';
13
+ /**
14
+ * Container-runtime-level restart policy.
15
+ *
16
+ * Maps onto Docker's `HostConfig.RestartPolicy`. Distinct from
17
+ * [`PanicPolicy`], which governs what `ZLayer` does in response to an
18
+ * application panic (it does not set a Docker restart policy).
19
+ * @export
20
+ * @interface ContainerRestartPolicy
21
+ */
22
+ export interface ContainerRestartPolicy {
23
+ /**
24
+ * Humantime-formatted delay between restarts (e.g. `"500ms"`,
25
+ * `"2s"`). Accepted for forward-compatibility but currently ignored
26
+ * by the Docker backend: bollard's `RestartPolicy` has no per-kind
27
+ * delay field. When set, the runtime emits a warning.
28
+ * @type {string}
29
+ * @memberof ContainerRestartPolicy
30
+ */
31
+ delay?: string | null;
32
+ /**
33
+ * Which restart policy to apply.
34
+ * @type {ContainerRestartKind}
35
+ * @memberof ContainerRestartPolicy
36
+ */
37
+ kind: ContainerRestartKind;
38
+ /**
39
+ * For `on_failure` only: maximum number of restart attempts before
40
+ * giving up. Ignored by other kinds. `None` means "retry forever".
41
+ * @type {number}
42
+ * @memberof ContainerRestartPolicy
43
+ */
44
+ maxAttempts?: number | null;
45
+ }
46
+ /**
47
+ * Check if a given object implements the ContainerRestartPolicy interface.
48
+ */
49
+ export declare function instanceOfContainerRestartPolicy(value: object): value is ContainerRestartPolicy;
50
+ export declare function ContainerRestartPolicyFromJSON(json: any): ContainerRestartPolicy;
51
+ export declare function ContainerRestartPolicyFromJSONTyped(json: any, ignoreDiscriminator: boolean): ContainerRestartPolicy;
52
+ export declare function ContainerRestartPolicyToJSON(json: any): ContainerRestartPolicy;
53
+ export declare function ContainerRestartPolicyToJSONTyped(value?: ContainerRestartPolicy | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,55 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * ZLayer API
6
+ * Container orchestration API for ZLayer
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfContainerRestartPolicy = instanceOfContainerRestartPolicy;
17
+ exports.ContainerRestartPolicyFromJSON = ContainerRestartPolicyFromJSON;
18
+ exports.ContainerRestartPolicyFromJSONTyped = ContainerRestartPolicyFromJSONTyped;
19
+ exports.ContainerRestartPolicyToJSON = ContainerRestartPolicyToJSON;
20
+ exports.ContainerRestartPolicyToJSONTyped = ContainerRestartPolicyToJSONTyped;
21
+ const ContainerRestartKind_1 = require("./ContainerRestartKind");
22
+ /**
23
+ * Check if a given object implements the ContainerRestartPolicy interface.
24
+ */
25
+ function instanceOfContainerRestartPolicy(value) {
26
+ if (!('kind' in value) || value['kind'] === undefined)
27
+ return false;
28
+ return true;
29
+ }
30
+ function ContainerRestartPolicyFromJSON(json) {
31
+ return ContainerRestartPolicyFromJSONTyped(json, false);
32
+ }
33
+ function ContainerRestartPolicyFromJSONTyped(json, ignoreDiscriminator) {
34
+ if (json == null) {
35
+ return json;
36
+ }
37
+ return {
38
+ 'delay': json['delay'] == null ? undefined : json['delay'],
39
+ 'kind': (0, ContainerRestartKind_1.ContainerRestartKindFromJSON)(json['kind']),
40
+ 'maxAttempts': json['max_attempts'] == null ? undefined : json['max_attempts'],
41
+ };
42
+ }
43
+ function ContainerRestartPolicyToJSON(json) {
44
+ return ContainerRestartPolicyToJSONTyped(json, false);
45
+ }
46
+ function ContainerRestartPolicyToJSONTyped(value, ignoreDiscriminator = false) {
47
+ if (value == null) {
48
+ return value;
49
+ }
50
+ return {
51
+ 'delay': value['delay'],
52
+ 'kind': (0, ContainerRestartKind_1.ContainerRestartKindToJSON)(value['kind']),
53
+ 'max_attempts': value['maxAttempts'],
54
+ };
55
+ }
@@ -10,23 +10,51 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  /**
13
- * Wait response with container exit code
13
+ * Wait response with container exit code plus optional classification
14
+ * fields (added in §3.12 of the SDK-fixes spec).
15
+ *
16
+ * The three optional fields (`reason`, `signal`, `finished_at`) are
17
+ * additive — clients that only read `exit_code` keep working unchanged.
14
18
  * @export
15
19
  * @interface ContainerWaitResponse
16
20
  */
17
21
  export interface ContainerWaitResponse {
18
22
  /**
19
- * Exit code (0 = success)
23
+ * Exit code (0 = success). When the container was killed by signal
24
+ * `N`, this is typically `128 + N`.
20
25
  * @type {number}
21
26
  * @memberof ContainerWaitResponse
22
27
  */
23
28
  exitCode: number;
29
+ /**
30
+ * RFC3339 timestamp of when the container exited, if reported by
31
+ * the runtime.
32
+ * @type {string}
33
+ * @memberof ContainerWaitResponse
34
+ */
35
+ finishedAt?: string | null;
24
36
  /**
25
37
  * Container identifier
26
38
  * @type {string}
27
39
  * @memberof ContainerWaitResponse
28
40
  */
29
41
  id: string;
42
+ /**
43
+ * Classification of the exit. One of `"exited"`, `"signal"`,
44
+ * `"oom_killed"`, or `"runtime_error"`. Absent when the runtime
45
+ * didn't classify the exit.
46
+ * @type {string}
47
+ * @memberof ContainerWaitResponse
48
+ */
49
+ reason?: string | null;
50
+ /**
51
+ * Signal name when `reason == "signal"`, e.g. `"SIGKILL"`. Absent
52
+ * when the runtime couldn't determine it (or the exit wasn't a
53
+ * signal death).
54
+ * @type {string}
55
+ * @memberof ContainerWaitResponse
56
+ */
57
+ signal?: string | null;
30
58
  }
31
59
  /**
32
60
  * Check if a given object implements the ContainerWaitResponse interface.
@@ -37,7 +37,10 @@ function ContainerWaitResponseFromJSONTyped(json, ignoreDiscriminator) {
37
37
  }
38
38
  return {
39
39
  'exitCode': json['exit_code'],
40
+ 'finishedAt': json['finished_at'] == null ? undefined : json['finished_at'],
40
41
  'id': json['id'],
42
+ 'reason': json['reason'] == null ? undefined : json['reason'],
43
+ 'signal': json['signal'] == null ? undefined : json['signal'],
41
44
  };
42
45
  }
43
46
  function ContainerWaitResponseToJSON(json) {
@@ -49,6 +52,9 @@ function ContainerWaitResponseToJSONTyped(value, ignoreDiscriminator = false) {
49
52
  }
50
53
  return {
51
54
  'exit_code': value['exitCode'],
55
+ 'finished_at': value['finishedAt'],
52
56
  'id': value['id'],
57
+ 'reason': value['reason'],
58
+ 'signal': value['signal'],
53
59
  };
54
60
  }