@alienplatform/manager-api 3.3.32 → 3.3.34

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 (124) hide show
  1. package/README.md +2 -5
  2. package/esm/funcs/{credentialsMintCredentials.d.ts → deploymentsSetQuotaWarningOverrides.d.ts} +5 -2
  3. package/esm/funcs/deploymentsSetQuotaWarningOverrides.d.ts.map +1 -0
  4. package/esm/funcs/{credentialsMintCredentials.js → deploymentsSetQuotaWarningOverrides.js} +30 -14
  5. package/esm/funcs/deploymentsSetQuotaWarningOverrides.js.map +1 -0
  6. package/esm/lib/config.d.ts +2 -2
  7. package/esm/lib/config.js +2 -2
  8. package/esm/models/containerresourceselection.d.ts +8 -0
  9. package/esm/models/containerresourceselection.d.ts.map +1 -1
  10. package/esm/models/containerresourceselection.js +2 -0
  11. package/esm/models/containerresourceselection.js.map +1 -1
  12. package/esm/models/index.d.ts +2 -12
  13. package/esm/models/index.d.ts.map +1 -1
  14. package/esm/models/index.js +2 -12
  15. package/esm/models/index.js.map +1 -1
  16. package/esm/models/operations/index.d.ts +1 -0
  17. package/esm/models/operations/index.d.ts.map +1 -1
  18. package/esm/models/operations/index.js +1 -0
  19. package/esm/models/operations/index.js.map +1 -1
  20. package/esm/models/operations/setquotawarningoverrides.d.ts +18 -0
  21. package/esm/models/operations/setquotawarningoverrides.d.ts.map +1 -0
  22. package/esm/models/operations/setquotawarningoverrides.js +19 -0
  23. package/esm/models/operations/setquotawarningoverrides.js.map +1 -0
  24. package/esm/models/setquotawarningoverridesrequest.d.ts +15 -0
  25. package/esm/models/setquotawarningoverridesrequest.d.ts.map +1 -0
  26. package/esm/models/setquotawarningoverridesrequest.js +12 -0
  27. package/esm/models/setquotawarningoverridesrequest.js.map +1 -0
  28. package/esm/models/setupmanagement.d.ts +18 -0
  29. package/esm/models/setupmanagement.d.ts.map +1 -0
  30. package/esm/models/setupmanagement.js +16 -0
  31. package/esm/models/setupmanagement.js.map +1 -0
  32. package/esm/models/stacksettings.d.ts +15 -0
  33. package/esm/models/stacksettings.d.ts.map +1 -1
  34. package/esm/models/stacksettings.js +5 -0
  35. package/esm/models/stacksettings.js.map +1 -1
  36. package/esm/sdk/deployments.d.ts +4 -0
  37. package/esm/sdk/deployments.d.ts.map +1 -1
  38. package/esm/sdk/deployments.js +7 -0
  39. package/esm/sdk/deployments.js.map +1 -1
  40. package/esm/sdk/sdk.d.ts +0 -3
  41. package/esm/sdk/sdk.d.ts.map +1 -1
  42. package/esm/sdk/sdk.js +0 -4
  43. package/esm/sdk/sdk.js.map +1 -1
  44. package/examples/package-lock.json +1 -1
  45. package/jsr.json +1 -1
  46. package/package.json +3 -3
  47. package/src/funcs/{credentialsMintCredentials.ts → deploymentsSetQuotaWarningOverrides.ts} +43 -18
  48. package/src/lib/config.ts +2 -2
  49. package/src/models/containerresourceselection.ts +10 -0
  50. package/src/models/index.ts +2 -12
  51. package/src/models/operations/index.ts +1 -0
  52. package/src/models/operations/setquotawarningoverrides.ts +46 -0
  53. package/src/models/setquotawarningoverridesrequest.ts +35 -0
  54. package/src/models/setupmanagement.ts +25 -0
  55. package/src/models/stacksettings.ts +23 -0
  56. package/src/sdk/deployments.ts +17 -0
  57. package/src/sdk/sdk.ts +0 -6
  58. package/esm/funcs/credentialsMintCredentials.d.ts.map +0 -1
  59. package/esm/funcs/credentialsMintCredentials.js.map +0 -1
  60. package/esm/models/awscredentials.d.ts +0 -121
  61. package/esm/models/awscredentials.d.ts.map +0 -1
  62. package/esm/models/awscredentials.js +0 -93
  63. package/esm/models/awscredentials.js.map +0 -1
  64. package/esm/models/awsserviceoverrides.d.ts +0 -21
  65. package/esm/models/awsserviceoverrides.d.ts.map +0 -1
  66. package/esm/models/awsserviceoverrides.js +0 -13
  67. package/esm/models/awsserviceoverrides.js.map +0 -1
  68. package/esm/models/awswebidentityconfig.d.ts +0 -28
  69. package/esm/models/awswebidentityconfig.d.ts.map +0 -1
  70. package/esm/models/awswebidentityconfig.js +0 -16
  71. package/esm/models/awswebidentityconfig.js.map +0 -1
  72. package/esm/models/azurecredentials.d.ts +0 -132
  73. package/esm/models/azurecredentials.d.ts.map +0 -1
  74. package/esm/models/azurecredentials.js +0 -97
  75. package/esm/models/azurecredentials.js.map +0 -1
  76. package/esm/models/azureserviceoverrides.d.ts +0 -21
  77. package/esm/models/azureserviceoverrides.d.ts.map +0 -1
  78. package/esm/models/azureserviceoverrides.js +0 -13
  79. package/esm/models/azureserviceoverrides.js.map +0 -1
  80. package/esm/models/clientconfigunion.d.ts +0 -284
  81. package/esm/models/clientconfigunion.d.ts.map +0 -1
  82. package/esm/models/clientconfigunion.js +0 -201
  83. package/esm/models/clientconfigunion.js.map +0 -1
  84. package/esm/models/gcpcredentials.d.ts +0 -138
  85. package/esm/models/gcpcredentials.d.ts.map +0 -1
  86. package/esm/models/gcpcredentials.js +0 -107
  87. package/esm/models/gcpcredentials.js.map +0 -1
  88. package/esm/models/gcpimpersonationconfig.d.ts +0 -42
  89. package/esm/models/gcpimpersonationconfig.d.ts.map +0 -1
  90. package/esm/models/gcpimpersonationconfig.js +0 -18
  91. package/esm/models/gcpimpersonationconfig.js.map +0 -1
  92. package/esm/models/gcpserviceoverrides.d.ts +0 -21
  93. package/esm/models/gcpserviceoverrides.d.ts.map +0 -1
  94. package/esm/models/gcpserviceoverrides.js +0 -13
  95. package/esm/models/gcpserviceoverrides.js.map +0 -1
  96. package/esm/models/kubernetesclientconfig.d.ts +0 -116
  97. package/esm/models/kubernetesclientconfig.d.ts.map +0 -1
  98. package/esm/models/kubernetesclientconfig.js +0 -73
  99. package/esm/models/kubernetesclientconfig.js.map +0 -1
  100. package/esm/models/mintcredentialsrequest.d.ts +0 -49
  101. package/esm/models/mintcredentialsrequest.d.ts.map +0 -1
  102. package/esm/models/mintcredentialsrequest.js +0 -15
  103. package/esm/models/mintcredentialsrequest.js.map +0 -1
  104. package/esm/models/mintcredentialsresponse.d.ts +0 -37
  105. package/esm/models/mintcredentialsresponse.d.ts.map +0 -1
  106. package/esm/models/mintcredentialsresponse.js +0 -16
  107. package/esm/models/mintcredentialsresponse.js.map +0 -1
  108. package/esm/sdk/credentials.d.ts +0 -6
  109. package/esm/sdk/credentials.d.ts.map +0 -1
  110. package/esm/sdk/credentials.js +0 -12
  111. package/esm/sdk/credentials.js.map +0 -1
  112. package/src/models/awscredentials.ts +0 -281
  113. package/src/models/awsserviceoverrides.ts +0 -39
  114. package/src/models/awswebidentityconfig.ts +0 -51
  115. package/src/models/azurecredentials.ts +0 -295
  116. package/src/models/azureserviceoverrides.ts +0 -39
  117. package/src/models/clientconfigunion.ts +0 -602
  118. package/src/models/gcpcredentials.ts +0 -335
  119. package/src/models/gcpimpersonationconfig.ts +0 -67
  120. package/src/models/gcpserviceoverrides.ts +0 -39
  121. package/src/models/kubernetesclientconfig.ts +0 -220
  122. package/src/models/mintcredentialsrequest.ts +0 -70
  123. package/src/models/mintcredentialsresponse.ts +0 -62
  124. package/src/sdk/credentials.ts +0 -21
