@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.
Files changed (140) hide show
  1. package/FUNCTIONS.md +1 -1
  2. package/README.md +4 -0
  3. package/esm/funcs/deploymentsRetry.js +2 -2
  4. package/esm/funcs/deploymentsRetry.js.map +1 -1
  5. package/esm/funcs/operationsApproveAccessRequest.d.ts +15 -0
  6. package/esm/funcs/operationsApproveAccessRequest.d.ts.map +1 -0
  7. package/esm/funcs/operationsApproveAccessRequest.js +89 -0
  8. package/esm/funcs/operationsApproveAccessRequest.js.map +1 -0
  9. package/esm/funcs/operationsDenyAccessRequest.d.ts +15 -0
  10. package/esm/funcs/operationsDenyAccessRequest.d.ts.map +1 -0
  11. package/esm/funcs/operationsDenyAccessRequest.js +89 -0
  12. package/esm/funcs/operationsDenyAccessRequest.js.map +1 -0
  13. package/esm/lib/config.d.ts +2 -2
  14. package/esm/lib/config.js +2 -2
  15. package/esm/lib/config.js.map +1 -1
  16. package/esm/models/createmanagerresponse.d.ts +0 -63
  17. package/esm/models/createmanagerresponse.d.ts.map +1 -1
  18. package/esm/models/createmanagerresponse.js +0 -39
  19. package/esm/models/createmanagerresponse.js.map +1 -1
  20. package/esm/models/createsetupregistrationoperationrequest.d.ts +0 -28
  21. package/esm/models/createsetupregistrationoperationrequest.d.ts.map +1 -1
  22. package/esm/models/createsetupregistrationoperationrequest.js +0 -19
  23. package/esm/models/createsetupregistrationoperationrequest.js.map +1 -1
  24. package/esm/models/deployment.d.ts +0 -21
  25. package/esm/models/deployment.d.ts.map +1 -1
  26. package/esm/models/deployment.js +0 -13
  27. package/esm/models/deployment.js.map +1 -1
  28. package/esm/models/deploymentdetailresponse.d.ts +0 -21
  29. package/esm/models/deploymentdetailresponse.d.ts.map +1 -1
  30. package/esm/models/deploymentdetailresponse.js +0 -19
  31. package/esm/models/deploymentdetailresponse.js.map +1 -1
  32. package/esm/models/deploymentsetupstacksettingspolicy.d.ts +0 -34
  33. package/esm/models/deploymentsetupstacksettingspolicy.d.ts.map +1 -1
  34. package/esm/models/deploymentsetupstacksettingspolicy.js +0 -38
  35. package/esm/models/deploymentsetupstacksettingspolicy.js.map +1 -1
  36. package/esm/models/importsource.d.ts +0 -28
  37. package/esm/models/importsource.d.ts.map +1 -1
  38. package/esm/models/importsource.js +0 -13
  39. package/esm/models/importsource.js.map +1 -1
  40. package/esm/models/managerretryresponse.d.ts +0 -63
  41. package/esm/models/managerretryresponse.d.ts.map +1 -1
  42. package/esm/models/managerretryresponse.js +0 -39
  43. package/esm/models/managerretryresponse.js.map +1 -1
  44. package/esm/models/newdeploymentrequest.d.ts +0 -28
  45. package/esm/models/newdeploymentrequest.d.ts.map +1 -1
  46. package/esm/models/newdeploymentrequest.js +0 -13
  47. package/esm/models/newdeploymentrequest.js.map +1 -1
  48. package/esm/models/operations/approveaccessrequest.d.ts +115 -0
  49. package/esm/models/operations/approveaccessrequest.d.ts.map +1 -0
  50. package/esm/models/operations/approveaccessrequest.js +89 -0
  51. package/esm/models/operations/approveaccessrequest.js.map +1 -0
  52. package/esm/models/operations/denyaccessrequest.d.ts +112 -0
  53. package/esm/models/operations/denyaccessrequest.d.ts.map +1 -0
  54. package/esm/models/operations/denyaccessrequest.js +87 -0
  55. package/esm/models/operations/denyaccessrequest.js.map +1 -0
  56. package/esm/models/operations/getresourcedeploymentdetail.d.ts +107 -21
  57. package/esm/models/operations/getresourcedeploymentdetail.d.ts.map +1 -1
  58. package/esm/models/operations/getresourcedeploymentdetail.js +86 -13
  59. package/esm/models/operations/getresourcedeploymentdetail.js.map +1 -1
  60. package/esm/models/operations/index.d.ts +2 -0
  61. package/esm/models/operations/index.d.ts.map +1 -1
  62. package/esm/models/operations/index.js +2 -0
  63. package/esm/models/operations/index.js.map +1 -1
  64. package/esm/models/operations/plandeploymentcompute.d.ts +0 -28
  65. package/esm/models/operations/plandeploymentcompute.d.ts.map +1 -1
  66. package/esm/models/operations/plandeploymentcompute.js +0 -13
  67. package/esm/models/operations/plandeploymentcompute.js.map +1 -1
  68. package/esm/models/operations/preparedeploymentstack.d.ts +0 -28
  69. package/esm/models/operations/preparedeploymentstack.d.ts.map +1 -1
  70. package/esm/models/operations/preparedeploymentstack.js +0 -13
  71. package/esm/models/operations/preparedeploymentstack.js.map +1 -1
  72. package/esm/models/package.d.ts +9 -3
  73. package/esm/models/package.d.ts.map +1 -1
  74. package/esm/models/package.js.map +1 -1
  75. package/esm/models/persistimporteddeploymentrequest.d.ts +0 -28
  76. package/esm/models/persistimporteddeploymentrequest.d.ts.map +1 -1
  77. package/esm/models/persistimporteddeploymentrequest.js +0 -19
  78. package/esm/models/persistimporteddeploymentrequest.js.map +1 -1
  79. package/esm/models/syncacquirerequest.d.ts +5 -0
  80. package/esm/models/syncacquirerequest.d.ts.map +1 -1
  81. package/esm/models/syncacquirerequest.js +1 -0
  82. package/esm/models/syncacquirerequest.js.map +1 -1
  83. package/esm/models/syncacquireresponsedeployment.d.ts +8 -0
  84. package/esm/models/syncacquireresponsedeployment.d.ts.map +1 -1
  85. package/esm/models/syncacquireresponsedeployment.js +2 -0
  86. package/esm/models/syncacquireresponsedeployment.js.map +1 -1
  87. package/esm/models/synclistresponse.d.ts +0 -21
  88. package/esm/models/synclistresponse.d.ts.map +1 -1
  89. package/esm/models/synclistresponse.js +0 -13
  90. package/esm/models/synclistresponse.js.map +1 -1
  91. package/esm/models/syncreconcilerequest.d.ts +150 -31
  92. package/esm/models/syncreconcilerequest.d.ts.map +1 -1
  93. package/esm/models/syncreconcilerequest.js +86 -12
  94. package/esm/models/syncreconcilerequest.js.map +1 -1
  95. package/esm/models/syncreleaserequest.d.ts +10 -0
  96. package/esm/models/syncreleaserequest.d.ts.map +1 -1
  97. package/esm/models/syncreleaserequest.js +2 -0
  98. package/esm/models/syncreleaserequest.js.map +1 -1
  99. package/esm/models/syncrenewrequest.d.ts +28 -0
  100. package/esm/models/syncrenewrequest.d.ts.map +1 -1
  101. package/esm/models/syncrenewrequest.js +10 -0
  102. package/esm/models/syncrenewrequest.js.map +1 -1
  103. package/esm/sdk/operations.d.ts +8 -0
  104. package/esm/sdk/operations.d.ts.map +1 -1
  105. package/esm/sdk/operations.js +14 -0
  106. package/esm/sdk/operations.js.map +1 -1
  107. package/esm/sdk/resources.d.ts +3 -0
  108. package/esm/sdk/resources.d.ts.map +1 -1
  109. package/esm/sdk/resources.js +3 -0
  110. package/esm/sdk/resources.js.map +1 -1
  111. package/jsr.json +1 -1
  112. package/package.json +1 -1
  113. package/src/funcs/deploymentsRetry.ts +2 -2
  114. package/src/funcs/operationsApproveAccessRequest.ts +179 -0
  115. package/src/funcs/operationsDenyAccessRequest.ts +178 -0
  116. package/src/lib/config.ts +2 -2
  117. package/src/models/createmanagerresponse.ts +0 -162
  118. package/src/models/createsetupregistrationoperationrequest.ts +0 -83
  119. package/src/models/deployment.ts +0 -52
  120. package/src/models/deploymentdetailresponse.ts +0 -62
  121. package/src/models/deploymentsetupstacksettingspolicy.ts +0 -124
  122. package/src/models/importsource.ts +0 -59
  123. package/src/models/managerretryresponse.ts +0 -162
  124. package/src/models/newdeploymentrequest.ts +0 -63
  125. package/src/models/operations/approveaccessrequest.ts +237 -0
  126. package/src/models/operations/denyaccessrequest.ts +228 -0
  127. package/src/models/operations/getresourcedeploymentdetail.ts +203 -36
  128. package/src/models/operations/index.ts +2 -0
  129. package/src/models/operations/plandeploymentcompute.ts +0 -63
  130. package/src/models/operations/preparedeploymentstack.ts +0 -63
  131. package/src/models/package.ts +9 -3
  132. package/src/models/persistimporteddeploymentrequest.ts +0 -75
  133. package/src/models/syncacquirerequest.ts +6 -0
  134. package/src/models/syncacquireresponsedeployment.ts +10 -0
  135. package/src/models/synclistresponse.ts +0 -54
  136. package/src/models/syncreconcilerequest.ts +251 -40
  137. package/src/models/syncreleaserequest.ts +12 -0
  138. package/src/models/syncrenewrequest.ts +39 -0
  139. package/src/sdk/operations.ts +30 -0
  140. package/src/sdk/resources.ts +3 -0
