@psnext/slingcli 2.5.20260719-2 → 2.5.20260722-1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (65) hide show
  1. package/bin/sling-default-package-policy.js +26 -0
  2. package/bin/sling.js +18 -23
  3. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.js +182 -0
  4. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/ByteJsonShapeSerializer.js +473 -0
  5. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +29 -0
  6. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +59 -0
  7. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/BufferJsonShapeDeserializer.d.ts +14 -0
  8. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/ByteJsonShapeSerializer.d.ts +30 -0
  9. package/node_modules/@aws-sdk/core/package.json +2 -1
  10. package/node_modules/@aws-sdk/credential-provider-env/package.json +2 -2
  11. package/node_modules/@aws-sdk/credential-provider-http/node_modules/@smithy/node-http-handler/package.json +33 -33
  12. package/node_modules/@aws-sdk/credential-provider-http/package.json +2 -2
  13. package/node_modules/@aws-sdk/credential-provider-ini/package.json +9 -9
  14. package/node_modules/@aws-sdk/credential-provider-login/package.json +3 -3
  15. package/node_modules/@aws-sdk/credential-provider-node/package.json +7 -7
  16. package/node_modules/@aws-sdk/credential-provider-process/package.json +2 -2
  17. package/node_modules/@aws-sdk/credential-provider-sso/node_modules/@aws-sdk/token-providers/package.json +3 -3
  18. package/node_modules/@aws-sdk/credential-provider-sso/package.json +4 -4
  19. package/node_modules/@aws-sdk/credential-provider-web-identity/package.json +3 -3
  20. package/node_modules/@aws-sdk/middleware-websocket/package.json +2 -2
  21. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/cognito-identity/index.js +1 -1
  22. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/signin/index.js +1 -1
  23. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso/index.js +1 -1
  24. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sso-oidc/index.js +1 -1
  25. package/node_modules/@aws-sdk/nested-clients/dist-cjs/submodules/sts/index.js +1 -1
  26. package/node_modules/@aws-sdk/nested-clients/node_modules/@smithy/node-http-handler/package.json +33 -33
  27. package/node_modules/@aws-sdk/nested-clients/package.json +2 -2
  28. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
  29. package/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -1
  30. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  31. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  32. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  33. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  34. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.browser.js +3 -1
  35. package/node_modules/@smithy/core/dist-cjs/submodules/endpoints/index.js +28 -10
  36. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.browser.js +34 -11
  37. package/node_modules/@smithy/core/dist-cjs/submodules/event-streams/index.js +34 -11
  38. package/node_modules/@smithy/core/dist-cjs/submodules/protocols/index.js +1 -0
  39. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromConfig.js +8 -1
  40. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointFromInstructions.js +2 -1
  41. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.js +11 -9
  42. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/adaptors/getIgnoreConfiguredEndpointUrls.js +8 -0
  43. package/node_modules/@smithy/core/dist-es/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.js +1 -0
  44. package/node_modules/@smithy/core/dist-es/submodules/event-streams/EventStreamSerde.js +34 -11
  45. package/node_modules/@smithy/core/dist-es/submodules/protocols/HttpProtocol.js +1 -0
  46. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.d.ts +11 -0
  47. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/adaptors/getIgnoreConfiguredEndpointUrls.d.ts +17 -0
  48. package/node_modules/@smithy/core/dist-types/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.d.ts +12 -0
  49. package/node_modules/@smithy/core/dist-types/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  50. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/adaptors/getEndpointUrlConfig.d.ts +11 -0
  51. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/adaptors/getIgnoreConfiguredEndpointUrls.d.ts +17 -0
  52. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/middleware-endpoint/resolveEndpointConfig.d.ts +12 -0
  53. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/event-streams/EventStreamSerde.d.ts +10 -2
  54. package/node_modules/@smithy/core/package.json +91 -91
  55. package/node_modules/@smithy/credential-provider-imds/package.json +34 -34
  56. package/node_modules/@smithy/fetch-http-handler/package.json +30 -30
  57. package/node_modules/@smithy/signature-v4/package.json +29 -29
  58. package/package.json +2 -2
  59. package/slingshot/index.js +105 -105
  60. package/node_modules/@aws-sdk/core/dist-es/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.js +0 -135
  61. package/node_modules/@aws-sdk/core/dist-types/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -27
  62. package/node_modules/@aws-sdk/core/dist-types/ts3.4/submodules/protocols/json/experimental/SinglePassJsonShapeSerializer.d.ts +0 -17
  63. package/node_modules/@smithy/core/dist-es/submodules/endpoints/util-endpoints/getEndpointUrlConfig.js +0 -21
  64. package/node_modules/@smithy/core/dist-types/submodules/endpoints/util-endpoints/getEndpointUrlConfig.d.ts +0 -12
  65. package/node_modules/@smithy/core/dist-types/ts3.4/submodules/endpoints/util-endpoints/getEndpointUrlConfig.d.ts +0 -12
