@alienplatform/platform-api 1.11.1 → 1.12.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 +4 -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/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/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 +49 -0
- package/esm/models/deploymentinfo.d.ts.map +1 -1
- package/esm/models/deploymentinfo.js +45 -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/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 +2 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +2 -0
- package/esm/models/index.js.map +1 -1
- 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 +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/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 +2 -0
- package/esm/models/operations/index.d.ts.map +1 -1
- package/esm/models/operations/index.js +2 -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/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/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/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/jsr.json +1 -1
- package/package.json +3 -3
- package/src/funcs/deploymentGetInfo.ts +1 -0
- package/src/funcs/deploymentGroupsEnsureDeploymentGroupByName.ts +177 -0
- package/src/funcs/deploymentsCreate.ts +5 -5
- 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/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 +107 -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/ensuredeploymentgroupbynamerequest.ts +47 -0
- package/src/models/errors/apierror.ts +20 -0
- package/src/models/index.ts +2 -0
- package/src/models/managerdeployment.ts +1 -0
- package/src/models/managerretryresponse.ts +5 -0
- package/src/models/newdeploymentrequest.ts +1 -1
- package/src/models/operations/createdeployment.ts +0 -56
- 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 +2 -0
- package/src/models/operations/listdeployments.ts +1 -0
- package/src/models/persistimporteddeploymentrequest.ts +2 -1
- 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/projects.ts +15 -0
|
@@ -4,24 +4,49 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
7
8
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
8
9
|
import { Deployment, Deployment$inboundSchema } from "./deployment.js";
|
|
9
10
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
10
11
|
|
|
12
|
+
/**
|
|
13
|
+
* Effective deployment model persisted for the deployment.
|
|
14
|
+
*/
|
|
15
|
+
export const CreateDeploymentResponseDeploymentModel = {
|
|
16
|
+
Push: "push",
|
|
17
|
+
Pull: "pull",
|
|
18
|
+
} as const;
|
|
19
|
+
/**
|
|
20
|
+
* Effective deployment model persisted for the deployment.
|
|
21
|
+
*/
|
|
22
|
+
export type CreateDeploymentResponseDeploymentModel = ClosedEnum<
|
|
23
|
+
typeof CreateDeploymentResponseDeploymentModel
|
|
24
|
+
>;
|
|
25
|
+
|
|
11
26
|
export type CreateDeploymentResponse = {
|
|
12
27
|
deployment: Deployment;
|
|
28
|
+
/**
|
|
29
|
+
* Effective deployment model persisted for the deployment.
|
|
30
|
+
*/
|
|
31
|
+
deploymentModel: CreateDeploymentResponseDeploymentModel;
|
|
13
32
|
/**
|
|
14
33
|
* Deployment token (only returned when using deployment group token)
|
|
15
34
|
*/
|
|
16
35
|
token?: string | undefined;
|
|
17
36
|
};
|
|
18
37
|
|
|
38
|
+
/** @internal */
|
|
39
|
+
export const CreateDeploymentResponseDeploymentModel$inboundSchema: z.ZodEnum<
|
|
40
|
+
typeof CreateDeploymentResponseDeploymentModel
|
|
41
|
+
> = z.enum(CreateDeploymentResponseDeploymentModel);
|
|
42
|
+
|
|
19
43
|
/** @internal */
|
|
20
44
|
export const CreateDeploymentResponse$inboundSchema: z.ZodType<
|
|
21
45
|
CreateDeploymentResponse,
|
|
22
46
|
unknown
|
|
23
47
|
> = z.object({
|
|
24
48
|
deployment: Deployment$inboundSchema,
|
|
49
|
+
deploymentModel: CreateDeploymentResponseDeploymentModel$inboundSchema,
|
|
25
50
|
token: z.string().optional(),
|
|
26
51
|
});
|
|
27
52
|
|
|
@@ -42,6 +42,10 @@ export type CreateManagerResponseSetupConfig = {
|
|
|
42
42
|
metadata: { [k: string]: any | null };
|
|
43
43
|
policy: DeploymentSetupPolicy;
|
|
44
44
|
inputValues?: { [k: string]: EncryptedStackInputValue } | undefined;
|
|
45
|
+
/**
|
|
46
|
+
* Operator-pinned deployment subdomain for this setup token.
|
|
47
|
+
*/
|
|
48
|
+
publicSubdomain?: string | undefined;
|
|
45
49
|
environmentVariables: Array<CreateManagerResponseEnvironmentVariable>;
|
|
46
50
|
};
|
|
47
51
|
|
|
@@ -3610,6 +3614,7 @@ export const CreateManagerResponseSetupConfig$inboundSchema: z.ZodType<
|
|
|
3610
3614
|
policy: DeploymentSetupPolicy$inboundSchema,
|
|
3611
3615
|
inputValues: z.record(z.string(), EncryptedStackInputValue$inboundSchema)
|
|
3612
3616
|
.optional(),
|
|
3617
|
+
publicSubdomain: z.string().optional(),
|
|
3613
3618
|
environmentVariables: z.array(
|
|
3614
3619
|
z.lazy(() => CreateManagerResponseEnvironmentVariable$inboundSchema),
|
|
3615
3620
|
),
|
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 = {
|
|
@@ -135,10 +136,22 @@ export type StackSummary = {
|
|
|
135
136
|
publicEndpoints: Array<PublicEndpoint>;
|
|
136
137
|
};
|
|
137
138
|
|
|
139
|
+
/**
|
|
140
|
+
* Parent domain for generated deployment URLs. Chosen public subdomains are only allowed when isSystem is false.
|
|
141
|
+
*/
|
|
142
|
+
export type GeneratedDomain = {
|
|
143
|
+
domain: string;
|
|
144
|
+
isSystem: boolean;
|
|
145
|
+
};
|
|
146
|
+
|
|
138
147
|
export type DeploymentInfoProject = {
|
|
139
148
|
name: string;
|
|
140
149
|
portal: Portal;
|
|
141
150
|
stackSummary?: StackSummary | null | undefined;
|
|
151
|
+
/**
|
|
152
|
+
* Parent domain for generated deployment URLs. Chosen public subdomains are only allowed when isSystem is false.
|
|
153
|
+
*/
|
|
154
|
+
generatedDomain?: GeneratedDomain | null | undefined;
|
|
142
155
|
};
|
|
143
156
|
|
|
144
157
|
/**
|
|
@@ -665,6 +678,33 @@ export type DeploymentInfoInstallContext = {
|
|
|
665
678
|
targets: { [k: string]: InstallContextTargets };
|
|
666
679
|
};
|
|
667
680
|
|
|
681
|
+
export const ReadinessStatus = {
|
|
682
|
+
Ready: "ready",
|
|
683
|
+
NotReady: "notReady",
|
|
684
|
+
Unknown: "unknown",
|
|
685
|
+
} as const;
|
|
686
|
+
export type ReadinessStatus = ClosedEnum<typeof ReadinessStatus>;
|
|
687
|
+
|
|
688
|
+
export const CheckStatus = {
|
|
689
|
+
Passed: "passed",
|
|
690
|
+
Failed: "failed",
|
|
691
|
+
Warning: "warning",
|
|
692
|
+
Unknown: "unknown",
|
|
693
|
+
} as const;
|
|
694
|
+
export type CheckStatus = ClosedEnum<typeof CheckStatus>;
|
|
695
|
+
|
|
696
|
+
export type Check = {
|
|
697
|
+
code: string;
|
|
698
|
+
status: CheckStatus;
|
|
699
|
+
message: string;
|
|
700
|
+
checkedAt: string;
|
|
701
|
+
};
|
|
702
|
+
|
|
703
|
+
export type Readiness = {
|
|
704
|
+
status: ReadinessStatus;
|
|
705
|
+
checks: Array<Check>;
|
|
706
|
+
};
|
|
707
|
+
|
|
668
708
|
export type DeploymentInfo = {
|
|
669
709
|
/**
|
|
670
710
|
* Type of token used to authenticate this request
|
|
@@ -684,6 +724,7 @@ export type DeploymentInfo = {
|
|
|
684
724
|
installContext: DeploymentInfoInstallContext;
|
|
685
725
|
supportedRegions: SupportedCloudRegions;
|
|
686
726
|
setupConfig?: DeploymentInfoSetupConfig | undefined;
|
|
727
|
+
readiness?: Readiness | undefined;
|
|
687
728
|
};
|
|
688
729
|
|
|
689
730
|
/** @internal */
|
|
@@ -722,6 +763,7 @@ export const DeploymentInfoDeploymentGroup$inboundSchema: z.ZodType<
|
|
|
722
763
|
> = z.object({
|
|
723
764
|
id: z.string(),
|
|
724
765
|
name: z.string(),
|
|
766
|
+
pinnedSubdomain: z.nullable(z.string()),
|
|
725
767
|
});
|
|
726
768
|
|
|
727
769
|
export function deploymentInfoDeploymentGroupFromJSON(
|
|
@@ -831,6 +873,25 @@ export function stackSummaryFromJSON(
|
|
|
831
873
|
);
|
|
832
874
|
}
|
|
833
875
|
|
|
876
|
+
/** @internal */
|
|
877
|
+
export const GeneratedDomain$inboundSchema: z.ZodType<
|
|
878
|
+
GeneratedDomain,
|
|
879
|
+
unknown
|
|
880
|
+
> = z.object({
|
|
881
|
+
domain: z.string(),
|
|
882
|
+
isSystem: z.boolean(),
|
|
883
|
+
});
|
|
884
|
+
|
|
885
|
+
export function generatedDomainFromJSON(
|
|
886
|
+
jsonString: string,
|
|
887
|
+
): SafeParseResult<GeneratedDomain, SDKValidationError> {
|
|
888
|
+
return safeParse(
|
|
889
|
+
jsonString,
|
|
890
|
+
(x) => GeneratedDomain$inboundSchema.parse(JSON.parse(x)),
|
|
891
|
+
`Failed to parse 'GeneratedDomain' from JSON`,
|
|
892
|
+
);
|
|
893
|
+
}
|
|
894
|
+
|
|
834
895
|
/** @internal */
|
|
835
896
|
export const DeploymentInfoProject$inboundSchema: z.ZodType<
|
|
836
897
|
DeploymentInfoProject,
|
|
@@ -839,6 +900,8 @@ export const DeploymentInfoProject$inboundSchema: z.ZodType<
|
|
|
839
900
|
name: z.string(),
|
|
840
901
|
portal: z.lazy(() => Portal$inboundSchema),
|
|
841
902
|
stackSummary: z.nullable(z.lazy(() => StackSummary$inboundSchema)).optional(),
|
|
903
|
+
generatedDomain: z.nullable(z.lazy(() => GeneratedDomain$inboundSchema))
|
|
904
|
+
.optional(),
|
|
842
905
|
});
|
|
843
906
|
|
|
844
907
|
export function deploymentInfoProjectFromJSON(
|
|
@@ -1424,6 +1487,49 @@ export function deploymentInfoInstallContextFromJSON(
|
|
|
1424
1487
|
);
|
|
1425
1488
|
}
|
|
1426
1489
|
|
|
1490
|
+
/** @internal */
|
|
1491
|
+
export const ReadinessStatus$inboundSchema: z.ZodEnum<typeof ReadinessStatus> =
|
|
1492
|
+
z.enum(ReadinessStatus);
|
|
1493
|
+
|
|
1494
|
+
/** @internal */
|
|
1495
|
+
export const CheckStatus$inboundSchema: z.ZodEnum<typeof CheckStatus> = z.enum(
|
|
1496
|
+
CheckStatus,
|
|
1497
|
+
);
|
|
1498
|
+
|
|
1499
|
+
/** @internal */
|
|
1500
|
+
export const Check$inboundSchema: z.ZodType<Check, unknown> = z.object({
|
|
1501
|
+
code: z.string(),
|
|
1502
|
+
status: CheckStatus$inboundSchema,
|
|
1503
|
+
message: z.string(),
|
|
1504
|
+
checkedAt: z.string(),
|
|
1505
|
+
});
|
|
1506
|
+
|
|
1507
|
+
export function checkFromJSON(
|
|
1508
|
+
jsonString: string,
|
|
1509
|
+
): SafeParseResult<Check, SDKValidationError> {
|
|
1510
|
+
return safeParse(
|
|
1511
|
+
jsonString,
|
|
1512
|
+
(x) => Check$inboundSchema.parse(JSON.parse(x)),
|
|
1513
|
+
`Failed to parse 'Check' from JSON`,
|
|
1514
|
+
);
|
|
1515
|
+
}
|
|
1516
|
+
|
|
1517
|
+
/** @internal */
|
|
1518
|
+
export const Readiness$inboundSchema: z.ZodType<Readiness, unknown> = z.object({
|
|
1519
|
+
status: ReadinessStatus$inboundSchema,
|
|
1520
|
+
checks: z.array(z.lazy(() => Check$inboundSchema)),
|
|
1521
|
+
});
|
|
1522
|
+
|
|
1523
|
+
export function readinessFromJSON(
|
|
1524
|
+
jsonString: string,
|
|
1525
|
+
): SafeParseResult<Readiness, SDKValidationError> {
|
|
1526
|
+
return safeParse(
|
|
1527
|
+
jsonString,
|
|
1528
|
+
(x) => Readiness$inboundSchema.parse(JSON.parse(x)),
|
|
1529
|
+
`Failed to parse 'Readiness' from JSON`,
|
|
1530
|
+
);
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1427
1533
|
/** @internal */
|
|
1428
1534
|
export const DeploymentInfo$inboundSchema: z.ZodType<DeploymentInfo, unknown> =
|
|
1429
1535
|
z.object({
|
|
@@ -1437,6 +1543,7 @@ export const DeploymentInfo$inboundSchema: z.ZodType<DeploymentInfo, unknown> =
|
|
|
1437
1543
|
installContext: z.lazy(() => DeploymentInfoInstallContext$inboundSchema),
|
|
1438
1544
|
supportedRegions: SupportedCloudRegions$inboundSchema,
|
|
1439
1545
|
setupConfig: DeploymentInfoSetupConfig$inboundSchema.optional(),
|
|
1546
|
+
readiness: z.lazy(() => Readiness$inboundSchema).optional(),
|
|
1440
1547
|
});
|
|
1441
1548
|
|
|
1442
1549
|
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(
|
|
@@ -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
|
@@ -49,6 +49,7 @@ export * from "./deploymentgrouprole.js";
|
|
|
49
49
|
export * from "./deploymentgroupscope.js";
|
|
50
50
|
export * from "./deploymentinfo.js";
|
|
51
51
|
export * from "./deploymentinfosetupconfig.js";
|
|
52
|
+
export * from "./deploymentlinksetupresponse.js";
|
|
52
53
|
export * from "./deploymentlistitemresponse.js";
|
|
53
54
|
export * from "./deploymentportalaccentcolor.js";
|
|
54
55
|
export * from "./deploymentportalappearance.js";
|
|
@@ -74,6 +75,7 @@ export * from "./domainwithusage.js";
|
|
|
74
75
|
export * from "./drainmachinesmachinerequest.js";
|
|
75
76
|
export * from "./drainmachinesmachineresponse.js";
|
|
76
77
|
export * from "./encryptedstackinputvalue.js";
|
|
78
|
+
export * from "./ensuredeploymentgroupbynamerequest.js";
|
|
77
79
|
export * from "./environmentvariableconfig.js";
|
|
78
80
|
export * from "./environmentvariabletype.js";
|
|
79
81
|
export * from "./event.js";
|
|
@@ -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
|
),
|
|
@@ -1345,7 +1345,7 @@ export type NewDeploymentRequest = {
|
|
|
1345
1345
|
*/
|
|
1346
1346
|
resourcePrefix?: string | undefined;
|
|
1347
1347
|
/**
|
|
1348
|
-
* Optional deployment subdomain under the project's generated-domain parent. Omit to generate a random subdomain.
|
|
1348
|
+
* Optional deployment subdomain under the project's generated-domain parent. Operator-only and requires a custom project domain; customer deploy-link tokens and the shared system domain are rejected. Omit to generate a random subdomain.
|
|
1349
1349
|
*/
|
|
1350
1350
|
publicSubdomain?: string | undefined;
|
|
1351
1351
|
setupMethod?: DeploymentSetupMethod | undefined;
|
|
@@ -4,9 +4,6 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
-
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
-
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
7
|
import * as models from "../index.js";
|
|
11
8
|
|
|
12
9
|
export type CreateDeploymentRequest = {
|
|
@@ -17,21 +14,6 @@ export type CreateDeploymentRequest = {
|
|
|
17
14
|
newDeploymentRequest?: models.NewDeploymentRequest | undefined;
|
|
18
15
|
};
|
|
19
16
|
|
|
20
|
-
/**
|
|
21
|
-
* Existing deployment returned for idempotent deployment-group registration.
|
|
22
|
-
*/
|
|
23
|
-
export type CreateDeploymentResponseBody = {
|
|
24
|
-
deployment: models.Deployment;
|
|
25
|
-
/**
|
|
26
|
-
* Deployment token (only returned when using deployment group token)
|
|
27
|
-
*/
|
|
28
|
-
token?: string | undefined;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
export type CreateDeploymentResponse =
|
|
32
|
-
| CreateDeploymentResponseBody
|
|
33
|
-
| models.CreateDeploymentResponse;
|
|
34
|
-
|
|
35
17
|
/** @internal */
|
|
36
18
|
export type CreateDeploymentRequest$Outbound = {
|
|
37
19
|
workspace?: string | undefined;
|
|
@@ -58,41 +40,3 @@ export function createDeploymentRequestToJSON(
|
|
|
58
40
|
CreateDeploymentRequest$outboundSchema.parse(createDeploymentRequest),
|
|
59
41
|
);
|
|
60
42
|
}
|
|
61
|
-
|
|
62
|
-
/** @internal */
|
|
63
|
-
export const CreateDeploymentResponseBody$inboundSchema: z.ZodType<
|
|
64
|
-
CreateDeploymentResponseBody,
|
|
65
|
-
unknown
|
|
66
|
-
> = z.object({
|
|
67
|
-
deployment: models.Deployment$inboundSchema,
|
|
68
|
-
token: z.string().optional(),
|
|
69
|
-
});
|
|
70
|
-
|
|
71
|
-
export function createDeploymentResponseBodyFromJSON(
|
|
72
|
-
jsonString: string,
|
|
73
|
-
): SafeParseResult<CreateDeploymentResponseBody, SDKValidationError> {
|
|
74
|
-
return safeParse(
|
|
75
|
-
jsonString,
|
|
76
|
-
(x) => CreateDeploymentResponseBody$inboundSchema.parse(JSON.parse(x)),
|
|
77
|
-
`Failed to parse 'CreateDeploymentResponseBody' from JSON`,
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
|
|
81
|
-
/** @internal */
|
|
82
|
-
export const CreateDeploymentResponse$inboundSchema: z.ZodType<
|
|
83
|
-
CreateDeploymentResponse,
|
|
84
|
-
unknown
|
|
85
|
-
> = z.union([
|
|
86
|
-
z.lazy(() => CreateDeploymentResponseBody$inboundSchema),
|
|
87
|
-
models.CreateDeploymentResponse$inboundSchema,
|
|
88
|
-
]);
|
|
89
|
-
|
|
90
|
-
export function createDeploymentResponseFromJSON(
|
|
91
|
-
jsonString: string,
|
|
92
|
-
): SafeParseResult<CreateDeploymentResponse, SDKValidationError> {
|
|
93
|
-
return safeParse(
|
|
94
|
-
jsonString,
|
|
95
|
-
(x) => CreateDeploymentResponse$inboundSchema.parse(JSON.parse(x)),
|
|
96
|
-
`Failed to parse 'CreateDeploymentResponse' from JSON`,
|
|
97
|
-
);
|
|
98
|
-
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import * as models from "../index.js";
|
|
8
|
+
|
|
9
|
+
export type EnsureDeploymentGroupByNameRequest = {
|
|
10
|
+
/**
|
|
11
|
+
* Workspace name. Required for user/session/OAuth requests. Optional for API keys because API keys are workspace-scoped; if provided with an API key, it must match the key's workspace.
|
|
12
|
+
*/
|
|
13
|
+
workspace?: string | undefined;
|
|
14
|
+
ensureDeploymentGroupByNameRequest?:
|
|
15
|
+
| models.EnsureDeploymentGroupByNameRequest
|
|
16
|
+
| undefined;
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export type EnsureDeploymentGroupByNameRequest$Outbound = {
|
|
21
|
+
workspace?: string | undefined;
|
|
22
|
+
EnsureDeploymentGroupByNameRequest?:
|
|
23
|
+
| models.EnsureDeploymentGroupByNameRequest$Outbound
|
|
24
|
+
| undefined;
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
/** @internal */
|
|
28
|
+
export const EnsureDeploymentGroupByNameRequest$outboundSchema: z.ZodType<
|
|
29
|
+
EnsureDeploymentGroupByNameRequest$Outbound,
|
|
30
|
+
EnsureDeploymentGroupByNameRequest
|
|
31
|
+
> = z.object({
|
|
32
|
+
workspace: z.string().optional(),
|
|
33
|
+
ensureDeploymentGroupByNameRequest: models
|
|
34
|
+
.EnsureDeploymentGroupByNameRequest$outboundSchema.optional(),
|
|
35
|
+
}).transform((v) => {
|
|
36
|
+
return remap$(v, {
|
|
37
|
+
ensureDeploymentGroupByNameRequest: "EnsureDeploymentGroupByNameRequest",
|
|
38
|
+
});
|
|
39
|
+
});
|
|
40
|
+
|
|
41
|
+
export function ensureDeploymentGroupByNameRequestToJSON(
|
|
42
|
+
ensureDeploymentGroupByNameRequest: EnsureDeploymentGroupByNameRequest,
|
|
43
|
+
): string {
|
|
44
|
+
return JSON.stringify(
|
|
45
|
+
EnsureDeploymentGroupByNameRequest$outboundSchema.parse(
|
|
46
|
+
ensureDeploymentGroupByNameRequest,
|
|
47
|
+
),
|
|
48
|
+
);
|
|
49
|
+
}
|