@alienplatform/platform-api 3.3.19 → 3.3.20
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/FUNCTIONS.md +1 -1
- package/README.md +4 -0
- package/esm/funcs/deploymentsRetry.js +2 -2
- package/esm/funcs/deploymentsRetry.js.map +1 -1
- package/esm/funcs/operationsApproveAccessRequest.d.ts +15 -0
- package/esm/funcs/operationsApproveAccessRequest.d.ts.map +1 -0
- package/esm/funcs/operationsApproveAccessRequest.js +89 -0
- package/esm/funcs/operationsApproveAccessRequest.js.map +1 -0
- package/esm/funcs/operationsDenyAccessRequest.d.ts +15 -0
- package/esm/funcs/operationsDenyAccessRequest.d.ts.map +1 -0
- package/esm/funcs/operationsDenyAccessRequest.js +89 -0
- package/esm/funcs/operationsDenyAccessRequest.js.map +1 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/lib/config.js.map +1 -1
- package/esm/models/createmanagerresponse.d.ts +0 -63
- package/esm/models/createmanagerresponse.d.ts.map +1 -1
- package/esm/models/createmanagerresponse.js +0 -39
- package/esm/models/createmanagerresponse.js.map +1 -1
- package/esm/models/createsetupregistrationoperationrequest.d.ts +0 -28
- package/esm/models/createsetupregistrationoperationrequest.d.ts.map +1 -1
- package/esm/models/createsetupregistrationoperationrequest.js +0 -19
- package/esm/models/createsetupregistrationoperationrequest.js.map +1 -1
- package/esm/models/deployment.d.ts +0 -21
- package/esm/models/deployment.d.ts.map +1 -1
- package/esm/models/deployment.js +0 -13
- package/esm/models/deployment.js.map +1 -1
- package/esm/models/deploymentdetailresponse.d.ts +0 -21
- package/esm/models/deploymentdetailresponse.d.ts.map +1 -1
- package/esm/models/deploymentdetailresponse.js +0 -19
- package/esm/models/deploymentdetailresponse.js.map +1 -1
- package/esm/models/deploymentsetupstacksettingspolicy.d.ts +0 -34
- package/esm/models/deploymentsetupstacksettingspolicy.d.ts.map +1 -1
- package/esm/models/deploymentsetupstacksettingspolicy.js +0 -38
- package/esm/models/deploymentsetupstacksettingspolicy.js.map +1 -1
- package/esm/models/importsource.d.ts +0 -28
- package/esm/models/importsource.d.ts.map +1 -1
- package/esm/models/importsource.js +0 -13
- package/esm/models/importsource.js.map +1 -1
- package/esm/models/managerretryresponse.d.ts +0 -63
- package/esm/models/managerretryresponse.d.ts.map +1 -1
- package/esm/models/managerretryresponse.js +0 -39
- package/esm/models/managerretryresponse.js.map +1 -1
- package/esm/models/newdeploymentrequest.d.ts +0 -28
- package/esm/models/newdeploymentrequest.d.ts.map +1 -1
- package/esm/models/newdeploymentrequest.js +0 -13
- package/esm/models/newdeploymentrequest.js.map +1 -1
- package/esm/models/operations/approveaccessrequest.d.ts +115 -0
- package/esm/models/operations/approveaccessrequest.d.ts.map +1 -0
- package/esm/models/operations/approveaccessrequest.js +89 -0
- package/esm/models/operations/approveaccessrequest.js.map +1 -0
- package/esm/models/operations/denyaccessrequest.d.ts +112 -0
- package/esm/models/operations/denyaccessrequest.d.ts.map +1 -0
- package/esm/models/operations/denyaccessrequest.js +87 -0
- package/esm/models/operations/denyaccessrequest.js.map +1 -0
- package/esm/models/operations/getresourcedeploymentdetail.d.ts +107 -21
- package/esm/models/operations/getresourcedeploymentdetail.d.ts.map +1 -1
- package/esm/models/operations/getresourcedeploymentdetail.js +86 -13
- 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/plandeploymentcompute.d.ts +0 -28
- package/esm/models/operations/plandeploymentcompute.d.ts.map +1 -1
- package/esm/models/operations/plandeploymentcompute.js +0 -13
- package/esm/models/operations/plandeploymentcompute.js.map +1 -1
- package/esm/models/operations/preparedeploymentstack.d.ts +0 -28
- package/esm/models/operations/preparedeploymentstack.d.ts.map +1 -1
- package/esm/models/operations/preparedeploymentstack.js +0 -13
- package/esm/models/operations/preparedeploymentstack.js.map +1 -1
- package/esm/models/package.d.ts +9 -3
- package/esm/models/package.d.ts.map +1 -1
- package/esm/models/package.js.map +1 -1
- package/esm/models/persistimporteddeploymentrequest.d.ts +0 -28
- package/esm/models/persistimporteddeploymentrequest.d.ts.map +1 -1
- package/esm/models/persistimporteddeploymentrequest.js +0 -19
- package/esm/models/persistimporteddeploymentrequest.js.map +1 -1
- package/esm/models/syncacquirerequest.d.ts +5 -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/syncacquireresponsedeployment.d.ts +8 -0
- package/esm/models/syncacquireresponsedeployment.d.ts.map +1 -1
- package/esm/models/syncacquireresponsedeployment.js +2 -0
- package/esm/models/syncacquireresponsedeployment.js.map +1 -1
- package/esm/models/synclistresponse.d.ts +0 -21
- package/esm/models/synclistresponse.d.ts.map +1 -1
- package/esm/models/synclistresponse.js +0 -13
- package/esm/models/synclistresponse.js.map +1 -1
- package/esm/models/syncreconcilerequest.d.ts +150 -31
- package/esm/models/syncreconcilerequest.d.ts.map +1 -1
- package/esm/models/syncreconcilerequest.js +86 -12
- package/esm/models/syncreconcilerequest.js.map +1 -1
- package/esm/models/syncreleaserequest.d.ts +10 -0
- package/esm/models/syncreleaserequest.d.ts.map +1 -1
- package/esm/models/syncreleaserequest.js +2 -0
- package/esm/models/syncreleaserequest.js.map +1 -1
- package/esm/models/syncrenewrequest.d.ts +28 -0
- package/esm/models/syncrenewrequest.d.ts.map +1 -1
- package/esm/models/syncrenewrequest.js +10 -0
- package/esm/models/syncrenewrequest.js.map +1 -1
- package/esm/sdk/operations.d.ts +8 -0
- package/esm/sdk/operations.d.ts.map +1 -1
- package/esm/sdk/operations.js +14 -0
- package/esm/sdk/operations.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/deploymentsRetry.ts +2 -2
- package/src/funcs/operationsApproveAccessRequest.ts +179 -0
- package/src/funcs/operationsDenyAccessRequest.ts +178 -0
- package/src/lib/config.ts +2 -2
- package/src/models/createmanagerresponse.ts +0 -162
- package/src/models/createsetupregistrationoperationrequest.ts +0 -83
- package/src/models/deployment.ts +0 -52
- package/src/models/deploymentdetailresponse.ts +0 -62
- package/src/models/deploymentsetupstacksettingspolicy.ts +0 -124
- package/src/models/importsource.ts +0 -59
- package/src/models/managerretryresponse.ts +0 -162
- package/src/models/newdeploymentrequest.ts +0 -63
- package/src/models/operations/approveaccessrequest.ts +237 -0
- package/src/models/operations/denyaccessrequest.ts +228 -0
- package/src/models/operations/getresourcedeploymentdetail.ts +203 -36
- package/src/models/operations/index.ts +2 -0
- package/src/models/operations/plandeploymentcompute.ts +0 -63
- package/src/models/operations/preparedeploymentstack.ts +0 -63
- package/src/models/package.ts +9 -3
- package/src/models/persistimporteddeploymentrequest.ts +0 -75
- package/src/models/syncacquirerequest.ts +6 -0
- package/src/models/syncacquireresponsedeployment.ts +10 -0
- package/src/models/synclistresponse.ts +0 -54
- package/src/models/syncreconcilerequest.ts +251 -40
- package/src/models/syncreleaserequest.ts +12 -0
- package/src/models/syncrenewrequest.ts +39 -0
- package/src/sdk/operations.ts +30 -0
- package/src/sdk/resources.ts +3 -0
|
@@ -0,0 +1,228 @@
|
|
|
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 { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
9
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
10
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
|
+
import * as models from "../index.js";
|
|
12
|
+
|
|
13
|
+
export type DenyAccessRequestGlobals = {
|
|
14
|
+
/**
|
|
15
|
+
* Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client.
|
|
16
|
+
*/
|
|
17
|
+
workspace?: string | undefined;
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export type DenyAccessRequestRequestBody = {
|
|
21
|
+
method: string;
|
|
22
|
+
actorId: string;
|
|
23
|
+
source?: { [k: string]: any | null } | undefined;
|
|
24
|
+
};
|
|
25
|
+
|
|
26
|
+
export type DenyAccessRequestRequest = {
|
|
27
|
+
id: string;
|
|
28
|
+
requestBody?: DenyAccessRequestRequestBody | undefined;
|
|
29
|
+
};
|
|
30
|
+
|
|
31
|
+
export type DenyAccessRequestDeployment = {
|
|
32
|
+
id: string;
|
|
33
|
+
name: string;
|
|
34
|
+
deploymentGroup?: models.DeploymentGroupInfo | undefined;
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* How risky an operation is (declared by the plugin metadata).
|
|
39
|
+
*/
|
|
40
|
+
export const DenyAccessRequestTier = {
|
|
41
|
+
ReadOnly: "read-only",
|
|
42
|
+
Mutating: "mutating",
|
|
43
|
+
Destructive: "destructive",
|
|
44
|
+
} as const;
|
|
45
|
+
/**
|
|
46
|
+
* How risky an operation is (declared by the plugin metadata).
|
|
47
|
+
*/
|
|
48
|
+
export type DenyAccessRequestTier = ClosedEnum<typeof DenyAccessRequestTier>;
|
|
49
|
+
|
|
50
|
+
export type DenyAccessRequestCommand = {
|
|
51
|
+
command: string;
|
|
52
|
+
summary: string;
|
|
53
|
+
params?: any | null | undefined;
|
|
54
|
+
/**
|
|
55
|
+
* How risky an operation is (declared by the plugin metadata).
|
|
56
|
+
*/
|
|
57
|
+
tier?: DenyAccessRequestTier | undefined;
|
|
58
|
+
};
|
|
59
|
+
|
|
60
|
+
/**
|
|
61
|
+
* How risky an operation is (declared by the plugin metadata).
|
|
62
|
+
*/
|
|
63
|
+
export const DenyAccessRequestMaxRisk = {
|
|
64
|
+
ReadOnly: "read-only",
|
|
65
|
+
Mutating: "mutating",
|
|
66
|
+
Destructive: "destructive",
|
|
67
|
+
} as const;
|
|
68
|
+
/**
|
|
69
|
+
* How risky an operation is (declared by the plugin metadata).
|
|
70
|
+
*/
|
|
71
|
+
export type DenyAccessRequestMaxRisk = ClosedEnum<
|
|
72
|
+
typeof DenyAccessRequestMaxRisk
|
|
73
|
+
>;
|
|
74
|
+
|
|
75
|
+
/**
|
|
76
|
+
* The rejected access request.
|
|
77
|
+
*/
|
|
78
|
+
export type DenyAccessRequestResponse = {
|
|
79
|
+
id: string;
|
|
80
|
+
deploymentId: string;
|
|
81
|
+
deployment?: DenyAccessRequestDeployment | undefined;
|
|
82
|
+
remediationPlanId: string | null;
|
|
83
|
+
title: string;
|
|
84
|
+
reason: string | null;
|
|
85
|
+
commands: Array<DenyAccessRequestCommand>;
|
|
86
|
+
operationPattern: string | null;
|
|
87
|
+
/**
|
|
88
|
+
* How risky an operation is (declared by the plugin metadata).
|
|
89
|
+
*/
|
|
90
|
+
maxRisk: DenyAccessRequestMaxRisk | null;
|
|
91
|
+
status: models.AccessRequestStatus;
|
|
92
|
+
approvedUntil: string | null;
|
|
93
|
+
};
|
|
94
|
+
|
|
95
|
+
/** @internal */
|
|
96
|
+
export type DenyAccessRequestRequestBody$Outbound = {
|
|
97
|
+
method: string;
|
|
98
|
+
actorId: string;
|
|
99
|
+
source?: { [k: string]: any | null } | undefined;
|
|
100
|
+
};
|
|
101
|
+
|
|
102
|
+
/** @internal */
|
|
103
|
+
export const DenyAccessRequestRequestBody$outboundSchema: z.ZodType<
|
|
104
|
+
DenyAccessRequestRequestBody$Outbound,
|
|
105
|
+
DenyAccessRequestRequestBody
|
|
106
|
+
> = z.object({
|
|
107
|
+
method: z.string(),
|
|
108
|
+
actorId: z.string(),
|
|
109
|
+
source: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
110
|
+
});
|
|
111
|
+
|
|
112
|
+
export function denyAccessRequestRequestBodyToJSON(
|
|
113
|
+
denyAccessRequestRequestBody: DenyAccessRequestRequestBody,
|
|
114
|
+
): string {
|
|
115
|
+
return JSON.stringify(
|
|
116
|
+
DenyAccessRequestRequestBody$outboundSchema.parse(
|
|
117
|
+
denyAccessRequestRequestBody,
|
|
118
|
+
),
|
|
119
|
+
);
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
/** @internal */
|
|
123
|
+
export type DenyAccessRequestRequest$Outbound = {
|
|
124
|
+
id: string;
|
|
125
|
+
RequestBody?: DenyAccessRequestRequestBody$Outbound | undefined;
|
|
126
|
+
};
|
|
127
|
+
|
|
128
|
+
/** @internal */
|
|
129
|
+
export const DenyAccessRequestRequest$outboundSchema: z.ZodType<
|
|
130
|
+
DenyAccessRequestRequest$Outbound,
|
|
131
|
+
DenyAccessRequestRequest
|
|
132
|
+
> = z.object({
|
|
133
|
+
id: z.string(),
|
|
134
|
+
requestBody: z.lazy(() => DenyAccessRequestRequestBody$outboundSchema)
|
|
135
|
+
.optional(),
|
|
136
|
+
}).transform((v) => {
|
|
137
|
+
return remap$(v, {
|
|
138
|
+
requestBody: "RequestBody",
|
|
139
|
+
});
|
|
140
|
+
});
|
|
141
|
+
|
|
142
|
+
export function denyAccessRequestRequestToJSON(
|
|
143
|
+
denyAccessRequestRequest: DenyAccessRequestRequest,
|
|
144
|
+
): string {
|
|
145
|
+
return JSON.stringify(
|
|
146
|
+
DenyAccessRequestRequest$outboundSchema.parse(denyAccessRequestRequest),
|
|
147
|
+
);
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
/** @internal */
|
|
151
|
+
export const DenyAccessRequestDeployment$inboundSchema: z.ZodType<
|
|
152
|
+
DenyAccessRequestDeployment,
|
|
153
|
+
unknown
|
|
154
|
+
> = z.object({
|
|
155
|
+
id: z.string(),
|
|
156
|
+
name: z.string(),
|
|
157
|
+
deploymentGroup: models.DeploymentGroupInfo$inboundSchema.optional(),
|
|
158
|
+
});
|
|
159
|
+
|
|
160
|
+
export function denyAccessRequestDeploymentFromJSON(
|
|
161
|
+
jsonString: string,
|
|
162
|
+
): SafeParseResult<DenyAccessRequestDeployment, SDKValidationError> {
|
|
163
|
+
return safeParse(
|
|
164
|
+
jsonString,
|
|
165
|
+
(x) => DenyAccessRequestDeployment$inboundSchema.parse(JSON.parse(x)),
|
|
166
|
+
`Failed to parse 'DenyAccessRequestDeployment' from JSON`,
|
|
167
|
+
);
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
/** @internal */
|
|
171
|
+
export const DenyAccessRequestTier$inboundSchema: z.ZodEnum<
|
|
172
|
+
typeof DenyAccessRequestTier
|
|
173
|
+
> = z.enum(DenyAccessRequestTier);
|
|
174
|
+
|
|
175
|
+
/** @internal */
|
|
176
|
+
export const DenyAccessRequestCommand$inboundSchema: z.ZodType<
|
|
177
|
+
DenyAccessRequestCommand,
|
|
178
|
+
unknown
|
|
179
|
+
> = z.object({
|
|
180
|
+
command: z.string(),
|
|
181
|
+
summary: z.string(),
|
|
182
|
+
params: z.nullable(z.any()).optional(),
|
|
183
|
+
tier: DenyAccessRequestTier$inboundSchema.optional(),
|
|
184
|
+
});
|
|
185
|
+
|
|
186
|
+
export function denyAccessRequestCommandFromJSON(
|
|
187
|
+
jsonString: string,
|
|
188
|
+
): SafeParseResult<DenyAccessRequestCommand, SDKValidationError> {
|
|
189
|
+
return safeParse(
|
|
190
|
+
jsonString,
|
|
191
|
+
(x) => DenyAccessRequestCommand$inboundSchema.parse(JSON.parse(x)),
|
|
192
|
+
`Failed to parse 'DenyAccessRequestCommand' from JSON`,
|
|
193
|
+
);
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
/** @internal */
|
|
197
|
+
export const DenyAccessRequestMaxRisk$inboundSchema: z.ZodEnum<
|
|
198
|
+
typeof DenyAccessRequestMaxRisk
|
|
199
|
+
> = z.enum(DenyAccessRequestMaxRisk);
|
|
200
|
+
|
|
201
|
+
/** @internal */
|
|
202
|
+
export const DenyAccessRequestResponse$inboundSchema: z.ZodType<
|
|
203
|
+
DenyAccessRequestResponse,
|
|
204
|
+
unknown
|
|
205
|
+
> = z.object({
|
|
206
|
+
id: z.string(),
|
|
207
|
+
deploymentId: z.string(),
|
|
208
|
+
deployment: z.lazy(() => DenyAccessRequestDeployment$inboundSchema)
|
|
209
|
+
.optional(),
|
|
210
|
+
remediationPlanId: z.nullable(z.string()),
|
|
211
|
+
title: z.string(),
|
|
212
|
+
reason: z.nullable(z.string()),
|
|
213
|
+
commands: z.array(z.lazy(() => DenyAccessRequestCommand$inboundSchema)),
|
|
214
|
+
operationPattern: z.nullable(z.string()),
|
|
215
|
+
maxRisk: z.nullable(DenyAccessRequestMaxRisk$inboundSchema),
|
|
216
|
+
status: models.AccessRequestStatus$inboundSchema,
|
|
217
|
+
approvedUntil: z.nullable(z.string()),
|
|
218
|
+
});
|
|
219
|
+
|
|
220
|
+
export function denyAccessRequestResponseFromJSON(
|
|
221
|
+
jsonString: string,
|
|
222
|
+
): SafeParseResult<DenyAccessRequestResponse, SDKValidationError> {
|
|
223
|
+
return safeParse(
|
|
224
|
+
jsonString,
|
|
225
|
+
(x) => DenyAccessRequestResponse$inboundSchema.parse(JSON.parse(x)),
|
|
226
|
+
`Failed to parse 'DenyAccessRequestResponse' from JSON`,
|
|
227
|
+
);
|
|
228
|
+
}
|
|
@@ -93,6 +93,80 @@ export const ControllerPlatform = {
|
|
|
93
93
|
*/
|
|
94
94
|
export type ControllerPlatform = ClosedEnum<typeof ControllerPlatform>;
|
|
95
95
|
|
|
96
|
+
export const GetResourceDeploymentDetailReason74 = {
|
|
97
|
+
Forbidden: "forbidden",
|
|
98
|
+
NotInstalled: "not-installed",
|
|
99
|
+
ApiUnavailable: "api-unavailable",
|
|
100
|
+
CollectionFailed: "collection-failed",
|
|
101
|
+
TimedOut: "timed-out",
|
|
102
|
+
} as const;
|
|
103
|
+
export type GetResourceDeploymentDetailReason74 = ClosedEnum<
|
|
104
|
+
typeof GetResourceDeploymentDetailReason74
|
|
105
|
+
>;
|
|
106
|
+
|
|
107
|
+
export const CollectionIssueSeverity74 = {
|
|
108
|
+
Info: "info",
|
|
109
|
+
Warning: "warning",
|
|
110
|
+
Error: "error",
|
|
111
|
+
} as const;
|
|
112
|
+
export type CollectionIssueSeverity74 = ClosedEnum<
|
|
113
|
+
typeof CollectionIssueSeverity74
|
|
114
|
+
>;
|
|
115
|
+
|
|
116
|
+
export type CollectionIssue74 = {
|
|
117
|
+
message: string;
|
|
118
|
+
reason: GetResourceDeploymentDetailReason74;
|
|
119
|
+
severity: CollectionIssueSeverity74;
|
|
120
|
+
source: string;
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
export const Health77 = {
|
|
124
|
+
Unknown: "unknown",
|
|
125
|
+
Healthy: "healthy",
|
|
126
|
+
Degraded: "degraded",
|
|
127
|
+
Unhealthy: "unhealthy",
|
|
128
|
+
} as const;
|
|
129
|
+
export type Health77 = ClosedEnum<typeof Health77>;
|
|
130
|
+
|
|
131
|
+
export const Lifecycle77 = {
|
|
132
|
+
Unknown: "unknown",
|
|
133
|
+
Creating: "creating",
|
|
134
|
+
Updating: "updating",
|
|
135
|
+
Running: "running",
|
|
136
|
+
Scaling: "scaling",
|
|
137
|
+
Stopping: "stopping",
|
|
138
|
+
Stopped: "stopped",
|
|
139
|
+
Deleting: "deleting",
|
|
140
|
+
Deleted: "deleted",
|
|
141
|
+
Failed: "failed",
|
|
142
|
+
} as const;
|
|
143
|
+
export type Lifecycle77 = ClosedEnum<typeof Lifecycle77>;
|
|
144
|
+
|
|
145
|
+
export type DataStatus77 = {
|
|
146
|
+
collectionIssues: Array<CollectionIssue74>;
|
|
147
|
+
health: Health77;
|
|
148
|
+
lifecycle: Lifecycle77;
|
|
149
|
+
message?: string | null | undefined;
|
|
150
|
+
partial: boolean;
|
|
151
|
+
stale: boolean;
|
|
152
|
+
};
|
|
153
|
+
|
|
154
|
+
/**
|
|
155
|
+
* Local: containers Docker still holds for this sandbox.
|
|
156
|
+
*/
|
|
157
|
+
export type DataLocal12 = {
|
|
158
|
+
activeSessions: number;
|
|
159
|
+
/**
|
|
160
|
+
* Whether the loopback route is serving in this process. False after a manager restart until
|
|
161
|
+
*
|
|
162
|
+
* @remarks
|
|
163
|
+
* the next tick rebinds it.
|
|
164
|
+
*/
|
|
165
|
+
routeServing: boolean;
|
|
166
|
+
status: DataStatus77;
|
|
167
|
+
backend: "local";
|
|
168
|
+
};
|
|
169
|
+
|
|
96
170
|
export const GetResourceDeploymentDetailReason73 = {
|
|
97
171
|
Forbidden: "forbidden",
|
|
98
172
|
NotInstalled: "not-installed",
|
|
@@ -152,19 +226,17 @@ export type DataStatus76 = {
|
|
|
152
226
|
};
|
|
153
227
|
|
|
154
228
|
/**
|
|
155
|
-
*
|
|
229
|
+
* Kubernetes: pods carrying the sandbox label, in the deployment's namespace.
|
|
156
230
|
*/
|
|
157
|
-
export type
|
|
231
|
+
export type DataKubernetesPods = {
|
|
158
232
|
activeSessions: number;
|
|
159
233
|
/**
|
|
160
|
-
*
|
|
161
|
-
*
|
|
162
|
-
* @remarks
|
|
163
|
-
* the next tick rebinds it.
|
|
234
|
+
* Claimed but unused pods waiting in the pool.
|
|
164
235
|
*/
|
|
165
|
-
|
|
236
|
+
idlePods: number;
|
|
237
|
+
namespace: string;
|
|
166
238
|
status: DataStatus76;
|
|
167
|
-
backend: "
|
|
239
|
+
backend: "kubernetesPods";
|
|
168
240
|
};
|
|
169
241
|
|
|
170
242
|
export const GetResourceDeploymentDetailReason72 = {
|
|
@@ -226,17 +298,25 @@ export type DataStatus75 = {
|
|
|
226
298
|
};
|
|
227
299
|
|
|
228
300
|
/**
|
|
229
|
-
*
|
|
301
|
+
* GCP: the Agent Platform template sessions are cut from, and the engine it hangs under.
|
|
302
|
+
*
|
|
303
|
+
* @remarks
|
|
304
|
+
*
|
|
305
|
+
* No session count: that needs `aiplatform.sandboxEnvironments.list`, which only the management
|
|
306
|
+
* permission set holds. No template state either — emission is gated on reading it `ACTIVE`,
|
|
307
|
+
* which is what `status` already says.
|
|
230
308
|
*/
|
|
231
|
-
export type
|
|
232
|
-
activeSessions: number;
|
|
309
|
+
export type DataGcpAgentPlatform = {
|
|
233
310
|
/**
|
|
234
|
-
*
|
|
311
|
+
* Reasoning engine the template hangs under, without which the template id names nothing.
|
|
235
312
|
*/
|
|
236
|
-
|
|
237
|
-
namespace: string;
|
|
313
|
+
engine: string;
|
|
238
314
|
status: DataStatus75;
|
|
239
|
-
|
|
315
|
+
/**
|
|
316
|
+
* The template sessions are currently cut from.
|
|
317
|
+
*/
|
|
318
|
+
templateId: string;
|
|
319
|
+
backend: "gcpAgentPlatform";
|
|
240
320
|
};
|
|
241
321
|
|
|
242
322
|
export const GetResourceDeploymentDetailReason71 = {
|
|
@@ -402,6 +482,7 @@ export type DataAwsMicrovm = {
|
|
|
402
482
|
export type DataUnion18 =
|
|
403
483
|
| DataAwsMicrovm
|
|
404
484
|
| DataAzureSandboxGroup
|
|
485
|
+
| DataGcpAgentPlatform
|
|
405
486
|
| DataKubernetesPods
|
|
406
487
|
| DataLocal12;
|
|
407
488
|
|
|
@@ -417,6 +498,7 @@ export type DataSandbox = {
|
|
|
417
498
|
data:
|
|
418
499
|
| DataAwsMicrovm
|
|
419
500
|
| DataAzureSandboxGroup
|
|
501
|
+
| DataGcpAgentPlatform
|
|
420
502
|
| DataKubernetesPods
|
|
421
503
|
| DataLocal12;
|
|
422
504
|
resourceType: "sandbox";
|
|
@@ -8602,6 +8684,87 @@ export const ControllerPlatform$inboundSchema: z.ZodEnum<
|
|
|
8602
8684
|
typeof ControllerPlatform
|
|
8603
8685
|
> = z.enum(ControllerPlatform);
|
|
8604
8686
|
|
|
8687
|
+
/** @internal */
|
|
8688
|
+
export const GetResourceDeploymentDetailReason74$inboundSchema: z.ZodEnum<
|
|
8689
|
+
typeof GetResourceDeploymentDetailReason74
|
|
8690
|
+
> = z.enum(GetResourceDeploymentDetailReason74);
|
|
8691
|
+
|
|
8692
|
+
/** @internal */
|
|
8693
|
+
export const CollectionIssueSeverity74$inboundSchema: z.ZodEnum<
|
|
8694
|
+
typeof CollectionIssueSeverity74
|
|
8695
|
+
> = z.enum(CollectionIssueSeverity74);
|
|
8696
|
+
|
|
8697
|
+
/** @internal */
|
|
8698
|
+
export const CollectionIssue74$inboundSchema: z.ZodType<
|
|
8699
|
+
CollectionIssue74,
|
|
8700
|
+
unknown
|
|
8701
|
+
> = z.object({
|
|
8702
|
+
message: z.string(),
|
|
8703
|
+
reason: GetResourceDeploymentDetailReason74$inboundSchema,
|
|
8704
|
+
severity: CollectionIssueSeverity74$inboundSchema,
|
|
8705
|
+
source: z.string(),
|
|
8706
|
+
});
|
|
8707
|
+
|
|
8708
|
+
export function collectionIssue74FromJSON(
|
|
8709
|
+
jsonString: string,
|
|
8710
|
+
): SafeParseResult<CollectionIssue74, SDKValidationError> {
|
|
8711
|
+
return safeParse(
|
|
8712
|
+
jsonString,
|
|
8713
|
+
(x) => CollectionIssue74$inboundSchema.parse(JSON.parse(x)),
|
|
8714
|
+
`Failed to parse 'CollectionIssue74' from JSON`,
|
|
8715
|
+
);
|
|
8716
|
+
}
|
|
8717
|
+
|
|
8718
|
+
/** @internal */
|
|
8719
|
+
export const Health77$inboundSchema: z.ZodEnum<typeof Health77> = z.enum(
|
|
8720
|
+
Health77,
|
|
8721
|
+
);
|
|
8722
|
+
|
|
8723
|
+
/** @internal */
|
|
8724
|
+
export const Lifecycle77$inboundSchema: z.ZodEnum<typeof Lifecycle77> = z.enum(
|
|
8725
|
+
Lifecycle77,
|
|
8726
|
+
);
|
|
8727
|
+
|
|
8728
|
+
/** @internal */
|
|
8729
|
+
export const DataStatus77$inboundSchema: z.ZodType<DataStatus77, unknown> = z
|
|
8730
|
+
.object({
|
|
8731
|
+
collectionIssues: z.array(z.lazy(() => CollectionIssue74$inboundSchema)),
|
|
8732
|
+
health: Health77$inboundSchema,
|
|
8733
|
+
lifecycle: Lifecycle77$inboundSchema,
|
|
8734
|
+
message: z.nullable(z.string()).optional(),
|
|
8735
|
+
partial: z.boolean(),
|
|
8736
|
+
stale: z.boolean(),
|
|
8737
|
+
});
|
|
8738
|
+
|
|
8739
|
+
export function dataStatus77FromJSON(
|
|
8740
|
+
jsonString: string,
|
|
8741
|
+
): SafeParseResult<DataStatus77, SDKValidationError> {
|
|
8742
|
+
return safeParse(
|
|
8743
|
+
jsonString,
|
|
8744
|
+
(x) => DataStatus77$inboundSchema.parse(JSON.parse(x)),
|
|
8745
|
+
`Failed to parse 'DataStatus77' from JSON`,
|
|
8746
|
+
);
|
|
8747
|
+
}
|
|
8748
|
+
|
|
8749
|
+
/** @internal */
|
|
8750
|
+
export const DataLocal12$inboundSchema: z.ZodType<DataLocal12, unknown> = z
|
|
8751
|
+
.object({
|
|
8752
|
+
activeSessions: z.int(),
|
|
8753
|
+
routeServing: z.boolean(),
|
|
8754
|
+
status: z.lazy(() => DataStatus77$inboundSchema),
|
|
8755
|
+
backend: z.literal("local"),
|
|
8756
|
+
});
|
|
8757
|
+
|
|
8758
|
+
export function dataLocal12FromJSON(
|
|
8759
|
+
jsonString: string,
|
|
8760
|
+
): SafeParseResult<DataLocal12, SDKValidationError> {
|
|
8761
|
+
return safeParse(
|
|
8762
|
+
jsonString,
|
|
8763
|
+
(x) => DataLocal12$inboundSchema.parse(JSON.parse(x)),
|
|
8764
|
+
`Failed to parse 'DataLocal12' from JSON`,
|
|
8765
|
+
);
|
|
8766
|
+
}
|
|
8767
|
+
|
|
8605
8768
|
/** @internal */
|
|
8606
8769
|
export const GetResourceDeploymentDetailReason73$inboundSchema: z.ZodEnum<
|
|
8607
8770
|
typeof GetResourceDeploymentDetailReason73
|
|
@@ -8665,21 +8828,24 @@ export function dataStatus76FromJSON(
|
|
|
8665
8828
|
}
|
|
8666
8829
|
|
|
8667
8830
|
/** @internal */
|
|
8668
|
-
export const
|
|
8669
|
-
|
|
8670
|
-
|
|
8671
|
-
|
|
8672
|
-
|
|
8673
|
-
|
|
8674
|
-
|
|
8831
|
+
export const DataKubernetesPods$inboundSchema: z.ZodType<
|
|
8832
|
+
DataKubernetesPods,
|
|
8833
|
+
unknown
|
|
8834
|
+
> = z.object({
|
|
8835
|
+
activeSessions: z.int(),
|
|
8836
|
+
idlePods: z.int(),
|
|
8837
|
+
namespace: z.string(),
|
|
8838
|
+
status: z.lazy(() => DataStatus76$inboundSchema),
|
|
8839
|
+
backend: z.literal("kubernetesPods"),
|
|
8840
|
+
});
|
|
8675
8841
|
|
|
8676
|
-
export function
|
|
8842
|
+
export function dataKubernetesPodsFromJSON(
|
|
8677
8843
|
jsonString: string,
|
|
8678
|
-
): SafeParseResult<
|
|
8844
|
+
): SafeParseResult<DataKubernetesPods, SDKValidationError> {
|
|
8679
8845
|
return safeParse(
|
|
8680
8846
|
jsonString,
|
|
8681
|
-
(x) =>
|
|
8682
|
-
`Failed to parse '
|
|
8847
|
+
(x) => DataKubernetesPods$inboundSchema.parse(JSON.parse(x)),
|
|
8848
|
+
`Failed to parse 'DataKubernetesPods' from JSON`,
|
|
8683
8849
|
);
|
|
8684
8850
|
}
|
|
8685
8851
|
|
|
@@ -8746,24 +8912,23 @@ export function dataStatus75FromJSON(
|
|
|
8746
8912
|
}
|
|
8747
8913
|
|
|
8748
8914
|
/** @internal */
|
|
8749
|
-
export const
|
|
8750
|
-
|
|
8915
|
+
export const DataGcpAgentPlatform$inboundSchema: z.ZodType<
|
|
8916
|
+
DataGcpAgentPlatform,
|
|
8751
8917
|
unknown
|
|
8752
8918
|
> = z.object({
|
|
8753
|
-
|
|
8754
|
-
idlePods: z.int(),
|
|
8755
|
-
namespace: z.string(),
|
|
8919
|
+
engine: z.string(),
|
|
8756
8920
|
status: z.lazy(() => DataStatus75$inboundSchema),
|
|
8757
|
-
|
|
8921
|
+
templateId: z.string(),
|
|
8922
|
+
backend: z.literal("gcpAgentPlatform"),
|
|
8758
8923
|
});
|
|
8759
8924
|
|
|
8760
|
-
export function
|
|
8925
|
+
export function dataGcpAgentPlatformFromJSON(
|
|
8761
8926
|
jsonString: string,
|
|
8762
|
-
): SafeParseResult<
|
|
8927
|
+
): SafeParseResult<DataGcpAgentPlatform, SDKValidationError> {
|
|
8763
8928
|
return safeParse(
|
|
8764
8929
|
jsonString,
|
|
8765
|
-
(x) =>
|
|
8766
|
-
`Failed to parse '
|
|
8930
|
+
(x) => DataGcpAgentPlatform$inboundSchema.parse(JSON.parse(x)),
|
|
8931
|
+
`Failed to parse 'DataGcpAgentPlatform' from JSON`,
|
|
8767
8932
|
);
|
|
8768
8933
|
}
|
|
8769
8934
|
|
|
@@ -8936,6 +9101,7 @@ export const DataUnion18$inboundSchema: z.ZodType<DataUnion18, unknown> = z
|
|
|
8936
9101
|
.union([
|
|
8937
9102
|
z.lazy(() => DataAwsMicrovm$inboundSchema),
|
|
8938
9103
|
z.lazy(() => DataAzureSandboxGroup$inboundSchema),
|
|
9104
|
+
z.lazy(() => DataGcpAgentPlatform$inboundSchema),
|
|
8939
9105
|
z.lazy(() => DataKubernetesPods$inboundSchema),
|
|
8940
9106
|
z.lazy(() => DataLocal12$inboundSchema),
|
|
8941
9107
|
]);
|
|
@@ -8956,6 +9122,7 @@ export const DataSandbox$inboundSchema: z.ZodType<DataSandbox, unknown> = z
|
|
|
8956
9122
|
data: z.union([
|
|
8957
9123
|
z.lazy(() => DataAwsMicrovm$inboundSchema),
|
|
8958
9124
|
z.lazy(() => DataAzureSandboxGroup$inboundSchema),
|
|
9125
|
+
z.lazy(() => DataGcpAgentPlatform$inboundSchema),
|
|
8959
9126
|
z.lazy(() => DataKubernetesPods$inboundSchema),
|
|
8960
9127
|
z.lazy(() => DataLocal12$inboundSchema),
|
|
8961
9128
|
]),
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
export * from "./acceptworkspaceinvitation.js";
|
|
6
6
|
export * from "./addworkspacemember.js";
|
|
7
7
|
export * from "./applycontainerregistrymanagersnapshot.js";
|
|
8
|
+
export * from "./approveaccessrequest.js";
|
|
8
9
|
export * from "./approveagentsession.js";
|
|
9
10
|
export * from "./cancelmachinesmachinedrain.js";
|
|
10
11
|
export * from "./cancelmanagersetup.js";
|
|
@@ -58,6 +59,7 @@ export * from "./deletemanager.js";
|
|
|
58
59
|
export * from "./deleteproject.js";
|
|
59
60
|
export * from "./deletereleasechannel.js";
|
|
60
61
|
export * from "./deleteworkspace.js";
|
|
62
|
+
export * from "./denyaccessrequest.js";
|
|
61
63
|
export * from "./dispatchcommand.js";
|
|
62
64
|
export * from "./drainmachinesmachine.js";
|
|
63
65
|
export * from "./ensuredeploymentgroupbyexternalid.js";
|
|
@@ -932,22 +932,6 @@ export type PlanDeploymentComputeKubernetesUnion =
|
|
|
932
932
|
| PlanDeploymentComputeKubernetes
|
|
933
933
|
| any;
|
|
934
934
|
|
|
935
|
-
/**
|
|
936
|
-
* Application log handling for a deployment.
|
|
937
|
-
*/
|
|
938
|
-
export type PlanDeploymentComputeLogs = {
|
|
939
|
-
/**
|
|
940
|
-
* Normalize severity fields from supported structured application logs into
|
|
941
|
-
*
|
|
942
|
-
* @remarks
|
|
943
|
-
* the OTLP severity fields. The original log body is preserved. Disabled by
|
|
944
|
-
* default.
|
|
945
|
-
*/
|
|
946
|
-
parseApplicationLevels?: boolean | undefined;
|
|
947
|
-
};
|
|
948
|
-
|
|
949
|
-
export type PlanDeploymentComputeLogsUnion = PlanDeploymentComputeLogs | any;
|
|
950
|
-
|
|
951
935
|
export const PlanDeploymentComputeTypeByoVnetAzure = {
|
|
952
936
|
ByoVnetAzure: "byo-vnet-azure",
|
|
953
937
|
} as const;
|
|
@@ -1126,7 +1110,6 @@ export type PlanDeploymentComputeStackSettings = {
|
|
|
1126
1110
|
*/
|
|
1127
1111
|
heartbeats?: PlanDeploymentComputeHeartbeats | undefined;
|
|
1128
1112
|
kubernetes?: PlanDeploymentComputeKubernetes | any | null | undefined;
|
|
1129
|
-
logs?: PlanDeploymentComputeLogs | any | null | undefined;
|
|
1130
1113
|
network?:
|
|
1131
1114
|
| PlanDeploymentComputeNetworkByoVpcAws
|
|
1132
1115
|
| PlanDeploymentComputeNetworkByoVpcGcp
|
|
@@ -3244,48 +3227,6 @@ export function planDeploymentComputeKubernetesUnionToJSON(
|
|
|
3244
3227
|
);
|
|
3245
3228
|
}
|
|
3246
3229
|
|
|
3247
|
-
/** @internal */
|
|
3248
|
-
export type PlanDeploymentComputeLogs$Outbound = {
|
|
3249
|
-
parseApplicationLevels?: boolean | undefined;
|
|
3250
|
-
};
|
|
3251
|
-
|
|
3252
|
-
/** @internal */
|
|
3253
|
-
export const PlanDeploymentComputeLogs$outboundSchema: z.ZodType<
|
|
3254
|
-
PlanDeploymentComputeLogs$Outbound,
|
|
3255
|
-
PlanDeploymentComputeLogs
|
|
3256
|
-
> = z.object({
|
|
3257
|
-
parseApplicationLevels: z.boolean().optional(),
|
|
3258
|
-
});
|
|
3259
|
-
|
|
3260
|
-
export function planDeploymentComputeLogsToJSON(
|
|
3261
|
-
planDeploymentComputeLogs: PlanDeploymentComputeLogs,
|
|
3262
|
-
): string {
|
|
3263
|
-
return JSON.stringify(
|
|
3264
|
-
PlanDeploymentComputeLogs$outboundSchema.parse(planDeploymentComputeLogs),
|
|
3265
|
-
);
|
|
3266
|
-
}
|
|
3267
|
-
|
|
3268
|
-
/** @internal */
|
|
3269
|
-
export type PlanDeploymentComputeLogsUnion$Outbound =
|
|
3270
|
-
| PlanDeploymentComputeLogs$Outbound
|
|
3271
|
-
| any;
|
|
3272
|
-
|
|
3273
|
-
/** @internal */
|
|
3274
|
-
export const PlanDeploymentComputeLogsUnion$outboundSchema: z.ZodType<
|
|
3275
|
-
PlanDeploymentComputeLogsUnion$Outbound,
|
|
3276
|
-
PlanDeploymentComputeLogsUnion
|
|
3277
|
-
> = z.union([z.lazy(() => PlanDeploymentComputeLogs$outboundSchema), z.any()]);
|
|
3278
|
-
|
|
3279
|
-
export function planDeploymentComputeLogsUnionToJSON(
|
|
3280
|
-
planDeploymentComputeLogsUnion: PlanDeploymentComputeLogsUnion,
|
|
3281
|
-
): string {
|
|
3282
|
-
return JSON.stringify(
|
|
3283
|
-
PlanDeploymentComputeLogsUnion$outboundSchema.parse(
|
|
3284
|
-
planDeploymentComputeLogsUnion,
|
|
3285
|
-
),
|
|
3286
|
-
);
|
|
3287
|
-
}
|
|
3288
|
-
|
|
3289
3230
|
/** @internal */
|
|
3290
3231
|
export const PlanDeploymentComputeTypeByoVnetAzure$outboundSchema: z.ZodEnum<
|
|
3291
3232
|
typeof PlanDeploymentComputeTypeByoVnetAzure
|
|
@@ -3537,7 +3478,6 @@ export type PlanDeploymentComputeStackSettings$Outbound = {
|
|
|
3537
3478
|
| any
|
|
3538
3479
|
| null
|
|
3539
3480
|
| undefined;
|
|
3540
|
-
logs?: PlanDeploymentComputeLogs$Outbound | any | null | undefined;
|
|
3541
3481
|
network?:
|
|
3542
3482
|
| PlanDeploymentComputeNetworkByoVpcAws$Outbound
|
|
3543
3483
|
| PlanDeploymentComputeNetworkByoVpcGcp$Outbound
|
|
@@ -3576,9 +3516,6 @@ export const PlanDeploymentComputeStackSettings$outboundSchema: z.ZodType<
|
|
|
3576
3516
|
z.any(),
|
|
3577
3517
|
]),
|
|
3578
3518
|
).optional(),
|
|
3579
|
-
logs: z.nullable(
|
|
3580
|
-
z.union([z.lazy(() => PlanDeploymentComputeLogs$outboundSchema), z.any()]),
|
|
3581
|
-
).optional(),
|
|
3582
3519
|
network: z.nullable(
|
|
3583
3520
|
z.union([
|
|
3584
3521
|
z.lazy(() => PlanDeploymentComputeNetworkByoVpcAws$outboundSchema),
|