@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
@@ -13,7 +13,7 @@ Name | Type
13
13
  ## Example
14
14
 
15
15
  ```typescript
16
- import type { UpdateLabelsRequest } from '@zlayer/client'
16
+ import type { UpdateLabelsRequest } from '@zlayer/api-client'
17
17
 
18
18
  // TODO: Update the object below with actual values
19
19
  const example = {
@@ -12,7 +12,7 @@ Name | Type
12
12
  ## Example
13
13
 
14
14
  ```typescript
15
- import type { UpdateLabelsResponse } from '@zlayer/client'
15
+ import type { UpdateLabelsResponse } from '@zlayer/api-client'
16
16
 
17
17
  // TODO: Update the object below with actual values
18
18
  const example = {
@@ -14,7 +14,7 @@ Name | Type
14
14
  ## Example
15
15
 
16
16
  ```typescript
17
- import type { UpdateNotifierRequest } from '@zlayer/client'
17
+ import type { UpdateNotifierRequest } from '@zlayer/api-client'
18
18
 
19
19
  // TODO: Update the object below with actual values
20
20
  const example = {
@@ -23,7 +23,7 @@ Name | Type
23
23
  ## Example
24
24
 
25
25
  ```typescript
26
- import type { UpdateProjectRequest } from '@zlayer/client'
26
+ import type { UpdateProjectRequest } from '@zlayer/api-client'
27
27
 
28
28
  // TODO: Update the object below with actual values
29
29
  const example = {
@@ -14,7 +14,7 @@ Name | Type
14
14
  ## Example
15
15
 
16
16
  ```typescript
17
- import type { UpdateUserRequest } from '@zlayer/client'
17
+ import type { UpdateUserRequest } from '@zlayer/api-client'
18
18
 
19
19
  // TODO: Update the object below with actual values
20
20
  const example = {
@@ -13,7 +13,7 @@ Name | Type
13
13
  ## Example
14
14
 
15
15
  ```typescript
16
- import type { UpdateVariableRequest } from '@zlayer/client'
16
+ import type { UpdateVariableRequest } from '@zlayer/api-client'
17
17
 
18
18
  // TODO: Update the object below with actual values
19
19
  const example = {
package/docs/UserRole.md CHANGED
@@ -11,7 +11,7 @@ Name | Type
11
11
  ## Example
12
12
 
13
13
  ```typescript
14
- import type { UserRole } from '@zlayer/client'
14
+ import type { UserRole } from '@zlayer/api-client'
15
15
 
16
16
  // TODO: Update the object below with actual values
17
17
  const example = {
package/docs/UserView.md CHANGED
@@ -17,7 +17,7 @@ Name | Type
17
17
  ## Example
18
18
 
19
19
  ```typescript
20
- import type { UserView } from '@zlayer/client'
20
+ import type { UserView } from '@zlayer/api-client'
21
21
 
22
22
  // TODO: Update the object below with actual values
23
23
  const example = {
package/docs/UsersApi.md CHANGED
@@ -27,11 +27,11 @@ Create a new user. Admin only.
27
27
  import {
28
28
  Configuration,
29
29
  UsersApi,
30
- } from '@zlayer/client';
31
- import type { CreateUserOperationRequest } from '@zlayer/client';
30
+ } from '@zlayer/api-client';
31
+ import type { CreateUserOperationRequest } from '@zlayer/api-client';
32
32
 
33
33
  async function example() {
34
- console.log("🚀 Testing @zlayer/client SDK...");
34
+ console.log("🚀 Testing @zlayer/api-client SDK...");
35
35
  const api = new UsersApi();
36
36
 
37
37
  const body = {
@@ -97,11 +97,11 @@ Delete a user. Admin only. Callers cannot delete their own account.
97
97
  import {
98
98
  Configuration,
99
99
  UsersApi,
100
- } from '@zlayer/client';
101
- import type { DeleteUserRequest } from '@zlayer/client';
100
+ } from '@zlayer/api-client';
101
+ import type { DeleteUserRequest } from '@zlayer/api-client';
102
102
 
103
103
  async function example() {
104
- console.log("🚀 Testing @zlayer/client SDK...");
104
+ console.log("🚀 Testing @zlayer/api-client SDK...");
105
105
  const api = new UsersApi();
106
106
 
107
107
  const body = {
@@ -166,11 +166,11 @@ Fetch a single user. Admins can read any record; regular users can read only the
166
166
  import {
167
167
  Configuration,
168
168
  UsersApi,
169
- } from '@zlayer/client';
170
- import type { GetUserRequest } from '@zlayer/client';
169
+ } from '@zlayer/api-client';
170
+ import type { GetUserRequest } from '@zlayer/api-client';
171
171
 
172
172
  async function example() {
173
- console.log("🚀 Testing @zlayer/client SDK...");
173
+ console.log("🚀 Testing @zlayer/api-client SDK...");
174
174
  const api = new UsersApi();
175
175
 
176
176
  const body = {
@@ -234,11 +234,11 @@ List all users. Admin only.
234
234
  import {
235
235
  Configuration,
236
236
  UsersApi,
237
- } from '@zlayer/client';
238
- import type { ListUsersRequest } from '@zlayer/client';
237
+ } from '@zlayer/api-client';
238
+ import type { ListUsersRequest } from '@zlayer/api-client';
239
239
 
240
240
  async function example() {
241
- console.log("🚀 Testing @zlayer/client SDK...");
241
+ console.log("🚀 Testing @zlayer/api-client SDK...");
242
242
  const api = new UsersApi();
243
243
 
244
244
  try {
@@ -294,11 +294,11 @@ Set a user\'s password. Admins may change any user\'s password; regular
294
294
  import {
295
295
  Configuration,
296
296
  UsersApi,
297
- } from '@zlayer/client';
298
- import type { SetPasswordOperationRequest } from '@zlayer/client';
297
+ } from '@zlayer/api-client';
298
+ import type { SetPasswordOperationRequest } from '@zlayer/api-client';
299
299
 
300
300
  async function example() {
301
- console.log("🚀 Testing @zlayer/client SDK...");
301
+ console.log("🚀 Testing @zlayer/api-client SDK...");
302
302
  const api = new UsersApi();
303
303
 
304
304
  const body = {
@@ -368,11 +368,11 @@ Update a user\'s mutable fields. Admin only.
368
368
  import {
369
369
  Configuration,
370
370
  UsersApi,
371
- } from '@zlayer/client';
372
- import type { UpdateUserOperationRequest } from '@zlayer/client';
371
+ } from '@zlayer/api-client';
372
+ import type { UpdateUserOperationRequest } from '@zlayer/api-client';
373
373
 
374
374
  async function example() {
375
- console.log("🚀 Testing @zlayer/client SDK...");
375
+ console.log("🚀 Testing @zlayer/api-client SDK...");
376
376
  const api = new UsersApi();
377
377
 
378
378
  const body = {
@@ -26,11 +26,11 @@ Create a new variable. Admin only.
26
26
  import {
27
27
  Configuration,
28
28
  VariablesApi,
29
- } from '@zlayer/client';
30
- import type { CreateVariableOperationRequest } from '@zlayer/client';
29
+ } from '@zlayer/api-client';
30
+ import type { CreateVariableOperationRequest } from '@zlayer/api-client';
31
31
 
32
32
  async function example() {
33
- console.log("🚀 Testing @zlayer/client SDK...");
33
+ console.log("🚀 Testing @zlayer/api-client SDK...");
34
34
  const config = new Configuration({
35
35
  // Configure HTTP bearer authorization: bearer_auth
36
36
  accessToken: "YOUR BEARER TOKEN",
@@ -100,11 +100,11 @@ Delete a variable. Admin only.
100
100
  import {
101
101
  Configuration,
102
102
  VariablesApi,
103
- } from '@zlayer/client';
104
- import type { DeleteVariableRequest } from '@zlayer/client';
103
+ } from '@zlayer/api-client';
104
+ import type { DeleteVariableRequest } from '@zlayer/api-client';
105
105
 
106
106
  async function example() {
107
- console.log("🚀 Testing @zlayer/client SDK...");
107
+ console.log("🚀 Testing @zlayer/api-client SDK...");
108
108
  const config = new Configuration({
109
109
  // Configure HTTP bearer authorization: bearer_auth
110
110
  accessToken: "YOUR BEARER TOKEN",
@@ -173,11 +173,11 @@ Fetch a single variable by id.
173
173
  import {
174
174
  Configuration,
175
175
  VariablesApi,
176
- } from '@zlayer/client';
177
- import type { GetVariableRequest } from '@zlayer/client';
176
+ } from '@zlayer/api-client';
177
+ import type { GetVariableRequest } from '@zlayer/api-client';
178
178
 
179
179
  async function example() {
180
- console.log("🚀 Testing @zlayer/client SDK...");
180
+ console.log("🚀 Testing @zlayer/api-client SDK...");
181
181
  const config = new Configuration({
182
182
  // Configure HTTP bearer authorization: bearer_auth
183
183
  accessToken: "YOUR BEARER TOKEN",
@@ -245,11 +245,11 @@ Filter rules (see [`ListVariablesQuery`]): - `?scope={id}&#
245
245
  import {
246
246
  Configuration,
247
247
  VariablesApi,
248
- } from '@zlayer/client';
249
- import type { ListVariablesRequest } from '@zlayer/client';
248
+ } from '@zlayer/api-client';
249
+ import type { ListVariablesRequest } from '@zlayer/api-client';
250
250
 
251
251
  async function example() {
252
- console.log("🚀 Testing @zlayer/client SDK...");
252
+ console.log("🚀 Testing @zlayer/api-client SDK...");
253
253
  const config = new Configuration({
254
254
  // Configure HTTP bearer authorization: bearer_auth
255
255
  accessToken: "YOUR BEARER TOKEN",
@@ -317,11 +317,11 @@ Update a variable\'s name and/or value. Admin only.
317
317
  import {
318
318
  Configuration,
319
319
  VariablesApi,
320
- } from '@zlayer/client';
321
- import type { UpdateVariableOperationRequest } from '@zlayer/client';
320
+ } from '@zlayer/api-client';
321
+ import type { UpdateVariableOperationRequest } from '@zlayer/api-client';
322
322
 
323
323
  async function example() {
324
- console.log("🚀 Testing @zlayer/client SDK...");
324
+ console.log("🚀 Testing @zlayer/api-client SDK...");
325
325
  const config = new Configuration({
326
326
  // Configure HTTP bearer authorization: bearer_auth
327
327
  accessToken: "YOUR BEARER TOKEN",
@@ -0,0 +1,45 @@
1
+
2
+ # VolumeInfo
3
+
4
+ Full volume response shape used by the list, inspect, and create endpoints.
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+ `createdAt` | string
11
+ `inUseBy` | Array<string>
12
+ `labels` | { [key: string]: string; }
13
+ `name` | string
14
+ `path` | string
15
+ `sizeBytes` | number
16
+
17
+ ## Example
18
+
19
+ ```typescript
20
+ import type { VolumeInfo } from '@zlayer/api-client'
21
+
22
+ // TODO: Update the object below with actual values
23
+ const example = {
24
+ "createdAt": null,
25
+ "inUseBy": null,
26
+ "labels": null,
27
+ "name": null,
28
+ "path": null,
29
+ "sizeBytes": null,
30
+ } satisfies VolumeInfo
31
+
32
+ console.log(example)
33
+
34
+ // Convert the instance to a JSON string
35
+ const exampleJSON: string = JSON.stringify(example)
36
+ console.log(exampleJSON)
37
+
38
+ // Parse the JSON string back to an object
39
+ const exampleParsed = JSON.parse(exampleJSON) as VolumeInfo
40
+ console.log(exampleParsed)
41
+ ```
42
+
43
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
44
+
45
+
@@ -1,7 +1,7 @@
1
1
 
2
2
  # VolumeMount
3
3
 
4
- Volume mount specification
4
+ Volume mount specification. The `type` field (a Docker-compatible discriminator) selects how `source` is interpreted: - `\"bind\"` (default): `source` is an absolute host path. - `\"volume\"`: `source` is a named-volume identifier. - `\"tmpfs\"`: no `source`; a memory-backed mount is provisioned.
5
5
 
6
6
  ## Properties
7
7
 
@@ -10,17 +10,19 @@ Name | Type
10
10
  `readonly` | boolean
11
11
  `source` | string
12
12
  `target` | string
13
+ `type` | [VolumeMountType](VolumeMountType.md)
13
14
 
14
15
  ## Example
15
16
 
16
17
  ```typescript
17
- import type { VolumeMount } from '@zlayer/client'
18
+ import type { VolumeMount } from '@zlayer/api-client'
18
19
 
19
20
  // TODO: Update the object below with actual values
20
21
  const example = {
21
22
  "readonly": null,
22
23
  "source": null,
23
24
  "target": null,
25
+ "type": null,
24
26
  } satisfies VolumeMount
25
27
 
26
28
  console.log(example)
@@ -0,0 +1,33 @@
1
+
2
+ # VolumeMountType
3
+
4
+ Volume mount kind discriminator. Selects which [`zlayer_spec::StorageSpec`] variant [`VolumeMount`] is translated into by [`build_service_spec`]. When omitted on the wire, defaults to [`VolumeMountType::Bind`] (legacy behavior).
5
+
6
+ ## Properties
7
+
8
+ Name | Type
9
+ ------------ | -------------
10
+
11
+ ## Example
12
+
13
+ ```typescript
14
+ import type { VolumeMountType } from '@zlayer/api-client'
15
+
16
+ // TODO: Update the object below with actual values
17
+ const example = {
18
+ } satisfies VolumeMountType
19
+
20
+ console.log(example)
21
+
22
+ // Convert the instance to a JSON string
23
+ const exampleJSON: string = JSON.stringify(example)
24
+ console.log(exampleJSON)
25
+
26
+ // Parse the JSON string back to an object
27
+ const exampleParsed = JSON.parse(exampleJSON) as VolumeMountType
28
+ console.log(exampleParsed)
29
+ ```
30
+
31
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
32
+
33
+
@@ -1,7 +1,7 @@
1
1
 
2
2
  # VolumeSummary
3
3
 
4
- Summary of a single volume returned by the list endpoint.
4
+ Legacy response shape kept for backwards compatibility with older SDK consumers that deserialize strictly. New consumers should use [`VolumeInfo`]. `list_volumes` now returns [`VolumeInfo`] which is a strict superset of the fields in `VolumeSummary`.
5
5
 
6
6
  ## Properties
7
7
 
@@ -14,7 +14,7 @@ Name | Type
14
14
  ## Example
15
15
 
16
16
  ```typescript
17
- import type { VolumeSummary } from '@zlayer/client'
17
+ import type { VolumeSummary } from '@zlayer/api-client'
18
18
 
19
19
  // TODO: Update the object below with actual values
20
20
  const example = {
@@ -4,18 +4,95 @@ All URIs are relative to *http://localhost*
4
4
 
5
5
  | Method | HTTP request | Description |
6
6
  |------------- | ------------- | -------------|
7
+ | [**createVolume**](VolumesApi.md#createvolumeoperation) | **POST** /api/v1/volumes | Create a new named volume. |
7
8
  | [**deleteVolume**](VolumesApi.md#deletevolume) | **DELETE** /api/v1/volumes/{name} | Delete a volume by name. |
9
+ | [**getVolume**](VolumesApi.md#getvolume) | **GET** /api/v1/volumes/{name} | Inspect a single volume by name. |
8
10
  | [**listVolumes**](VolumesApi.md#listvolumes) | **GET** /api/v1/volumes | List all volumes on disk. |
9
11
 
10
12
 
11
13
 
14
+ ## createVolume
15
+
16
+ > VolumeInfo createVolume(createVolumeRequest)
17
+
18
+ Create a new named volume.
19
+
20
+ Creates `state.volume_dir/{name}` on disk and writes a `.metadata.json` sidecar capturing labels, size, tier, and the creation timestamp. # Errors - 400 Bad Request — invalid name, size, or tier. - 403 Forbidden — caller lacks the `operator` role. - 409 Conflict — a volume with this name already exists. - 500 Internal — filesystem errors.
21
+
22
+ ### Example
23
+
24
+ ```ts
25
+ import {
26
+ Configuration,
27
+ VolumesApi,
28
+ } from '@zlayer/api-client';
29
+ import type { CreateVolumeOperationRequest } from '@zlayer/api-client';
30
+
31
+ async function example() {
32
+ console.log("🚀 Testing @zlayer/api-client SDK...");
33
+ const config = new Configuration({
34
+ // Configure HTTP bearer authorization: bearer_auth
35
+ accessToken: "YOUR BEARER TOKEN",
36
+ });
37
+ const api = new VolumesApi(config);
38
+
39
+ const body = {
40
+ // CreateVolumeRequest
41
+ createVolumeRequest: ...,
42
+ } satisfies CreateVolumeOperationRequest;
43
+
44
+ try {
45
+ const data = await api.createVolume(body);
46
+ console.log(data);
47
+ } catch (error) {
48
+ console.error(error);
49
+ }
50
+ }
51
+
52
+ // Run the test
53
+ example().catch(console.error);
54
+ ```
55
+
56
+ ### Parameters
57
+
58
+
59
+ | Name | Type | Description | Notes |
60
+ |------------- | ------------- | ------------- | -------------|
61
+ | **createVolumeRequest** | [CreateVolumeRequest](CreateVolumeRequest.md) | | |
62
+
63
+ ### Return type
64
+
65
+ [**VolumeInfo**](VolumeInfo.md)
66
+
67
+ ### Authorization
68
+
69
+ [bearer_auth](../README.md#bearer_auth)
70
+
71
+ ### HTTP request headers
72
+
73
+ - **Content-Type**: `application/json`
74
+ - **Accept**: `application/json`
75
+
76
+
77
+ ### HTTP response details
78
+ | Status code | Description | Response headers |
79
+ |-------------|-------------|------------------|
80
+ | **201** | Volume created | - |
81
+ | **400** | Bad request | - |
82
+ | **401** | Unauthorized | - |
83
+ | **403** | Forbidden | - |
84
+ | **409** | Volume already exists | - |
85
+
86
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
87
+
88
+
12
89
  ## deleteVolume
13
90
 
14
91
  > deleteVolume(name, force)
15
92
 
16
93
  Delete a volume by name.
17
94
 
18
- Removes a volume directory from disk. By default, only empty volumes can be deleted. Use `?force=true` to remove non-empty volumes. # Errors Returns an error if the volume is not found or cannot be removed.
95
+ By default, refuses to remove a volume that is non-empty OR that any container currently reports mounting. `?force=true` overrides both checks. # Errors - 404 Not Found no such volume. - 409 Conflict — non-empty or in-use without `?force=true`. - 403 Forbidden — caller lacks the `operator` role.
19
96
 
20
97
  ### Example
21
98
 
@@ -23,11 +100,11 @@ Removes a volume directory from disk. By default, only empty volumes can be dele
23
100
  import {
24
101
  Configuration,
25
102
  VolumesApi,
26
- } from '@zlayer/client';
27
- import type { DeleteVolumeRequest } from '@zlayer/client';
103
+ } from '@zlayer/api-client';
104
+ import type { DeleteVolumeRequest } from '@zlayer/api-client';
28
105
 
29
106
  async function example() {
30
- console.log("🚀 Testing @zlayer/client SDK...");
107
+ console.log("🚀 Testing @zlayer/api-client SDK...");
31
108
  const config = new Configuration({
32
109
  // Configure HTTP bearer authorization: bearer_auth
33
110
  accessToken: "YOUR BEARER TOKEN",
@@ -37,7 +114,7 @@ async function example() {
37
114
  const body = {
38
115
  // string | Volume name
39
116
  name: name_example,
40
- // boolean | Force removal of non-empty volumes
117
+ // boolean | Force removal of non-empty or in-use volumes
41
118
  force: true,
42
119
  } satisfies DeleteVolumeRequest;
43
120
 
@@ -59,7 +136,7 @@ example().catch(console.error);
59
136
  | Name | Type | Description | Notes |
60
137
  |------------- | ------------- | ------------- | -------------|
61
138
  | **name** | `string` | Volume name | [Defaults to `undefined`] |
62
- | **force** | `boolean` | Force removal of non-empty volumes | [Defaults to `undefined`] |
139
+ | **force** | `boolean` | Force removal of non-empty or in-use volumes | [Defaults to `undefined`] |
63
140
 
64
141
  ### Return type
65
142
 
@@ -82,18 +159,91 @@ example().catch(console.error);
82
159
  | **401** | Unauthorized | - |
83
160
  | **403** | Forbidden | - |
84
161
  | **404** | Volume not found | - |
85
- | **409** | Volume is non-empty (use ?force=true) | - |
162
+ | **409** | Volume is non-empty or in use (use ?force=true) | - |
163
+
164
+ [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
165
+
166
+
167
+ ## getVolume
168
+
169
+ > VolumeInfo getVolume(name)
170
+
171
+ Inspect a single volume by name.
172
+
173
+ Reads the sidecar when present, synthesizes defaults for legacy volumes, and populates `in_use_by` when a [`VolumeUsageSource`] is wired. # Errors - 404 Not Found — no such volume. - 500 Internal — filesystem or parse errors.
174
+
175
+ ### Example
176
+
177
+ ```ts
178
+ import {
179
+ Configuration,
180
+ VolumesApi,
181
+ } from '@zlayer/api-client';
182
+ import type { GetVolumeRequest } from '@zlayer/api-client';
183
+
184
+ async function example() {
185
+ console.log("🚀 Testing @zlayer/api-client SDK...");
186
+ const config = new Configuration({
187
+ // Configure HTTP bearer authorization: bearer_auth
188
+ accessToken: "YOUR BEARER TOKEN",
189
+ });
190
+ const api = new VolumesApi(config);
191
+
192
+ const body = {
193
+ // string | Volume name
194
+ name: name_example,
195
+ } satisfies GetVolumeRequest;
196
+
197
+ try {
198
+ const data = await api.getVolume(body);
199
+ console.log(data);
200
+ } catch (error) {
201
+ console.error(error);
202
+ }
203
+ }
204
+
205
+ // Run the test
206
+ example().catch(console.error);
207
+ ```
208
+
209
+ ### Parameters
210
+
211
+
212
+ | Name | Type | Description | Notes |
213
+ |------------- | ------------- | ------------- | -------------|
214
+ | **name** | `string` | Volume name | [Defaults to `undefined`] |
215
+
216
+ ### Return type
217
+
218
+ [**VolumeInfo**](VolumeInfo.md)
219
+
220
+ ### Authorization
221
+
222
+ [bearer_auth](../README.md#bearer_auth)
223
+
224
+ ### HTTP request headers
225
+
226
+ - **Content-Type**: Not defined
227
+ - **Accept**: `application/json`
228
+
229
+
230
+ ### HTTP response details
231
+ | Status code | Description | Response headers |
232
+ |-------------|-------------|------------------|
233
+ | **200** | Volume metadata | - |
234
+ | **401** | Unauthorized | - |
235
+ | **404** | Volume not found | - |
86
236
 
87
237
  [[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
88
238
 
89
239
 
90
240
  ## listVolumes
91
241
 
92
- > Array<VolumeSummary> listVolumes()
242
+ > Array<VolumeInfo> listVolumes()
93
243
 
94
244
  List all volumes on disk.
95
245
 
96
- Enumerates subdirectories under the volume base directory and returns metadata for each one. # Errors Returns an error if the volume directory cannot be read.
246
+ Enumerates subdirectories under the volume base directory, reads each sidecar when present, and returns a [`VolumeInfo`] for each entry (including `in_use_by` when a [`VolumeUsageSource`] is wired). # Errors Returns an error if the volume directory cannot be read.
97
247
 
98
248
  ### Example
99
249
 
@@ -101,11 +251,11 @@ Enumerates subdirectories under the volume base directory and returns metadata f
101
251
  import {
102
252
  Configuration,
103
253
  VolumesApi,
104
- } from '@zlayer/client';
105
- import type { ListVolumesRequest } from '@zlayer/client';
254
+ } from '@zlayer/api-client';
255
+ import type { ListVolumesRequest } from '@zlayer/api-client';
106
256
 
107
257
  async function example() {
108
- console.log("🚀 Testing @zlayer/client SDK...");
258
+ console.log("🚀 Testing @zlayer/api-client SDK...");
109
259
  const config = new Configuration({
110
260
  // Configure HTTP bearer authorization: bearer_auth
111
261
  accessToken: "YOUR BEARER TOKEN",
@@ -130,7 +280,7 @@ This endpoint does not need any parameter.
130
280
 
131
281
  ### Return type
132
282
 
133
- [**Array<VolumeSummary>**](VolumeSummary.md)
283
+ [**Array<VolumeInfo>**](VolumeInfo.md)
134
284
 
135
285
  ### Authorization
136
286
 
@@ -13,7 +13,7 @@ Name | Type
13
13
  ## Example
14
14
 
15
15
  ```typescript
16
- import type { WebhookInfoResponse } from '@zlayer/client'
16
+ import type { WebhookInfoResponse } from '@zlayer/api-client'
17
17
 
18
18
  // TODO: Update the object below with actual values
19
19
  const example = {
@@ -13,7 +13,7 @@ Name | Type
13
13
  ## Example
14
14
 
15
15
  ```typescript
16
- import type { WebhookResponse } from '@zlayer/client'
16
+ import type { WebhookResponse } from '@zlayer/api-client'
17
17
 
18
18
  // TODO: Update the object below with actual values
19
19
  const example = {