@@ -1,5 +1,6 @@
1
1
  const { Crc32 } = require("@smithy/core/checksum");
2
2
  const { toHex, fromHex, toUtf8, fromUtf8 } = require("@smithy/core/serde");
3
+ const { TypeRegistry } = require("@smithy/core/schema");
3
4
 
4
5
  class Int64 {
5
6
  bytes;
@@ -591,12 +592,14 @@ class EventStreamSerde {
591
592
  deserializer;
592
593
  serdeContext;
593
594
  defaultContentType;
594
- constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, }) {
595
+ compositeErrorRegistry;
596
+ constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, compositeErrorRegistry, }) {
595
597
  this.marshaller = marshaller;
596
598
  this.serializer = serializer;
597
599
  this.deserializer = deserializer;
598
600
  this.serdeContext = serdeContext;
599
601
  this.defaultContentType = defaultContentType;
602
+ this.compositeErrorRegistry = compositeErrorRegistry;
600
603
  }
601
604
  async serializeEventStream({ eventStream, requestSchema, initialRequest, }) {
602
605
  const marshaller = this.marshaller;
@@ -712,16 +715,9 @@ class EventStreamSerde {
712
715
  }
713
716
  }
714
717
  }
715
- if (hasBindings) {
716
- return {
717
- [unionMember]: out,
718
- };
719
- }
720
- if (body.byteLength === 0) {
721
- return {
722
- [unionMember]: {},
723
- };
724
- }
718
+ return {
719
+ [unionMember]: await this.readEventMember(eventStreamSchema, body, hasBindings, out),
720
+ };
725
721
  }
726
722
  return {
727
723
  [unionMember]: await this.deserializer.read(eventStreamSchema, body),
@@ -761,6 +757,33 @@ class EventStreamSerde {
761
757
  },
762
758
  };
763
759
  }
760
+ async readEventMember(eventStreamSchema, body, hasBindings, out) {
761
+ let ErrCtor;
762
+ const staticStructuralSchema = eventStreamSchema.getSchema();
763
+ if (Array.isArray(staticStructuralSchema) && staticStructuralSchema[0] === -3) {
764
+ const namespace = staticStructuralSchema[1];
765
+ const nsRegistry = TypeRegistry.for(namespace);
766
+ this.compositeErrorRegistry?.copyFrom(nsRegistry);
767
+ ErrCtor = (this.compositeErrorRegistry ?? nsRegistry)?.getErrorCtor(staticStructuralSchema);
768
+ }
769
+ const dataObject = hasBindings
770
+ ? out
771
+ : body.byteLength === 0
772
+ ? {}
773
+ : await this.deserializer.read(eventStreamSchema, body);
774
+ if (ErrCtor) {
775
+ const message = dataObject.message ?? dataObject.Message ?? "Unknown";
776
+ const metadata = {};
777
+ const $fault = eventStreamSchema.getMergedTraits().error;
778
+ if ($fault) {
779
+ metadata.$fault = $fault;
780
+ }
781
+ return Object.assign(new ErrCtor({}), metadata, {
782
+ message,
783
+ }, dataObject);
784
+ }
785
+ return dataObject;
786
+ }
764
787
  writeEventBody(unionMember, unionSchema, event) {
765
788
  const serializer = this.serializer;
766
789
  let eventType = unionMember;
@@ -1,6 +1,7 @@
1
1
  const { Crc32 } = require("@smithy/core/checksum");
2
2
  const { toHex, fromHex, toUtf8, fromUtf8 } = require("@smithy/core/serde");
3
3
  const { Readable } = require("node:stream");
4
+ const { TypeRegistry } = require("@smithy/core/schema");
4
5
 
5
6
  class Int64 {
6
7
  bytes;
@@ -616,12 +617,14 @@ class EventStreamSerde {
616
617
  deserializer;
617
618
  serdeContext;
618
619
  defaultContentType;
619
- constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, }) {
620
+ compositeErrorRegistry;
621
+ constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, compositeErrorRegistry, }) {
620
622
  this.marshaller = marshaller;
621
623
  this.serializer = serializer;
622
624
  this.deserializer = deserializer;
623
625
  this.serdeContext = serdeContext;
624
626
  this.defaultContentType = defaultContentType;
627
+ this.compositeErrorRegistry = compositeErrorRegistry;
625
628
  }
