@zlayer/api-client 0.10.86
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 +387 -0
- package/.openapi-generator/VERSION +1 -0
- package/.openapi-generator-ignore +23 -0
- package/README.md +434 -0
- package/dist/apis/AuditApi.d.ts +39 -0
- package/dist/apis/AuditApi.js +85 -0
- package/dist/apis/AuthenticationApi.d.ts +107 -0
- package/dist/apis/AuthenticationApi.js +265 -0
- package/dist/apis/BuildApi.d.ts +126 -0
- package/dist/apis/BuildApi.js +353 -0
- package/dist/apis/ClusterApi.d.ts +83 -0
- package/dist/apis/ClusterApi.js +209 -0
- package/dist/apis/ContainersApi.d.ts +228 -0
- package/dist/apis/ContainersApi.js +635 -0
- package/dist/apis/CredentialsApi.d.ts +114 -0
- package/dist/apis/CredentialsApi.js +313 -0
- package/dist/apis/CronApi.d.ts +100 -0
- package/dist/apis/CronApi.js +269 -0
- package/dist/apis/DeploymentsApi.d.ts +83 -0
- package/dist/apis/DeploymentsApi.js +221 -0
- package/dist/apis/EnvironmentsApi.d.ts +104 -0
- package/dist/apis/EnvironmentsApi.js +277 -0
- package/dist/apis/GroupsApi.d.ts +137 -0
- package/dist/apis/GroupsApi.js +328 -0
- package/dist/apis/HealthApi.d.ts +42 -0
- package/dist/apis/HealthApi.js +103 -0
- package/dist/apis/ImagesApi.d.ts +98 -0
- package/dist/apis/ImagesApi.js +268 -0
- package/dist/apis/InternalApi.d.ts +52 -0
- package/dist/apis/InternalApi.js +116 -0
- package/dist/apis/JobsApi.d.ts +88 -0
- package/dist/apis/JobsApi.js +230 -0
- package/dist/apis/NetworksApi.d.ts +101 -0
- package/dist/apis/NetworksApi.js +289 -0
- package/dist/apis/NodesApi.d.ts +81 -0
- package/dist/apis/NodesApi.js +222 -0
- package/dist/apis/NotifiersApi.d.ts +118 -0
- package/dist/apis/NotifiersApi.js +322 -0
- package/dist/apis/OverlayApi.d.ts +74 -0
- package/dist/apis/OverlayApi.js +181 -0
- package/dist/apis/PermissionsApi.d.ts +70 -0
- package/dist/apis/PermissionsApi.js +158 -0
- package/dist/apis/ProjectsApi.d.ts +171 -0
- package/dist/apis/ProjectsApi.js +473 -0
- package/dist/apis/ProxyApi.d.ts +74 -0
- package/dist/apis/ProxyApi.js +209 -0
- package/dist/apis/SecretsApi.d.ts +112 -0
- package/dist/apis/SecretsApi.js +303 -0
- package/dist/apis/ServicesApi.d.ts +93 -0
- package/dist/apis/ServicesApi.js +256 -0
- package/dist/apis/StorageApi.d.ts +32 -0
- package/dist/apis/StorageApi.js +77 -0
- package/dist/apis/SyncsApi.d.ts +100 -0
- package/dist/apis/SyncsApi.js +269 -0
- package/dist/apis/TasksApi.d.ts +120 -0
- package/dist/apis/TasksApi.js +320 -0
- package/dist/apis/TunnelsApi.d.ts +117 -0
- package/dist/apis/TunnelsApi.js +319 -0
- package/dist/apis/UsersApi.d.ts +119 -0
- package/dist/apis/UsersApi.js +284 -0
- package/dist/apis/VariablesApi.d.ts +104 -0
- package/dist/apis/VariablesApi.js +277 -0
- package/dist/apis/VolumesApi.d.ts +50 -0
- package/dist/apis/VolumesApi.js +130 -0
- package/dist/apis/WebhooksApi.d.ts +71 -0
- package/dist/apis/WebhooksApi.js +179 -0
- package/dist/apis/WorkflowsApi.d.ts +117 -0
- package/dist/apis/WorkflowsApi.js +317 -0
- package/dist/apis/index.d.ts +32 -0
- package/dist/apis/index.js +50 -0
- package/dist/index.d.ts +3 -0
- package/dist/index.js +21 -0
- package/dist/models/AddMemberRequest.d.ts +32 -0
- package/dist/models/AddMemberRequest.js +50 -0
- package/dist/models/AuditEntry.d.ts +83 -0
- package/dist/models/AuditEntry.js +74 -0
- package/dist/models/BackendGroupInfo.d.ts +57 -0
- package/dist/models/BackendGroupInfo.js +67 -0
- package/dist/models/BackendInfo.d.ts +50 -0
- package/dist/models/BackendInfo.js +62 -0
- package/dist/models/BackendsResponse.d.ts +39 -0
- package/dist/models/BackendsResponse.js +55 -0
- package/dist/models/BootstrapRequest.d.ts +44 -0
- package/dist/models/BootstrapRequest.js +56 -0
- package/dist/models/BuildKind.d.ts +27 -0
- package/dist/models/BuildKind.js +53 -0
- package/dist/models/BuildRequest.d.ts +64 -0
- package/dist/models/BuildRequest.js +58 -0
- package/dist/models/BuildRequestWithContext.d.ts +70 -0
- package/dist/models/BuildRequestWithContext.js +62 -0
- package/dist/models/BuildStateEnum.d.ts +27 -0
- package/dist/models/BuildStateEnum.js +53 -0
- package/dist/models/BuildStatus.d.ts +63 -0
- package/dist/models/BuildStatus.js +65 -0
- package/dist/models/BulkImportResponse.d.ts +44 -0
- package/dist/models/BulkImportResponse.js +58 -0
- package/dist/models/CertInfo.d.ts +56 -0
- package/dist/models/CertInfo.js +60 -0
- package/dist/models/ClusterJoinRequest.d.ts +99 -0
- package/dist/models/ClusterJoinRequest.js +81 -0
- package/dist/models/ClusterJoinResponse.d.ts +57 -0
- package/dist/models/ClusterJoinResponse.js +67 -0
- package/dist/models/ClusterNodeSummary.d.ts +110 -0
- package/dist/models/ClusterNodeSummary.js +102 -0
- package/dist/models/ClusterPeer.d.ts +68 -0
- package/dist/models/ClusterPeer.js +74 -0
- package/dist/models/ContainerExecRequest.d.ts +32 -0
- package/dist/models/ContainerExecRequest.js +50 -0
- package/dist/models/ContainerExecResponse.d.ts +44 -0
- package/dist/models/ContainerExecResponse.js +58 -0
- package/dist/models/ContainerInfo.d.ts +70 -0
- package/dist/models/ContainerInfo.js +70 -0
- package/dist/models/ContainerResourceLimits.d.ts +38 -0
- package/dist/models/ContainerResourceLimits.js +50 -0
- package/dist/models/ContainerStatsResponse.d.ts +56 -0
- package/dist/models/ContainerStatsResponse.js +66 -0
- package/dist/models/ContainerWaitResponse.d.ts +38 -0
- package/dist/models/ContainerWaitResponse.js +54 -0
- package/dist/models/CreateContainerRequest.d.ts +86 -0
- package/dist/models/CreateContainerRequest.js +68 -0
- package/dist/models/CreateDeploymentRequest.d.ts +32 -0
- package/dist/models/CreateDeploymentRequest.js +50 -0
- package/dist/models/CreateEnvironmentRequest.d.ts +44 -0
- package/dist/models/CreateEnvironmentRequest.js +54 -0
- package/dist/models/CreateGitCredentialRequest.d.ts +45 -0
- package/dist/models/CreateGitCredentialRequest.js +59 -0
- package/dist/models/CreateGroupRequest.d.ts +38 -0
- package/dist/models/CreateGroupRequest.js +52 -0
- package/dist/models/CreateNodeTunnelRequest.d.ts +62 -0
- package/dist/models/CreateNodeTunnelRequest.js +68 -0
- package/dist/models/CreateNodeTunnelResponse.d.ts +68 -0
- package/dist/models/CreateNodeTunnelResponse.js +74 -0
- package/dist/models/CreateNotifierRequest.d.ts +46 -0
- package/dist/models/CreateNotifierRequest.js +60 -0
- package/dist/models/CreateProjectRequest.d.ts +100 -0
- package/dist/models/CreateProjectRequest.js +73 -0
- package/dist/models/CreateRegistryCredentialRequest.d.ts +51 -0
- package/dist/models/CreateRegistryCredentialRequest.js +63 -0
- package/dist/models/CreateSecretRequest.d.ts +48 -0
- package/dist/models/CreateSecretRequest.js +56 -0
- package/dist/models/CreateSyncRequest.d.ts +57 -0
- package/dist/models/CreateSyncRequest.js +60 -0
- package/dist/models/CreateTaskRequest.d.ts +51 -0
- package/dist/models/CreateTaskRequest.js +61 -0
- package/dist/models/CreateTunnelRequest.d.ts +44 -0
- package/dist/models/CreateTunnelRequest.js +54 -0
- package/dist/models/CreateTunnelResponse.d.ts +62 -0
- package/dist/models/CreateTunnelResponse.js +70 -0
- package/dist/models/CreateUserRequest.d.ts +51 -0
- package/dist/models/CreateUserRequest.js +61 -0
- package/dist/models/CreateVariableRequest.d.ts +45 -0
- package/dist/models/CreateVariableRequest.js +56 -0
- package/dist/models/CreateWorkflowRequest.d.ts +45 -0
- package/dist/models/CreateWorkflowRequest.js +57 -0
- package/dist/models/CronJobResponse.d.ts +56 -0
- package/dist/models/CronJobResponse.js +62 -0
- package/dist/models/CronStatusResponse.d.ts +44 -0
- package/dist/models/CronStatusResponse.js +58 -0
- package/dist/models/CsrfResponse.d.ts +32 -0
- package/dist/models/CsrfResponse.js +50 -0
- package/dist/models/DeploymentDetails.d.ts +63 -0
- package/dist/models/DeploymentDetails.js +71 -0
- package/dist/models/DeploymentSummary.d.ts +50 -0
- package/dist/models/DeploymentSummary.js +62 -0
- package/dist/models/DnsStatusResponse.d.ts +62 -0
- package/dist/models/DnsStatusResponse.js +64 -0
- package/dist/models/ForceLeaderRequest.d.ts +32 -0
- package/dist/models/ForceLeaderRequest.js +50 -0
- package/dist/models/ForceLeaderResponse.d.ts +50 -0
- package/dist/models/ForceLeaderResponse.js +62 -0
- package/dist/models/GitCredentialKindSchema.d.ts +25 -0
- package/dist/models/GitCredentialKindSchema.js +51 -0
- package/dist/models/GitCredentialResponse.d.ts +45 -0
- package/dist/models/GitCredentialResponse.js +59 -0
- package/dist/models/GpuInfoSummary.d.ts +44 -0
- package/dist/models/GpuInfoSummary.js +58 -0
- package/dist/models/GpuUtilizationReport.d.ts +62 -0
- package/dist/models/GpuUtilizationReport.js +66 -0
- package/dist/models/GrantPermissionRequest.d.ts +58 -0
- package/dist/models/GrantPermissionRequest.js +66 -0
- package/dist/models/GroupMembersResponse.d.ts +38 -0
- package/dist/models/GroupMembersResponse.js +54 -0
- package/dist/models/HealthResponse.d.ts +50 -0
- package/dist/models/HealthResponse.js +58 -0
- package/dist/models/HeartbeatRequest.d.ts +57 -0
- package/dist/models/HeartbeatRequest.js +65 -0
- package/dist/models/ImageInfoDto.d.ts +45 -0
- package/dist/models/ImageInfoDto.js +54 -0
- package/dist/models/InternalScaleRequest.d.ts +38 -0
- package/dist/models/InternalScaleRequest.js +54 -0
- package/dist/models/InternalScaleResponse.d.ts +50 -0
- package/dist/models/InternalScaleResponse.js +60 -0
- package/dist/models/IpAllocationResponse.d.ts +62 -0
- package/dist/models/IpAllocationResponse.js +68 -0
- package/dist/models/JobExecutionResponse.d.ts +86 -0
- package/dist/models/JobExecutionResponse.js +74 -0
- package/dist/models/JoinTokenResponse.d.ts +62 -0
- package/dist/models/JoinTokenResponse.js +70 -0
- package/dist/models/KillContainerRequest.d.ts +34 -0
- package/dist/models/KillContainerRequest.js +48 -0
- package/dist/models/LinkDeploymentRequest.d.ts +32 -0
- package/dist/models/LinkDeploymentRequest.js +50 -0
- package/dist/models/LoginRequest.d.ts +38 -0
- package/dist/models/LoginRequest.js +54 -0
- package/dist/models/LoginResponse.d.ts +39 -0
- package/dist/models/LoginResponse.js +55 -0
- package/dist/models/NetworkSummary.d.ts +56 -0
- package/dist/models/NetworkSummary.js +64 -0
- package/dist/models/NodeDetails.d.ts +89 -0
- package/dist/models/NodeDetails.js +87 -0
- package/dist/models/NodeResourceInfo.d.ts +62 -0
- package/dist/models/NodeResourceInfo.js +70 -0
- package/dist/models/NodeSummary.d.ts +64 -0
- package/dist/models/NodeSummary.js +70 -0
- package/dist/models/NotifierConfig.d.ts +25 -0
- package/dist/models/NotifierConfig.js +71 -0
- package/dist/models/NotifierConfigOneOf.d.ts +45 -0
- package/dist/models/NotifierConfigOneOf.js +61 -0
- package/dist/models/NotifierConfigOneOf1.d.ts +45 -0
- package/dist/models/NotifierConfigOneOf1.js +61 -0
- package/dist/models/NotifierConfigOneOf2.d.ts +59 -0
- package/dist/models/NotifierConfigOneOf2.js +65 -0
- package/dist/models/NotifierConfigOneOf3.d.ts +75 -0
- package/dist/models/NotifierConfigOneOf3.js +81 -0
- package/dist/models/NotifierKind.d.ts +27 -0
- package/dist/models/NotifierKind.js +53 -0
- package/dist/models/OverlayStatusResponse.d.ts +80 -0
- package/dist/models/OverlayStatusResponse.js +82 -0
- package/dist/models/PeerInfo.d.ts +68 -0
- package/dist/models/PeerInfo.js +68 -0
- package/dist/models/PeerListResponse.d.ts +45 -0
- package/dist/models/PeerListResponse.js +59 -0
- package/dist/models/PermissionLevel.d.ts +28 -0
- package/dist/models/PermissionLevel.js +54 -0
- package/dist/models/ProjectPullResponse.d.ts +56 -0
- package/dist/models/ProjectPullResponse.js +66 -0
- package/dist/models/PruneResultDto.d.ts +38 -0
- package/dist/models/PruneResultDto.js +54 -0
- package/dist/models/PullImageRequest.d.ts +39 -0
- package/dist/models/PullImageRequest.js +52 -0
- package/dist/models/PullImageResponse.d.ts +46 -0
- package/dist/models/PullImageResponse.js +54 -0
- package/dist/models/RegisteredServiceInfo.d.ts +62 -0
- package/dist/models/RegisteredServiceInfo.js +70 -0
- package/dist/models/RegistryAuthTypeSchema.d.ts +25 -0
- package/dist/models/RegistryAuthTypeSchema.js +51 -0
- package/dist/models/RegistryCredentialResponse.d.ts +51 -0
- package/dist/models/RegistryCredentialResponse.js +63 -0
- package/dist/models/ReplicationInfo.d.ts +50 -0
- package/dist/models/ReplicationInfo.js +60 -0
- package/dist/models/RestartContainerRequest.d.ts +34 -0
- package/dist/models/RestartContainerRequest.js +48 -0
- package/dist/models/RouteInfo.d.ts +80 -0
- package/dist/models/RouteInfo.js +80 -0
- package/dist/models/RoutesResponse.d.ts +39 -0
- package/dist/models/RoutesResponse.js +55 -0
- package/dist/models/ScaleRequest.d.ts +32 -0
- package/dist/models/ScaleRequest.js +50 -0
- package/dist/models/SecretMetadataResponse.d.ts +58 -0
- package/dist/models/SecretMetadataResponse.js +64 -0
- package/dist/models/ServiceDetails.d.ts +70 -0
- package/dist/models/ServiceDetails.js +76 -0
- package/dist/models/ServiceEndpoint.d.ts +50 -0
- package/dist/models/ServiceEndpoint.js +60 -0
- package/dist/models/ServiceHealthInfo.d.ts +56 -0
- package/dist/models/ServiceHealthInfo.js +66 -0
- package/dist/models/ServiceMetrics.d.ts +44 -0
- package/dist/models/ServiceMetrics.js +56 -0
- package/dist/models/ServiceSummary.d.ts +63 -0
- package/dist/models/ServiceSummary.js +71 -0
- package/dist/models/SetPasswordRequest.d.ts +39 -0
- package/dist/models/SetPasswordRequest.js +52 -0
- package/dist/models/StepResult.d.ts +44 -0
- package/dist/models/StepResult.js +56 -0
- package/dist/models/StopContainerRequest.d.ts +34 -0
- package/dist/models/StopContainerRequest.js +48 -0
- package/dist/models/StorageStatusResponse.d.ts +33 -0
- package/dist/models/StorageStatusResponse.js +51 -0
- package/dist/models/StoredEnvironment.d.ts +66 -0
- package/dist/models/StoredEnvironment.js +66 -0
- package/dist/models/StoredNotifier.d.ts +71 -0
- package/dist/models/StoredNotifier.js +76 -0
- package/dist/models/StoredPermission.d.ts +72 -0
- package/dist/models/StoredPermission.js +74 -0
- package/dist/models/StoredProject.d.ts +132 -0
- package/dist/models/StoredProject.js +87 -0
- package/dist/models/StoredSync.d.ts +86 -0
- package/dist/models/StoredSync.js +74 -0
- package/dist/models/StoredTask.d.ts +72 -0
- package/dist/models/StoredTask.js +73 -0
- package/dist/models/StoredUserGroup.d.ts +56 -0
- package/dist/models/StoredUserGroup.js +64 -0
- package/dist/models/StoredVariable.d.ts +68 -0
- package/dist/models/StoredVariable.js +68 -0
- package/dist/models/StoredWorkflow.d.ts +64 -0
- package/dist/models/StoredWorkflow.js +69 -0
- package/dist/models/StreamBackendInfo.d.ts +32 -0
- package/dist/models/StreamBackendInfo.js +50 -0
- package/dist/models/StreamInfo.d.ts +57 -0
- package/dist/models/StreamInfo.js +67 -0
- package/dist/models/StreamsResponse.d.ts +51 -0
- package/dist/models/StreamsResponse.js +63 -0
- package/dist/models/SubjectKind.d.ts +25 -0
- package/dist/models/SubjectKind.js +51 -0
- package/dist/models/SuccessResponse.d.ts +32 -0
- package/dist/models/SuccessResponse.js +50 -0
- package/dist/models/SyncApplyResponse.d.ts +52 -0
- package/dist/models/SyncApplyResponse.js +57 -0
- package/dist/models/SyncDiffResponse.d.ts +45 -0
- package/dist/models/SyncDiffResponse.js +59 -0
- package/dist/models/SyncResourceResponse.d.ts +44 -0
- package/dist/models/SyncResourceResponse.js +58 -0
- package/dist/models/SyncResourceResult.d.ts +57 -0
- package/dist/models/SyncResourceResult.js +64 -0
- package/dist/models/TagImageRequest.d.ts +40 -0
- package/dist/models/TagImageRequest.js +54 -0
- package/dist/models/TaskKind.d.ts +24 -0
- package/dist/models/TaskKind.js +50 -0
- package/dist/models/TaskRun.d.ts +68 -0
- package/dist/models/TaskRun.js +70 -0
- package/dist/models/TemplateInfo.d.ts +44 -0
- package/dist/models/TemplateInfo.js +58 -0
- package/dist/models/TestNotifierResponse.d.ts +38 -0
- package/dist/models/TestNotifierResponse.js +54 -0
- package/dist/models/TlsResponse.d.ts +51 -0
- package/dist/models/TlsResponse.js +61 -0
- package/dist/models/TokenRequest.d.ts +38 -0
- package/dist/models/TokenRequest.js +54 -0
- package/dist/models/TokenResponse.d.ts +44 -0
- package/dist/models/TokenResponse.js +58 -0
- package/dist/models/TriggerBuildResponse.d.ts +38 -0
- package/dist/models/TriggerBuildResponse.js +54 -0
- package/dist/models/TriggerCronResponse.d.ts +38 -0
- package/dist/models/TriggerCronResponse.js +54 -0
- package/dist/models/TriggerJobResponse.d.ts +38 -0
- package/dist/models/TriggerJobResponse.js +54 -0
- package/dist/models/TunnelStatus.d.ts +87 -0
- package/dist/models/TunnelStatus.js +83 -0
- package/dist/models/TunnelSummary.d.ts +68 -0
- package/dist/models/TunnelSummary.js +72 -0
- package/dist/models/UpdateEnvironmentRequest.d.ts +38 -0
- package/dist/models/UpdateEnvironmentRequest.js +50 -0
- package/dist/models/UpdateGroupRequest.d.ts +38 -0
- package/dist/models/UpdateGroupRequest.js +50 -0
- package/dist/models/UpdateLabelsRequest.d.ts +40 -0
- package/dist/models/UpdateLabelsRequest.js +54 -0
- package/dist/models/UpdateLabelsResponse.d.ts +34 -0
- package/dist/models/UpdateLabelsResponse.js +50 -0
- package/dist/models/UpdateNotifierRequest.d.ts +45 -0
- package/dist/models/UpdateNotifierRequest.js +53 -0
- package/dist/models/UpdateProjectRequest.d.ts +100 -0
- package/dist/models/UpdateProjectRequest.js +71 -0
- package/dist/models/UpdateUserRequest.d.ts +46 -0
- package/dist/models/UpdateUserRequest.js +53 -0
- package/dist/models/UpdateVariableRequest.d.ts +38 -0
- package/dist/models/UpdateVariableRequest.js +50 -0
- package/dist/models/UserRole.d.ts +26 -0
- package/dist/models/UserRole.js +52 -0
- package/dist/models/UserView.d.ts +62 -0
- package/dist/models/UserView.js +68 -0
- package/dist/models/VolumeMount.d.ts +44 -0
- package/dist/models/VolumeMount.js +56 -0
- package/dist/models/VolumeSummary.d.ts +44 -0
- package/dist/models/VolumeSummary.js +56 -0
- package/dist/models/WebhookInfoResponse.d.ts +38 -0
- package/dist/models/WebhookInfoResponse.js +54 -0
- package/dist/models/WebhookResponse.d.ts +38 -0
- package/dist/models/WebhookResponse.js +54 -0
- package/dist/models/WorkflowAction.d.ts +25 -0
- package/dist/models/WorkflowAction.js +71 -0
- package/dist/models/WorkflowActionOneOf.d.ts +45 -0
- package/dist/models/WorkflowActionOneOf.js +61 -0
- package/dist/models/WorkflowActionOneOf1.d.ts +45 -0
- package/dist/models/WorkflowActionOneOf1.js +61 -0
- package/dist/models/WorkflowActionOneOf2.d.ts +45 -0
- package/dist/models/WorkflowActionOneOf2.js +61 -0
- package/dist/models/WorkflowActionOneOf3.d.ts +45 -0
- package/dist/models/WorkflowActionOneOf3.js +61 -0
- package/dist/models/WorkflowRun.d.ts +64 -0
- package/dist/models/WorkflowRun.js +70 -0
- package/dist/models/WorkflowRunStatus.d.ts +27 -0
- package/dist/models/WorkflowRunStatus.js +53 -0
- package/dist/models/WorkflowStep.d.ts +45 -0
- package/dist/models/WorkflowStep.js +57 -0
- package/dist/models/index.d.ts +156 -0
- package/dist/models/index.js +174 -0
- package/dist/runtime.d.ts +184 -0
- package/dist/runtime.js +365 -0
- package/docs/AddMemberRequest.md +35 -0
- package/docs/AuditApi.md +89 -0
- package/docs/AuditEntry.md +51 -0
- package/docs/AuthenticationApi.md +395 -0
- package/docs/BackendGroupInfo.md +43 -0
- package/docs/BackendInfo.md +41 -0
- package/docs/BackendsResponse.md +37 -0
- package/docs/BootstrapRequest.md +39 -0
- package/docs/BuildApi.md +495 -0
- package/docs/BuildKind.md +33 -0
- package/docs/BuildRequest.md +45 -0
- package/docs/BuildRequestWithContext.md +47 -0
- package/docs/BuildStateEnum.md +33 -0
- package/docs/BuildStatus.md +45 -0
- package/docs/BulkImportResponse.md +39 -0
- package/docs/CertInfo.md +43 -0
- package/docs/ClusterApi.md +288 -0
- package/docs/ClusterJoinRequest.md +57 -0
- package/docs/ClusterJoinResponse.md +43 -0
- package/docs/ClusterNodeSummary.md +61 -0
- package/docs/ClusterPeer.md +47 -0
- package/docs/ContainerExecRequest.md +35 -0
- package/docs/ContainerExecResponse.md +39 -0
- package/docs/ContainerInfo.md +47 -0
- package/docs/ContainerResourceLimits.md +37 -0
- package/docs/ContainerStatsResponse.md +43 -0
- package/docs/ContainerWaitResponse.md +37 -0
- package/docs/ContainersApi.md +928 -0
- package/docs/CreateContainerRequest.md +51 -0
- package/docs/CreateDeploymentRequest.md +35 -0
- package/docs/CreateEnvironmentRequest.md +39 -0
- package/docs/CreateGitCredentialRequest.md +39 -0
- package/docs/CreateGroupRequest.md +37 -0
- package/docs/CreateNodeTunnelRequest.md +45 -0
- package/docs/CreateNodeTunnelResponse.md +47 -0
- package/docs/CreateNotifierRequest.md +39 -0
- package/docs/CreateProjectRequest.md +57 -0
- package/docs/CreateRegistryCredentialRequest.md +41 -0
- package/docs/CreateSecretRequest.md +39 -0
- package/docs/CreateSyncRequest.md +43 -0
- package/docs/CreateTaskRequest.md +41 -0
- package/docs/CreateTunnelRequest.md +39 -0
- package/docs/CreateTunnelResponse.md +45 -0
- package/docs/CreateUserRequest.md +41 -0
- package/docs/CreateVariableRequest.md +39 -0
- package/docs/CreateWorkflowRequest.md +39 -0
- package/docs/CredentialsApi.md +434 -0
- package/docs/CronApi.md +369 -0
- package/docs/CronJobResponse.md +43 -0
- package/docs/CronStatusResponse.md +39 -0
- package/docs/CsrfResponse.md +34 -0
- package/docs/DeploymentDetails.md +45 -0
- package/docs/DeploymentSummary.md +41 -0
- package/docs/DeploymentsApi.md +295 -0
- package/docs/DnsStatusResponse.md +45 -0
- package/docs/EnvironmentsApi.md +383 -0
- package/docs/ForceLeaderRequest.md +35 -0
- package/docs/ForceLeaderResponse.md +41 -0
- package/docs/GitCredentialKindSchema.md +33 -0
- package/docs/GitCredentialResponse.md +39 -0
- package/docs/GpuInfoSummary.md +39 -0
- package/docs/GpuUtilizationReport.md +45 -0
- package/docs/GrantPermissionRequest.md +43 -0
- package/docs/GroupMembersResponse.md +37 -0
- package/docs/GroupsApi.md +497 -0
- package/docs/HealthApi.md +125 -0
- package/docs/HealthResponse.md +41 -0
- package/docs/HeartbeatRequest.md +43 -0
- package/docs/ImageInfoDto.md +39 -0
- package/docs/ImagesApi.md +372 -0
- package/docs/InternalApi.md +149 -0
- package/docs/InternalScaleRequest.md +37 -0
- package/docs/InternalScaleResponse.md +41 -0
- package/docs/IpAllocationResponse.md +45 -0
- package/docs/JobExecutionResponse.md +53 -0
- package/docs/JobsApi.md +311 -0
- package/docs/JoinTokenResponse.md +45 -0
- package/docs/KillContainerRequest.md +35 -0
- package/docs/LinkDeploymentRequest.md +35 -0
- package/docs/LoginRequest.md +36 -0
- package/docs/LoginResponse.md +37 -0
- package/docs/NetworkSummary.md +43 -0
- package/docs/NetworksApi.md +377 -0
- package/docs/NodeDetails.md +53 -0
- package/docs/NodeResourceInfo.md +45 -0
- package/docs/NodeSummary.md +45 -0
- package/docs/NodesApi.md +292 -0
- package/docs/NotifierConfig.md +55 -0
- package/docs/NotifierConfigOneOf.md +37 -0
- package/docs/NotifierConfigOneOf1.md +37 -0
- package/docs/NotifierConfigOneOf2.md +41 -0
- package/docs/NotifierConfigOneOf3.md +47 -0
- package/docs/NotifierKind.md +33 -0
- package/docs/NotifiersApi.md +446 -0
- package/docs/OverlayApi.md +251 -0
- package/docs/OverlayStatusResponse.md +51 -0
- package/docs/PeerInfo.md +47 -0
- package/docs/PeerListResponse.md +39 -0
- package/docs/PermissionLevel.md +33 -0
- package/docs/PermissionsApi.md +220 -0
- package/docs/ProjectPullResponse.md +43 -0
- package/docs/ProjectsApi.md +676 -0
- package/docs/ProxyApi.md +268 -0
- package/docs/PruneResultDto.md +37 -0
- package/docs/PullImageRequest.md +37 -0
- package/docs/PullImageResponse.md +39 -0
- package/docs/RegisteredServiceInfo.md +45 -0
- package/docs/RegistryAuthTypeSchema.md +33 -0
- package/docs/RegistryCredentialResponse.md +41 -0
- package/docs/ReplicationInfo.md +41 -0
- package/docs/RestartContainerRequest.md +35 -0
- package/docs/RouteInfo.md +51 -0
- package/docs/RoutesResponse.md +37 -0
- package/docs/ScaleRequest.md +35 -0
- package/docs/SecretMetadataResponse.md +43 -0
- package/docs/SecretsApi.md +411 -0
- package/docs/ServiceDetails.md +47 -0
- package/docs/ServiceEndpoint.md +41 -0
- package/docs/ServiceHealthInfo.md +43 -0
- package/docs/ServiceMetrics.md +39 -0
- package/docs/ServiceSummary.md +45 -0
- package/docs/ServicesApi.md +326 -0
- package/docs/SetPasswordRequest.md +37 -0
- package/docs/StepResult.md +39 -0
- package/docs/StopContainerRequest.md +35 -0
- package/docs/StorageApi.md +73 -0
- package/docs/StorageStatusResponse.md +35 -0
- package/docs/StoredEnvironment.md +45 -0
- package/docs/StoredNotifier.md +47 -0
- package/docs/StoredPermission.md +47 -0
- package/docs/StoredProject.md +65 -0
- package/docs/StoredSync.md +51 -0
- package/docs/StoredTask.md +47 -0
- package/docs/StoredUserGroup.md +43 -0
- package/docs/StoredVariable.md +45 -0
- package/docs/StoredWorkflow.md +45 -0
- package/docs/StreamBackendInfo.md +35 -0
- package/docs/StreamInfo.md +43 -0
- package/docs/StreamsResponse.md +41 -0
- package/docs/SubjectKind.md +33 -0
- package/docs/SuccessResponse.md +35 -0
- package/docs/SyncApplyResponse.md +39 -0
- package/docs/SyncDiffResponse.md +39 -0
- package/docs/SyncResourceResponse.md +39 -0
- package/docs/SyncResourceResult.md +43 -0
- package/docs/SyncsApi.md +365 -0
- package/docs/TagImageRequest.md +37 -0
- package/docs/TaskKind.md +33 -0
- package/docs/TaskRun.md +47 -0
- package/docs/TasksApi.md +450 -0
- package/docs/TemplateInfo.md +39 -0
- package/docs/TestNotifierResponse.md +37 -0
- package/docs/TlsResponse.md +41 -0
- package/docs/TokenRequest.md +37 -0
- package/docs/TokenResponse.md +39 -0
- package/docs/TriggerBuildResponse.md +37 -0
- package/docs/TriggerCronResponse.md +37 -0
- package/docs/TriggerJobResponse.md +37 -0
- package/docs/TunnelStatus.md +53 -0
- package/docs/TunnelSummary.md +47 -0
- package/docs/TunnelsApi.md +445 -0
- package/docs/UpdateEnvironmentRequest.md +37 -0
- package/docs/UpdateGroupRequest.md +37 -0
- package/docs/UpdateLabelsRequest.md +37 -0
- package/docs/UpdateLabelsResponse.md +35 -0
- package/docs/UpdateNotifierRequest.md +39 -0
- package/docs/UpdateProjectRequest.md +57 -0
- package/docs/UpdateUserRequest.md +39 -0
- package/docs/UpdateVariableRequest.md +37 -0
- package/docs/UserRole.md +33 -0
- package/docs/UserView.md +45 -0
- package/docs/UsersApi.md +427 -0
- package/docs/VariablesApi.md +382 -0
- package/docs/VolumeMount.md +39 -0
- package/docs/VolumeSummary.md +39 -0
- package/docs/VolumesApi.md +152 -0
- package/docs/WebhookInfoResponse.md +37 -0
- package/docs/WebhookResponse.md +37 -0
- package/docs/WebhooksApi.md +233 -0
- package/docs/WorkflowAction.md +41 -0
- package/docs/WorkflowActionOneOf.md +37 -0
- package/docs/WorkflowActionOneOf1.md +37 -0
- package/docs/WorkflowActionOneOf2.md +37 -0
- package/docs/WorkflowActionOneOf3.md +37 -0
- package/docs/WorkflowRun.md +45 -0
- package/docs/WorkflowRunStatus.md +33 -0
- package/docs/WorkflowStep.md +39 -0
- package/docs/WorkflowsApi.md +441 -0
- package/package.json +19 -0
- package/src/apis/AuditApi.ts +97 -0
- package/src/apis/AuthenticationApi.ts +319 -0
- package/src/apis/BuildApi.ts +411 -0
- package/src/apis/ClusterApi.ts +258 -0
- package/src/apis/ContainersApi.ts +813 -0
- package/src/apis/CredentialsApi.ts +371 -0
- package/src/apis/CronApi.ts +319 -0
- package/src/apis/DeploymentsApi.ts +261 -0
- package/src/apis/EnvironmentsApi.ts +339 -0
- package/src/apis/GroupsApi.ts +414 -0
- package/src/apis/HealthApi.ts +104 -0
- package/src/apis/ImagesApi.ts +320 -0
- package/src/apis/InternalApi.ts +137 -0
- package/src/apis/JobsApi.ts +278 -0
- package/src/apis/NetworksApi.ts +337 -0
- package/src/apis/NodesApi.ts +265 -0
- package/src/apis/NotifiersApi.ts +393 -0
- package/src/apis/OverlayApi.ts +195 -0
- package/src/apis/PermissionsApi.ts +188 -0
- package/src/apis/ProjectsApi.ts +591 -0
- package/src/apis/ProxyApi.ts +227 -0
- package/src/apis/SecretsApi.ts +382 -0
- package/src/apis/ServicesApi.ts +329 -0
- package/src/apis/StorageApi.ts +77 -0
- package/src/apis/SyncsApi.ts +323 -0
- package/src/apis/TasksApi.ts +387 -0
- package/src/apis/TunnelsApi.ts +394 -0
- package/src/apis/UsersApi.ts +355 -0
- package/src/apis/VariablesApi.ts +339 -0
- package/src/apis/VolumesApi.ts +147 -0
- package/src/apis/WebhooksApi.ts +222 -0
- package/src/apis/WorkflowsApi.ts +379 -0
- package/src/apis/index.ts +34 -0
- package/src/index.ts +5 -0
- package/src/models/AddMemberRequest.ts +66 -0
- package/src/models/AuditEntry.ts +137 -0
- package/src/models/BackendGroupInfo.ts +110 -0
- package/src/models/BackendInfo.ts +93 -0
- package/src/models/BackendsResponse.ts +83 -0
- package/src/models/BootstrapRequest.ts +83 -0
- package/src/models/BuildKind.ts +55 -0
- package/src/models/BuildRequest.ts +105 -0
- package/src/models/BuildRequestWithContext.ts +114 -0
- package/src/models/BuildStateEnum.ts +55 -0
- package/src/models/BuildStatus.ts +118 -0
- package/src/models/BulkImportResponse.ts +84 -0
- package/src/models/CertInfo.ts +99 -0
- package/src/models/ClusterJoinRequest.ts +166 -0
- package/src/models/ClusterJoinResponse.ts +110 -0
- package/src/models/ClusterNodeSummary.ts +183 -0
- package/src/models/ClusterPeer.ts +120 -0
- package/src/models/ContainerExecRequest.ts +66 -0
- package/src/models/ContainerExecResponse.ts +84 -0
- package/src/models/ContainerInfo.ts +118 -0
- package/src/models/ContainerResourceLimits.ts +73 -0
- package/src/models/ContainerStatsResponse.ts +102 -0
- package/src/models/ContainerWaitResponse.ts +75 -0
- package/src/models/CreateContainerRequest.ts +145 -0
- package/src/models/CreateDeploymentRequest.ts +66 -0
- package/src/models/CreateEnvironmentRequest.ts +82 -0
- package/src/models/CreateGitCredentialRequest.ts +94 -0
- package/src/models/CreateGroupRequest.ts +74 -0
- package/src/models/CreateNodeTunnelRequest.ts +110 -0
- package/src/models/CreateNodeTunnelResponse.ts +120 -0
- package/src/models/CreateNotifierRequest.ts +101 -0
- package/src/models/CreateProjectRequest.ts +165 -0
- package/src/models/CreateRegistryCredentialRequest.ts +103 -0
- package/src/models/CreateSecretRequest.ts +87 -0
- package/src/models/CreateSyncRequest.ts +100 -0
- package/src/models/CreateTaskRequest.ts +102 -0
- package/src/models/CreateTunnelRequest.ts +82 -0
- package/src/models/CreateTunnelResponse.ts +111 -0
- package/src/models/CreateUserRequest.ts +102 -0
- package/src/models/CreateVariableRequest.ts +84 -0
- package/src/models/CreateWorkflowRequest.ts +91 -0
- package/src/models/CronJobResponse.ts +100 -0
- package/src/models/CronStatusResponse.ts +84 -0
- package/src/models/CsrfResponse.ts +66 -0
- package/src/models/DeploymentDetails.ts +119 -0
- package/src/models/DeploymentSummary.ts +93 -0
- package/src/models/DnsStatusResponse.ts +108 -0
- package/src/models/ForceLeaderRequest.ts +66 -0
- package/src/models/ForceLeaderResponse.ts +93 -0
- package/src/models/GitCredentialKindSchema.ts +53 -0
- package/src/models/GitCredentialResponse.ts +94 -0
- package/src/models/GpuInfoSummary.ts +84 -0
- package/src/models/GpuUtilizationReport.ts +109 -0
- package/src/models/GrantPermissionRequest.ts +118 -0
- package/src/models/GroupMembersResponse.ts +75 -0
- package/src/models/HealthResponse.ts +91 -0
- package/src/models/HeartbeatRequest.ts +109 -0
- package/src/models/ImageInfoDto.ts +83 -0
- package/src/models/InternalScaleRequest.ts +75 -0
- package/src/models/InternalScaleResponse.ts +92 -0
- package/src/models/IpAllocationResponse.ts +110 -0
- package/src/models/JobExecutionResponse.ts +141 -0
- package/src/models/JoinTokenResponse.ts +111 -0
- package/src/models/KillContainerRequest.ts +67 -0
- package/src/models/LinkDeploymentRequest.ts +66 -0
- package/src/models/LoginRequest.ts +75 -0
- package/src/models/LoginResponse.ts +83 -0
- package/src/models/NetworkSummary.ts +101 -0
- package/src/models/NodeDetails.ts +155 -0
- package/src/models/NodeResourceInfo.ts +111 -0
- package/src/models/NodeSummary.ts +111 -0
- package/src/models/NotifierConfig.ts +102 -0
- package/src/models/NotifierConfigOneOf.ts +85 -0
- package/src/models/NotifierConfigOneOf1.ts +85 -0
- package/src/models/NotifierConfigOneOf2.ts +101 -0
- package/src/models/NotifierConfigOneOf3.ts +130 -0
- package/src/models/NotifierKind.ts +55 -0
- package/src/models/OverlayStatusResponse.ts +138 -0
- package/src/models/PeerInfo.ts +117 -0
- package/src/models/PeerListResponse.ts +92 -0
- package/src/models/PermissionLevel.ts +56 -0
- package/src/models/ProjectPullResponse.ts +102 -0
- package/src/models/PruneResultDto.ts +75 -0
- package/src/models/PullImageRequest.ts +75 -0
- package/src/models/PullImageResponse.ts +84 -0
- package/src/models/RegisteredServiceInfo.ts +111 -0
- package/src/models/RegistryAuthTypeSchema.ts +53 -0
- package/src/models/RegistryCredentialResponse.ts +103 -0
- package/src/models/ReplicationInfo.ts +92 -0
- package/src/models/RestartContainerRequest.ts +67 -0
- package/src/models/RouteInfo.ts +137 -0
- package/src/models/RoutesResponse.ts +83 -0
- package/src/models/ScaleRequest.ts +66 -0
- package/src/models/SecretMetadataResponse.ts +103 -0
- package/src/models/ServiceDetails.ts +135 -0
- package/src/models/ServiceEndpoint.ts +92 -0
- package/src/models/ServiceHealthInfo.ts +102 -0
- package/src/models/ServiceMetrics.ts +83 -0
- package/src/models/ServiceSummary.ts +119 -0
- package/src/models/SetPasswordRequest.ts +75 -0
- package/src/models/StepResult.ts +83 -0
- package/src/models/StopContainerRequest.ts +67 -0
- package/src/models/StorageStatusResponse.ts +74 -0
- package/src/models/StoredEnvironment.ts +113 -0
- package/src/models/StoredNotifier.ts +138 -0
- package/src/models/StoredPermission.ts +138 -0
- package/src/models/StoredProject.ts +208 -0
- package/src/models/StoredSync.ts +140 -0
- package/src/models/StoredTask.ts +132 -0
- package/src/models/StoredUserGroup.ts +101 -0
- package/src/models/StoredVariable.ts +116 -0
- package/src/models/StoredWorkflow.ts +119 -0
- package/src/models/StreamBackendInfo.ts +66 -0
- package/src/models/StreamInfo.ts +110 -0
- package/src/models/StreamsResponse.ts +101 -0
- package/src/models/SubjectKind.ts +53 -0
- package/src/models/SuccessResponse.ts +66 -0
- package/src/models/SyncApplyResponse.ts +98 -0
- package/src/models/SyncDiffResponse.ts +92 -0
- package/src/models/SyncResourceResponse.ts +84 -0
- package/src/models/SyncResourceResult.ts +102 -0
- package/src/models/TagImageRequest.ts +77 -0
- package/src/models/TaskKind.ts +52 -0
- package/src/models/TaskRun.ts +118 -0
- package/src/models/TemplateInfo.ts +84 -0
- package/src/models/TestNotifierResponse.ts +75 -0
- package/src/models/TlsResponse.ts +100 -0
- package/src/models/TokenRequest.ts +75 -0
- package/src/models/TokenResponse.ts +84 -0
- package/src/models/TriggerBuildResponse.ts +75 -0
- package/src/models/TriggerCronResponse.ts +75 -0
- package/src/models/TriggerJobResponse.ts +75 -0
- package/src/models/TunnelStatus.ts +153 -0
- package/src/models/TunnelSummary.ts +119 -0
- package/src/models/UpdateEnvironmentRequest.ts +73 -0
- package/src/models/UpdateGroupRequest.ts +73 -0
- package/src/models/UpdateLabelsRequest.ts +75 -0
- package/src/models/UpdateLabelsResponse.ts +66 -0
- package/src/models/UpdateNotifierRequest.ts +89 -0
- package/src/models/UpdateProjectRequest.ts +164 -0
- package/src/models/UpdateUserRequest.ts +92 -0
- package/src/models/UpdateVariableRequest.ts +73 -0
- package/src/models/UserRole.ts +54 -0
- package/src/models/UserView.ts +110 -0
- package/src/models/VolumeMount.ts +83 -0
- package/src/models/VolumeSummary.ts +83 -0
- package/src/models/WebhookInfoResponse.ts +75 -0
- package/src/models/WebhookResponse.ts +75 -0
- package/src/models/WorkflowAction.ts +102 -0
- package/src/models/WorkflowActionOneOf.ts +85 -0
- package/src/models/WorkflowActionOneOf1.ts +85 -0
- package/src/models/WorkflowActionOneOf2.ts +85 -0
- package/src/models/WorkflowActionOneOf3.ts +85 -0
- package/src/models/WorkflowRun.ts +127 -0
- package/src/models/WorkflowRunStatus.ts +55 -0
- package/src/models/WorkflowStep.ts +91 -0
- package/src/models/index.ts +158 -0
- package/src/runtime.ts +450 -0
- package/tsconfig.esm.json +7 -0
- package/tsconfig.json +16 -0
package/README.md
ADDED
|
@@ -0,0 +1,434 @@
|
|
|
1
|
+
# @zlayer/client@0.1.0
|
|
2
|
+
|
|
3
|
+
A TypeScript SDK client for the localhost API.
|
|
4
|
+
|
|
5
|
+
## Usage
|
|
6
|
+
|
|
7
|
+
First, install the SDK from npm.
|
|
8
|
+
|
|
9
|
+
```bash
|
|
10
|
+
npm install @zlayer/client --save
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Next, try it out.
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
```ts
|
|
17
|
+
import {
|
|
18
|
+
Configuration,
|
|
19
|
+
AuditApi,
|
|
20
|
+
} from '@zlayer/client';
|
|
21
|
+
import type { ListAuditRequest } from '@zlayer/client';
|
|
22
|
+
|
|
23
|
+
async function example() {
|
|
24
|
+
console.log("🚀 Testing @zlayer/client SDK...");
|
|
25
|
+
const api = new AuditApi();
|
|
26
|
+
|
|
27
|
+
const body = {
|
|
28
|
+
// string | Filter by user id. (optional)
|
|
29
|
+
user: user_example,
|
|
30
|
+
// string | Filter by resource kind. (optional)
|
|
31
|
+
resourceKind: resourceKind_example,
|
|
32
|
+
// string | Only entries at or after this timestamp (RFC 3339). (optional)
|
|
33
|
+
since: since_example,
|
|
34
|
+
// string | Only entries at or before this timestamp (RFC 3339). (optional)
|
|
35
|
+
until: until_example,
|
|
36
|
+
// number | Maximum number of entries to return (default 100). (optional)
|
|
37
|
+
limit: 56,
|
|
38
|
+
} satisfies ListAuditRequest;
|
|
39
|
+
|
|
40
|
+
try {
|
|
41
|
+
const data = await api.listAudit(body);
|
|
42
|
+
console.log(data);
|
|
43
|
+
} catch (error) {
|
|
44
|
+
console.error(error);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
// Run the test
|
|
49
|
+
example().catch(console.error);
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
## Documentation
|
|
54
|
+
|
|
55
|
+
### API Endpoints
|
|
56
|
+
|
|
57
|
+
All URIs are relative to *http://localhost*
|
|
58
|
+
|
|
59
|
+
| Class | Method | HTTP request | Description
|
|
60
|
+
| ----- | ------ | ------------ | -------------
|
|
61
|
+
*AuditApi* | [**listAudit**](docs/AuditApi.md#listaudit) | **GET** /api/v1/audit | List audit log entries. Admin only.
|
|
62
|
+
*AuthenticationApi* | [**bootstrap**](docs/AuthenticationApi.md#bootstrapoperation) | **POST** /auth/bootstrap | Bootstrap the very first admin user. Returns 409 if any user exists.
|
|
63
|
+
*AuthenticationApi* | [**csrf**](docs/AuthenticationApi.md#csrf) | **GET** /auth/csrf | Rotate the CSRF double-submit token for the current session.
|
|
64
|
+
*AuthenticationApi* | [**getToken**](docs/AuthenticationApi.md#gettoken) | **POST** /auth/token | Get an access token.
|
|
65
|
+
*AuthenticationApi* | [**login**](docs/AuthenticationApi.md#loginoperation) | **POST** /auth/login | Sign in an existing user.
|
|
66
|
+
*AuthenticationApi* | [**logout**](docs/AuthenticationApi.md#logout) | **POST** /auth/logout | Clear the session + CSRF cookies.
|
|
67
|
+
*AuthenticationApi* | [**me**](docs/AuthenticationApi.md#me) | **GET** /auth/me | Return the currently signed-in user.
|
|
68
|
+
*BuildApi* | [**getBuildLogs**](docs/BuildApi.md#getbuildlogs) | **GET** /api/v1/build/{id}/logs | GET /api/v1/build/{id}/logs Get build logs.
|
|
69
|
+
*BuildApi* | [**getBuildStatus**](docs/BuildApi.md#getbuildstatus) | **GET** /api/v1/build/{id} | GET /api/v1/build/{id} Get build status.
|
|
70
|
+
*BuildApi* | [**listBuilds**](docs/BuildApi.md#listbuilds) | **GET** /api/v1/builds | GET /api/v1/builds List all builds.
|
|
71
|
+
*BuildApi* | [**listRuntimeTemplates**](docs/BuildApi.md#listruntimetemplates) | **GET** /api/v1/templates | GET /api/v1/templates List available runtime templates
|
|
72
|
+
*BuildApi* | [**startBuild**](docs/BuildApi.md#startbuild) | **POST** /api/v1/build | POST /api/v1/build Start a new build from multipart upload (Dockerfile + context tarball)
|
|
73
|
+
*BuildApi* | [**startBuildJson**](docs/BuildApi.md#startbuildjson) | **POST** /api/v1/build/json | POST /api/v1/build/json Start a new build from JSON request with a context path on the server.
|
|
74
|
+
*BuildApi* | [**streamBuild**](docs/BuildApi.md#streambuild) | **GET** /api/v1/build/{id}/stream | GET /api/v1/build/{id}/stream Stream build progress via Server-Sent Events.
|
|
75
|
+
*ClusterApi* | [**clusterForceLeader**](docs/ClusterApi.md#clusterforceleader) | **POST** /api/v1/cluster/force-leader | Force this node to become the cluster leader (disaster recovery).
|
|
76
|
+
*ClusterApi* | [**clusterHeartbeat**](docs/ClusterApi.md#clusterheartbeat) | **POST** /api/v1/cluster/heartbeat | Handle node heartbeat.
|
|
77
|
+
*ClusterApi* | [**clusterJoin**](docs/ClusterApi.md#clusterjoinoperation) | **POST** /api/v1/cluster/join | Handle a cluster join request.
|
|
78
|
+
*ClusterApi* | [**clusterListNodes**](docs/ClusterApi.md#clusterlistnodes) | **GET** /api/v1/cluster/nodes | List all nodes visible in the Raft cluster state.
|
|
79
|
+
*ContainersApi* | [**createContainer**](docs/ContainersApi.md#createcontaineroperation) | **POST** /api/v1/containers | Create and start a container.
|
|
80
|
+
*ContainersApi* | [**deleteContainer**](docs/ContainersApi.md#deletecontainer) | **DELETE** /api/v1/containers/{id} | Stop and remove a container.
|
|
81
|
+
*ContainersApi* | [**execInContainer**](docs/ContainersApi.md#execincontainer) | **POST** /api/v1/containers/{id}/exec | Execute a command in a running container.
|
|
82
|
+
*ContainersApi* | [**getContainer**](docs/ContainersApi.md#getcontainer) | **GET** /api/v1/containers/{id} | Get details for a specific container.
|
|
83
|
+
*ContainersApi* | [**getContainerLogs**](docs/ContainersApi.md#getcontainerlogs) | **GET** /api/v1/containers/{id}/logs | Get container logs.
|
|
84
|
+
*ContainersApi* | [**getContainerStats**](docs/ContainersApi.md#getcontainerstats) | **GET** /api/v1/containers/{id}/stats | Get container resource statistics.
|
|
85
|
+
*ContainersApi* | [**killContainer**](docs/ContainersApi.md#killcontaineroperation) | **POST** /api/v1/containers/{id}/kill | Send a signal to a running container.
|
|
86
|
+
*ContainersApi* | [**listContainers**](docs/ContainersApi.md#listcontainers) | **GET** /api/v1/containers | List standalone containers.
|
|
87
|
+
*ContainersApi* | [**restartContainer**](docs/ContainersApi.md#restartcontaineroperation) | **POST** /api/v1/containers/{id}/restart | Restart a container: stop then start.
|
|
88
|
+
*ContainersApi* | [**startContainer**](docs/ContainersApi.md#startcontainer) | **POST** /api/v1/containers/{id}/start | Start a previously-created container.
|
|
89
|
+
*ContainersApi* | [**stopContainer**](docs/ContainersApi.md#stopcontaineroperation) | **POST** /api/v1/containers/{id}/stop | Stop a running container.
|
|
90
|
+
*ContainersApi* | [**waitContainer**](docs/ContainersApi.md#waitcontainer) | **GET** /api/v1/containers/{id}/wait | Wait for a container to exit and return its exit code.
|
|
91
|
+
*CredentialsApi* | [**createGitCredential**](docs/CredentialsApi.md#creategitcredentialoperation) | **POST** /api/v1/credentials/git | Create a new git credential. Admin only.
|
|
92
|
+
*CredentialsApi* | [**createRegistryCredential**](docs/CredentialsApi.md#createregistrycredentialoperation) | **POST** /api/v1/credentials/registry | Create a new registry credential. Admin only.
|
|
93
|
+
*CredentialsApi* | [**deleteGitCredential**](docs/CredentialsApi.md#deletegitcredential) | **DELETE** /api/v1/credentials/git/{id} | Delete a git credential. Admin only.
|
|
94
|
+
*CredentialsApi* | [**deleteRegistryCredential**](docs/CredentialsApi.md#deleteregistrycredential) | **DELETE** /api/v1/credentials/registry/{id} | Delete a registry credential. Admin only.
|
|
95
|
+
*CredentialsApi* | [**listGitCredentials**](docs/CredentialsApi.md#listgitcredentials) | **GET** /api/v1/credentials/git | List all git credentials (metadata only, no secret values).
|
|
96
|
+
*CredentialsApi* | [**listRegistryCredentials**](docs/CredentialsApi.md#listregistrycredentials) | **GET** /api/v1/credentials/registry | List all registry credentials (metadata only, no passwords).
|
|
97
|
+
*CronApi* | [**disableCronJob**](docs/CronApi.md#disablecronjob) | **PUT** /api/v1/cron/{name}/disable | PUT /api/v1/cron/{name}/disable - Disable a cron job
|
|
98
|
+
*CronApi* | [**enableCronJob**](docs/CronApi.md#enablecronjob) | **PUT** /api/v1/cron/{name}/enable | PUT /api/v1/cron/{name}/enable - Enable a cron job
|
|
99
|
+
*CronApi* | [**getCronJob**](docs/CronApi.md#getcronjob) | **GET** /api/v1/cron/{name} | GET /api/v1/cron/{name} - Get cron job details
|
|
100
|
+
*CronApi* | [**listCronJobs**](docs/CronApi.md#listcronjobs) | **GET** /api/v1/cron | GET /api/v1/cron - List all cron jobs
|
|
101
|
+
*CronApi* | [**triggerCronJob**](docs/CronApi.md#triggercronjob) | **POST** /api/v1/cron/{name}/trigger | POST /api/v1/cron/{name}/trigger - Manually trigger a cron job
|
|
102
|
+
*DeploymentsApi* | [**createDeployment**](docs/DeploymentsApi.md#createdeploymentoperation) | **POST** /api/v1/deployments | Create a new deployment.
|
|
103
|
+
*DeploymentsApi* | [**deleteDeployment**](docs/DeploymentsApi.md#deletedeployment) | **DELETE** /api/v1/deployments/{name} | Delete a deployment.
|
|
104
|
+
*DeploymentsApi* | [**getDeployment**](docs/DeploymentsApi.md#getdeployment) | **GET** /api/v1/deployments/{name} | Get deployment details (with live per-service health when available).
|
|
105
|
+
*DeploymentsApi* | [**listDeployments**](docs/DeploymentsApi.md#listdeployments) | **GET** /api/v1/deployments | List all deployments.
|
|
106
|
+
*EnvironmentsApi* | [**createEnvironment**](docs/EnvironmentsApi.md#createenvironmentoperation) | **POST** /api/v1/environments | Create a new environment. Admin only.
|
|
107
|
+
*EnvironmentsApi* | [**deleteEnvironment**](docs/EnvironmentsApi.md#deleteenvironment) | **DELETE** /api/v1/environments/{id} | Delete an environment. Admin only.
|
|
108
|
+
*EnvironmentsApi* | [**getEnvironment**](docs/EnvironmentsApi.md#getenvironment) | **GET** /api/v1/environments/{id} | Fetch a single environment by id.
|
|
109
|
+
*EnvironmentsApi* | [**listEnvironments**](docs/EnvironmentsApi.md#listenvironments) | **GET** /api/v1/environments | List environments.
|
|
110
|
+
*EnvironmentsApi* | [**updateEnvironment**](docs/EnvironmentsApi.md#updateenvironmentoperation) | **PATCH** /api/v1/environments/{id} | Rename / re-describe an environment. Admin only.
|
|
111
|
+
*GroupsApi* | [**addMember**](docs/GroupsApi.md#addmemberoperation) | **POST** /api/v1/groups/{id}/members | Add a member to a group. Admin only.
|
|
112
|
+
*GroupsApi* | [**createGroup**](docs/GroupsApi.md#creategroupoperation) | **POST** /api/v1/groups | Create a new group. Admin only.
|
|
113
|
+
*GroupsApi* | [**deleteGroup**](docs/GroupsApi.md#deletegroup) | **DELETE** /api/v1/groups/{id} | Delete a group. Admin only.
|
|
114
|
+
*GroupsApi* | [**getGroup**](docs/GroupsApi.md#getgroup) | **GET** /api/v1/groups/{id} | Fetch a single group by id.
|
|
115
|
+
*GroupsApi* | [**listGroups**](docs/GroupsApi.md#listgroups) | **GET** /api/v1/groups | List all groups.
|
|
116
|
+
*GroupsApi* | [**removeMember**](docs/GroupsApi.md#removemember) | **DELETE** /api/v1/groups/{id}/members/{user_id} | Remove a member from a group. Admin only.
|
|
117
|
+
*GroupsApi* | [**updateGroup**](docs/GroupsApi.md#updategroupoperation) | **PATCH** /api/v1/groups/{id} | Update a group\'s name and/or description. Admin only.
|
|
118
|
+
*HealthApi* | [**liveness**](docs/HealthApi.md#liveness) | **GET** /health/live | Liveness probe - basic health check
|
|
119
|
+
*HealthApi* | [**readiness**](docs/HealthApi.md#readiness) | **GET** /health/ready | Readiness probe - full health check
|
|
120
|
+
*ImagesApi* | [**listImagesHandler**](docs/ImagesApi.md#listimageshandler) | **GET** /api/v1/images | List all cached images known to the runtime.
|
|
121
|
+
*ImagesApi* | [**pruneImagesHandler**](docs/ImagesApi.md#pruneimageshandler) | **POST** /api/v1/system/prune | Prune dangling / unused images from the runtime\'s cache.
|
|
122
|
+
*ImagesApi* | [**pullImageHandler**](docs/ImagesApi.md#pullimagehandler) | **POST** /api/v1/images/pull | Pull an OCI image into the runtime\'s local cache.
|
|
123
|
+
*ImagesApi* | [**removeImageHandler**](docs/ImagesApi.md#removeimagehandler) | **DELETE** /api/v1/images/{image} | Remove an image from the runtime\'s cache.
|
|
124
|
+
*ImagesApi* | [**tagImageHandler**](docs/ImagesApi.md#tagimagehandler) | **POST** /api/v1/images/tag | Create a new tag pointing at an existing image.
|
|
125
|
+
*InternalApi* | [**getReplicasInternal**](docs/InternalApi.md#getreplicasinternal) | **GET** /api/v1/internal/replicas/{service} | Get the current replica count for a service.
|
|
126
|
+
*InternalApi* | [**scaleServiceInternal**](docs/InternalApi.md#scaleserviceinternal) | **POST** /api/v1/internal/scale | Scale a service via internal scheduler request.
|
|
127
|
+
*JobsApi* | [**cancelExecution**](docs/JobsApi.md#cancelexecution) | **POST** /api/v1/jobs/{execution_id}/cancel | POST /`api/v1/jobs/{execution_id}/cancel` - Cancel a running execution
|
|
128
|
+
*JobsApi* | [**getExecutionStatus**](docs/JobsApi.md#getexecutionstatus) | **GET** /api/v1/jobs/{execution_id}/status | GET /`api/v1/jobs/{execution_id}/status` - Get execution status
|
|
129
|
+
*JobsApi* | [**listJobExecutions**](docs/JobsApi.md#listjobexecutions) | **GET** /api/v1/jobs/{name}/executions | GET /api/v1/jobs/{name}/executions - List executions for a job
|
|
130
|
+
*JobsApi* | [**triggerJob**](docs/JobsApi.md#triggerjob) | **POST** /api/v1/jobs/{name}/trigger | POST /api/v1/jobs/{name}/trigger - Trigger a job execution
|
|
131
|
+
*NetworksApi* | [**createNetwork**](docs/NetworksApi.md#createnetwork) | **POST** /api/v1/networks | Create a new network.
|
|
132
|
+
*NetworksApi* | [**deleteNetwork**](docs/NetworksApi.md#deletenetwork) | **DELETE** /api/v1/networks/{name} | Delete a network.
|
|
133
|
+
*NetworksApi* | [**getNetwork**](docs/NetworksApi.md#getnetwork) | **GET** /api/v1/networks/{name} | Get a specific network by name.
|
|
134
|
+
*NetworksApi* | [**listNetworks**](docs/NetworksApi.md#listnetworks) | **GET** /api/v1/networks | List all networks.
|
|
135
|
+
*NetworksApi* | [**updateNetwork**](docs/NetworksApi.md#updatenetwork) | **PUT** /api/v1/networks/{name} | Update an existing network.
|
|
136
|
+
*NodesApi* | [**generateJoinToken**](docs/NodesApi.md#generatejointoken) | **POST** /api/v1/nodes/join-token | Generate a join token for new nodes to join the cluster.
|
|
137
|
+
*NodesApi* | [**getNode**](docs/NodesApi.md#getnode) | **GET** /api/v1/nodes/{id} | Get detailed information about a specific node.
|
|
138
|
+
*NodesApi* | [**listNodes**](docs/NodesApi.md#listnodes) | **GET** /api/v1/nodes | List all nodes in the cluster.
|
|
139
|
+
*NodesApi* | [**updateNodeLabels**](docs/NodesApi.md#updatenodelabels) | **POST** /api/v1/nodes/{id}/labels | Update labels on a node.
|
|
140
|
+
*NotifiersApi* | [**createNotifier**](docs/NotifiersApi.md#createnotifieroperation) | **POST** /api/v1/notifiers | Create a new notifier. Admin only.
|
|
141
|
+
*NotifiersApi* | [**deleteNotifier**](docs/NotifiersApi.md#deletenotifier) | **DELETE** /api/v1/notifiers/{id} | Delete a notifier. Admin only.
|
|
142
|
+
*NotifiersApi* | [**getNotifier**](docs/NotifiersApi.md#getnotifier) | **GET** /api/v1/notifiers/{id} | Fetch a single notifier by id.
|
|
143
|
+
*NotifiersApi* | [**listNotifiers**](docs/NotifiersApi.md#listnotifiers) | **GET** /api/v1/notifiers | List notifiers.
|
|
144
|
+
*NotifiersApi* | [**testNotifier**](docs/NotifiersApi.md#testnotifier) | **POST** /api/v1/notifiers/{id}/test | Send a test notification through a notifier. Admin only.
|
|
145
|
+
*NotifiersApi* | [**updateNotifier**](docs/NotifiersApi.md#updatenotifieroperation) | **PATCH** /api/v1/notifiers/{id} | Update a notifier. Admin only.
|
|
146
|
+
*OverlayApi* | [**getDnsStatus**](docs/OverlayApi.md#getdnsstatus) | **GET** /api/v1/overlay/dns | Get DNS service status.
|
|
147
|
+
*OverlayApi* | [**getIpAllocation**](docs/OverlayApi.md#getipallocation) | **GET** /api/v1/overlay/ip-alloc | Get IP allocation status.
|
|
148
|
+
*OverlayApi* | [**getOverlayPeers**](docs/OverlayApi.md#getoverlaypeers) | **GET** /api/v1/overlay/peers | Get list of overlay peers.
|
|
149
|
+
*OverlayApi* | [**getOverlayStatus**](docs/OverlayApi.md#getoverlaystatus) | **GET** /api/v1/overlay/status | Get overlay network status.
|
|
150
|
+
*PermissionsApi* | [**grantPermission**](docs/PermissionsApi.md#grantpermissionoperation) | **POST** /api/v1/permissions | Grant a permission. Admin only.
|
|
151
|
+
*PermissionsApi* | [**listPermissions**](docs/PermissionsApi.md#listpermissions) | **GET** /api/v1/permissions | List permissions for a subject (user or group).
|
|
152
|
+
*PermissionsApi* | [**revokePermission**](docs/PermissionsApi.md#revokepermission) | **DELETE** /api/v1/permissions/{id} | Revoke a permission by id. Admin only.
|
|
153
|
+
*ProjectsApi* | [**createProject**](docs/ProjectsApi.md#createprojectoperation) | **POST** /api/v1/projects | Create a new project. Admin only.
|
|
154
|
+
*ProjectsApi* | [**deleteProject**](docs/ProjectsApi.md#deleteproject) | **DELETE** /api/v1/projects/{id} | Delete a project. Admin only. Cascade-removes deployment links.
|
|
155
|
+
*ProjectsApi* | [**getProject**](docs/ProjectsApi.md#getproject) | **GET** /api/v1/projects/{id} | Fetch a single project by id.
|
|
156
|
+
*ProjectsApi* | [**linkProjectDeployment**](docs/ProjectsApi.md#linkprojectdeployment) | **POST** /api/v1/projects/{id}/deployments | Link a deployment to a project.
|
|
157
|
+
*ProjectsApi* | [**listProjectDeployments**](docs/ProjectsApi.md#listprojectdeployments) | **GET** /api/v1/projects/{id}/deployments | List deployment names linked to a project.
|
|
158
|
+
*ProjectsApi* | [**listProjects**](docs/ProjectsApi.md#listprojects) | **GET** /api/v1/projects | List all projects.
|
|
159
|
+
*ProjectsApi* | [**pullProject**](docs/ProjectsApi.md#pullproject) | **POST** /api/v1/projects/{id}/pull | Clone the project\'s git repository (or fast-forward pull if the working copy already exists) into `{clone_root}/{project_id}` and return the resulting HEAD SHA.
|
|
160
|
+
*ProjectsApi* | [**unlinkProjectDeployment**](docs/ProjectsApi.md#unlinkprojectdeployment) | **DELETE** /api/v1/projects/{id}/deployments/{name} | Unlink a deployment from a project.
|
|
161
|
+
*ProjectsApi* | [**updateProject**](docs/ProjectsApi.md#updateprojectoperation) | **PATCH** /api/v1/projects/{id} | Update a project. Admin only.
|
|
162
|
+
*ProxyApi* | [**listBackends**](docs/ProxyApi.md#listbackends) | **GET** /api/v1/proxy/backends | List all load-balancer backend groups.
|
|
163
|
+
*ProxyApi* | [**listRoutes**](docs/ProxyApi.md#listroutes) | **GET** /api/v1/proxy/routes | List all registered proxy routes.
|
|
164
|
+
*ProxyApi* | [**listStreams**](docs/ProxyApi.md#liststreams) | **GET** /api/v1/proxy/streams | List L4 stream proxies.
|
|
165
|
+
*ProxyApi* | [**listTls**](docs/ProxyApi.md#listtls) | **GET** /api/v1/proxy/tls | List loaded TLS certificates.
|
|
166
|
+
*SecretsApi* | [**bulkImportSecrets**](docs/SecretsApi.md#bulkimportsecrets) | **POST** /api/v1/secrets/bulk-import | Bulk-import secrets from a dotenv-style payload (`KEY=value\\n…`).
|
|
167
|
+
*SecretsApi* | [**createSecret**](docs/SecretsApi.md#createsecretoperation) | **POST** /api/v1/secrets | Create or update a secret.
|
|
168
|
+
*SecretsApi* | [**deleteSecret**](docs/SecretsApi.md#deletesecret) | **DELETE** /api/v1/secrets/{name} | Delete a secret.
|
|
169
|
+
*SecretsApi* | [**getSecretMetadata**](docs/SecretsApi.md#getsecretmetadata) | **GET** /api/v1/secrets/{name} | Get metadata for a specific secret. With `?reveal=true` (admin only), the response also includes the plaintext `value`.
|
|
170
|
+
*SecretsApi* | [**listSecrets**](docs/SecretsApi.md#listsecrets) | **GET** /api/v1/secrets | List secrets in a scope.
|
|
171
|
+
*ServicesApi* | [**getService**](docs/ServicesApi.md#getservice) | **GET** /api/v1/deployments/{deployment}/services/{service} | Get service details.
|
|
172
|
+
*ServicesApi* | [**getServiceLogs**](docs/ServicesApi.md#getservicelogs) | **GET** /api/v1/deployments/{deployment}/services/{service}/logs | Get service logs.
|
|
173
|
+
*ServicesApi* | [**listServices**](docs/ServicesApi.md#listservices) | **GET** /api/v1/deployments/{deployment}/services | List services in a deployment.
|
|
174
|
+
*ServicesApi* | [**scaleService**](docs/ServicesApi.md#scaleservice) | **POST** /api/v1/deployments/{deployment}/services/{service}/scale | Scale a service.
|
|
175
|
+
*StorageApi* | [**getStorageStatus**](docs/StorageApi.md#getstoragestatus) | **GET** /api/v1/storage/status | Get storage replication status.
|
|
176
|
+
*SyncsApi* | [**applySync**](docs/SyncsApi.md#applysync) | **POST** /api/v1/syncs/{id}/apply | Apply a sync — real reconcile against the API.
|
|
177
|
+
*SyncsApi* | [**createSync**](docs/SyncsApi.md#createsyncoperation) | **POST** /api/v1/syncs | Create a new sync.
|
|
178
|
+
*SyncsApi* | [**deleteSync**](docs/SyncsApi.md#deletesync) | **DELETE** /api/v1/syncs/{id} | Delete a sync.
|
|
179
|
+
*SyncsApi* | [**diffSync**](docs/SyncsApi.md#diffsync) | **GET** /api/v1/syncs/{id}/diff | Compute a diff for a sync (scan git path vs. remote resources).
|
|
180
|
+
*SyncsApi* | [**listSyncs**](docs/SyncsApi.md#listsyncs) | **GET** /api/v1/syncs | List all syncs.
|
|
181
|
+
*TasksApi* | [**createTask**](docs/TasksApi.md#createtaskoperation) | **POST** /api/v1/tasks | Create a new task. Admin only.
|
|
182
|
+
*TasksApi* | [**deleteTask**](docs/TasksApi.md#deletetask) | **DELETE** /api/v1/tasks/{id} | Delete a task. Admin only.
|
|
183
|
+
*TasksApi* | [**getTask**](docs/TasksApi.md#gettask) | **GET** /api/v1/tasks/{id} | Fetch a single task by id.
|
|
184
|
+
*TasksApi* | [**listTaskRuns**](docs/TasksApi.md#listtaskruns) | **GET** /api/v1/tasks/{id}/runs | List past runs for a task, most recent first.
|
|
185
|
+
*TasksApi* | [**listTasks**](docs/TasksApi.md#listtasks) | **GET** /api/v1/tasks | List tasks.
|
|
186
|
+
*TasksApi* | [**runTask**](docs/TasksApi.md#runtask) | **POST** /api/v1/tasks/{id}/run | Execute a task synchronously. Admin only.
|
|
187
|
+
*TunnelsApi* | [**createNodeTunnel**](docs/TunnelsApi.md#createnodetunneloperation) | **POST** /api/v1/tunnels/node | Create a node-to-node tunnel.
|
|
188
|
+
*TunnelsApi* | [**createTunnel**](docs/TunnelsApi.md#createtunneloperation) | **POST** /api/v1/tunnels | Create a new tunnel token.
|
|
189
|
+
*TunnelsApi* | [**getTunnelStatus**](docs/TunnelsApi.md#gettunnelstatus) | **GET** /api/v1/tunnels/{id}/status | Get tunnel status.
|
|
190
|
+
*TunnelsApi* | [**listTunnels**](docs/TunnelsApi.md#listtunnels) | **GET** /api/v1/tunnels | List all tunnels.
|
|
191
|
+
*TunnelsApi* | [**removeNodeTunnel**](docs/TunnelsApi.md#removenodetunnel) | **DELETE** /api/v1/tunnels/node/{name} | Remove a node-to-node tunnel.
|
|
192
|
+
*TunnelsApi* | [**revokeTunnel**](docs/TunnelsApi.md#revoketunnel) | **DELETE** /api/v1/tunnels/{id} | Revoke (delete) a tunnel.
|
|
193
|
+
*UsersApi* | [**createUser**](docs/UsersApi.md#createuseroperation) | **POST** /api/v1/users | Create a new user. Admin only.
|
|
194
|
+
*UsersApi* | [**deleteUser**](docs/UsersApi.md#deleteuser) | **DELETE** /api/v1/users/{id} | Delete a user. Admin only. Callers cannot delete their own account.
|
|
195
|
+
*UsersApi* | [**getUser**](docs/UsersApi.md#getuser) | **GET** /api/v1/users/{id} | Fetch a single user. Admins can read any record; regular users can read only their own.
|
|
196
|
+
*UsersApi* | [**listUsers**](docs/UsersApi.md#listusers) | **GET** /api/v1/users | List all users. Admin only.
|
|
197
|
+
*UsersApi* | [**setPassword**](docs/UsersApi.md#setpasswordoperation) | **POST** /api/v1/users/{id}/password | Set a user\'s password. Admins may change any user\'s password; regular users may only change their own, and must supply `current_password`.
|
|
198
|
+
*UsersApi* | [**updateUser**](docs/UsersApi.md#updateuseroperation) | **PATCH** /api/v1/users/{id} | Update a user\'s mutable fields. Admin only.
|
|
199
|
+
*VariablesApi* | [**createVariable**](docs/VariablesApi.md#createvariableoperation) | **POST** /api/v1/variables | Create a new variable. Admin only.
|
|
200
|
+
*VariablesApi* | [**deleteVariable**](docs/VariablesApi.md#deletevariable) | **DELETE** /api/v1/variables/{id} | Delete a variable. Admin only.
|
|
201
|
+
*VariablesApi* | [**getVariable**](docs/VariablesApi.md#getvariable) | **GET** /api/v1/variables/{id} | Fetch a single variable by id.
|
|
202
|
+
*VariablesApi* | [**listVariables**](docs/VariablesApi.md#listvariables) | **GET** /api/v1/variables | List variables.
|
|
203
|
+
*VariablesApi* | [**updateVariable**](docs/VariablesApi.md#updatevariableoperation) | **PATCH** /api/v1/variables/{id} | Update a variable\'s name and/or value. Admin only.
|
|
204
|
+
*VolumesApi* | [**deleteVolume**](docs/VolumesApi.md#deletevolume) | **DELETE** /api/v1/volumes/{name} | Delete a volume by name.
|
|
205
|
+
*VolumesApi* | [**listVolumes**](docs/VolumesApi.md#listvolumes) | **GET** /api/v1/volumes | List all volumes on disk.
|
|
206
|
+
*WebhooksApi* | [**getWebhookInfo**](docs/WebhooksApi.md#getwebhookinfo) | **GET** /api/v1/projects/{id}/webhook | Get webhook configuration for a project.
|
|
207
|
+
*WebhooksApi* | [**receiveWebhook**](docs/WebhooksApi.md#receivewebhook) | **POST** /webhooks/{provider}/{project_id} | Receive a webhook push event and trigger a project pull.
|
|
208
|
+
*WebhooksApi* | [**rotateWebhookSecret**](docs/WebhooksApi.md#rotatewebhooksecret) | **POST** /api/v1/projects/{id}/webhook/rotate | Rotate (regenerate) the webhook secret for a project.
|
|
209
|
+
*WorkflowsApi* | [**createWorkflow**](docs/WorkflowsApi.md#createworkflowoperation) | **POST** /api/v1/workflows | Create a new workflow. Admin only.
|
|
210
|
+
*WorkflowsApi* | [**deleteWorkflow**](docs/WorkflowsApi.md#deleteworkflow) | **DELETE** /api/v1/workflows/{id} | Delete a workflow. Admin only.
|
|
211
|
+
*WorkflowsApi* | [**getWorkflow**](docs/WorkflowsApi.md#getworkflow) | **GET** /api/v1/workflows/{id} | Fetch a single workflow by id.
|
|
212
|
+
*WorkflowsApi* | [**listWorkflowRuns**](docs/WorkflowsApi.md#listworkflowruns) | **GET** /api/v1/workflows/{id}/runs | List past runs for a workflow, most recent first.
|
|
213
|
+
*WorkflowsApi* | [**listWorkflows**](docs/WorkflowsApi.md#listworkflows) | **GET** /api/v1/workflows | List workflows.
|
|
214
|
+
*WorkflowsApi* | [**runWorkflow**](docs/WorkflowsApi.md#runworkflow) | **POST** /api/v1/workflows/{id}/run | Execute a workflow synchronously. Admin only.
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
### Models
|
|
218
|
+
|
|
219
|
+
- [AddMemberRequest](docs/AddMemberRequest.md)
|
|
220
|
+
- [AuditEntry](docs/AuditEntry.md)
|
|
221
|
+
- [BackendGroupInfo](docs/BackendGroupInfo.md)
|
|
222
|
+
- [BackendInfo](docs/BackendInfo.md)
|
|
223
|
+
- [BackendsResponse](docs/BackendsResponse.md)
|
|
224
|
+
- [BootstrapRequest](docs/BootstrapRequest.md)
|
|
225
|
+
- [BuildKind](docs/BuildKind.md)
|
|
226
|
+
- [BuildRequest](docs/BuildRequest.md)
|
|
227
|
+
- [BuildRequestWithContext](docs/BuildRequestWithContext.md)
|
|
228
|
+
- [BuildStateEnum](docs/BuildStateEnum.md)
|
|
229
|
+
- [BuildStatus](docs/BuildStatus.md)
|
|
230
|
+
- [BulkImportResponse](docs/BulkImportResponse.md)
|
|
231
|
+
- [CertInfo](docs/CertInfo.md)
|
|
232
|
+
- [ClusterJoinRequest](docs/ClusterJoinRequest.md)
|
|
233
|
+
- [ClusterJoinResponse](docs/ClusterJoinResponse.md)
|
|
234
|
+
- [ClusterNodeSummary](docs/ClusterNodeSummary.md)
|
|
235
|
+
- [ClusterPeer](docs/ClusterPeer.md)
|
|
236
|
+
- [ContainerExecRequest](docs/ContainerExecRequest.md)
|
|
237
|
+
- [ContainerExecResponse](docs/ContainerExecResponse.md)
|
|
238
|
+
- [ContainerInfo](docs/ContainerInfo.md)
|
|
239
|
+
- [ContainerResourceLimits](docs/ContainerResourceLimits.md)
|
|
240
|
+
- [ContainerStatsResponse](docs/ContainerStatsResponse.md)
|
|
241
|
+
- [ContainerWaitResponse](docs/ContainerWaitResponse.md)
|
|
242
|
+
- [CreateContainerRequest](docs/CreateContainerRequest.md)
|
|
243
|
+
- [CreateDeploymentRequest](docs/CreateDeploymentRequest.md)
|
|
244
|
+
- [CreateEnvironmentRequest](docs/CreateEnvironmentRequest.md)
|
|
245
|
+
- [CreateGitCredentialRequest](docs/CreateGitCredentialRequest.md)
|
|
246
|
+
- [CreateGroupRequest](docs/CreateGroupRequest.md)
|
|
247
|
+
- [CreateNodeTunnelRequest](docs/CreateNodeTunnelRequest.md)
|
|
248
|
+
- [CreateNodeTunnelResponse](docs/CreateNodeTunnelResponse.md)
|
|
249
|
+
- [CreateNotifierRequest](docs/CreateNotifierRequest.md)
|
|
250
|
+
- [CreateProjectRequest](docs/CreateProjectRequest.md)
|
|
251
|
+
- [CreateRegistryCredentialRequest](docs/CreateRegistryCredentialRequest.md)
|
|
252
|
+
- [CreateSecretRequest](docs/CreateSecretRequest.md)
|
|
253
|
+
- [CreateSyncRequest](docs/CreateSyncRequest.md)
|
|
254
|
+
- [CreateTaskRequest](docs/CreateTaskRequest.md)
|
|
255
|
+
- [CreateTunnelRequest](docs/CreateTunnelRequest.md)
|
|
256
|
+
- [CreateTunnelResponse](docs/CreateTunnelResponse.md)
|
|
257
|
+
- [CreateUserRequest](docs/CreateUserRequest.md)
|
|
258
|
+
- [CreateVariableRequest](docs/CreateVariableRequest.md)
|
|
259
|
+
- [CreateWorkflowRequest](docs/CreateWorkflowRequest.md)
|
|
260
|
+
- [CronJobResponse](docs/CronJobResponse.md)
|
|
261
|
+
- [CronStatusResponse](docs/CronStatusResponse.md)
|
|
262
|
+
- [CsrfResponse](docs/CsrfResponse.md)
|
|
263
|
+
- [DeploymentDetails](docs/DeploymentDetails.md)
|
|
264
|
+
- [DeploymentSummary](docs/DeploymentSummary.md)
|
|
265
|
+
- [DnsStatusResponse](docs/DnsStatusResponse.md)
|
|
266
|
+
- [ForceLeaderRequest](docs/ForceLeaderRequest.md)
|
|
267
|
+
- [ForceLeaderResponse](docs/ForceLeaderResponse.md)
|
|
268
|
+
- [GitCredentialKindSchema](docs/GitCredentialKindSchema.md)
|
|
269
|
+
- [GitCredentialResponse](docs/GitCredentialResponse.md)
|
|
270
|
+
- [GpuInfoSummary](docs/GpuInfoSummary.md)
|
|
271
|
+
- [GpuUtilizationReport](docs/GpuUtilizationReport.md)
|
|
272
|
+
- [GrantPermissionRequest](docs/GrantPermissionRequest.md)
|
|
273
|
+
- [GroupMembersResponse](docs/GroupMembersResponse.md)
|
|
274
|
+
- [HealthResponse](docs/HealthResponse.md)
|
|
275
|
+
- [HeartbeatRequest](docs/HeartbeatRequest.md)
|
|
276
|
+
- [ImageInfoDto](docs/ImageInfoDto.md)
|
|
277
|
+
- [InternalScaleRequest](docs/InternalScaleRequest.md)
|
|
278
|
+
- [InternalScaleResponse](docs/InternalScaleResponse.md)
|
|
279
|
+
- [IpAllocationResponse](docs/IpAllocationResponse.md)
|
|
280
|
+
- [JobExecutionResponse](docs/JobExecutionResponse.md)
|
|
281
|
+
- [JoinTokenResponse](docs/JoinTokenResponse.md)
|
|
282
|
+
- [KillContainerRequest](docs/KillContainerRequest.md)
|
|
283
|
+
- [LinkDeploymentRequest](docs/LinkDeploymentRequest.md)
|
|
284
|
+
- [LoginRequest](docs/LoginRequest.md)
|
|
285
|
+
- [LoginResponse](docs/LoginResponse.md)
|
|
286
|
+
- [NetworkSummary](docs/NetworkSummary.md)
|
|
287
|
+
- [NodeDetails](docs/NodeDetails.md)
|
|
288
|
+
- [NodeResourceInfo](docs/NodeResourceInfo.md)
|
|
289
|
+
- [NodeSummary](docs/NodeSummary.md)
|
|
290
|
+
- [NotifierConfig](docs/NotifierConfig.md)
|
|
291
|
+
- [NotifierConfigOneOf](docs/NotifierConfigOneOf.md)
|
|
292
|
+
- [NotifierConfigOneOf1](docs/NotifierConfigOneOf1.md)
|
|
293
|
+
- [NotifierConfigOneOf2](docs/NotifierConfigOneOf2.md)
|
|
294
|
+
- [NotifierConfigOneOf3](docs/NotifierConfigOneOf3.md)
|
|
295
|
+
- [NotifierKind](docs/NotifierKind.md)
|
|
296
|
+
- [OverlayStatusResponse](docs/OverlayStatusResponse.md)
|
|
297
|
+
- [PeerInfo](docs/PeerInfo.md)
|
|
298
|
+
- [PeerListResponse](docs/PeerListResponse.md)
|
|
299
|
+
- [PermissionLevel](docs/PermissionLevel.md)
|
|
300
|
+
- [ProjectPullResponse](docs/ProjectPullResponse.md)
|
|
301
|
+
- [PruneResultDto](docs/PruneResultDto.md)
|
|
302
|
+
- [PullImageRequest](docs/PullImageRequest.md)
|
|
303
|
+
- [PullImageResponse](docs/PullImageResponse.md)
|
|
304
|
+
- [RegisteredServiceInfo](docs/RegisteredServiceInfo.md)
|
|
305
|
+
- [RegistryAuthTypeSchema](docs/RegistryAuthTypeSchema.md)
|
|
306
|
+
- [RegistryCredentialResponse](docs/RegistryCredentialResponse.md)
|
|
307
|
+
- [ReplicationInfo](docs/ReplicationInfo.md)
|
|
308
|
+
- [RestartContainerRequest](docs/RestartContainerRequest.md)
|
|
309
|
+
- [RouteInfo](docs/RouteInfo.md)
|
|
310
|
+
- [RoutesResponse](docs/RoutesResponse.md)
|
|
311
|
+
- [ScaleRequest](docs/ScaleRequest.md)
|
|
312
|
+
- [SecretMetadataResponse](docs/SecretMetadataResponse.md)
|
|
313
|
+
- [ServiceDetails](docs/ServiceDetails.md)
|
|
314
|
+
- [ServiceEndpoint](docs/ServiceEndpoint.md)
|
|
315
|
+
- [ServiceHealthInfo](docs/ServiceHealthInfo.md)
|
|
316
|
+
- [ServiceMetrics](docs/ServiceMetrics.md)
|
|
317
|
+
- [ServiceSummary](docs/ServiceSummary.md)
|
|
318
|
+
- [SetPasswordRequest](docs/SetPasswordRequest.md)
|
|
319
|
+
- [StepResult](docs/StepResult.md)
|
|
320
|
+
- [StopContainerRequest](docs/StopContainerRequest.md)
|
|
321
|
+
- [StorageStatusResponse](docs/StorageStatusResponse.md)
|
|
322
|
+
- [StoredEnvironment](docs/StoredEnvironment.md)
|
|
323
|
+
- [StoredNotifier](docs/StoredNotifier.md)
|
|
324
|
+
- [StoredPermission](docs/StoredPermission.md)
|
|
325
|
+
- [StoredProject](docs/StoredProject.md)
|
|
326
|
+
- [StoredSync](docs/StoredSync.md)
|
|
327
|
+
- [StoredTask](docs/StoredTask.md)
|
|
328
|
+
- [StoredUserGroup](docs/StoredUserGroup.md)
|
|
329
|
+
- [StoredVariable](docs/StoredVariable.md)
|
|
330
|
+
- [StoredWorkflow](docs/StoredWorkflow.md)
|
|
331
|
+
- [StreamBackendInfo](docs/StreamBackendInfo.md)
|
|
332
|
+
- [StreamInfo](docs/StreamInfo.md)
|
|
333
|
+
- [StreamsResponse](docs/StreamsResponse.md)
|
|
334
|
+
- [SubjectKind](docs/SubjectKind.md)
|
|
335
|
+
- [SuccessResponse](docs/SuccessResponse.md)
|
|
336
|
+
- [SyncApplyResponse](docs/SyncApplyResponse.md)
|
|
337
|
+
- [SyncDiffResponse](docs/SyncDiffResponse.md)
|
|
338
|
+
- [SyncResourceResponse](docs/SyncResourceResponse.md)
|
|
339
|
+
- [SyncResourceResult](docs/SyncResourceResult.md)
|
|
340
|
+
- [TagImageRequest](docs/TagImageRequest.md)
|
|
341
|
+
- [TaskKind](docs/TaskKind.md)
|
|
342
|
+
- [TaskRun](docs/TaskRun.md)
|
|
343
|
+
- [TemplateInfo](docs/TemplateInfo.md)
|
|
344
|
+
- [TestNotifierResponse](docs/TestNotifierResponse.md)
|
|
345
|
+
- [TlsResponse](docs/TlsResponse.md)
|
|
346
|
+
- [TokenRequest](docs/TokenRequest.md)
|
|
347
|
+
- [TokenResponse](docs/TokenResponse.md)
|
|
348
|
+
- [TriggerBuildResponse](docs/TriggerBuildResponse.md)
|
|
349
|
+
- [TriggerCronResponse](docs/TriggerCronResponse.md)
|
|
350
|
+
- [TriggerJobResponse](docs/TriggerJobResponse.md)
|
|
351
|
+
- [TunnelStatus](docs/TunnelStatus.md)
|
|
352
|
+
- [TunnelSummary](docs/TunnelSummary.md)
|
|
353
|
+
- [UpdateEnvironmentRequest](docs/UpdateEnvironmentRequest.md)
|
|
354
|
+
- [UpdateGroupRequest](docs/UpdateGroupRequest.md)
|
|
355
|
+
- [UpdateLabelsRequest](docs/UpdateLabelsRequest.md)
|
|
356
|
+
- [UpdateLabelsResponse](docs/UpdateLabelsResponse.md)
|
|
357
|
+
- [UpdateNotifierRequest](docs/UpdateNotifierRequest.md)
|
|
358
|
+
- [UpdateProjectRequest](docs/UpdateProjectRequest.md)
|
|
359
|
+
- [UpdateUserRequest](docs/UpdateUserRequest.md)
|
|
360
|
+
- [UpdateVariableRequest](docs/UpdateVariableRequest.md)
|
|
361
|
+
- [UserRole](docs/UserRole.md)
|
|
362
|
+
- [UserView](docs/UserView.md)
|
|
363
|
+
- [VolumeMount](docs/VolumeMount.md)
|
|
364
|
+
- [VolumeSummary](docs/VolumeSummary.md)
|
|
365
|
+
- [WebhookInfoResponse](docs/WebhookInfoResponse.md)
|
|
366
|
+
- [WebhookResponse](docs/WebhookResponse.md)
|
|
367
|
+
- [WorkflowAction](docs/WorkflowAction.md)
|
|
368
|
+
- [WorkflowActionOneOf](docs/WorkflowActionOneOf.md)
|
|
369
|
+
- [WorkflowActionOneOf1](docs/WorkflowActionOneOf1.md)
|
|
370
|
+
- [WorkflowActionOneOf2](docs/WorkflowActionOneOf2.md)
|
|
371
|
+
- [WorkflowActionOneOf3](docs/WorkflowActionOneOf3.md)
|
|
372
|
+
- [WorkflowRun](docs/WorkflowRun.md)
|
|
373
|
+
- [WorkflowRunStatus](docs/WorkflowRunStatus.md)
|
|
374
|
+
- [WorkflowStep](docs/WorkflowStep.md)
|
|
375
|
+
|
|
376
|
+
### Authorization
|
|
377
|
+
|
|
378
|
+
|
|
379
|
+
Authentication schemes defined for the API:
|
|
380
|
+
<a id="bearer_auth"></a>
|
|
381
|
+
#### bearer_auth
|
|
382
|
+
|
|
383
|
+
|
|
384
|
+
- **Type**: HTTP Bearer Token authentication (JWT)
|
|
385
|
+
|
|
386
|
+
## About
|
|
387
|
+
|
|
388
|
+
This TypeScript SDK client supports the [Fetch API](https://fetch.spec.whatwg.org/)
|
|
389
|
+
and is automatically generated by the
|
|
390
|
+
[OpenAPI Generator](https://openapi-generator.tech) project:
|
|
391
|
+
|
|
392
|
+
- API version: `0.1.0`
|
|
393
|
+
- Package version: `0.1.0`
|
|
394
|
+
- Generator version: `7.21.0`
|
|
395
|
+
- Build package: `org.openapitools.codegen.languages.TypeScriptFetchClientCodegen`
|
|
396
|
+
|
|
397
|
+
The generated npm module supports the following:
|
|
398
|
+
|
|
399
|
+
- Environments
|
|
400
|
+
* Node.js
|
|
401
|
+
* Webpack
|
|
402
|
+
* Browserify
|
|
403
|
+
- Language levels
|
|
404
|
+
* ES5 - you must have a Promises/A+ library installed
|
|
405
|
+
* ES6
|
|
406
|
+
- Module systems
|
|
407
|
+
* CommonJS
|
|
408
|
+
* ES6 module system
|
|
409
|
+
|
|
410
|
+
For more information, please visit [https://zlayer.dev](https://zlayer.dev)
|
|
411
|
+
|
|
412
|
+
## Development
|
|
413
|
+
|
|
414
|
+
### Building
|
|
415
|
+
|
|
416
|
+
To build the TypeScript source code, you need to have Node.js and npm installed.
|
|
417
|
+
After cloning the repository, navigate to the project directory and run:
|
|
418
|
+
|
|
419
|
+
```bash
|
|
420
|
+
npm install
|
|
421
|
+
npm run build
|
|
422
|
+
```
|
|
423
|
+
|
|
424
|
+
### Publishing
|
|
425
|
+
|
|
426
|
+
Once you've built the package, you can publish it to npm:
|
|
427
|
+
|
|
428
|
+
```bash
|
|
429
|
+
npm publish
|
|
430
|
+
```
|
|
431
|
+
|
|
432
|
+
## License
|
|
433
|
+
|
|
434
|
+
[MIT OR Apache-2.0]()
|
|
@@ -0,0 +1,39 @@
|
|
|
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 * as runtime from '../runtime';
|
|
13
|
+
import type { AuditEntry } from '../models/index';
|
|
14
|
+
export interface ListAuditRequest {
|
|
15
|
+
user?: string | null;
|
|
16
|
+
resourceKind?: string | null;
|
|
17
|
+
since?: string | null;
|
|
18
|
+
until?: string | null;
|
|
19
|
+
limit?: number | null;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
*
|
|
23
|
+
*/
|
|
24
|
+
export declare class AuditApi extends runtime.BaseAPI {
|
|
25
|
+
/**
|
|
26
|
+
* Creates request options for listAudit without sending the request
|
|
27
|
+
*/
|
|
28
|
+
listAuditRequestOpts(requestParameters: ListAuditRequest): Promise<runtime.RequestOpts>;
|
|
29
|
+
/**
|
|
30
|
+
* # Errors Returns [`ApiError::Forbidden`] when the caller is not an admin, or [`ApiError::Internal`] if the store fails.
|
|
31
|
+
* List audit log entries. Admin only.
|
|
32
|
+
*/
|
|
33
|
+
listAuditRaw(requestParameters: ListAuditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<AuditEntry>>>;
|
|
34
|
+
/**
|
|
35
|
+
* # Errors Returns [`ApiError::Forbidden`] when the caller is not an admin, or [`ApiError::Internal`] if the store fails.
|
|
36
|
+
* List audit log entries. Admin only.
|
|
37
|
+
*/
|
|
38
|
+
listAudit(requestParameters?: ListAuditRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<AuditEntry>>;
|
|
39
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
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
|
+
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
16
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
17
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
18
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
19
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
20
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
21
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
22
|
+
});
|
|
23
|
+
};
|
|
24
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
25
|
+
exports.AuditApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class AuditApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for listAudit without sending the request
|
|
34
|
+
*/
|
|
35
|
+
listAuditRequestOpts(requestParameters) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
if (requestParameters['user'] != null) {
|
|
39
|
+
queryParameters['user'] = requestParameters['user'];
|
|
40
|
+
}
|
|
41
|
+
if (requestParameters['resourceKind'] != null) {
|
|
42
|
+
queryParameters['resource_kind'] = requestParameters['resourceKind'];
|
|
43
|
+
}
|
|
44
|
+
if (requestParameters['since'] != null) {
|
|
45
|
+
queryParameters['since'] = requestParameters['since'];
|
|
46
|
+
}
|
|
47
|
+
if (requestParameters['until'] != null) {
|
|
48
|
+
queryParameters['until'] = requestParameters['until'];
|
|
49
|
+
}
|
|
50
|
+
if (requestParameters['limit'] != null) {
|
|
51
|
+
queryParameters['limit'] = requestParameters['limit'];
|
|
52
|
+
}
|
|
53
|
+
const headerParameters = {};
|
|
54
|
+
let urlPath = `/api/v1/audit`;
|
|
55
|
+
return {
|
|
56
|
+
path: urlPath,
|
|
57
|
+
method: 'GET',
|
|
58
|
+
headers: headerParameters,
|
|
59
|
+
query: queryParameters,
|
|
60
|
+
};
|
|
61
|
+
});
|
|
62
|
+
}
|
|
63
|
+
/**
|
|
64
|
+
* # Errors Returns [`ApiError::Forbidden`] when the caller is not an admin, or [`ApiError::Internal`] if the store fails.
|
|
65
|
+
* List audit log entries. Admin only.
|
|
66
|
+
*/
|
|
67
|
+
listAuditRaw(requestParameters, initOverrides) {
|
|
68
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
69
|
+
const requestOptions = yield this.listAuditRequestOpts(requestParameters);
|
|
70
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
71
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.AuditEntryFromJSON));
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
/**
|
|
75
|
+
* # Errors Returns [`ApiError::Forbidden`] when the caller is not an admin, or [`ApiError::Internal`] if the store fails.
|
|
76
|
+
* List audit log entries. Admin only.
|
|
77
|
+
*/
|
|
78
|
+
listAudit() {
|
|
79
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
80
|
+
const response = yield this.listAuditRaw(requestParameters, initOverrides);
|
|
81
|
+
return yield response.value();
|
|
82
|
+
});
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
exports.AuditApi = AuditApi;
|