@@ -0,0 +1,115 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import * as models from "../index.js";
6
+ export type ApproveAccessRequestGlobals = {
7
+ /**
8
+ * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client.
9
+ */
10
+ workspace?: string | undefined;
11
+ };
12
+ export type ApproveAccessRequestRequestBody = {
13
+ method: string;
14
+ actorId: string;
15
+ source?: {
16
+ [k: string]: any | null;
17
+ } | undefined;
18
+ approvedForMinutes?: number | undefined;
19
+ };
20
+ export type ApproveAccessRequestRequest = {
21
+ id: string;
22
+ requestBody?: ApproveAccessRequestRequestBody | undefined;
23
+ };
24
+ export type ApproveAccessRequestDeployment = {
25
+ id: string;
26
+ name: string;
27
+ deploymentGroup?: models.DeploymentGroupInfo | undefined;
28
+ };
29
+ /**
30
+ * How risky an operation is (declared by the plugin metadata).
31
+ */
32
+ export declare const ApproveAccessRequestTier: {
33
+ readonly ReadOnly: "read-only";
34
+ readonly Mutating: "mutating";
35
+ readonly Destructive: "destructive";
36
+ };
37
+ /**
38
+ * How risky an operation is (declared by the plugin metadata).
39
+ */
40
+ export type ApproveAccessRequestTier = ClosedEnum<typeof ApproveAccessRequestTier>;
41
+ export type ApproveAccessRequestCommand = {
42
+ command: string;
43
+ summary: string;
44
+ params?: any | null | undefined;
45
+ /**
46
+ * How risky an operation is (declared by the plugin metadata).
47
+ */
48
+ tier?: ApproveAccessRequestTier | undefined;
49
+ };
50
+ /**
51
+ * How risky an operation is (declared by the plugin metadata).
52
+ */
53
+ export declare const ApproveAccessRequestMaxRisk: {
54
+ readonly ReadOnly: "read-only";
55
+ readonly Mutating: "mutating";
56
+ readonly Destructive: "destructive";
57
+ };
58
+ /**
59
+ * How risky an operation is (declared by the plugin metadata).
60
+ */
61
+ export type ApproveAccessRequestMaxRisk = ClosedEnum<typeof ApproveAccessRequestMaxRisk>;
62
+ /**
63
+ * The approved access request.
64
+ */
65
+ export type ApproveAccessRequestResponse = {
66
+ id: string;
67
+ deploymentId: string;
68
+ deployment?: ApproveAccessRequestDeployment | undefined;
69
+ remediationPlanId: string | null;
70
+ title: string;
71
+ reason: string | null;
72
+ commands: Array<ApproveAccessRequestCommand>;
73
+ operationPattern: string | null;
74
+ /**
75
+ * How risky an operation is (declared by the plugin metadata).
76
+ */
77
+ maxRisk: ApproveAccessRequestMaxRisk | null;
78
+ status: models.AccessRequestStatus;
79
+ approvedUntil: string | null;
80
+ approvalMethod: string;
81
+ };
82
+ /** @internal */
83
+ export type ApproveAccessRequestRequestBody$Outbound = {
84
+ method: string;
85
+ actorId: string;
86
+ source?: {
87
+ [k: string]: any | null;
88
+ } | undefined;
89
+ approvedForMinutes?: number | undefined;
90
+ };
91
+ /** @internal */
92
+ export declare const ApproveAccessRequestRequestBody$outboundSchema: z.ZodType<ApproveAccessRequestRequestBody$Outbound, ApproveAccessRequestRequestBody>;
93
+ export declare function approveAccessRequestRequestBodyToJSON(approveAccessRequestRequestBody: ApproveAccessRequestRequestBody): string;
94
+ /** @internal */
95
+ export type ApproveAccessRequestRequest$Outbound = {
96
+ id: string;
97
+ RequestBody?: ApproveAccessRequestRequestBody$Outbound | undefined;
98
+ };
99
+ /** @internal */
100
+ export declare const ApproveAccessRequestRequest$outboundSchema: z.ZodType<ApproveAccessRequestRequest$Outbound, ApproveAccessRequestRequest>;
101
+ export declare function approveAccessRequestRequestToJSON(approveAccessRequestRequest: ApproveAccessRequestRequest): string;
102
+ /** @internal */
103
+ export declare const ApproveAccessRequestDeployment$inboundSchema: z.ZodType<ApproveAccessRequestDeployment, unknown>;
104
+ export declare function approveAccessRequestDeploymentFromJSON(jsonString: string): SafeParseResult<ApproveAccessRequestDeployment, SDKValidationError>;
105
+ /** @internal */
106
+ export declare const ApproveAccessRequestTier$inboundSchema: z.ZodEnum<typeof ApproveAccessRequestTier>;
107
+ /** @internal */
108
+ export declare const ApproveAccessRequestCommand$inboundSchema: z.ZodType<ApproveAccessRequestCommand, unknown>;
109
+ export declare function approveAccessRequestCommandFromJSON(jsonString: string): SafeParseResult<ApproveAccessRequestCommand, SDKValidationError>;
110
+ /** @internal */
111
+ export declare const ApproveAccessRequestMaxRisk$inboundSchema: z.ZodEnum<typeof ApproveAccessRequestMaxRisk>;
112
+ /** @internal */
113
+ export declare const ApproveAccessRequestResponse$inboundSchema: z.ZodType<ApproveAccessRequestResponse, unknown>;
114
+ export declare function approveAccessRequestResponseFromJSON(jsonString: string): SafeParseResult<ApproveAccessRequestResponse, SDKValidationError>;
115
+ //# sourceMappingURL=approveaccessrequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approveaccessrequest.d.ts","sourceRoot":"","sources":["../../../src/models/operations/approveaccessrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAChC,CAAC;AAEF,MAAM,MAAM,+BAA+B,GAAG;IAC5C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,CAAC,EAAE;QAAE,CAAC,CAAC,EAAE,MAAM,GAAG,GAAG,GAAG,IAAI,CAAA;KAAE,GAAG,SAAS,CAAC;IACjD,kBAAkB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,MAAM,MAAM,2BAA2B,GAAG;IACxC,EAAE,EAAE,MAAM,CAAC;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;AAEH,wBAAgB,mCAAmC,CACjD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE;AAED,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,OAAO,2BAA2B,CACG,CAAC;AAExC,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,4BAA4B,EAC5B,OAAO,CAeP,CAAC;AAEH,wBAAgB,oCAAoC,CAClD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,4BAA4B,EAAE,kBAAkB,CAAC,CAMnE"}
@@ -0,0 +1,89 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import * as models from "../index.js";
8
+ /**
9
+ * How risky an operation is (declared by the plugin metadata).
10
+ */
11
+ export const ApproveAccessRequestTier = {
12
+ ReadOnly: "read-only",
13
+ Mutating: "mutating",
14
+ Destructive: "destructive",
15
+ };
16
+ /**
17
+ * How risky an operation is (declared by the plugin metadata).
18
+ */
19
+ export const ApproveAccessRequestMaxRisk = {
20
+ ReadOnly: "read-only",
21
+ Mutating: "mutating",
22
+ Destructive: "destructive",
23
+ };
24
+ /** @internal */
25
+ export const ApproveAccessRequestRequestBody$outboundSchema = z.object({
26
+ method: z.string(),
27
+ actorId: z.string(),
28
+ source: z.record(z.string(), z.nullable(z.any())).optional(),
29
+ approvedForMinutes: z.int().optional(),
30
+ });
31
+ export function approveAccessRequestRequestBodyToJSON(approveAccessRequestRequestBody) {
32
+ return JSON.stringify(ApproveAccessRequestRequestBody$outboundSchema.parse(approveAccessRequestRequestBody));
33
+ }
34
+ /** @internal */
35
+ export const ApproveAccessRequestRequest$outboundSchema = z.object({
36
+ id: z.string(),
37
+ requestBody: z.lazy(() => ApproveAccessRequestRequestBody$outboundSchema)
38
+ .optional(),
39
+ }).transform((v) => {
40
+ return remap$(v, {
41
+ requestBody: "RequestBody",
42
+ });
43
+ });
44
+ export function approveAccessRequestRequestToJSON(approveAccessRequestRequest) {
45
+ return JSON.stringify(ApproveAccessRequestRequest$outboundSchema.parse(approveAccessRequestRequest));
46
+ }
47
+ /** @internal */
48
+ export const ApproveAccessRequestDeployment$inboundSchema = z.object({
49
+ id: z.string(),
50
+ name: z.string(),
51
+ deploymentGroup: models.DeploymentGroupInfo$inboundSchema.optional(),
52
+ });
53
+ export function approveAccessRequestDeploymentFromJSON(jsonString) {
54
+ return safeParse(jsonString, (x) => ApproveAccessRequestDeployment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ApproveAccessRequestDeployment' from JSON`);
55
+ }
56
+ /** @internal */
57
+ export const ApproveAccessRequestTier$inboundSchema = z.enum(ApproveAccessRequestTier);
58
+ /** @internal */
59
+ export const ApproveAccessRequestCommand$inboundSchema = z.object({
60
+ command: z.string(),
61
+ summary: z.string(),
62
+ params: z.nullable(z.any()).optional(),
63
+ tier: ApproveAccessRequestTier$inboundSchema.optional(),
64
+ });
65
+ export function approveAccessRequestCommandFromJSON(jsonString) {
66
+ return safeParse(jsonString, (x) => ApproveAccessRequestCommand$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ApproveAccessRequestCommand' from JSON`);
67
+ }
68
+ /** @internal */
69
+ export const ApproveAccessRequestMaxRisk$inboundSchema = z.enum(ApproveAccessRequestMaxRisk);
70
+ /** @internal */
71
+ export const ApproveAccessRequestResponse$inboundSchema = z.object({
72
+ id: z.string(),
73
+ deploymentId: z.string(),
74
+ deployment: z.lazy(() => ApproveAccessRequestDeployment$inboundSchema)
75
+ .optional(),
76
+ remediationPlanId: z.nullable(z.string()),
77
+ title: z.string(),
78
+ reason: z.nullable(z.string()),
79
+ commands: z.array(z.lazy(() => ApproveAccessRequestCommand$inboundSchema)),
80
+ operationPattern: z.nullable(z.string()),
81
+ maxRisk: z.nullable(ApproveAccessRequestMaxRisk$inboundSchema),
82
+ status: models.AccessRequestStatus$inboundSchema,
83
+ approvedUntil: z.nullable(z.string()),
84
+ approvalMethod: z.string(),
85
+ });
86
+ export function approveAccessRequestResponseFromJSON(jsonString) {
87
+ return safeParse(jsonString, (x) => ApproveAccessRequestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'ApproveAccessRequestResponse' from JSON`);
88
+ }
89
+ //# sourceMappingURL=approveaccessrequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"approveaccessrequest.js","sourceRoot":"","sources":["../../../src/models/operations/approveaccessrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AA2BtC;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;CAClB,CAAC;AAkBX;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GAAG;IACzC,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;CAClB,CAAC;AAqCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,8CAA8C,GAGvD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,MAAM,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,QAAQ,EAAE;IAC5D,kBA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E,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACxC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,yCAAyC,CAAC;IAC9D,MAAM,EAAE,MAAM,CAAC,iCAAiC;IAChD,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACrC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAEH,MAAM,UAAU,oCAAoC,CAClD,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAA0C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACtE,0DAA0D,CAC3D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,112 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import * as models from "../index.js";
6
+ export type DenyAccessRequestGlobals = {
7
+ /**
8
+ * Workspace name. Platform API keys already select a workspace; other authentication methods can configure it once on the SDK client.
9
+ */
10
+ workspace?: string | undefined;
11
+ };
12
+ export type DenyAccessRequestRequestBody = {
13
+ method: string;
14
+ actorId: string;
15
+ source?: {
16
+ [k: string]: any | null;
17
+ } | undefined;
18
+ };
19
+ export type DenyAccessRequestRequest = {
20
+ id: string;
21
+ requestBody?: DenyAccessRequestRequestBody | undefined;
22
+ };
23
+ export type DenyAccessRequestDeployment = {
24
+ id: string;
25
+ name: string;
26
+ deploymentGroup?: models.DeploymentGroupInfo | undefined;
27
+ };
28
+ /**
29
+ * How risky an operation is (declared by the plugin metadata).
30
+ */
31
+ export declare const DenyAccessRequestTier: {
32
+ readonly ReadOnly: "read-only";
33
+ readonly Mutating: "mutating";
34
+ readonly Destructive: "destructive";
35
+ };
36
+ /**
37
+ * How risky an operation is (declared by the plugin metadata).
38
+ */
39
+ export type DenyAccessRequestTier = ClosedEnum<typeof DenyAccessRequestTier>;
40
+ export type DenyAccessRequestCommand = {
41
+ command: string;
42
+ summary: string;
43
+ params?: any | null | undefined;
44
+ /**
45
+ * How risky an operation is (declared by the plugin metadata).
46
+ */
47
+ tier?: DenyAccessRequestTier | undefined;
48
+ };
49
+ /**
50
+ * How risky an operation is (declared by the plugin metadata).
51
+ */
52
+ export declare const DenyAccessRequestMaxRisk: {
53
+ readonly ReadOnly: "read-only";
54
+ readonly Mutating: "mutating";
55
+ readonly Destructive: "destructive";
56
+ };
57
+ /**
58
+ * How risky an operation is (declared by the plugin metadata).
59
+ */
60
+ export type DenyAccessRequestMaxRisk = ClosedEnum<typeof DenyAccessRequestMaxRisk>;
61
+ /**
62
+ * The rejected access request.
63
+ */
64
+ export type DenyAccessRequestResponse = {
65
+ id: string;
66
+ deploymentId: string;
67
+ deployment?: DenyAccessRequestDeployment | undefined;
68
+ remediationPlanId: string | null;
69
+ title: string;
70
+ reason: string | null;
71
+ commands: Array<DenyAccessRequestCommand>;
72
+ operationPattern: string | null;
73
+ /**
74
+ * How risky an operation is (declared by the plugin metadata).
75
+ */
76
+ maxRisk: DenyAccessRequestMaxRisk | null;
77
+ status: models.AccessRequestStatus;
78
+ approvedUntil: string | null;
79
+ };
80
+ /** @internal */
81
+ export type DenyAccessRequestRequestBody$Outbound = {
82
+ method: string;
83
+ actorId: string;
84
+ source?: {
85
+ [k: string]: any | null;
86
+ } | undefined;
87
+ };
88
+ /** @internal */
89
+ export declare const DenyAccessRequestRequestBody$outboundSchema: z.ZodType<DenyAccessRequestRequestBody$Outbound, DenyAccessRequestRequestBody>;
90
+ export declare function denyAccessRequestRequestBodyToJSON(denyAccessRequestRequestBody: DenyAccessRequestRequestBody): string;
91
+ /** @internal */
92
+ export type DenyAccessRequestRequest$Outbound = {
93
+ id: string;
94
+ RequestBody?: DenyAccessRequestRequestBody$Outbound | undefined;
95
+ };
96
+ /** @internal */
97
+ export declare const DenyAccessRequestRequest$outboundSchema: z.ZodType<DenyAccessRequestRequest$Outbound, DenyAccessRequestRequest>;
98
+ export declare function denyAccessRequestRequestToJSON(denyAccessRequestRequest: DenyAccessRequestRequest): string;
99
+ /** @internal */
100
+ export declare const DenyAccessRequestDeployment$inboundSchema: z.ZodType<DenyAccessRequestDeployment, unknown>;
101
+ export declare function denyAccessRequestDeploymentFromJSON(jsonString: string): SafeParseResult<DenyAccessRequestDeployment, SDKValidationError>;
102
+ /** @internal */
103
+ export declare const DenyAccessRequestTier$inboundSchema: z.ZodEnum<typeof DenyAccessRequestTier>;
104
+ /** @internal */
105
+ export declare const DenyAccessRequestCommand$inboundSchema: z.ZodType<DenyAccessRequestCommand, unknown>;
106
+ export declare function denyAccessRequestCommandFromJSON(jsonString: string): SafeParseResult<DenyAccessRequestCommand, SDKValidationError>;
107
+ /** @internal */
108
+ export declare const DenyAccessRequestMaxRisk$inboundSchema: z.ZodEnum<typeof DenyAccessRequestMaxRisk>;
109
+ /** @internal */
110
+ export declare const DenyAccessRequestResponse$inboundSchema: z.ZodType<DenyAccessRequestResponse, unknown>;
111
+ export declare function denyAccessRequestResponseFromJSON(jsonString: string): SafeParseResult<DenyAccessRequestResponse, SDKValidationError>;
112
+ //# sourceMappingURL=denyaccessrequest.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"denyaccessrequest.d.ts","sourceRoot":"","sources":["../../../src/models/operations/denyaccessrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AAEtC,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,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Ae,CAAC,2BAA2B,EAAE,kBAAkB,CAAC,CAMlE;AAED,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,OAAO,qBAAqB,CACG,CAAC;AAElC,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,OAAO,CAMP,CAAC;AAEH,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D;AAED,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,OAAO,wBAAwB,CACG,CAAC;AAErC,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,OAAO,CAcP,CAAC;AAEH,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
@@ -0,0 +1,87 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ */
4
+ import * as z from "zod/v4";
5
+ import { remap as remap$ } from "../../lib/primitives.js";
6
+ import { safeParse } from "../../lib/schemas.js";
7
+ import * as models from "../index.js";
8
+ /**
9
+ * How risky an operation is (declared by the plugin metadata).
10
+ */
11
+ export const DenyAccessRequestTier = {
12
+ ReadOnly: "read-only",
13
+ Mutating: "mutating",
14
+ Destructive: "destructive",
15
+ };
16
+ /**
17
+ * How risky an operation is (declared by the plugin metadata).
18
+ */
19
+ export const DenyAccessRequestMaxRisk = {
20
+ ReadOnly: "read-only",
21
+ Mutating: "mutating",
22
+ Destructive: "destructive",
23
+ };
24
+ /** @internal */
25
+ export const DenyAccessRequestRequestBody$outboundSchema = z.object({
26
+ method: z.string(),
27
+ actorId: z.string(),
28
+ source: z.record(z.string(), z.nullable(z.any())).optional(),
29
+ });
30
+ export function denyAccessRequestRequestBodyToJSON(denyAccessRequestRequestBody) {
31
+ return JSON.stringify(DenyAccessRequestRequestBody$outboundSchema.parse(denyAccessRequestRequestBody));
32
+ }
33
+ /** @internal */
34
+ export const DenyAccessRequestRequest$outboundSchema = z.object({
35
+ id: z.string(),
36
+ requestBody: z.lazy(() => DenyAccessRequestRequestBody$outboundSchema)
37
+ .optional(),
38
+ }).transform((v) => {
39
+ return remap$(v, {
40
+ requestBody: "RequestBody",
41
+ });
42
+ });
43
+ export function denyAccessRequestRequestToJSON(denyAccessRequestRequest) {
44
+ return JSON.stringify(DenyAccessRequestRequest$outboundSchema.parse(denyAccessRequestRequest));
45
+ }
46
+ /** @internal */
47
+ export const DenyAccessRequestDeployment$inboundSchema = z.object({
48
+ id: z.string(),
49
+ name: z.string(),
50
+ deploymentGroup: models.DeploymentGroupInfo$inboundSchema.optional(),
51
+ });
52
+ export function denyAccessRequestDeploymentFromJSON(jsonString) {
53
+ return safeParse(jsonString, (x) => DenyAccessRequestDeployment$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DenyAccessRequestDeployment' from JSON`);
54
+ }
55
+ /** @internal */
56
+ export const DenyAccessRequestTier$inboundSchema = z.enum(DenyAccessRequestTier);
57
+ /** @internal */
58
+ export const DenyAccessRequestCommand$inboundSchema = z.object({
59
+ command: z.string(),
60
+ summary: z.string(),
61
+ params: z.nullable(z.any()).optional(),
62
+ tier: DenyAccessRequestTier$inboundSchema.optional(),
63
+ });
64
+ export function denyAccessRequestCommandFromJSON(jsonString) {
65
+ return safeParse(jsonString, (x) => DenyAccessRequestCommand$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DenyAccessRequestCommand' from JSON`);
66
+ }
67
+ /** @internal */
68
+ export const DenyAccessRequestMaxRisk$inboundSchema = z.enum(DenyAccessRequestMaxRisk);
69
+ /** @internal */
70
+ export const DenyAccessRequestResponse$inboundSchema = z.object({
71
+ id: z.string(),
72
+ deploymentId: z.string(),
73
+ deployment: z.lazy(() => DenyAccessRequestDeployment$inboundSchema)
74
+ .optional(),
75
+ remediationPlanId: z.nullable(z.string()),
76
+ title: z.string(),
77
+ reason: z.nullable(z.string()),
78
+ commands: z.array(z.lazy(() => DenyAccessRequestCommand$inboundSchema)),
79
+ operationPattern: z.nullable(z.string()),
80
+ maxRisk: z.nullable(DenyAccessRequestMaxRisk$inboundSchema),
81
+ status: models.AccessRequestStatus$inboundSchema,
82
+ approvedUntil: z.nullable(z.string()),
83
+ });
84
+ export function denyAccessRequestResponseFromJSON(jsonString) {
85
+ return safeParse(jsonString, (x) => DenyAccessRequestResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DenyAccessRequestResponse' from JSON`);
86
+ }
87
+ //# sourceMappingURL=denyaccessrequest.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"denyaccessrequest.js","sourceRoot":"","sources":["../../../src/models/operations/denyaccessrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,yBAAyB,CAAC;AAC1D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AAIjD,OAAO,KAAK,MAAM,MAAM,aAAa,CAAC;AA0BtC;;GAEG;AACH,MAAM,CAAC,MAAM,qBAAqB,GAAG;IACnC,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;CAClB,CAAC;AAgBX;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAG;IACtC,QAAQ,EAAE,WAAW;IACrB,QAAQ,EAAE,UAAU;IACpB,WAAW,EAAE,aAAa;CAClB,CAAC;AAmCX,gBAAgB;AAChB,MAAM,CAAC,MAAM,2CAA2C,GAGpD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,OAAO,EAAE,CAAC,CAAC,MAAM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AE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,sCAAsC,CAAC,CAAC;IACvE,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACxC,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,sCAAsC,CAAC;IAC3D,MAAM,EAAE,MAAM,CAAC,iCAAiC;IAChD,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CACtC,CAAC,CAAC;AAEH,MAAM,UAAU,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
@@ -78,6 +78,69 @@ export declare const ControllerPlatform: {
78
78
  * Represents the target cloud platform.
79
79
  */
80
80
  export type ControllerPlatform = ClosedEnum<typeof ControllerPlatform>;
81
+ export declare const GetResourceDeploymentDetailReason74: {
82
+ readonly Forbidden: "forbidden";
83
+ readonly NotInstalled: "not-installed";
84
+ readonly ApiUnavailable: "api-unavailable";
85
+ readonly CollectionFailed: "collection-failed";
86
+ readonly TimedOut: "timed-out";
87
+ };
88
+ export type GetResourceDeploymentDetailReason74 = ClosedEnum<typeof GetResourceDeploymentDetailReason74>;
89
+ export declare const CollectionIssueSeverity74: {
90
+ readonly Info: "info";
91
+ readonly Warning: "warning";
92
+ readonly Error: "error";
93
+ };
94
+ export type CollectionIssueSeverity74 = ClosedEnum<typeof CollectionIssueSeverity74>;
95
+ export type CollectionIssue74 = {
96
+ message: string;
97
+ reason: GetResourceDeploymentDetailReason74;
98
+ severity: CollectionIssueSeverity74;
99
+ source: string;
100
+ };
101
+ export declare const Health77: {
102
+ readonly Unknown: "unknown";
103
+ readonly Healthy: "healthy";
104
+ readonly Degraded: "degraded";
105
+ readonly Unhealthy: "unhealthy";
106
+ };
107
+ export type Health77 = ClosedEnum<typeof Health77>;
108
+ export declare const Lifecycle77: {
109
+ readonly Unknown: "unknown";
110
+ readonly Creating: "creating";
111
+ readonly Updating: "updating";
112
+ readonly Running: "running";
113
+ readonly Scaling: "scaling";
114
+ readonly Stopping: "stopping";
115
+ readonly Stopped: "stopped";
116
+ readonly Deleting: "deleting";
117
+ readonly Deleted: "deleted";
118
+ readonly Failed: "failed";
119
+ };
120
+ export type Lifecycle77 = ClosedEnum<typeof Lifecycle77>;
121
+ export type DataStatus77 = {
122
+ collectionIssues: Array<CollectionIssue74>;
123
+ health: Health77;
124
+ lifecycle: Lifecycle77;
125
+ message?: string | null | undefined;
126
+ partial: boolean;
127
+ stale: boolean;
128
+ };
129
+ /**
130
+ * Local: containers Docker still holds for this sandbox.
131
+ */
132
+ export type DataLocal12 = {
133
+ activeSessions: number;
134
+ /**
135
+ * Whether the loopback route is serving in this process. False after a manager restart until
136
+ *
137
+ * @remarks
138
+ * the next tick rebinds it.
139
+ */
140
+ routeServing: boolean;
141
+ status: DataStatus77;
142
+ backend: "local";
143
+ };
81
144
  export declare const GetResourceDeploymentDetailReason73: {
82
145
  readonly Forbidden: "forbidden";
83
146
  readonly NotInstalled: "not-installed";
@@ -127,19 +190,17 @@ export type DataStatus76 = {
127
190
  stale: boolean;
128
191
  };
129
192
  /**
130
- * Local: containers Docker still holds for this sandbox.
193
+ * Kubernetes: pods carrying the sandbox label, in the deployment's namespace.
131
194
  */
132
- export type DataLocal12 = {
195
+ export type DataKubernetesPods = {
133
196
  activeSessions: number;
134
197
  /**
135
- * Whether the loopback route is serving in this process. False after a manager restart until
136
- *
137
- * @remarks
138
- * the next tick rebinds it.
198
+ * Claimed but unused pods waiting in the pool.
139
199
  */
140
- routeServing: boolean;
200
+ idlePods: number;
201
+ namespace: string;
141
202
  status: DataStatus76;
142
- backend: "local";
203
+ backend: "kubernetesPods";
143
204
  };
144
205
  export declare const GetResourceDeploymentDetailReason72: {
145
206
  readonly Forbidden: "forbidden";
@@ -190,17 +251,25 @@ export type DataStatus75 = {
190
251
  stale: boolean;
191
252
  };
192
253
  /**
193
- * Kubernetes: pods carrying the sandbox label, in the deployment's namespace.
254
+ * GCP: the Agent Platform template sessions are cut from, and the engine it hangs under.
255
+ *
256
+ * @remarks
257
+ *
258
+ * No session count: that needs `aiplatform.sandboxEnvironments.list`, which only the management
259
+ * permission set holds. No template state either — emission is gated on reading it `ACTIVE`,
260
+ * which is what `status` already says.
194
261
  */
195
- export type DataKubernetesPods = {
196
- activeSessions: number;
262
+ export type DataGcpAgentPlatform = {
197
263
  /**
198
- * Claimed but unused pods waiting in the pool.
264
+ * Reasoning engine the template hangs under, without which the template id names nothing.
199
265
  */
200
- idlePods: number;
201
- namespace: string;
266
+ engine: string;
202
267
  status: DataStatus75;
203
- backend: "kubernetesPods";
268
+ /**
269
+ * The template sessions are currently cut from.
270
+ */
271
+ templateId: string;
272
+ backend: "gcpAgentPlatform";
204
273
  };
205
274
  export declare const GetResourceDeploymentDetailReason71: {
206
275
  readonly Forbidden: "forbidden";
@@ -340,7 +409,7 @@ export type DataAwsMicrovm = {
340
409
  * Never anything from inside a session. A controller reaches only the cloud's management APIs,
341
410
  * and the whole point of the resource is that the control plane cannot see what runs in it.
342
411
  */
343
- export type DataUnion18 = DataAwsMicrovm | DataAzureSandboxGroup | DataKubernetesPods | DataLocal12;
412
+ export type DataUnion18 = DataAwsMicrovm | DataAzureSandboxGroup | DataGcpAgentPlatform | DataKubernetesPods | DataLocal12;
344
413
  export type DataSandbox = {
345
414
  /**
346
415
  * Content-free telemetry about a sandbox's sessions.
@@ -350,7 +419,7 @@ export type DataSandbox = {
350
419
  * Never anything from inside a session. A controller reaches only the cloud's management APIs,
351
420
  * and the whole point of the resource is that the control plane cannot see what runs in it.
352
421
  */
353
- data: DataAwsMicrovm | DataAzureSandboxGroup | DataKubernetesPods | DataLocal12;
422
+ data: DataAwsMicrovm | DataAzureSandboxGroup | DataGcpAgentPlatform | DataKubernetesPods | DataLocal12;
354
423
  resourceType: "sandbox";
355
424
  };
356
425
  export declare const Health72: {
@@ -7142,6 +7211,23 @@ export declare const BackendEnum$inboundSchema: z.ZodEnum<typeof BackendEnum>;
7142
7211
  /** @internal */
7143
7212
  export declare const ControllerPlatform$inboundSchema: z.ZodEnum<typeof ControllerPlatform>;
7144
7213
  /** @internal */
7214
+ export declare const GetResourceDeploymentDetailReason74$inboundSchema: z.ZodEnum<typeof GetResourceDeploymentDetailReason74>;
7215
+ /** @internal */
7216
+ export declare const CollectionIssueSeverity74$inboundSchema: z.ZodEnum<typeof CollectionIssueSeverity74>;
7217
+ /** @internal */
7218
+ export declare const CollectionIssue74$inboundSchema: z.ZodType<CollectionIssue74, unknown>;
7219
+ export declare function collectionIssue74FromJSON(jsonString: string): SafeParseResult<CollectionIssue74, SDKValidationError>;
7220
+ /** @internal */
7221
+ export declare const Health77$inboundSchema: z.ZodEnum<typeof Health77>;
7222
+ /** @internal */
7223
+ export declare const Lifecycle77$inboundSchema: z.ZodEnum<typeof Lifecycle77>;
7224
+ /** @internal */
7225
+ export declare const DataStatus77$inboundSchema: z.ZodType<DataStatus77, unknown>;
7226
+ export declare function dataStatus77FromJSON(jsonString: string): SafeParseResult<DataStatus77, SDKValidationError>;
7227
+ /** @internal */
7228
+ export declare const DataLocal12$inboundSchema: z.ZodType<DataLocal12, unknown>;
7229
+ export declare function dataLocal12FromJSON(jsonString: string): SafeParseResult<DataLocal12, SDKValidationError>;
7230
+ /** @internal */
7145
7231
  export declare const GetResourceDeploymentDetailReason73$inboundSchema: z.ZodEnum<typeof GetResourceDeploymentDetailReason73>;
7146
7232
  /** @internal */
7147
7233
  export declare const CollectionIssueSeverity73$inboundSchema: z.ZodEnum<typeof CollectionIssueSeverity73>;
@@ -7156,8 +7242,8 @@ export declare const Lifecycle76$inboundSchema: z.ZodEnum<typeof Lifecycle76>;
7156
7242
  export declare const DataStatus76$inboundSchema: z.ZodType<DataStatus76, unknown>;
7157
7243
  export declare function dataStatus76FromJSON(jsonString: string): SafeParseResult<DataStatus76, SDKValidationError>;
7158
7244
  /** @internal */
7159
- export declare const DataLocal12$inboundSchema: z.ZodType<DataLocal12, unknown>;
7160
- export declare function dataLocal12FromJSON(jsonString: string): SafeParseResult<DataLocal12, SDKValidationError>;
7245
+ export declare const DataKubernetesPods$inboundSchema: z.ZodType<DataKubernetesPods, unknown>;
7246
+ export declare function dataKubernetesPodsFromJSON(jsonString: string): SafeParseResult<DataKubernetesPods, SDKValidationError>;
7161
7247
  /** @internal */
7162
7248
  export declare const GetResourceDeploymentDetailReason72$inboundSchema: z.ZodEnum<typeof GetResourceDeploymentDetailReason72>;
7163
7249
  /** @internal */
@@ -7173,8 +7259,8 @@ export declare const Lifecycle75$inboundSchema: z.ZodEnum<typeof Lifecycle75>;
7173
7259
  export declare const DataStatus75$inboundSchema: z.ZodType<DataStatus75, unknown>;
7174
7260
  export declare function dataStatus75FromJSON(jsonString: string): SafeParseResult<DataStatus75, SDKValidationError>;
7175
7261
  /** @internal */
7176
- export declare const DataKubernetesPods$inboundSchema: z.ZodType<DataKubernetesPods, unknown>;
7177
- export declare function dataKubernetesPodsFromJSON(jsonString: string): SafeParseResult<DataKubernetesPods, SDKValidationError>;
7262
+ export declare const DataGcpAgentPlatform$inboundSchema: z.ZodType<DataGcpAgentPlatform, unknown>;
7263
+ export declare function dataGcpAgentPlatformFromJSON(jsonString: string): SafeParseResult<DataGcpAgentPlatform, SDKValidationError>;
7178
7264
  /** @internal */
7179
7265
  export declare const GetResourceDeploymentDetailReason71$inboundSchema: z.ZodEnum<typeof GetResourceDeploymentDetailReason71>;
7180
7266
  /** @internal */