626
629
  async serializeEventStream({ eventStream, requestSchema, initialRequest, }) {
627
630
  const marshaller = this.marshaller;
@@ -737,16 +740,9 @@ class EventStreamSerde {
737
740
  }
738
741
  }
739
742
  }
740
- if (hasBindings) {
741
- return {
742
- [unionMember]: out,
743
- };
744
- }
745
- if (body.byteLength === 0) {
746
- return {
747
- [unionMember]: {},
748
- };
749
- }
743
+ return {
744
+ [unionMember]: await this.readEventMember(eventStreamSchema, body, hasBindings, out),
745
+ };
750
746
  }
751
747
  return {
752
748
  [unionMember]: await this.deserializer.read(eventStreamSchema, body),
@@ -786,6 +782,33 @@ class EventStreamSerde {
786
782
  },
787
783
  };
788
784
  }
785
+ async readEventMember(eventStreamSchema, body, hasBindings, out) {
786
+ let ErrCtor;
787
+ const staticStructuralSchema = eventStreamSchema.getSchema();
788
+ if (Array.isArray(staticStructuralSchema) && staticStructuralSchema[0] === -3) {
789
+ const namespace = staticStructuralSchema[1];
790
+ const nsRegistry = TypeRegistry.for(namespace);
791
+ this.compositeErrorRegistry?.copyFrom(nsRegistry);
792
+ ErrCtor = (this.compositeErrorRegistry ?? nsRegistry)?.getErrorCtor(staticStructuralSchema);
793
+ }
794
+ const dataObject = hasBindings
795
+ ? out
796
+ : body.byteLength === 0
797
+ ? {}
798
+ : await this.deserializer.read(eventStreamSchema, body);
799
+ if (ErrCtor) {
800
+ const message = dataObject.message ?? dataObject.Message ?? "Unknown";
801
+ const metadata = {};
802
+ const $fault = eventStreamSchema.getMergedTraits().error;
803
+ if ($fault) {
804
+ metadata.$fault = $fault;
805
+ }
806
+ return Object.assign(new ErrCtor({}), metadata, {
807
+ message,
808
+ }, dataObject);
809
+ }
810
+ return dataObject;
811
+ }
789
812
  writeEventBody(unionMember, unionSchema, event) {
790
813
  const serializer = this.serializer;
791
814
  let eventType = unionMember;
@@ -155,6 +155,7 @@ class HttpProtocol extends SerdeContext {
155
155
  deserializer: this.deserializer,
156
156
  serdeContext: this.serdeContext,
157
157
  defaultContentType: this.getDefaultContentType(),
158
+ compositeErrorRegistry: this.compositeErrorRegistry,
158
159
  });
159
160
  }
