@zlayer/api-client 0.10.86 → 0.10.88
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.openapi-generator/FILES +58 -1
- package/README.md +48 -6
- package/dist/apis/AuthenticationApi.d.ts +43 -1
- package/dist/apis/AuthenticationApi.js +112 -0
- package/dist/apis/ContainerNetworksApi.d.ts +123 -0
- package/dist/apis/ContainerNetworksApi.js +331 -0
- package/dist/apis/ContainersApi.d.ts +7 -4
- package/dist/apis/ContainersApi.js +13 -4
- package/dist/apis/EventsApi.d.ts +35 -0
- package/dist/apis/EventsApi.js +81 -0
- package/dist/apis/PermissionsApi.d.ts +18 -0
- package/dist/apis/PermissionsApi.js +46 -0
- package/dist/apis/SecretsApi.d.ts +38 -1
- package/dist/apis/SecretsApi.js +109 -0
- package/dist/apis/VolumesApi.d.ts +41 -7
- package/dist/apis/VolumesApi.js +102 -5
- package/dist/apis/index.d.ts +2 -0
- package/dist/apis/index.js +2 -0
- package/dist/models/BridgeNetwork.d.ts +72 -0
- package/dist/models/BridgeNetwork.js +67 -0
- package/dist/models/BridgeNetworkAttachment.d.ts +50 -0
- package/dist/models/BridgeNetworkAttachment.js +56 -0
- package/dist/models/BridgeNetworkDetails.d.ts +79 -0
- package/dist/models/BridgeNetworkDetails.js +72 -0
- package/dist/models/BridgeNetworkDriver.d.ts +25 -0
- package/dist/models/BridgeNetworkDriver.js +51 -0
- package/dist/models/ConnectBridgeNetworkRequest.d.ts +45 -0
- package/dist/models/ConnectBridgeNetworkRequest.js +54 -0
- package/dist/models/ContainerEvent.d.ts +82 -0
- package/dist/models/ContainerEvent.js +67 -0
- package/dist/models/ContainerEventKind.d.ts +27 -0
- package/dist/models/ContainerEventKind.js +53 -0
- package/dist/models/ContainerHealthInfo.d.ts +53 -0
- package/dist/models/ContainerHealthInfo.js +54 -0
- package/dist/models/ContainerInfo.d.ts +40 -0
- package/dist/models/ContainerInfo.js +13 -0
- package/dist/models/ContainerRestartKind.d.ts +27 -0
- package/dist/models/ContainerRestartKind.js +53 -0
- package/dist/models/ContainerRestartPolicy.d.ts +53 -0
- package/dist/models/ContainerRestartPolicy.js +55 -0
- package/dist/models/ContainerWaitResponse.d.ts +30 -2
- package/dist/models/ContainerWaitResponse.js +6 -0
- package/dist/models/CreateBridgeNetworkRequest.d.ts +60 -0
- package/dist/models/CreateBridgeNetworkRequest.js +59 -0
- package/dist/models/CreateContainerRequest.d.ts +77 -0
- package/dist/models/CreateContainerRequest.js +23 -0
- package/dist/models/CreateVolumeRequest.d.ts +54 -0
- package/dist/models/CreateVolumeRequest.js +56 -0
- package/dist/models/DisconnectBridgeNetworkRequest.d.ts +38 -0
- package/dist/models/DisconnectBridgeNetworkRequest.js +52 -0
- package/dist/models/HealthCheckRequest.d.ts +94 -0
- package/dist/models/HealthCheckRequest.js +66 -0
- package/dist/models/NetworkAttachmentInfo.d.ts +49 -0
- package/dist/models/NetworkAttachmentInfo.js +54 -0
- package/dist/models/NetworkAttachmentRequest.d.ts +51 -0
- package/dist/models/NetworkAttachmentRequest.js +54 -0
- package/dist/models/OidcCallbackResponse.d.ts +47 -0
- package/dist/models/OidcCallbackResponse.js +59 -0
- package/dist/models/OidcProviderPublic.d.ts +39 -0
- package/dist/models/OidcProviderPublic.js +54 -0
- package/dist/models/PortMapping.d.ts +55 -0
- package/dist/models/PortMapping.js +57 -0
- package/dist/models/PortProtocol.d.ts +25 -0
- package/dist/models/PortProtocol.js +51 -0
- package/dist/models/PullImageRequest.d.ts +18 -0
- package/dist/models/PullImageRequest.js +5 -0
- package/dist/models/RegistryAuth.d.ts +52 -0
- package/dist/models/RegistryAuth.js +57 -0
- package/dist/models/RegistryAuthType.d.ts +25 -0
- package/dist/models/RegistryAuthType.js +51 -0
- package/dist/models/RevealAllSecretsResponse.d.ts +41 -0
- package/dist/models/RevealAllSecretsResponse.js +54 -0
- package/dist/models/RotateSecretRequest.d.ts +32 -0
- package/dist/models/RotateSecretRequest.js +50 -0
- package/dist/models/RotateSecretResponse.d.ts +46 -0
- package/dist/models/RotateSecretResponse.js +56 -0
- package/dist/models/VolumeInfo.d.ts +70 -0
- package/dist/models/VolumeInfo.js +64 -0
- package/dist/models/VolumeMount.d.ts +16 -3
- package/dist/models/VolumeMount.js +4 -3
- package/dist/models/VolumeMountType.d.ts +30 -0
- package/dist/models/VolumeMountType.js +56 -0
- package/dist/models/VolumeSummary.d.ts +7 -4
- package/dist/models/index.d.ts +27 -0
- package/dist/models/index.js +27 -0
- package/docs/AddMemberRequest.md +1 -1
- package/docs/AuditApi.md +3 -3
- package/docs/AuditEntry.md +1 -1
- package/docs/AuthenticationApi.md +212 -18
- package/docs/BackendGroupInfo.md +1 -1
- package/docs/BackendInfo.md +1 -1
- package/docs/BackendsResponse.md +1 -1
- package/docs/BootstrapRequest.md +1 -1
- package/docs/BridgeNetwork.md +47 -0
- package/docs/BridgeNetworkAttachment.md +41 -0
- package/docs/BridgeNetworkDetails.md +49 -0
- package/docs/BridgeNetworkDriver.md +33 -0
- package/docs/BuildApi.md +21 -21
- package/docs/BuildKind.md +1 -1
- package/docs/BuildRequest.md +1 -1
- package/docs/BuildRequestWithContext.md +1 -1
- package/docs/BuildStateEnum.md +1 -1
- package/docs/BuildStatus.md +1 -1
- package/docs/BulkImportResponse.md +1 -1
- package/docs/CertInfo.md +1 -1
- package/docs/ClusterApi.md +12 -12
- package/docs/ClusterJoinRequest.md +1 -1
- package/docs/ClusterJoinResponse.md +1 -1
- package/docs/ClusterNodeSummary.md +1 -1
- package/docs/ClusterPeer.md +1 -1
- package/docs/ConnectBridgeNetworkRequest.md +39 -0
- package/docs/ContainerEvent.md +47 -0
- package/docs/ContainerEventKind.md +33 -0
- package/docs/ContainerExecRequest.md +1 -1
- package/docs/ContainerExecResponse.md +1 -1
- package/docs/ContainerHealthInfo.md +39 -0
- package/docs/ContainerInfo.md +11 -1
- package/docs/ContainerNetworksApi.md +466 -0
- package/docs/ContainerResourceLimits.md +1 -1
- package/docs/ContainerRestartKind.md +33 -0
- package/docs/ContainerRestartPolicy.md +39 -0
- package/docs/ContainerStatsResponse.md +1 -1
- package/docs/ContainerWaitResponse.md +8 -2
- package/docs/ContainersApi.md +51 -42
- package/docs/CreateBridgeNetworkRequest.md +43 -0
- package/docs/CreateContainerRequest.md +19 -1
- package/docs/CreateDeploymentRequest.md +1 -1
- package/docs/CreateEnvironmentRequest.md +1 -1
- package/docs/CreateGitCredentialRequest.md +1 -1
- package/docs/CreateGroupRequest.md +1 -1
- package/docs/CreateNodeTunnelRequest.md +1 -1
- package/docs/CreateNodeTunnelResponse.md +1 -1
- package/docs/CreateNotifierRequest.md +1 -1
- package/docs/CreateProjectRequest.md +1 -1
- package/docs/CreateRegistryCredentialRequest.md +1 -1
- package/docs/CreateSecretRequest.md +1 -1
- package/docs/CreateSyncRequest.md +1 -1
- package/docs/CreateTaskRequest.md +1 -1
- package/docs/CreateTunnelRequest.md +1 -1
- package/docs/CreateTunnelResponse.md +1 -1
- package/docs/CreateUserRequest.md +1 -1
- package/docs/CreateVariableRequest.md +1 -1
- package/docs/CreateVolumeRequest.md +41 -0
- package/docs/CreateWorkflowRequest.md +1 -1
- package/docs/CredentialsApi.md +18 -18
- package/docs/CronApi.md +15 -15
- package/docs/CronJobResponse.md +1 -1
- package/docs/CronStatusResponse.md +1 -1
- package/docs/CsrfResponse.md +1 -1
- package/docs/DeploymentDetails.md +1 -1
- package/docs/DeploymentSummary.md +1 -1
- package/docs/DeploymentsApi.md +12 -12
- package/docs/DisconnectBridgeNetworkRequest.md +37 -0
- package/docs/DnsStatusResponse.md +1 -1
- package/docs/EnvironmentsApi.md +15 -15
- package/docs/EventsApi.md +85 -0
- package/docs/ForceLeaderRequest.md +1 -1
- package/docs/ForceLeaderResponse.md +1 -1
- package/docs/GitCredentialKindSchema.md +1 -1
- package/docs/GitCredentialResponse.md +1 -1
- package/docs/GpuInfoSummary.md +1 -1
- package/docs/GpuUtilizationReport.md +1 -1
- package/docs/GrantPermissionRequest.md +1 -1
- package/docs/GroupMembersResponse.md +1 -1
- package/docs/GroupsApi.md +21 -21
- package/docs/HealthApi.md +6 -6
- package/docs/HealthCheckRequest.md +51 -0
- package/docs/HealthResponse.md +1 -1
- package/docs/HeartbeatRequest.md +1 -1
- package/docs/ImageInfoDto.md +1 -1
- package/docs/ImagesApi.md +15 -15
- package/docs/InternalApi.md +6 -6
- package/docs/InternalScaleRequest.md +1 -1
- package/docs/InternalScaleResponse.md +1 -1
- package/docs/IpAllocationResponse.md +1 -1
- package/docs/JobExecutionResponse.md +1 -1
- package/docs/JobsApi.md +12 -12
- package/docs/JoinTokenResponse.md +1 -1
- package/docs/KillContainerRequest.md +1 -1
- package/docs/LinkDeploymentRequest.md +1 -1
- package/docs/LoginRequest.md +1 -1
- package/docs/LoginResponse.md +1 -1
- package/docs/NetworkAttachmentInfo.md +39 -0
- package/docs/NetworkAttachmentRequest.md +39 -0
- package/docs/NetworkSummary.md +1 -1
- package/docs/NetworksApi.md +15 -15
- package/docs/NodeDetails.md +1 -1
- package/docs/NodeResourceInfo.md +1 -1
- package/docs/NodeSummary.md +1 -1
- package/docs/NodesApi.md +12 -12
- package/docs/NotifierConfig.md +1 -1
- package/docs/NotifierConfigOneOf.md +1 -1
- package/docs/NotifierConfigOneOf1.md +1 -1
- package/docs/NotifierConfigOneOf2.md +1 -1
- package/docs/NotifierConfigOneOf3.md +1 -1
- package/docs/NotifierKind.md +1 -1
- package/docs/NotifiersApi.md +18 -18
- package/docs/OidcCallbackResponse.md +39 -0
- package/docs/OidcProviderPublic.md +37 -0
- package/docs/OverlayApi.md +12 -12
- package/docs/OverlayStatusResponse.md +1 -1
- package/docs/PeerInfo.md +1 -1
- package/docs/PeerListResponse.md +1 -1
- package/docs/PermissionLevel.md +1 -1
- package/docs/PermissionsApi.md +80 -9
- package/docs/PortMapping.md +41 -0
- package/docs/PortProtocol.md +33 -0
- package/docs/ProjectPullResponse.md +1 -1
- package/docs/ProjectsApi.md +27 -27
- package/docs/ProxyApi.md +12 -12
- package/docs/PruneResultDto.md +1 -1
- package/docs/PullImageRequest.md +5 -1
- package/docs/PullImageResponse.md +1 -1
- package/docs/RegisteredServiceInfo.md +1 -1
- package/docs/RegistryAuth.md +39 -0
- package/docs/RegistryAuthType.md +33 -0
- package/docs/RegistryAuthTypeSchema.md +1 -1
- package/docs/RegistryCredentialResponse.md +1 -1
- package/docs/ReplicationInfo.md +1 -1
- package/docs/RestartContainerRequest.md +1 -1
- package/docs/RevealAllSecretsResponse.md +37 -0
- package/docs/RotateSecretRequest.md +35 -0
- package/docs/RotateSecretResponse.md +39 -0
- package/docs/RouteInfo.md +1 -1
- package/docs/RoutesResponse.md +1 -1
- package/docs/ScaleRequest.md +1 -1
- package/docs/SecretMetadataResponse.md +1 -1
- package/docs/SecretsApi.md +175 -15
- package/docs/ServiceDetails.md +1 -1
- package/docs/ServiceEndpoint.md +1 -1
- package/docs/ServiceHealthInfo.md +1 -1
- package/docs/ServiceMetrics.md +1 -1
- package/docs/ServiceSummary.md +1 -1
- package/docs/ServicesApi.md +12 -12
- package/docs/SetPasswordRequest.md +1 -1
- package/docs/StepResult.md +1 -1
- package/docs/StopContainerRequest.md +1 -1
- package/docs/StorageApi.md +3 -3
- package/docs/StorageStatusResponse.md +1 -1
- package/docs/StoredEnvironment.md +1 -1
- package/docs/StoredNotifier.md +1 -1
- package/docs/StoredPermission.md +1 -1
- package/docs/StoredProject.md +1 -1
- package/docs/StoredSync.md +1 -1
- package/docs/StoredTask.md +1 -1
- package/docs/StoredUserGroup.md +1 -1
- package/docs/StoredVariable.md +1 -1
- package/docs/StoredWorkflow.md +1 -1
- package/docs/StreamBackendInfo.md +1 -1
- package/docs/StreamInfo.md +1 -1
- package/docs/StreamsResponse.md +1 -1
- package/docs/SubjectKind.md +1 -1
- package/docs/SuccessResponse.md +1 -1
- package/docs/SyncApplyResponse.md +1 -1
- package/docs/SyncDiffResponse.md +1 -1
- package/docs/SyncResourceResponse.md +1 -1
- package/docs/SyncResourceResult.md +1 -1
- package/docs/SyncsApi.md +15 -15
- package/docs/TagImageRequest.md +1 -1
- package/docs/TaskKind.md +1 -1
- package/docs/TaskRun.md +1 -1
- package/docs/TasksApi.md +18 -18
- package/docs/TemplateInfo.md +1 -1
- package/docs/TestNotifierResponse.md +1 -1
- package/docs/TlsResponse.md +1 -1
- package/docs/TokenRequest.md +1 -1
- package/docs/TokenResponse.md +1 -1
- package/docs/TriggerBuildResponse.md +1 -1
- package/docs/TriggerCronResponse.md +1 -1
- package/docs/TriggerJobResponse.md +1 -1
- package/docs/TunnelStatus.md +1 -1
- package/docs/TunnelSummary.md +1 -1
- package/docs/TunnelsApi.md +18 -18
- package/docs/UpdateEnvironmentRequest.md +1 -1
- package/docs/UpdateGroupRequest.md +1 -1
- package/docs/UpdateLabelsRequest.md +1 -1
- package/docs/UpdateLabelsResponse.md +1 -1
- package/docs/UpdateNotifierRequest.md +1 -1
- package/docs/UpdateProjectRequest.md +1 -1
- package/docs/UpdateUserRequest.md +1 -1
- package/docs/UpdateVariableRequest.md +1 -1
- package/docs/UserRole.md +1 -1
- package/docs/UserView.md +1 -1
- package/docs/UsersApi.md +18 -18
- package/docs/VariablesApi.md +15 -15
- package/docs/VolumeInfo.md +45 -0
- package/docs/VolumeMount.md +4 -2
- package/docs/VolumeMountType.md +33 -0
- package/docs/VolumeSummary.md +2 -2
- package/docs/VolumesApi.md +163 -13
- package/docs/WebhookInfoResponse.md +1 -1
- package/docs/WebhookResponse.md +1 -1
- package/docs/WebhooksApi.md +9 -9
- package/docs/WorkflowAction.md +1 -1
- package/docs/WorkflowActionOneOf.md +1 -1
- package/docs/WorkflowActionOneOf1.md +1 -1
- package/docs/WorkflowActionOneOf2.md +1 -1
- package/docs/WorkflowActionOneOf3.md +1 -1
- package/docs/WorkflowRun.md +1 -1
- package/docs/WorkflowRunStatus.md +1 -1
- package/docs/WorkflowStep.md +1 -1
- package/docs/WorkflowsApi.md +18 -18
- package/package.json +1 -1
- package/src/apis/AuthenticationApi.ts +140 -0
- package/src/apis/ContainerNetworksApi.ts +418 -0
- package/src/apis/ContainersApi.ts +19 -4
- package/src/apis/EventsApi.ts +82 -0
- package/src/apis/PermissionsApi.ts +59 -0
- package/src/apis/SecretsApi.ts +151 -0
- package/src/apis/VolumesApi.ts +133 -10
- package/src/apis/index.ts +2 -0
- package/src/models/BridgeNetwork.ts +127 -0
- package/src/models/BridgeNetworkAttachment.ts +90 -0
- package/src/models/BridgeNetworkDetails.ts +143 -0
- package/src/models/BridgeNetworkDriver.ts +53 -0
- package/src/models/ConnectBridgeNetworkRequest.ts +83 -0
- package/src/models/ContainerEvent.ts +137 -0
- package/src/models/ContainerEventKind.ts +55 -0
- package/src/models/ContainerHealthInfo.ts +91 -0
- package/src/models/ContainerInfo.ts +69 -0
- package/src/models/ContainerRestartKind.ts +55 -0
- package/src/models/ContainerRestartPolicy.ts +100 -0
- package/src/models/ContainerWaitResponse.ts +36 -2
- package/src/models/CreateBridgeNetworkRequest.ts +109 -0
- package/src/models/CreateContainerRequest.ts +125 -0
- package/src/models/CreateVolumeRequest.ts +92 -0
- package/src/models/DisconnectBridgeNetworkRequest.ts +74 -0
- package/src/models/HealthCheckRequest.ts +144 -0
- package/src/models/NetworkAttachmentInfo.ts +87 -0
- package/src/models/NetworkAttachmentRequest.ts +89 -0
- package/src/models/OidcCallbackResponse.ts +94 -0
- package/src/models/OidcProviderPublic.ts +76 -0
- package/src/models/PortMapping.ts +104 -0
- package/src/models/PortProtocol.ts +53 -0
- package/src/models/PullImageRequest.ts +29 -0
- package/src/models/RegistryAuth.ts +100 -0
- package/src/models/RegistryAuthType.ts +53 -0
- package/src/models/RevealAllSecretsResponse.ts +76 -0
- package/src/models/RotateSecretRequest.ts +66 -0
- package/src/models/RotateSecretResponse.ts +85 -0
- package/src/models/VolumeInfo.ts +114 -0
- package/src/models/VolumeMount.ts +28 -5
- package/src/models/VolumeMountType.ts +58 -0
- package/src/models/VolumeSummary.ts +7 -4
- package/src/models/index.ts +27 -0
package/docs/NotifiersApi.md
CHANGED
|
@@ -27,11 +27,11 @@ Create a new notifier. Admin only.
|
|
|
27
27
|
import {
|
|
28
28
|
Configuration,
|
|
29
29
|
NotifiersApi,
|
|
30
|
-
} from '@zlayer/client';
|
|
31
|
-
import type { CreateNotifierOperationRequest } from '@zlayer/client';
|
|
30
|
+
} from '@zlayer/api-client';
|
|
31
|
+
import type { CreateNotifierOperationRequest } from '@zlayer/api-client';
|
|
32
32
|
|
|
33
33
|
async function example() {
|
|
34
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
34
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
35
35
|
const config = new Configuration({
|
|
36
36
|
// Configure HTTP bearer authorization: bearer_auth
|
|
37
37
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -100,11 +100,11 @@ Delete a notifier. Admin only.
|
|
|
100
100
|
import {
|
|
101
101
|
Configuration,
|
|
102
102
|
NotifiersApi,
|
|
103
|
-
} from '@zlayer/client';
|
|
104
|
-
import type { DeleteNotifierRequest } from '@zlayer/client';
|
|
103
|
+
} from '@zlayer/api-client';
|
|
104
|
+
import type { DeleteNotifierRequest } from '@zlayer/api-client';
|
|
105
105
|
|
|
106
106
|
async function example() {
|
|
107
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
107
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
108
108
|
const config = new Configuration({
|
|
109
109
|
// Configure HTTP bearer authorization: bearer_auth
|
|
110
110
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -173,11 +173,11 @@ Fetch a single notifier by id.
|
|
|
173
173
|
import {
|
|
174
174
|
Configuration,
|
|
175
175
|
NotifiersApi,
|
|
176
|
-
} from '@zlayer/client';
|
|
177
|
-
import type { GetNotifierRequest } from '@zlayer/client';
|
|
176
|
+
} from '@zlayer/api-client';
|
|
177
|
+
import type { GetNotifierRequest } from '@zlayer/api-client';
|
|
178
178
|
|
|
179
179
|
async function example() {
|
|
180
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
180
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
181
181
|
const config = new Configuration({
|
|
182
182
|
// Configure HTTP bearer authorization: bearer_auth
|
|
183
183
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -245,11 +245,11 @@ List notifiers.
|
|
|
245
245
|
import {
|
|
246
246
|
Configuration,
|
|
247
247
|
NotifiersApi,
|
|
248
|
-
} from '@zlayer/client';
|
|
249
|
-
import type { ListNotifiersRequest } from '@zlayer/client';
|
|
248
|
+
} from '@zlayer/api-client';
|
|
249
|
+
import type { ListNotifiersRequest } from '@zlayer/api-client';
|
|
250
250
|
|
|
251
251
|
async function example() {
|
|
252
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
252
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
253
253
|
const config = new Configuration({
|
|
254
254
|
// Configure HTTP bearer authorization: bearer_auth
|
|
255
255
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -309,11 +309,11 @@ For Slack and Discord, sends a test message via the configured webhook URL. For
|
|
|
309
309
|
import {
|
|
310
310
|
Configuration,
|
|
311
311
|
NotifiersApi,
|
|
312
|
-
} from '@zlayer/client';
|
|
313
|
-
import type { TestNotifierRequest } from '@zlayer/client';
|
|
312
|
+
} from '@zlayer/api-client';
|
|
313
|
+
import type { TestNotifierRequest } from '@zlayer/api-client';
|
|
314
314
|
|
|
315
315
|
async function example() {
|
|
316
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
316
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
317
317
|
const config = new Configuration({
|
|
318
318
|
// Configure HTTP bearer authorization: bearer_auth
|
|
319
319
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -382,11 +382,11 @@ Supports partial updates: only fields present in the request body are changed.
|
|
|
382
382
|
import {
|
|
383
383
|
Configuration,
|
|
384
384
|
NotifiersApi,
|
|
385
|
-
} from '@zlayer/client';
|
|
386
|
-
import type { UpdateNotifierOperationRequest } from '@zlayer/client';
|
|
385
|
+
} from '@zlayer/api-client';
|
|
386
|
+
import type { UpdateNotifierOperationRequest } from '@zlayer/api-client';
|
|
387
387
|
|
|
388
388
|
async function example() {
|
|
389
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
389
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
390
390
|
const config = new Configuration({
|
|
391
391
|
// Configure HTTP bearer authorization: bearer_auth
|
|
392
392
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
|
|
2
|
+
# OidcCallbackResponse
|
|
3
|
+
|
|
4
|
+
Callback response body (returned as JSON unless the operator prefers a redirect; initial integration keeps JSON so the Manager UI can show a welcome screen post-exchange).
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`csrfToken` | string
|
|
11
|
+
`provider` | string
|
|
12
|
+
`user` | [UserView](UserView.md)
|
|
13
|
+
|
|
14
|
+
## Example
|
|
15
|
+
|
|
16
|
+
```typescript
|
|
17
|
+
import type { OidcCallbackResponse } from '@zlayer/api-client'
|
|
18
|
+
|
|
19
|
+
// TODO: Update the object below with actual values
|
|
20
|
+
const example = {
|
|
21
|
+
"csrfToken": null,
|
|
22
|
+
"provider": null,
|
|
23
|
+
"user": null,
|
|
24
|
+
} satisfies OidcCallbackResponse
|
|
25
|
+
|
|
26
|
+
console.log(example)
|
|
27
|
+
|
|
28
|
+
// Convert the instance to a JSON string
|
|
29
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
30
|
+
console.log(exampleJSON)
|
|
31
|
+
|
|
32
|
+
// Parse the JSON string back to an object
|
|
33
|
+
const exampleParsed = JSON.parse(exampleJSON) as OidcCallbackResponse
|
|
34
|
+
console.log(exampleParsed)
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
38
|
+
|
|
39
|
+
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
|
|
2
|
+
# OidcProviderPublic
|
|
3
|
+
|
|
4
|
+
Public-facing projection — what the Manager UI needs to render a login button. Never includes the client secret.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`displayName` | string
|
|
11
|
+
`name` | string
|
|
12
|
+
|
|
13
|
+
## Example
|
|
14
|
+
|
|
15
|
+
```typescript
|
|
16
|
+
import type { OidcProviderPublic } from '@zlayer/api-client'
|
|
17
|
+
|
|
18
|
+
// TODO: Update the object below with actual values
|
|
19
|
+
const example = {
|
|
20
|
+
"displayName": null,
|
|
21
|
+
"name": null,
|
|
22
|
+
} satisfies OidcProviderPublic
|
|
23
|
+
|
|
24
|
+
console.log(example)
|
|
25
|
+
|
|
26
|
+
// Convert the instance to a JSON string
|
|
27
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
28
|
+
console.log(exampleJSON)
|
|
29
|
+
|
|
30
|
+
// Parse the JSON string back to an object
|
|
31
|
+
const exampleParsed = JSON.parse(exampleJSON) as OidcProviderPublic
|
|
32
|
+
console.log(exampleParsed)
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
36
|
+
|
|
37
|
+
|
package/docs/OverlayApi.md
CHANGED
|
@@ -25,11 +25,11 @@ Returns DNS server configuration and registered service count. When DNS is not c
|
|
|
25
25
|
import {
|
|
26
26
|
Configuration,
|
|
27
27
|
OverlayApi,
|
|
28
|
-
} from '@zlayer/client';
|
|
29
|
-
import type { GetDnsStatusRequest } from '@zlayer/client';
|
|
28
|
+
} from '@zlayer/api-client';
|
|
29
|
+
import type { GetDnsStatusRequest } from '@zlayer/api-client';
|
|
30
30
|
|
|
31
31
|
async function example() {
|
|
32
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
32
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
33
33
|
const api = new OverlayApi();
|
|
34
34
|
|
|
35
35
|
try {
|
|
@@ -84,11 +84,11 @@ Returns the overlay network\'s IP allocation statistics including CIDR, tota
|
|
|
84
84
|
import {
|
|
85
85
|
Configuration,
|
|
86
86
|
OverlayApi,
|
|
87
|
-
} from '@zlayer/client';
|
|
88
|
-
import type { GetIpAllocationRequest } from '@zlayer/client';
|
|
87
|
+
} from '@zlayer/api-client';
|
|
88
|
+
import type { GetIpAllocationRequest } from '@zlayer/api-client';
|
|
89
89
|
|
|
90
90
|
async function example() {
|
|
91
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
91
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
92
92
|
const api = new OverlayApi();
|
|
93
93
|
|
|
94
94
|
try {
|
|
@@ -144,11 +144,11 @@ Returns peer information from the overlay transport\'s UAPI state. When the
|
|
|
144
144
|
import {
|
|
145
145
|
Configuration,
|
|
146
146
|
OverlayApi,
|
|
147
|
-
} from '@zlayer/client';
|
|
148
|
-
import type { GetOverlayPeersRequest } from '@zlayer/client';
|
|
147
|
+
} from '@zlayer/api-client';
|
|
148
|
+
import type { GetOverlayPeersRequest } from '@zlayer/api-client';
|
|
149
149
|
|
|
150
150
|
async function example() {
|
|
151
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
151
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
152
152
|
const api = new OverlayApi();
|
|
153
153
|
|
|
154
154
|
try {
|
|
@@ -204,11 +204,11 @@ Returns the current overlay network status including interface name, node IP, CI
|
|
|
204
204
|
import {
|
|
205
205
|
Configuration,
|
|
206
206
|
OverlayApi,
|
|
207
|
-
} from '@zlayer/client';
|
|
208
|
-
import type { GetOverlayStatusRequest } from '@zlayer/client';
|
|
207
|
+
} from '@zlayer/api-client';
|
|
208
|
+
import type { GetOverlayStatusRequest } from '@zlayer/api-client';
|
|
209
209
|
|
|
210
210
|
async function example() {
|
|
211
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
211
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
212
212
|
const api = new OverlayApi();
|
|
213
213
|
|
|
214
214
|
try {
|
package/docs/PeerInfo.md
CHANGED
package/docs/PeerListResponse.md
CHANGED
package/docs/PermissionLevel.md
CHANGED
package/docs/PermissionsApi.md
CHANGED
|
@@ -6,6 +6,7 @@ All URIs are relative to *http://localhost*
|
|
|
6
6
|
|------------- | ------------- | -------------|
|
|
7
7
|
| [**grantPermission**](PermissionsApi.md#grantpermissionoperation) | **POST** /api/v1/permissions | Grant a permission. Admin only. |
|
|
8
8
|
| [**listPermissions**](PermissionsApi.md#listpermissions) | **GET** /api/v1/permissions | List permissions for a subject (user or group). |
|
|
9
|
+
| [**listPermissionsByResource**](PermissionsApi.md#listpermissionsbyresource) | **GET** /api/v1/permissions/by-resource | List permissions granted on a specific resource. |
|
|
9
10
|
| [**revokePermission**](PermissionsApi.md#revokepermission) | **DELETE** /api/v1/permissions/{id} | Revoke a permission by id. Admin only. |
|
|
10
11
|
|
|
11
12
|
|
|
@@ -24,11 +25,11 @@ Grant a permission. Admin only.
|
|
|
24
25
|
import {
|
|
25
26
|
Configuration,
|
|
26
27
|
PermissionsApi,
|
|
27
|
-
} from '@zlayer/client';
|
|
28
|
-
import type { GrantPermissionOperationRequest } from '@zlayer/client';
|
|
28
|
+
} from '@zlayer/api-client';
|
|
29
|
+
import type { GrantPermissionOperationRequest } from '@zlayer/api-client';
|
|
29
30
|
|
|
30
31
|
async function example() {
|
|
31
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
32
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
32
33
|
const api = new PermissionsApi();
|
|
33
34
|
|
|
34
35
|
const body = {
|
|
@@ -93,11 +94,11 @@ Exactly one of `user` or `group` must be provided. # Errors
|
|
|
93
94
|
import {
|
|
94
95
|
Configuration,
|
|
95
96
|
PermissionsApi,
|
|
96
|
-
} from '@zlayer/client';
|
|
97
|
-
import type { ListPermissionsRequest } from '@zlayer/client';
|
|
97
|
+
} from '@zlayer/api-client';
|
|
98
|
+
import type { ListPermissionsRequest } from '@zlayer/api-client';
|
|
98
99
|
|
|
99
100
|
async function example() {
|
|
100
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
101
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
101
102
|
const api = new PermissionsApi();
|
|
102
103
|
|
|
103
104
|
const body = {
|
|
@@ -150,6 +151,76 @@ No authorization required
|
|
|
150
151
|
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
151
152
|
|
|
152
153
|
|
|
154
|
+
## listPermissionsByResource
|
|
155
|
+
|
|
156
|
+
> Array<StoredPermission> listPermissionsByResource(kind, id)
|
|
157
|
+
|
|
158
|
+
List permissions granted on a specific resource.
|
|
159
|
+
|
|
160
|
+
When `id` is supplied, returns exact-resource grants; when omitted, returns wildcard grants for the given `kind`. # Errors Returns [`ApiError::Internal`] on store failure.
|
|
161
|
+
|
|
162
|
+
### Example
|
|
163
|
+
|
|
164
|
+
```ts
|
|
165
|
+
import {
|
|
166
|
+
Configuration,
|
|
167
|
+
PermissionsApi,
|
|
168
|
+
} from '@zlayer/api-client';
|
|
169
|
+
import type { ListPermissionsByResourceRequest } from '@zlayer/api-client';
|
|
170
|
+
|
|
171
|
+
async function example() {
|
|
172
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
173
|
+
const api = new PermissionsApi();
|
|
174
|
+
|
|
175
|
+
const body = {
|
|
176
|
+
// string | Resource kind (e.g. `\"environment\"`).
|
|
177
|
+
kind: kind_example,
|
|
178
|
+
// string | Specific resource id. Omit for wildcard grants only. (optional)
|
|
179
|
+
id: id_example,
|
|
180
|
+
} satisfies ListPermissionsByResourceRequest;
|
|
181
|
+
|
|
182
|
+
try {
|
|
183
|
+
const data = await api.listPermissionsByResource(body);
|
|
184
|
+
console.log(data);
|
|
185
|
+
} catch (error) {
|
|
186
|
+
console.error(error);
|
|
187
|
+
}
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
// Run the test
|
|
191
|
+
example().catch(console.error);
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
### Parameters
|
|
195
|
+
|
|
196
|
+
|
|
197
|
+
| Name | Type | Description | Notes |
|
|
198
|
+
|------------- | ------------- | ------------- | -------------|
|
|
199
|
+
| **kind** | `string` | Resource kind (e.g. `\"environment\"`). | [Defaults to `undefined`] |
|
|
200
|
+
| **id** | `string` | Specific resource id. Omit for wildcard grants only. | [Optional] [Defaults to `undefined`] |
|
|
201
|
+
|
|
202
|
+
### Return type
|
|
203
|
+
|
|
204
|
+
[**Array<StoredPermission>**](StoredPermission.md)
|
|
205
|
+
|
|
206
|
+
### Authorization
|
|
207
|
+
|
|
208
|
+
No authorization required
|
|
209
|
+
|
|
210
|
+
### HTTP request headers
|
|
211
|
+
|
|
212
|
+
- **Content-Type**: Not defined
|
|
213
|
+
- **Accept**: `application/json`
|
|
214
|
+
|
|
215
|
+
|
|
216
|
+
### HTTP response details
|
|
217
|
+
| Status code | Description | Response headers |
|
|
218
|
+
|-------------|-------------|------------------|
|
|
219
|
+
| **200** | Grants on the resource | - |
|
|
220
|
+
|
|
221
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
222
|
+
|
|
223
|
+
|
|
153
224
|
## revokePermission
|
|
154
225
|
|
|
155
226
|
> revokePermission(id)
|
|
@@ -164,11 +235,11 @@ Revoke a permission by id. Admin only.
|
|
|
164
235
|
import {
|
|
165
236
|
Configuration,
|
|
166
237
|
PermissionsApi,
|
|
167
|
-
} from '@zlayer/client';
|
|
168
|
-
import type { RevokePermissionRequest } from '@zlayer/client';
|
|
238
|
+
} from '@zlayer/api-client';
|
|
239
|
+
import type { RevokePermissionRequest } from '@zlayer/api-client';
|
|
169
240
|
|
|
170
241
|
async function example() {
|
|
171
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
242
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
172
243
|
const api = new PermissionsApi();
|
|
173
244
|
|
|
174
245
|
const body = {
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
|
|
2
|
+
# PortMapping
|
|
3
|
+
|
|
4
|
+
A single host-to-container port publish rule (Docker\'s `-p`). When `host_port` is `None` (or explicitly `Some(0)`), the container runtime assigns an ephemeral host port. `host_ip` defaults to `\"0.0.0.0\"` to bind on all interfaces.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
`containerPort` | number
|
|
11
|
+
`hostIp` | string
|
|
12
|
+
`hostPort` | number
|
|
13
|
+
`protocol` | [PortProtocol](PortProtocol.md)
|
|
14
|
+
|
|
15
|
+
## Example
|
|
16
|
+
|
|
17
|
+
```typescript
|
|
18
|
+
import type { PortMapping } from '@zlayer/api-client'
|
|
19
|
+
|
|
20
|
+
// TODO: Update the object below with actual values
|
|
21
|
+
const example = {
|
|
22
|
+
"containerPort": null,
|
|
23
|
+
"hostIp": null,
|
|
24
|
+
"hostPort": null,
|
|
25
|
+
"protocol": null,
|
|
26
|
+
} satisfies PortMapping
|
|
27
|
+
|
|
28
|
+
console.log(example)
|
|
29
|
+
|
|
30
|
+
// Convert the instance to a JSON string
|
|
31
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
32
|
+
console.log(exampleJSON)
|
|
33
|
+
|
|
34
|
+
// Parse the JSON string back to an object
|
|
35
|
+
const exampleParsed = JSON.parse(exampleJSON) as PortMapping
|
|
36
|
+
console.log(exampleParsed)
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
40
|
+
|
|
41
|
+
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
|
|
2
|
+
# PortProtocol
|
|
3
|
+
|
|
4
|
+
Transport protocol for a published container port.
|
|
5
|
+
|
|
6
|
+
## Properties
|
|
7
|
+
|
|
8
|
+
Name | Type
|
|
9
|
+
------------ | -------------
|
|
10
|
+
|
|
11
|
+
## Example
|
|
12
|
+
|
|
13
|
+
```typescript
|
|
14
|
+
import type { PortProtocol } from '@zlayer/api-client'
|
|
15
|
+
|
|
16
|
+
// TODO: Update the object below with actual values
|
|
17
|
+
const example = {
|
|
18
|
+
} satisfies PortProtocol
|
|
19
|
+
|
|
20
|
+
console.log(example)
|
|
21
|
+
|
|
22
|
+
// Convert the instance to a JSON string
|
|
23
|
+
const exampleJSON: string = JSON.stringify(example)
|
|
24
|
+
console.log(exampleJSON)
|
|
25
|
+
|
|
26
|
+
// Parse the JSON string back to an object
|
|
27
|
+
const exampleParsed = JSON.parse(exampleJSON) as PortProtocol
|
|
28
|
+
console.log(exampleParsed)
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[[Back to top]](#) [[Back to API list]](../README.md#api-endpoints) [[Back to Model list]](../README.md#models) [[Back to README]](../README.md)
|
|
32
|
+
|
|
33
|
+
|
package/docs/ProjectsApi.md
CHANGED
|
@@ -30,11 +30,11 @@ Create a new project. Admin only.
|
|
|
30
30
|
import {
|
|
31
31
|
Configuration,
|
|
32
32
|
ProjectsApi,
|
|
33
|
-
} from '@zlayer/client';
|
|
34
|
-
import type { CreateProjectOperationRequest } from '@zlayer/client';
|
|
33
|
+
} from '@zlayer/api-client';
|
|
34
|
+
import type { CreateProjectOperationRequest } from '@zlayer/api-client';
|
|
35
35
|
|
|
36
36
|
async function example() {
|
|
37
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
37
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
38
38
|
const config = new Configuration({
|
|
39
39
|
// Configure HTTP bearer authorization: bearer_auth
|
|
40
40
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -104,11 +104,11 @@ Delete a project. Admin only. Cascade-removes deployment links.
|
|
|
104
104
|
import {
|
|
105
105
|
Configuration,
|
|
106
106
|
ProjectsApi,
|
|
107
|
-
} from '@zlayer/client';
|
|
108
|
-
import type { DeleteProjectRequest } from '@zlayer/client';
|
|
107
|
+
} from '@zlayer/api-client';
|
|
108
|
+
import type { DeleteProjectRequest } from '@zlayer/api-client';
|
|
109
109
|
|
|
110
110
|
async function example() {
|
|
111
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
111
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
112
112
|
const config = new Configuration({
|
|
113
113
|
// Configure HTTP bearer authorization: bearer_auth
|
|
114
114
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -177,11 +177,11 @@ Fetch a single project by id.
|
|
|
177
177
|
import {
|
|
178
178
|
Configuration,
|
|
179
179
|
ProjectsApi,
|
|
180
|
-
} from '@zlayer/client';
|
|
181
|
-
import type { GetProjectRequest } from '@zlayer/client';
|
|
180
|
+
} from '@zlayer/api-client';
|
|
181
|
+
import type { GetProjectRequest } from '@zlayer/api-client';
|
|
182
182
|
|
|
183
183
|
async function example() {
|
|
184
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
184
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
185
185
|
const config = new Configuration({
|
|
186
186
|
// Configure HTTP bearer authorization: bearer_auth
|
|
187
187
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -249,11 +249,11 @@ Link a deployment to a project.
|
|
|
249
249
|
import {
|
|
250
250
|
Configuration,
|
|
251
251
|
ProjectsApi,
|
|
252
|
-
} from '@zlayer/client';
|
|
253
|
-
import type { LinkProjectDeploymentRequest } from '@zlayer/client';
|
|
252
|
+
} from '@zlayer/api-client';
|
|
253
|
+
import type { LinkProjectDeploymentRequest } from '@zlayer/api-client';
|
|
254
254
|
|
|
255
255
|
async function example() {
|
|
256
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
256
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
257
257
|
const config = new Configuration({
|
|
258
258
|
// Configure HTTP bearer authorization: bearer_auth
|
|
259
259
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -325,11 +325,11 @@ List deployment names linked to a project.
|
|
|
325
325
|
import {
|
|
326
326
|
Configuration,
|
|
327
327
|
ProjectsApi,
|
|
328
|
-
} from '@zlayer/client';
|
|
329
|
-
import type { ListProjectDeploymentsRequest } from '@zlayer/client';
|
|
328
|
+
} from '@zlayer/api-client';
|
|
329
|
+
import type { ListProjectDeploymentsRequest } from '@zlayer/api-client';
|
|
330
330
|
|
|
331
331
|
async function example() {
|
|
332
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
332
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
333
333
|
const config = new Configuration({
|
|
334
334
|
// Configure HTTP bearer authorization: bearer_auth
|
|
335
335
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -397,11 +397,11 @@ Any authenticated user can list projects. # Errors Returns [`ApiError::In
|
|
|
397
397
|
import {
|
|
398
398
|
Configuration,
|
|
399
399
|
ProjectsApi,
|
|
400
|
-
} from '@zlayer/client';
|
|
401
|
-
import type { ListProjectsRequest } from '@zlayer/client';
|
|
400
|
+
} from '@zlayer/api-client';
|
|
401
|
+
import type { ListProjectsRequest } from '@zlayer/api-client';
|
|
402
402
|
|
|
403
403
|
async function example() {
|
|
404
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
404
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
405
405
|
const config = new Configuration({
|
|
406
406
|
// Configure HTTP bearer authorization: bearer_auth
|
|
407
407
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -461,11 +461,11 @@ Authentication is resolved from `git_credential_id`: when set, the mat
|
|
|
461
461
|
import {
|
|
462
462
|
Configuration,
|
|
463
463
|
ProjectsApi,
|
|
464
|
-
} from '@zlayer/client';
|
|
465
|
-
import type { PullProjectRequest } from '@zlayer/client';
|
|
464
|
+
} from '@zlayer/api-client';
|
|
465
|
+
import type { PullProjectRequest } from '@zlayer/api-client';
|
|
466
466
|
|
|
467
467
|
async function example() {
|
|
468
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
468
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
469
469
|
const config = new Configuration({
|
|
470
470
|
// Configure HTTP bearer authorization: bearer_auth
|
|
471
471
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -536,11 +536,11 @@ Unlink a deployment from a project.
|
|
|
536
536
|
import {
|
|
537
537
|
Configuration,
|
|
538
538
|
ProjectsApi,
|
|
539
|
-
} from '@zlayer/client';
|
|
540
|
-
import type { UnlinkProjectDeploymentRequest } from '@zlayer/client';
|
|
539
|
+
} from '@zlayer/api-client';
|
|
540
|
+
import type { UnlinkProjectDeploymentRequest } from '@zlayer/api-client';
|
|
541
541
|
|
|
542
542
|
async function example() {
|
|
543
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
543
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
544
544
|
const config = new Configuration({
|
|
545
545
|
// Configure HTTP bearer authorization: bearer_auth
|
|
546
546
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -611,11 +611,11 @@ Update a project. Admin only.
|
|
|
611
611
|
import {
|
|
612
612
|
Configuration,
|
|
613
613
|
ProjectsApi,
|
|
614
|
-
} from '@zlayer/client';
|
|
615
|
-
import type { UpdateProjectOperationRequest } from '@zlayer/client';
|
|
614
|
+
} from '@zlayer/api-client';
|
|
615
|
+
import type { UpdateProjectOperationRequest } from '@zlayer/api-client';
|
|
616
616
|
|
|
617
617
|
async function example() {
|
|
618
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
618
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
619
619
|
const config = new Configuration({
|
|
620
620
|
// Configure HTTP bearer authorization: bearer_auth
|
|
621
621
|
accessToken: "YOUR BEARER TOKEN",
|
package/docs/ProxyApi.md
CHANGED
|
@@ -25,11 +25,11 @@ Returns each service\'s backend group with its strategy, health status, and
|
|
|
25
25
|
import {
|
|
26
26
|
Configuration,
|
|
27
27
|
ProxyApi,
|
|
28
|
-
} from '@zlayer/client';
|
|
29
|
-
import type { ListBackendsRequest } from '@zlayer/client';
|
|
28
|
+
} from '@zlayer/api-client';
|
|
29
|
+
import type { ListBackendsRequest } from '@zlayer/api-client';
|
|
30
30
|
|
|
31
31
|
async function example() {
|
|
32
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
32
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
33
33
|
const config = new Configuration({
|
|
34
34
|
// Configure HTTP bearer authorization: bearer_auth
|
|
35
35
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -89,11 +89,11 @@ Returns the full list of L7 routes with their host patterns, path prefixes, back
|
|
|
89
89
|
import {
|
|
90
90
|
Configuration,
|
|
91
91
|
ProxyApi,
|
|
92
|
-
} from '@zlayer/client';
|
|
93
|
-
import type { ListRoutesRequest } from '@zlayer/client';
|
|
92
|
+
} from '@zlayer/api-client';
|
|
93
|
+
import type { ListRoutesRequest } from '@zlayer/api-client';
|
|
94
94
|
|
|
95
95
|
async function example() {
|
|
96
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
96
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
97
97
|
const config = new Configuration({
|
|
98
98
|
// Configure HTTP bearer authorization: bearer_auth
|
|
99
99
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -153,11 +153,11 @@ Returns all TCP and UDP stream proxies with their listen ports, service names, a
|
|
|
153
153
|
import {
|
|
154
154
|
Configuration,
|
|
155
155
|
ProxyApi,
|
|
156
|
-
} from '@zlayer/client';
|
|
157
|
-
import type { ListStreamsRequest } from '@zlayer/client';
|
|
156
|
+
} from '@zlayer/api-client';
|
|
157
|
+
import type { ListStreamsRequest } from '@zlayer/api-client';
|
|
158
158
|
|
|
159
159
|
async function example() {
|
|
160
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
160
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
161
161
|
const config = new Configuration({
|
|
162
162
|
// Configure HTTP bearer authorization: bearer_auth
|
|
163
163
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -217,11 +217,11 @@ Returns cached certificate domains with metadata (expiry, fingerprint) when avai
|
|
|
217
217
|
import {
|
|
218
218
|
Configuration,
|
|
219
219
|
ProxyApi,
|
|
220
|
-
} from '@zlayer/client';
|
|
221
|
-
import type { ListTlsRequest } from '@zlayer/client';
|
|
220
|
+
} from '@zlayer/api-client';
|
|
221
|
+
import type { ListTlsRequest } from '@zlayer/api-client';
|
|
222
222
|
|
|
223
223
|
async function example() {
|
|
224
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
224
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
225
225
|
const config = new Configuration({
|
|
226
226
|
// Configure HTTP bearer authorization: bearer_auth
|
|
227
227
|
accessToken: "YOUR BEARER TOKEN",
|