@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
|
@@ -53,6 +53,82 @@ export type SyncReconcileRequestControllerPlatform = ClosedEnum<
|
|
|
53
53
|
typeof SyncReconcileRequestControllerPlatform
|
|
54
54
|
>;
|
|
55
55
|
|
|
56
|
+
export const SyncReconcileRequestReason74 = {
|
|
57
|
+
Forbidden: "forbidden",
|
|
58
|
+
NotInstalled: "not-installed",
|
|
59
|
+
ApiUnavailable: "api-unavailable",
|
|
60
|
+
CollectionFailed: "collection-failed",
|
|
61
|
+
TimedOut: "timed-out",
|
|
62
|
+
} as const;
|
|
63
|
+
export type SyncReconcileRequestReason74 = ClosedEnum<
|
|
64
|
+
typeof SyncReconcileRequestReason74
|
|
65
|
+
>;
|
|
66
|
+
|
|
67
|
+
export const StatusSeverity74 = {
|
|
68
|
+
Info: "info",
|
|
69
|
+
Warning: "warning",
|
|
70
|
+
Error: "error",
|
|
71
|
+
} as const;
|
|
72
|
+
export type StatusSeverity74 = ClosedEnum<typeof StatusSeverity74>;
|
|
73
|
+
|
|
74
|
+
export type SyncReconcileRequestCollectionIssue74 = {
|
|
75
|
+
message: string;
|
|
76
|
+
reason: SyncReconcileRequestReason74;
|
|
77
|
+
severity: StatusSeverity74;
|
|
78
|
+
source: string;
|
|
79
|
+
};
|
|
80
|
+
|
|
81
|
+
export const SyncReconcileRequestHealth77 = {
|
|
82
|
+
Unknown: "unknown",
|
|
83
|
+
Healthy: "healthy",
|
|
84
|
+
Degraded: "degraded",
|
|
85
|
+
Unhealthy: "unhealthy",
|
|
86
|
+
} as const;
|
|
87
|
+
export type SyncReconcileRequestHealth77 = ClosedEnum<
|
|
88
|
+
typeof SyncReconcileRequestHealth77
|
|
89
|
+
>;
|
|
90
|
+
|
|
91
|
+
export const SyncReconcileRequestLifecycle77 = {
|
|
92
|
+
Unknown: "unknown",
|
|
93
|
+
Creating: "creating",
|
|
94
|
+
Updating: "updating",
|
|
95
|
+
Running: "running",
|
|
96
|
+
Scaling: "scaling",
|
|
97
|
+
Stopping: "stopping",
|
|
98
|
+
Stopped: "stopped",
|
|
99
|
+
Deleting: "deleting",
|
|
100
|
+
Deleted: "deleted",
|
|
101
|
+
Failed: "failed",
|
|
102
|
+
} as const;
|
|
103
|
+
export type SyncReconcileRequestLifecycle77 = ClosedEnum<
|
|
104
|
+
typeof SyncReconcileRequestLifecycle77
|
|
105
|
+
>;
|
|
106
|
+
|
|
107
|
+
export type SyncReconcileRequestStatus77 = {
|
|
108
|
+
collectionIssues: Array<SyncReconcileRequestCollectionIssue74>;
|
|
109
|
+
health: SyncReconcileRequestHealth77;
|
|
110
|
+
lifecycle: SyncReconcileRequestLifecycle77;
|
|
111
|
+
message?: string | null | undefined;
|
|
112
|
+
partial: boolean;
|
|
113
|
+
stale: boolean;
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
/**
|
|
117
|
+
* Local: containers Docker still holds for this sandbox.
|
|
118
|
+
*/
|
|
119
|
+
export type DataLocal12 = {
|
|
120
|
+
activeSessions: number;
|
|
121
|
+
/**
|
|
122
|
+
* Whether the loopback route is serving in this process. False after a manager restart until
|
|
123
|
+
*
|
|
124
|
+
* @remarks
|
|
125
|
+
* the next tick rebinds it.
|
|
126
|
+
*/
|
|
127
|
+
routeServing: boolean;
|
|
128
|
+
status: SyncReconcileRequestStatus77;
|
|
129
|
+
backend: "local";
|
|
130
|
+
};
|
|
131
|
+
|
|
56
132
|
export const SyncReconcileRequestReason73 = {
|
|
57
133
|
Forbidden: "forbidden",
|
|
58
134
|
NotInstalled: "not-installed",
|
|
@@ -114,19 +190,17 @@ export type SyncReconcileRequestStatus76 = {
|
|
|
114
190
|
};
|
|
115
191
|
|
|
116
192
|
/**
|
|
117
|
-
*
|
|
193
|
+
* Kubernetes: pods carrying the sandbox label, in the deployment's namespace.
|
|
118
194
|
*/
|
|
119
|
-
export type
|
|
195
|
+
export type DataKubernetesPods = {
|
|
120
196
|
activeSessions: number;
|
|
121
197
|
/**
|
|
122
|
-
*
|
|
123
|
-
*
|
|
124
|
-
* @remarks
|
|
125
|
-
* the next tick rebinds it.
|
|
198
|
+
* Claimed but unused pods waiting in the pool.
|
|
126
199
|
*/
|
|
127
|
-
|
|
200
|
+
idlePods: number;
|
|
201
|
+
namespace: string;
|
|
128
202
|
status: SyncReconcileRequestStatus76;
|
|
129
|
-
backend: "
|
|
203
|
+
backend: "kubernetesPods";
|
|
130
204
|
};
|
|
131
205
|
|
|
132
206
|
export const SyncReconcileRequestReason72 = {
|
|
@@ -190,17 +264,25 @@ export type SyncReconcileRequestStatus75 = {
|
|
|
190
264
|
};
|
|
191
265
|
|
|
192
266
|
/**
|
|
193
|
-
*
|
|
267
|
+
* GCP: the Agent Platform template sessions are cut from, and the engine it hangs under.
|
|
268
|
+
*
|
|
269
|
+
* @remarks
|
|
270
|
+
*
|
|
271
|
+
* No session count: that needs `aiplatform.sandboxEnvironments.list`, which only the management
|
|
272
|
+
* permission set holds. No template state either — emission is gated on reading it `ACTIVE`,
|
|
273
|
+
* which is what `status` already says.
|
|
194
274
|
*/
|
|
195
|
-
export type
|
|
196
|
-
activeSessions: number;
|
|
275
|
+
export type DataGcpAgentPlatform = {
|
|
197
276
|
/**
|
|
198
|
-
*
|
|
277
|
+
* Reasoning engine the template hangs under, without which the template id names nothing.
|
|
199
278
|
*/
|
|
200
|
-
|
|
201
|
-
namespace: string;
|
|
279
|
+
engine: string;
|
|
202
280
|
status: SyncReconcileRequestStatus75;
|
|
203
|
-
|
|
281
|
+
/**
|
|
282
|
+
* The template sessions are currently cut from.
|
|
283
|
+
*/
|
|
284
|
+
templateId: string;
|
|
285
|
+
backend: "gcpAgentPlatform";
|
|
204
286
|
};
|
|
205
287
|
|
|
206
288
|
export const SyncReconcileRequestReason71 = {
|
|
@@ -370,6 +452,7 @@ export type DataAwsMicrovm = {
|
|
|
370
452
|
export type SyncReconcileRequestDataUnion18 =
|
|
371
453
|
| DataAwsMicrovm
|
|
372
454
|
| DataAzureSandboxGroup
|
|
455
|
+
| DataGcpAgentPlatform
|
|
373
456
|
| DataKubernetesPods
|
|
374
457
|
| DataLocal12;
|
|
375
458
|
|
|
@@ -385,6 +468,7 @@ export type DataSandbox = {
|
|
|
385
468
|
data:
|
|
386
469
|
| DataAwsMicrovm
|
|
387
470
|
| DataAzureSandboxGroup
|
|
471
|
+
| DataGcpAgentPlatform
|
|
388
472
|
| DataKubernetesPods
|
|
389
473
|
| DataLocal12;
|
|
390
474
|
resourceType: "sandbox";
|
|
@@ -8641,6 +8725,14 @@ export type SyncReconcileRequest = {
|
|
|
8641
8725
|
* Lock session (push model only) - verifies lock ownership
|
|
8642
8726
|
*/
|
|
8643
8727
|
session?: string | undefined;
|
|
8728
|
+
/**
|
|
8729
|
+
* Immutable operation claimed at acquisition. Required with attemptId for update execution.
|
|
8730
|
+
*/
|
|
8731
|
+
operationId?: string | undefined;
|
|
8732
|
+
/**
|
|
8733
|
+
* Execution attempt claimed at acquisition. Required with operationId for update execution.
|
|
8734
|
+
*/
|
|
8735
|
+
attemptId?: string | undefined;
|
|
8644
8736
|
state: DeploymentState;
|
|
8645
8737
|
/**
|
|
8646
8738
|
* Update heartbeat timestamp (for successful health checks)
|
|
@@ -8678,6 +8770,113 @@ export const SyncReconcileRequestControllerPlatform$outboundSchema: z.ZodEnum<
|
|
|
8678
8770
|
typeof SyncReconcileRequestControllerPlatform
|
|
8679
8771
|
> = z.enum(SyncReconcileRequestControllerPlatform);
|
|
8680
8772
|
|
|
8773
|
+
/** @internal */
|
|
8774
|
+
export const SyncReconcileRequestReason74$outboundSchema: z.ZodEnum<
|
|
8775
|
+
typeof SyncReconcileRequestReason74
|
|
8776
|
+
> = z.enum(SyncReconcileRequestReason74);
|
|
8777
|
+
|
|
8778
|
+
/** @internal */
|
|
8779
|
+
export const StatusSeverity74$outboundSchema: z.ZodEnum<
|
|
8780
|
+
typeof StatusSeverity74
|
|
8781
|
+
> = z.enum(StatusSeverity74);
|
|
8782
|
+
|
|
8783
|
+
/** @internal */
|
|
8784
|
+
export type SyncReconcileRequestCollectionIssue74$Outbound = {
|
|
8785
|
+
message: string;
|
|
8786
|
+
reason: string;
|
|
8787
|
+
severity: string;
|
|
8788
|
+
source: string;
|
|
8789
|
+
};
|
|
8790
|
+
|
|
8791
|
+
/** @internal */
|
|
8792
|
+
export const SyncReconcileRequestCollectionIssue74$outboundSchema: z.ZodType<
|
|
8793
|
+
SyncReconcileRequestCollectionIssue74$Outbound,
|
|
8794
|
+
SyncReconcileRequestCollectionIssue74
|
|
8795
|
+
> = z.object({
|
|
8796
|
+
message: z.string(),
|
|
8797
|
+
reason: SyncReconcileRequestReason74$outboundSchema,
|
|
8798
|
+
severity: StatusSeverity74$outboundSchema,
|
|
8799
|
+
source: z.string(),
|
|
8800
|
+
});
|
|
8801
|
+
|
|
8802
|
+
export function syncReconcileRequestCollectionIssue74ToJSON(
|
|
8803
|
+
syncReconcileRequestCollectionIssue74: SyncReconcileRequestCollectionIssue74,
|
|
8804
|
+
): string {
|
|
8805
|
+
return JSON.stringify(
|
|
8806
|
+
SyncReconcileRequestCollectionIssue74$outboundSchema.parse(
|
|
8807
|
+
syncReconcileRequestCollectionIssue74,
|
|
8808
|
+
),
|
|
8809
|
+
);
|
|
8810
|
+
}
|
|
8811
|
+
|
|
8812
|
+
/** @internal */
|
|
8813
|
+
export const SyncReconcileRequestHealth77$outboundSchema: z.ZodEnum<
|
|
8814
|
+
typeof SyncReconcileRequestHealth77
|
|
8815
|
+
> = z.enum(SyncReconcileRequestHealth77);
|
|
8816
|
+
|
|
8817
|
+
/** @internal */
|
|
8818
|
+
export const SyncReconcileRequestLifecycle77$outboundSchema: z.ZodEnum<
|
|
8819
|
+
typeof SyncReconcileRequestLifecycle77
|
|
8820
|
+
> = z.enum(SyncReconcileRequestLifecycle77);
|
|
8821
|
+
|
|
8822
|
+
/** @internal */
|
|
8823
|
+
export type SyncReconcileRequestStatus77$Outbound = {
|
|
8824
|
+
collectionIssues: Array<SyncReconcileRequestCollectionIssue74$Outbound>;
|
|
8825
|
+
health: string;
|
|
8826
|
+
lifecycle: string;
|
|
8827
|
+
message?: string | null | undefined;
|
|
8828
|
+
partial: boolean;
|
|
8829
|
+
stale: boolean;
|
|
8830
|
+
};
|
|
8831
|
+
|
|
8832
|
+
/** @internal */
|
|
8833
|
+
export const SyncReconcileRequestStatus77$outboundSchema: z.ZodType<
|
|
8834
|
+
SyncReconcileRequestStatus77$Outbound,
|
|
8835
|
+
SyncReconcileRequestStatus77
|
|
8836
|
+
> = z.object({
|
|
8837
|
+
collectionIssues: z.array(
|
|
8838
|
+
z.lazy(() => SyncReconcileRequestCollectionIssue74$outboundSchema),
|
|
8839
|
+
),
|
|
8840
|
+
health: SyncReconcileRequestHealth77$outboundSchema,
|
|
8841
|
+
lifecycle: SyncReconcileRequestLifecycle77$outboundSchema,
|
|
8842
|
+
message: z.nullable(z.string()).optional(),
|
|
8843
|
+
partial: z.boolean(),
|
|
8844
|
+
stale: z.boolean(),
|
|
8845
|
+
});
|
|
8846
|
+
|
|
8847
|
+
export function syncReconcileRequestStatus77ToJSON(
|
|
8848
|
+
syncReconcileRequestStatus77: SyncReconcileRequestStatus77,
|
|
8849
|
+
): string {
|
|
8850
|
+
return JSON.stringify(
|
|
8851
|
+
SyncReconcileRequestStatus77$outboundSchema.parse(
|
|
8852
|
+
syncReconcileRequestStatus77,
|
|
8853
|
+
),
|
|
8854
|
+
);
|
|
8855
|
+
}
|
|
8856
|
+
|
|
8857
|
+
/** @internal */
|
|
8858
|
+
export type DataLocal12$Outbound = {
|
|
8859
|
+
activeSessions: number;
|
|
8860
|
+
routeServing: boolean;
|
|
8861
|
+
status: SyncReconcileRequestStatus77$Outbound;
|
|
8862
|
+
backend: "local";
|
|
8863
|
+
};
|
|
8864
|
+
|
|
8865
|
+
/** @internal */
|
|
8866
|
+
export const DataLocal12$outboundSchema: z.ZodType<
|
|
8867
|
+
DataLocal12$Outbound,
|
|
8868
|
+
DataLocal12
|
|
8869
|
+
> = z.object({
|
|
8870
|
+
activeSessions: z.int(),
|
|
8871
|
+
routeServing: z.boolean(),
|
|
8872
|
+
status: z.lazy(() => SyncReconcileRequestStatus77$outboundSchema),
|
|
8873
|
+
backend: z.literal("local"),
|
|
8874
|
+
});
|
|
8875
|
+
|
|
8876
|
+
export function dataLocal12ToJSON(dataLocal12: DataLocal12): string {
|
|
8877
|
+
return JSON.stringify(DataLocal12$outboundSchema.parse(dataLocal12));
|
|
8878
|
+
}
|
|
8879
|
+
|
|
8681
8880
|
/** @internal */
|
|
8682
8881
|
export const SyncReconcileRequestReason73$outboundSchema: z.ZodEnum<
|
|
8683
8882
|
typeof SyncReconcileRequestReason73
|
|
@@ -8763,26 +8962,32 @@ export function syncReconcileRequestStatus76ToJSON(
|
|
|
8763
8962
|
}
|
|
8764
8963
|
|
|
8765
8964
|
/** @internal */
|
|
8766
|
-
export type
|
|
8965
|
+
export type DataKubernetesPods$Outbound = {
|
|
8767
8966
|
activeSessions: number;
|
|
8768
|
-
|
|
8967
|
+
idlePods: number;
|
|
8968
|
+
namespace: string;
|
|
8769
8969
|
status: SyncReconcileRequestStatus76$Outbound;
|
|
8770
|
-
backend: "
|
|
8970
|
+
backend: "kubernetesPods";
|
|
8771
8971
|
};
|
|
8772
8972
|
|
|
8773
8973
|
/** @internal */
|
|
8774
|
-
export const
|
|
8775
|
-
|
|
8776
|
-
|
|
8974
|
+
export const DataKubernetesPods$outboundSchema: z.ZodType<
|
|
8975
|
+
DataKubernetesPods$Outbound,
|
|
8976
|
+
DataKubernetesPods
|
|
8777
8977
|
> = z.object({
|
|
8778
8978
|
activeSessions: z.int(),
|
|
8779
|
-
|
|
8979
|
+
idlePods: z.int(),
|
|
8980
|
+
namespace: z.string(),
|
|
8780
8981
|
status: z.lazy(() => SyncReconcileRequestStatus76$outboundSchema),
|
|
8781
|
-
backend: z.literal("
|
|
8982
|
+
backend: z.literal("kubernetesPods"),
|
|
8782
8983
|
});
|
|
8783
8984
|
|
|
8784
|
-
export function
|
|
8785
|
-
|
|
8985
|
+
export function dataKubernetesPodsToJSON(
|
|
8986
|
+
dataKubernetesPods: DataKubernetesPods,
|
|
8987
|
+
): string {
|
|
8988
|
+
return JSON.stringify(
|
|
8989
|
+
DataKubernetesPods$outboundSchema.parse(dataKubernetesPods),
|
|
8990
|
+
);
|
|
8786
8991
|
}
|
|
8787
8992
|
|
|
8788
8993
|
/** @internal */
|
|
@@ -8870,31 +9075,29 @@ export function syncReconcileRequestStatus75ToJSON(
|
|
|
8870
9075
|
}
|
|
8871
9076
|
|
|
8872
9077
|
/** @internal */
|
|
8873
|
-
export type
|
|
8874
|
-
|
|
8875
|
-
idlePods: number;
|
|
8876
|
-
namespace: string;
|
|
9078
|
+
export type DataGcpAgentPlatform$Outbound = {
|
|
9079
|
+
engine: string;
|
|
8877
9080
|
status: SyncReconcileRequestStatus75$Outbound;
|
|
8878
|
-
|
|
9081
|
+
templateId: string;
|
|
9082
|
+
backend: "gcpAgentPlatform";
|
|
8879
9083
|
};
|
|
8880
9084
|
|
|
8881
9085
|
/** @internal */
|
|
8882
|
-
export const
|
|
8883
|
-
|
|
8884
|
-
|
|
9086
|
+
export const DataGcpAgentPlatform$outboundSchema: z.ZodType<
|
|
9087
|
+
DataGcpAgentPlatform$Outbound,
|
|
9088
|
+
DataGcpAgentPlatform
|
|
8885
9089
|
> = z.object({
|
|
8886
|
-
|
|
8887
|
-
idlePods: z.int(),
|
|
8888
|
-
namespace: z.string(),
|
|
9090
|
+
engine: z.string(),
|
|
8889
9091
|
status: z.lazy(() => SyncReconcileRequestStatus75$outboundSchema),
|
|
8890
|
-
|
|
9092
|
+
templateId: z.string(),
|
|
9093
|
+
backend: z.literal("gcpAgentPlatform"),
|
|
8891
9094
|
});
|
|
8892
9095
|
|
|
8893
|
-
export function
|
|
8894
|
-
|
|
9096
|
+
export function dataGcpAgentPlatformToJSON(
|
|
9097
|
+
dataGcpAgentPlatform: DataGcpAgentPlatform,
|
|
8895
9098
|
): string {
|
|
8896
9099
|
return JSON.stringify(
|
|
8897
|
-
|
|
9100
|
+
DataGcpAgentPlatform$outboundSchema.parse(dataGcpAgentPlatform),
|
|
8898
9101
|
);
|
|
8899
9102
|
}
|
|
8900
9103
|
|
|
@@ -9120,6 +9323,7 @@ export function dataAwsMicrovmToJSON(dataAwsMicrovm: DataAwsMicrovm): string {
|
|
|
9120
9323
|
export type SyncReconcileRequestDataUnion18$Outbound =
|
|
9121
9324
|
| DataAwsMicrovm$Outbound
|
|
9122
9325
|
| DataAzureSandboxGroup$Outbound
|
|
9326
|
+
| DataGcpAgentPlatform$Outbound
|
|
9123
9327
|
| DataKubernetesPods$Outbound
|
|
9124
9328
|
| DataLocal12$Outbound;
|
|
9125
9329
|
|
|
@@ -9130,6 +9334,7 @@ export const SyncReconcileRequestDataUnion18$outboundSchema: z.ZodType<
|
|
|
9130
9334
|
> = z.union([
|
|
9131
9335
|
z.lazy(() => DataAwsMicrovm$outboundSchema),
|
|
9132
9336
|
z.lazy(() => DataAzureSandboxGroup$outboundSchema),
|
|
9337
|
+
z.lazy(() => DataGcpAgentPlatform$outboundSchema),
|
|
9133
9338
|
z.lazy(() => DataKubernetesPods$outboundSchema),
|
|
9134
9339
|
z.lazy(() => DataLocal12$outboundSchema),
|
|
9135
9340
|
]);
|
|
@@ -9149,6 +9354,7 @@ export type DataSandbox$Outbound = {
|
|
|
9149
9354
|
data:
|
|
9150
9355
|
| DataAwsMicrovm$Outbound
|
|
9151
9356
|
| DataAzureSandboxGroup$Outbound
|
|
9357
|
+
| DataGcpAgentPlatform$Outbound
|
|
9152
9358
|
| DataKubernetesPods$Outbound
|
|
9153
9359
|
| DataLocal12$Outbound;
|
|
9154
9360
|
resourceType: "sandbox";
|
|
@@ -9162,6 +9368,7 @@ export const DataSandbox$outboundSchema: z.ZodType<
|
|
|
9162
9368
|
data: z.union([
|
|
9163
9369
|
z.lazy(() => DataAwsMicrovm$outboundSchema),
|
|
9164
9370
|
z.lazy(() => DataAzureSandboxGroup$outboundSchema),
|
|
9371
|
+
z.lazy(() => DataGcpAgentPlatform$outboundSchema),
|
|
9165
9372
|
z.lazy(() => DataKubernetesPods$outboundSchema),
|
|
9166
9373
|
z.lazy(() => DataLocal12$outboundSchema),
|
|
9167
9374
|
]),
|
|
@@ -26013,6 +26220,8 @@ export function resourceHeartbeatToJSON(
|
|
|
26013
26220
|
export type SyncReconcileRequest$Outbound = {
|
|
26014
26221
|
deploymentId: string;
|
|
26015
26222
|
session?: string | undefined;
|
|
26223
|
+
operationId?: string | undefined;
|
|
26224
|
+
attemptId?: string | undefined;
|
|
26016
26225
|
state: DeploymentState$Outbound;
|
|
26017
26226
|
updateHeartbeat?: boolean | undefined;
|
|
26018
26227
|
suggestedDelayMs?: number | undefined;
|
|
@@ -26029,6 +26238,8 @@ export const SyncReconcileRequest$outboundSchema: z.ZodType<
|
|
|
26029
26238
|
> = z.object({
|
|
26030
26239
|
deploymentId: z.string(),
|
|
26031
26240
|
session: z.string().optional(),
|
|
26241
|
+
operationId: z.string().optional(),
|
|
26242
|
+
attemptId: z.string().optional(),
|
|
26032
26243
|
state: DeploymentState$outboundSchema,
|
|
26033
26244
|
updateHeartbeat: z.boolean().optional(),
|
|
26034
26245
|
suggestedDelayMs: z.int().optional(),
|
|
@@ -16,12 +16,22 @@ export type SyncReleaseRequest = {
|
|
|
16
16
|
* Session identifier to release
|
|
17
17
|
*/
|
|
18
18
|
session: string;
|
|
19
|
+
/**
|
|
20
|
+
* Operation returned by acquire. Required when the lease carried update work.
|
|
21
|
+
*/
|
|
22
|
+
operationId?: string | undefined;
|
|
23
|
+
/**
|
|
24
|
+
* Attempt returned by acquire. Required when the lease carried update work.
|
|
25
|
+
*/
|
|
26
|
+
attemptId?: string | undefined;
|
|
19
27
|
};
|
|
20
28
|
|
|
21
29
|
/** @internal */
|
|
22
30
|
export type SyncReleaseRequest$Outbound = {
|
|
23
31
|
deploymentId: string;
|
|
24
32
|
session: string;
|
|
33
|
+
operationId?: string | undefined;
|
|
34
|
+
attemptId?: string | undefined;
|
|
25
35
|
};
|
|
26
36
|
|
|
27
37
|
/** @internal */
|
|
@@ -31,6 +41,8 @@ export const SyncReleaseRequest$outboundSchema: z.ZodType<
|
|
|
31
41
|
> = z.object({
|
|
32
42
|
deploymentId: z.string(),
|
|
33
43
|
session: z.string(),
|
|
44
|
+
operationId: z.string().optional(),
|
|
45
|
+
attemptId: z.string().optional(),
|
|
34
46
|
});
|
|
35
47
|
|
|
36
48
|
export function syncReleaseRequestToJSON(
|
|
@@ -4,6 +4,21 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
|
|
7
|
+
export type Claim = {
|
|
8
|
+
/**
|
|
9
|
+
* Unique identifier for the deployment.
|
|
10
|
+
*/
|
|
11
|
+
deploymentId: string;
|
|
12
|
+
/**
|
|
13
|
+
* Unique identifier for the deployment update operation.
|
|
14
|
+
*/
|
|
15
|
+
operationId: string;
|
|
16
|
+
/**
|
|
17
|
+
* Unique identifier for the deployment update attempt.
|
|
18
|
+
*/
|
|
19
|
+
attemptId: string;
|
|
20
|
+
};
|
|
21
|
+
|
|
7
22
|
export type SyncRenewRequest = {
|
|
8
23
|
/**
|
|
9
24
|
* Single deployment to renew. Deprecated: use deploymentIds. Retained so a manager built against the previous API keeps renewing during rollout.
|
|
@@ -13,13 +28,36 @@ export type SyncRenewRequest = {
|
|
|
13
28
|
* Deployments to renew or confirm. Renewal is per deployment: the response reports each one independently.
|
|
14
29
|
*/
|
|
15
30
|
deploymentIds?: Array<string> | undefined;
|
|
31
|
+
/**
|
|
32
|
+
* Claim identities for deployments currently executing an update.
|
|
33
|
+
*/
|
|
34
|
+
claims?: Array<Claim> | undefined;
|
|
16
35
|
session: string;
|
|
17
36
|
};
|
|
18
37
|
|
|
38
|
+
/** @internal */
|
|
39
|
+
export type Claim$Outbound = {
|
|
40
|
+
deploymentId: string;
|
|
41
|
+
operationId: string;
|
|
42
|
+
attemptId: string;
|
|
43
|
+
};
|
|
44
|
+
|
|
45
|
+
/** @internal */
|
|
46
|
+
export const Claim$outboundSchema: z.ZodType<Claim$Outbound, Claim> = z.object({
|
|
47
|
+
deploymentId: z.string(),
|
|
48
|
+
operationId: z.string(),
|
|
49
|
+
attemptId: z.string(),
|
|
50
|
+
});
|
|
51
|
+
|
|
52
|
+
export function claimToJSON(claim: Claim): string {
|
|
53
|
+
return JSON.stringify(Claim$outboundSchema.parse(claim));
|
|
54
|
+
}
|
|
55
|
+
|
|
19
56
|
/** @internal */
|
|
20
57
|
export type SyncRenewRequest$Outbound = {
|
|
21
58
|
deploymentId?: string | undefined;
|
|
22
59
|
deploymentIds?: Array<string> | undefined;
|
|
60
|
+
claims?: Array<Claim$Outbound> | undefined;
|
|
23
61
|
session: string;
|
|
24
62
|
};
|
|
25
63
|
|
|
@@ -30,6 +68,7 @@ export const SyncRenewRequest$outboundSchema: z.ZodType<
|
|
|
30
68
|
> = z.object({
|
|
31
69
|
deploymentId: z.string().optional(),
|
|
32
70
|
deploymentIds: z.array(z.string()).optional(),
|
|
71
|
+
claims: z.array(z.lazy(() => Claim$outboundSchema)).optional(),
|
|
33
72
|
session: z.string(),
|
|
34
73
|
});
|
|
35
74
|
|
package/src/sdk/operations.ts
CHANGED
|
@@ -2,8 +2,10 @@
|
|
|
2
2
|
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
|
+
import { operationsApproveAccessRequest } from "../funcs/operationsApproveAccessRequest.js";
|
|
5
6
|
import { operationsCreateAccessRequest } from "../funcs/operationsCreateAccessRequest.js";
|
|
6
7
|
import { operationsCreateBundleUploadUrl } from "../funcs/operationsCreateBundleUploadUrl.js";
|
|
8
|
+
import { operationsDenyAccessRequest } from "../funcs/operationsDenyAccessRequest.js";
|
|
7
9
|
import { operationsGetAccessRequest } from "../funcs/operationsGetAccessRequest.js";
|
|
8
10
|
import { operationsGetAccessRequestCoordinates } from "../funcs/operationsGetAccessRequestCoordinates.js";
|
|
9
11
|
import { operationsGetPolicy } from "../funcs/operationsGetPolicy.js";
|
|
@@ -190,6 +192,34 @@ export class Operations extends ClientSDK {
|
|
|
190
192
|
));
|
|
191
193
|
}
|
|
192
194
|
|
|
195
|
+
/**
|
|
196
|
+
* Customer gate, direct method — approve a queued access request immediately, granting the same window a kubectl approve would. `method` names the calling system (e.g. `slack`) for the audit trail.
|
|
197
|
+
*/
|
|
198
|
+
async approveAccessRequest(
|
|
199
|
+
request: operations.ApproveAccessRequestRequest,
|
|
200
|
+
options?: RequestOptions,
|
|
201
|
+
): Promise<operations.ApproveAccessRequestResponse> {
|
|
202
|
+
return unwrapAsync(operationsApproveAccessRequest(
|
|
203
|
+
this,
|
|
204
|
+
request,
|
|
205
|
+
options,
|
|
206
|
+
));
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
/**
|
|
210
|
+
* Customer gate, direct method — reject a queued access request immediately. `method` names the calling system for the audit trail.
|
|
211
|
+
*/
|
|
212
|
+
async denyAccessRequest(
|
|
213
|
+
request: operations.DenyAccessRequestRequest,
|
|
214
|
+
options?: RequestOptions,
|
|
215
|
+
): Promise<operations.DenyAccessRequestResponse> {
|
|
216
|
+
return unwrapAsync(operationsDenyAccessRequest(
|
|
217
|
+
this,
|
|
218
|
+
request,
|
|
219
|
+
options,
|
|
220
|
+
));
|
|
221
|
+
}
|
|
222
|
+
|
|
193
223
|
/**
|
|
194
224
|
* The customer's kubectl approve command for a queued access request, or null until the operator has materialized the grant CR and reported its coordinates. Polled by the Slack handler to update the access-plan card.
|
|
195
225
|
*/
|
package/src/sdk/resources.ts
CHANGED
|
@@ -33,6 +33,9 @@ export class Resources extends ClientSDK {
|
|
|
33
33
|
));
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
/**
|
|
37
|
+
* List the project's deployments with their rollout state relative to this release.
|
|
38
|
+
*/
|
|
36
39
|
async listDeployments(
|
|
37
40
|
request: operations.ListResourceDeploymentsRequest,
|
|
38
41
|
options?: RequestOptions,
|