@aws-sdk/client-personalize-runtime 3.943.0 → 3.947.0

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 (29) hide show
  1. package/dist-cjs/index.js +5 -31
  2. package/dist-cjs/runtimeConfig.browser.js +2 -2
  3. package/dist-cjs/runtimeConfig.js +3 -4
  4. package/dist-es/PersonalizeRuntimeClient.js +2 -2
  5. package/dist-es/runtimeConfig.browser.js +2 -2
  6. package/dist-es/runtimeConfig.js +2 -3
  7. package/dist-es/schemas/schemas_0.js +5 -31
  8. package/dist-types/PersonalizeRuntime.d.ts +1 -1
  9. package/dist-types/PersonalizeRuntimeClient.d.ts +10 -10
  10. package/dist-types/auth/httpAuthExtensionConfiguration.d.ts +2 -2
  11. package/dist-types/auth/httpAuthSchemeProvider.d.ts +2 -2
  12. package/dist-types/commands/GetActionRecommendationsCommand.d.ts +3 -3
  13. package/dist-types/commands/GetPersonalizedRankingCommand.d.ts +3 -3
  14. package/dist-types/commands/GetRecommendationsCommand.d.ts +3 -3
  15. package/dist-types/endpoint/EndpointParameters.d.ts +13 -1
  16. package/dist-types/endpoint/endpointResolver.d.ts +5 -2
  17. package/dist-types/extensionConfiguration.d.ts +4 -4
  18. package/dist-types/models/PersonalizeRuntimeServiceException.d.ts +1 -1
  19. package/dist-types/models/errors.d.ts +1 -1
  20. package/dist-types/runtimeConfig.browser.d.ts +1 -1
  21. package/dist-types/runtimeConfig.d.ts +1 -1
  22. package/dist-types/runtimeConfig.native.d.ts +1 -1
  23. package/dist-types/runtimeConfig.shared.d.ts +1 -1
  24. package/dist-types/runtimeExtensions.d.ts +1 -1
  25. package/dist-types/schemas/schemas_0.d.ts +1 -1
  26. package/dist-types/ts3.4/PersonalizeRuntimeClient.d.ts +3 -3
  27. package/dist-types/ts3.4/auth/httpAuthExtensionConfiguration.d.ts +1 -1
  28. package/dist-types/ts3.4/models/PersonalizeRuntimeServiceException.d.ts +1 -1
  29. package/package.json +13 -12
package/dist-cjs/index.js CHANGED
@@ -237,17 +237,7 @@ var GetRecommendationsRequest = [
237
237
  [0, 0, 0, 1, [() => Context, 0], 0, [() => FilterValues, 0], 0, [() => PromotionList, 0], [2, n0, _MC, 0, 0, 64 | 0]],
238
238
  ];
239
239
  var GetRecommendationsResponse = [3, n0, _GRRe, 0, [_iLt, _rI], [[() => ItemList, 0], 0]];
240
- var InvalidInputException = [
241
- -3,
242
- n0,
243
- _IIE,
244
- {
245
- [_e]: _cl,
246
- [_hE]: 400,
247
- },
248
- [_m],
249
- [0],
250
- ];
240
+ var InvalidInputException = [-3, n0, _IIE, { [_e]: _cl, [_hE]: 400 }, [_m], [0]];
251
241
  schema.TypeRegistry.for(n0).registerError(InvalidInputException, InvalidInputException$1);
252
242
  var PredictedAction = [3, n0, _PA, 0, [_aI, _s], [0, 1]];
