@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/WebhooksApi.md
CHANGED
|
@@ -24,11 +24,11 @@ Returns the webhook URL pattern and the HMAC secret. Generates the secret on fir
|
|
|
24
24
|
import {
|
|
25
25
|
Configuration,
|
|
26
26
|
WebhooksApi,
|
|
27
|
-
} from '@zlayer/client';
|
|
28
|
-
import type { GetWebhookInfoRequest } from '@zlayer/client';
|
|
27
|
+
} from '@zlayer/api-client';
|
|
28
|
+
import type { GetWebhookInfoRequest } from '@zlayer/api-client';
|
|
29
29
|
|
|
30
30
|
async function example() {
|
|
31
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
31
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
32
32
|
const config = new Configuration({
|
|
33
33
|
// Configure HTTP bearer authorization: bearer_auth
|
|
34
34
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -96,11 +96,11 @@ This endpoint is **unauthenticated** -- it relies on HMAC signature verification
|
|
|
96
96
|
import {
|
|
97
97
|
Configuration,
|
|
98
98
|
WebhooksApi,
|
|
99
|
-
} from '@zlayer/client';
|
|
100
|
-
import type { ReceiveWebhookRequest } from '@zlayer/client';
|
|
99
|
+
} from '@zlayer/api-client';
|
|
100
|
+
import type { ReceiveWebhookRequest } from '@zlayer/api-client';
|
|
101
101
|
|
|
102
102
|
async function example() {
|
|
103
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
103
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
104
104
|
const api = new WebhooksApi();
|
|
105
105
|
|
|
106
106
|
const body = {
|
|
@@ -173,11 +173,11 @@ Admin only. # Errors Returns [`ApiError::Forbidden`] for non-admins,
|
|
|
173
173
|
import {
|
|
174
174
|
Configuration,
|
|
175
175
|
WebhooksApi,
|
|
176
|
-
} from '@zlayer/client';
|
|
177
|
-
import type { RotateWebhookSecretRequest } from '@zlayer/client';
|
|
176
|
+
} from '@zlayer/api-client';
|
|
177
|
+
import type { RotateWebhookSecretRequest } 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",
|
package/docs/WorkflowAction.md
CHANGED
package/docs/WorkflowRun.md
CHANGED
package/docs/WorkflowStep.md
CHANGED
package/docs/WorkflowsApi.md
CHANGED
|
@@ -27,11 +27,11 @@ Create a new workflow. Admin only.
|
|
|
27
27
|
import {
|
|
28
28
|
Configuration,
|
|
29
29
|
WorkflowsApi,
|
|
30
|
-
} from '@zlayer/client';
|
|
31
|
-
import type { CreateWorkflowOperationRequest } from '@zlayer/client';
|
|
30
|
+
} from '@zlayer/api-client';
|
|
31
|
+
import type { CreateWorkflowOperationRequest } 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 workflow. Admin only.
|
|
|
100
100
|
import {
|
|
101
101
|
Configuration,
|
|
102
102
|
WorkflowsApi,
|
|
103
|
-
} from '@zlayer/client';
|
|
104
|
-
import type { DeleteWorkflowRequest } from '@zlayer/client';
|
|
103
|
+
} from '@zlayer/api-client';
|
|
104
|
+
import type { DeleteWorkflowRequest } 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 workflow by id.
|
|
|
173
173
|
import {
|
|
174
174
|
Configuration,
|
|
175
175
|
WorkflowsApi,
|
|
176
|
-
} from '@zlayer/client';
|
|
177
|
-
import type { GetWorkflowRequest } from '@zlayer/client';
|
|
176
|
+
} from '@zlayer/api-client';
|
|
177
|
+
import type { GetWorkflowRequest } 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 past runs for a workflow, most recent first.
|
|
|
245
245
|
import {
|
|
246
246
|
Configuration,
|
|
247
247
|
WorkflowsApi,
|
|
248
|
-
} from '@zlayer/client';
|
|
249
|
-
import type { ListWorkflowRunsRequest } from '@zlayer/client';
|
|
248
|
+
} from '@zlayer/api-client';
|
|
249
|
+
import type { ListWorkflowRunsRequest } 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",
|
|
@@ -317,11 +317,11 @@ List workflows.
|
|
|
317
317
|
import {
|
|
318
318
|
Configuration,
|
|
319
319
|
WorkflowsApi,
|
|
320
|
-
} from '@zlayer/client';
|
|
321
|
-
import type { ListWorkflowsRequest } from '@zlayer/client';
|
|
320
|
+
} from '@zlayer/api-client';
|
|
321
|
+
import type { ListWorkflowsRequest } from '@zlayer/api-client';
|
|
322
322
|
|
|
323
323
|
async function example() {
|
|
324
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
324
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
325
325
|
const config = new Configuration({
|
|
326
326
|
// Configure HTTP bearer authorization: bearer_auth
|
|
327
327
|
accessToken: "YOUR BEARER TOKEN",
|
|
@@ -381,11 +381,11 @@ Iterates steps sequentially: - `RunTask` — looks up the task and exe
|
|
|
381
381
|
import {
|
|
382
382
|
Configuration,
|
|
383
383
|
WorkflowsApi,
|
|
384
|
-
} from '@zlayer/client';
|
|
385
|
-
import type { RunWorkflowRequest } from '@zlayer/client';
|
|
384
|
+
} from '@zlayer/api-client';
|
|
385
|
+
import type { RunWorkflowRequest } from '@zlayer/api-client';
|
|
386
386
|
|
|
387
387
|
async function example() {
|
|
388
|
-
console.log("🚀 Testing @zlayer/client SDK...");
|
|
388
|
+
console.log("🚀 Testing @zlayer/api-client SDK...");
|
|
389
389
|
const config = new Configuration({
|
|
390
390
|
// Configure HTTP bearer authorization: bearer_auth
|
|
391
391
|
accessToken: "YOUR BEARER TOKEN",
|
package/package.json
CHANGED
|
@@ -19,6 +19,8 @@ import type {
|
|
|
19
19
|
CsrfResponse,
|
|
20
20
|
LoginRequest,
|
|
21
21
|
LoginResponse,
|
|
22
|
+
OidcCallbackResponse,
|
|
23
|
+
OidcProviderPublic,
|
|
22
24
|
TokenRequest,
|
|
23
25
|
TokenResponse,
|
|
24
26
|
UserView,
|
|
@@ -32,6 +34,10 @@ import {
|
|
|
32
34
|
LoginRequestToJSON,
|
|
33
35
|
LoginResponseFromJSON,
|
|
34
36
|
LoginResponseToJSON,
|
|
37
|
+
OidcCallbackResponseFromJSON,
|
|
38
|
+
OidcCallbackResponseToJSON,
|
|
39
|
+
OidcProviderPublicFromJSON,
|
|
40
|
+
OidcProviderPublicToJSON,
|
|
35
41
|
TokenRequestFromJSON,
|
|
36
42
|
TokenRequestToJSON,
|
|
37
43
|
TokenResponseFromJSON,
|
|
@@ -44,6 +50,10 @@ export interface BootstrapOperationRequest {
|
|
|
44
50
|
bootstrapRequest: BootstrapRequest;
|
|
45
51
|
}
|
|
46
52
|
|
|
53
|
+
export interface CallbackRequest {
|
|
54
|
+
provider: string;
|
|
55
|
+
}
|
|
56
|
+
|
|
47
57
|
export interface GetTokenRequest {
|
|
48
58
|
tokenRequest: TokenRequest;
|
|
49
59
|
}
|
|
@@ -52,6 +62,10 @@ export interface LoginOperationRequest {
|
|
|
52
62
|
loginRequest: LoginRequest;
|
|
53
63
|
}
|
|
54
64
|
|
|
65
|
+
export interface StartRequest {
|
|
66
|
+
provider: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
55
69
|
/**
|
|
56
70
|
*
|
|
57
71
|
*/
|
|
@@ -106,6 +120,51 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
106
120
|
return await response.value();
|
|
107
121
|
}
|
|
108
122
|
|
|
123
|
+
/**
|
|
124
|
+
* Creates request options for callback without sending the request
|
|
125
|
+
*/
|
|
126
|
+
async callbackRequestOpts(requestParameters: CallbackRequest): Promise<runtime.RequestOpts> {
|
|
127
|
+
if (requestParameters['provider'] == null) {
|
|
128
|
+
throw new runtime.RequiredError(
|
|
129
|
+
'provider',
|
|
130
|
+
'Required parameter "provider" was null or undefined when calling callback().'
|
|
131
|
+
);
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
const queryParameters: any = {};
|
|
135
|
+
|
|
136
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
137
|
+
|
|
138
|
+
|
|
139
|
+
let urlPath = `/auth/oidc/{provider}/callback`;
|
|
140
|
+
urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider'])));
|
|
141
|
+
|
|
142
|
+
return {
|
|
143
|
+
path: urlPath,
|
|
144
|
+
method: 'GET',
|
|
145
|
+
headers: headerParameters,
|
|
146
|
+
query: queryParameters,
|
|
147
|
+
};
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/**
|
|
151
|
+
* `GET /auth/oidc/:provider/callback`.
|
|
152
|
+
*/
|
|
153
|
+
async callbackRaw(requestParameters: CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<OidcCallbackResponse>> {
|
|
154
|
+
const requestOptions = await this.callbackRequestOpts(requestParameters);
|
|
155
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
156
|
+
|
|
157
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => OidcCallbackResponseFromJSON(jsonValue));
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* `GET /auth/oidc/:provider/callback`.
|
|
162
|
+
*/
|
|
163
|
+
async callback(requestParameters: CallbackRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<OidcCallbackResponse> {
|
|
164
|
+
const response = await this.callbackRaw(requestParameters, initOverrides);
|
|
165
|
+
return await response.value();
|
|
166
|
+
}
|
|
167
|
+
|
|
109
168
|
/**
|
|
110
169
|
* Creates request options for csrf without sending the request
|
|
111
170
|
*/
|
|
@@ -192,6 +251,43 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
192
251
|
return await response.value();
|
|
193
252
|
}
|
|
194
253
|
|
|
254
|
+
/**
|
|
255
|
+
* Creates request options for listProviders without sending the request
|
|
256
|
+
*/
|
|
257
|
+
async listProvidersRequestOpts(): Promise<runtime.RequestOpts> {
|
|
258
|
+
const queryParameters: any = {};
|
|
259
|
+
|
|
260
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
261
|
+
|
|
262
|
+
|
|
263
|
+
let urlPath = `/auth/oidc/providers`;
|
|
264
|
+
|
|
265
|
+
return {
|
|
266
|
+
path: urlPath,
|
|
267
|
+
method: 'GET',
|
|
268
|
+
headers: headerParameters,
|
|
269
|
+
query: queryParameters,
|
|
270
|
+
};
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
/**
|
|
274
|
+
* `GET /auth/oidc/providers`.
|
|
275
|
+
*/
|
|
276
|
+
async listProvidersRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Array<OidcProviderPublic>>> {
|
|
277
|
+
const requestOptions = await this.listProvidersRequestOpts();
|
|
278
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
279
|
+
|
|
280
|
+
return new runtime.JSONApiResponse(response, (jsonValue) => jsonValue.map(OidcProviderPublicFromJSON));
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
/**
|
|
284
|
+
* `GET /auth/oidc/providers`.
|
|
285
|
+
*/
|
|
286
|
+
async listProviders(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Array<OidcProviderPublic>> {
|
|
287
|
+
const response = await this.listProvidersRaw(initOverrides);
|
|
288
|
+
return await response.value();
|
|
289
|
+
}
|
|
290
|
+
|
|
195
291
|
/**
|
|
196
292
|
* Creates request options for login without sending the request
|
|
197
293
|
*/
|
|
@@ -316,4 +412,48 @@ export class AuthenticationApi extends runtime.BaseAPI {
|
|
|
316
412
|
return await response.value();
|
|
317
413
|
}
|
|
318
414
|
|
|
415
|
+
/**
|
|
416
|
+
* Creates request options for start without sending the request
|
|
417
|
+
*/
|
|
418
|
+
async startRequestOpts(requestParameters: StartRequest): Promise<runtime.RequestOpts> {
|
|
419
|
+
if (requestParameters['provider'] == null) {
|
|
420
|
+
throw new runtime.RequiredError(
|
|
421
|
+
'provider',
|
|
422
|
+
'Required parameter "provider" was null or undefined when calling start().'
|
|
423
|
+
);
|
|
424
|
+
}
|
|
425
|
+
|
|
426
|
+
const queryParameters: any = {};
|
|
427
|
+
|
|
428
|
+
const headerParameters: runtime.HTTPHeaders = {};
|
|
429
|
+
|
|
430
|
+
|
|
431
|
+
let urlPath = `/auth/oidc/{provider}/start`;
|
|
432
|
+
urlPath = urlPath.replace(`{${"provider"}}`, encodeURIComponent(String(requestParameters['provider'])));
|
|
433
|
+
|
|
434
|
+
return {
|
|
435
|
+
path: urlPath,
|
|
436
|
+
method: 'GET',
|
|
437
|
+
headers: headerParameters,
|
|
438
|
+
query: queryParameters,
|
|
439
|
+
};
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
/**
|
|
443
|
+
* `GET /auth/oidc/:provider/start` — 302 to the provider\'s authorize URL.
|
|
444
|
+
*/
|
|
445
|
+
async startRaw(requestParameters: StartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>> {
|
|
446
|
+
const requestOptions = await this.startRequestOpts(requestParameters);
|
|
447
|
+
const response = await this.request(requestOptions, initOverrides);
|
|
448
|
+
|
|
449
|
+
return new runtime.VoidApiResponse(response);
|
|
450
|
+
}
|
|
451
|
+
|
|
452
|
+
/**
|
|
453
|
+
* `GET /auth/oidc/:provider/start` — 302 to the provider\'s authorize URL.
|
|
454
|
+
*/
|
|
455
|
+
async start(requestParameters: StartRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void> {
|
|
456
|
+
await this.startRaw(requestParameters, initOverrides);
|
|
457
|
+
}
|
|
458
|
+
|
|
319
459
|
}
|