160
161
  resolveEventStreamMarshaller(importedProvider) {
@@ -1,3 +1,10 @@
1
1
  import { loadConfig } from "@smithy/core/config";
2
2
  import { getEndpointUrlConfig } from "./getEndpointUrlConfig";
3
- export const getEndpointFromConfig = async (serviceId) => loadConfig(getEndpointUrlConfig(serviceId ?? ""))();
3
+ import { ignoreConfiguredEndpointUrlsConfigSelectors } from "./getIgnoreConfiguredEndpointUrls";
4
+ export const getEndpointFromConfig = async (serviceId) => {
5
+ const ignore = await loadConfig(ignoreConfiguredEndpointUrlsConfigSelectors)();
6
+ if (ignore) {
7
+ return undefined;
8
+ }
9
+ return loadConfig(getEndpointUrlConfig(serviceId ?? ""))();
10
+ };
@@ -3,7 +3,7 @@ import { createConfigValueProvider } from "./createConfigValueProvider";
3
3
  import { toEndpointV1 } from "./toEndpointV1";
4
4
  export function bindGetEndpointFromInstructions(getEndpointFromConfig) {
5
5
  return async (commandInput, instructionsSupplier, clientConfig, context) => {
6
- if (!clientConfig.isCustomEndpoint) {
6
+ if (!clientConfig.isCustomEndpoint && !clientConfig.ignoreConfiguredEndpointUrls) {
7
7
  let endpointFromConfig;
8
8
  if (clientConfig.serviceConfiguredEndpoint) {
9
9
  endpointFromConfig = await clientConfig.serviceConfiguredEndpoint();
@@ -14,6 +14,7 @@ export function bindGetEndpointFromInstructions(getEndpointFromConfig) {
14
14
  if (endpointFromConfig) {
15
15
  clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig));
16
16
  clientConfig.isCustomEndpoint = true;
17
+ context?.logger?.debug?.(`@smithy/core/endpoints - resolved endpoint from config: ${endpointFromConfig}`);
17
18
  }
18
19
  }
19
20
  const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig);
@@ -1,6 +1,6 @@
1
1
  import { CONFIG_PREFIX_SEPARATOR } from "@smithy/core/config";
2
- const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
3
- const CONFIG_ENDPOINT_URL = "endpoint_url";
2
+ export const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
3
+ export const CONFIG_ENDPOINT_URL = "endpoint_url";
4
4
  export const getEndpointUrlConfig = (serviceId) => ({
5
5
  environmentVariableSelector: (env) => {
6
6
  const serviceSuffixParts = serviceId.split(" ").map((w) => w.toUpperCase());
@@ -13,14 +13,16 @@ export const getEndpointUrlConfig = (serviceId) => ({
13
13
  return undefined;
14
14
  },
15
15
  configFileSelector: (profile, config) => {
16
- if (config && profile.services) {
17
- const servicesSection = config[["services", profile.services].join(CONFIG_PREFIX_SEPARATOR)];
18
- if (servicesSection) {
19
- const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase());
20
- const endpointUrl = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(CONFIG_PREFIX_SEPARATOR)];
21
- if (endpointUrl)
22
- return endpointUrl;
16
+ if (profile.services) {
17
+ const servicesSectionKey = ["services", profile.services].join(CONFIG_PREFIX_SEPARATOR);
18
+ if (!config || !config[servicesSectionKey]) {
19
+ throw new Error(`The services section "${profile.services}" specified in the profile is not present in the shared configuration file.`);
23
20
  }
21
+ const servicesSection = config[servicesSectionKey];
22
+ const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase());
23
+ const endpointUrl = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(CONFIG_PREFIX_SEPARATOR)];
24
+ if (endpointUrl)
25
+ return endpointUrl;
24
26
  }
25
27
  const endpointUrl = profile[CONFIG_ENDPOINT_URL];
26
28
  if (endpointUrl)
@@ -0,0 +1,8 @@
1
+ import { booleanSelector, SelectorType } from "@smithy/core/config";
2
+ export const ENV_IGNORE_CONFIGURED_ENDPOINT_URLS = "AWS_IGNORE_CONFIGURED_ENDPOINT_URLS";
3
+ export const CONFIG_IGNORE_CONFIGURED_ENDPOINT_URLS = "ignore_configured_endpoint_urls";
4
+ export const ignoreConfiguredEndpointUrlsConfigSelectors = {
5
+ environmentVariableSelector: (env) => booleanSelector(env, ENV_IGNORE_CONFIGURED_ENDPOINT_URLS, SelectorType.ENV),
6
+ configFileSelector: (profile) => booleanSelector(profile, CONFIG_IGNORE_CONFIGURED_ENDPOINT_URLS, SelectorType.CONFIG),
7
+ default: false,
8
+ };
@@ -12,6 +12,7 @@ export function bindResolveEndpointConfig(getEndpointFromConfig) {
12
12
  isCustomEndpoint,
13
13
  useDualstackEndpoint: normalizeProvider(useDualstackEndpoint ?? false),
14
14
  useFipsEndpoint: normalizeProvider(useFipsEndpoint ?? false),
15
+ ignoreConfiguredEndpointUrls: !!input.ignoreConfiguredEndpointUrls,
15
16
  });
16
17
  let configuredEndpointPromise = undefined;
17
18
  resolvedConfig.serviceConfiguredEndpoint = async () => {
@@ -1,3 +1,4 @@
1
+ import { TypeRegistry } from "@smithy/core/schema";
1
2
  import { fromUtf8, toUtf8 } from "@smithy/core/serde";
2
3
  export class EventStreamSerde {
3
4
  marshaller;
@@ -5,12 +6,14 @@ export class EventStreamSerde {
5
6
  deserializer;
6
7
  serdeContext;
7
8
  defaultContentType;
8
- constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, }) {
9
+ compositeErrorRegistry;
10
+ constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, compositeErrorRegistry, }) {
9
11
  this.marshaller = marshaller;
10
12
  this.serializer = serializer;
11
13
  this.deserializer = deserializer;
12
14
  this.serdeContext = serdeContext;
13
15
  this.defaultContentType = defaultContentType;
16
+ this.compositeErrorRegistry = compositeErrorRegistry;
14
17
  }
15
18
  async serializeEventStream({ eventStream, requestSchema, initialRequest, }) {
16
19
  const marshaller = this.marshaller;
@@ -126,16 +129,9 @@ export class EventStreamSerde {
126
129
  }
127
130
  }
128
131
  }
129
- if (hasBindings) {
130
- return {
131
- [unionMember]: out,
132
- };
133
- }
134
- if (body.byteLength === 0) {
135
- return {
136
- [unionMember]: {},
137
- };
138
- }
132
+ return {
133
+ [unionMember]: await this.readEventMember(eventStreamSchema, body, hasBindings, out),
134
+ };
139
135
  }
140
136
  return {
141
137
  [unionMember]: await this.deserializer.read(eventStreamSchema, body),
@@ -175,6 +171,33 @@ export class EventStreamSerde {
175
171
  },
176
172
  };
177
173
  }
174
+ async readEventMember(eventStreamSchema, body, hasBindings, out) {
175
+ let ErrCtor;
176
+ const staticStructuralSchema = eventStreamSchema.getSchema();
177
+ if (Array.isArray(staticStructuralSchema) && staticStructuralSchema[0] === -3) {
178
+ const namespace = staticStructuralSchema[1];
179
+ const nsRegistry = TypeRegistry.for(namespace);
180
+ this.compositeErrorRegistry?.copyFrom(nsRegistry);
181
+ ErrCtor = (this.compositeErrorRegistry ?? nsRegistry)?.getErrorCtor(staticStructuralSchema);
182
+ }
183
+ const dataObject = hasBindings
184
+ ? out
185
+ : body.byteLength === 0
186
+ ? {}
187
+ : await this.deserializer.read(eventStreamSchema, body);
188
+ if (ErrCtor) {
189
+ const message = dataObject.message ?? dataObject.Message ?? "Unknown";
190
+ const metadata = {};
191
+ const $fault = eventStreamSchema.getMergedTraits().error;
192
+ if ($fault) {
193
+ metadata.$fault = $fault;
194
+ }
195
+ return Object.assign(new ErrCtor({}), metadata, {
196
+ message,
197
+ }, dataObject);
198
+ }
199
+ return dataObject;
200
+ }
178
201
  writeEventBody(unionMember, unionSchema, event) {
179
202
  const serializer = this.serializer;
180
203
  let eventType = unionMember;
@@ -123,6 +123,7 @@ export class HttpProtocol extends SerdeContext {
123
123
  deserializer: this.deserializer,
124
124
  serdeContext: this.serdeContext,
125
125
  defaultContentType: this.getDefaultContentType(),
126
+ compositeErrorRegistry: this.compositeErrorRegistry,
126
127
  });
127
128
  }
128
129
  resolveEventStreamMarshaller(importedProvider) {
@@ -1,2 +1,13 @@
1
1
  import { type LoadedConfigSelectors } from "@smithy/core/config";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
6
+ /**
7
+ * @internal
8
+ */
9
+ export declare const CONFIG_ENDPOINT_URL = "endpoint_url";
10
+ /**
11
+ * @internal
12
+ */
2
13
  export declare const getEndpointUrlConfig: (serviceId: string) => LoadedConfigSelectors<string | undefined>;
@@ -0,0 +1,17 @@
1
+ import { type LoadedConfigSelectors } from "@smithy/core/config";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const ENV_IGNORE_CONFIGURED_ENDPOINT_URLS = "AWS_IGNORE_CONFIGURED_ENDPOINT_URLS";
6
+ /**
7
+ * @internal
8
+ */
9
+ export declare const CONFIG_IGNORE_CONFIGURED_ENDPOINT_URLS = "ignore_configured_endpoint_urls";
10
+ /**
11
+ * Config selectors for the ignore_configured_endpoint_urls option.
12
+ * When true, configured endpoint URLs from environment variables
13
+ * and the shared configuration file are not used.
14
+ *
15
+ * @internal
16
+ */
17
+ export declare const ignoreConfiguredEndpointUrlsConfigSelectors: LoadedConfigSelectors<boolean | undefined>;
@@ -37,6 +37,14 @@ export interface EndpointInputConfig<T extends EndpointParameters = EndpointPara
37
37
  * Enables FIPS compatible endpoints.
38
38
  */
39
39
  useFipsEndpoint?: boolean | Provider<boolean | undefined>;
40
+ /**
41
+ * When true, endpoint URLs from environment variables and the shared
42
+ * configuration file are not used. Does not affect endpoints set
43
+ * via code (e.g. client constructor endpoint option).
44
+ *
45
+ * Default false.
46
+ */
47
+ ignoreConfiguredEndpointUrls?: boolean;
40
48
  /**
41
49
  * This field is used internally so you should not fill any value to this field.
42
50
  *
@@ -98,6 +106,10 @@ export interface EndpointResolvedConfig<T extends EndpointParameters = EndpointP
98
106
  * @internal
99
107
  */
100
108
  serviceId?: string;
109
+ /**
110
+ * Whether configured endpoint URLs should be ignored.
111
+ */
112
+ ignoreConfiguredEndpointUrls: boolean;
101
113
  /**
102
114
  * A configured endpoint global or specific to the service from ENV or AWS SDK configuration files.
103
115
  * @internal
@@ -1,4 +1,4 @@
1
- import type { NormalizedSchema } from "@smithy/core/schema";
1
+ import { type NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
2
2
  import type { EventStreamMarshaller, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
3
3
  /**
4
4
  * Separated module for async mixin of EventStream serde capability.
@@ -12,15 +12,17 @@ export declare class EventStreamSerde {
12
12
  private readonly deserializer;
13
13
  private readonly serdeContext?;
14
14
  private readonly defaultContentType;
15
+ private readonly compositeErrorRegistry?;
15
16
  /**
16
17
  * Properties are injected by the HttpProtocol.
17
18
  */
18
- constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, }: {
19
+ constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, compositeErrorRegistry, }: {
19
20
  marshaller: EventStreamMarshaller;
20
21
  serializer: ShapeSerializer<string | Uint8Array>;
21
22
  deserializer: ShapeDeserializer<string | Uint8Array>;
22
23
  serdeContext?: SerdeFunctions;
23
24
  defaultContentType: string;
25
+ compositeErrorRegistry?: TypeRegistry;
24
26
  });
