@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,355 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ZLayer API
|
|
5
|
+
* Container orchestration API for ZLayer
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
CreateUserRequest,
|
|
19
|
+
SetPasswordRequest,
|
|
20
|
+
UpdateUserRequest,
|
|
21
|
+
UserView,
|
|
22
|
+
} from '../models/index';
|
|
23
|
+
import {
|
|
24
|
+
CreateUserRequestFromJSON,
|
|
25
|
+
CreateUserRequestToJSON,
|
|
26
|
+
SetPasswordRequestFromJSON,
|
|
27
|
+
SetPasswordRequestToJSON,
|
|
28
|
+
UpdateUserRequestFromJSON,
|
|
29
|
+
UpdateUserRequestToJSON,
|
|
30
|
+
UserViewFromJSON,
|
|
31
|
+
UserViewToJSON,
|
|
32
|
+
} from '../models/index';
|
|
33
|
+
|
|
34
|
+
export interface CreateUserOperationRequest {
|
|
35
|
+
createUserRequest: CreateUserRequest;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export interface DeleteUserRequest {
|
|
39
|
+
id: string;
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export interface GetUserRequest {
|
|
43
|
+
id: string;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export interface SetPasswordOperationRequest {
|
|
47
|
+
id: string;
|
|
48
|
+
setPasswordRequest: SetPasswordRequest;
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export interface UpdateUserOperationRequest {
|
|
52
|
+
id: string;
|
|
53
|
+
updateUserRequest: UpdateUserRequest;
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
/**
|
|
57
|
+
*
|
|
58
|
+
*/
|
|
59
|
+
export class UsersApi extends runtime.BaseAPI {
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Creates request options for createUser without sending the request
|
|
63
|
+
*/
|
|
64
|
+
async createUserRequestOpts(requestParameters: CreateUserOperationRequest): Promise<runtime.RequestOpts> {
|
|
65
|
+
if (requestParameters['createUserRequest'] == null) {
|
|
66
|
+
throw new runtime.RequiredError(
|
|
67
|
+
'createUserRequest',
|
|
68
|
+
'Required parameter "createUserRequest" was null or undefined when calling createUser().'
|
|
69
|
+
);
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
const queryParameters: any = {};
|
|
73
|
+
|
|
74
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
75
|
+
|
|
76
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
77
|
+
|
|
78
|
+
|
|
79
|
+
let urlPath = `/api/v1/users`;
|
|
80
|
+
|
|
81
|
+
return {
|
|
82
|
+
path: urlPath,
|
|
83
|
+
method: 'POST',
|
|
84
|
+
headers: headerParameters,
|
|
85
|
+
query: queryParameters,
|
|
86
|
+
body: CreateUserRequestToJSON(requestParameters['createUserRequest']),
|
|
87
|
+
};
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* # Errors Returns [`ApiError::Forbidden`] when the caller is not an admin, [`ApiError::BadRequest`] when the body is incomplete, [`ApiError::Conflict`] when the email is already registered, or [`ApiError::Internal`] if a backing store fails.
|
|
92
|
+
* Create a new user. Admin only.
|
|
93
|
+
*/
|
|
94
|
+
async createUserRaw(requestParameters: CreateUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserView>> {
|
|
95
|
+
const requestOptions = await this.createUserRequestOpts(requestParameters);
|
|
96
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
97
|
+
|
|
98
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserViewFromJSON(jsonValue));
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
/**
|
|
102
|
+
* # Errors Returns [`ApiError::Forbidden`] when the caller is not an admin, [`ApiError::BadRequest`] when the body is incomplete, [`ApiError::Conflict`] when the email is already registered, or [`ApiError::Internal`] if a backing store fails.
|
|
103
|
+
* Create a new user. Admin only.
|
|
104
|
+
*/
|
|
105
|
+
async createUser(requestParameters: CreateUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserView> {
|
|
106
|
+
const response = await this.createUserRaw(requestParameters, initOverrides);
|
|
107
|
+
return await response.value();
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* Creates request options for deleteUser without sending the request
|
|
112
|
+
*/
|
|
113
|
+
async deleteUserRequestOpts(requestParameters: DeleteUserRequest): Promise<runtime.RequestOpts> {
|
|
114
|
+
if (requestParameters['id'] == null) {
|
|
115
|
+
throw new runtime.RequiredError(
|
|
116
|
+
'id',
|
|
117
|
+
'Required parameter "id" was null or undefined when calling deleteUser().'
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
const queryParameters: any = {};
|
|
122
|
+
|
|
123
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
124
|
+
|
|
125
|
+
|
|
126
|
+
let urlPath = `/api/v1/users/{id}`;
|
|
127
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
128
|
+
|
|
129
|
+
return {
|
|
130
|
+
path: urlPath,
|
|
131
|
+
method: 'DELETE',
|
|
132
|
+
headers: headerParameters,
|
|
133
|
+
query: queryParameters,
|
|
134
|
+
};
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
/**
|
|
138
|
+
* # Errors Returns [`ApiError::Forbidden`] when the caller is not an admin, [`ApiError::BadRequest`] when an admin tries to delete themselves, [`ApiError::NotFound`] when the user does not exist, or [`ApiError::Internal`] if a backing store fails.
|
|
139
|
+
* Delete a user. Admin only. Callers cannot delete their own account.
|
|
140
|
+
*/
|
|
141
|
+
async deleteUserRaw(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
142
|
+
const requestOptions = await this.deleteUserRequestOpts(requestParameters);
|
|
143
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
144
|
+
|
|
145
|
+
return new runtime.VoidApiResponse(response);
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
/**
|
|
149
|
+
* # Errors Returns [`ApiError::Forbidden`] when the caller is not an admin, [`ApiError::BadRequest`] when an admin tries to delete themselves, [`ApiError::NotFound`] when the user does not exist, or [`ApiError::Internal`] if a backing store fails.
|
|
150
|
+
* Delete a user. Admin only. Callers cannot delete their own account.
|
|
151
|
+
*/
|
|
152
|
+
async deleteUser(requestParameters: DeleteUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
153
|
+
await this.deleteUserRaw(requestParameters, initOverrides);
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
/**
|
|
157
|
+
* Creates request options for getUser without sending the request
|
|
158
|
+
*/
|
|
159
|
+
async getUserRequestOpts(requestParameters: GetUserRequest): Promise<runtime.RequestOpts> {
|
|
160
|
+
if (requestParameters['id'] == null) {
|
|
161
|
+
throw new runtime.RequiredError(
|
|
162
|
+
'id',
|
|
163
|
+
'Required parameter "id" was null or undefined when calling getUser().'
|
|
164
|
+
);
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
const queryParameters: any = {};
|
|
168
|
+
|
|
169
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
170
|
+
|
|
171
|
+
|
|
172
|
+
let urlPath = `/api/v1/users/{id}`;
|
|
173
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
174
|
+
|
|
175
|
+
return {
|
|
176
|
+
path: urlPath,
|
|
177
|
+
method: 'GET',
|
|
178
|
+
headers: headerParameters,
|
|
179
|
+
query: queryParameters,
|
|
180
|
+
};
|
|
181
|
+
}
|
|
182
|
+
|
|
183
|
+
/**
|
|
184
|
+
* # Errors Returns [`ApiError::Forbidden`] when a non-admin tries to read a different user, [`ApiError::NotFound`] when no such user exists, or [`ApiError::Internal`] when the store fails.
|
|
185
|
+
* Fetch a single user. Admins can read any record; regular users can read only their own.
|
|
186
|
+
*/
|
|
187
|
+
async getUserRaw(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserView>> {
|
|
188
|
+
const requestOptions = await this.getUserRequestOpts(requestParameters);
|
|
189
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
190
|
+
|
|
191
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserViewFromJSON(jsonValue));
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
/**
|
|
195
|
+
* # Errors Returns [`ApiError::Forbidden`] when a non-admin tries to read a different user, [`ApiError::NotFound`] when no such user exists, or [`ApiError::Internal`] when the store fails.
|
|
196
|
+
* Fetch a single user. Admins can read any record; regular users can read only their own.
|
|
197
|
+
*/
|
|
198
|
+
async getUser(requestParameters: GetUserRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserView> {
|
|
199
|
+
const response = await this.getUserRaw(requestParameters, initOverrides);
|
|
200
|
+
return await response.value();
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* Creates request options for listUsers without sending the request
|
|
205
|
+
*/
|
|
206
|
+
async listUsersRequestOpts(): Promise<runtime.RequestOpts> {
|
|
207
|
+
const queryParameters: any = {};
|
|
208
|
+
|
|
209
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
210
|
+
|
|
211
|
+
|
|
212
|
+
let urlPath = `/api/v1/users`;
|
|
213
|
+
|
|
214
|
+
return {
|
|
215
|
+
path: urlPath,
|
|
216
|
+
method: 'GET',
|
|
217
|
+
headers: headerParameters,
|
|
218
|
+
query: queryParameters,
|
|
219
|
+
};
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
/**
|
|
223
|
+
* # Errors Returns [`ApiError::Forbidden`] when the caller is not an admin, or [`ApiError::Internal`] if the user store fails.
|
|
224
|
+
* List all users. Admin only.
|
|
225
|
+
*/
|
|
226
|
+
async listUsersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<UserView>>> {
|
|
227
|
+
const requestOptions = await this.listUsersRequestOpts();
|
|
228
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
229
|
+
|
|
230
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(UserViewFromJSON));
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
/**
|
|
234
|
+
* # Errors Returns [`ApiError::Forbidden`] when the caller is not an admin, or [`ApiError::Internal`] if the user store fails.
|
|
235
|
+
* List all users. Admin only.
|
|
236
|
+
*/
|
|
237
|
+
async listUsers(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<UserView>> {
|
|
238
|
+
const response = await this.listUsersRaw(initOverrides);
|
|
239
|
+
return await response.value();
|
|
240
|
+
}
|
|
241
|
+
|
|
242
|
+
/**
|
|
243
|
+
* Creates request options for setPassword without sending the request
|
|
244
|
+
*/
|
|
245
|
+
async setPasswordRequestOpts(requestParameters: SetPasswordOperationRequest): Promise<runtime.RequestOpts> {
|
|
246
|
+
if (requestParameters['id'] == null) {
|
|
247
|
+
throw new runtime.RequiredError(
|
|
248
|
+
'id',
|
|
249
|
+
'Required parameter "id" was null or undefined when calling setPassword().'
|
|
250
|
+
);
|
|
251
|
+
}
|
|
252
|
+
|
|
253
|
+
if (requestParameters['setPasswordRequest'] == null) {
|
|
254
|
+
throw new runtime.RequiredError(
|
|
255
|
+
'setPasswordRequest',
|
|
256
|
+
'Required parameter "setPasswordRequest" was null or undefined when calling setPassword().'
|
|
257
|
+
);
|
|
258
|
+
}
|
|
259
|
+
|
|
260
|
+
const queryParameters: any = {};
|
|
261
|
+
|
|
262
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
263
|
+
|
|
264
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
265
|
+
|
|
266
|
+
|
|
267
|
+
let urlPath = `/api/v1/users/{id}/password`;
|
|
268
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
269
|
+
|
|
270
|
+
return {
|
|
271
|
+
path: urlPath,
|
|
272
|
+
method: 'POST',
|
|
273
|
+
headers: headerParameters,
|
|
274
|
+
query: queryParameters,
|
|
275
|
+
body: SetPasswordRequestToJSON(requestParameters['setPasswordRequest']),
|
|
276
|
+
};
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
/**
|
|
280
|
+
* # Errors Returns [`ApiError::BadRequest`] for missing fields, [`ApiError::Unauthorized`] for an incorrect current password, [`ApiError::Forbidden`] when the caller is not allowed to change this user\'s password, [`ApiError::NotFound`] when the user does not exist, or [`ApiError::Internal`] if a backing store fails.
|
|
281
|
+
* Set a user\'s password. Admins may change any user\'s password; regular users may only change their own, and must supply `current_password`.
|
|
282
|
+
*/
|
|
283
|
+
async setPasswordRaw(requestParameters: SetPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
284
|
+
const requestOptions = await this.setPasswordRequestOpts(requestParameters);
|
|
285
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
286
|
+
|
|
287
|
+
return new runtime.VoidApiResponse(response);
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
/**
|
|
291
|
+
* # Errors Returns [`ApiError::BadRequest`] for missing fields, [`ApiError::Unauthorized`] for an incorrect current password, [`ApiError::Forbidden`] when the caller is not allowed to change this user\'s password, [`ApiError::NotFound`] when the user does not exist, or [`ApiError::Internal`] if a backing store fails.
|
|
292
|
+
* Set a user\'s password. Admins may change any user\'s password; regular users may only change their own, and must supply `current_password`.
|
|
293
|
+
*/
|
|
294
|
+
async setPassword(requestParameters: SetPasswordOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
295
|
+
await this.setPasswordRaw(requestParameters, initOverrides);
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
/**
|
|
299
|
+
* Creates request options for updateUser without sending the request
|
|
300
|
+
*/
|
|
301
|
+
async updateUserRequestOpts(requestParameters: UpdateUserOperationRequest): Promise<runtime.RequestOpts> {
|
|
302
|
+
if (requestParameters['id'] == null) {
|
|
303
|
+
throw new runtime.RequiredError(
|
|
304
|
+
'id',
|
|
305
|
+
'Required parameter "id" was null or undefined when calling updateUser().'
|
|
306
|
+
);
|
|
307
|
+
}
|
|
308
|
+
|
|
309
|
+
if (requestParameters['updateUserRequest'] == null) {
|
|
310
|
+
throw new runtime.RequiredError(
|
|
311
|
+
'updateUserRequest',
|
|
312
|
+
'Required parameter "updateUserRequest" was null or undefined when calling updateUser().'
|
|
313
|
+
);
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
const queryParameters: any = {};
|
|
317
|
+
|
|
318
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
319
|
+
|
|
320
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
321
|
+
|
|
322
|
+
|
|
323
|
+
let urlPath = `/api/v1/users/{id}`;
|
|
324
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
325
|
+
|
|
326
|
+
return {
|
|
327
|
+
path: urlPath,
|
|
328
|
+
method: 'PATCH',
|
|
329
|
+
headers: headerParameters,
|
|
330
|
+
query: queryParameters,
|
|
331
|
+
body: UpdateUserRequestToJSON(requestParameters['updateUserRequest']),
|
|
332
|
+
};
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
/**
|
|
336
|
+
* # Errors Returns [`ApiError::Forbidden`] when the caller is not an admin, [`ApiError::NotFound`] when the user does not exist, or [`ApiError::Internal`] if the user store fails.
|
|
337
|
+
* Update a user\'s mutable fields. Admin only.
|
|
338
|
+
*/
|
|
339
|
+
async updateUserRaw(requestParameters: UpdateUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<UserView>> {
|
|
340
|
+
const requestOptions = await this.updateUserRequestOpts(requestParameters);
|
|
341
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
342
|
+
|
|
343
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => UserViewFromJSON(jsonValue));
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
/**
|
|
347
|
+
* # Errors Returns [`ApiError::Forbidden`] when the caller is not an admin, [`ApiError::NotFound`] when the user does not exist, or [`ApiError::Internal`] if the user store fails.
|
|
348
|
+
* Update a user\'s mutable fields. Admin only.
|
|
349
|
+
*/
|
|
350
|
+
async updateUser(requestParameters: UpdateUserOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<UserView> {
|
|
351
|
+
const response = await this.updateUserRaw(requestParameters, initOverrides);
|
|
352
|
+
return await response.value();
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
}
|
|
@@ -0,0 +1,339 @@
|
|
|
1
|
+
/* tslint:disable */
|
|
2
|
+
/* eslint-disable */
|
|
3
|
+
/**
|
|
4
|
+
* ZLayer API
|
|
5
|
+
* Container orchestration API for ZLayer
|
|
6
|
+
*
|
|
7
|
+
* The version of the OpenAPI document: 0.1.0
|
|
8
|
+
*
|
|
9
|
+
*
|
|
10
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
11
|
+
* https://openapi-generator.tech
|
|
12
|
+
* Do not edit the class manually.
|
|
13
|
+
*/
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
import * as runtime from '../runtime';
|
|
17
|
+
import type {
|
|
18
|
+
CreateVariableRequest,
|
|
19
|
+
StoredVariable,
|
|
20
|
+
UpdateVariableRequest,
|
|
21
|
+
} from '../models/index';
|
|
22
|
+
import {
|
|
23
|
+
CreateVariableRequestFromJSON,
|
|
24
|
+
CreateVariableRequestToJSON,
|
|
25
|
+
StoredVariableFromJSON,
|
|
26
|
+
StoredVariableToJSON,
|
|
27
|
+
UpdateVariableRequestFromJSON,
|
|
28
|
+
UpdateVariableRequestToJSON,
|
|
29
|
+
} from '../models/index';
|
|
30
|
+
|
|
31
|
+
export interface CreateVariableOperationRequest {
|
|
32
|
+
createVariableRequest: CreateVariableRequest;
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export interface DeleteVariableRequest {
|
|
36
|
+
id: string;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export interface GetVariableRequest {
|
|
40
|
+
id: string;
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export interface ListVariablesRequest {
|
|
44
|
+
scope?: string;
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export interface UpdateVariableOperationRequest {
|
|
48
|
+
id: string;
|
|
49
|
+
updateVariableRequest: UpdateVariableRequest;
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
/**
|
|
53
|
+
*
|
|
54
|
+
*/
|
|
55
|
+
export class VariablesApi extends runtime.BaseAPI {
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Creates request options for createVariable without sending the request
|
|
59
|
+
*/
|
|
60
|
+
async createVariableRequestOpts(requestParameters: CreateVariableOperationRequest): Promise<runtime.RequestOpts> {
|
|
61
|
+
if (requestParameters['createVariableRequest'] == null) {
|
|
62
|
+
throw new runtime.RequiredError(
|
|
63
|
+
'createVariableRequest',
|
|
64
|
+
'Required parameter "createVariableRequest" was null or undefined when calling createVariable().'
|
|
65
|
+
);
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
const queryParameters: any = {};
|
|
69
|
+
|
|
70
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
71
|
+
|
|
72
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
73
|
+
|
|
74
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
75
|
+
const token = this.configuration.accessToken;
|
|
76
|
+
const tokenString = await token("bearer_auth", []);
|
|
77
|
+
|
|
78
|
+
if (tokenString) {
|
|
79
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
let urlPath = `/api/v1/variables`;
|
|
84
|
+
|
|
85
|
+
return {
|
|
86
|
+
path: urlPath,
|
|
87
|
+
method: 'POST',
|
|
88
|
+
headers: headerParameters,
|
|
89
|
+
query: queryParameters,
|
|
90
|
+
body: CreateVariableRequestToJSON(requestParameters['createVariableRequest']),
|
|
91
|
+
};
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
/**
|
|
95
|
+
* # Errors Returns [`ApiError::Forbidden`] when the caller is not an admin, [`ApiError::BadRequest`] for an empty name, [`ApiError::Conflict`] when the `(name, scope)` is already used, or [`ApiError::Internal`] when the variable store fails.
|
|
96
|
+
* Create a new variable. Admin only.
|
|
97
|
+
*/
|
|
98
|
+
async createVariableRaw(requestParameters: CreateVariableOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StoredVariable>> {
|
|
99
|
+
const requestOptions = await this.createVariableRequestOpts(requestParameters);
|
|
100
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
101
|
+
|
|
102
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => StoredVariableFromJSON(jsonValue));
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* # Errors Returns [`ApiError::Forbidden`] when the caller is not an admin, [`ApiError::BadRequest`] for an empty name, [`ApiError::Conflict`] when the `(name, scope)` is already used, or [`ApiError::Internal`] when the variable store fails.
|
|
107
|
+
* Create a new variable. Admin only.
|
|
108
|
+
*/
|
|
109
|
+
async createVariable(requestParameters: CreateVariableOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StoredVariable> {
|
|
110
|
+
const response = await this.createVariableRaw(requestParameters, initOverrides);
|
|
111
|
+
return await response.value();
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Creates request options for deleteVariable without sending the request
|
|
116
|
+
*/
|
|
117
|
+
async deleteVariableRequestOpts(requestParameters: DeleteVariableRequest): Promise<runtime.RequestOpts> {
|
|
118
|
+
if (requestParameters['id'] == null) {
|
|
119
|
+
throw new runtime.RequiredError(
|
|
120
|
+
'id',
|
|
121
|
+
'Required parameter "id" was null or undefined when calling deleteVariable().'
|
|
122
|
+
);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
const queryParameters: any = {};
|
|
126
|
+
|
|
127
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
128
|
+
|
|
129
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
130
|
+
const token = this.configuration.accessToken;
|
|
131
|
+
const tokenString = await token("bearer_auth", []);
|
|
132
|
+
|
|
133
|
+
if (tokenString) {
|
|
134
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
let urlPath = `/api/v1/variables/{id}`;
|
|
139
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
140
|
+
|
|
141
|
+
return {
|
|
142
|
+
path: urlPath,
|
|
143
|
+
method: 'DELETE',
|
|
144
|
+
headers: headerParameters,
|
|
145
|
+
query: queryParameters,
|
|
146
|
+
};
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* # Errors Returns [`ApiError::Forbidden`] for non-admins, [`ApiError::NotFound`] when the variable does not exist, or [`ApiError::Internal`] when the store fails.
|
|
151
|
+
* Delete a variable. Admin only.
|
|
152
|
+
*/
|
|
153
|
+
async deleteVariableRaw(requestParameters: DeleteVariableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
154
|
+
const requestOptions = await this.deleteVariableRequestOpts(requestParameters);
|
|
155
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
156
|
+
|
|
157
|
+
return new runtime.VoidApiResponse(response);
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* # Errors Returns [`ApiError::Forbidden`] for non-admins, [`ApiError::NotFound`] when the variable does not exist, or [`ApiError::Internal`] when the store fails.
|
|
162
|
+
* Delete a variable. Admin only.
|
|
163
|
+
*/
|
|
164
|
+
async deleteVariable(requestParameters: DeleteVariableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
165
|
+
await this.deleteVariableRaw(requestParameters, initOverrides);
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Creates request options for getVariable without sending the request
|
|
170
|
+
*/
|
|
171
|
+
async getVariableRequestOpts(requestParameters: GetVariableRequest): Promise<runtime.RequestOpts> {
|
|
172
|
+
if (requestParameters['id'] == null) {
|
|
173
|
+
throw new runtime.RequiredError(
|
|
174
|
+
'id',
|
|
175
|
+
'Required parameter "id" was null or undefined when calling getVariable().'
|
|
176
|
+
);
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
const queryParameters: any = {};
|
|
180
|
+
|
|
181
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
182
|
+
|
|
183
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
184
|
+
const token = this.configuration.accessToken;
|
|
185
|
+
const tokenString = await token("bearer_auth", []);
|
|
186
|
+
|
|
187
|
+
if (tokenString) {
|
|
188
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
let urlPath = `/api/v1/variables/{id}`;
|
|
193
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
194
|
+
|
|
195
|
+
return {
|
|
196
|
+
path: urlPath,
|
|
197
|
+
method: 'GET',
|
|
198
|
+
headers: headerParameters,
|
|
199
|
+
query: queryParameters,
|
|
200
|
+
};
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/**
|
|
204
|
+
* # Errors Returns [`ApiError::NotFound`] if no variable with the given id exists, or [`ApiError::Internal`] when the store fails.
|
|
205
|
+
* Fetch a single variable by id.
|
|
206
|
+
*/
|
|
207
|
+
async getVariableRaw(requestParameters: GetVariableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StoredVariable>> {
|
|
208
|
+
const requestOptions = await this.getVariableRequestOpts(requestParameters);
|
|
209
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
210
|
+
|
|
211
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => StoredVariableFromJSON(jsonValue));
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
/**
|
|
215
|
+
* # Errors Returns [`ApiError::NotFound`] if no variable with the given id exists, or [`ApiError::Internal`] when the store fails.
|
|
216
|
+
* Fetch a single variable by id.
|
|
217
|
+
*/
|
|
218
|
+
async getVariable(requestParameters: GetVariableRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StoredVariable> {
|
|
219
|
+
const response = await this.getVariableRaw(requestParameters, initOverrides);
|
|
220
|
+
return await response.value();
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
/**
|
|
224
|
+
* Creates request options for listVariables without sending the request
|
|
225
|
+
*/
|
|
226
|
+
async listVariablesRequestOpts(requestParameters: ListVariablesRequest): Promise<runtime.RequestOpts> {
|
|
227
|
+
const queryParameters: any = {};
|
|
228
|
+
|
|
229
|
+
if (requestParameters['scope'] != null) {
|
|
230
|
+
queryParameters['scope'] = requestParameters['scope'];
|
|
231
|
+
}
|
|
232
|
+
|
|
233
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
234
|
+
|
|
235
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
236
|
+
const token = this.configuration.accessToken;
|
|
237
|
+
const tokenString = await token("bearer_auth", []);
|
|
238
|
+
|
|
239
|
+
if (tokenString) {
|
|
240
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
|
|
244
|
+
let urlPath = `/api/v1/variables`;
|
|
245
|
+
|
|
246
|
+
return {
|
|
247
|
+
path: urlPath,
|
|
248
|
+
method: 'GET',
|
|
249
|
+
headers: headerParameters,
|
|
250
|
+
query: queryParameters,
|
|
251
|
+
};
|
|
252
|
+
}
|
|
253
|
+
|
|
254
|
+
/**
|
|
255
|
+
* Filter rules (see [`ListVariablesQuery`]): - `?scope={id}` -> variables belonging to that scope. - no `scope` query -> only global variables (`scope IS NULL`). # Errors Returns [`ApiError::Internal`] if the variable store fails.
|
|
256
|
+
* List variables.
|
|
257
|
+
*/
|
|
258
|
+
async listVariablesRaw(requestParameters: ListVariablesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<StoredVariable>>> {
|
|
259
|
+
const requestOptions = await this.listVariablesRequestOpts(requestParameters);
|
|
260
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
261
|
+
|
|
262
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(StoredVariableFromJSON));
|
|
263
|
+
}
|
|
264
|
+
|
|
265
|
+
/**
|
|
266
|
+
* Filter rules (see [`ListVariablesQuery`]): - `?scope={id}` -> variables belonging to that scope. - no `scope` query -> only global variables (`scope IS NULL`). # Errors Returns [`ApiError::Internal`] if the variable store fails.
|
|
267
|
+
* List variables.
|
|
268
|
+
*/
|
|
269
|
+
async listVariables(requestParameters: ListVariablesRequest = {}, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<StoredVariable>> {
|
|
270
|
+
const response = await this.listVariablesRaw(requestParameters, initOverrides);
|
|
271
|
+
return await response.value();
|
|
272
|
+
}
|
|
273
|
+
|
|
274
|
+
/**
|
|
275
|
+
* Creates request options for updateVariable without sending the request
|
|
276
|
+
*/
|
|
277
|
+
async updateVariableRequestOpts(requestParameters: UpdateVariableOperationRequest): Promise<runtime.RequestOpts> {
|
|
278
|
+
if (requestParameters['id'] == null) {
|
|
279
|
+
throw new runtime.RequiredError(
|
|
280
|
+
'id',
|
|
281
|
+
'Required parameter "id" was null or undefined when calling updateVariable().'
|
|
282
|
+
);
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
if (requestParameters['updateVariableRequest'] == null) {
|
|
286
|
+
throw new runtime.RequiredError(
|
|
287
|
+
'updateVariableRequest',
|
|
288
|
+
'Required parameter "updateVariableRequest" was null or undefined when calling updateVariable().'
|
|
289
|
+
);
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
const queryParameters: any = {};
|
|
293
|
+
|
|
294
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
295
|
+
|
|
296
|
+
headerParameters['Content-Type'] = 'application/json';
|
|
297
|
+
|
|
298
|
+
if (this.configuration && this.configuration.accessToken) {
|
|
299
|
+
const token = this.configuration.accessToken;
|
|
300
|
+
const tokenString = await token("bearer_auth", []);
|
|
301
|
+
|
|
302
|
+
if (tokenString) {
|
|
303
|
+
headerParameters["Authorization"] = `Bearer ${tokenString}`;
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
|
|
307
|
+
let urlPath = `/api/v1/variables/{id}`;
|
|
308
|
+
urlPath = urlPath.replace(`{${"id"}}`, encodeURIComponent(String(requestParameters['id'])));
|
|
309
|
+
|
|
310
|
+
return {
|
|
311
|
+
path: urlPath,
|
|
312
|
+
method: 'PATCH',
|
|
313
|
+
headers: headerParameters,
|
|
314
|
+
query: queryParameters,
|
|
315
|
+
body: UpdateVariableRequestToJSON(requestParameters['updateVariableRequest']),
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
|
|
319
|
+
/**
|
|
320
|
+
* # Errors Returns [`ApiError::Forbidden`] for non-admins, [`ApiError::NotFound`] when the variable does not exist, [`ApiError::BadRequest`] for an empty replacement name, [`ApiError::Conflict`] when the new name collides with another variable in the same scope, or [`ApiError::Internal`] when the store fails.
|
|
321
|
+
* Update a variable\'s name and/or value. Admin only.
|
|
322
|
+
*/
|
|
323
|
+
async updateVariableRaw(requestParameters: UpdateVariableOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<StoredVariable>> {
|
|
324
|
+
const requestOptions = await this.updateVariableRequestOpts(requestParameters);
|
|
325
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
326
|
+
|
|
327
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => StoredVariableFromJSON(jsonValue));
|
|
328
|
+
}
|
|
329
|
+
|
|
330
|
+
/**
|
|
331
|
+
* # Errors Returns [`ApiError::Forbidden`] for non-admins, [`ApiError::NotFound`] when the variable does not exist, [`ApiError::BadRequest`] for an empty replacement name, [`ApiError::Conflict`] when the new name collides with another variable in the same scope, or [`ApiError::Internal`] when the store fails.
|
|
332
|
+
* Update a variable\'s name and/or value. Admin only.
|
|
333
|
+
*/
|
|
334
|
+
async updateVariable(requestParameters: UpdateVariableOperationRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<StoredVariable> {
|
|
335
|
+
const response = await this.updateVariableRaw(requestParameters, initOverrides);
|
|
336
|
+
return await response.value();
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
}
|