@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
|
@@ -0,0 +1,209 @@
|
|
|
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.ProxyApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class ProxyApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for listBackends without sending the request
|
|
34
|
+
*/
|
|
35
|
+
listBackendsRequestOpts() {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
const queryParameters = {};
|
|
38
|
+
const headerParameters = {};
|
|
39
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
40
|
+
const token = this.configuration.accessToken;
|
|
41
|
+
const tokenString = yield token("bearer_auth", []);
|
|
42
|
+
if (tokenString) {
|
|
43
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
let urlPath = `/api/v1/proxy/backends`;
|
|
47
|
+
return {
|
|
48
|
+
path: urlPath,
|
|
49
|
+
method: 'GET',
|
|
50
|
+
headers: headerParameters,
|
|
51
|
+
query: queryParameters,
|
|
52
|
+
};
|
|
53
|
+
});
|
|
54
|
+
}
|
|
55
|
+
/**
|
|
56
|
+
* Returns each service\'s backend group with its strategy, health status, and active connection counts. # Errors Returns `ApiError::ServiceUnavailable` if the load balancer is not initialised.
|
|
57
|
+
* List all load-balancer backend groups.
|
|
58
|
+
*/
|
|
59
|
+
listBackendsRaw(initOverrides) {
|
|
60
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
61
|
+
const requestOptions = yield this.listBackendsRequestOpts();
|
|
62
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
63
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BackendsResponseFromJSON)(jsonValue));
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Returns each service\'s backend group with its strategy, health status, and active connection counts. # Errors Returns `ApiError::ServiceUnavailable` if the load balancer is not initialised.
|
|
68
|
+
* List all load-balancer backend groups.
|
|
69
|
+
*/
|
|
70
|
+
listBackends(initOverrides) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
const response = yield this.listBackendsRaw(initOverrides);
|
|
73
|
+
return yield response.value();
|
|
74
|
+
});
|
|
75
|
+
}
|
|
76
|
+
/**
|
|
77
|
+
* Creates request options for listRoutes without sending the request
|
|
78
|
+
*/
|
|
79
|
+
listRoutesRequestOpts() {
|
|
80
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
81
|
+
const queryParameters = {};
|
|
82
|
+
const headerParameters = {};
|
|
83
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
84
|
+
const token = this.configuration.accessToken;
|
|
85
|
+
const tokenString = yield token("bearer_auth", []);
|
|
86
|
+
if (tokenString) {
|
|
87
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
let urlPath = `/api/v1/proxy/routes`;
|
|
91
|
+
return {
|
|
92
|
+
path: urlPath,
|
|
93
|
+
method: 'GET',
|
|
94
|
+
headers: headerParameters,
|
|
95
|
+
query: queryParameters,
|
|
96
|
+
};
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
/**
|
|
100
|
+
* Returns the full list of L7 routes with their host patterns, path prefixes, backends, and protocol information. # Errors Returns `ApiError::ServiceUnavailable` if the service registry is not initialised.
|
|
101
|
+
* List all registered proxy routes.
|
|
102
|
+
*/
|
|
103
|
+
listRoutesRaw(initOverrides) {
|
|
104
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
105
|
+
const requestOptions = yield this.listRoutesRequestOpts();
|
|
106
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
107
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.RoutesResponseFromJSON)(jsonValue));
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* Returns the full list of L7 routes with their host patterns, path prefixes, backends, and protocol information. # Errors Returns `ApiError::ServiceUnavailable` if the service registry is not initialised.
|
|
112
|
+
* List all registered proxy routes.
|
|
113
|
+
*/
|
|
114
|
+
listRoutes(initOverrides) {
|
|
115
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
116
|
+
const response = yield this.listRoutesRaw(initOverrides);
|
|
117
|
+
return yield response.value();
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
/**
|
|
121
|
+
* Creates request options for listStreams without sending the request
|
|
122
|
+
*/
|
|
123
|
+
listStreamsRequestOpts() {
|
|
124
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
125
|
+
const queryParameters = {};
|
|
126
|
+
const headerParameters = {};
|
|
127
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
128
|
+
const token = this.configuration.accessToken;
|
|
129
|
+
const tokenString = yield token("bearer_auth", []);
|
|
130
|
+
if (tokenString) {
|
|
131
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
132
|
+
}
|
|
133
|
+
}
|
|
134
|
+
let urlPath = `/api/v1/proxy/streams`;
|
|
135
|
+
return {
|
|
136
|
+
path: urlPath,
|
|
137
|
+
method: 'GET',
|
|
138
|
+
headers: headerParameters,
|
|
139
|
+
query: queryParameters,
|
|
140
|
+
};
|
|
141
|
+
});
|
|
142
|
+
}
|
|
143
|
+
/**
|
|
144
|
+
* Returns all TCP and UDP stream proxies with their listen ports, service names, and backends. # Errors Returns `ApiError::ServiceUnavailable` if the stream registry is not initialised.
|
|
145
|
+
* List L4 stream proxies.
|
|
146
|
+
*/
|
|
147
|
+
listStreamsRaw(initOverrides) {
|
|
148
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
149
|
+
const requestOptions = yield this.listStreamsRequestOpts();
|
|
150
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
151
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.StreamsResponseFromJSON)(jsonValue));
|
|
152
|
+
});
|
|
153
|
+
}
|
|
154
|
+
/**
|
|
155
|
+
* Returns all TCP and UDP stream proxies with their listen ports, service names, and backends. # Errors Returns `ApiError::ServiceUnavailable` if the stream registry is not initialised.
|
|
156
|
+
* List L4 stream proxies.
|
|
157
|
+
*/
|
|
158
|
+
listStreams(initOverrides) {
|
|
159
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
160
|
+
const response = yield this.listStreamsRaw(initOverrides);
|
|
161
|
+
return yield response.value();
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Creates request options for listTls without sending the request
|
|
166
|
+
*/
|
|
167
|
+
listTlsRequestOpts() {
|
|
168
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
169
|
+
const queryParameters = {};
|
|
170
|
+
const headerParameters = {};
|
|
171
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
172
|
+
const token = this.configuration.accessToken;
|
|
173
|
+
const tokenString = yield token("bearer_auth", []);
|
|
174
|
+
if (tokenString) {
|
|
175
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
let urlPath = `/api/v1/proxy/tls`;
|
|
179
|
+
return {
|
|
180
|
+
path: urlPath,
|
|
181
|
+
method: 'GET',
|
|
182
|
+
headers: headerParameters,
|
|
183
|
+
query: queryParameters,
|
|
184
|
+
};
|
|
185
|
+
});
|
|
186
|
+
}
|
|
187
|
+
/**
|
|
188
|
+
* Returns cached certificate domains with metadata (expiry, fingerprint) when available. # Errors Returns `ApiError::ServiceUnavailable` if the certificate manager is not initialised.
|
|
189
|
+
* List loaded TLS certificates.
|
|
190
|
+
*/
|
|
191
|
+
listTlsRaw(initOverrides) {
|
|
192
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
193
|
+
const requestOptions = yield this.listTlsRequestOpts();
|
|
194
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
195
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.TlsResponseFromJSON)(jsonValue));
|
|
196
|
+
});
|
|
197
|
+
}
|
|
198
|
+
/**
|
|
199
|
+
* Returns cached certificate domains with metadata (expiry, fingerprint) when available. # Errors Returns `ApiError::ServiceUnavailable` if the certificate manager is not initialised.
|
|
200
|
+
* List loaded TLS certificates.
|
|
201
|
+
*/
|
|
202
|
+
listTls(initOverrides) {
|
|
203
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
204
|
+
const response = yield this.listTlsRaw(initOverrides);
|
|
205
|
+
return yield response.value();
|
|
206
|
+
});
|
|
207
|
+
}
|
|
208
|
+
}
|
|
209
|
+
exports.ProxyApi = ProxyApi;
|
|
@@ -0,0 +1,112 @@
|
|
|
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 { BulkImportResponse, CreateSecretRequest, SecretMetadataResponse } from '../models/index';
|
|
14
|
+
export interface BulkImportSecretsRequest {
|
|
15
|
+
environment: string;
|
|
16
|
+
body: string;
|
|
17
|
+
}
|
|
18
|
+
export interface CreateSecretOperationRequest {
|
|
19
|
+
createSecretRequest: CreateSecretRequest;
|
|
20
|
+
environment?: string;
|
|
21
|
+
scope?: string;
|
|
22
|
+
}
|
|
23
|
+
export interface DeleteSecretRequest {
|
|
24
|
+
name: string;
|
|
25
|
+
environment?: string;
|
|
26
|
+
scope?: string;
|
|
27
|
+
}
|
|
28
|
+
export interface GetSecretMetadataRequest {
|
|
29
|
+
name: string;
|
|
30
|
+
environment?: string;
|
|
31
|
+
scope?: string;
|
|
32
|
+
reveal?: boolean;
|
|
33
|
+
}
|
|
34
|
+
export interface ListSecretsRequest {
|
|
35
|
+
environment?: string;
|
|
36
|
+
scope?: string;
|
|
37
|
+
}
|
|
38
|
+
/**
|
|
39
|
+
*
|
|
40
|
+
*/
|
|
41
|
+
export declare class SecretsApi extends runtime.BaseAPI {
|
|
42
|
+
/**
|
|
43
|
+
* Creates request options for bulkImportSecrets without sending the request
|
|
44
|
+
*/
|
|
45
|
+
bulkImportSecretsRequestOpts(requestParameters: BulkImportSecretsRequest): Promise<runtime.RequestOpts>;
|
|
46
|
+
/**
|
|
47
|
+
* Each non-empty, non-comment line is parsed into a (name, value) pair and written to the env\'s scope. Lines that fail to parse are returned in `errors` and do not abort the import. Each successful write is counted as either `created` or `updated`. # Errors Returns [`ApiError::Forbidden`] for non-admins, [`ApiError::NotFound`] when the environment id is unknown, or [`ApiError::Internal`] when the secrets store fails.
|
|
48
|
+
* Bulk-import secrets from a dotenv-style payload (`KEY=value\\n…`).
|
|
49
|
+
*/
|
|
50
|
+
bulkImportSecretsRaw(requestParameters: BulkImportSecretsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<BulkImportResponse>>;
|
|
51
|
+
/**
|
|
52
|
+
* Each non-empty, non-comment line is parsed into a (name, value) pair and written to the env\'s scope. Lines that fail to parse are returned in `errors` and do not abort the import. Each successful write is counted as either `created` or `updated`. # Errors Returns [`ApiError::Forbidden`] for non-admins, [`ApiError::NotFound`] when the environment id is unknown, or [`ApiError::Internal`] when the secrets store fails.
|
|
53
|
+
* Bulk-import secrets from a dotenv-style payload (`KEY=value\\n…`).
|
|
54
|
+
*/
|
|
55
|
+
bulkImportSecrets(requestParameters: BulkImportSecretsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<BulkImportResponse>;
|
|
56
|
+
/**
|
|
57
|
+
* Creates request options for createSecret without sending the request
|
|
58
|
+
*/
|
|
59
|
+
createSecretRequestOpts(requestParameters: CreateSecretOperationRequest): Promise<runtime.RequestOpts>;
|
|
60
|
+
/**
|
|
61
|
+
* Stores a new secret or updates an existing one. The secret value is encrypted at rest and the version number is incremented on updates. Scope resolution: see [`resolve_scope`]. # Errors Returns an error if validation fails, storage operations fail, or the caller lacks permission.
|
|
62
|
+
* Create or update a secret.
|
|
63
|
+
*/
|
|
64
|
+
createSecretRaw(requestParameters: CreateSecretOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SecretMetadataResponse>>;
|
|
65
|
+
/**
|
|
66
|
+
* Stores a new secret or updates an existing one. The secret value is encrypted at rest and the version number is incremented on updates. Scope resolution: see [`resolve_scope`]. # Errors Returns an error if validation fails, storage operations fail, or the caller lacks permission.
|
|
67
|
+
* Create or update a secret.
|
|
68
|
+
*/
|
|
69
|
+
createSecret(requestParameters: CreateSecretOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SecretMetadataResponse>;
|
|
70
|
+
/**
|
|
71
|
+
* Creates request options for deleteSecret without sending the request
|
|
72
|
+
*/
|
|
73
|
+
deleteSecretRequestOpts(requestParameters: DeleteSecretRequest): Promise<runtime.RequestOpts>;
|
|
74
|
+
/**
|
|
75
|
+
* Scope resolution: see [`resolve_scope_get`] (the same query type is reused minus `reveal`). # Errors Returns an error if the secret is not found, storage access fails, or the caller lacks permission.
|
|
76
|
+
* Delete a secret.
|
|
77
|
+
*/
|
|
78
|
+
deleteSecretRaw(requestParameters: DeleteSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
|
|
79
|
+
/**
|
|
80
|
+
* Scope resolution: see [`resolve_scope_get`] (the same query type is reused minus `reveal`). # Errors Returns an error if the secret is not found, storage access fails, or the caller lacks permission.
|
|
81
|
+
* Delete a secret.
|
|
82
|
+
*/
|
|
83
|
+
deleteSecret(requestParameters: DeleteSecretRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
|
|
84
|
+
/**
|
|
85
|
+
* Creates request options for getSecretMetadata without sending the request
|
|
86
|
+
*/
|
|
87
|
+
getSecretMetadataRequestOpts(requestParameters: GetSecretMetadataRequest): Promise<runtime.RequestOpts>;
|
|
88
|
+
/**
|
|
89
|
+
* Scope resolution: see [`resolve_scope_get`]. # Errors Returns an error if the secret is not found, the caller is unauthorised to reveal, or storage access fails.
|
|
90
|
+
* Get metadata for a specific secret. With `?reveal=true` (admin only), the response also includes the plaintext `value`.
|
|
91
|
+
*/
|
|
92
|
+
getSecretMetadataRaw(requestParameters: GetSecretMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<SecretMetadataResponse>>;
|
|
93
|
+
/**
|
|
94
|
+
* Scope resolution: see [`resolve_scope_get`]. # Errors Returns an error if the secret is not found, the caller is unauthorised to reveal, or storage access fails.
|
|
95
|
+
* Get metadata for a specific secret. With `?reveal=true` (admin only), the response also includes the plaintext `value`.
|
|
96
|
+
*/
|
|
97
|
+
getSecretMetadata(requestParameters: GetSecretMetadataRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<SecretMetadataResponse>;
|
|
98
|
+
/**
|
|
99
|
+
* Creates request options for listSecrets without sending the request
|
|
100
|
+
*/
|
|
101
|
+
listSecretsRequestOpts(requestParameters: ListSecretsRequest): Promise<runtime.RequestOpts>;
|
|
102
|
+
/**
|
|
103
|
+
* Scope resolution: see [`resolve_scope`]. # Errors Returns an error if storage access fails.
|
|
104
|
+
* List secrets in a scope.
|
|
105
|
+
*/
|
|
106
|
+
listSecretsRaw(requestParameters: ListSecretsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<SecretMetadataResponse>>>;
|
|
107
|
+
/**
|
|
108
|
+
* Scope resolution: see [`resolve_scope`]. # Errors Returns an error if storage access fails.
|
|
109
|
+
* List secrets in a scope.
|
|
110
|
+
*/
|
|
111
|
+
listSecrets(requestParameters?: ListSecretsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<SecretMetadataResponse>>;
|
|
112
|
+
}
|
|
@@ -0,0 +1,303 @@
|
|
|
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.SecretsApi = void 0;
|
|
26
|
+
const runtime = require("../runtime");
|
|
27
|
+
const index_1 = require("../models/index");
|
|
28
|
+
/**
|
|
29
|
+
*
|
|
30
|
+
*/
|
|
31
|
+
class SecretsApi extends runtime.BaseAPI {
|
|
32
|
+
/**
|
|
33
|
+
* Creates request options for bulkImportSecrets without sending the request
|
|
34
|
+
*/
|
|
35
|
+
bulkImportSecretsRequestOpts(requestParameters) {
|
|
36
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
37
|
+
if (requestParameters['environment'] == null) {
|
|
38
|
+
throw new runtime.RequiredError('environment', 'Required parameter "environment" was null or undefined when calling bulkImportSecrets().');
|
|
39
|
+
}
|
|
40
|
+
if (requestParameters['body'] == null) {
|
|
41
|
+
throw new runtime.RequiredError('body', 'Required parameter "body" was null or undefined when calling bulkImportSecrets().');
|
|
42
|
+
}
|
|
43
|
+
const queryParameters = {};
|
|
44
|
+
if (requestParameters['environment'] != null) {
|
|
45
|
+
queryParameters['environment'] = requestParameters['environment'];
|
|
46
|
+
}
|
|
47
|
+
const headerParameters = {};
|
|
48
|
+
headerParameters['Content-Type'] = 'text/plain';
|
|
49
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
50
|
+
const token = this.configuration.accessToken;
|
|
51
|
+
const tokenString = yield token("bearer_auth", []);
|
|
52
|
+
if (tokenString) {
|
|
53
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
let urlPath = `/api/v1/secrets/bulk-import`;
|
|
57
|
+
return {
|
|
58
|
+
path: urlPath,
|
|
59
|
+
method: 'POST',
|
|
60
|
+
headers: headerParameters,
|
|
61
|
+
query: queryParameters,
|
|
62
|
+
body: requestParameters['body'],
|
|
63
|
+
};
|
|
64
|
+
});
|
|
65
|
+
}
|
|
66
|
+
/**
|
|
67
|
+
* Each non-empty, non-comment line is parsed into a (name, value) pair and written to the env\'s scope. Lines that fail to parse are returned in `errors` and do not abort the import. Each successful write is counted as either `created` or `updated`. # Errors Returns [`ApiError::Forbidden`] for non-admins, [`ApiError::NotFound`] when the environment id is unknown, or [`ApiError::Internal`] when the secrets store fails.
|
|
68
|
+
* Bulk-import secrets from a dotenv-style payload (`KEY=value\\n…`).
|
|
69
|
+
*/
|
|
70
|
+
bulkImportSecretsRaw(requestParameters, initOverrides) {
|
|
71
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
72
|
+
const requestOptions = yield this.bulkImportSecretsRequestOpts(requestParameters);
|
|
73
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
74
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.BulkImportResponseFromJSON)(jsonValue));
|
|
75
|
+
});
|
|
76
|
+
}
|
|
77
|
+
/**
|
|
78
|
+
* Each non-empty, non-comment line is parsed into a (name, value) pair and written to the env\'s scope. Lines that fail to parse are returned in `errors` and do not abort the import. Each successful write is counted as either `created` or `updated`. # Errors Returns [`ApiError::Forbidden`] for non-admins, [`ApiError::NotFound`] when the environment id is unknown, or [`ApiError::Internal`] when the secrets store fails.
|
|
79
|
+
* Bulk-import secrets from a dotenv-style payload (`KEY=value\\n…`).
|
|
80
|
+
*/
|
|
81
|
+
bulkImportSecrets(requestParameters, initOverrides) {
|
|
82
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
83
|
+
const response = yield this.bulkImportSecretsRaw(requestParameters, initOverrides);
|
|
84
|
+
return yield response.value();
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
/**
|
|
88
|
+
* Creates request options for createSecret without sending the request
|
|
89
|
+
*/
|
|
90
|
+
createSecretRequestOpts(requestParameters) {
|
|
91
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
92
|
+
if (requestParameters['createSecretRequest'] == null) {
|
|
93
|
+
throw new runtime.RequiredError('createSecretRequest', 'Required parameter "createSecretRequest" was null or undefined when calling createSecret().');
|
|
94
|
+
}
|
|
95
|
+
const queryParameters = {};
|
|
96
|
+
if (requestParameters['environment'] != null) {
|
|
97
|
+
queryParameters['environment'] = requestParameters['environment'];
|
|
98
|
+
}
|
|
99
|
+
if (requestParameters['scope'] != null) {
|
|
100
|
+
queryParameters['scope'] = requestParameters['scope'];
|
|
101
|
+
}
|
|
102
|
+
const headerParameters = {};
|
|
103
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
104
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
105
|
+
const token = this.configuration.accessToken;
|
|
106
|
+
const tokenString = yield token("bearer_auth", []);
|
|
107
|
+
if (tokenString) {
|
|
108
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
let urlPath = `/api/v1/secrets`;
|
|
112
|
+
return {
|
|
113
|
+
path: urlPath,
|
|
114
|
+
method: 'POST',
|
|
115
|
+
headers: headerParameters,
|
|
116
|
+
query: queryParameters,
|
|
117
|
+
body: (0, index_1.CreateSecretRequestToJSON)(requestParameters['createSecretRequest']),
|
|
118
|
+
};
|
|
119
|
+
});
|
|
120
|
+
}
|
|
121
|
+
/**
|
|
122
|
+
* Stores a new secret or updates an existing one. The secret value is encrypted at rest and the version number is incremented on updates. Scope resolution: see [`resolve_scope`]. # Errors Returns an error if validation fails, storage operations fail, or the caller lacks permission.
|
|
123
|
+
* Create or update a secret.
|
|
124
|
+
*/
|
|
125
|
+
createSecretRaw(requestParameters, initOverrides) {
|
|
126
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
127
|
+
const requestOptions = yield this.createSecretRequestOpts(requestParameters);
|
|
128
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
129
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SecretMetadataResponseFromJSON)(jsonValue));
|
|
130
|
+
});
|
|
131
|
+
}
|
|
132
|
+
/**
|
|
133
|
+
* Stores a new secret or updates an existing one. The secret value is encrypted at rest and the version number is incremented on updates. Scope resolution: see [`resolve_scope`]. # Errors Returns an error if validation fails, storage operations fail, or the caller lacks permission.
|
|
134
|
+
* Create or update a secret.
|
|
135
|
+
*/
|
|
136
|
+
createSecret(requestParameters, initOverrides) {
|
|
137
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
138
|
+
const response = yield this.createSecretRaw(requestParameters, initOverrides);
|
|
139
|
+
return yield response.value();
|
|
140
|
+
});
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Creates request options for deleteSecret without sending the request
|
|
144
|
+
*/
|
|
145
|
+
deleteSecretRequestOpts(requestParameters) {
|
|
146
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
147
|
+
if (requestParameters['name'] == null) {
|
|
148
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling deleteSecret().');
|
|
149
|
+
}
|
|
150
|
+
const queryParameters = {};
|
|
151
|
+
if (requestParameters['environment'] != null) {
|
|
152
|
+
queryParameters['environment'] = requestParameters['environment'];
|
|
153
|
+
}
|
|
154
|
+
if (requestParameters['scope'] != null) {
|
|
155
|
+
queryParameters['scope'] = requestParameters['scope'];
|
|
156
|
+
}
|
|
157
|
+
const headerParameters = {};
|
|
158
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
159
|
+
const token = this.configuration.accessToken;
|
|
160
|
+
const tokenString = yield token("bearer_auth", []);
|
|
161
|
+
if (tokenString) {
|
|
162
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
let urlPath = `/api/v1/secrets/{name}`;
|
|
166
|
+
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
|
|
167
|
+
return {
|
|
168
|
+
path: urlPath,
|
|
169
|
+
method: 'DELETE',
|
|
170
|
+
headers: headerParameters,
|
|
171
|
+
query: queryParameters,
|
|
172
|
+
};
|
|
173
|
+
});
|
|
174
|
+
}
|
|
175
|
+
/**
|
|
176
|
+
* Scope resolution: see [`resolve_scope_get`] (the same query type is reused minus `reveal`). # Errors Returns an error if the secret is not found, storage access fails, or the caller lacks permission.
|
|
177
|
+
* Delete a secret.
|
|
178
|
+
*/
|
|
179
|
+
deleteSecretRaw(requestParameters, initOverrides) {
|
|
180
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
181
|
+
const requestOptions = yield this.deleteSecretRequestOpts(requestParameters);
|
|
182
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
183
|
+
return new runtime.VoidApiResponse(response);
|
|
184
|
+
});
|
|
185
|
+
}
|
|
186
|
+
/**
|
|
187
|
+
* Scope resolution: see [`resolve_scope_get`] (the same query type is reused minus `reveal`). # Errors Returns an error if the secret is not found, storage access fails, or the caller lacks permission.
|
|
188
|
+
* Delete a secret.
|
|
189
|
+
*/
|
|
190
|
+
deleteSecret(requestParameters, initOverrides) {
|
|
191
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
192
|
+
yield this.deleteSecretRaw(requestParameters, initOverrides);
|
|
193
|
+
});
|
|
194
|
+
}
|
|
195
|
+
/**
|
|
196
|
+
* Creates request options for getSecretMetadata without sending the request
|
|
197
|
+
*/
|
|
198
|
+
getSecretMetadataRequestOpts(requestParameters) {
|
|
199
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
200
|
+
if (requestParameters['name'] == null) {
|
|
201
|
+
throw new runtime.RequiredError('name', 'Required parameter "name" was null or undefined when calling getSecretMetadata().');
|
|
202
|
+
}
|
|
203
|
+
const queryParameters = {};
|
|
204
|
+
if (requestParameters['environment'] != null) {
|
|
205
|
+
queryParameters['environment'] = requestParameters['environment'];
|
|
206
|
+
}
|
|
207
|
+
if (requestParameters['scope'] != null) {
|
|
208
|
+
queryParameters['scope'] = requestParameters['scope'];
|
|
209
|
+
}
|
|
210
|
+
if (requestParameters['reveal'] != null) {
|
|
211
|
+
queryParameters['reveal'] = requestParameters['reveal'];
|
|
212
|
+
}
|
|
213
|
+
const headerParameters = {};
|
|
214
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
215
|
+
const token = this.configuration.accessToken;
|
|
216
|
+
const tokenString = yield token("bearer_auth", []);
|
|
217
|
+
if (tokenString) {
|
|
218
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
let urlPath = `/api/v1/secrets/{name}`;
|
|
222
|
+
urlPath = urlPath.replace(`{${"name"}}`, encodeURIComponent(String(requestParameters['name'])));
|
|
223
|
+
return {
|
|
224
|
+
path: urlPath,
|
|
225
|
+
method: 'GET',
|
|
226
|
+
headers: headerParameters,
|
|
227
|
+
query: queryParameters,
|
|
228
|
+
};
|
|
229
|
+
});
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
* Scope resolution: see [`resolve_scope_get`]. # Errors Returns an error if the secret is not found, the caller is unauthorised to reveal, or storage access fails.
|
|
233
|
+
* Get metadata for a specific secret. With `?reveal=true` (admin only), the response also includes the plaintext `value`.
|
|
234
|
+
*/
|
|
235
|
+
getSecretMetadataRaw(requestParameters, initOverrides) {
|
|
236
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
237
|
+
const requestOptions = yield this.getSecretMetadataRequestOpts(requestParameters);
|
|
238
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
239
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.SecretMetadataResponseFromJSON)(jsonValue));
|
|
240
|
+
});
|
|
241
|
+
}
|
|
242
|
+
/**
|
|
243
|
+
* Scope resolution: see [`resolve_scope_get`]. # Errors Returns an error if the secret is not found, the caller is unauthorised to reveal, or storage access fails.
|
|
244
|
+
* Get metadata for a specific secret. With `?reveal=true` (admin only), the response also includes the plaintext `value`.
|
|
245
|
+
*/
|
|
246
|
+
getSecretMetadata(requestParameters, initOverrides) {
|
|
247
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
248
|
+
const response = yield this.getSecretMetadataRaw(requestParameters, initOverrides);
|
|
249
|
+
return yield response.value();
|
|
250
|
+
});
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Creates request options for listSecrets without sending the request
|
|
254
|
+
*/
|
|
255
|
+
listSecretsRequestOpts(requestParameters) {
|
|
256
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
257
|
+
const queryParameters = {};
|
|
258
|
+
if (requestParameters['environment'] != null) {
|
|
259
|
+
queryParameters['environment'] = requestParameters['environment'];
|
|
260
|
+
}
|
|
261
|
+
if (requestParameters['scope'] != null) {
|
|
262
|
+
queryParameters['scope'] = requestParameters['scope'];
|
|
263
|
+
}
|
|
264
|
+
const headerParameters = {};
|
|
265
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
266
|
+
const token = this.configuration.accessToken;
|
|
267
|
+
const tokenString = yield token("bearer_auth", []);
|
|
268
|
+
if (tokenString) {
|
|
269
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
270
|
+
}
|
|
271
|
+
}
|
|
272
|
+
let urlPath = `/api/v1/secrets`;
|
|
273
|
+
return {
|
|
274
|
+
path: urlPath,
|
|
275
|
+
method: 'GET',
|
|
276
|
+
headers: headerParameters,
|
|
277
|
+
query: queryParameters,
|
|
278
|
+
};
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
/**
|
|
282
|
+
* Scope resolution: see [`resolve_scope`]. # Errors Returns an error if storage access fails.
|
|
283
|
+
* List secrets in a scope.
|
|
284
|
+
*/
|
|
285
|
+
listSecretsRaw(requestParameters, initOverrides) {
|
|
286
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
287
|
+
const requestOptions = yield this.listSecretsRequestOpts(requestParameters);
|
|
288
|
+
const response = yield this.request(requestOptions, initOverrides);
|
|
289
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(index_1.SecretMetadataResponseFromJSON));
|
|
290
|
+
});
|
|
291
|
+
}
|
|
292
|
+
/**
|
|
293
|
+
* Scope resolution: see [`resolve_scope`]. # Errors Returns an error if storage access fails.
|
|
294
|
+
* List secrets in a scope.
|
|
295
|
+
*/
|
|
296
|
+
listSecrets() {
|
|
297
|
+
return __awaiter(this, arguments, void 0, function* (requestParameters = {}, initOverrides) {
|
|
298
|
+
const response = yield this.listSecretsRaw(requestParameters, initOverrides);
|
|
299
|
+
return yield response.value();
|
|
300
|
+
});
|
|
301
|
+
}
|
|
302
|
+
}
|
|
303
|
+
exports.SecretsApi = SecretsApi;
|