25
27
  /**
26
28
  * @param eventStream - the iterable provided by the caller.
@@ -49,6 +51,12 @@ export declare class EventStreamSerde {
49
51
  [key: string]: any;
50
52
  $unknown?: unknown;
51
53
  }>>;
54
+ /**
55
+ * Reads and returns an event member. For error schemas, resolves the registered
56
+ * error constructor from the TypeRegistry and wraps the deserialized value
57
+ * so that it can be thrown as a typed exception instance by the caller.
58
+ */
59
+ private readEventMember;
52
60
  /**
53
61
  * @param unionMember - member name within the structure that contains an event stream union.
54
62
  * @param unionSchema - schema of the union.
@@ -1,2 +1,13 @@
1
1
  import { LoadedConfigSelectors } from "@smithy/core/config";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL";
6
+ /**
7
+ * @internal
8
+ */
9
+ export declare const CONFIG_ENDPOINT_URL = "endpoint_url";
10
+ /**
11
+ * @internal
12
+ */
2
13
  export declare const getEndpointUrlConfig: (serviceId: string) => LoadedConfigSelectors<string | undefined>;
@@ -0,0 +1,17 @@
1
+ import { LoadedConfigSelectors } from "@smithy/core/config";
2
+ /**
3
+ * @internal
4
+ */
5
+ export declare const ENV_IGNORE_CONFIGURED_ENDPOINT_URLS = "AWS_IGNORE_CONFIGURED_ENDPOINT_URLS";
6
+ /**
7
+ * @internal
8
+ */
9
+ export declare const CONFIG_IGNORE_CONFIGURED_ENDPOINT_URLS = "ignore_configured_endpoint_urls";
10
+ /**
11
+ * Config selectors for the ignore_configured_endpoint_urls option.
12
+ * When true, configured endpoint URLs from environment variables
13
+ * and the shared configuration file are not used.
14
+ *
15
+ * @internal
16
+ */
17
+ export declare const ignoreConfiguredEndpointUrlsConfigSelectors: LoadedConfigSelectors<boolean | undefined>;
@@ -37,6 +37,14 @@ export interface EndpointInputConfig<T extends EndpointParameters = EndpointPara
37
37
  * Enables FIPS compatible endpoints.
