@aws-sdk/client-kendra-ranking 3.300.0 → 3.303.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.
@@ -100,14 +100,13 @@ class ResourceNotFoundException extends KendraRankingServiceException_1.KendraRa
100
100
  }
101
101
  }
102
102
  exports.ResourceNotFoundException = ResourceNotFoundException;
103
- var RescoreExecutionPlanStatus;
104
- (function (RescoreExecutionPlanStatus) {
105
- RescoreExecutionPlanStatus["ACTIVE"] = "ACTIVE";
106
- RescoreExecutionPlanStatus["CREATING"] = "CREATING";
107
- RescoreExecutionPlanStatus["DELETING"] = "DELETING";
108
- RescoreExecutionPlanStatus["FAILED"] = "FAILED";
109
- RescoreExecutionPlanStatus["UPDATING"] = "UPDATING";
110
- })(RescoreExecutionPlanStatus = exports.RescoreExecutionPlanStatus || (exports.RescoreExecutionPlanStatus = {}));
103
+ exports.RescoreExecutionPlanStatus = {
104
+ ACTIVE: "ACTIVE",
105
+ CREATING: "CREATING",
106
+ DELETING: "DELETING",
107
+ FAILED: "FAILED",
108
+ UPDATING: "UPDATING",
109
+ };
111
110
  class ResourceUnavailableException extends KendraRankingServiceException_1.KendraRankingServiceException {
112
111
  constructor(opts) {
113
112
  super({
@@ -90,14 +90,13 @@ export class ResourceNotFoundException extends __BaseException {
90
90
  this.Message = opts.Message;
91
91
  }
92
92
  }
93
- export var RescoreExecutionPlanStatus;
94
- (function (RescoreExecutionPlanStatus) {
95
- RescoreExecutionPlanStatus["ACTIVE"] = "ACTIVE";
96
- RescoreExecutionPlanStatus["CREATING"] = "CREATING";
97
- RescoreExecutionPlanStatus["DELETING"] = "DELETING";
98
- RescoreExecutionPlanStatus["FAILED"] = "FAILED";
99
- RescoreExecutionPlanStatus["UPDATING"] = "UPDATING";
100
- })(RescoreExecutionPlanStatus || (RescoreExecutionPlanStatus = {}));
93
+ export const RescoreExecutionPlanStatus = {
94
+ ACTIVE: "ACTIVE",
95
+ CREATING: "CREATING",
96
+ DELETING: "DELETING",
97
+ FAILED: "FAILED",
98
+ UPDATING: "UPDATING",
99
+ };
101
100
  export class ResourceUnavailableException extends __BaseException {
102
101
  constructor(opts) {
103
102
  super({
@@ -35,14 +35,14 @@ export interface CreateRescoreExecutionPlanCommandOutput extends CreateRescoreEx
35
35
  * import { KendraRankingClient, CreateRescoreExecutionPlanCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
36
36
  * // const { KendraRankingClient, CreateRescoreExecutionPlanCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
37
37
  * const client = new KendraRankingClient(config);
38
- * const input = {
38
+ * const input = { // CreateRescoreExecutionPlanRequest
39
39
  * Name: "STRING_VALUE", // required
40
40
  * Description: "STRING_VALUE",
41
- * CapacityUnits: {
41
+ * CapacityUnits: { // CapacityUnitsConfiguration
42
42
  * RescoreCapacityUnits: Number("int"), // required
43
43
  * },
44
- * Tags: [
45
- * {
44
+ * Tags: [ // TagList
45
+ * { // Tag
46
46
  * Key: "STRING_VALUE", // required
47
47
  * Value: "STRING_VALUE", // required
48
48
  * },
@@ -28,7 +28,7 @@ export interface DeleteRescoreExecutionPlanCommandOutput extends __MetadataBeare
28
28
  * import { KendraRankingClient, DeleteRescoreExecutionPlanCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
29
29
  * // const { KendraRankingClient, DeleteRescoreExecutionPlanCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
30
30
  * const client = new KendraRankingClient(config);
31
- * const input = {
31
+ * const input = { // DeleteRescoreExecutionPlanRequest
32
32
  * Id: "STRING_VALUE", // required
33
33
  * };
34
34
  * const command = new DeleteRescoreExecutionPlanCommand(input);
@@ -28,7 +28,7 @@ export interface DescribeRescoreExecutionPlanCommandOutput extends DescribeResco
28
28
  * import { KendraRankingClient, DescribeRescoreExecutionPlanCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
29
29
  * // const { KendraRankingClient, DescribeRescoreExecutionPlanCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
30
30
  * const client = new KendraRankingClient(config);
31
- * const input = {
31
+ * const input = { // DescribeRescoreExecutionPlanRequest
32
32
  * Id: "STRING_VALUE", // required
33
33
  * };
34
34
  * const command = new DescribeRescoreExecutionPlanCommand(input);
@@ -28,7 +28,7 @@ export interface ListRescoreExecutionPlansCommandOutput extends ListRescoreExecu
28
28
  * import { KendraRankingClient, ListRescoreExecutionPlansCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
29
29
  * // const { KendraRankingClient, ListRescoreExecutionPlansCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
30
30
  * const client = new KendraRankingClient(config);
31
- * const input = {
31
+ * const input = { // ListRescoreExecutionPlansRequest
32
32
  * NextToken: "STRING_VALUE",
33
33
  * MaxResults: Number("int"),
34
34
  * };
@@ -28,7 +28,7 @@ export interface ListTagsForResourceCommandOutput extends ListTagsForResourceRes
28
28
  * import { KendraRankingClient, ListTagsForResourceCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
29
29
  * // const { KendraRankingClient, ListTagsForResourceCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
30
30
  * const client = new KendraRankingClient(config);
31
- * const input = {
31
+ * const input = { // ListTagsForResourceRequest
32
32
  * ResourceARN: "STRING_VALUE", // required
33
33
  * };
34
34
  * const command = new ListTagsForResourceCommand(input);
@@ -29,19 +29,19 @@ export interface RescoreCommandOutput extends RescoreResult, __MetadataBearer {
29
29
  * import { KendraRankingClient, RescoreCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
30
30
  * // const { KendraRankingClient, RescoreCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
31
31
  * const client = new KendraRankingClient(config);
32
- * const input = {
32
+ * const input = { // RescoreRequest
33
33
  * RescoreExecutionPlanId: "STRING_VALUE", // required
34
34
  * SearchQuery: "STRING_VALUE", // required
35
- * Documents: [ // required
36
- * {
35
+ * Documents: [ // DocumentList // required
36
+ * { // Document
37
37
  * Id: "STRING_VALUE", // required
38
38
  * GroupId: "STRING_VALUE",
39
39
  * Title: "STRING_VALUE",
40
40
  * Body: "STRING_VALUE",
41
- * TokenizedTitle: [
41
+ * TokenizedTitle: [ // TitleTokensList
42
42
  * "STRING_VALUE",
43
43
  * ],
44
- * TokenizedBody: [
44
+ * TokenizedBody: [ // BodyTokensList
45
45
  * "STRING_VALUE",
46
46
  * ],
47
47
  * OriginalScore: Number("float"), // required
@@ -30,10 +30,10 @@ export interface TagResourceCommandOutput extends TagResourceResponse, __Metadat
30
30
  * import { KendraRankingClient, TagResourceCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
31
31
  * // const { KendraRankingClient, TagResourceCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
32
32
  * const client = new KendraRankingClient(config);
33
- * const input = {
33
+ * const input = { // TagResourceRequest
34
34
  * ResourceARN: "STRING_VALUE", // required
35
- * Tags: [ // required
36
- * {
35
+ * Tags: [ // TagList // required
36
+ * { // Tag
37
37
  * Key: "STRING_VALUE", // required
38
38
  * Value: "STRING_VALUE", // required
39
39
  * },
@@ -29,9 +29,9 @@ export interface UntagResourceCommandOutput extends UntagResourceResponse, __Met
29
29
  * import { KendraRankingClient, UntagResourceCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
30
30
  * // const { KendraRankingClient, UntagResourceCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
31
31
  * const client = new KendraRankingClient(config);
32
- * const input = {
32
+ * const input = { // UntagResourceRequest
33
33
  * ResourceARN: "STRING_VALUE", // required
34
- * TagKeys: [ // required
34
+ * TagKeys: [ // TagKeyList // required
35
35
  * "STRING_VALUE",
36
36
  * ],
37
37
  * };
@@ -31,11 +31,11 @@ export interface UpdateRescoreExecutionPlanCommandOutput extends __MetadataBeare
31
31
  * import { KendraRankingClient, UpdateRescoreExecutionPlanCommand } from "@aws-sdk/client-kendra-ranking"; // ES Modules import
32
32
  * // const { KendraRankingClient, UpdateRescoreExecutionPlanCommand } = require("@aws-sdk/client-kendra-ranking"); // CommonJS import
33
33
  * const client = new KendraRankingClient(config);
34
- * const input = {
34
+ * const input = { // UpdateRescoreExecutionPlanRequest
35
35
  * Id: "STRING_VALUE", // required
36
36
  * Name: "STRING_VALUE",
37
37
  * Description: "STRING_VALUE",
38
- * CapacityUnits: {
38
+ * CapacityUnits: { // CapacityUnitsConfiguration
39
39
  * RescoreCapacityUnits: Number("int"), // required
40
40
  * },
41
41
  * };
@@ -221,14 +221,19 @@ export interface DescribeRescoreExecutionPlanRequest {
221
221
  }
222
222
  /**
223
223
  * @public
224
+ * @enum
224
225
  */
225
- export declare enum RescoreExecutionPlanStatus {
226
- ACTIVE = "ACTIVE",
227
- CREATING = "CREATING",
228
- DELETING = "DELETING",
229
- FAILED = "FAILED",
230
- UPDATING = "UPDATING"
231
- }
226
+ export declare const RescoreExecutionPlanStatus: {
227
+ readonly ACTIVE: "ACTIVE";
228
+ readonly CREATING: "CREATING";
229
+ readonly DELETING: "DELETING";
230
+ readonly FAILED: "FAILED";
231
+ readonly UPDATING: "UPDATING";
232
+ };
233
+ /**
234
+ * @public
235
+ */
236
+ export type RescoreExecutionPlanStatus = (typeof RescoreExecutionPlanStatus)[keyof typeof RescoreExecutionPlanStatus];
232
237
  /**
233
238
  * @public
234
239
  */
@@ -78,13 +78,15 @@ export declare class ResourceNotFoundException extends __BaseException {
78
78
  export interface DescribeRescoreExecutionPlanRequest {
79
79
  Id: string | undefined;
80
80
  }
81
- export declare enum RescoreExecutionPlanStatus {
82
- ACTIVE = "ACTIVE",
83
- CREATING = "CREATING",
84
- DELETING = "DELETING",
85
- FAILED = "FAILED",
86
- UPDATING = "UPDATING",
87
- }
81
+ export declare const RescoreExecutionPlanStatus: {
82
+ readonly ACTIVE: "ACTIVE";
83
+ readonly CREATING: "CREATING";
84
+ readonly DELETING: "DELETING";
85
+ readonly FAILED: "FAILED";
86
+ readonly UPDATING: "UPDATING";
87
+ };
88
+ export type RescoreExecutionPlanStatus =
89
+ (typeof RescoreExecutionPlanStatus)[keyof typeof RescoreExecutionPlanStatus];
88
90
  export interface DescribeRescoreExecutionPlanResponse {
89
91
  Id?: string;
90
92
  Arn?: string;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@aws-sdk/client-kendra-ranking",
3
3
  "description": "AWS SDK for JavaScript Kendra Ranking Client for Node.js, Browser and React Native",
4
- "version": "3.300.0",
4
+ "version": "3.303.0",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",
@@ -21,43 +21,43 @@
21
21
  "dependencies": {
22
22
  "@aws-crypto/sha256-browser": "3.0.0",
23
23
  "@aws-crypto/sha256-js": "3.0.0",
24
- "@aws-sdk/client-sts": "3.300.0",
25
- "@aws-sdk/config-resolver": "3.300.0",
26
- "@aws-sdk/credential-provider-node": "3.300.0",
27
- "@aws-sdk/fetch-http-handler": "3.296.0",
28
- "@aws-sdk/hash-node": "3.296.0",
29
- "@aws-sdk/invalid-dependency": "3.296.0",
30
- "@aws-sdk/middleware-content-length": "3.296.0",
31
- "@aws-sdk/middleware-endpoint": "3.299.0",
32
- "@aws-sdk/middleware-host-header": "3.296.0",
33
- "@aws-sdk/middleware-logger": "3.296.0",
34
- "@aws-sdk/middleware-recursion-detection": "3.296.0",
35
- "@aws-sdk/middleware-retry": "3.300.0",
36
- "@aws-sdk/middleware-serde": "3.296.0",
37
- "@aws-sdk/middleware-signing": "3.299.0",
38
- "@aws-sdk/middleware-stack": "3.296.0",
39
- "@aws-sdk/middleware-user-agent": "3.299.0",
40
- "@aws-sdk/node-config-provider": "3.300.0",
41
- "@aws-sdk/node-http-handler": "3.296.0",
42
- "@aws-sdk/protocol-http": "3.296.0",
43
- "@aws-sdk/smithy-client": "3.296.0",
44
- "@aws-sdk/types": "3.296.0",
45
- "@aws-sdk/url-parser": "3.296.0",
46
- "@aws-sdk/util-base64": "3.295.0",
47
- "@aws-sdk/util-body-length-browser": "3.295.0",
48
- "@aws-sdk/util-body-length-node": "3.295.0",
49
- "@aws-sdk/util-defaults-mode-browser": "3.296.0",
50
- "@aws-sdk/util-defaults-mode-node": "3.300.0",
51
- "@aws-sdk/util-endpoints": "3.296.0",
52
- "@aws-sdk/util-retry": "3.296.0",
53
- "@aws-sdk/util-user-agent-browser": "3.299.0",
54
- "@aws-sdk/util-user-agent-node": "3.300.0",
55
- "@aws-sdk/util-utf8": "3.295.0",
24
+ "@aws-sdk/client-sts": "3.303.0",
25
+ "@aws-sdk/config-resolver": "3.303.0",
26
+ "@aws-sdk/credential-provider-node": "3.303.0",
27
+ "@aws-sdk/fetch-http-handler": "3.303.0",
28
+ "@aws-sdk/hash-node": "3.303.0",
29
+ "@aws-sdk/invalid-dependency": "3.303.0",
30
+ "@aws-sdk/middleware-content-length": "3.303.0",
31
+ "@aws-sdk/middleware-endpoint": "3.303.0",
32
+ "@aws-sdk/middleware-host-header": "3.303.0",
33
+ "@aws-sdk/middleware-logger": "3.303.0",
34
+ "@aws-sdk/middleware-recursion-detection": "3.303.0",
35
+ "@aws-sdk/middleware-retry": "3.303.0",
36
+ "@aws-sdk/middleware-serde": "3.303.0",
37
+ "@aws-sdk/middleware-signing": "3.303.0",
38
+ "@aws-sdk/middleware-stack": "3.303.0",
39
+ "@aws-sdk/middleware-user-agent": "3.303.0",
40
+ "@aws-sdk/node-config-provider": "3.303.0",
41
+ "@aws-sdk/node-http-handler": "3.303.0",
42
+ "@aws-sdk/protocol-http": "3.303.0",
43
+ "@aws-sdk/smithy-client": "3.303.0",
44
+ "@aws-sdk/types": "3.303.0",
45
+ "@aws-sdk/url-parser": "3.303.0",
46
+ "@aws-sdk/util-base64": "3.303.0",
47
+ "@aws-sdk/util-body-length-browser": "3.303.0",
48
+ "@aws-sdk/util-body-length-node": "3.303.0",
49
+ "@aws-sdk/util-defaults-mode-browser": "3.303.0",
50
+ "@aws-sdk/util-defaults-mode-node": "3.303.0",
51
+ "@aws-sdk/util-endpoints": "3.303.0",
52
+ "@aws-sdk/util-retry": "3.303.0",
53
+ "@aws-sdk/util-user-agent-browser": "3.303.0",
54
+ "@aws-sdk/util-user-agent-node": "3.303.0",
55
+ "@aws-sdk/util-utf8": "3.303.0",
56
56
  "tslib": "^2.5.0",
57
57
  "uuid": "^8.3.2"
58
58
  },
59
59
  "devDependencies": {
60
- "@aws-sdk/service-client-documentation-generator": "3.295.0",
60
+ "@aws-sdk/service-client-documentation-generator": "3.303.0",
61
61
  "@tsconfig/node14": "1.0.3",
62
62
  "@types/node": "^14.14.31",
63
63
  "@types/uuid": "^8.3.0",