@aws-sdk/client-personalize-runtime 3.934.0 → 3.935.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.
package/dist-es/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  export * from "./PersonalizeRuntimeClient";
2
2
  export * from "./PersonalizeRuntime";
3
3
  export * from "./commands";
4
- export * from "./models";
4
+ export * from "./models/errors";
5
5
  export { PersonalizeRuntimeServiceException } from "./models/PersonalizeRuntimeServiceException";
@@ -0,0 +1,25 @@
1
+ import { PersonalizeRuntimeServiceException as __BaseException } from "./PersonalizeRuntimeServiceException";
2
+ export class InvalidInputException extends __BaseException {
3
+ name = "InvalidInputException";
4
+ $fault = "client";
5
+ constructor(opts) {
6
+ super({
7
+ name: "InvalidInputException",
8
+ $fault: "client",
9
+ ...opts,
10
+ });
11
+ Object.setPrototypeOf(this, InvalidInputException.prototype);
12
+ }
13
+ }
14
+ export class ResourceNotFoundException extends __BaseException {
15
+ name = "ResourceNotFoundException";
16
+ $fault = "client";
17
+ constructor(opts) {
18
+ super({
19
+ name: "ResourceNotFoundException",
20
+ $fault: "client",
21
+ ...opts,
22
+ });
23
+ Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
24
+ }
25
+ }
@@ -1,25 +1 @@
1
- import { PersonalizeRuntimeServiceException as __BaseException } from "./PersonalizeRuntimeServiceException";
2
- export class InvalidInputException extends __BaseException {
3
- name = "InvalidInputException";
4
- $fault = "client";
5
- constructor(opts) {
6
- super({
7
- name: "InvalidInputException",
8
- $fault: "client",
9
- ...opts,
10
- });
11
- Object.setPrototypeOf(this, InvalidInputException.prototype);
12
- }
13
- }
14
- export class ResourceNotFoundException extends __BaseException {
15
- name = "ResourceNotFoundException";
16
- $fault = "client";
17
- constructor(opts) {
18
- super({
19
- name: "ResourceNotFoundException",
20
- $fault: "client",
21
- ...opts,
22
- });
23
- Object.setPrototypeOf(this, ResourceNotFoundException.prototype);
24
- }
25
- }
1
+ export {};
@@ -51,7 +51,7 @@ const _sm = "smithy.ts.sdk.synthetic.com.amazonaws.personalizeruntime";
51
51
  const _uI = "userId";
52
52
  const n0 = "com.amazonaws.personalizeruntime";
53
53
  import { TypeRegistry } from "@smithy/core/schema";
54
- import { InvalidInputException as __InvalidInputException, ResourceNotFoundException as __ResourceNotFoundException, } from "../models/index";
54
+ import { InvalidInputException as __InvalidInputException, ResourceNotFoundException as __ResourceNotFoundException, } from "../models/errors";
55
55
  import { PersonalizeRuntimeServiceException as __PersonalizeRuntimeServiceException } from "../models/PersonalizeRuntimeServiceException";
56
56
  export var AttributeValue = [0, n0, _AV, 8, 0];
57
57
  export var FilterAttributeValue = [0, n0, _FAV, 8, 0];
@@ -9,5 +9,6 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
9
9
  export type { RuntimeExtension } from "./runtimeExtensions";
10
10
  export type { PersonalizeRuntimeExtensionConfiguration } from "./extensionConfiguration";
11
11
  export * from "./commands";
12
- export * from "./models";
12
+ export * from "./models/errors";
13
+ export type * from "./models/models_0";
13
14
  export { PersonalizeRuntimeServiceException } from "./models/PersonalizeRuntimeServiceException";