38
38
  */
39
39
  useFipsEndpoint?: boolean | Provider<boolean | undefined>;
40
+ /**
41
+ * When true, endpoint URLs from environment variables and the shared
42
+ * configuration file are not used. Does not affect endpoints set
43
+ * via code (e.g. client constructor endpoint option).
44
+ *
45
+ * Default false.
46
+ */
47
+ ignoreConfiguredEndpointUrls?: boolean;
40
48
  /**
41
49
  * This field is used internally so you should not fill any value to this field.
42
50
  *
@@ -98,6 +106,10 @@ export interface EndpointResolvedConfig<T extends EndpointParameters = EndpointP
98
106
  * @internal
99
107
  */
100
108
  serviceId?: string;
109
+ /**
110
+ * Whether configured endpoint URLs should be ignored.
111
+ */
112
+ ignoreConfiguredEndpointUrls: boolean;
101
113
  /**
102
114
  * A configured endpoint global or specific to the service from ENV or AWS SDK configuration files.
103
115
  * @internal
@@ -1,4 +1,4 @@
1
- import { NormalizedSchema } from "@smithy/core/schema";
1
+ import { NormalizedSchema, TypeRegistry } from "@smithy/core/schema";
2
2
  import { EventStreamMarshaller, HttpRequest as IHttpRequest, HttpResponse as IHttpResponse, SerdeFunctions, ShapeDeserializer, ShapeSerializer } from "@smithy/types";
3
3
  /**
4
4
  * Separated module for async mixin of EventStream serde capability.
@@ -12,15 +12,17 @@ export declare class EventStreamSerde {
12
12
  private readonly deserializer;
13
13
  private readonly serdeContext?;
14
14
  private readonly defaultContentType;
15
+ private readonly compositeErrorRegistry?;
15
16
  /**
16
17
  * Properties are injected by the HttpProtocol.
17
18
  */
18
- constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, }: {
19
+ constructor({ marshaller, serializer, deserializer, serdeContext, defaultContentType, compositeErrorRegistry, }: {
19
20
  marshaller: EventStreamMarshaller;
20
21
  serializer: ShapeSerializer<string | Uint8Array>;
21
22
  deserializer: ShapeDeserializer<string | Uint8Array>;
22
23
  serdeContext?: SerdeFunctions;
23
24
  defaultContentType: string;
25
+ compositeErrorRegistry?: TypeRegistry;
24
26
  });
25
27
  /**
26
28
  * @param eventStream - the iterable provided by the caller.
@@ -49,6 +51,12 @@ export declare class EventStreamSerde {
49
51
  [key: string]: any;
50
52
  $unknown?: unknown;
51
53
  }>>;
54
+ /**
55
+ * Reads and returns an event member. For error schemas, resolves the registered
56
+ * error constructor from the TypeRegistry and wraps the deserialized value
57
+ * so that it can be thrown as a typed exception instance by the caller.
58
+ */
59
+ private readEventMember;
52
60
  /**
53
61
  * @param unionMember - member name within the structure that contains an event stream union.
54
62
  * @param unionSchema - schema of the union.