@@ -1,49 +0,0 @@
1
- import * as z from "zod/v4";
2
- /**
3
- * Request body for `POST /v1/credentials/mint`.
4
- *
5
- * @remarks
6
- *
7
- * `deny_unknown_fields` so clients cannot smuggle in resolver internals
8
- * (platform, stack state, etc.) — the server derives everything from the
9
- * authenticated deployment.
10
- */
11
- export type MintCredentialsRequest = {
12
- /**
13
- * Service-account binding to impersonate on the target platform.
14
- */
15
- bindingName: string;
16
- /**
17
- * Deployment to mint credentials for. The caller's bearer token must be
18
- *
19
- * @remarks
20
- * this deployment's token (or a workspace-admin token).
21
- */
22
- deploymentId: string;
23
- /**
24
- * Requested lifetime in seconds. Clamped to
25
- *
26
- * @remarks
27
- * `[MIN_DURATION_SECONDS, MAX_DURATION_SECONDS]`; defaults to
28
- * `DEFAULT_DURATION_SECONDS` when omitted.
29
- */
30
- durationSeconds?: number | null | undefined;
31
- /**
32
- * Current-release compute resource requesting the credentials. The
33
- *
34
- * @remarks
35
- * resource must depend on `bindingName` as a service-account resource.
36
- */
37
- resourceId: string;
38
- };
39
- /** @internal */
40
- export type MintCredentialsRequest$Outbound = {
41
- bindingName: string;
42
- deploymentId: string;
43
- durationSeconds?: number | null | undefined;
44
- resourceId: string;
45
- };
46
- /** @internal */
47
- export declare const MintCredentialsRequest$outboundSchema: z.ZodType<MintCredentialsRequest$Outbound, MintCredentialsRequest>;
48
- export declare function mintCredentialsRequestToJSON(mintCredentialsRequest: MintCredentialsRequest): string;
49
- //# sourceMappingURL=mintcredentialsrequest.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mintcredentialsrequest.d.ts","sourceRoot":"","sources":["../../src/models/mintcredentialsrequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B;;;;;;;;GAQG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;;;;OAKG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;;;;;OAMG;IACH,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C;;;;;OAKG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,WAAW,EAAE,MAAM,CAAC;IACpB,YAAY,EAAE,MAAM,CAAC;IACrB,eAAe,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC5C,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,sBAAsB,CAMtB,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR"}
@@ -1,15 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v4";
5
- /** @internal */
6
- export const MintCredentialsRequest$outboundSchema = z.object({
7
- bindingName: z.string(),
8
- deploymentId: z.string(),
9
- durationSeconds: z.nullable(z.int()).optional(),
10
- resourceId: z.string(),
11
- });
12
- export function mintCredentialsRequestToJSON(mintCredentialsRequest) {
13
- return JSON.stringify(MintCredentialsRequest$outboundSchema.parse(mintCredentialsRequest));
14
- }
15
- //# sourceMappingURL=mintcredentialsrequest.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mintcredentialsrequest.js","sourceRoot":"","sources":["../../src/models/mintcredentialsrequest.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAgD5B,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAEH,MAAM,UAAU,4BAA4B,CAC1C,sBAA8C;IAE9C,OAAO,IAAI,CAAC,SAAS,CACnB,qCAAqC,CAAC,KAAK,CAAC,sBAAsB,CAAC,CACpE,CAAC;AACJ,CAAC"}
@@ -1,37 +0,0 @@
1
- import * as z from "zod/v4";
2
- import { Result as SafeParseResult } from "../types/fp.js";
3
- import { ClientConfigUnion } from "./clientconfigunion.js";
4
- import { SDKValidationError } from "./errors/sdkvalidationerror.js";
5
- /**
6
- * Response body for `POST /v1/credentials/mint`.
7
- */
8
- export type MintCredentialsResponse = {
9
- /**
10
- * Configuration for different cloud platform clients
11
- */
12
- clientConfig: ClientConfigUnion;
13
- /**
14
- * Credential expiry as an RFC3339 timestamp (now + clamped duration).
15
- *
16
- * @remarks
17
- *
18
- * This is server-computed (`now + clamped duration`), not read back from
19
- * the provider — for lazily-resolved configs (e.g. GCP, where the
20
- * resolver doesn't always round-trip an authoritative expiry) it is
21
- * nominal rather than provider truth. Treat it as a refresh hint: fetch
22
- * new credentials at or before this time, don't rely on it to prove the
23
- * underlying credential is still valid at that exact instant.
24
- */
25
- expiresAt: string;
26
- /**
27
- * Human-readable identity the credentials act as (role ARN, SA email,
28
- *
29
- * @remarks
30
- * managed-identity client id, or `platform:account` for the local path).
31
- */
32
- principal: string;
33
- };
34
- /** @internal */
35
- export declare const MintCredentialsResponse$inboundSchema: z.ZodType<MintCredentialsResponse, unknown>;
36
- export declare function mintCredentialsResponseFromJSON(jsonString: string): SafeParseResult<MintCredentialsResponse, SDKValidationError>;
37
- //# sourceMappingURL=mintcredentialsresponse.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mintcredentialsresponse.d.ts","sourceRoot":"","sources":["../../src/models/mintcredentialsresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,kBAAkB,EAAE,MAAM,gCAAgC,CAAC;AAEpE;;GAEG;AACH,MAAM,MAAM,uBAAuB,GAAG;IACpC;;OAEG;IACH,YAAY,EAAE,iBAAiB,CAAC;IAChC;;;;;;;;;;;OAWG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;;;;OAKG;IACH,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,uBAAuB,EACvB,OAAO,CAKP,CAAC;AAEH,wBAAgB,+BAA+B,CAC7C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,uBAAuB,EAAE,kBAAkB,CAAC,CAM9D"}
@@ -1,16 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import * as z from "zod/v4";
5
- import { safeParse } from "../lib/schemas.js";
6
- import { ClientConfigUnion$inboundSchema, } from "./clientconfigunion.js";
7
- /** @internal */
8
- export const MintCredentialsResponse$inboundSchema = z.object({
9
- clientConfig: ClientConfigUnion$inboundSchema,
10
- expiresAt: z.string(),
11
- principal: z.string(),
12
- });
13
- export function mintCredentialsResponseFromJSON(jsonString) {
14
- return safeParse(jsonString, (x) => MintCredentialsResponse$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'MintCredentialsResponse' from JSON`);
15
- }
16
- //# sourceMappingURL=mintcredentialsresponse.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mintcredentialsresponse.js","sourceRoot":"","sources":["../../src/models/mintcredentialsresponse.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAC5B,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAEL,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAiChC,gBAAgB;AAChB,MAAM,CAAC,MAAM,qCAAqC,GAG9C,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,+BAA+B;IAC7C,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,UAAU,+BAA+B,CAC7C,UAAkB;IAElB,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qCAAqC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACjE,qDAAqD,CACtD,CAAC;AACJ,CAAC"}
@@ -1,6 +0,0 @@
1
- import { ClientSDK, RequestOptions } from "../lib/sdks.js";
2
- import * as models from "../models/index.js";
3
- export declare class Credentials extends ClientSDK {
4
- mintCredentials(request: models.MintCredentialsRequest, options?: RequestOptions): Promise<models.MintCredentialsResponse>;
5
- }
6
- //# sourceMappingURL=credentials.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../src/sdk/credentials.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAG7C,qBAAa,WAAY,SAAQ,SAAS;IAClC,eAAe,CACnB,OAAO,EAAE,MAAM,CAAC,sBAAsB,EACtC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CAAC,MAAM,CAAC,uBAAuB,CAAC;CAO3C"}
@@ -1,12 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
- import { credentialsMintCredentials } from "../funcs/credentialsMintCredentials.js";
5
- import { ClientSDK } from "../lib/sdks.js";
6
- import { unwrapAsync } from "../types/fp.js";
7
- export class Credentials extends ClientSDK {
8
- async mintCredentials(request, options) {
9
- return unwrapAsync(credentialsMintCredentials(this, request, options));
10
- }
11
- }
12
- //# sourceMappingURL=credentials.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../src/sdk/credentials.ts"],"names":[],"mappings":"AAAA;;GAEG;AAEH,OAAO,EAAE,0BAA0B,EAAE,MAAM,wCAAwC,CAAC;AACpF,OAAO,EAAE,SAAS,EAAkB,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,WAAW,EAAE,MAAM,gBAAgB,CAAC;AAE7C,MAAM,OAAO,WAAY,SAAQ,SAAS;IACxC,KAAK,CAAC,eAAe,CACnB,OAAsC,EACtC,OAAwB;QAExB,OAAO,WAAW,CAAC,0BAA0B,CAC3C,IAAI,EACJ,OAAO,EACP,OAAO,CACR,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,281 +0,0 @@
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 { Result as SafeParseResult } from "../types/fp.js";
9
- import {
10
- AwsWebIdentityConfig,
11
- AwsWebIdentityConfig$inboundSchema,
12
- } from "./awswebidentityconfig.js";
13
- import { SDKValidationError } from "./errors/sdkvalidationerror.js";
14
-
15
- /**
16
- * Web Identity Token for OIDC authentication
17
- */
18
- export type AwsCredentialsWebIdentity = {
19
- /**
20
- * Configuration for AWS Web Identity Token authentication
21
- */
22
- config: AwsWebIdentityConfig;
23
- type: "webIdentity";
24
- };
25
-
26
- /**
27
- * AWS profile credentials loaded via the AWS CLI.
28
- */
29
- export type AwsCredentialsProfile = {
30
- /**
31
- * AWS profile name
32
- */
33
- name: string;
34
- type: "profile";
35
- };
36
-
37
- /**
38
- * Container credentials endpoint: ECS task roles and EKS Pod Identity.
39
- */
40
- export type AwsCredentialsContainer = {
41
- /**
42
- * Authorization header value for the endpoint
43
- */
44
- authorizationToken?: string | null | undefined;
45
- /**
46
- * File holding the authorization header value, re-read on each
47
- *
48
- * @remarks
49
- * refresh because the platform rotates it
50
- */
51
- authorizationTokenFile?: string | null | undefined;
52
- /**
53
- * Credentials endpoint URL
54
- */
55
- endpoint: string;
56
- type: "container";
57
- };
58
-
59
- /**
60
- * AWS Instance Metadata Service credentials.
61
- */
62
- export type AwsCredentialsImds = {
63
- /**
64
- * Optional IMDS endpoint override
65
- */
66
- endpoint?: string | null | undefined;
67
- type: "imds";
68
- };
69
-
70
- /**
71
- * Temporary AWS session credentials with an expiration time.
72
- */
73
- export type AwsCredentialsSessionCredentials = {
74
- /**
75
- * AWS Access Key ID
76
- */
77
- accessKeyId: string;
78
- /**
79
- * Credential expiration as an RFC3339 timestamp
80
- */
81
- expiresAt: string;
82
- /**
83
- * AWS Secret Access Key
84
- */
85
- secretAccessKey: string;
86
- /**
87
- * AWS Session Token
88
- */
89
- sessionToken: string;
90
- type: "sessionCredentials";
91
- };
92
-
93
- /**
94
- * Static direct access keys.
95
- */
96
- export type AwsCredentialsAccessKeys = {
97
- /**
98
- * AWS Access Key ID
99
- */
100
- accessKeyId: string;
101
- /**
102
- * AWS Secret Access Key
103
- */
104
- secretAccessKey: string;
105
- /**
106
- * Optional AWS Session Token
107
- */
108
- sessionToken?: string | null | undefined;
109
- type: "accessKeys";
110
- };
111
-
112
- /**
113
- * Supported AWS authentication methods
114
- */
115
- export type AwsCredentials =
116
- | AwsCredentialsAccessKeys
117
- | AwsCredentialsSessionCredentials
118
- | AwsCredentialsImds
119
- | AwsCredentialsContainer
120
- | AwsCredentialsProfile
121
- | AwsCredentialsWebIdentity;
122
-
123
- /** @internal */
124
- export const AwsCredentialsWebIdentity$inboundSchema: z.ZodType<
125
- AwsCredentialsWebIdentity,
126
- unknown
127
- > = z.object({
128
- config: AwsWebIdentityConfig$inboundSchema,
129
- type: z.literal("webIdentity"),
130
- });
131
-
132
- export function awsCredentialsWebIdentityFromJSON(
133
- jsonString: string,
134
- ): SafeParseResult<AwsCredentialsWebIdentity, SDKValidationError> {
135
- return safeParse(
136
- jsonString,
137
- (x) => AwsCredentialsWebIdentity$inboundSchema.parse(JSON.parse(x)),
138
- `Failed to parse 'AwsCredentialsWebIdentity' from JSON`,
139
- );
140
- }
141
-
142
- /** @internal */
143
- export const AwsCredentialsProfile$inboundSchema: z.ZodType<
144
- AwsCredentialsProfile,
145
- unknown
146
- > = z.object({
147
- name: z.string(),
148
- type: z.literal("profile"),
149
- });
150
-
151
- export function awsCredentialsProfileFromJSON(
152
- jsonString: string,
153
- ): SafeParseResult<AwsCredentialsProfile, SDKValidationError> {
154
- return safeParse(
155
- jsonString,
156
- (x) => AwsCredentialsProfile$inboundSchema.parse(JSON.parse(x)),
157
- `Failed to parse 'AwsCredentialsProfile' from JSON`,
158
- );
159
- }
160
-
161
- /** @internal */
162
- export const AwsCredentialsContainer$inboundSchema: z.ZodType<
163
- AwsCredentialsContainer,
164
- unknown
165
- > = z.object({
166
- authorization_token: z.nullable(z.string()).optional(),
167
- authorization_token_file: z.nullable(z.string()).optional(),
168
- endpoint: z.string(),
169
- type: z.literal("container"),
170
- }).transform((v) => {
171
- return remap$(v, {
172
- "authorization_token": "authorizationToken",
173
- "authorization_token_file": "authorizationTokenFile",
174
- });
175
- });
176
-
177
- export function awsCredentialsContainerFromJSON(
178
- jsonString: string,
179
- ): SafeParseResult<AwsCredentialsContainer, SDKValidationError> {
180
- return safeParse(
181
- jsonString,
182
- (x) => AwsCredentialsContainer$inboundSchema.parse(JSON.parse(x)),
183
- `Failed to parse 'AwsCredentialsContainer' from JSON`,
184
- );
185
- }
186
-
187
- /** @internal */
188
- export const AwsCredentialsImds$inboundSchema: z.ZodType<
189
- AwsCredentialsImds,
190
- unknown
191
- > = z.object({
192
- endpoint: z.nullable(z.string()).optional(),
193
- type: z.literal("imds"),
194
- });
195
-
196
- export function awsCredentialsImdsFromJSON(
197
- jsonString: string,
198
- ): SafeParseResult<AwsCredentialsImds, SDKValidationError> {
199
- return safeParse(
200
- jsonString,
201
- (x) => AwsCredentialsImds$inboundSchema.parse(JSON.parse(x)),
202
- `Failed to parse 'AwsCredentialsImds' from JSON`,
203
- );
204
- }
205
-
206
- /** @internal */
207
- export const AwsCredentialsSessionCredentials$inboundSchema: z.ZodType<
208
- AwsCredentialsSessionCredentials,
209
- unknown
210
- > = z.object({
211
- access_key_id: z.string(),
212
- expires_at: z.string(),
213
- secret_access_key: z.string(),
214
- session_token: z.string(),
215
- type: z.literal("sessionCredentials"),
216
- }).transform((v) => {
217
- return remap$(v, {
218
- "access_key_id": "accessKeyId",
219
- "expires_at": "expiresAt",
220
- "secret_access_key": "secretAccessKey",
221
- "session_token": "sessionToken",
222
- });
223
- });
224
-
225
- export function awsCredentialsSessionCredentialsFromJSON(
226
- jsonString: string,
227
- ): SafeParseResult<AwsCredentialsSessionCredentials, SDKValidationError> {
228
- return safeParse(
229
- jsonString,
230
- (x) => AwsCredentialsSessionCredentials$inboundSchema.parse(JSON.parse(x)),
231
- `Failed to parse 'AwsCredentialsSessionCredentials' from JSON`,
232
- );
233
- }
234
-
235
- /** @internal */
236
- export const AwsCredentialsAccessKeys$inboundSchema: z.ZodType<
237
- AwsCredentialsAccessKeys,
238
- unknown
239
- > = z.object({
240
- access_key_id: z.string(),
241
- secret_access_key: z.string(),
242
- session_token: z.nullable(z.string()).optional(),
243
- type: z.literal("accessKeys"),
244
- }).transform((v) => {
245
- return remap$(v, {
246
- "access_key_id": "accessKeyId",
247
- "secret_access_key": "secretAccessKey",
248
- "session_token": "sessionToken",
249
- });
250
- });
251
-
252
- export function awsCredentialsAccessKeysFromJSON(
253
- jsonString: string,
254
- ): SafeParseResult<AwsCredentialsAccessKeys, SDKValidationError> {
255
- return safeParse(
256
- jsonString,
257
- (x) => AwsCredentialsAccessKeys$inboundSchema.parse(JSON.parse(x)),
258
- `Failed to parse 'AwsCredentialsAccessKeys' from JSON`,
259
- );
260
- }
261
-
262
- /** @internal */
263
- export const AwsCredentials$inboundSchema: z.ZodType<AwsCredentials, unknown> =
264
- z.union([
265
- z.lazy(() => AwsCredentialsAccessKeys$inboundSchema),
266
- z.lazy(() => AwsCredentialsSessionCredentials$inboundSchema),
267
- z.lazy(() => AwsCredentialsImds$inboundSchema),
268
- z.lazy(() => AwsCredentialsContainer$inboundSchema),
269
- z.lazy(() => AwsCredentialsProfile$inboundSchema),
270
- z.lazy(() => AwsCredentialsWebIdentity$inboundSchema),
271
- ]);
272
-
273
- export function awsCredentialsFromJSON(
274
- jsonString: string,
275
- ): SafeParseResult<AwsCredentials, SDKValidationError> {
276
- return safeParse(
277
- jsonString,
278
- (x) => AwsCredentials$inboundSchema.parse(JSON.parse(x)),
279
- `Failed to parse 'AwsCredentials' from JSON`,
280
- );
281
- }
@@ -1,39 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4";
6
- import { safeParse } from "../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../types/fp.js";
8
- import { SDKValidationError } from "./errors/sdkvalidationerror.js";
9
-
10
- /**
11
- * Service endpoint overrides for testing AWS services
12
- */
13
- export type AwsServiceOverrides = {
14
- /**
15
- * Override endpoints for specific AWS services
16
- *
17
- * @remarks
18
- * Key is the service name (e.g., "lambda", "s3"), value is the base URL
19
- */
20
- endpoints: { [k: string]: string };
21
- };
22
-
23
- /** @internal */
24
- export const AwsServiceOverrides$inboundSchema: z.ZodType<
25
- AwsServiceOverrides,
26
- unknown
27
- > = z.object({
28
- endpoints: z.record(z.string(), z.string()),
29
- });
30
-
31
- export function awsServiceOverridesFromJSON(
32
- jsonString: string,
33
- ): SafeParseResult<AwsServiceOverrides, SDKValidationError> {
34
- return safeParse(
35
- jsonString,
36
- (x) => AwsServiceOverrides$inboundSchema.parse(JSON.parse(x)),
37
- `Failed to parse 'AwsServiceOverrides' from JSON`,
38
- );
39
- }
@@ -1,51 +0,0 @@
1
- /*
2
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
- */
4
-
5
- import * as z from "zod/v4";
6
- import { safeParse } from "../lib/schemas.js";
7
- import { Result as SafeParseResult } from "../types/fp.js";
8
- import { SDKValidationError } from "./errors/sdkvalidationerror.js";
9
-
10
- /**
11
- * Configuration for AWS Web Identity Token authentication
12
- */
13
- export type AwsWebIdentityConfig = {
14
- /**
15
- * Optional duration for the assumed role credentials (in seconds)
16
- */
17
- durationSeconds?: number | null | undefined;
18
- /**
19
- * The ARN of the role to assume
20
- */
21
- roleArn: string;
22
- /**
23
- * Optional session name for the assumed role session
24
- */
25
- sessionName?: string | null | undefined;
26
- /**
27
- * The path to the web identity token file
28
- */
29
- webIdentityTokenFile: string;
30
- };
31
-
32
- /** @internal */
33
- export const AwsWebIdentityConfig$inboundSchema: z.ZodType<
34
- AwsWebIdentityConfig,
35
- unknown
36
- > = z.object({
37
- durationSeconds: z.nullable(z.int()).optional(),
38
- roleArn: z.string(),
39
- sessionName: z.nullable(z.string()).optional(),
40
- webIdentityTokenFile: z.string(),
41
- });
42
-
43
- export function awsWebIdentityConfigFromJSON(
44
- jsonString: string,
45
- ): SafeParseResult<AwsWebIdentityConfig, SDKValidationError> {
46
- return safeParse(
47
- jsonString,
48
- (x) => AwsWebIdentityConfig$inboundSchema.parse(JSON.parse(x)),
49
- `Failed to parse 'AwsWebIdentityConfig' from JSON`,
50
- );
51
- }