@zlayer/api-client 0.10.86 → 0.10.88
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.
- package/.openapi-generator/FILES +58 -1
- package/README.md +48 -6
- package/dist/apis/AuthenticationApi.d.ts +43 -1
- package/dist/apis/AuthenticationApi.js +112 -0
- package/dist/apis/ContainerNetworksApi.d.ts +123 -0
- package/dist/apis/ContainerNetworksApi.js +331 -0
- package/dist/apis/ContainersApi.d.ts +7 -4
- package/dist/apis/ContainersApi.js +13 -4
- package/dist/apis/EventsApi.d.ts +35 -0
- package/dist/apis/EventsApi.js +81 -0
- package/dist/apis/PermissionsApi.d.ts +18 -0
- package/dist/apis/PermissionsApi.js +46 -0
- package/dist/apis/SecretsApi.d.ts +38 -1
- package/dist/apis/SecretsApi.js +109 -0
- package/dist/apis/VolumesApi.d.ts +41 -7
- package/dist/apis/VolumesApi.js +102 -5
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/BridgeNetwork.d.ts +72 -0
- package/dist/models/BridgeNetwork.js +67 -0
- package/dist/models/BridgeNetworkAttachment.d.ts +50 -0
- package/dist/models/BridgeNetworkAttachment.js +56 -0
- package/dist/models/BridgeNetworkDetails.d.ts +79 -0
- package/dist/models/BridgeNetworkDetails.js +72 -0
- package/dist/models/BridgeNetworkDriver.d.ts +25 -0
- package/dist/models/BridgeNetworkDriver.js +51 -0
- package/dist/models/ConnectBridgeNetworkRequest.d.ts +45 -0
- package/dist/models/ConnectBridgeNetworkRequest.js +54 -0
- package/dist/models/ContainerEvent.d.ts +82 -0
- package/dist/models/ContainerEvent.js +67 -0
- package/dist/models/ContainerEventKind.d.ts +27 -0
- package/dist/models/ContainerEventKind.js +53 -0
- package/dist/models/ContainerHealthInfo.d.ts +53 -0
- package/dist/models/ContainerHealthInfo.js +54 -0
- package/dist/models/ContainerInfo.d.ts +40 -0
- package/dist/models/ContainerInfo.js +13 -0
- package/dist/models/ContainerRestartKind.d.ts +27 -0
- package/dist/models/ContainerRestartKind.js +53 -0
- package/dist/models/ContainerRestartPolicy.d.ts +53 -0
- package/dist/models/ContainerRestartPolicy.js +55 -0
- package/dist/models/ContainerWaitResponse.d.ts +30 -2
- package/dist/models/ContainerWaitResponse.js +6 -0
- package/dist/models/CreateBridgeNetworkRequest.d.ts +60 -0
- package/dist/models/CreateBridgeNetworkRequest.js +59 -0
- package/dist/models/CreateContainerRequest.d.ts +77 -0
- package/dist/models/CreateContainerRequest.js +23 -0
- package/dist/models/CreateVolumeRequest.d.ts +54 -0
- package/dist/models/CreateVolumeRequest.js +56 -0
- package/dist/models/DisconnectBridgeNetworkRequest.d.ts +38 -0
- package/dist/models/DisconnectBridgeNetworkRequest.js +52 -0
- package/dist/models/HealthCheckRequest.d.ts +94 -0
- package/dist/models/HealthCheckRequest.js +66 -0
- package/dist/models/NetworkAttachmentInfo.d.ts +49 -0
- package/dist/models/NetworkAttachmentInfo.js +54 -0
- package/dist/models/NetworkAttachmentRequest.d.ts +51 -0
- package/dist/models/NetworkAttachmentRequest.js +54 -0
- package/dist/models/OidcCallbackResponse.d.ts +47 -0
- package/dist/models/OidcCallbackResponse.js +59 -0
- package/dist/models/OidcProviderPublic.d.ts +39 -0
- package/dist/models/OidcProviderPublic.js +54 -0
- package/dist/models/PortMapping.d.ts +55 -0
- package/dist/models/PortMapping.js +57 -0
- package/dist/models/PortProtocol.d.ts +25 -0
- package/dist/models/PortProtocol.js +51 -0
- package/dist/models/PullImageRequest.d.ts +18 -0
- package/dist/models/PullImageRequest.js +5 -0
- package/dist/models/RegistryAuth.d.ts +52 -0
- package/dist/models/RegistryAuth.js +57 -0
- package/dist/models/RegistryAuthType.d.ts +25 -0
- package/dist/models/RegistryAuthType.js +51 -0
- package/dist/models/RevealAllSecretsResponse.d.ts +41 -0
- package/dist/models/RevealAllSecretsResponse.js +54 -0
- package/dist/models/RotateSecretRequest.d.ts +32 -0
- package/dist/models/RotateSecretRequest.js +50 -0
- package/dist/models/RotateSecretResponse.d.ts +46 -0
- package/dist/models/RotateSecretResponse.js +56 -0
- package/dist/models/VolumeInfo.d.ts +70 -0
- package/dist/models/VolumeInfo.js +64 -0
- package/dist/models/VolumeMount.d.ts +16 -3
- package/dist/models/VolumeMount.js +4 -3
- package/dist/models/VolumeMountType.d.ts +30 -0
- package/dist/models/VolumeMountType.js +56 -0
- package/dist/models/VolumeSummary.d.ts +7 -4
- package/dist/models/index.d.ts +27 -0
- package/dist/models/index.js +27 -0
- package/docs/AddMemberRequest.md +1 -1
- package/docs/AuditApi.md +3 -3
- package/docs/AuditEntry.md +1 -1
- package/docs/AuthenticationApi.md +212 -18
- package/docs/BackendGroupInfo.md +1 -1
- package/docs/BackendInfo.md +1 -1
- package/docs/BackendsResponse.md +1 -1
- package/docs/BootstrapRequest.md +1 -1
- package/docs/BridgeNetwork.md +47 -0
- package/docs/BridgeNetworkAttachment.md +41 -0
- package/docs/BridgeNetworkDetails.md +49 -0
- package/docs/BridgeNetworkDriver.md +33 -0
- package/docs/BuildApi.md +21 -21
- package/docs/BuildKind.md +1 -1
- package/docs/BuildRequest.md +1 -1
- package/docs/BuildRequestWithContext.md +1 -1
- package/docs/BuildStateEnum.md +1 -1
- package/docs/BuildStatus.md +1 -1
- package/docs/BulkImportResponse.md +1 -1
- package/docs/CertInfo.md +1 -1
- package/docs/ClusterApi.md +12 -12
- package/docs/ClusterJoinRequest.md +1 -1
- package/docs/ClusterJoinResponse.md +1 -1
- package/docs/ClusterNodeSummary.md +1 -1
- package/docs/ClusterPeer.md +1 -1
- package/docs/ConnectBridgeNetworkRequest.md +39 -0
- package/docs/ContainerEvent.md +47 -0
- package/docs/ContainerEventKind.md +33 -0
- package/docs/ContainerExecRequest.md +1 -1
- package/docs/ContainerExecResponse.md +1 -1
- package/docs/ContainerHealthInfo.md +39 -0
- package/docs/ContainerInfo.md +11 -1
- package/docs/ContainerNetworksApi.md +466 -0
- package/docs/ContainerResourceLimits.md +1 -1
- package/docs/ContainerRestartKind.md +33 -0
- package/docs/ContainerRestartPolicy.md +39 -0
- package/docs/ContainerStatsResponse.md +1 -1
- package/docs/ContainerWaitResponse.md +8 -2
- package/docs/ContainersApi.md +51 -42
- package/docs/CreateBridgeNetworkRequest.md +43 -0
- package/docs/CreateContainerRequest.md +19 -1
- package/docs/CreateDeploymentRequest.md +1 -1
- package/docs/CreateEnvironmentRequest.md +1 -1
- package/docs/CreateGitCredentialRequest.md +1 -1
- package/docs/CreateGroupRequest.md +1 -1
- package/docs/CreateNodeTunnelRequest.md +1 -1
- package/docs/CreateNodeTunnelResponse.md +1 -1
- package/docs/CreateNotifierRequest.md +1 -1
- package/docs/CreateProjectRequest.md +1 -1
- package/docs/CreateRegistryCredentialRequest.md +1 -1
- package/docs/CreateSecretRequest.md +1 -1
- package/docs/CreateSyncRequest.md +1 -1
- package/docs/CreateTaskRequest.md +1 -1
- package/docs/CreateTunnelRequest.md +1 -1
- package/docs/CreateTunnelResponse.md +1 -1
- package/docs/CreateUserRequest.md +1 -1
- package/docs/CreateVariableRequest.md +1 -1
- package/docs/CreateVolumeRequest.md +41 -0
- package/docs/CreateWorkflowRequest.md +1 -1
- package/docs/CredentialsApi.md +18 -18
- package/docs/CronApi.md +15 -15
- package/docs/CronJobResponse.md +1 -1
- package/docs/CronStatusResponse.md +1 -1
- package/docs/CsrfResponse.md +1 -1
- package/docs/DeploymentDetails.md +1 -1
- package/docs/DeploymentSummary.md +1 -1
- package/docs/DeploymentsApi.md +12 -12
- package/docs/DisconnectBridgeNetworkRequest.md +37 -0
- package/docs/DnsStatusResponse.md +1 -1
- package/docs/EnvironmentsApi.md +15 -15
- package/docs/EventsApi.md +85 -0
- package/docs/ForceLeaderRequest.md +1 -1
- package/docs/ForceLeaderResponse.md +1 -1
- package/docs/GitCredentialKindSchema.md +1 -1
- package/docs/GitCredentialResponse.md +1 -1
- package/docs/GpuInfoSummary.md +1 -1
- package/docs/GpuUtilizationReport.md +1 -1
- package/docs/GrantPermissionRequest.md +1 -1
- package/docs/GroupMembersResponse.md +1 -1
- package/docs/GroupsApi.md +21 -21
- package/docs/HealthApi.md +6 -6
- package/docs/HealthCheckRequest.md +51 -0
- package/docs/HealthResponse.md +1 -1
- package/docs/HeartbeatRequest.md +1 -1
- package/docs/ImageInfoDto.md +1 -1
- package/docs/ImagesApi.md +15 -15
- package/docs/InternalApi.md +6 -6
- package/docs/InternalScaleRequest.md +1 -1
- package/docs/InternalScaleResponse.md +1 -1
- package/docs/IpAllocationResponse.md +1 -1
- package/docs/JobExecutionResponse.md +1 -1
- package/docs/JobsApi.md +12 -12
- package/docs/JoinTokenResponse.md +1 -1
- package/docs/KillContainerRequest.md +1 -1
- package/docs/LinkDeploymentRequest.md +1 -1
- package/docs/LoginRequest.md +1 -1
- package/docs/LoginResponse.md +1 -1
- package/docs/NetworkAttachmentInfo.md +39 -0
- package/docs/NetworkAttachmentRequest.md +39 -0
- package/docs/NetworkSummary.md +1 -1
- package/docs/NetworksApi.md +15 -15
- package/docs/NodeDetails.md +1 -1
- package/docs/NodeResourceInfo.md +1 -1
- package/docs/NodeSummary.md +1 -1
- package/docs/NodesApi.md +12 -12
- package/docs/NotifierConfig.md +1 -1
- package/docs/NotifierConfigOneOf.md +1 -1
- package/docs/NotifierConfigOneOf1.md +1 -1
- package/docs/NotifierConfigOneOf2.md +1 -1
- package/docs/NotifierConfigOneOf3.md +1 -1
- package/docs/NotifierKind.md +1 -1
- package/docs/NotifiersApi.md +18 -18
- package/docs/OidcCallbackResponse.md +39 -0
- package/docs/OidcProviderPublic.md +37 -0
- package/docs/OverlayApi.md +12 -12
- package/docs/OverlayStatusResponse.md +1 -1
- package/docs/PeerInfo.md +1 -1
- package/docs/PeerListResponse.md +1 -1
- package/docs/PermissionLevel.md +1 -1
- package/docs/PermissionsApi.md +80 -9
- package/docs/PortMapping.md +41 -0
- package/docs/PortProtocol.md +33 -0
- package/docs/ProjectPullResponse.md +1 -1
- package/docs/ProjectsApi.md +27 -27
- package/docs/ProxyApi.md +12 -12
- package/docs/PruneResultDto.md +1 -1
- package/docs/PullImageRequest.md +5 -1
- package/docs/PullImageResponse.md +1 -1
- package/docs/RegisteredServiceInfo.md +1 -1
- package/docs/RegistryAuth.md +39 -0
- package/docs/RegistryAuthType.md +33 -0
- package/docs/RegistryAuthTypeSchema.md +1 -1
- package/docs/RegistryCredentialResponse.md +1 -1
- package/docs/ReplicationInfo.md +1 -1
- package/docs/RestartContainerRequest.md +1 -1
- package/docs/RevealAllSecretsResponse.md +37 -0
- package/docs/RotateSecretRequest.md +35 -0
- package/docs/RotateSecretResponse.md +39 -0
- package/docs/RouteInfo.md +1 -1
- package/docs/RoutesResponse.md +1 -1
- package/docs/ScaleRequest.md +1 -1
- package/docs/SecretMetadataResponse.md +1 -1
- package/docs/SecretsApi.md +175 -15
- package/docs/ServiceDetails.md +1 -1
- package/docs/ServiceEndpoint.md +1 -1
- package/docs/ServiceHealthInfo.md +1 -1
- package/docs/ServiceMetrics.md +1 -1
- package/docs/ServiceSummary.md +1 -1
- package/docs/ServicesApi.md +12 -12
- package/docs/SetPasswordRequest.md +1 -1
- package/docs/StepResult.md +1 -1
- package/docs/StopContainerRequest.md +1 -1
- package/docs/StorageApi.md +3 -3
- package/docs/StorageStatusResponse.md +1 -1
- package/docs/StoredEnvironment.md +1 -1
- package/docs/StoredNotifier.md +1 -1
- package/docs/StoredPermission.md +1 -1
- package/docs/StoredProject.md +1 -1
- package/docs/StoredSync.md +1 -1
- package/docs/StoredTask.md +1 -1
- package/docs/StoredUserGroup.md +1 -1
- package/docs/StoredVariable.md +1 -1
- package/docs/StoredWorkflow.md +1 -1
- package/docs/StreamBackendInfo.md +1 -1
- package/docs/StreamInfo.md +1 -1
- package/docs/StreamsResponse.md +1 -1
- package/docs/SubjectKind.md +1 -1
- package/docs/SuccessResponse.md +1 -1
- package/docs/SyncApplyResponse.md +1 -1
- package/docs/SyncDiffResponse.md +1 -1
- package/docs/SyncResourceResponse.md +1 -1
- package/docs/SyncResourceResult.md +1 -1
- package/docs/SyncsApi.md +15 -15
- package/docs/TagImageRequest.md +1 -1
- package/docs/TaskKind.md +1 -1
- package/docs/TaskRun.md +1 -1
- package/docs/TasksApi.md +18 -18
- package/docs/TemplateInfo.md +1 -1
- package/docs/TestNotifierResponse.md +1 -1
- package/docs/TlsResponse.md +1 -1
- package/docs/TokenRequest.md +1 -1
- package/docs/TokenResponse.md +1 -1
- package/docs/TriggerBuildResponse.md +1 -1
- package/docs/TriggerCronResponse.md +1 -1
- package/docs/TriggerJobResponse.md +1 -1
- package/docs/TunnelStatus.md +1 -1
- package/docs/TunnelSummary.md +1 -1
- package/docs/TunnelsApi.md +18 -18
- package/docs/UpdateEnvironmentRequest.md +1 -1
- package/docs/UpdateGroupRequest.md +1 -1
- package/docs/UpdateLabelsRequest.md +1 -1
- package/docs/UpdateLabelsResponse.md +1 -1
- package/docs/UpdateNotifierRequest.md +1 -1
- package/docs/UpdateProjectRequest.md +1 -1
- package/docs/UpdateUserRequest.md +1 -1
- package/docs/UpdateVariableRequest.md +1 -1
- package/docs/UserRole.md +1 -1
- package/docs/UserView.md +1 -1
- package/docs/UsersApi.md +18 -18
- package/docs/VariablesApi.md +15 -15
- package/docs/VolumeInfo.md +45 -0
- package/docs/VolumeMount.md +4 -2
- package/docs/VolumeMountType.md +33 -0
- package/docs/VolumeSummary.md +2 -2
- package/docs/VolumesApi.md +163 -13
- package/docs/WebhookInfoResponse.md +1 -1
- package/docs/WebhookResponse.md +1 -1
- package/docs/WebhooksApi.md +9 -9
- package/docs/WorkflowAction.md +1 -1
- package/docs/WorkflowActionOneOf.md +1 -1
- package/docs/WorkflowActionOneOf1.md +1 -1
- package/docs/WorkflowActionOneOf2.md +1 -1
- package/docs/WorkflowActionOneOf3.md +1 -1
- package/docs/WorkflowRun.md +1 -1
- package/docs/WorkflowRunStatus.md +1 -1
- package/docs/WorkflowStep.md +1 -1
- package/docs/WorkflowsApi.md +18 -18
- package/package.json +1 -1
- package/src/apis/AuthenticationApi.ts +140 -0
- package/src/apis/ContainerNetworksApi.ts +418 -0
- package/src/apis/ContainersApi.ts +19 -4
- package/src/apis/EventsApi.ts +82 -0
- package/src/apis/PermissionsApi.ts +59 -0
- package/src/apis/SecretsApi.ts +151 -0
- package/src/apis/VolumesApi.ts +133 -10
- package/src/apis/index.ts +2 -0
- package/src/models/BridgeNetwork.ts +127 -0
- package/src/models/BridgeNetworkAttachment.ts +90 -0
- package/src/models/BridgeNetworkDetails.ts +143 -0
- package/src/models/BridgeNetworkDriver.ts +53 -0
- package/src/models/ConnectBridgeNetworkRequest.ts +83 -0
- package/src/models/ContainerEvent.ts +137 -0
- package/src/models/ContainerEventKind.ts +55 -0
- package/src/models/ContainerHealthInfo.ts +91 -0
- package/src/models/ContainerInfo.ts +69 -0
- package/src/models/ContainerRestartKind.ts +55 -0
- package/src/models/ContainerRestartPolicy.ts +100 -0
- package/src/models/ContainerWaitResponse.ts +36 -2
- package/src/models/CreateBridgeNetworkRequest.ts +109 -0
- package/src/models/CreateContainerRequest.ts +125 -0
- package/src/models/CreateVolumeRequest.ts +92 -0
- package/src/models/DisconnectBridgeNetworkRequest.ts +74 -0
- package/src/models/HealthCheckRequest.ts +144 -0
- package/src/models/NetworkAttachmentInfo.ts +87 -0
- package/src/models/NetworkAttachmentRequest.ts +89 -0
- package/src/models/OidcCallbackResponse.ts +94 -0
- package/src/models/OidcProviderPublic.ts +76 -0
- package/src/models/PortMapping.ts +104 -0
- package/src/models/PortProtocol.ts +53 -0
- package/src/models/PullImageRequest.ts +29 -0
- package/src/models/RegistryAuth.ts +100 -0
- package/src/models/RegistryAuthType.ts +53 -0
- package/src/models/RevealAllSecretsResponse.ts +76 -0
- package/src/models/RotateSecretRequest.ts +66 -0
- package/src/models/RotateSecretResponse.ts +85 -0
- package/src/models/VolumeInfo.ts +114 -0
- package/src/models/VolumeMount.ts +28 -5
- package/src/models/VolumeMountType.ts +58 -0
- package/src/models/VolumeSummary.ts +7 -4
- package/src/models/index.ts +27 -0
package/docs/ContainersApi.md
CHANGED
|
@@ -33,11 +33,11 @@ Pulls the image if needed, creates the container, and starts it. Returns the con
|
|
|
33
33
|
import {
|
|
34
34
|
Configuration,
|
|
35
35
|
ContainersApi,
|
|
36
|
-
} from '@zlayer/client';
|
|
37
|
-
import type { CreateContainerOperationRequest } from '@zlayer/client';
|
|
36
|
+
} from '@zlayer/api-client';
|
|
37
|
+
import type { CreateContainerOperationRequest } from '@zlayer/api-client';
|
|
38
38
|
|
|
39
39
|
async function example() {
|
|
40
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
40
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
41
41
|
const config = new Configuration({
|
|
42
42
|
// Configure HTTP bearer authorization: bearer_auth
|
|
43
43
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -108,11 +108,11 @@ Sends a stop signal (with a 30-second timeout), then removes the container. # E
|
|
|
108
108
|
import {
|
|
109
109
|
Configuration,
|
|
110
110
|
ContainersApi,
|
|
111
|
-
} from '@zlayer/client';
|
|
112
|
-
import type { DeleteContainerRequest } from '@zlayer/client';
|
|
111
|
+
} from '@zlayer/api-client';
|
|
112
|
+
import type { DeleteContainerRequest } from '@zlayer/api-client';
|
|
113
113
|
|
|
114
114
|
async function example() {
|
|
115
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
115
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
116
116
|
const config = new Configuration({
|
|
117
117
|
// Configure HTTP bearer authorization: bearer_auth
|
|
118
118
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -170,11 +170,11 @@ example().catch(console.error);
|
|
|
170
170
|
|
|
171
171
|
## execInContainer
|
|
172
172
|
|
|
173
|
-
> ContainerExecResponse execInContainer(id, containerExecRequest)
|
|
173
|
+
> ContainerExecResponse execInContainer(id, containerExecRequest, stream)
|
|
174
174
|
|
|
175
175
|
Execute a command in a running container.
|
|
176
176
|
|
|
177
|
-
# Errors Returns an error if the container is not found, the command is invalid, execution fails, or the user lacks the operator role.
|
|
177
|
+
When `stream=true` is passed as a query parameter, this endpoint upgrades to a Server-Sent Events stream emitting: - `event: stdout\\ndata: <line>\\n\\n` for each stdout line - `event: stderr\\ndata: <line>\\n\\n` for each stderr line - `event: exit\\ndata: {\"exit_code\": N}\\n\\n` as the final event # Errors Returns an error if the container is not found, the command is invalid, execution fails, or the user lacks the operator role.
|
|
178
178
|
|
|
179
179
|
### Example
|
|
180
180
|
|
|
@@ -182,11 +182,11 @@ Execute a command in a running container.
|
|
|
182
182
|
import {
|
|
183
183
|
Configuration,
|
|
184
184
|
ContainersApi,
|
|
185
|
-
} from '@zlayer/client';
|
|
186
|
-
import type { ExecInContainerRequest } from '@zlayer/client';
|
|
185
|
+
} from '@zlayer/api-client';
|
|
186
|
+
import type { ExecInContainerRequest } from '@zlayer/api-client';
|
|
187
187
|
|
|
188
188
|
async function example() {
|
|
189
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
189
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
190
190
|
const config = new Configuration({
|
|
191
191
|
// Configure HTTP bearer authorization: bearer_auth
|
|
192
192
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -198,6 +198,8 @@ async function example() {
|
|
|
198
198
|
id: id_example,
|
|
199
199
|
// ContainerExecRequest
|
|
200
200
|
containerExecRequest: ...,
|
|
201
|
+
// boolean | Stream exec events as SSE instead of returning a buffered JSON body. (optional)
|
|
202
|
+
stream: true,
|
|
201
203
|
} satisfies ExecInContainerRequest;
|
|
202
204
|
|
|
203
205
|
try {
|
|
@@ -219,6 +221,7 @@ example().catch(console.error);
|
|
|
219
221
|
|------------- | ------------- | ------------- | -------------|
|
|
220
222
|
| **id** | `string` | Container identifier | [Defaults to `undefined`] |
|
|
221
223
|
| **containerExecRequest** | [ContainerExecRequest](ContainerExecRequest.md) | | |
|
|
224
|
+
| **stream** | `boolean` | Stream exec events as SSE instead of returning a buffered JSON body. | [Optional] [Defaults to `undefined`] |
|
|
222
225
|
|
|
223
226
|
### Return type
|
|
224
227
|
|
|
@@ -237,7 +240,7 @@ example().catch(console.error);
|
|
|
237
240
|
### HTTP response details
|
|
238
241
|
| Status code | Description | Response headers |
|
|
239
242
|
|-------------|-------------|------------------|
|
|
240
|
-
| **200** | Command executed | - |
|
|
243
|
+
| **200** | Command executed (JSON body when stream=false, SSE stream when stream=true) | - |
|
|
241
244
|
| **400** | Invalid request | - |
|
|
242
245
|
| **401** | Unauthorized | - |
|
|
243
246
|
| **403** | Forbidden - operator role required | - |
|
|
@@ -260,11 +263,11 @@ Get details for a specific container.
|
|
|
260
263
|
import {
|
|
261
264
|
Configuration,
|
|
262
265
|
ContainersApi,
|
|
263
|
-
} from '@zlayer/client';
|
|
264
|
-
import type { GetContainerRequest } from '@zlayer/client';
|
|
266
|
+
} from '@zlayer/api-client';
|
|
267
|
+
import type { GetContainerRequest } from '@zlayer/api-client';
|
|
265
268
|
|
|
266
269
|
async function example() {
|
|
267
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
270
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
268
271
|
const config = new Configuration({
|
|
269
272
|
// Configure HTTP bearer authorization: bearer_auth
|
|
270
273
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -333,11 +336,11 @@ Returns the last N lines of container logs as plain text, or streams logs as Ser
|
|
|
333
336
|
import {
|
|
334
337
|
Configuration,
|
|
335
338
|
ContainersApi,
|
|
336
|
-
} from '@zlayer/client';
|
|
337
|
-
import type { GetContainerLogsRequest } from '@zlayer/client';
|
|
339
|
+
} from '@zlayer/api-client';
|
|
340
|
+
import type { GetContainerLogsRequest } from '@zlayer/api-client';
|
|
338
341
|
|
|
339
342
|
async function example() {
|
|
340
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
343
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
341
344
|
const config = new Configuration({
|
|
342
345
|
// Configure HTTP bearer authorization: bearer_auth
|
|
343
346
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -400,11 +403,11 @@ example().catch(console.error);
|
|
|
400
403
|
|
|
401
404
|
## getContainerStats
|
|
402
405
|
|
|
403
|
-
> ContainerStatsResponse getContainerStats(id)
|
|
406
|
+
> ContainerStatsResponse getContainerStats(id, stream, interval)
|
|
404
407
|
|
|
405
408
|
Get container resource statistics.
|
|
406
409
|
|
|
407
|
-
Returns CPU and memory usage statistics for the specified container. # Errors Returns an error if the container is not found or stats retrieval fails.
|
|
410
|
+
Returns CPU and memory usage statistics for the specified container. By default this is a one-shot JSON response. When the query string contains `stream=true`, the handler switches to Server-Sent Events and emits one `ContainerStatsResponse` sample every `interval` seconds (default 2, clamped to `[1, 60]`). The stream ends with a final `event: close` when the container exits or the runtime reports an unrecoverable error. # Errors Returns an error if the container is not found or stats retrieval fails.
|
|
408
411
|
|
|
409
412
|
### Example
|
|
410
413
|
|
|
@@ -412,11 +415,11 @@ Returns CPU and memory usage statistics for the specified container. # Errors
|
|
|
412
415
|
import {
|
|
413
416
|
Configuration,
|
|
414
417
|
ContainersApi,
|
|
415
|
-
} from '@zlayer/client';
|
|
416
|
-
import type { GetContainerStatsRequest } from '@zlayer/client';
|
|
418
|
+
} from '@zlayer/api-client';
|
|
419
|
+
import type { GetContainerStatsRequest } from '@zlayer/api-client';
|
|
417
420
|
|
|
418
421
|
async function example() {
|
|
419
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
422
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
420
423
|
const config = new Configuration({
|
|
421
424
|
// Configure HTTP bearer authorization: bearer_auth
|
|
422
425
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -426,6 +429,10 @@ async function example() {
|
|
|
426
429
|
const body = {
|
|
427
430
|
// string | Container identifier
|
|
428
431
|
id: id_example,
|
|
432
|
+
// boolean | Stream periodic samples as SSE events instead of a one-shot JSON response. (optional)
|
|
433
|
+
stream: true,
|
|
434
|
+
// number | Sample cadence in seconds (only used when `stream=true`). Clamped to `[1, 60]`. Defaults to `2` seconds. (optional)
|
|
435
|
+
interval: 56,
|
|
429
436
|
} satisfies GetContainerStatsRequest;
|
|
430
437
|
|
|
431
438
|
try {
|
|
@@ -446,6 +453,8 @@ example().catch(console.error);
|
|
|
446
453
|
| Name | Type | Description | Notes |
|
|
447
454
|
|------------- | ------------- | ------------- | -------------|
|
|
448
455
|
| **id** | `string` | Container identifier | [Defaults to `undefined`] |
|
|
456
|
+
| **stream** | `boolean` | Stream periodic samples as SSE events instead of a one-shot JSON response. | [Optional] [Defaults to `undefined`] |
|
|
457
|
+
| **interval** | `number` | Sample cadence in seconds (only used when `stream=true`). Clamped to `[1, 60]`. Defaults to `2` seconds. | [Optional] [Defaults to `undefined`] |
|
|
449
458
|
|
|
450
459
|
### Return type
|
|
451
460
|
|
|
@@ -464,7 +473,7 @@ example().catch(console.error);
|
|
|
464
473
|
### HTTP response details
|
|
465
474
|
| Status code | Description | Response headers |
|
|
466
475
|
|-------------|-------------|------------------|
|
|
467
|
-
| **200** | Container statistics | - |
|
|
476
|
+
| **200** | Container statistics (JSON one-shot or SSE stream) | - |
|
|
468
477
|
| **401** | Unauthorized | - |
|
|
469
478
|
| **404** | Container not found | - |
|
|
470
479
|
|
|
@@ -485,11 +494,11 @@ Mirrors Docker-compat `POST /containers/{id}/kill`. When the request b
|
|
|
485
494
|
import {
|
|
486
495
|
Configuration,
|
|
487
496
|
ContainersApi,
|
|
488
|
-
} from '@zlayer/client';
|
|
489
|
-
import type { KillContainerOperationRequest } from '@zlayer/client';
|
|
497
|
+
} from '@zlayer/api-client';
|
|
498
|
+
import type { KillContainerOperationRequest } from '@zlayer/api-client';
|
|
490
499
|
|
|
491
500
|
async function example() {
|
|
492
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
501
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
493
502
|
const config = new Configuration({
|
|
494
503
|
// Configure HTTP bearer authorization: bearer_auth
|
|
495
504
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -565,11 +574,11 @@ Returns all containers managed through this API. Optionally filter by label usin
|
|
|
565
574
|
import {
|
|
566
575
|
Configuration,
|
|
567
576
|
ContainersApi,
|
|
568
|
-
} from '@zlayer/client';
|
|
569
|
-
import type { ListContainersRequest } from '@zlayer/client';
|
|
577
|
+
} from '@zlayer/api-client';
|
|
578
|
+
import type { ListContainersRequest } from '@zlayer/api-client';
|
|
570
579
|
|
|
571
580
|
async function example() {
|
|
572
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
581
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
573
582
|
const config = new Configuration({
|
|
574
583
|
// Configure HTTP bearer authorization: bearer_auth
|
|
575
584
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -637,11 +646,11 @@ Composes `stop_container(timeout)` followed by `start_container&#
|
|
|
637
646
|
import {
|
|
638
647
|
Configuration,
|
|
639
648
|
ContainersApi,
|
|
640
|
-
} from '@zlayer/client';
|
|
641
|
-
import type { RestartContainerOperationRequest } from '@zlayer/client';
|
|
649
|
+
} from '@zlayer/api-client';
|
|
650
|
+
import type { RestartContainerOperationRequest } from '@zlayer/api-client';
|
|
642
651
|
|
|
643
652
|
async function example() {
|
|
644
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
653
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
645
654
|
const config = new Configuration({
|
|
646
655
|
// Configure HTTP bearer authorization: bearer_auth
|
|
647
656
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -715,11 +724,11 @@ Useful for re-starting a container that was stopped via `POST /api/v1/conta
|
|
|
715
724
|
import {
|
|
716
725
|
Configuration,
|
|
717
726
|
ContainersApi,
|
|
718
|
-
} from '@zlayer/client';
|
|
719
|
-
import type { StartContainerRequest } from '@zlayer/client';
|
|
727
|
+
} from '@zlayer/api-client';
|
|
728
|
+
import type { StartContainerRequest } from '@zlayer/api-client';
|
|
720
729
|
|
|
721
730
|
async function example() {
|
|
722
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
731
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
723
732
|
const config = new Configuration({
|
|
724
733
|
// Configure HTTP bearer authorization: bearer_auth
|
|
725
734
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -790,11 +799,11 @@ Sends the runtime\'s graceful stop signal and waits up to `timeout`
|
|
|
790
799
|
import {
|
|
791
800
|
Configuration,
|
|
792
801
|
ContainersApi,
|
|
793
|
-
} from '@zlayer/client';
|
|
794
|
-
import type { StopContainerOperationRequest } from '@zlayer/client';
|
|
802
|
+
} from '@zlayer/api-client';
|
|
803
|
+
import type { StopContainerOperationRequest } from '@zlayer/api-client';
|
|
795
804
|
|
|
796
805
|
async function example() {
|
|
797
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
806
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
798
807
|
const config = new Configuration({
|
|
799
808
|
// Configure HTTP bearer authorization: bearer_auth
|
|
800
809
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -868,11 +877,11 @@ This endpoint blocks until the container exits. Useful for CI runners that need
|
|
|
868
877
|
import {
|
|
869
878
|
Configuration,
|
|
870
879
|
ContainersApi,
|
|
871
|
-
} from '@zlayer/client';
|
|
872
|
-
import type { WaitContainerRequest } from '@zlayer/client';
|
|
880
|
+
} from '@zlayer/api-client';
|
|
881
|
+
import type { WaitContainerRequest } from '@zlayer/api-client';
|
|
873
882
|
|
|
874
883
|
async function example() {
|
|
875
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
884
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
876
885
|
const config = new Configuration({
|
|
877
886
|
// Configure HTTP bearer authorization: bearer_auth
|
|
878
887
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
|
|
2
|
+
# CreateBridgeNetworkRequest
|
|
3
|
+
|
|
4
|
+
Body for `POST /api/v1/container-networks`.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`driver` | [BridgeNetworkDriver](BridgeNetworkDriver.md)
|
|
11
|
+
`internal` | boolean
|
|
12
|
+
`labels` | { [key: string]: string; }
|
|
13
|
+
`name` | string
|
|
14
|
+
`subnet` | string
|
|
15
|
+
|
|
16
|
+
## Example
|
|
17
|
+
|
|
18
|
+
```typescript
|
|
19
|
+
import type { CreateBridgeNetworkRequest } from '@zlayer/api-client'
|
|
20
|
+
|
|
21
|
+
// TODO: Update the object below with actual values
|
|
22
|
+
const example = {
|
|
23
|
+
"driver": null,
|
|
24
|
+
"internal": null,
|
|
25
|
+
"labels": null,
|
|
26
|
+
"name": null,
|
|
27
|
+
"subnet": null,
|
|
28
|
+
} satisfies CreateBridgeNetworkRequest
|
|
29
|
+
|
|
30
|
+
console.log(example)
|
|
31
|
+
|
|
32
|
+
// Convert the instance to a JSON string
|
|
33
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
34
|
+
console.log(exampleJSON)
|
|
35
|
+
|
|
36
|
+
// Parse the JSON string back to an object
|
|
37
|
+
const exampleParsed = JSON.parse(exampleJSON) as CreateBridgeNetworkRequest
|
|
38
|
+
console.log(exampleParsed)
|
|
39
|
+
```
|
|
40
|
+
|
|
41
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
42
|
+
|
|
43
|
+
|
|
@@ -8,29 +8,47 @@ Request to create and start a container
|
|
|
8
8
|
Name | Type
|
|
9
9
|
------------ | -------------
|
|
10
10
|
`command` | Array<string>
|
|
11
|
+
`dns` | Array<string>
|
|
11
12
|
`env` | { [key: string]: string; }
|
|
13
|
+
`extraHosts` | Array<string>
|
|
14
|
+
`healthCheck` | [HealthCheckRequest](HealthCheckRequest.md)
|
|
15
|
+
`hostname` | string
|
|
12
16
|
`image` | string
|
|
13
17
|
`labels` | { [key: string]: string; }
|
|
14
18
|
`name` | string
|
|
19
|
+
`networks` | [Array<NetworkAttachmentRequest>](NetworkAttachmentRequest.md)
|
|
20
|
+
`ports` | [Array<PortMapping>](PortMapping.md)
|
|
15
21
|
`pullPolicy` | string
|
|
22
|
+
`registryAuth` | [RegistryAuth](RegistryAuth.md)
|
|
23
|
+
`registryCredentialId` | string
|
|
16
24
|
`resources` | [ContainerResourceLimits](ContainerResourceLimits.md)
|
|
25
|
+
`restartPolicy` | [ContainerRestartPolicy](ContainerRestartPolicy.md)
|
|
17
26
|
`volumes` | [Array<VolumeMount>](VolumeMount.md)
|
|
18
27
|
`workDir` | string
|
|
19
28
|
|
|
20
29
|
## Example
|
|
21
30
|
|
|
22
31
|
```typescript
|
|
23
|
-
import type { CreateContainerRequest } from '@zlayer/client'
|
|
32
|
+
import type { CreateContainerRequest } from '@zlayer/api-client'
|
|
24
33
|
|
|
25
34
|
// TODO: Update the object below with actual values
|
|
26
35
|
const example = {
|
|
27
36
|
"command": null,
|
|
37
|
+
"dns": null,
|
|
28
38
|
"env": null,
|
|
39
|
+
"extraHosts": null,
|
|
40
|
+
"healthCheck": null,
|
|
41
|
+
"hostname": null,
|
|
29
42
|
"image": null,
|
|
30
43
|
"labels": null,
|
|
31
44
|
"name": null,
|
|
45
|
+
"networks": null,
|
|
46
|
+
"ports": null,
|
|
32
47
|
"pullPolicy": null,
|
|
48
|
+
"registryAuth": null,
|
|
49
|
+
"registryCredentialId": null,
|
|
33
50
|
"resources": null,
|
|
51
|
+
"restartPolicy": null,
|
|
34
52
|
"volumes": null,
|
|
35
53
|
"workDir": null,
|
|
36
54
|
} satisfies CreateContainerRequest
|
|
@@ -14,7 +14,7 @@ Name | Type
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
import type { CreateEnvironmentRequest } from '@zlayer/client'
|
|
17
|
+
import type { CreateEnvironmentRequest } from '@zlayer/api-client'
|
|
18
18
|
|
|
19
19
|
// TODO: Update the object below with actual values
|
|
20
20
|
const example = {
|
|
@@ -14,7 +14,7 @@ Name | Type
|
|
|
14
14
|
## Example
|
|
15
15
|
|
|
16
16
|
```typescript
|
|
17
|
-
import type { CreateGitCredentialRequest } from '@zlayer/client'
|
|
17
|
+
import type { CreateGitCredentialRequest } from '@zlayer/api-client'
|
|
18
18
|
|
|
19
19
|
// TODO: Update the object below with actual values
|
|
20
20
|
const example = {
|
|
@@ -18,7 +18,7 @@ Name | Type
|
|
|
18
18
|
## Example
|
|
19
19
|
|
|
20
20
|
```typescript
|
|
21
|
-
import type { CreateNodeTunnelResponse } from '@zlayer/client'
|
|
21
|
+
import type { CreateNodeTunnelResponse } from '@zlayer/api-client'
|
|
22
22
|
|
|
23
23
|
// TODO: Update the object below with actual values
|
|
24
24
|
const example = {
|
|
@@ -15,7 +15,7 @@ Name | Type
|
|
|
15
15
|
## Example
|
|
16
16
|
|
|
17
17
|
```typescript
|
|
18
|
-
import type { CreateRegistryCredentialRequest } from '@zlayer/client'
|
|
18
|
+
import type { CreateRegistryCredentialRequest } from '@zlayer/api-client'
|
|
19
19
|
|
|
20
20
|
// TODO: Update the object below with actual values
|
|
21
21
|
const example = {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
# CreateVolumeRequest
|
|
3
|
+
|
|
4
|
+
Request body for `POST /api/v1/volumes`.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`labels` | { [key: string]: string; }
|
|
11
|
+
`name` | string
|
|
12
|
+
`size` | string
|
|
13
|
+
`tier` | string
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { CreateVolumeRequest } from '@zlayer/api-client'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"labels": null,
|
|
23
|
+
"name": null,
|
|
24
|
+
"size": null,
|
|
25
|
+
"tier": null,
|
|
26
|
+
} satisfies CreateVolumeRequest
|
|
27
|
+
|
|
28
|
+
console.log(example)
|
|
29
|
+
|
|
30
|
+
// Convert the instance to a JSON string
|
|
31
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
32
|
+
console.log(exampleJSON)
|
|
33
|
+
|
|
34
|
+
// Parse the JSON string back to an object
|
|
35
|
+
const exampleParsed = JSON.parse(exampleJSON) as CreateVolumeRequest
|
|
36
|
+
console.log(exampleParsed)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
40
|
+
|
|
41
|
+
|
package/docs/CredentialsApi.md
CHANGED
|
@@ -27,11 +27,11 @@ Create a new git credential. Admin only.
|
|
|
27
27
|
import {
|
|
28
28
|
Configuration,
|
|
29
29
|
CredentialsApi,
|
|
30
|
-
} from '@zlayer/client';
|
|
31
|
-
import type { CreateGitCredentialOperationRequest } from '@zlayer/client';
|
|
30
|
+
} from '@zlayer/api-client';
|
|
31
|
+
import type { CreateGitCredentialOperationRequest } 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 config = new Configuration({
|
|
36
36
|
// Configure HTTP bearer authorization: bearer_auth
|
|
37
37
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -100,11 +100,11 @@ Create a new registry credential. Admin only.
|
|
|
100
100
|
import {
|
|
101
101
|
Configuration,
|
|
102
102
|
CredentialsApi,
|
|
103
|
-
} from '@zlayer/client';
|
|
104
|
-
import type { CreateRegistryCredentialOperationRequest } from '@zlayer/client';
|
|
103
|
+
} from '@zlayer/api-client';
|
|
104
|
+
import type { CreateRegistryCredentialOperationRequest } 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 @@ Delete a git credential. Admin only.
|
|
|
173
173
|
import {
|
|
174
174
|
Configuration,
|
|
175
175
|
CredentialsApi,
|
|
176
|
-
} from '@zlayer/client';
|
|
177
|
-
import type { DeleteGitCredentialRequest } from '@zlayer/client';
|
|
176
|
+
} from '@zlayer/api-client';
|
|
177
|
+
import type { DeleteGitCredentialRequest } 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",
|
|
@@ -246,11 +246,11 @@ Delete a registry credential. Admin only.
|
|
|
246
246
|
import {
|
|
247
247
|
Configuration,
|
|
248
248
|
CredentialsApi,
|
|
249
|
-
} from '@zlayer/client';
|
|
250
|
-
import type { DeleteRegistryCredentialRequest } from '@zlayer/client';
|
|
249
|
+
} from '@zlayer/api-client';
|
|
250
|
+
import type { DeleteRegistryCredentialRequest } from '@zlayer/api-client';
|
|
251
251
|
|
|
252
252
|
async function example() {
|
|
253
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
253
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
254
254
|
const config = new Configuration({
|
|
255
255
|
// Configure HTTP bearer authorization: bearer_auth
|
|
256
256
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -319,11 +319,11 @@ List all git credentials (metadata only, no secret values).
|
|
|
319
319
|
import {
|
|
320
320
|
Configuration,
|
|
321
321
|
CredentialsApi,
|
|
322
|
-
} from '@zlayer/client';
|
|
323
|
-
import type { ListGitCredentialsRequest } from '@zlayer/client';
|
|
322
|
+
} from '@zlayer/api-client';
|
|
323
|
+
import type { ListGitCredentialsRequest } from '@zlayer/api-client';
|
|
324
324
|
|
|
325
325
|
async function example() {
|
|
326
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
326
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
327
327
|
const config = new Configuration({
|
|
328
328
|
// Configure HTTP bearer authorization: bearer_auth
|
|
329
329
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -383,11 +383,11 @@ List all registry credentials (metadata only, no passwords).
|
|
|
383
383
|
import {
|
|
384
384
|
Configuration,
|
|
385
385
|
CredentialsApi,
|
|
386
|
-
} from '@zlayer/client';
|
|
387
|
-
import type { ListRegistryCredentialsRequest } from '@zlayer/client';
|
|
386
|
+
} from '@zlayer/api-client';
|
|
387
|
+
import type { ListRegistryCredentialsRequest } from '@zlayer/api-client';
|
|
388
388
|
|
|
389
389
|
async function example() {
|
|
390
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
390
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
391
391
|
const config = new Configuration({
|
|
392
392
|
// Configure HTTP bearer authorization: bearer_auth
|
|
393
393
|
accessToken: "YOUR BEARER TOKEN",
|