253
243
  var PredictedItem = [
@@ -259,17 +249,7 @@ var PredictedItem = [
259
249
  [0, 1, 0, [() => Metadata, 0], 64 | 0],
260
250
  ];
261
251
  var Promotion = [3, n0, _P, 0, [_n, _pPI, _fA, _fV], [0, 1, 0, [() => FilterValues, 0]]];
262
- var ResourceNotFoundException = [
263
- -3,
264
- n0,
265
- _RNFE,
266
- {
267
- [_e]: _cl,
268
- [_hE]: 404,
269
- },
270
- [_m],
271
- [0],
272
- ];
252
+ var ResourceNotFoundException = [-3, n0, _RNFE, { [_e]: _cl, [_hE]: 404 }, [_m], [0]];
273
253
  schema.TypeRegistry.for(n0).registerError(ResourceNotFoundException, ResourceNotFoundException$1);
274
254
  var PersonalizeRuntimeServiceException = [
275
255
  -3,
@@ -290,9 +270,7 @@ var GetActionRecommendations = [
290
270
  9,
291
271
  n0,
292
272
  _GAR,
293
- {
294
- [_h]: ["POST", "/action-recommendations", 200],
295
- },
273
+ { [_h]: ["POST", "/action-recommendations", 200] },
296
274
  () => GetActionRecommendationsRequest,
297
275
  () => GetActionRecommendationsResponse,
298
276
  ];
@@ -300,9 +278,7 @@ var GetPersonalizedRanking = [
300
278
  9,
301
279
  n0,
302
280
  _GPR,
303
- {
304
- [_h]: ["POST", "/personalize-ranking", 200],
305
- },
281
+ { [_h]: ["POST", "/personalize-ranking", 200] },
306
282
  () => GetPersonalizedRankingRequest,
307
283
  () => GetPersonalizedRankingResponse,
308
284
  ];
@@ -310,9 +286,7 @@ var GetRecommendations = [
310
286
  9,
311
287
  n0,
312
288
  _GR,
313
- {
314
- [_h]: ["POST", "/recommendations", 200],
315
- },
289
+ { [_h]: ["POST", "/recommendations", 200] },
316
290
  () => GetRecommendationsRequest,
317
291
  () => GetRecommendationsResponse,
318
292
  ];
@@ -8,11 +8,11 @@ const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser");
8
8
  const config_resolver_1 = require("@smithy/config-resolver");
9
9
  const fetch_http_handler_1 = require("@smithy/fetch-http-handler");
10
10
  const invalid_dependency_1 = require("@smithy/invalid-dependency");
11
+ const smithy_client_1 = require("@smithy/smithy-client");
11
12
  const util_body_length_browser_1 = require("@smithy/util-body-length-browser");
13
+ const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
12
14
  const util_retry_1 = require("@smithy/util-retry");
13
15
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
14
- const smithy_client_1 = require("@smithy/smithy-client");
15
- const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser");
16
16
  const getRuntimeConfig = (config) => {
17
17
  const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config);
18
18
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
@@ -11,14 +11,13 @@ const hash_node_1 = require("@smithy/hash-node");
11
11
  const middleware_retry_1 = require("@smithy/middleware-retry");
12
12
  const node_config_provider_1 = require("@smithy/node-config-provider");
13
13
  const node_http_handler_1 = require("@smithy/node-http-handler");
14
+ const smithy_client_1 = require("@smithy/smithy-client");
14
15
  const util_body_length_node_1 = require("@smithy/util-body-length-node");
16
+ const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
15
17
  const util_retry_1 = require("@smithy/util-retry");
16
18
  const runtimeConfig_shared_1 = require("./runtimeConfig.shared");
17
- const smithy_client_1 = require("@smithy/smithy-client");
18
- const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node");
19
- const smithy_client_2 = require("@smithy/smithy-client");
20
19
  const getRuntimeConfig = (config) => {
21
- (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version);
20
+ (0, smithy_client_1.emitWarningIfUnsupportedVersion)(process.version);
22
21
  const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config);
23
22
  const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode);
24
23
  const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config);
@@ -6,8 +6,8 @@ import { resolveRegionConfig } from "@smithy/config-resolver";
6
6
  import { DefaultIdentityProviderConfig, getHttpAuthSchemeEndpointRuleSetPlugin, getHttpSigningPlugin, } from "@smithy/core";
7
7
  import { getSchemaSerdePlugin } from "@smithy/core/schema";
8
8
  import { getContentLengthPlugin } from "@smithy/middleware-content-length";
9
- import { resolveEndpointConfig } from "@smithy/middleware-endpoint";
10
- import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry";
9
+ import { resolveEndpointConfig, } from "@smithy/middleware-endpoint";
10
+ import { getRetryPlugin, resolveRetryConfig, } from "@smithy/middleware-retry";
11
11
  import { Client as __Client, } from "@smithy/smithy-client";
