@alienplatform/platform-api 1.11.2 → 1.13.0
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/README.md +6 -0
- package/esm/funcs/deploymentGetInfo.js +1 -0
- package/esm/funcs/deploymentGetInfo.js.map +1 -1
- package/esm/funcs/deploymentGroupsEnsureDeploymentGroupByName.d.ts +16 -0
- package/esm/funcs/deploymentGroupsEnsureDeploymentGroupByName.d.ts.map +1 -0
- package/esm/funcs/deploymentGroupsEnsureDeploymentGroupByName.js +87 -0
- package/esm/funcs/deploymentGroupsEnsureDeploymentGroupByName.js.map +1 -0
- package/esm/funcs/deploymentsCreate.d.ts +2 -1
- package/esm/funcs/deploymentsCreate.d.ts.map +1 -1
- package/esm/funcs/deploymentsCreate.js +2 -1
- package/esm/funcs/deploymentsCreate.js.map +1 -1
- package/esm/funcs/machinesCancelMachineDrain.js +5 -1
- package/esm/funcs/machinesCancelMachineDrain.js.map +1 -1
- package/esm/funcs/machinesCreateJoinToken.d.ts +13 -0
- package/esm/funcs/machinesCreateJoinToken.d.ts.map +1 -0
- package/esm/funcs/machinesCreateJoinToken.js +86 -0
- package/esm/funcs/machinesCreateJoinToken.js.map +1 -0
- package/esm/funcs/machinesDrainMachine.js +5 -1
- package/esm/funcs/machinesDrainMachine.js.map +1 -1
- package/esm/funcs/machinesListInventory.js +5 -1
- package/esm/funcs/machinesListInventory.js.map +1 -1
- package/esm/funcs/machinesListJoinTokens.js +5 -1
- package/esm/funcs/machinesListJoinTokens.js.map +1 -1
- package/esm/funcs/machinesRemoveMachine.js +5 -1
- package/esm/funcs/machinesRemoveMachine.js.map +1 -1
- package/esm/funcs/machinesRevokeJoinToken.js +5 -1
- package/esm/funcs/machinesRevokeJoinToken.js.map +1 -1
- package/esm/funcs/machinesRotateJoinToken.js +5 -1
- package/esm/funcs/machinesRotateJoinToken.js.map +1 -1
- package/esm/funcs/projectsGetDeploymentLinkSetup.d.ts +16 -0
- package/esm/funcs/projectsGetDeploymentLinkSetup.d.ts.map +1 -0
- package/esm/funcs/projectsGetDeploymentLinkSetup.js +89 -0
- package/esm/funcs/projectsGetDeploymentLinkSetup.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/apierror.d.ts +8 -0
- package/esm/models/apierror.d.ts.map +1 -1
- package/esm/models/apierror.js +2 -0
- package/esm/models/apierror.js.map +1 -1
- package/esm/models/createdeploymentresponse.d.ts +18 -0
- package/esm/models/createdeploymentresponse.d.ts.map +1 -1
- package/esm/models/createdeploymentresponse.js +10 -0
- package/esm/models/createdeploymentresponse.js.map +1 -1
- package/esm/models/createmachinesjointokenresponse.d.ts +22 -0
- package/esm/models/createmachinesjointokenresponse.d.ts.map +1 -0
- package/esm/models/createmachinesjointokenresponse.js +19 -0
- package/esm/models/createmachinesjointokenresponse.js.map +1 -0
- package/esm/models/createmanagerresponse.d.ts +4 -0
- package/esm/models/createmanagerresponse.d.ts.map +1 -1
- package/esm/models/createmanagerresponse.js +1 -0
- package/esm/models/createmanagerresponse.js.map +1 -1
- package/esm/models/deployment.d.ts +1 -0
- package/esm/models/deployment.d.ts.map +1 -1
- package/esm/models/deployment.js +1 -0
- package/esm/models/deployment.js.map +1 -1
- package/esm/models/deploymentconnectioninfo.d.ts +1 -0
- package/esm/models/deploymentconnectioninfo.d.ts.map +1 -1
- package/esm/models/deploymentconnectioninfo.js +1 -0
- package/esm/models/deploymentconnectioninfo.js.map +1 -1
- package/esm/models/deploymentdetailresponse.d.ts +1 -0
- package/esm/models/deploymentdetailresponse.d.ts.map +1 -1
- package/esm/models/deploymentdetailresponse.js +1 -0
- package/esm/models/deploymentdetailresponse.js.map +1 -1
- package/esm/models/deploymentinfo.d.ts +53 -0
- package/esm/models/deploymentinfo.d.ts.map +1 -1
- package/esm/models/deploymentinfo.js +46 -0
- package/esm/models/deploymentinfo.js.map +1 -1
- package/esm/models/deploymentlinksetupresponse.d.ts +42 -0
- package/esm/models/deploymentlinksetupresponse.d.ts.map +1 -0
- package/esm/models/deploymentlinksetupresponse.js +39 -0
- package/esm/models/deploymentlinksetupresponse.js.map +1 -0
- package/esm/models/deploymentlistitemresponse.d.ts +1 -0
- package/esm/models/deploymentlistitemresponse.d.ts.map +1 -1
- package/esm/models/deploymentlistitemresponse.js +1 -0
- package/esm/models/deploymentlistitemresponse.js.map +1 -1
- package/esm/models/deploymentsetupconfig.d.ts +5 -0
- package/esm/models/deploymentsetupconfig.d.ts.map +1 -1
- package/esm/models/deploymentsetupconfig.js +1 -0
- package/esm/models/deploymentsetupconfig.js.map +1 -1
- package/esm/models/deploymentsetuppolicy.d.ts +22 -0
- package/esm/models/deploymentsetuppolicy.d.ts.map +1 -1
- package/esm/models/deploymentsetuppolicy.js +15 -0
- package/esm/models/deploymentsetuppolicy.js.map +1 -1
- package/esm/models/ensuredeploymentgroupbynamerequest.d.ts +25 -0
- package/esm/models/ensuredeploymentgroupbynamerequest.d.ts.map +1 -0
- package/esm/models/ensuredeploymentgroupbynamerequest.js +14 -0
- package/esm/models/ensuredeploymentgroupbynamerequest.js.map +1 -0
- package/esm/models/errors/apierror.d.ts +16 -0
- package/esm/models/errors/apierror.d.ts.map +1 -1
- package/esm/models/errors/apierror.js +6 -0
- package/esm/models/errors/apierror.js.map +1 -1
- package/esm/models/index.d.ts +4 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +4 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/kubernetesclustersource.d.ts +12 -0
- package/esm/models/kubernetesclustersource.d.ts.map +1 -0
- package/esm/models/kubernetesclustersource.js +13 -0
- package/esm/models/kubernetesclustersource.js.map +1 -0
- package/esm/models/managerdeployment.d.ts +1 -0
- package/esm/models/managerdeployment.d.ts.map +1 -1
- package/esm/models/managerdeployment.js +1 -0
- package/esm/models/managerdeployment.js.map +1 -1
- package/esm/models/managerretryresponse.d.ts +4 -0
- package/esm/models/managerretryresponse.d.ts.map +1 -1
- package/esm/models/managerretryresponse.js +1 -0
- package/esm/models/managerretryresponse.js.map +1 -1
- package/esm/models/newdeploymentrequest.d.ts +19 -1
- package/esm/models/newdeploymentrequest.d.ts.map +1 -1
- package/esm/models/newdeploymentrequest.js +10 -0
- package/esm/models/newdeploymentrequest.js.map +1 -1
- package/esm/models/operations/cancelmachinesmachinedrain.d.ts +5 -0
- package/esm/models/operations/cancelmachinesmachinedrain.d.ts.map +1 -1
- package/esm/models/operations/cancelmachinesmachinedrain.js +1 -0
- package/esm/models/operations/cancelmachinesmachinedrain.js.map +1 -1
- package/esm/models/operations/createdeployment.d.ts +0 -19
- package/esm/models/operations/createdeployment.d.ts.map +1 -1
- package/esm/models/operations/createdeployment.js +0 -17
- package/esm/models/operations/createdeployment.js.map +1 -1
- package/esm/models/operations/createmachinesjointoken.d.ts +20 -0
- package/esm/models/operations/createmachinesjointoken.d.ts.map +1 -0
- package/esm/models/operations/createmachinesjointoken.js +13 -0
- package/esm/models/operations/createmachinesjointoken.js.map +1 -0
- package/esm/models/operations/drainmachinesmachine.d.ts +5 -0
- package/esm/models/operations/drainmachinesmachine.d.ts.map +1 -1
- package/esm/models/operations/drainmachinesmachine.js +1 -0
- package/esm/models/operations/drainmachinesmachine.js.map +1 -1
- package/esm/models/operations/ensuredeploymentgroupbyname.d.ts +18 -0
- package/esm/models/operations/ensuredeploymentgroupbyname.d.ts.map +1 -0
- package/esm/models/operations/ensuredeploymentgroupbyname.js +20 -0
- package/esm/models/operations/ensuredeploymentgroupbyname.js.map +1 -0
- package/esm/models/operations/getdeploymentinfo.d.ts +24 -0
- package/esm/models/operations/getdeploymentinfo.d.ts.map +1 -1
- package/esm/models/operations/getdeploymentinfo.js +15 -0
- package/esm/models/operations/getdeploymentinfo.js.map +1 -1
- package/esm/models/operations/getdeploymentstats.d.ts +1 -0
- package/esm/models/operations/getdeploymentstats.d.ts.map +1 -1
- package/esm/models/operations/getdeploymentstats.js +1 -0
- package/esm/models/operations/getdeploymentstats.js.map +1 -1
- package/esm/models/operations/getprojectdeploymentlinksetup.d.ts +20 -0
- package/esm/models/operations/getprojectdeploymentlinksetup.d.ts.map +1 -0
- package/esm/models/operations/getprojectdeploymentlinksetup.js +13 -0
- package/esm/models/operations/getprojectdeploymentlinksetup.js.map +1 -0
- package/esm/models/operations/index.d.ts +3 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +3 -0
- package/esm/models/operations/index.js.map +1 -1
- package/esm/models/operations/listdeployments.d.ts +1 -0
- package/esm/models/operations/listdeployments.d.ts.map +1 -1
- package/esm/models/operations/listdeployments.js +1 -0
- package/esm/models/operations/listdeployments.js.map +1 -1
- package/esm/models/operations/listmachinesinventory.d.ts +5 -0
- package/esm/models/operations/listmachinesinventory.d.ts.map +1 -1
- package/esm/models/operations/listmachinesinventory.js +1 -0
- package/esm/models/operations/listmachinesinventory.js.map +1 -1
- package/esm/models/operations/listmachinesjointokens.d.ts +5 -0
- package/esm/models/operations/listmachinesjointokens.d.ts.map +1 -1
- package/esm/models/operations/listmachinesjointokens.js +1 -0
- package/esm/models/operations/listmachinesjointokens.js.map +1 -1
- package/esm/models/operations/removemachinesmachine.d.ts +5 -0
- package/esm/models/operations/removemachinesmachine.d.ts.map +1 -1
- package/esm/models/operations/removemachinesmachine.js +1 -0
- package/esm/models/operations/removemachinesmachine.js.map +1 -1
- package/esm/models/operations/revokemachinesjointoken.d.ts +5 -0
- package/esm/models/operations/revokemachinesjointoken.d.ts.map +1 -1
- package/esm/models/operations/revokemachinesjointoken.js +1 -0
- package/esm/models/operations/revokemachinesjointoken.js.map +1 -1
- package/esm/models/operations/rotatemachinesjointoken.d.ts +5 -0
- package/esm/models/operations/rotatemachinesjointoken.d.ts.map +1 -1
- package/esm/models/operations/rotatemachinesjointoken.js +1 -0
- package/esm/models/operations/rotatemachinesjointoken.js.map +1 -1
- package/esm/models/persistimporteddeploymentrequest.d.ts +2 -1
- package/esm/models/persistimporteddeploymentrequest.d.ts.map +1 -1
- package/esm/models/persistimporteddeploymentrequest.js +1 -0
- package/esm/models/persistimporteddeploymentrequest.js.map +1 -1
- package/esm/models/rotatemachinesjointokenresponse.d.ts +8 -0
- package/esm/models/rotatemachinesjointokenresponse.d.ts.map +1 -1
- package/esm/models/rotatemachinesjointokenresponse.js +2 -0
- package/esm/models/rotatemachinesjointokenresponse.js.map +1 -1
- package/esm/models/syncacquirerequest.d.ts +1 -0
- package/esm/models/syncacquirerequest.d.ts.map +1 -1
- package/esm/models/syncacquirerequest.js +1 -0
- package/esm/models/syncacquirerequest.js.map +1 -1
- package/esm/models/syncacquireresponse.d.ts +1 -0
- package/esm/models/syncacquireresponse.d.ts.map +1 -1
- package/esm/models/syncacquireresponse.js +1 -0
- package/esm/models/syncacquireresponse.js.map +1 -1
- package/esm/models/synclistrequest.d.ts +1 -0
- package/esm/models/synclistrequest.d.ts.map +1 -1
- package/esm/models/synclistrequest.js +1 -0
- package/esm/models/synclistrequest.js.map +1 -1
- package/esm/models/synclistresponse.d.ts +1 -0
- package/esm/models/synclistresponse.d.ts.map +1 -1
- package/esm/models/synclistresponse.js +1 -0
- package/esm/models/synclistresponse.js.map +1 -1
- package/esm/models/syncreconcilerequest.d.ts +1 -0
- package/esm/models/syncreconcilerequest.d.ts.map +1 -1
- package/esm/models/syncreconcilerequest.js +1 -0
- package/esm/models/syncreconcilerequest.js.map +1 -1
- package/esm/models/syncreconcileresponse.d.ts +1 -0
- package/esm/models/syncreconcileresponse.d.ts.map +1 -1
- package/esm/models/syncreconcileresponse.js +1 -0
- package/esm/models/syncreconcileresponse.js.map +1 -1
- package/esm/sdk/deploymentgroups.d.ts +4 -0
- package/esm/sdk/deploymentgroups.d.ts.map +1 -1
- package/esm/sdk/deploymentgroups.js +7 -0
- package/esm/sdk/deploymentgroups.js.map +1 -1
- package/esm/sdk/deployments.d.ts +1 -1
- package/esm/sdk/deployments.d.ts.map +1 -1
- package/esm/sdk/machines.d.ts +1 -0
- package/esm/sdk/machines.d.ts.map +1 -1
- package/esm/sdk/machines.js +4 -0
- package/esm/sdk/machines.js.map +1 -1
- package/esm/sdk/projects.d.ts +4 -0
- package/esm/sdk/projects.d.ts.map +1 -1
- package/esm/sdk/projects.js +7 -0
- package/esm/sdk/projects.js.map +1 -1
- package/esm/sdk/resources.d.ts +3 -0
- package/esm/sdk/resources.d.ts.map +1 -1
- package/esm/sdk/resources.js +3 -0
- package/esm/sdk/resources.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/deploymentGetInfo.ts +1 -0
- package/src/funcs/deploymentGroupsEnsureDeploymentGroupByName.ts +177 -0
- package/src/funcs/deploymentsCreate.ts +5 -5
- package/src/funcs/machinesCancelMachineDrain.ts +6 -1
- package/src/funcs/machinesCreateJoinToken.ts +179 -0
- package/src/funcs/machinesDrainMachine.ts +6 -1
- package/src/funcs/machinesListInventory.ts +6 -1
- package/src/funcs/machinesListJoinTokens.ts +6 -1
- package/src/funcs/machinesRemoveMachine.ts +6 -1
- package/src/funcs/machinesRevokeJoinToken.ts +6 -1
- package/src/funcs/machinesRotateJoinToken.ts +6 -1
- package/src/funcs/projectsGetDeploymentLinkSetup.ts +184 -0
- package/src/lib/config.ts +2 -2
- package/src/models/apierror.ts +10 -0
- package/src/models/createdeploymentresponse.ts +25 -0
- package/src/models/createmachinesjointokenresponse.ts +50 -0
- package/src/models/createmanagerresponse.ts +5 -0
- package/src/models/deployment.ts +1 -0
- package/src/models/deploymentconnectioninfo.ts +1 -0
- package/src/models/deploymentdetailresponse.ts +1 -0
- package/src/models/deploymentinfo.ts +112 -0
- package/src/models/deploymentlinksetupresponse.ts +90 -0
- package/src/models/deploymentlistitemresponse.ts +1 -0
- package/src/models/deploymentsetupconfig.ts +6 -0
- package/src/models/deploymentsetuppolicy.ts +48 -0
- package/src/models/ensuredeploymentgroupbynamerequest.ts +47 -0
- package/src/models/errors/apierror.ts +20 -0
- package/src/models/index.ts +4 -0
- package/src/models/kubernetesclustersource.ts +23 -0
- package/src/models/managerdeployment.ts +1 -0
- package/src/models/managerretryresponse.ts +5 -0
- package/src/models/newdeploymentrequest.ts +24 -1
- package/src/models/operations/cancelmachinesmachinedrain.ts +6 -0
- package/src/models/operations/createdeployment.ts +0 -56
- package/src/models/operations/createmachinesjointoken.ts +41 -0
- package/src/models/operations/drainmachinesmachine.ts +6 -0
- package/src/models/operations/ensuredeploymentgroupbyname.ts +49 -0
- package/src/models/operations/getdeploymentinfo.ts +31 -0
- package/src/models/operations/getdeploymentstats.ts +1 -0
- package/src/models/operations/getprojectdeploymentlinksetup.ts +41 -0
- package/src/models/operations/index.ts +3 -0
- package/src/models/operations/listdeployments.ts +1 -0
- package/src/models/operations/listmachinesinventory.ts +6 -0
- package/src/models/operations/listmachinesjointokens.ts +6 -0
- package/src/models/operations/removemachinesmachine.ts +6 -0
- package/src/models/operations/revokemachinesjointoken.ts +6 -0
- package/src/models/operations/rotatemachinesjointoken.ts +6 -0
- package/src/models/persistimporteddeploymentrequest.ts +2 -1
- package/src/models/rotatemachinesjointokenresponse.ts +10 -0
- package/src/models/syncacquirerequest.ts +1 -0
- package/src/models/syncacquireresponse.ts +1 -0
- package/src/models/synclistrequest.ts +1 -0
- package/src/models/synclistresponse.ts +1 -0
- package/src/models/syncreconcilerequest.ts +1 -0
- package/src/models/syncreconcileresponse.ts +1 -0
- package/src/sdk/deploymentgroups.ts +15 -0
- package/src/sdk/deployments.ts +1 -1
- package/src/sdk/machines.ts +12 -0
- package/src/sdk/projects.ts +15 -0
- package/src/sdk/resources.ts +3 -0
package/src/models/deployment.ts
CHANGED
|
@@ -35,6 +35,7 @@ export const DeploymentStatus = {
|
|
|
35
35
|
InitialSetup: "initial-setup",
|
|
36
36
|
InitialSetupFailed: "initial-setup-failed",
|
|
37
37
|
Provisioning: "provisioning",
|
|
38
|
+
WaitingForMachines: "waiting-for-machines",
|
|
38
39
|
ProvisioningFailed: "provisioning-failed",
|
|
39
40
|
Running: "running",
|
|
40
41
|
RefreshFailed: "refresh-failed",
|
|
@@ -51,6 +51,7 @@ export const DeploymentConnectionInfoStatus = {
|
|
|
51
51
|
InitialSetup: "initial-setup",
|
|
52
52
|
InitialSetupFailed: "initial-setup-failed",
|
|
53
53
|
Provisioning: "provisioning",
|
|
54
|
+
WaitingForMachines: "waiting-for-machines",
|
|
54
55
|
ProvisioningFailed: "provisioning-failed",
|
|
55
56
|
Running: "running",
|
|
56
57
|
RefreshFailed: "refresh-failed",
|
|
@@ -47,6 +47,7 @@ export const DeploymentDetailResponseStatus = {
|
|
|
47
47
|
InitialSetup: "initial-setup",
|
|
48
48
|
InitialSetupFailed: "initial-setup-failed",
|
|
49
49
|
Provisioning: "provisioning",
|
|
50
|
+
WaitingForMachines: "waiting-for-machines",
|
|
50
51
|
ProvisioningFailed: "provisioning-failed",
|
|
51
52
|
Running: "running",
|
|
52
53
|
RefreshFailed: "refresh-failed",
|
|
@@ -73,6 +73,7 @@ export type DeploymentInfoDeploymentGroup = {
|
|
|
73
73
|
*/
|
|
74
74
|
id: string;
|
|
75
75
|
name: string;
|
|
76
|
+
pinnedSubdomain: string | null;
|
|
76
77
|
};
|
|
77
78
|
|
|
78
79
|
export type DeploymentInfoWorkspace = {
|
|
@@ -128,6 +129,10 @@ export type StackSummary = {
|
|
|
128
129
|
* Platforms supported by the active release
|
|
129
130
|
*/
|
|
130
131
|
platforms: Array<StackSummaryPlatform>;
|
|
132
|
+
/**
|
|
133
|
+
* Whether the stack contains resources that require cloud VPC networking
|
|
134
|
+
*/
|
|
135
|
+
requiresNetwork: boolean;
|
|
131
136
|
resourceCounts: ResourceCounts;
|
|
132
137
|
/**
|
|
133
138
|
* Public endpoints declared by the active release stack
|
|
@@ -135,10 +140,22 @@ export type StackSummary = {
|
|
|
135
140
|
publicEndpoints: Array<PublicEndpoint>;
|
|
136
141
|
};
|
|
137
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Parent domain for generated deployment URLs. Chosen public subdomains are only allowed when isSystem is false.
|
|
145
|
+
*/
|
|
146
|
+
export type GeneratedDomain = {
|
|
147
|
+
domain: string;
|
|
148
|
+
isSystem: boolean;
|
|
149
|
+
};
|
|
150
|
+
|
|
138
151
|
export type DeploymentInfoProject = {
|
|
139
152
|
name: string;
|
|
140
153
|
portal: Portal;
|
|
141
154
|
stackSummary?: StackSummary | null | undefined;
|
|
155
|
+
/**
|
|
156
|
+
* Parent domain for generated deployment URLs. Chosen public subdomains are only allowed when isSystem is false.
|
|
157
|
+
*/
|
|
158
|
+
generatedDomain?: GeneratedDomain | null | undefined;
|
|
142
159
|
};
|
|
143
160
|
|
|
144
161
|
/**
|
|
@@ -665,6 +682,33 @@ export type DeploymentInfoInstallContext = {
|
|
|
665
682
|
targets: { [k: string]: InstallContextTargets };
|
|
666
683
|
};
|
|
667
684
|
|
|
685
|
+
export const ReadinessStatus = {
|
|
686
|
+
Ready: "ready",
|
|
687
|
+
NotReady: "notReady",
|
|
688
|
+
Unknown: "unknown",
|
|
689
|
+
} as const;
|
|
690
|
+
export type ReadinessStatus = ClosedEnum<typeof ReadinessStatus>;
|
|
691
|
+
|
|
692
|
+
export const CheckStatus = {
|
|
693
|
+
Passed: "passed",
|
|
694
|
+
Failed: "failed",
|
|
695
|
+
Warning: "warning",
|
|
696
|
+
Unknown: "unknown",
|
|
697
|
+
} as const;
|
|
698
|
+
export type CheckStatus = ClosedEnum<typeof CheckStatus>;
|
|
699
|
+
|
|
700
|
+
export type Check = {
|
|
701
|
+
code: string;
|
|
702
|
+
status: CheckStatus;
|
|
703
|
+
message: string;
|
|
704
|
+
checkedAt: string;
|
|
705
|
+
};
|
|
706
|
+
|
|
707
|
+
export type Readiness = {
|
|
708
|
+
status: ReadinessStatus;
|
|
709
|
+
checks: Array<Check>;
|
|
710
|
+
};
|
|
711
|
+
|
|
668
712
|
export type DeploymentInfo = {
|
|
669
713
|
/**
|
|
670
714
|
* Type of token used to authenticate this request
|
|
@@ -684,6 +728,7 @@ export type DeploymentInfo = {
|
|
|
684
728
|
installContext: DeploymentInfoInstallContext;
|
|
685
729
|
supportedRegions: SupportedCloudRegions;
|
|
686
730
|
setupConfig?: DeploymentInfoSetupConfig | undefined;
|
|
731
|
+
readiness?: Readiness | undefined;
|
|
687
732
|
};
|
|
688
733
|
|
|
689
734
|
/** @internal */
|
|
@@ -722,6 +767,7 @@ export const DeploymentInfoDeploymentGroup$inboundSchema: z.ZodType<
|
|
|
722
767
|
> = z.object({
|
|
723
768
|
id: z.string(),
|
|
724
769
|
name: z.string(),
|
|
770
|
+
pinnedSubdomain: z.nullable(z.string()),
|
|
725
771
|
});
|
|
726
772
|
|
|
727
773
|
export function deploymentInfoDeploymentGroupFromJSON(
|
|
@@ -817,6 +863,7 @@ export function publicEndpointFromJSON(
|
|
|
817
863
|
export const StackSummary$inboundSchema: z.ZodType<StackSummary, unknown> = z
|
|
818
864
|
.object({
|
|
819
865
|
platforms: z.array(StackSummaryPlatform$inboundSchema),
|
|
866
|
+
requiresNetwork: z.boolean(),
|
|
820
867
|
resourceCounts: z.lazy(() => ResourceCounts$inboundSchema),
|
|
821
868
|
publicEndpoints: z.array(z.lazy(() => PublicEndpoint$inboundSchema)),
|
|
822
869
|
});
|
|
@@ -831,6 +878,25 @@ export function stackSummaryFromJSON(
|
|
|
831
878
|
);
|
|
832
879
|
}
|
|
833
880
|
|
|
881
|
+
/** @internal */
|
|
882
|
+
export const GeneratedDomain$inboundSchema: z.ZodType<
|
|
883
|
+
GeneratedDomain,
|
|
884
|
+
unknown
|
|
885
|
+
> = z.object({
|
|
886
|
+
domain: z.string(),
|
|
887
|
+
isSystem: z.boolean(),
|
|
888
|
+
});
|
|
889
|
+
|
|
890
|
+
export function generatedDomainFromJSON(
|
|
891
|
+
jsonString: string,
|
|
892
|
+
): SafeParseResult<GeneratedDomain, SDKValidationError> {
|
|
893
|
+
return safeParse(
|
|
894
|
+
jsonString,
|
|
895
|
+
(x) => GeneratedDomain$inboundSchema.parse(JSON.parse(x)),
|
|
896
|
+
`Failed to parse 'GeneratedDomain' from JSON`,
|
|
897
|
+
);
|
|
898
|
+
}
|
|
899
|
+
|
|
834
900
|
/** @internal */
|
|
835
901
|
export const DeploymentInfoProject$inboundSchema: z.ZodType<
|
|
836
902
|
DeploymentInfoProject,
|
|
@@ -839,6 +905,8 @@ export const DeploymentInfoProject$inboundSchema: z.ZodType<
|
|
|
839
905
|
name: z.string(),
|
|
840
906
|
portal: z.lazy(() => Portal$inboundSchema),
|
|
841
907
|
stackSummary: z.nullable(z.lazy(() => StackSummary$inboundSchema)).optional(),
|
|
908
|
+
generatedDomain: z.nullable(z.lazy(() => GeneratedDomain$inboundSchema))
|
|
909
|
+
.optional(),
|
|
842
910
|
});
|
|
843
911
|
|
|
844
912
|
export function deploymentInfoProjectFromJSON(
|
|
@@ -1424,6 +1492,49 @@ export function deploymentInfoInstallContextFromJSON(
|
|
|
1424
1492
|
);
|
|
1425
1493
|
}
|
|
1426
1494
|
|
|
1495
|
+
/** @internal */
|
|
1496
|
+
export const ReadinessStatus$inboundSchema: z.ZodEnum<typeof ReadinessStatus> =
|
|
1497
|
+
z.enum(ReadinessStatus);
|
|
1498
|
+
|
|
1499
|
+
/** @internal */
|
|
1500
|
+
export const CheckStatus$inboundSchema: z.ZodEnum<typeof CheckStatus> = z.enum(
|
|
1501
|
+
CheckStatus,
|
|
1502
|
+
);
|
|
1503
|
+
|
|
1504
|
+
/** @internal */
|
|
1505
|
+
export const Check$inboundSchema: z.ZodType<Check, unknown> = z.object({
|
|
1506
|
+
code: z.string(),
|
|
1507
|
+
status: CheckStatus$inboundSchema,
|
|
1508
|
+
message: z.string(),
|
|
1509
|
+
checkedAt: z.string(),
|
|
1510
|
+
});
|
|
1511
|
+
|
|
1512
|
+
export function checkFromJSON(
|
|
1513
|
+
jsonString: string,
|
|
1514
|
+
): SafeParseResult<Check, SDKValidationError> {
|
|
1515
|
+
return safeParse(
|
|
1516
|
+
jsonString,
|
|
1517
|
+
(x) => Check$inboundSchema.parse(JSON.parse(x)),
|
|
1518
|
+
`Failed to parse 'Check' from JSON`,
|
|
1519
|
+
);
|
|
1520
|
+
}
|
|
1521
|
+
|
|
1522
|
+
/** @internal */
|
|
1523
|
+
export const Readiness$inboundSchema: z.ZodType<Readiness, unknown> = z.object({
|
|
1524
|
+
status: ReadinessStatus$inboundSchema,
|
|
1525
|
+
checks: z.array(z.lazy(() => Check$inboundSchema)),
|
|
1526
|
+
});
|
|
1527
|
+
|
|
1528
|
+
export function readinessFromJSON(
|
|
1529
|
+
jsonString: string,
|
|
1530
|
+
): SafeParseResult<Readiness, SDKValidationError> {
|
|
1531
|
+
return safeParse(
|
|
1532
|
+
jsonString,
|
|
1533
|
+
(x) => Readiness$inboundSchema.parse(JSON.parse(x)),
|
|
1534
|
+
`Failed to parse 'Readiness' from JSON`,
|
|
1535
|
+
);
|
|
1536
|
+
}
|
|
1537
|
+
|
|
1427
1538
|
/** @internal */
|
|
1428
1539
|
export const DeploymentInfo$inboundSchema: z.ZodType<DeploymentInfo, unknown> =
|
|
1429
1540
|
z.object({
|
|
@@ -1437,6 +1548,7 @@ export const DeploymentInfo$inboundSchema: z.ZodType<DeploymentInfo, unknown> =
|
|
|
1437
1548
|
installContext: z.lazy(() => DeploymentInfoInstallContext$inboundSchema),
|
|
1438
1549
|
supportedRegions: SupportedCloudRegions$inboundSchema,
|
|
1439
1550
|
setupConfig: DeploymentInfoSetupConfig$inboundSchema.optional(),
|
|
1551
|
+
readiness: z.lazy(() => Readiness$inboundSchema).optional(),
|
|
1440
1552
|
});
|
|
1441
1553
|
|
|
1442
1554
|
export function deploymentInfoFromJSON(
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../types/fp.js";
|
|
9
|
+
import {
|
|
10
|
+
DeploymentSetupMethod,
|
|
11
|
+
DeploymentSetupMethod$inboundSchema,
|
|
12
|
+
} from "./deploymentsetupmethod.js";
|
|
13
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
14
|
+
import {
|
|
15
|
+
StackByPlatform,
|
|
16
|
+
StackByPlatform$inboundSchema,
|
|
17
|
+
} from "./stackbyplatform.js";
|
|
18
|
+
|
|
19
|
+
export type ActiveRelease = {
|
|
20
|
+
/**
|
|
21
|
+
* Unique identifier for the release.
|
|
22
|
+
*/
|
|
23
|
+
id: string;
|
|
24
|
+
version: string | null;
|
|
25
|
+
stack: StackByPlatform | null;
|
|
26
|
+
};
|
|
27
|
+
|
|
28
|
+
/**
|
|
29
|
+
* Types of packages that can be built
|
|
30
|
+
*/
|
|
31
|
+
export const VisiblePackageType = {
|
|
32
|
+
Cli: "cli",
|
|
33
|
+
Cloudformation: "cloudformation",
|
|
34
|
+
Helm: "helm",
|
|
35
|
+
OperatorImage: "operator-image",
|
|
36
|
+
Terraform: "terraform",
|
|
37
|
+
} as const;
|
|
38
|
+
/**
|
|
39
|
+
* Types of packages that can be built
|
|
40
|
+
*/
|
|
41
|
+
export type VisiblePackageType = ClosedEnum<typeof VisiblePackageType>;
|
|
42
|
+
|
|
43
|
+
export type DeploymentLinkSetupResponse = {
|
|
44
|
+
activeRelease: ActiveRelease;
|
|
45
|
+
visiblePackageTypes: Array<VisiblePackageType>;
|
|
46
|
+
visibleSetupMethods: Array<DeploymentSetupMethod>;
|
|
47
|
+
};
|
|
48
|
+
|
|
49
|
+
/** @internal */
|
|
50
|
+
export const ActiveRelease$inboundSchema: z.ZodType<ActiveRelease, unknown> = z
|
|
51
|
+
.object({
|
|
52
|
+
id: z.string(),
|
|
53
|
+
version: z.nullable(z.string()),
|
|
54
|
+
stack: z.nullable(StackByPlatform$inboundSchema),
|
|
55
|
+
});
|
|
56
|
+
|
|
57
|
+
export function activeReleaseFromJSON(
|
|
58
|
+
jsonString: string,
|
|
59
|
+
): SafeParseResult<ActiveRelease, SDKValidationError> {
|
|
60
|
+
return safeParse(
|
|
61
|
+
jsonString,
|
|
62
|
+
(x) => ActiveRelease$inboundSchema.parse(JSON.parse(x)),
|
|
63
|
+
`Failed to parse 'ActiveRelease' from JSON`,
|
|
64
|
+
);
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
/** @internal */
|
|
68
|
+
export const VisiblePackageType$inboundSchema: z.ZodEnum<
|
|
69
|
+
typeof VisiblePackageType
|
|
70
|
+
> = z.enum(VisiblePackageType);
|
|
71
|
+
|
|
72
|
+
/** @internal */
|
|
73
|
+
export const DeploymentLinkSetupResponse$inboundSchema: z.ZodType<
|
|
74
|
+
DeploymentLinkSetupResponse,
|
|
75
|
+
unknown
|
|
76
|
+
> = z.object({
|
|
77
|
+
activeRelease: z.lazy(() => ActiveRelease$inboundSchema),
|
|
78
|
+
visiblePackageTypes: z.array(VisiblePackageType$inboundSchema),
|
|
79
|
+
visibleSetupMethods: z.array(DeploymentSetupMethod$inboundSchema),
|
|
80
|
+
});
|
|
81
|
+
|
|
82
|
+
export function deploymentLinkSetupResponseFromJSON(
|
|
83
|
+
jsonString: string,
|
|
84
|
+
): SafeParseResult<DeploymentLinkSetupResponse, SDKValidationError> {
|
|
85
|
+
return safeParse(
|
|
86
|
+
jsonString,
|
|
87
|
+
(x) => DeploymentLinkSetupResponse$inboundSchema.parse(JSON.parse(x)),
|
|
88
|
+
`Failed to parse 'DeploymentLinkSetupResponse' from JSON`,
|
|
89
|
+
);
|
|
90
|
+
}
|
|
@@ -39,6 +39,7 @@ export const DeploymentListItemResponseStatus = {
|
|
|
39
39
|
InitialSetup: "initial-setup",
|
|
40
40
|
InitialSetupFailed: "initial-setup-failed",
|
|
41
41
|
Provisioning: "provisioning",
|
|
42
|
+
WaitingForMachines: "waiting-for-machines",
|
|
42
43
|
ProvisioningFailed: "provisioning-failed",
|
|
43
44
|
Running: "running",
|
|
44
45
|
RefreshFailed: "refresh-failed",
|
|
@@ -24,6 +24,10 @@ export type DeploymentSetupConfig = {
|
|
|
24
24
|
policy: DeploymentSetupPolicy;
|
|
25
25
|
environmentVariables: Array<EnvironmentVariableConfig>;
|
|
26
26
|
inputValues?: { [k: string]: EncryptedStackInputValue } | undefined;
|
|
27
|
+
/**
|
|
28
|
+
* Operator-pinned deployment subdomain for this setup token.
|
|
29
|
+
*/
|
|
30
|
+
publicSubdomain?: string | undefined;
|
|
27
31
|
};
|
|
28
32
|
|
|
29
33
|
/** @internal */
|
|
@@ -32,6 +36,7 @@ export type DeploymentSetupConfig$Outbound = {
|
|
|
32
36
|
policy: DeploymentSetupPolicy$Outbound;
|
|
33
37
|
environmentVariables: Array<EnvironmentVariableConfig$Outbound>;
|
|
34
38
|
inputValues?: { [k: string]: EncryptedStackInputValue$Outbound } | undefined;
|
|
39
|
+
publicSubdomain?: string | undefined;
|
|
35
40
|
};
|
|
36
41
|
|
|
37
42
|
/** @internal */
|
|
@@ -44,6 +49,7 @@ export const DeploymentSetupConfig$outboundSchema: z.ZodType<
|
|
|
44
49
|
environmentVariables: z.array(EnvironmentVariableConfig$outboundSchema),
|
|
45
50
|
inputValues: z.record(z.string(), EncryptedStackInputValue$outboundSchema)
|
|
46
51
|
.optional(),
|
|
52
|
+
publicSubdomain: z.string().optional(),
|
|
47
53
|
});
|
|
48
54
|
|
|
49
55
|
export function deploymentSetupConfigToJSON(
|
|
@@ -18,6 +18,11 @@ import {
|
|
|
18
18
|
DeploymentSetupStackSettingsPolicy$outboundSchema,
|
|
19
19
|
} from "./deploymentsetupstacksettingspolicy.js";
|
|
20
20
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
21
|
+
import {
|
|
22
|
+
KubernetesClusterSource,
|
|
23
|
+
KubernetesClusterSource$inboundSchema,
|
|
24
|
+
KubernetesClusterSource$outboundSchema,
|
|
25
|
+
} from "./kubernetesclustersource.js";
|
|
21
26
|
|
|
22
27
|
/**
|
|
23
28
|
* Represents the target cloud platform.
|
|
@@ -36,8 +41,28 @@ export const AllowedPlatform = {
|
|
|
36
41
|
*/
|
|
37
42
|
export type AllowedPlatform = ClosedEnum<typeof AllowedPlatform>;
|
|
38
43
|
|
|
44
|
+
export const AllowedKubernetesBasePlatform = {
|
|
45
|
+
Aws: "aws",
|
|
46
|
+
Gcp: "gcp",
|
|
47
|
+
Azure: "azure",
|
|
48
|
+
OnPrem: "on-prem",
|
|
49
|
+
} as const;
|
|
50
|
+
export type AllowedKubernetesBasePlatform = ClosedEnum<
|
|
51
|
+
typeof AllowedKubernetesBasePlatform
|
|
52
|
+
>;
|
|
53
|
+
|
|
39
54
|
export type DeploymentSetupPolicy = {
|
|
40
55
|
allowedPlatforms: Array<AllowedPlatform>;
|
|
56
|
+
/**
|
|
57
|
+
* Kubernetes base environments the recipient may target.
|
|
58
|
+
*/
|
|
59
|
+
allowedKubernetesBasePlatforms?:
|
|
60
|
+
| Array<AllowedKubernetesBasePlatform>
|
|
61
|
+
| undefined;
|
|
62
|
+
/**
|
|
63
|
+
* Whether recipients may create a cluster, use an existing cluster, or both.
|
|
64
|
+
*/
|
|
65
|
+
allowedKubernetesClusterSources?: Array<KubernetesClusterSource> | undefined;
|
|
41
66
|
allowedSetupMethods: Array<DeploymentSetupMethod>;
|
|
42
67
|
allowReleasePinning?: boolean | undefined;
|
|
43
68
|
stackSettings?: DeploymentSetupStackSettingsPolicy | undefined;
|
|
@@ -50,12 +75,27 @@ export const AllowedPlatform$inboundSchema: z.ZodEnum<typeof AllowedPlatform> =
|
|
|
50
75
|
export const AllowedPlatform$outboundSchema: z.ZodEnum<typeof AllowedPlatform> =
|
|
51
76
|
AllowedPlatform$inboundSchema;
|
|
52
77
|
|
|
78
|
+
/** @internal */
|
|
79
|
+
export const AllowedKubernetesBasePlatform$inboundSchema: z.ZodEnum<
|
|
80
|
+
typeof AllowedKubernetesBasePlatform
|
|
81
|
+
> = z.enum(AllowedKubernetesBasePlatform);
|
|
82
|
+
/** @internal */
|
|
83
|
+
export const AllowedKubernetesBasePlatform$outboundSchema: z.ZodEnum<
|
|
84
|
+
typeof AllowedKubernetesBasePlatform
|
|
85
|
+
> = AllowedKubernetesBasePlatform$inboundSchema;
|
|
86
|
+
|
|
53
87
|
/** @internal */
|
|
54
88
|
export const DeploymentSetupPolicy$inboundSchema: z.ZodType<
|
|
55
89
|
DeploymentSetupPolicy,
|
|
56
90
|
unknown
|
|
57
91
|
> = z.object({
|
|
58
92
|
allowedPlatforms: z.array(AllowedPlatform$inboundSchema),
|
|
93
|
+
allowedKubernetesBasePlatforms: z.array(
|
|
94
|
+
AllowedKubernetesBasePlatform$inboundSchema,
|
|
95
|
+
).optional(),
|
|
96
|
+
allowedKubernetesClusterSources: z.array(
|
|
97
|
+
KubernetesClusterSource$inboundSchema,
|
|
98
|
+
).optional(),
|
|
59
99
|
allowedSetupMethods: z.array(DeploymentSetupMethod$inboundSchema),
|
|
60
100
|
allowReleasePinning: z.boolean().optional(),
|
|
61
101
|
stackSettings: DeploymentSetupStackSettingsPolicy$inboundSchema.optional(),
|
|
@@ -63,6 +103,8 @@ export const DeploymentSetupPolicy$inboundSchema: z.ZodType<
|
|
|
63
103
|
/** @internal */
|
|
64
104
|
export type DeploymentSetupPolicy$Outbound = {
|
|
65
105
|
allowedPlatforms: Array<string>;
|
|
106
|
+
allowedKubernetesBasePlatforms?: Array<string> | undefined;
|
|
107
|
+
allowedKubernetesClusterSources?: Array<string> | undefined;
|
|
66
108
|
allowedSetupMethods: Array<string>;
|
|
67
109
|
allowReleasePinning?: boolean | undefined;
|
|
68
110
|
stackSettings?: DeploymentSetupStackSettingsPolicy$Outbound | undefined;
|
|
@@ -74,6 +116,12 @@ export const DeploymentSetupPolicy$outboundSchema: z.ZodType<
|
|
|
74
116
|
DeploymentSetupPolicy
|
|
75
117
|
> = z.object({
|
|
76
118
|
allowedPlatforms: z.array(AllowedPlatform$outboundSchema),
|
|
119
|
+
allowedKubernetesBasePlatforms: z.array(
|
|
120
|
+
AllowedKubernetesBasePlatform$outboundSchema,
|
|
121
|
+
).optional(),
|
|
122
|
+
allowedKubernetesClusterSources: z.array(
|
|
123
|
+
KubernetesClusterSource$outboundSchema,
|
|
124
|
+
).optional(),
|
|
77
125
|
allowedSetupMethods: z.array(DeploymentSetupMethod$outboundSchema),
|
|
78
126
|
allowReleasePinning: z.boolean().optional(),
|
|
79
127
|
stackSettings: DeploymentSetupStackSettingsPolicy$outboundSchema.optional(),
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
|
|
7
|
+
export type EnsureDeploymentGroupByNameRequest = {
|
|
8
|
+
/**
|
|
9
|
+
* Deployment group name.
|
|
10
|
+
*/
|
|
11
|
+
name: string;
|
|
12
|
+
/**
|
|
13
|
+
* Project ID or name this deployment group belongs to
|
|
14
|
+
*/
|
|
15
|
+
project: string;
|
|
16
|
+
/**
|
|
17
|
+
* Maximum number of deployments for newly created groups
|
|
18
|
+
*/
|
|
19
|
+
maxDeployments?: number | undefined;
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
/** @internal */
|
|
23
|
+
export type EnsureDeploymentGroupByNameRequest$Outbound = {
|
|
24
|
+
name: string;
|
|
25
|
+
project: string;
|
|
26
|
+
maxDeployments: number;
|
|
27
|
+
};
|
|
28
|
+
|
|
29
|
+
/** @internal */
|
|
30
|
+
export const EnsureDeploymentGroupByNameRequest$outboundSchema: z.ZodType<
|
|
31
|
+
EnsureDeploymentGroupByNameRequest$Outbound,
|
|
32
|
+
EnsureDeploymentGroupByNameRequest
|
|
33
|
+
> = z.object({
|
|
34
|
+
name: z.string(),
|
|
35
|
+
project: z.string(),
|
|
36
|
+
maxDeployments: z.int().default(100),
|
|
37
|
+
});
|
|
38
|
+
|
|
39
|
+
export function ensureDeploymentGroupByNameRequestToJSON(
|
|
40
|
+
ensureDeploymentGroupByNameRequest: EnsureDeploymentGroupByNameRequest,
|
|
41
|
+
): string {
|
|
42
|
+
return JSON.stringify(
|
|
43
|
+
EnsureDeploymentGroupByNameRequest$outboundSchema.parse(
|
|
44
|
+
ensureDeploymentGroupByNameRequest,
|
|
45
|
+
),
|
|
46
|
+
);
|
|
47
|
+
}
|
|
@@ -55,6 +55,10 @@ export type APIErrorData = {
|
|
|
55
55
|
* caused the issue, or other relevant context information.
|
|
56
56
|
*/
|
|
57
57
|
context?: any | null | undefined;
|
|
58
|
+
/**
|
|
59
|
+
* Optional human-facing remediation hint.
|
|
60
|
+
*/
|
|
61
|
+
hint?: string | null | undefined;
|
|
58
62
|
/**
|
|
59
63
|
* HTTP status code for this error.
|
|
60
64
|
*
|
|
@@ -74,6 +78,10 @@ export type APIErrorData = {
|
|
|
74
78
|
* logged for debugging but replaced with generic error messages in responses.
|
|
75
79
|
*/
|
|
76
80
|
internal: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* Request ID echoed in the x-request-id response header and server logs.
|
|
83
|
+
*/
|
|
84
|
+
requestId?: string | undefined;
|
|
77
85
|
};
|
|
78
86
|
|
|
79
87
|
export class APIError extends AlienError {
|
|
@@ -117,6 +125,10 @@ export class APIError extends AlienError {
|
|
|
117
125
|
* caused the issue, or other relevant context information.
|
|
118
126
|
*/
|
|
119
127
|
context?: any | null | undefined;
|
|
128
|
+
/**
|
|
129
|
+
* Optional human-facing remediation hint.
|
|
130
|
+
*/
|
|
131
|
+
hint?: string | null | undefined;
|
|
120
132
|
/**
|
|
121
133
|
* HTTP status code for this error.
|
|
122
134
|
*
|
|
@@ -136,6 +148,10 @@ export class APIError extends AlienError {
|
|
|
136
148
|
* logged for debugging but replaced with generic error messages in responses.
|
|
137
149
|
*/
|
|
138
150
|
internal: boolean;
|
|
151
|
+
/**
|
|
152
|
+
* Request ID echoed in the x-request-id response header and server logs.
|
|
153
|
+
*/
|
|
154
|
+
requestId?: string | undefined;
|
|
139
155
|
|
|
140
156
|
/** The original data that was passed to this error instance. */
|
|
141
157
|
data$: APIErrorData;
|
|
@@ -151,8 +167,10 @@ export class APIError extends AlienError {
|
|
|
151
167
|
if (err.source != null) this.source = err.source;
|
|
152
168
|
if (err.retryable != null) this.retryable = err.retryable;
|
|
153
169
|
if (err.context != null) this.context = err.context;
|
|
170
|
+
if (err.hint != null) this.hint = err.hint;
|
|
154
171
|
if (err.httpStatusCode != null) this.httpStatusCode = err.httpStatusCode;
|
|
155
172
|
this.internal = err.internal;
|
|
173
|
+
if (err.requestId != null) this.requestId = err.requestId;
|
|
156
174
|
|
|
157
175
|
this.name = "APIError";
|
|
158
176
|
}
|
|
@@ -165,8 +183,10 @@ export const APIError$inboundSchema: z.ZodType<APIError, unknown> = z.object({
|
|
|
165
183
|
source: z.nullable(z.any()).optional(),
|
|
166
184
|
retryable: z.boolean().default(false),
|
|
167
185
|
context: z.nullable(z.any()).optional(),
|
|
186
|
+
hint: z.nullable(z.string()).optional(),
|
|
168
187
|
httpStatusCode: z.nullable(z.int()).optional(),
|
|
169
188
|
internal: z.boolean(),
|
|
189
|
+
requestId: z.string().optional(),
|
|
170
190
|
request$: z.custom<Request>(x => x instanceof Request),
|
|
171
191
|
response$: z.custom<Response>(x => x instanceof Response),
|
|
172
192
|
body$: z.string(),
|
package/src/models/index.ts
CHANGED
|
@@ -29,6 +29,7 @@ export * from "./createdeploymentresponse.js";
|
|
|
29
29
|
export * from "./createdeploymenttokenrequest.js";
|
|
30
30
|
export * from "./createdeploymenttokenresponse.js";
|
|
31
31
|
export * from "./createfirstpartydeploymentsessionresponse.js";
|
|
32
|
+
export * from "./createmachinesjointokenresponse.js";
|
|
32
33
|
export * from "./createmanagerresponse.js";
|
|
33
34
|
export * from "./createreleaserequest.js";
|
|
34
35
|
export * from "./createsetupregistrationoperationrequest.js";
|
|
@@ -49,6 +50,7 @@ export * from "./deploymentgrouprole.js";
|
|
|
49
50
|
export * from "./deploymentgroupscope.js";
|
|
50
51
|
export * from "./deploymentinfo.js";
|
|
51
52
|
export * from "./deploymentinfosetupconfig.js";
|
|
53
|
+
export * from "./deploymentlinksetupresponse.js";
|
|
52
54
|
export * from "./deploymentlistitemresponse.js";
|
|
53
55
|
export * from "./deploymentportalaccentcolor.js";
|
|
54
56
|
export * from "./deploymentportalappearance.js";
|
|
@@ -74,6 +76,7 @@ export * from "./domainwithusage.js";
|
|
|
74
76
|
export * from "./drainmachinesmachinerequest.js";
|
|
75
77
|
export * from "./drainmachinesmachineresponse.js";
|
|
76
78
|
export * from "./encryptedstackinputvalue.js";
|
|
79
|
+
export * from "./ensuredeploymentgroupbynamerequest.js";
|
|
77
80
|
export * from "./environmentvariableconfig.js";
|
|
78
81
|
export * from "./environmentvariabletype.js";
|
|
79
82
|
export * from "./event.js";
|
|
@@ -91,6 +94,7 @@ export * from "./importedresource.js";
|
|
|
91
94
|
export * from "./importsource.js";
|
|
92
95
|
export * from "./importsourcekind.js";
|
|
93
96
|
export * from "./kubernetesbaseplatform.js";
|
|
97
|
+
export * from "./kubernetesclustersource.js";
|
|
94
98
|
export * from "./listcommanddeploymentsresponse.js";
|
|
95
99
|
export * from "./listcommandnamesresponse.js";
|
|
96
100
|
export * from "./listmachinesinventoryresponse.js";
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const KubernetesClusterSource = {
|
|
9
|
+
Create: "create",
|
|
10
|
+
Existing: "existing",
|
|
11
|
+
} as const;
|
|
12
|
+
export type KubernetesClusterSource = ClosedEnum<
|
|
13
|
+
typeof KubernetesClusterSource
|
|
14
|
+
>;
|
|
15
|
+
|
|
16
|
+
/** @internal */
|
|
17
|
+
export const KubernetesClusterSource$inboundSchema: z.ZodEnum<
|
|
18
|
+
typeof KubernetesClusterSource
|
|
19
|
+
> = z.enum(KubernetesClusterSource);
|
|
20
|
+
/** @internal */
|
|
21
|
+
export const KubernetesClusterSource$outboundSchema: z.ZodEnum<
|
|
22
|
+
typeof KubernetesClusterSource
|
|
23
|
+
> = KubernetesClusterSource$inboundSchema;
|
|
@@ -17,6 +17,7 @@ export const ManagerDeploymentStatus = {
|
|
|
17
17
|
InitialSetup: "initial-setup",
|
|
18
18
|
InitialSetupFailed: "initial-setup-failed",
|
|
19
19
|
Provisioning: "provisioning",
|
|
20
|
+
WaitingForMachines: "waiting-for-machines",
|
|
20
21
|
ProvisioningFailed: "provisioning-failed",
|
|
21
22
|
Running: "running",
|
|
22
23
|
RefreshFailed: "refresh-failed",
|
|
@@ -39,6 +39,10 @@ export type ManagerRetryResponseSetupConfig = {
|
|
|
39
39
|
metadata: { [k: string]: any | null };
|
|
40
40
|
policy: DeploymentSetupPolicy;
|
|
41
41
|
inputValues?: { [k: string]: EncryptedStackInputValue } | undefined;
|
|
42
|
+
/**
|
|
43
|
+
* Operator-pinned deployment subdomain for this setup token.
|
|
44
|
+
*/
|
|
45
|
+
publicSubdomain?: string | undefined;
|
|
42
46
|
environmentVariables: Array<ManagerRetryResponseEnvironmentVariable>;
|
|
43
47
|
};
|
|
44
48
|
|
|
@@ -3588,6 +3592,7 @@ export const ManagerRetryResponseSetupConfig$inboundSchema: z.ZodType<
|
|
|
3588
3592
|
policy: DeploymentSetupPolicy$inboundSchema,
|
|
3589
3593
|
inputValues: z.record(z.string(), EncryptedStackInputValue$inboundSchema)
|
|
3590
3594
|
.optional(),
|
|
3595
|
+
publicSubdomain: z.string().optional(),
|
|
3591
3596
|
environmentVariables: z.array(
|
|
3592
3597
|
z.lazy(() => ManagerRetryResponseEnvironmentVariable$inboundSchema),
|
|
3593
3598
|
),
|