@alienplatform/platform-api 1.4.2 → 1.5.1
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 -2
- package/esm/funcs/managersGetDomainBinding.d.ts +16 -0
- package/esm/funcs/managersGetDomainBinding.d.ts.map +1 -0
- package/esm/funcs/managersGetDomainBinding.js +89 -0
- package/esm/funcs/managersGetDomainBinding.js.map +1 -0
- package/esm/funcs/managersUpdateDomainBinding.d.ts +16 -0
- package/esm/funcs/managersUpdateDomainBinding.d.ts.map +1 -0
- package/esm/funcs/managersUpdateDomainBinding.js +92 -0
- package/esm/funcs/managersUpdateDomainBinding.js.map +1 -0
- package/esm/funcs/syncReconcile.d.ts +1 -1
- package/esm/funcs/syncReconcile.js +1 -1
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/cloudformationcallbackrequest.d.ts +47 -16
- package/esm/models/cloudformationcallbackrequest.d.ts.map +1 -1
- package/esm/models/cloudformationcallbackrequest.js +36 -11
- package/esm/models/cloudformationcallbackrequest.js.map +1 -1
- package/esm/models/createmanagerresponse.d.ts +15 -0
- package/esm/models/createmanagerresponse.d.ts.map +1 -1
- package/esm/models/createmanagerresponse.js +9 -0
- package/esm/models/createmanagerresponse.js.map +1 -1
- package/esm/models/deployment.d.ts +5 -0
- package/esm/models/deployment.d.ts.map +1 -1
- package/esm/models/deployment.js +3 -0
- package/esm/models/deployment.js.map +1 -1
- package/esm/models/deploymentdetailresponse.d.ts +5 -0
- package/esm/models/deploymentdetailresponse.d.ts.map +1 -1
- package/esm/models/deploymentdetailresponse.js +3 -0
- package/esm/models/deploymentdetailresponse.js.map +1 -1
- package/esm/models/deploymentinfo.d.ts +36 -12
- package/esm/models/deploymentinfo.d.ts.map +1 -1
- package/esm/models/deploymentinfo.js +35 -13
- package/esm/models/deploymentinfo.js.map +1 -1
- package/esm/models/deploymentportaldomainresponse.d.ts +2 -0
- package/esm/models/deploymentportaldomainresponse.d.ts.map +1 -1
- package/esm/models/deploymentportaldomainresponse.js +2 -0
- package/esm/models/deploymentportaldomainresponse.js.map +1 -1
- package/esm/models/deploymentsetupstacksettingspolicy.d.ts +7 -0
- package/esm/models/deploymentsetupstacksettingspolicy.d.ts.map +1 -1
- package/esm/models/deploymentsetupstacksettingspolicy.js +6 -0
- package/esm/models/deploymentsetupstacksettingspolicy.js.map +1 -1
- package/esm/models/domainwithusage.d.ts +18 -0
- package/esm/models/domainwithusage.d.ts.map +1 -1
- package/esm/models/domainwithusage.js +20 -0
- package/esm/models/domainwithusage.js.map +1 -1
- package/esm/models/importsource.d.ts +47 -16
- package/esm/models/importsource.d.ts.map +1 -1
- package/esm/models/importsource.js +36 -11
- package/esm/models/importsource.js.map +1 -1
- package/esm/models/index.d.ts +5 -0
- package/esm/models/index.d.ts.map +1 -1
- package/esm/models/index.js +5 -0
- package/esm/models/index.js.map +1 -1
- package/esm/models/managerdomainbinding.d.ts +133 -0
- package/esm/models/managerdomainbinding.d.ts.map +1 -0
- package/esm/models/managerdomainbinding.js +43 -0
- package/esm/models/managerdomainbinding.js.map +1 -0
- package/esm/models/managerdomainbindingresponse.d.ts +11 -0
- package/esm/models/managerdomainbindingresponse.d.ts.map +1 -0
- package/esm/models/managerdomainbindingresponse.js +14 -0
- package/esm/models/managerdomainbindingresponse.js.map +1 -0
- package/esm/models/managerdomainbindingstatus.d.ts +15 -0
- package/esm/models/managerdomainbindingstatus.d.ts.map +1 -0
- package/esm/models/managerdomainbindingstatus.js +16 -0
- package/esm/models/managerdomainbindingstatus.js.map +1 -0
- package/esm/models/managerretryresponse.d.ts +15 -0
- package/esm/models/managerretryresponse.d.ts.map +1 -1
- package/esm/models/managerretryresponse.js +9 -0
- package/esm/models/managerretryresponse.js.map +1 -1
- package/esm/models/newdeploymentrequest.d.ts +7 -0
- package/esm/models/newdeploymentrequest.d.ts.map +1 -1
- package/esm/models/newdeploymentrequest.js +3 -0
- package/esm/models/newdeploymentrequest.js.map +1 -1
- package/esm/models/operations/createproject.d.ts +8 -8
- package/esm/models/operations/createprojectfromtemplate.d.ts +8 -8
- package/esm/models/operations/getmanagerdomainbinding.d.ts +20 -0
- package/esm/models/operations/getmanagerdomainbinding.d.ts.map +1 -0
- package/esm/models/operations/getmanagerdomainbinding.js +13 -0
- package/esm/models/operations/getmanagerdomainbinding.js.map +1 -0
- package/esm/models/operations/getresourcedeploymentdetail.d.ts +1 -0
- package/esm/models/operations/getresourcedeploymentdetail.d.ts.map +1 -1
- package/esm/models/operations/getresourcedeploymentdetail.js +1 -0
- package/esm/models/operations/getresourcedeploymentdetail.js.map +1 -1
- 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/preparedeploymentstack.d.ts +7 -0
- package/esm/models/operations/preparedeploymentstack.d.ts.map +1 -1
- package/esm/models/operations/preparedeploymentstack.js +3 -0
- package/esm/models/operations/preparedeploymentstack.js.map +1 -1
- package/esm/models/operations/updatemanagerdomainbinding.d.ts +23 -0
- package/esm/models/operations/updatemanagerdomainbinding.d.ts.map +1 -0
- package/esm/models/operations/updatemanagerdomainbinding.js +21 -0
- package/esm/models/operations/updatemanagerdomainbinding.js.map +1 -0
- package/esm/models/package.d.ts +6 -6
- package/esm/models/packagedomain.d.ts +143 -0
- package/esm/models/packagedomain.d.ts.map +1 -0
- package/esm/models/packagedomain.js +52 -0
- package/esm/models/packagedomain.js.map +1 -0
- package/esm/models/persistimporteddeploymentrequest.d.ts +29 -0
- package/esm/models/persistimporteddeploymentrequest.d.ts.map +1 -1
- package/esm/models/persistimporteddeploymentrequest.js +18 -0
- package/esm/models/persistimporteddeploymentrequest.js.map +1 -1
- package/esm/models/project.d.ts +4 -4
- package/esm/models/projectlistitemresponse.d.ts +4 -4
- package/esm/models/syncacquireresponse.d.ts +18 -0
- package/esm/models/syncacquireresponse.d.ts.map +1 -1
- package/esm/models/syncacquireresponse.js +4 -0
- package/esm/models/syncacquireresponse.js.map +1 -1
- package/esm/models/synclistresponse.d.ts +5 -0
- package/esm/models/synclistresponse.d.ts.map +1 -1
- package/esm/models/synclistresponse.js +3 -0
- package/esm/models/synclistresponse.js.map +1 -1
- package/esm/models/syncreconcilerequest.d.ts +2 -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 +18 -0
- package/esm/models/syncreconcileresponse.d.ts.map +1 -1
- package/esm/models/syncreconcileresponse.js +4 -0
- package/esm/models/syncreconcileresponse.js.map +1 -1
- package/esm/models/updatemanagerdomainbinding.d.ts +15 -0
- package/esm/models/updatemanagerdomainbinding.d.ts.map +1 -0
- package/esm/models/updatemanagerdomainbinding.js +12 -0
- package/esm/models/updatemanagerdomainbinding.js.map +1 -0
- package/esm/models/updateproject.d.ts +4 -4
- package/esm/sdk/managers.d.ts +8 -0
- package/esm/sdk/managers.d.ts.map +1 -1
- package/esm/sdk/managers.js +14 -0
- package/esm/sdk/managers.js.map +1 -1
- package/esm/sdk/sync.d.ts +1 -1
- package/esm/sdk/sync.js +1 -1
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/managersGetDomainBinding.ts +180 -0
- package/src/funcs/managersUpdateDomainBinding.ts +183 -0
- package/src/funcs/syncReconcile.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/models/cloudformationcallbackrequest.ts +119 -48
- package/src/models/createmanagerresponse.ts +24 -0
- package/src/models/deployment.ts +8 -0
- package/src/models/deploymentdetailresponse.ts +8 -0
- package/src/models/deploymentinfo.ts +80 -31
- package/src/models/deploymentportaldomainresponse.ts +3 -0
- package/src/models/deploymentsetupstacksettingspolicy.ts +13 -0
- package/src/models/domainwithusage.ts +56 -0
- package/src/models/importsource.ts +106 -38
- package/src/models/index.ts +5 -0
- package/src/models/managerdomainbinding.ts +200 -0
- package/src/models/managerdomainbindingresponse.ts +34 -0
- package/src/models/managerdomainbindingstatus.ts +24 -0
- package/src/models/managerretryresponse.ts +24 -0
- package/src/models/newdeploymentrequest.ts +10 -0
- package/src/models/operations/createproject.ts +8 -8
- package/src/models/operations/createprojectfromtemplate.ts +8 -8
- package/src/models/operations/getmanagerdomainbinding.ts +41 -0
- package/src/models/operations/getresourcedeploymentdetail.ts +2 -0
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/preparedeploymentstack.ts +10 -0
- package/src/models/operations/updatemanagerdomainbinding.ts +53 -0
- package/src/models/package.ts +6 -6
- package/src/models/packagedomain.ts +208 -0
- package/src/models/persistimporteddeploymentrequest.ts +41 -0
- package/src/models/project.ts +4 -4
- package/src/models/projectlistitemresponse.ts +4 -4
- package/src/models/syncacquireresponse.ts +20 -0
- package/src/models/synclistresponse.ts +8 -0
- package/src/models/syncreconcilerequest.ts +3 -0
- package/src/models/syncreconcileresponse.ts +20 -0
- package/src/models/updatemanagerdomainbinding.ts +33 -0
- package/src/models/updateproject.ts +4 -4
- package/src/sdk/managers.ts +30 -0
- package/src/sdk/sync.ts +1 -1
|
@@ -18,7 +18,7 @@ import {
|
|
|
18
18
|
/**
|
|
19
19
|
* Cloud platform of the imported stack
|
|
20
20
|
*/
|
|
21
|
-
export const
|
|
21
|
+
export const ImportSourcePlatform = {
|
|
22
22
|
Aws: "aws",
|
|
23
23
|
Gcp: "gcp",
|
|
24
24
|
Azure: "azure",
|
|
@@ -29,9 +29,7 @@ export const ImportSourcePlatformEnum = {
|
|
|
29
29
|
/**
|
|
30
30
|
* Cloud platform of the imported stack
|
|
31
31
|
*/
|
|
32
|
-
export type
|
|
33
|
-
typeof ImportSourcePlatformEnum
|
|
34
|
-
>;
|
|
32
|
+
export type ImportSourcePlatform = ClosedEnum<typeof ImportSourcePlatform>;
|
|
35
33
|
|
|
36
34
|
/**
|
|
37
35
|
* Base cloud platform for cloud-backed Kubernetes imports.
|
|
@@ -73,6 +71,7 @@ export type ImportSourceAwsUnion = ImportSourceAws | any;
|
|
|
73
71
|
|
|
74
72
|
export type ImportSourceAzure = {
|
|
75
73
|
keyVaultCertificateId: string;
|
|
74
|
+
keyVaultResourceId?: string | null | undefined;
|
|
76
75
|
};
|
|
77
76
|
|
|
78
77
|
export type ImportSourceAzureUnion = ImportSourceAzure | any;
|
|
@@ -858,6 +857,10 @@ export type ImportSourceTypeByoVnetAzure = ClosedEnum<
|
|
|
858
857
|
>;
|
|
859
858
|
|
|
860
859
|
export type ImportSourceNetworkByoVnetAzure = {
|
|
860
|
+
/**
|
|
861
|
+
* Name of the dedicated classic Application Gateway subnet within the VNet.
|
|
862
|
+
*/
|
|
863
|
+
applicationGatewaySubnetName?: string | null | undefined;
|
|
861
864
|
/**
|
|
862
865
|
* Name of the private subnet within the VNet
|
|
863
866
|
*/
|
|
@@ -1038,10 +1041,24 @@ export type ImportSourceStackSettings = {
|
|
|
1038
1041
|
updates?: ImportSourceUpdates | undefined;
|
|
1039
1042
|
};
|
|
1040
1043
|
|
|
1044
|
+
export const ImportSourcePlatformKubernetes = {
|
|
1045
|
+
Kubernetes: "kubernetes",
|
|
1046
|
+
} as const;
|
|
1047
|
+
export type ImportSourcePlatformKubernetes = ClosedEnum<
|
|
1048
|
+
typeof ImportSourcePlatformKubernetes
|
|
1049
|
+
>;
|
|
1050
|
+
|
|
1041
1051
|
export type ImportSourceManagementConfigKubernetes = {
|
|
1042
|
-
platform:
|
|
1052
|
+
platform: ImportSourcePlatformKubernetes;
|
|
1043
1053
|
};
|
|
1044
1054
|
|
|
1055
|
+
export const ImportSourcePlatformAzure = {
|
|
1056
|
+
Azure: "azure",
|
|
1057
|
+
} as const;
|
|
1058
|
+
export type ImportSourcePlatformAzure = ClosedEnum<
|
|
1059
|
+
typeof ImportSourcePlatformAzure
|
|
1060
|
+
>;
|
|
1061
|
+
|
|
1045
1062
|
/**
|
|
1046
1063
|
* Azure management configuration extracted from stack settings
|
|
1047
1064
|
*/
|
|
@@ -1058,9 +1075,16 @@ export type ImportSourceManagementConfigAzure = {
|
|
|
1058
1075
|
* OIDC subject claim trusted by the target-side managed identity.
|
|
1059
1076
|
*/
|
|
1060
1077
|
oidcSubject: string;
|
|
1061
|
-
platform:
|
|
1078
|
+
platform: ImportSourcePlatformAzure;
|
|
1062
1079
|
};
|
|
1063
1080
|
|
|
1081
|
+
export const ImportSourcePlatformGcp = {
|
|
1082
|
+
Gcp: "gcp",
|
|
1083
|
+
} as const;
|
|
1084
|
+
export type ImportSourcePlatformGcp = ClosedEnum<
|
|
1085
|
+
typeof ImportSourcePlatformGcp
|
|
1086
|
+
>;
|
|
1087
|
+
|
|
1064
1088
|
/**
|
|
1065
1089
|
* GCP management configuration extracted from stack settings
|
|
1066
1090
|
*/
|
|
@@ -1069,9 +1093,16 @@ export type ImportSourceManagementConfigGcp = {
|
|
|
1069
1093
|
* Service account email for management roles
|
|
1070
1094
|
*/
|
|
1071
1095
|
serviceAccountEmail: string;
|
|
1072
|
-
platform:
|
|
1096
|
+
platform: ImportSourcePlatformGcp;
|
|
1073
1097
|
};
|
|
1074
1098
|
|
|
1099
|
+
export const ImportSourcePlatformAws = {
|
|
1100
|
+
Aws: "aws",
|
|
1101
|
+
} as const;
|
|
1102
|
+
export type ImportSourcePlatformAws = ClosedEnum<
|
|
1103
|
+
typeof ImportSourcePlatformAws
|
|
1104
|
+
>;
|
|
1105
|
+
|
|
1075
1106
|
/**
|
|
1076
1107
|
* AWS management configuration extracted from stack settings
|
|
1077
1108
|
*/
|
|
@@ -1080,7 +1111,7 @@ export type ImportSourceManagementConfigAws = {
|
|
|
1080
1111
|
* The managing AWS IAM role ARN that can assume cross-account roles
|
|
1081
1112
|
*/
|
|
1082
1113
|
managingRoleArn: string;
|
|
1083
|
-
platform:
|
|
1114
|
+
platform: ImportSourcePlatformAws;
|
|
1084
1115
|
};
|
|
1085
1116
|
|
|
1086
1117
|
/**
|
|
@@ -1092,10 +1123,11 @@ export type ImportSourceManagementConfigAws = {
|
|
|
1092
1123
|
* This is NOT user-specified - it's derived from the Manager's ServiceAccount.
|
|
1093
1124
|
*/
|
|
1094
1125
|
export type ImportSourceManagementConfigUnion =
|
|
1126
|
+
| ImportSourceManagementConfigAzure
|
|
1095
1127
|
| ImportSourceManagementConfigAws
|
|
1096
1128
|
| ImportSourceManagementConfigGcp
|
|
1097
|
-
|
|
|
1098
|
-
|
|
|
1129
|
+
| ImportSourceManagementConfigKubernetes
|
|
1130
|
+
| any;
|
|
1099
1131
|
|
|
1100
1132
|
/**
|
|
1101
1133
|
* Resolved setup import payload
|
|
@@ -1117,7 +1149,7 @@ export type ImportSource = {
|
|
|
1117
1149
|
/**
|
|
1118
1150
|
* Cloud platform of the imported stack
|
|
1119
1151
|
*/
|
|
1120
|
-
platform:
|
|
1152
|
+
platform: ImportSourcePlatform;
|
|
1121
1153
|
/**
|
|
1122
1154
|
* Base cloud platform for cloud-backed Kubernetes imports.
|
|
1123
1155
|
*/
|
|
@@ -1154,18 +1186,21 @@ export type ImportSource = {
|
|
|
1154
1186
|
* Platform-derived configuration for cross-account/cross-tenant access.
|
|
1155
1187
|
* This is NOT user-specified - it's derived from the Manager's ServiceAccount.
|
|
1156
1188
|
*/
|
|
1157
|
-
managementConfig
|
|
1189
|
+
managementConfig?:
|
|
1190
|
+
| ImportSourceManagementConfigAzure
|
|
1158
1191
|
| ImportSourceManagementConfigAws
|
|
1159
1192
|
| ImportSourceManagementConfigGcp
|
|
1160
|
-
|
|
|
1161
|
-
|
|
|
1193
|
+
| ImportSourceManagementConfigKubernetes
|
|
1194
|
+
| any
|
|
1195
|
+
| null
|
|
1196
|
+
| undefined;
|
|
1162
1197
|
resources: Array<ImportedResource>;
|
|
1163
1198
|
};
|
|
1164
1199
|
|
|
1165
1200
|
/** @internal */
|
|
1166
|
-
export const
|
|
1167
|
-
typeof
|
|
1168
|
-
> = z.enum(
|
|
1201
|
+
export const ImportSourcePlatform$outboundSchema: z.ZodEnum<
|
|
1202
|
+
typeof ImportSourcePlatform
|
|
1203
|
+
> = z.enum(ImportSourcePlatform);
|
|
1169
1204
|
|
|
1170
1205
|
/** @internal */
|
|
1171
1206
|
export const ImportSourceBasePlatform$outboundSchema: z.ZodEnum<
|
|
@@ -1216,6 +1251,7 @@ export function importSourceAwsUnionToJSON(
|
|
|
1216
1251
|
/** @internal */
|
|
1217
1252
|
export type ImportSourceAzure$Outbound = {
|
|
1218
1253
|
keyVaultCertificateId: string;
|
|
1254
|
+
keyVaultResourceId?: string | null | undefined;
|
|
1219
1255
|
};
|
|
1220
1256
|
|
|
1221
1257
|
/** @internal */
|
|
@@ -1224,6 +1260,7 @@ export const ImportSourceAzure$outboundSchema: z.ZodType<
|
|
|
1224
1260
|
ImportSourceAzure
|
|
1225
1261
|
> = z.object({
|
|
1226
1262
|
keyVaultCertificateId: z.string(),
|
|
1263
|
+
keyVaultResourceId: z.nullable(z.string()).optional(),
|
|
1227
1264
|
});
|
|
1228
1265
|
|
|
1229
1266
|
export function importSourceAzureToJSON(
|
|
@@ -2887,6 +2924,7 @@ export const ImportSourceTypeByoVnetAzure$outboundSchema: z.ZodEnum<
|
|
|
2887
2924
|
|
|
2888
2925
|
/** @internal */
|
|
2889
2926
|
export type ImportSourceNetworkByoVnetAzure$Outbound = {
|
|
2927
|
+
application_gateway_subnet_name?: string | null | undefined;
|
|
2890
2928
|
private_subnet_name: string;
|
|
2891
2929
|
public_subnet_name: string;
|
|
2892
2930
|
type: string;
|
|
@@ -2898,12 +2936,14 @@ export const ImportSourceNetworkByoVnetAzure$outboundSchema: z.ZodType<
|
|
|
2898
2936
|
ImportSourceNetworkByoVnetAzure$Outbound,
|
|
2899
2937
|
ImportSourceNetworkByoVnetAzure
|
|
2900
2938
|
> = z.object({
|
|
2939
|
+
applicationGatewaySubnetName: z.nullable(z.string()).optional(),
|
|
2901
2940
|
privateSubnetName: z.string(),
|
|
2902
2941
|
publicSubnetName: z.string(),
|
|
2903
2942
|
type: ImportSourceTypeByoVnetAzure$outboundSchema,
|
|
2904
2943
|
vnetResourceId: z.string(),
|
|
2905
2944
|
}).transform((v) => {
|
|
2906
2945
|
return remap$(v, {
|
|
2946
|
+
applicationGatewaySubnetName: "application_gateway_subnet_name",
|
|
2907
2947
|
privateSubnetName: "private_subnet_name",
|
|
2908
2948
|
publicSubnetName: "public_subnet_name",
|
|
2909
2949
|
vnetResourceId: "vnet_resource_id",
|
|
@@ -3162,9 +3202,14 @@ export function importSourceStackSettingsToJSON(
|
|
|
3162
3202
|
);
|
|
3163
3203
|
}
|
|
3164
3204
|
|
|
3205
|
+
/** @internal */
|
|
3206
|
+
export const ImportSourcePlatformKubernetes$outboundSchema: z.ZodEnum<
|
|
3207
|
+
typeof ImportSourcePlatformKubernetes
|
|
3208
|
+
> = z.enum(ImportSourcePlatformKubernetes);
|
|
3209
|
+
|
|
3165
3210
|
/** @internal */
|
|
3166
3211
|
export type ImportSourceManagementConfigKubernetes$Outbound = {
|
|
3167
|
-
platform:
|
|
3212
|
+
platform: string;
|
|
3168
3213
|
};
|
|
3169
3214
|
|
|
3170
3215
|
/** @internal */
|
|
@@ -3172,7 +3217,7 @@ export const ImportSourceManagementConfigKubernetes$outboundSchema: z.ZodType<
|
|
|
3172
3217
|
ImportSourceManagementConfigKubernetes$Outbound,
|
|
3173
3218
|
ImportSourceManagementConfigKubernetes
|
|
3174
3219
|
> = z.object({
|
|
3175
|
-
platform:
|
|
3220
|
+
platform: ImportSourcePlatformKubernetes$outboundSchema,
|
|
3176
3221
|
});
|
|
3177
3222
|
|
|
3178
3223
|
export function importSourceManagementConfigKubernetesToJSON(
|
|
@@ -3186,12 +3231,17 @@ export function importSourceManagementConfigKubernetesToJSON(
|
|
|
3186
3231
|
);
|
|
3187
3232
|
}
|
|
3188
3233
|
|
|
3234
|
+
/** @internal */
|
|
3235
|
+
export const ImportSourcePlatformAzure$outboundSchema: z.ZodEnum<
|
|
3236
|
+
typeof ImportSourcePlatformAzure
|
|
3237
|
+
> = z.enum(ImportSourcePlatformAzure);
|
|
3238
|
+
|
|
3189
3239
|
/** @internal */
|
|
3190
3240
|
export type ImportSourceManagementConfigAzure$Outbound = {
|
|
3191
3241
|
managingTenantId: string;
|
|
3192
3242
|
oidcIssuer: string;
|
|
3193
3243
|
oidcSubject: string;
|
|
3194
|
-
platform:
|
|
3244
|
+
platform: string;
|
|
3195
3245
|
};
|
|
3196
3246
|
|
|
3197
3247
|
/** @internal */
|
|
@@ -3202,7 +3252,7 @@ export const ImportSourceManagementConfigAzure$outboundSchema: z.ZodType<
|
|
|
3202
3252
|
managingTenantId: z.string(),
|
|
3203
3253
|
oidcIssuer: z.string(),
|
|
3204
3254
|
oidcSubject: z.string(),
|
|
3205
|
-
platform:
|
|
3255
|
+
platform: ImportSourcePlatformAzure$outboundSchema,
|
|
3206
3256
|
});
|
|
3207
3257
|
|
|
3208
3258
|
export function importSourceManagementConfigAzureToJSON(
|
|
@@ -3215,10 +3265,15 @@ export function importSourceManagementConfigAzureToJSON(
|
|
|
3215
3265
|
);
|
|
3216
3266
|
}
|
|
3217
3267
|
|
|
3268
|
+
/** @internal */
|
|
3269
|
+
export const ImportSourcePlatformGcp$outboundSchema: z.ZodEnum<
|
|
3270
|
+
typeof ImportSourcePlatformGcp
|
|
3271
|
+
> = z.enum(ImportSourcePlatformGcp);
|
|
3272
|
+
|
|
3218
3273
|
/** @internal */
|
|
3219
3274
|
export type ImportSourceManagementConfigGcp$Outbound = {
|
|
3220
3275
|
serviceAccountEmail: string;
|
|
3221
|
-
platform:
|
|
3276
|
+
platform: string;
|
|
3222
3277
|
};
|
|
3223
3278
|
|
|
3224
3279
|
/** @internal */
|
|
@@ -3227,7 +3282,7 @@ export const ImportSourceManagementConfigGcp$outboundSchema: z.ZodType<
|
|
|
3227
3282
|
ImportSourceManagementConfigGcp
|
|
3228
3283
|
> = z.object({
|
|
3229
3284
|
serviceAccountEmail: z.string(),
|
|
3230
|
-
platform:
|
|
3285
|
+
platform: ImportSourcePlatformGcp$outboundSchema,
|
|
3231
3286
|
});
|
|
3232
3287
|
|
|
3233
3288
|
export function importSourceManagementConfigGcpToJSON(
|
|
@@ -3240,10 +3295,15 @@ export function importSourceManagementConfigGcpToJSON(
|
|
|
3240
3295
|
);
|
|
3241
3296
|
}
|
|
3242
3297
|
|
|
3298
|
+
/** @internal */
|
|
3299
|
+
export const ImportSourcePlatformAws$outboundSchema: z.ZodEnum<
|
|
3300
|
+
typeof ImportSourcePlatformAws
|
|
3301
|
+
> = z.enum(ImportSourcePlatformAws);
|
|
3302
|
+
|
|
3243
3303
|
/** @internal */
|
|
3244
3304
|
export type ImportSourceManagementConfigAws$Outbound = {
|
|
3245
3305
|
managingRoleArn: string;
|
|
3246
|
-
platform:
|
|
3306
|
+
platform: string;
|
|
3247
3307
|
};
|
|
3248
3308
|
|
|
3249
3309
|
/** @internal */
|
|
@@ -3252,7 +3312,7 @@ export const ImportSourceManagementConfigAws$outboundSchema: z.ZodType<
|
|
|
3252
3312
|
ImportSourceManagementConfigAws
|
|
3253
3313
|
> = z.object({
|
|
3254
3314
|
managingRoleArn: z.string(),
|
|
3255
|
-
platform:
|
|
3315
|
+
platform: ImportSourcePlatformAws$outboundSchema,
|
|
3256
3316
|
});
|
|
3257
3317
|
|
|
3258
3318
|
export function importSourceManagementConfigAwsToJSON(
|
|
@@ -3267,20 +3327,22 @@ export function importSourceManagementConfigAwsToJSON(
|
|
|
3267
3327
|
|
|
3268
3328
|
/** @internal */
|
|
3269
3329
|
export type ImportSourceManagementConfigUnion$Outbound =
|
|
3330
|
+
| ImportSourceManagementConfigAzure$Outbound
|
|
3270
3331
|
| ImportSourceManagementConfigAws$Outbound
|
|
3271
3332
|
| ImportSourceManagementConfigGcp$Outbound
|
|
3272
|
-
|
|
|
3273
|
-
|
|
|
3333
|
+
| ImportSourceManagementConfigKubernetes$Outbound
|
|
3334
|
+
| any;
|
|
3274
3335
|
|
|
3275
3336
|
/** @internal */
|
|
3276
3337
|
export const ImportSourceManagementConfigUnion$outboundSchema: z.ZodType<
|
|
3277
3338
|
ImportSourceManagementConfigUnion$Outbound,
|
|
3278
3339
|
ImportSourceManagementConfigUnion
|
|
3279
3340
|
> = z.union([
|
|
3341
|
+
z.lazy(() => ImportSourceManagementConfigAzure$outboundSchema),
|
|
3280
3342
|
z.lazy(() => ImportSourceManagementConfigAws$outboundSchema),
|
|
3281
3343
|
z.lazy(() => ImportSourceManagementConfigGcp$outboundSchema),
|
|
3282
|
-
z.lazy(() => ImportSourceManagementConfigAzure$outboundSchema),
|
|
3283
3344
|
z.lazy(() => ImportSourceManagementConfigKubernetes$outboundSchema),
|
|
3345
|
+
z.any(),
|
|
3284
3346
|
]);
|
|
3285
3347
|
|
|
3286
3348
|
export function importSourceManagementConfigUnionToJSON(
|
|
@@ -3307,11 +3369,14 @@ export type ImportSource$Outbound = {
|
|
|
3307
3369
|
setupFingerprint: string;
|
|
3308
3370
|
setupFingerprintVersion: number;
|
|
3309
3371
|
stackSettings: ImportSourceStackSettings$Outbound;
|
|
3310
|
-
managementConfig
|
|
3372
|
+
managementConfig?:
|
|
3373
|
+
| ImportSourceManagementConfigAzure$Outbound
|
|
3311
3374
|
| ImportSourceManagementConfigAws$Outbound
|
|
3312
3375
|
| ImportSourceManagementConfigGcp$Outbound
|
|
3313
|
-
|
|
|
3314
|
-
|
|
|
3376
|
+
| ImportSourceManagementConfigKubernetes$Outbound
|
|
3377
|
+
| any
|
|
3378
|
+
| null
|
|
3379
|
+
| undefined;
|
|
3315
3380
|
resources: Array<ImportedResource$Outbound>;
|
|
3316
3381
|
};
|
|
3317
3382
|
|
|
@@ -3324,7 +3389,7 @@ export const ImportSource$outboundSchema: z.ZodType<
|
|
|
3324
3389
|
resourcePrefix: z.string(),
|
|
3325
3390
|
sourceKind: ImportSourceKind$outboundSchema.optional(),
|
|
3326
3391
|
releaseId: z.string().optional(),
|
|
3327
|
-
platform:
|
|
3392
|
+
platform: ImportSourcePlatform$outboundSchema,
|
|
3328
3393
|
basePlatform: ImportSourceBasePlatform$outboundSchema.optional(),
|
|
3329
3394
|
region: z.string(),
|
|
3330
3395
|
setupTarget: z.string(),
|
|
@@ -3332,12 +3397,15 @@ export const ImportSource$outboundSchema: z.ZodType<
|
|
|
3332
3397
|
setupFingerprint: z.string(),
|
|
3333
3398
|
setupFingerprintVersion: z.int(),
|
|
3334
3399
|
stackSettings: z.lazy(() => ImportSourceStackSettings$outboundSchema),
|
|
3335
|
-
managementConfig: z.
|
|
3336
|
-
z.
|
|
3337
|
-
|
|
3338
|
-
|
|
3339
|
-
|
|
3340
|
-
|
|
3400
|
+
managementConfig: z.nullable(
|
|
3401
|
+
z.union([
|
|
3402
|
+
z.lazy(() => ImportSourceManagementConfigAzure$outboundSchema),
|
|
3403
|
+
z.lazy(() => ImportSourceManagementConfigAws$outboundSchema),
|
|
3404
|
+
z.lazy(() => ImportSourceManagementConfigGcp$outboundSchema),
|
|
3405
|
+
z.lazy(() => ImportSourceManagementConfigKubernetes$outboundSchema),
|
|
3406
|
+
z.any(),
|
|
3407
|
+
]),
|
|
3408
|
+
).optional(),
|
|
3341
3409
|
resources: z.array(ImportedResource$outboundSchema),
|
|
3342
3410
|
});
|
|
3343
3411
|
|
package/src/models/index.ts
CHANGED
|
@@ -74,6 +74,9 @@ export * from "./listcommanddeploymentsresponse.js";
|
|
|
74
74
|
export * from "./listcommandnamesresponse.js";
|
|
75
75
|
export * from "./manager.js";
|
|
76
76
|
export * from "./managerdeployment.js";
|
|
77
|
+
export * from "./managerdomainbinding.js";
|
|
78
|
+
export * from "./managerdomainbindingresponse.js";
|
|
79
|
+
export * from "./managerdomainbindingstatus.js";
|
|
77
80
|
export * from "./managerheartbeatrequest.js";
|
|
78
81
|
export * from "./managerheartbeatresponse.js";
|
|
79
82
|
export * from "./managermanagementconfigs.js";
|
|
@@ -86,6 +89,7 @@ export * from "./membership.js";
|
|
|
86
89
|
export * from "./newdeploymentrequest.js";
|
|
87
90
|
export * from "./newmanagerrequest.js";
|
|
88
91
|
export * from "./package.js";
|
|
92
|
+
export * from "./packagedomain.js";
|
|
89
93
|
export * from "./persistimporteddeploymentrequest.js";
|
|
90
94
|
export * from "./pinreleaserequest.js";
|
|
91
95
|
export * from "./planid.js";
|
|
@@ -124,6 +128,7 @@ export * from "./updateapikeyrequest.js";
|
|
|
124
128
|
export * from "./updatecommandrequest.js";
|
|
125
129
|
export * from "./updatedeploymentenvironmentvariablesrequest.js";
|
|
126
130
|
export * from "./updatedeploymentgrouprequest.js";
|
|
131
|
+
export * from "./updatemanagerdomainbinding.js";
|
|
127
132
|
export * from "./updatemanagerrequest.js";
|
|
128
133
|
export * from "./updateproject.js";
|
|
129
134
|
export * from "./updateprojectgcpoauthprovider.js";
|
|
@@ -0,0 +1,200 @@
|
|
|
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 { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import {
|
|
9
|
+
DeploymentPortalManagedDnsRecord,
|
|
10
|
+
DeploymentPortalManagedDnsRecord$inboundSchema,
|
|
11
|
+
} from "./deploymentportalmanageddnsrecord.js";
|
|
12
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
13
|
+
import {
|
|
14
|
+
ManagerDomainBindingStatus,
|
|
15
|
+
ManagerDomainBindingStatus$inboundSchema,
|
|
16
|
+
} from "./managerdomainbindingstatus.js";
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Canonical error container that provides a structured way to represent errors
|
|
20
|
+
*
|
|
21
|
+
* @remarks
|
|
22
|
+
* with rich metadata including error codes, human-readable messages, context,
|
|
23
|
+
* and chaining capabilities for error propagation.
|
|
24
|
+
*
|
|
25
|
+
* This struct is designed to be both machine-readable and user-friendly,
|
|
26
|
+
* supporting serialization for API responses and detailed error reporting
|
|
27
|
+
* in distributed systems.
|
|
28
|
+
*/
|
|
29
|
+
export type ManagerDomainBindingError = {
|
|
30
|
+
/**
|
|
31
|
+
* A unique identifier for the type of error.
|
|
32
|
+
*
|
|
33
|
+
* @remarks
|
|
34
|
+
*
|
|
35
|
+
* This should be a short, machine-readable string that can be used
|
|
36
|
+
* by clients to programmatically handle different error types.
|
|
37
|
+
* Examples: "NOT_FOUND", "VALIDATION_ERROR", "TIMEOUT"
|
|
38
|
+
*/
|
|
39
|
+
code: string;
|
|
40
|
+
/**
|
|
41
|
+
* Additional diagnostic information about the error context.
|
|
42
|
+
*
|
|
43
|
+
* @remarks
|
|
44
|
+
*
|
|
45
|
+
* This optional field can contain structured data providing more details
|
|
46
|
+
* about the error, such as validation errors, request parameters that
|
|
47
|
+
* caused the issue, or other relevant context information.
|
|
48
|
+
*/
|
|
49
|
+
context?: any | null | undefined;
|
|
50
|
+
/**
|
|
51
|
+
* Optional human-facing remediation hint.
|
|
52
|
+
*/
|
|
53
|
+
hint?: string | null | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* HTTP status code for this error.
|
|
56
|
+
*
|
|
57
|
+
* @remarks
|
|
58
|
+
*
|
|
59
|
+
* Used when converting the error to an HTTP response. If None, falls back to
|
|
60
|
+
* the error type's default status code or 500.
|
|
61
|
+
*/
|
|
62
|
+
httpStatusCode?: number | null | undefined;
|
|
63
|
+
/**
|
|
64
|
+
* Indicates if this is an internal error that should not be exposed to users.
|
|
65
|
+
*
|
|
66
|
+
* @remarks
|
|
67
|
+
*
|
|
68
|
+
* When `true`, this error contains sensitive information or implementation
|
|
69
|
+
* details that should not be shown to end-users. Such errors should be
|
|
70
|
+
* logged for debugging but replaced with generic error messages in responses.
|
|
71
|
+
*/
|
|
72
|
+
internal: boolean;
|
|
73
|
+
/**
|
|
74
|
+
* Human-readable error message.
|
|
75
|
+
*
|
|
76
|
+
* @remarks
|
|
77
|
+
*
|
|
78
|
+
* This message should be clear and actionable for developers or end-users,
|
|
79
|
+
* providing context about what went wrong and potentially how to fix it.
|
|
80
|
+
*/
|
|
81
|
+
message: string;
|
|
82
|
+
/**
|
|
83
|
+
* Indicates whether the operation that caused the error should be retried.
|
|
84
|
+
*
|
|
85
|
+
* @remarks
|
|
86
|
+
*
|
|
87
|
+
* When `true`, the error is transient and the operation might succeed
|
|
88
|
+
* if attempted again. When `false`, retrying the same operation is
|
|
89
|
+
* unlikely to succeed without changes.
|
|
90
|
+
*/
|
|
91
|
+
retryable: boolean;
|
|
92
|
+
/**
|
|
93
|
+
* The underlying error that caused this error, creating an error chain.
|
|
94
|
+
*
|
|
95
|
+
* @remarks
|
|
96
|
+
*
|
|
97
|
+
* This allows for proper error propagation and debugging by maintaining
|
|
98
|
+
* the full context of how an error occurred through multiple layers
|
|
99
|
+
* of an application.
|
|
100
|
+
*/
|
|
101
|
+
source?: any | null | undefined;
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
export type ManagerDomainBinding = {
|
|
105
|
+
/**
|
|
106
|
+
* Unique identifier for the manager domain binding.
|
|
107
|
+
*/
|
|
108
|
+
id: string;
|
|
109
|
+
/**
|
|
110
|
+
* Unique identifier for the workspace.
|
|
111
|
+
*/
|
|
112
|
+
workspaceId: string;
|
|
113
|
+
managerId: string;
|
|
114
|
+
/**
|
|
115
|
+
* Unique identifier for the domain.
|
|
116
|
+
*/
|
|
117
|
+
domainId: string;
|
|
118
|
+
hostname: string;
|
|
119
|
+
status: ManagerDomainBindingStatus;
|
|
120
|
+
managedDnsRecords: Array<DeploymentPortalManagedDnsRecord>;
|
|
121
|
+
/**
|
|
122
|
+
* Canonical error container that provides a structured way to represent errors
|
|
123
|
+
*
|
|
124
|
+
* @remarks
|
|
125
|
+
* with rich metadata including error codes, human-readable messages, context,
|
|
126
|
+
* and chaining capabilities for error propagation.
|
|
127
|
+
*
|
|
128
|
+
* This struct is designed to be both machine-readable and user-friendly,
|
|
129
|
+
* supporting serialization for API responses and detailed error reporting
|
|
130
|
+
* in distributed systems.
|
|
131
|
+
*/
|
|
132
|
+
error?: ManagerDomainBindingError | null | undefined;
|
|
133
|
+
lockedAt?: Date | null | undefined;
|
|
134
|
+
lockedBy?: string | null | undefined;
|
|
135
|
+
retryAttempts: number;
|
|
136
|
+
nextStepAfter?: Date | null | undefined;
|
|
137
|
+
createdAt: Date;
|
|
138
|
+
updatedAt: Date;
|
|
139
|
+
};
|
|
140
|
+
|
|
141
|
+
/** @internal */
|
|
142
|
+
export const ManagerDomainBindingError$inboundSchema: z.ZodType<
|
|
143
|
+
ManagerDomainBindingError,
|
|
144
|
+
unknown
|
|
145
|
+
> = z.object({
|
|
146
|
+
code: z.string(),
|
|
147
|
+
context: z.nullable(z.any()).optional(),
|
|
148
|
+
hint: z.nullable(z.string()).optional(),
|
|
149
|
+
httpStatusCode: z.nullable(z.int()).optional(),
|
|
150
|
+
internal: z.boolean(),
|
|
151
|
+
message: z.string(),
|
|
152
|
+
retryable: z.boolean().default(false),
|
|
153
|
+
source: z.nullable(z.any()).optional(),
|
|
154
|
+
});
|
|
155
|
+
|
|
156
|
+
export function managerDomainBindingErrorFromJSON(
|
|
157
|
+
jsonString: string,
|
|
158
|
+
): SafeParseResult<ManagerDomainBindingError, SDKValidationError> {
|
|
159
|
+
return safeParse(
|
|
160
|
+
jsonString,
|
|
161
|
+
(x) => ManagerDomainBindingError$inboundSchema.parse(JSON.parse(x)),
|
|
162
|
+
`Failed to parse 'ManagerDomainBindingError' from JSON`,
|
|
163
|
+
);
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
/** @internal */
|
|
167
|
+
export const ManagerDomainBinding$inboundSchema: z.ZodType<
|
|
168
|
+
ManagerDomainBinding,
|
|
169
|
+
unknown
|
|
170
|
+
> = z.object({
|
|
171
|
+
id: z.string(),
|
|
172
|
+
workspaceId: z.string(),
|
|
173
|
+
managerId: z.string(),
|
|
174
|
+
domainId: z.string(),
|
|
175
|
+
hostname: z.string(),
|
|
176
|
+
status: ManagerDomainBindingStatus$inboundSchema,
|
|
177
|
+
managedDnsRecords: z.array(DeploymentPortalManagedDnsRecord$inboundSchema),
|
|
178
|
+
error: z.nullable(z.lazy(() => ManagerDomainBindingError$inboundSchema))
|
|
179
|
+
.optional(),
|
|
180
|
+
lockedAt: z.nullable(
|
|
181
|
+
z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
182
|
+
).optional(),
|
|
183
|
+
lockedBy: z.nullable(z.string()).optional(),
|
|
184
|
+
retryAttempts: z.int(),
|
|
185
|
+
nextStepAfter: z.nullable(
|
|
186
|
+
z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
187
|
+
).optional(),
|
|
188
|
+
createdAt: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
189
|
+
updatedAt: z.iso.datetime({ offset: true }).transform(v => new Date(v)),
|
|
190
|
+
});
|
|
191
|
+
|
|
192
|
+
export function managerDomainBindingFromJSON(
|
|
193
|
+
jsonString: string,
|
|
194
|
+
): SafeParseResult<ManagerDomainBinding, SDKValidationError> {
|
|
195
|
+
return safeParse(
|
|
196
|
+
jsonString,
|
|
197
|
+
(x) => ManagerDomainBinding$inboundSchema.parse(JSON.parse(x)),
|
|
198
|
+
`Failed to parse 'ManagerDomainBinding' from JSON`,
|
|
199
|
+
);
|
|
200
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
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 { Result as SafeParseResult } from "../types/fp.js";
|
|
8
|
+
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
ManagerDomainBinding,
|
|
11
|
+
ManagerDomainBinding$inboundSchema,
|
|
12
|
+
} from "./managerdomainbinding.js";
|
|
13
|
+
|
|
14
|
+
export type ManagerDomainBindingResponse = {
|
|
15
|
+
managerDomainBinding: ManagerDomainBinding | null;
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
/** @internal */
|
|
19
|
+
export const ManagerDomainBindingResponse$inboundSchema: z.ZodType<
|
|
20
|
+
ManagerDomainBindingResponse,
|
|
21
|
+
unknown
|
|
22
|
+
> = z.object({
|
|
23
|
+
managerDomainBinding: z.nullable(ManagerDomainBinding$inboundSchema),
|
|
24
|
+
});
|
|
25
|
+
|
|
26
|
+
export function managerDomainBindingResponseFromJSON(
|
|
27
|
+
jsonString: string,
|
|
28
|
+
): SafeParseResult<ManagerDomainBindingResponse, SDKValidationError> {
|
|
29
|
+
return safeParse(
|
|
30
|
+
jsonString,
|
|
31
|
+
(x) => ManagerDomainBindingResponse$inboundSchema.parse(JSON.parse(x)),
|
|
32
|
+
`Failed to parse 'ManagerDomainBindingResponse' from JSON`,
|
|
33
|
+
);
|
|
34
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
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 ManagerDomainBindingStatus = {
|
|
9
|
+
WaitingForDomain: "waiting-for-domain",
|
|
10
|
+
WaitingForDeployment: "waiting-for-deployment",
|
|
11
|
+
PendingEdge: "pending-edge",
|
|
12
|
+
PendingHealth: "pending-health",
|
|
13
|
+
Active: "active",
|
|
14
|
+
Failed: "failed",
|
|
15
|
+
Deleting: "deleting",
|
|
16
|
+
} as const;
|
|
17
|
+
export type ManagerDomainBindingStatus = ClosedEnum<
|
|
18
|
+
typeof ManagerDomainBindingStatus
|
|
19
|
+
>;
|
|
20
|
+
|
|
21
|
+
/** @internal */
|
|
22
|
+
export const ManagerDomainBindingStatus$inboundSchema: z.ZodEnum<
|
|
23
|
+
typeof ManagerDomainBindingStatus
|
|
24
|
+
> = z.enum(ManagerDomainBindingStatus);
|