12
12
  import { defaultPersonalizeRuntimeHttpAuthSchemeParametersProvider, resolveHttpAuthSchemeConfig, } from "./auth/httpAuthSchemeProvider";
13
13
  import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters";
@@ -4,11 +4,11 @@ import { createDefaultUserAgentProvider } from "@aws-sdk/util-user-agent-browser
4
4
  import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver";
5
5
  import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler";
6
6
  import { invalidProvider } from "@smithy/invalid-dependency";
7
+ import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
7
8
  import { calculateBodyLength } from "@smithy/util-body-length-browser";
9
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
8
10
  import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry";
9
11
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
10
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
11
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser";
12
12
  export const getRuntimeConfig = (config) => {
13
13
  const defaultsMode = resolveDefaultsModeConfig(config);
14
14
  const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode);
@@ -7,12 +7,11 @@ import { Hash } from "@smithy/hash-node";
7
7
  import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry";
8
8
  import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider";
9
9
  import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler";
10
+ import { emitWarningIfUnsupportedVersion, loadConfigsForDefaultMode } from "@smithy/smithy-client";
10
11
  import { calculateBodyLength } from "@smithy/util-body-length-node";
12
+ import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
11
13
  import { DEFAULT_RETRY_MODE } from "@smithy/util-retry";
12
14
  import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared";