@@ -0,0 +1,26 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { PersonalizeRuntimeServiceException as __BaseException } from "./PersonalizeRuntimeServiceException";
3
+ /**
4
+ * <p>Provide a valid value for the field or parameter.</p>
5
+ * @public
6
+ */
7
+ export declare class InvalidInputException extends __BaseException {
8
+ readonly name: "InvalidInputException";
9
+ readonly $fault: "client";
10
+ /**
11
+ * @internal
12
+ */
13
+ constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
14
+ }
15
+ /**
16
+ * <p>The specified resource does not exist.</p>
17
+ * @public
18
+ */
19
+ export declare class ResourceNotFoundException extends __BaseException {
20
+ readonly name: "ResourceNotFoundException";
21
+ readonly $fault: "client";
22
+ /**
23
+ * @internal
24
+ */
25
+ constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
26
+ }
@@ -1,5 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { PersonalizeRuntimeServiceException as __BaseException } from "./PersonalizeRuntimeServiceException";
3
1
  /**
4
2
  * <p>An object that identifies an action.</p>
5
3
  * <p>The API returns a list of
@@ -76,30 +74,6 @@ export interface GetActionRecommendationsResponse {
76
74
  */
77
75
  recommendationId?: string | undefined;
78
76
  }
79
- /**
80
- * <p>Provide a valid value for the field or parameter.</p>
81
- * @public
82
- */
83
- export declare class InvalidInputException extends __BaseException {
84
- readonly name: "InvalidInputException";
85
- readonly $fault: "client";
86
- /**
87
- * @internal
88
- */
89
- constructor(opts: __ExceptionOptionType<InvalidInputException, __BaseException>);
90
- }
91
- /**
92
- * <p>The specified resource does not exist.</p>
93
- * @public
94
- */
95
- export declare class ResourceNotFoundException extends __BaseException {
96
- readonly name: "ResourceNotFoundException";
97
- readonly $fault: "client";
98
- /**
99
- * @internal
100
- */
101
- constructor(opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>);
102
- }
103
77
  /**
104
78
  * @public
105
79
  */
@@ -4,5 +4,6 @@ export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters";
4
4
  export { RuntimeExtension } from "./runtimeExtensions";
5
5
  export { PersonalizeRuntimeExtensionConfiguration } from "./extensionConfiguration";
6
6
  export * from "./commands";
7
- export * from "./models";
7
+ export * from "./models/errors";
8
+ export * from "./models/models_0";
8
9
  export { PersonalizeRuntimeServiceException } from "./models/PersonalizeRuntimeServiceException";
@@ -0,0 +1,16 @@
1
+ import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
+ import { PersonalizeRuntimeServiceException as __BaseException } from "./PersonalizeRuntimeServiceException";
3
+ export declare class InvalidInputException extends __BaseException {
4
+ readonly name: "InvalidInputException";
5
+ readonly $fault: "client";
6
+ constructor(
7
+ opts: __ExceptionOptionType<InvalidInputException, __BaseException>
8
+ );
9
+ }
10
+ export declare class ResourceNotFoundException extends __BaseException {
11
+ readonly name: "ResourceNotFoundException";
12
+ readonly $fault: "client";
13
+ constructor(
14
+ opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
15
+ );
16
+ }
@@ -1,5 +1,3 @@
1
- import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client";
2
- import { PersonalizeRuntimeServiceException as __BaseException } from "./PersonalizeRuntimeServiceException";
3
1
  export interface PredictedAction {
4
2
  actionId?: string | undefined;
5
3
  score?: number | undefined;
@@ -15,20 +13,6 @@ export interface GetActionRecommendationsResponse {
15
13
  actionList?: PredictedAction[] | undefined;
16
14
  recommendationId?: string | undefined;
17
15
  }
18
- export declare class InvalidInputException extends __BaseException {
19
- readonly name: "InvalidInputException";
20
- readonly $fault: "client";
21
- constructor(
22
- opts: __ExceptionOptionType<InvalidInputException, __BaseException>
23
- );
24
- }
25
- export declare class ResourceNotFoundException extends __BaseException {
26
- readonly name: "ResourceNotFoundException";
27
- readonly $fault: "client";
28
- constructor(
29
- opts: __ExceptionOptionType<ResourceNotFoundException, __BaseException>
30
- );
31
- }
32
16
  export interface GetPersonalizedRankingRequest {
33
17
  campaignArn: string | undefined;
34
18
  inputList: string[] | undefined;
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.934.0",
4
+ "version": "3.935.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",
@@ -20,38 +20,38 @@
20
20
  "dependencies": {
21
21
  "@aws-crypto/sha256-browser": "5.2.0",
22
22
  "@aws-crypto/sha256-js": "5.2.0",
23
- "@aws-sdk/core": "3.934.0",
24
- "@aws-sdk/credential-provider-node": "3.934.0",
23
+ "@aws-sdk/core": "3.935.0",
24
+ "@aws-sdk/credential-provider-node": "3.935.0",
25
25
  "@aws-sdk/middleware-host-header": "3.930.0",
26
26
  "@aws-sdk/middleware-logger": "3.930.0",
27
27
  "@aws-sdk/middleware-recursion-detection": "3.933.0",
28
- "@aws-sdk/middleware-user-agent": "3.934.0",
28
+ "@aws-sdk/middleware-user-agent": "3.935.0",
29
29
  "@aws-sdk/region-config-resolver": "3.930.0",
30
30
  "@aws-sdk/types": "3.930.0",
31
31
  "@aws-sdk/util-endpoints": "3.930.0",
32
32
  "@aws-sdk/util-user-agent-browser": "3.930.0",
33
- "@aws-sdk/util-user-agent-node": "3.934.0",
33
+ "@aws-sdk/util-user-agent-node": "3.935.0",
34
34
  "@smithy/config-resolver": "^4.4.3",
35
- "@smithy/core": "^3.18.2",
35
+ "@smithy/core": "^3.18.5",
36
36
  "@smithy/fetch-http-handler": "^5.3.6",
37
37
  "@smithy/hash-node": "^4.2.5",
38
38
  "@smithy/invalid-dependency": "^4.2.5",
39
39
  "@smithy/middleware-content-length": "^4.2.5",
40
- "@smithy/middleware-endpoint": "^4.3.9",
41
- "@smithy/middleware-retry": "^4.4.9",
42
- "@smithy/middleware-serde": "^4.2.5",
40
+ "@smithy/middleware-endpoint": "^4.3.12",
41
+ "@smithy/middleware-retry": "^4.4.12",
42
+ "@smithy/middleware-serde": "^4.2.6",
43
43
  "@smithy/middleware-stack": "^4.2.5",
44
44
  "@smithy/node-config-provider": "^4.3.5",
45
45
  "@smithy/node-http-handler": "^4.4.5",
46
46
  "@smithy/protocol-http": "^5.3.5",
47
- "@smithy/smithy-client": "^4.9.5",
47
+ "@smithy/smithy-client": "^4.9.8",
48
48
  "@smithy/types": "^4.9.0",
49
49
  "@smithy/url-parser": "^4.2.5",
50
50
  "@smithy/util-base64": "^4.3.0",
51
51
  "@smithy/util-body-length-browser": "^4.2.0",
52
52
  "@smithy/util-body-length-node": "^4.2.1",
53
- "@smithy/util-defaults-mode-browser": "^4.3.8",
54
- "@smithy/util-defaults-mode-node": "^4.2.11",
53
+ "@smithy/util-defaults-mode-browser": "^4.3.11",
54
+ "@smithy/util-defaults-mode-node": "^4.2.14",
55
55
  "@smithy/util-endpoints": "^3.2.5",
56
56
  "@smithy/util-middleware": "^4.2.5",
57
57
  "@smithy/util-retry": "^4.2.5",
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";
@@ -1 +0,0 @@
1
- export * from "./models_0";