13
- import { loadConfigsForDefaultMode } from "@smithy/smithy-client";
14
- import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node";
15
- import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client";
16
15
  export const getRuntimeConfig = (config) => {
17
16
  emitWarningIfUnsupportedVersion(process.version);
18
17
  const defaultsMode = resolveDefaultsModeConfig(config);
@@ -96,17 +96,7 @@ export var GetRecommendationsRequest = [
96
96
  [0, 0, 0, 1, [() => Context, 0], 0, [() => FilterValues, 0], 0, [() => PromotionList, 0], [2, n0, _MC, 0, 0, 64 | 0]],
97
97
  ];
98
98
  export var GetRecommendationsResponse = [3, n0, _GRRe, 0, [_iLt, _rI], [[() => ItemList, 0], 0]];
99
- export var InvalidInputException = [
100
- -3,
101
- n0,
102
- _IIE,
103
- {
104
- [_e]: _cl,
105
- [_hE]: 400,
106
- },
107
- [_m],
108
- [0],
109
- ];
99
+ export var InvalidInputException = [-3, n0, _IIE, { [_e]: _cl, [_hE]: 400 }, [_m], [0]];
110
100
  TypeRegistry.for(n0).registerError(InvalidInputException, __InvalidInputException);
111
101
  export var PredictedAction = [3, n0, _PA, 0, [_aI, _s], [0, 1]];
112
102
  export var PredictedItem = [
@@ -118,17 +108,7 @@ export var PredictedItem = [
118
108
  [0, 1, 0, [() => Metadata, 0], 64 | 0],
119
109
  ];
120
110
  export var Promotion = [3, n0, _P, 0, [_n, _pPI, _fA, _fV], [0, 1, 0, [() => FilterValues, 0]]];
121
- export var ResourceNotFoundException = [
122
- -3,
123
- n0,
124
- _RNFE,
125
- {
126
- [_e]: _cl,
127
- [_hE]: 404,
128
- },
129
- [_m],
130
- [0],
131
- ];
111
+ export var ResourceNotFoundException = [-3, n0, _RNFE, { [_e]: _cl, [_hE]: 404 }, [_m], [0]];
132
112
  TypeRegistry.for(n0).registerError(ResourceNotFoundException, __ResourceNotFoundException);
133
113
  export var PersonalizeRuntimeServiceException = [
134
114
  -3,
@@ -153,9 +133,7 @@ export var GetActionRecommendations = [
153
133
  9,
154
134
  n0,
155
135
  _GAR,
156
- {
157
- [_h]: ["POST", "/action-recommendations", 200],
158
- },
136
+ { [_h]: ["POST", "/action-recommendations", 200] },
159
137
  () => GetActionRecommendationsRequest,
160
138
  () => GetActionRecommendationsResponse,
161
139
  ];
@@ -163,9 +141,7 @@ export var GetPersonalizedRanking = [
163
141
  9,
164
142
  n0,
165
143
  _GPR,
166
- {
167
- [_h]: ["POST", "/personalize-ranking", 200],
168
- },
144
+ { [_h]: ["POST", "/personalize-ranking", 200] },
169
145
  () => GetPersonalizedRankingRequest,
170
146
  () => GetPersonalizedRankingResponse,
171
147
  ];
@@ -173,9 +149,7 @@ export var GetRecommendations = [
173
149
  9,
174
150
  n0,
175
151
  _GR,
176
- {
177
- [_h]: ["POST", "/recommendations", 200],
178
- },
152
+ { [_h]: ["POST", "/recommendations", 200] },
179
153
  () => GetRecommendationsRequest,
180
154
  () => GetRecommendationsResponse,
181
155
  ];
@@ -1,4 +1,4 @@
1
- import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
1
+ import type { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types";
2
2
  import { GetActionRecommendationsCommandInput, GetActionRecommendationsCommandOutput } from "./commands/GetActionRecommendationsCommand";
3
3
  import { GetPersonalizedRankingCommandInput, GetPersonalizedRankingCommandOutput } from "./commands/GetPersonalizedRankingCommand";
4
4
  import { GetRecommendationsCommandInput, GetRecommendationsCommandOutput } from "./commands/GetRecommendationsCommand";
@@ -1,17 +1,17 @@
1
- import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
- import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
3
- import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver";
4
- import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
- import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry";
6
- import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
- import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client";
8
- import { AwsCredentialIdentityProvider, BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, ClientProtocol, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, HttpRequest, HttpResponse, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types";
9
- import { HttpAuthSchemeInputConfig, HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
1
+ import { type HostHeaderInputConfig, type HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header";
2
+ import { type UserAgentInputConfig, type UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent";
3
+ import { type RegionInputConfig, type RegionResolvedConfig } from "@smithy/config-resolver";
4
+ import { type EndpointInputConfig, type EndpointResolvedConfig } from "@smithy/middleware-endpoint";
5
+ import { type RetryInputConfig, type RetryResolvedConfig } from "@smithy/middleware-retry";
6
+ import type { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
7
+ import { type DefaultsMode as __DefaultsMode, type SmithyConfiguration as __SmithyConfiguration, type SmithyResolvedConfiguration as __SmithyResolvedConfiguration, Client as __Client } from "@smithy/smithy-client";
8
+ import { type BodyLengthCalculator as __BodyLengthCalculator, type CheckOptionalClientConfig as __CheckOptionalClientConfig, type ChecksumConstructor as __ChecksumConstructor, type ClientProtocol, type Decoder as __Decoder, type Encoder as __Encoder, type HashConstructor as __HashConstructor, type HttpHandlerOptions as __HttpHandlerOptions, type HttpRequest, type HttpResponse, type Logger as __Logger, type Provider as __Provider, type StreamCollector as __StreamCollector, type UrlParser as __UrlParser, AwsCredentialIdentityProvider, Provider, UserAgent as __UserAgent } from "@smithy/types";
9
+ import { type HttpAuthSchemeInputConfig, type HttpAuthSchemeResolvedConfig } from "./auth/httpAuthSchemeProvider";
10
10
  import { GetActionRecommendationsCommandInput, GetActionRecommendationsCommandOutput } from "./commands/GetActionRecommendationsCommand";
11
11
  import { GetPersonalizedRankingCommandInput, GetPersonalizedRankingCommandOutput } from "./commands/GetPersonalizedRankingCommand";
12
12
  import { GetRecommendationsCommandInput, GetRecommendationsCommandOutput } from "./commands/GetRecommendationsCommand";
13
13
  import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters";
14
- import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions";
14
+ import { type RuntimeExtension, type RuntimeExtensionsConfig } from "./runtimeExtensions";
15
15
  export { __Client };
16
16
  /**
17
17
  * @public
@@ -1,5 +1,5 @@
1
- import { AwsCredentialIdentity, AwsCredentialIdentityProvider, HttpAuthScheme } from "@smithy/types";
2
- import { PersonalizeRuntimeHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
1
+ import { type HttpAuthScheme, AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types";
2
+ import type { PersonalizeRuntimeHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { AwsSdkSigV4AuthInputConfig, AwsSdkSigV4AuthResolvedConfig, AwsSdkSigV4PreviouslyResolved } from "@aws-sdk/core";
2
- import { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
- import { PersonalizeRuntimeClientResolvedConfig } from "../PersonalizeRuntimeClient";
2
+ import type { HandlerExecutionContext, HttpAuthScheme, HttpAuthSchemeParameters, HttpAuthSchemeParametersProvider, HttpAuthSchemeProvider, Provider } from "@smithy/types";
3
+ import { type PersonalizeRuntimeClientResolvedConfig } from "../PersonalizeRuntimeClient";
4
4
  /**
5
5
  * @internal
6
6
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { GetActionRecommendationsRequest, GetActionRecommendationsResponse } from "../models/models_0";
4
- import { PersonalizeRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeRuntimeClient";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GetActionRecommendationsRequest, GetActionRecommendationsResponse } from "../models/models_0";
4
+ import type { PersonalizeRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeRuntimeClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { GetPersonalizedRankingRequest, GetPersonalizedRankingResponse } from "../models/models_0";
4
- import { PersonalizeRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeRuntimeClient";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GetPersonalizedRankingRequest, GetPersonalizedRankingResponse } from "../models/models_0";
4
+ import type { PersonalizeRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeRuntimeClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,7 +1,7 @@
1
1
  import { Command as $Command } from "@smithy/smithy-client";
2
- import { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
- import { GetRecommendationsRequest, GetRecommendationsResponse } from "../models/models_0";
4
- import { PersonalizeRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeRuntimeClient";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { GetRecommendationsRequest, GetRecommendationsResponse } from "../models/models_0";
4
+ import type { PersonalizeRuntimeClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes } from "../PersonalizeRuntimeClient";
5
5
  /**
6
6
  * @public
7
7
  */
@@ -1,4 +1,4 @@
1
- import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
1
+ import type { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -8,10 +8,19 @@ export interface ClientInputEndpointParameters {
8
8
  useFipsEndpoint?: boolean | undefined | Provider<boolean | undefined>;
9
9
  endpoint?: string | Provider<string> | Endpoint | Provider<Endpoint> | EndpointV2 | Provider<EndpointV2>;
10
10
  }
11
+ /**
12
+ * @public
13
+ */
11
14
  export type ClientResolvedEndpointParameters = Omit<ClientInputEndpointParameters, "endpoint"> & {
12
15
  defaultSigningName: string;
13
16
  };
17
+ /**
18
+ * @internal
19
+ */
14
20
  export declare const resolveClientEndpointParameters: <T>(options: T & ClientInputEndpointParameters) => T & ClientResolvedEndpointParameters;
21
+ /**
22
+ * @internal
23
+ */
15
24
  export declare const commonParams: {
16
25
  readonly UseFIPS: {
17
26
  readonly type: "builtInParams";
@@ -30,6 +39,9 @@ export declare const commonParams: {
30
39
  readonly name: "useDualstackEndpoint";
31
40
  };
32
41
  };
42
+ /**
43
+ * @internal
44
+ */
33
45
  export interface EndpointParameters extends __EndpointParameters {
34
46
  Region?: string | undefined;
35
47
  UseDualStack?: boolean | undefined;
@@ -1,5 +1,8 @@
1
- import { EndpointV2, Logger } from "@smithy/types";
2
- import { EndpointParameters } from "./EndpointParameters";
1
+ import type { EndpointV2, Logger } from "@smithy/types";
2
+ import type { EndpointParameters } from "./EndpointParameters";
3
+ /**
4
+ * @internal
5
+ */
3
6
  export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: {
4
7
  logger?: Logger;
5
8
  }) => EndpointV2;
@@ -1,7 +1,7 @@
1
- import { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
- import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
- import { DefaultExtensionConfiguration } from "@smithy/types";
4
- import { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
1
+ import type { AwsRegionExtensionConfiguration } from "@aws-sdk/types";
2
+ import type { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
3
+ import type { DefaultExtensionConfiguration } from "@smithy/types";
4
+ import type { HttpAuthExtensionConfiguration } from "./auth/httpAuthExtensionConfiguration";
5
5
  /**
6
6
  * @internal
7
7
  */
@@ -1,4 +1,4 @@
1
- import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client";
1
+ import { type ServiceExceptionOptions as __ServiceExceptionOptions, ServiceException as __ServiceException } from "@smithy/smithy-client";
2
2
  export type { __ServiceExceptionOptions };
3
3
  export { __ServiceException };
4
4
  /**
@@ -1,4 +1,4 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
1
+ import type { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
2
  import { PersonalizeRuntimeServiceException as __BaseException } from "./PersonalizeRuntimeServiceException";
3
3
  /**
4
4
  * <p>Provide a valid value for the field or parameter.</p>
@@ -1,5 +1,5 @@
1
1
  import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler";
2
- import { PersonalizeRuntimeClientConfig } from "./PersonalizeRuntimeClient";
2
+ import type { PersonalizeRuntimeClientConfig } from "./PersonalizeRuntimeClient";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler";
2
- import { PersonalizeRuntimeClientConfig } from "./PersonalizeRuntimeClient";
2
+ import type { PersonalizeRuntimeClientConfig } from "./PersonalizeRuntimeClient";
3
3
  /**
4
4
  * @internal
5
5
  */
@@ -1,4 +1,4 @@
1
- import { PersonalizeRuntimeClientConfig } from "./PersonalizeRuntimeClient";
1
+ import type { PersonalizeRuntimeClientConfig } from "./PersonalizeRuntimeClient";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,4 +1,4 @@
1
- import { PersonalizeRuntimeClientConfig } from "./PersonalizeRuntimeClient";
1
+ import type { PersonalizeRuntimeClientConfig } from "./PersonalizeRuntimeClient";
2
2
  /**
3
3
  * @internal
4
4
  */
@@ -1,4 +1,4 @@
1
- import { PersonalizeRuntimeExtensionConfiguration } from "./extensionConfiguration";
1
+ import type { PersonalizeRuntimeExtensionConfiguration } from "./extensionConfiguration";
2
2
  /**
3
3
  * @public
4
4
  */
@@ -1,4 +1,4 @@
1
- import { StaticErrorSchema, StaticListSchema, StaticMapSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
1
+ import type { StaticErrorSchema, StaticListSchema, StaticMapSchema, StaticOperationSchema, StaticSimpleSchema, StaticStructureSchema } from "@smithy/types";
2
2
  export declare var AttributeValue: StaticSimpleSchema;
3
3
  export declare var FilterAttributeValue: StaticSimpleSchema;
4
4
  export declare var GetActionRecommendationsRequest: StaticStructureSchema;
@@ -20,13 +20,12 @@ import {
20
20
  } from "@smithy/middleware-retry";
21
21
  import { HttpHandlerUserInput as __HttpHandlerUserInput } from "@smithy/protocol-http";
22
22
  import {
23
- Client as __Client,
24
23
  DefaultsMode as __DefaultsMode,
25
24
  SmithyConfiguration as __SmithyConfiguration,
26
25
  SmithyResolvedConfiguration as __SmithyResolvedConfiguration,
26
+ Client as __Client,
27
27
  } from "@smithy/smithy-client";
28
28
  import {
29
- AwsCredentialIdentityProvider,
30
29
  BodyLengthCalculator as __BodyLengthCalculator,
31
30
  CheckOptionalClientConfig as __CheckOptionalClientConfig,
32
31
  ChecksumConstructor as __ChecksumConstructor,
@@ -39,9 +38,10 @@ import {
39
38
  HttpResponse,
40
39
  Logger as __Logger,
41
40
  Provider as __Provider,
42
- Provider,
43
41
  StreamCollector as __StreamCollector,
44
42
  UrlParser as __UrlParser,
43
+ AwsCredentialIdentityProvider,
44
+ Provider,
45
45
  UserAgent as __UserAgent,
46
46
  } from "@smithy/types";
47
47
  import {
@@ -1,7 +1,7 @@
1
1
  import {
2
+ HttpAuthScheme,
2
3
  AwsCredentialIdentity,
3
4
  AwsCredentialIdentityProvider,
4
- HttpAuthScheme,
5
5
  } from "@smithy/types";
6
6
  import { PersonalizeRuntimeHttpAuthSchemeProvider } from "./httpAuthSchemeProvider";
7
7
  export interface HttpAuthExtensionConfiguration {
@@ -1,6 +1,6 @@
1
1
  import {
2
- ServiceException as __ServiceException,
3
2
  ServiceExceptionOptions as __ServiceExceptionOptions,
3
+ ServiceException as __ServiceException,
4
4
  } from "@smithy/smithy-client";
5
5
  export { __ServiceExceptionOptions };
6
6
  export { __ServiceException };
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-personalize-runtime",
3
3
  "description": "AWS SDK for JavaScript Personalize Runtime Client for Node.js, Browser and React Native",
4
- "version": "3.943.0",
4
+ "version": "3.947.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "node ../../scripts/compilation/inline client-personalize-runtime",
@@ -11,7 +11,8 @@
11
11
  "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4",
12
12
  "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo",
13
13
  "extract:docs": "api-extractor run --local",
14
- "generate:client": "node ../../scripts/generate-clients/single-service --solo personalize-runtime"
14
+ "generate:client": "node ../../scripts/generate-clients/single-service --solo personalize-runtime",
15
+ "test:index": "tsc --noEmit ./test/index-types.ts && node ./test/index-objects.spec.mjs"
15
16
  },
16
17
  "main": "./dist-cjs/index.js",
17
18
  "types": "./dist-types/index.d.ts",
@@ -20,38 +21,38 @@
20
21
  "dependencies": {
21
22
  "@aws-crypto/sha256-browser": "5.2.0",
22
23
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.943.0",
24
- "@aws-sdk/credential-provider-node": "3.943.0",
24
+ "@aws-sdk/core": "3.947.0",
25
+ "@aws-sdk/credential-provider-node": "3.947.0",
25
26
  "@aws-sdk/middleware-host-header": "3.936.0",
26
27
  "@aws-sdk/middleware-logger": "3.936.0",
27
28
  "@aws-sdk/middleware-recursion-detection": "3.936.0",
28
- "@aws-sdk/middleware-user-agent": "3.943.0",
29
+ "@aws-sdk/middleware-user-agent": "3.947.0",
29
30
  "@aws-sdk/region-config-resolver": "3.936.0",
30
31
  "@aws-sdk/types": "3.936.0",
31
32
  "@aws-sdk/util-endpoints": "3.936.0",
32
33
  "@aws-sdk/util-user-agent-browser": "3.936.0",
33
- "@aws-sdk/util-user-agent-node": "3.943.0",
34
+ "@aws-sdk/util-user-agent-node": "3.947.0",
34
35
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.5",
36
+ "@smithy/core": "^3.18.7",
36
37
  "@smithy/fetch-http-handler": "^5.3.6",
37
38
  "@smithy/hash-node": "^4.2.5",
38
39
  "@smithy/invalid-dependency": "^4.2.5",
39
40
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.12",
41
- "@smithy/middleware-retry": "^4.4.12",
41
+ "@smithy/middleware-endpoint": "^4.3.14",
42
+ "@smithy/middleware-retry": "^4.4.14",
42
43
  "@smithy/middleware-serde": "^4.2.6",
43
44
  "@smithy/middleware-stack": "^4.2.5",
44
45
  "@smithy/node-config-provider": "^4.3.5",
45
46
  "@smithy/node-http-handler": "^4.4.5",
46
47
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.8",
48
+ "@smithy/smithy-client": "^4.9.10",
48
49
  "@smithy/types": "^4.9.0",
49
50
  "@smithy/url-parser": "^4.2.5",
50
51
  "@smithy/util-base64": "^4.3.0",
51
52
  "@smithy/util-body-length-browser": "^4.2.0",
52
53
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.11",
54
- "@smithy/util-defaults-mode-node": "^4.2.14",
54
+ "@smithy/util-defaults-mode-browser": "^4.3.13",
55
+ "@smithy/util-defaults-mode-node": "^4.2.16",
55
56
  "@smithy/util-endpoints": "^3.2.5",
56
57
  "@smithy/util-middleware": "^4.2.5",
57
58
  "@smithy/util-retry": "^4.2.5",