@aws-sdk/client-mturk 3.408.0 → 3.410.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-cjs/endpoint/ruleset.js +3 -3
- package/dist-cjs/runtimeExtensions.js +3 -0
- package/dist-es/endpoint/ruleset.js +3 -3
- package/dist-es/runtimeExtensions.js +3 -0
- package/dist-types/commands/CreateHITCommand.d.ts +6 -6
- package/dist-types/commands/CreateHITTypeCommand.d.ts +2 -2
- package/dist-types/commands/CreateHITWithHITTypeCommand.d.ts +4 -4
- package/dist-types/commands/CreateQualificationTypeCommand.d.ts +2 -2
- package/dist-types/commands/GetAssignmentCommand.d.ts +5 -5
- package/dist-types/commands/GetHITCommand.d.ts +4 -4
- package/dist-types/commands/GetQualificationScoreCommand.d.ts +1 -1
- package/dist-types/commands/GetQualificationTypeCommand.d.ts +1 -1
- package/dist-types/commands/ListAssignmentsForHITCommand.d.ts +2 -2
- package/dist-types/commands/ListHITsCommand.d.ts +4 -4
- package/dist-types/commands/ListHITsForQualificationTypeCommand.d.ts +4 -4
- package/dist-types/commands/ListQualificationTypesCommand.d.ts +1 -1
- package/dist-types/commands/ListReviewPolicyResultsForHITCommand.d.ts +3 -3
- package/dist-types/commands/ListReviewableHITsCommand.d.ts +5 -5
- package/dist-types/commands/ListWorkersWithQualificationTypeCommand.d.ts +2 -2
- package/dist-types/commands/NotifyWorkersCommand.d.ts +1 -1
- package/dist-types/commands/SendTestEventNotificationCommand.d.ts +3 -3
- package/dist-types/commands/UpdateNotificationSettingsCommand.d.ts +2 -2
- package/dist-types/commands/UpdateQualificationTypeCommand.d.ts +2 -2
- package/dist-types/extensionConfiguration.d.ts +2 -1
- package/dist-types/runtimeConfig.browser.d.ts +4 -1
- package/dist-types/runtimeConfig.d.ts +4 -1
- package/dist-types/runtimeConfig.native.d.ts +4 -1
- package/dist-types/runtimeExtensions.d.ts +1 -1
- package/dist-types/ts3.4/extensionConfiguration.d.ts +3 -1
- package/dist-types/ts3.4/runtimeConfig.browser.d.ts +8 -1
- package/dist-types/ts3.4/runtimeConfig.d.ts +8 -1
- package/dist-types/ts3.4/runtimeConfig.native.d.ts +8 -1
- package/dist-types/ts3.4/runtimeExtensions.d.ts +1 -1
- package/package.json +28 -28
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.ruleSet = void 0;
|
|
4
|
-
const
|
|
5
|
-
const a = "
|
|
6
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
4
|
+
const r = "required", s = "fn", t = "argv", u = "ref";
|
|
5
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [r]: false, "type": "String" }, g = { [r]: true, "default": false, "type": "Boolean" }, h = { [u]: "Endpoint" }, i = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, j = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, k = {}, l = { [u]: "Region" }, m = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsFIPS"] }] }, n = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsDualStack"] }] }, o = [i], p = [j], q = [l];
|
|
6
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [s]: a, [t]: [h] }], type: b, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [s]: a, [t]: q }], type: b, rules: [{ conditions: [{ [s]: "aws.partition", [t]: q, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [m, n], type: b, rules: [{ endpoint: { url: "https://mturk-requester-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://mturk-requester-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [n], type: b, rules: [{ endpoint: { url: "https://mturk-requester.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { conditions: [{ [s]: "stringEquals", [t]: [l, "sandbox"] }], endpoint: { url: "https://mturk-requester-sandbox.us-east-1.amazonaws.com", properties: k, headers: k }, type: d }, { endpoint: { url: "https://mturk-requester.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
7
7
|
exports.ruleSet = _data;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.resolveRuntimeExtensions = void 0;
|
|
4
|
+
const protocol_http_1 = require("@smithy/protocol-http");
|
|
4
5
|
const smithy_client_1 = require("@smithy/smithy-client");
|
|
5
6
|
const asPartial = (t) => t;
|
|
6
7
|
const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
7
8
|
const extensionConfiguration = {
|
|
8
9
|
...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)),
|
|
10
|
+
...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)),
|
|
9
11
|
};
|
|
10
12
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
11
13
|
return {
|
|
12
14
|
...runtimeConfig,
|
|
13
15
|
...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration),
|
|
16
|
+
...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration),
|
|
14
17
|
};
|
|
15
18
|
};
|
|
16
19
|
exports.resolveRuntimeExtensions = resolveRuntimeExtensions;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
const
|
|
2
|
-
const a = "
|
|
3
|
-
const _data = { version: "1.0", parameters: { Region:
|
|
1
|
+
const r = "required", s = "fn", t = "argv", u = "ref";
|
|
2
|
+
const a = "isSet", b = "tree", c = "error", d = "endpoint", e = "PartitionResult", f = { [r]: false, "type": "String" }, g = { [r]: true, "default": false, "type": "Boolean" }, h = { [u]: "Endpoint" }, i = { [s]: "booleanEquals", [t]: [{ [u]: "UseFIPS" }, true] }, j = { [s]: "booleanEquals", [t]: [{ [u]: "UseDualStack" }, true] }, k = {}, l = { [u]: "Region" }, m = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsFIPS"] }] }, n = { [s]: "booleanEquals", [t]: [true, { [s]: "getAttr", [t]: [{ [u]: e }, "supportsDualStack"] }] }, o = [i], p = [j], q = [l];
|
|
3
|
+
const _data = { version: "1.0", parameters: { Region: f, UseDualStack: g, UseFIPS: g, Endpoint: f }, rules: [{ conditions: [{ [s]: a, [t]: [h] }], type: b, rules: [{ conditions: o, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, { conditions: p, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, { endpoint: { url: h, properties: k, headers: k }, type: d }] }, { conditions: [{ [s]: a, [t]: q }], type: b, rules: [{ conditions: [{ [s]: "aws.partition", [t]: q, assign: e }], type: b, rules: [{ conditions: [i, j], type: b, rules: [{ conditions: [m, n], type: b, rules: [{ endpoint: { url: "https://mturk-requester-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }] }, { conditions: o, type: b, rules: [{ conditions: [m], type: b, rules: [{ endpoint: { url: "https://mturk-requester-fips.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "FIPS is enabled but this partition does not support FIPS", type: c }] }, { conditions: p, type: b, rules: [{ conditions: [n], type: b, rules: [{ endpoint: { url: "https://mturk-requester.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: k, headers: k }, type: d }] }, { error: "DualStack is enabled but this partition does not support DualStack", type: c }] }, { conditions: [{ [s]: "stringEquals", [t]: [l, "sandbox"] }], endpoint: { url: "https://mturk-requester-sandbox.us-east-1.amazonaws.com", properties: k, headers: k }, type: d }, { endpoint: { url: "https://mturk-requester.{Region}.{PartitionResult#dnsSuffix}", properties: k, headers: k }, type: d }] }] }, { error: "Invalid Configuration: Missing Region", type: c }] };
|
|
4
4
|
export const ruleSet = _data;
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
+
import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http";
|
|
1
2
|
import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client";
|
|
2
3
|
const asPartial = (t) => t;
|
|
3
4
|
export const resolveRuntimeExtensions = (runtimeConfig, extensions) => {
|
|
4
5
|
const extensionConfiguration = {
|
|
5
6
|
...asPartial(getDefaultExtensionConfiguration(runtimeConfig)),
|
|
7
|
+
...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)),
|
|
6
8
|
};
|
|
7
9
|
extensions.forEach((extension) => extension.configure(extensionConfiguration));
|
|
8
10
|
return {
|
|
9
11
|
...runtimeConfig,
|
|
10
12
|
...resolveDefaultRuntimeConfig(extensionConfiguration),
|
|
13
|
+
...resolveHttpHandlerRuntimeConfig(extensionConfiguration),
|
|
11
14
|
};
|
|
12
15
|
};
|
|
@@ -60,7 +60,7 @@ export interface CreateHITCommandOutput extends CreateHITResponse, __MetadataBea
|
|
|
60
60
|
* QualificationRequirements: [ // QualificationRequirementList
|
|
61
61
|
* { // QualificationRequirement
|
|
62
62
|
* QualificationTypeId: "STRING_VALUE", // required
|
|
63
|
-
* Comparator: "
|
|
63
|
+
* Comparator: "LessThan" || "LessThanOrEqualTo" || "GreaterThan" || "GreaterThanOrEqualTo" || "EqualTo" || "NotEqualTo" || "Exists" || "DoesNotExist" || "In" || "NotIn", // required
|
|
64
64
|
* IntegerValues: [ // IntegerList
|
|
65
65
|
* Number("int"),
|
|
66
66
|
* ],
|
|
@@ -71,7 +71,7 @@ export interface CreateHITCommandOutput extends CreateHITResponse, __MetadataBea
|
|
|
71
71
|
* },
|
|
72
72
|
* ],
|
|
73
73
|
* RequiredToPreview: true || false,
|
|
74
|
-
* ActionsGuarded: "
|
|
74
|
+
* ActionsGuarded: "Accept" || "PreviewAndAccept" || "DiscoverPreviewAndAccept",
|
|
75
75
|
* },
|
|
76
76
|
* ],
|
|
77
77
|
* UniqueRequestToken: "STRING_VALUE",
|
|
@@ -134,7 +134,7 @@ export interface CreateHITCommandOutput extends CreateHITResponse, __MetadataBea
|
|
|
134
134
|
* // Description: "STRING_VALUE",
|
|
135
135
|
* // Question: "STRING_VALUE",
|
|
136
136
|
* // Keywords: "STRING_VALUE",
|
|
137
|
-
* // HITStatus: "
|
|
137
|
+
* // HITStatus: "Assignable" || "Unassignable" || "Reviewable" || "Reviewing" || "Disposed",
|
|
138
138
|
* // MaxAssignments: Number("int"),
|
|
139
139
|
* // Reward: "STRING_VALUE",
|
|
140
140
|
* // AutoApprovalDelayInSeconds: Number("long"),
|
|
@@ -144,7 +144,7 @@ export interface CreateHITCommandOutput extends CreateHITResponse, __MetadataBea
|
|
|
144
144
|
* // QualificationRequirements: [ // QualificationRequirementList
|
|
145
145
|
* // { // QualificationRequirement
|
|
146
146
|
* // QualificationTypeId: "STRING_VALUE", // required
|
|
147
|
-
* // Comparator: "
|
|
147
|
+
* // Comparator: "LessThan" || "LessThanOrEqualTo" || "GreaterThan" || "GreaterThanOrEqualTo" || "EqualTo" || "NotEqualTo" || "Exists" || "DoesNotExist" || "In" || "NotIn", // required
|
|
148
148
|
* // IntegerValues: [ // IntegerList
|
|
149
149
|
* // Number("int"),
|
|
150
150
|
* // ],
|
|
@@ -155,10 +155,10 @@ export interface CreateHITCommandOutput extends CreateHITResponse, __MetadataBea
|
|
|
155
155
|
* // },
|
|
156
156
|
* // ],
|
|
157
157
|
* // RequiredToPreview: true || false,
|
|
158
|
-
* // ActionsGuarded: "
|
|
158
|
+
* // ActionsGuarded: "Accept" || "PreviewAndAccept" || "DiscoverPreviewAndAccept",
|
|
159
159
|
* // },
|
|
160
160
|
* // ],
|
|
161
|
-
* // HITReviewStatus: "
|
|
161
|
+
* // HITReviewStatus: "NotReviewed" || "MarkedForReview" || "ReviewedAppropriate" || "ReviewedInappropriate",
|
|
162
162
|
* // NumberOfAssignmentsPending: Number("int"),
|
|
163
163
|
* // NumberOfAssignmentsAvailable: Number("int"),
|
|
164
164
|
* // NumberOfAssignmentsCompleted: Number("int"),
|
|
@@ -45,7 +45,7 @@ export interface CreateHITTypeCommandOutput extends CreateHITTypeResponse, __Met
|
|
|
45
45
|
* QualificationRequirements: [ // QualificationRequirementList
|
|
46
46
|
* { // QualificationRequirement
|
|
47
47
|
* QualificationTypeId: "STRING_VALUE", // required
|
|
48
|
-
* Comparator: "
|
|
48
|
+
* Comparator: "LessThan" || "LessThanOrEqualTo" || "GreaterThan" || "GreaterThanOrEqualTo" || "EqualTo" || "NotEqualTo" || "Exists" || "DoesNotExist" || "In" || "NotIn", // required
|
|
49
49
|
* IntegerValues: [ // IntegerList
|
|
50
50
|
* Number("int"),
|
|
51
51
|
* ],
|
|
@@ -56,7 +56,7 @@ export interface CreateHITTypeCommandOutput extends CreateHITTypeResponse, __Met
|
|
|
56
56
|
* },
|
|
57
57
|
* ],
|
|
58
58
|
* RequiredToPreview: true || false,
|
|
59
|
-
* ActionsGuarded: "
|
|
59
|
+
* ActionsGuarded: "Accept" || "PreviewAndAccept" || "DiscoverPreviewAndAccept",
|
|
60
60
|
* },
|
|
61
61
|
* ],
|
|
62
62
|
* };
|
|
@@ -113,7 +113,7 @@ export interface CreateHITWithHITTypeCommandOutput extends CreateHITWithHITTypeR
|
|
|
113
113
|
* // Description: "STRING_VALUE",
|
|
114
114
|
* // Question: "STRING_VALUE",
|
|
115
115
|
* // Keywords: "STRING_VALUE",
|
|
116
|
-
* // HITStatus: "
|
|
116
|
+
* // HITStatus: "Assignable" || "Unassignable" || "Reviewable" || "Reviewing" || "Disposed",
|
|
117
117
|
* // MaxAssignments: Number("int"),
|
|
118
118
|
* // Reward: "STRING_VALUE",
|
|
119
119
|
* // AutoApprovalDelayInSeconds: Number("long"),
|
|
@@ -123,7 +123,7 @@ export interface CreateHITWithHITTypeCommandOutput extends CreateHITWithHITTypeR
|
|
|
123
123
|
* // QualificationRequirements: [ // QualificationRequirementList
|
|
124
124
|
* // { // QualificationRequirement
|
|
125
125
|
* // QualificationTypeId: "STRING_VALUE", // required
|
|
126
|
-
* // Comparator: "
|
|
126
|
+
* // Comparator: "LessThan" || "LessThanOrEqualTo" || "GreaterThan" || "GreaterThanOrEqualTo" || "EqualTo" || "NotEqualTo" || "Exists" || "DoesNotExist" || "In" || "NotIn", // required
|
|
127
127
|
* // IntegerValues: [ // IntegerList
|
|
128
128
|
* // Number("int"),
|
|
129
129
|
* // ],
|
|
@@ -134,10 +134,10 @@ export interface CreateHITWithHITTypeCommandOutput extends CreateHITWithHITTypeR
|
|
|
134
134
|
* // },
|
|
135
135
|
* // ],
|
|
136
136
|
* // RequiredToPreview: true || false,
|
|
137
|
-
* // ActionsGuarded: "
|
|
137
|
+
* // ActionsGuarded: "Accept" || "PreviewAndAccept" || "DiscoverPreviewAndAccept",
|
|
138
138
|
* // },
|
|
139
139
|
* // ],
|
|
140
|
-
* // HITReviewStatus: "
|
|
140
|
+
* // HITReviewStatus: "NotReviewed" || "MarkedForReview" || "ReviewedAppropriate" || "ReviewedInappropriate",
|
|
141
141
|
* // NumberOfAssignmentsPending: Number("int"),
|
|
142
142
|
* // NumberOfAssignmentsAvailable: Number("int"),
|
|
143
143
|
* // NumberOfAssignmentsCompleted: Number("int"),
|
|
@@ -40,7 +40,7 @@ export interface CreateQualificationTypeCommandOutput extends CreateQualificatio
|
|
|
40
40
|
* Name: "STRING_VALUE", // required
|
|
41
41
|
* Keywords: "STRING_VALUE",
|
|
42
42
|
* Description: "STRING_VALUE", // required
|
|
43
|
-
* QualificationTypeStatus: "
|
|
43
|
+
* QualificationTypeStatus: "Active" || "Inactive", // required
|
|
44
44
|
* RetryDelayInSeconds: Number("long"),
|
|
45
45
|
* Test: "STRING_VALUE",
|
|
46
46
|
* AnswerKey: "STRING_VALUE",
|
|
@@ -57,7 +57,7 @@ export interface CreateQualificationTypeCommandOutput extends CreateQualificatio
|
|
|
57
57
|
* // Name: "STRING_VALUE",
|
|
58
58
|
* // Description: "STRING_VALUE",
|
|
59
59
|
* // Keywords: "STRING_VALUE",
|
|
60
|
-
* // QualificationTypeStatus: "
|
|
60
|
+
* // QualificationTypeStatus: "Active" || "Inactive",
|
|
61
61
|
* // Test: "STRING_VALUE",
|
|
62
62
|
* // TestDurationInSeconds: Number("long"),
|
|
63
63
|
* // AnswerKey: "STRING_VALUE",
|
|
@@ -42,7 +42,7 @@ export interface GetAssignmentCommandOutput extends GetAssignmentResponse, __Met
|
|
|
42
42
|
* // AssignmentId: "STRING_VALUE",
|
|
43
43
|
* // WorkerId: "STRING_VALUE",
|
|
44
44
|
* // HITId: "STRING_VALUE",
|
|
45
|
-
* // AssignmentStatus: "
|
|
45
|
+
* // AssignmentStatus: "Submitted" || "Approved" || "Rejected",
|
|
46
46
|
* // AutoApprovalTime: new Date("TIMESTAMP"),
|
|
47
47
|
* // AcceptTime: new Date("TIMESTAMP"),
|
|
48
48
|
* // SubmitTime: new Date("TIMESTAMP"),
|
|
@@ -62,7 +62,7 @@ export interface GetAssignmentCommandOutput extends GetAssignmentResponse, __Met
|
|
|
62
62
|
* // Description: "STRING_VALUE",
|
|
63
63
|
* // Question: "STRING_VALUE",
|
|
64
64
|
* // Keywords: "STRING_VALUE",
|
|
65
|
-
* // HITStatus: "
|
|
65
|
+
* // HITStatus: "Assignable" || "Unassignable" || "Reviewable" || "Reviewing" || "Disposed",
|
|
66
66
|
* // MaxAssignments: Number("int"),
|
|
67
67
|
* // Reward: "STRING_VALUE",
|
|
68
68
|
* // AutoApprovalDelayInSeconds: Number("long"),
|
|
@@ -72,7 +72,7 @@ export interface GetAssignmentCommandOutput extends GetAssignmentResponse, __Met
|
|
|
72
72
|
* // QualificationRequirements: [ // QualificationRequirementList
|
|
73
73
|
* // { // QualificationRequirement
|
|
74
74
|
* // QualificationTypeId: "STRING_VALUE", // required
|
|
75
|
-
* // Comparator: "
|
|
75
|
+
* // Comparator: "LessThan" || "LessThanOrEqualTo" || "GreaterThan" || "GreaterThanOrEqualTo" || "EqualTo" || "NotEqualTo" || "Exists" || "DoesNotExist" || "In" || "NotIn", // required
|
|
76
76
|
* // IntegerValues: [ // IntegerList
|
|
77
77
|
* // Number("int"),
|
|
78
78
|
* // ],
|
|
@@ -83,10 +83,10 @@ export interface GetAssignmentCommandOutput extends GetAssignmentResponse, __Met
|
|
|
83
83
|
* // },
|
|
84
84
|
* // ],
|
|
85
85
|
* // RequiredToPreview: true || false,
|
|
86
|
-
* // ActionsGuarded: "
|
|
86
|
+
* // ActionsGuarded: "Accept" || "PreviewAndAccept" || "DiscoverPreviewAndAccept",
|
|
87
87
|
* // },
|
|
88
88
|
* // ],
|
|
89
|
-
* // HITReviewStatus: "
|
|
89
|
+
* // HITReviewStatus: "NotReviewed" || "MarkedForReview" || "ReviewedAppropriate" || "ReviewedInappropriate",
|
|
90
90
|
* // NumberOfAssignmentsPending: Number("int"),
|
|
91
91
|
* // NumberOfAssignmentsAvailable: Number("int"),
|
|
92
92
|
* // NumberOfAssignmentsCompleted: Number("int"),
|
|
@@ -48,7 +48,7 @@ export interface GetHITCommandOutput extends GetHITResponse, __MetadataBearer {
|
|
|
48
48
|
* // Description: "STRING_VALUE",
|
|
49
49
|
* // Question: "STRING_VALUE",
|
|
50
50
|
* // Keywords: "STRING_VALUE",
|
|
51
|
-
* // HITStatus: "
|
|
51
|
+
* // HITStatus: "Assignable" || "Unassignable" || "Reviewable" || "Reviewing" || "Disposed",
|
|
52
52
|
* // MaxAssignments: Number("int"),
|
|
53
53
|
* // Reward: "STRING_VALUE",
|
|
54
54
|
* // AutoApprovalDelayInSeconds: Number("long"),
|
|
@@ -58,7 +58,7 @@ export interface GetHITCommandOutput extends GetHITResponse, __MetadataBearer {
|
|
|
58
58
|
* // QualificationRequirements: [ // QualificationRequirementList
|
|
59
59
|
* // { // QualificationRequirement
|
|
60
60
|
* // QualificationTypeId: "STRING_VALUE", // required
|
|
61
|
-
* // Comparator: "
|
|
61
|
+
* // Comparator: "LessThan" || "LessThanOrEqualTo" || "GreaterThan" || "GreaterThanOrEqualTo" || "EqualTo" || "NotEqualTo" || "Exists" || "DoesNotExist" || "In" || "NotIn", // required
|
|
62
62
|
* // IntegerValues: [ // IntegerList
|
|
63
63
|
* // Number("int"),
|
|
64
64
|
* // ],
|
|
@@ -69,10 +69,10 @@ export interface GetHITCommandOutput extends GetHITResponse, __MetadataBearer {
|
|
|
69
69
|
* // },
|
|
70
70
|
* // ],
|
|
71
71
|
* // RequiredToPreview: true || false,
|
|
72
|
-
* // ActionsGuarded: "
|
|
72
|
+
* // ActionsGuarded: "Accept" || "PreviewAndAccept" || "DiscoverPreviewAndAccept",
|
|
73
73
|
* // },
|
|
74
74
|
* // ],
|
|
75
|
-
* // HITReviewStatus: "
|
|
75
|
+
* // HITReviewStatus: "NotReviewed" || "MarkedForReview" || "ReviewedAppropriate" || "ReviewedInappropriate",
|
|
76
76
|
* // NumberOfAssignmentsPending: Number("int"),
|
|
77
77
|
* // NumberOfAssignmentsAvailable: Number("int"),
|
|
78
78
|
* // NumberOfAssignmentsCompleted: Number("int"),
|
|
@@ -59,7 +59,7 @@ export interface GetQualificationScoreCommandOutput extends GetQualificationScor
|
|
|
59
59
|
* // Country: "STRING_VALUE", // required
|
|
60
60
|
* // Subdivision: "STRING_VALUE",
|
|
61
61
|
* // },
|
|
62
|
-
* // Status: "
|
|
62
|
+
* // Status: "Granted" || "Revoked",
|
|
63
63
|
* // },
|
|
64
64
|
* // };
|
|
65
65
|
*
|
|
@@ -44,7 +44,7 @@ export interface GetQualificationTypeCommandOutput extends GetQualificationTypeR
|
|
|
44
44
|
* // Name: "STRING_VALUE",
|
|
45
45
|
* // Description: "STRING_VALUE",
|
|
46
46
|
* // Keywords: "STRING_VALUE",
|
|
47
|
-
* // QualificationTypeStatus: "
|
|
47
|
+
* // QualificationTypeStatus: "Active" || "Inactive",
|
|
48
48
|
* // Test: "STRING_VALUE",
|
|
49
49
|
* // TestDurationInSeconds: Number("long"),
|
|
50
50
|
* // AnswerKey: "STRING_VALUE",
|
|
@@ -61,7 +61,7 @@ export interface ListAssignmentsForHITCommandOutput extends ListAssignmentsForHI
|
|
|
61
61
|
* NextToken: "STRING_VALUE",
|
|
62
62
|
* MaxResults: Number("int"),
|
|
63
63
|
* AssignmentStatuses: [ // AssignmentStatusList
|
|
64
|
-
* "
|
|
64
|
+
* "Submitted" || "Approved" || "Rejected",
|
|
65
65
|
* ],
|
|
66
66
|
* };
|
|
67
67
|
* const command = new ListAssignmentsForHITCommand(input);
|
|
@@ -74,7 +74,7 @@ export interface ListAssignmentsForHITCommandOutput extends ListAssignmentsForHI
|
|
|
74
74
|
* // AssignmentId: "STRING_VALUE",
|
|
75
75
|
* // WorkerId: "STRING_VALUE",
|
|
76
76
|
* // HITId: "STRING_VALUE",
|
|
77
|
-
* // AssignmentStatus: "
|
|
77
|
+
* // AssignmentStatus: "Submitted" || "Approved" || "Rejected",
|
|
78
78
|
* // AutoApprovalTime: new Date("TIMESTAMP"),
|
|
79
79
|
* // AcceptTime: new Date("TIMESTAMP"),
|
|
80
80
|
* // SubmitTime: new Date("TIMESTAMP"),
|
|
@@ -56,7 +56,7 @@ export interface ListHITsCommandOutput extends ListHITsResponse, __MetadataBeare
|
|
|
56
56
|
* // Description: "STRING_VALUE",
|
|
57
57
|
* // Question: "STRING_VALUE",
|
|
58
58
|
* // Keywords: "STRING_VALUE",
|
|
59
|
-
* // HITStatus: "
|
|
59
|
+
* // HITStatus: "Assignable" || "Unassignable" || "Reviewable" || "Reviewing" || "Disposed",
|
|
60
60
|
* // MaxAssignments: Number("int"),
|
|
61
61
|
* // Reward: "STRING_VALUE",
|
|
62
62
|
* // AutoApprovalDelayInSeconds: Number("long"),
|
|
@@ -66,7 +66,7 @@ export interface ListHITsCommandOutput extends ListHITsResponse, __MetadataBeare
|
|
|
66
66
|
* // QualificationRequirements: [ // QualificationRequirementList
|
|
67
67
|
* // { // QualificationRequirement
|
|
68
68
|
* // QualificationTypeId: "STRING_VALUE", // required
|
|
69
|
-
* // Comparator: "
|
|
69
|
+
* // Comparator: "LessThan" || "LessThanOrEqualTo" || "GreaterThan" || "GreaterThanOrEqualTo" || "EqualTo" || "NotEqualTo" || "Exists" || "DoesNotExist" || "In" || "NotIn", // required
|
|
70
70
|
* // IntegerValues: [ // IntegerList
|
|
71
71
|
* // Number("int"),
|
|
72
72
|
* // ],
|
|
@@ -77,10 +77,10 @@ export interface ListHITsCommandOutput extends ListHITsResponse, __MetadataBeare
|
|
|
77
77
|
* // },
|
|
78
78
|
* // ],
|
|
79
79
|
* // RequiredToPreview: true || false,
|
|
80
|
-
* // ActionsGuarded: "
|
|
80
|
+
* // ActionsGuarded: "Accept" || "PreviewAndAccept" || "DiscoverPreviewAndAccept",
|
|
81
81
|
* // },
|
|
82
82
|
* // ],
|
|
83
|
-
* // HITReviewStatus: "
|
|
83
|
+
* // HITReviewStatus: "NotReviewed" || "MarkedForReview" || "ReviewedAppropriate" || "ReviewedInappropriate",
|
|
84
84
|
* // NumberOfAssignmentsPending: Number("int"),
|
|
85
85
|
* // NumberOfAssignmentsAvailable: Number("int"),
|
|
86
86
|
* // NumberOfAssignmentsCompleted: Number("int"),
|
|
@@ -56,7 +56,7 @@ export interface ListHITsForQualificationTypeCommandOutput extends ListHITsForQu
|
|
|
56
56
|
* // Description: "STRING_VALUE",
|
|
57
57
|
* // Question: "STRING_VALUE",
|
|
58
58
|
* // Keywords: "STRING_VALUE",
|
|
59
|
-
* // HITStatus: "
|
|
59
|
+
* // HITStatus: "Assignable" || "Unassignable" || "Reviewable" || "Reviewing" || "Disposed",
|
|
60
60
|
* // MaxAssignments: Number("int"),
|
|
61
61
|
* // Reward: "STRING_VALUE",
|
|
62
62
|
* // AutoApprovalDelayInSeconds: Number("long"),
|
|
@@ -66,7 +66,7 @@ export interface ListHITsForQualificationTypeCommandOutput extends ListHITsForQu
|
|
|
66
66
|
* // QualificationRequirements: [ // QualificationRequirementList
|
|
67
67
|
* // { // QualificationRequirement
|
|
68
68
|
* // QualificationTypeId: "STRING_VALUE", // required
|
|
69
|
-
* // Comparator: "
|
|
69
|
+
* // Comparator: "LessThan" || "LessThanOrEqualTo" || "GreaterThan" || "GreaterThanOrEqualTo" || "EqualTo" || "NotEqualTo" || "Exists" || "DoesNotExist" || "In" || "NotIn", // required
|
|
70
70
|
* // IntegerValues: [ // IntegerList
|
|
71
71
|
* // Number("int"),
|
|
72
72
|
* // ],
|
|
@@ -77,10 +77,10 @@ export interface ListHITsForQualificationTypeCommandOutput extends ListHITsForQu
|
|
|
77
77
|
* // },
|
|
78
78
|
* // ],
|
|
79
79
|
* // RequiredToPreview: true || false,
|
|
80
|
-
* // ActionsGuarded: "
|
|
80
|
+
* // ActionsGuarded: "Accept" || "PreviewAndAccept" || "DiscoverPreviewAndAccept",
|
|
81
81
|
* // },
|
|
82
82
|
* // ],
|
|
83
|
-
* // HITReviewStatus: "
|
|
83
|
+
* // HITReviewStatus: "NotReviewed" || "MarkedForReview" || "ReviewedAppropriate" || "ReviewedInappropriate",
|
|
84
84
|
* // NumberOfAssignmentsPending: Number("int"),
|
|
85
85
|
* // NumberOfAssignmentsAvailable: Number("int"),
|
|
86
86
|
* // NumberOfAssignmentsCompleted: Number("int"),
|
|
@@ -54,7 +54,7 @@ export interface ListQualificationTypesCommandOutput extends ListQualificationTy
|
|
|
54
54
|
* // Name: "STRING_VALUE",
|
|
55
55
|
* // Description: "STRING_VALUE",
|
|
56
56
|
* // Keywords: "STRING_VALUE",
|
|
57
|
-
* // QualificationTypeStatus: "
|
|
57
|
+
* // QualificationTypeStatus: "Active" || "Inactive",
|
|
58
58
|
* // Test: "STRING_VALUE",
|
|
59
59
|
* // TestDurationInSeconds: Number("long"),
|
|
60
60
|
* // AnswerKey: "STRING_VALUE",
|
|
@@ -39,7 +39,7 @@ export interface ListReviewPolicyResultsForHITCommandOutput extends ListReviewPo
|
|
|
39
39
|
* const input = { // ListReviewPolicyResultsForHITRequest
|
|
40
40
|
* HITId: "STRING_VALUE", // required
|
|
41
41
|
* PolicyLevels: [ // ReviewPolicyLevelList
|
|
42
|
-
* "
|
|
42
|
+
* "Assignment" || "HIT",
|
|
43
43
|
* ],
|
|
44
44
|
* RetrieveActions: true || false,
|
|
45
45
|
* RetrieveResults: true || false,
|
|
@@ -105,7 +105,7 @@ export interface ListReviewPolicyResultsForHITCommandOutput extends ListReviewPo
|
|
|
105
105
|
* // ActionName: "STRING_VALUE",
|
|
106
106
|
* // TargetId: "STRING_VALUE",
|
|
107
107
|
* // TargetType: "STRING_VALUE",
|
|
108
|
-
* // Status: "
|
|
108
|
+
* // Status: "Intended" || "Succeeded" || "Failed" || "Cancelled",
|
|
109
109
|
* // CompleteTime: new Date("TIMESTAMP"),
|
|
110
110
|
* // Result: "STRING_VALUE",
|
|
111
111
|
* // ErrorCode: "STRING_VALUE",
|
|
@@ -129,7 +129,7 @@ export interface ListReviewPolicyResultsForHITCommandOutput extends ListReviewPo
|
|
|
129
129
|
* // ActionName: "STRING_VALUE",
|
|
130
130
|
* // TargetId: "STRING_VALUE",
|
|
131
131
|
* // TargetType: "STRING_VALUE",
|
|
132
|
-
* // Status: "
|
|
132
|
+
* // Status: "Intended" || "Succeeded" || "Failed" || "Cancelled",
|
|
133
133
|
* // CompleteTime: new Date("TIMESTAMP"),
|
|
134
134
|
* // Result: "STRING_VALUE",
|
|
135
135
|
* // ErrorCode: "STRING_VALUE",
|
|
@@ -35,7 +35,7 @@ export interface ListReviewableHITsCommandOutput extends ListReviewableHITsRespo
|
|
|
35
35
|
* const client = new MTurkClient(config);
|
|
36
36
|
* const input = { // ListReviewableHITsRequest
|
|
37
37
|
* HITTypeId: "STRING_VALUE",
|
|
38
|
-
* Status: "
|
|
38
|
+
* Status: "Reviewable" || "Reviewing",
|
|
39
39
|
* NextToken: "STRING_VALUE",
|
|
40
40
|
* MaxResults: Number("int"),
|
|
41
41
|
* };
|
|
@@ -55,7 +55,7 @@ export interface ListReviewableHITsCommandOutput extends ListReviewableHITsRespo
|
|
|
55
55
|
* // Description: "STRING_VALUE",
|
|
56
56
|
* // Question: "STRING_VALUE",
|
|
57
57
|
* // Keywords: "STRING_VALUE",
|
|
58
|
-
* // HITStatus: "
|
|
58
|
+
* // HITStatus: "Assignable" || "Unassignable" || "Reviewable" || "Reviewing" || "Disposed",
|
|
59
59
|
* // MaxAssignments: Number("int"),
|
|
60
60
|
* // Reward: "STRING_VALUE",
|
|
61
61
|
* // AutoApprovalDelayInSeconds: Number("long"),
|
|
@@ -65,7 +65,7 @@ export interface ListReviewableHITsCommandOutput extends ListReviewableHITsRespo
|
|
|
65
65
|
* // QualificationRequirements: [ // QualificationRequirementList
|
|
66
66
|
* // { // QualificationRequirement
|
|
67
67
|
* // QualificationTypeId: "STRING_VALUE", // required
|
|
68
|
-
* // Comparator: "
|
|
68
|
+
* // Comparator: "LessThan" || "LessThanOrEqualTo" || "GreaterThan" || "GreaterThanOrEqualTo" || "EqualTo" || "NotEqualTo" || "Exists" || "DoesNotExist" || "In" || "NotIn", // required
|
|
69
69
|
* // IntegerValues: [ // IntegerList
|
|
70
70
|
* // Number("int"),
|
|
71
71
|
* // ],
|
|
@@ -76,10 +76,10 @@ export interface ListReviewableHITsCommandOutput extends ListReviewableHITsRespo
|
|
|
76
76
|
* // },
|
|
77
77
|
* // ],
|
|
78
78
|
* // RequiredToPreview: true || false,
|
|
79
|
-
* // ActionsGuarded: "
|
|
79
|
+
* // ActionsGuarded: "Accept" || "PreviewAndAccept" || "DiscoverPreviewAndAccept",
|
|
80
80
|
* // },
|
|
81
81
|
* // ],
|
|
82
|
-
* // HITReviewStatus: "
|
|
82
|
+
* // HITReviewStatus: "NotReviewed" || "MarkedForReview" || "ReviewedAppropriate" || "ReviewedInappropriate",
|
|
83
83
|
* // NumberOfAssignmentsPending: Number("int"),
|
|
84
84
|
* // NumberOfAssignmentsAvailable: Number("int"),
|
|
85
85
|
* // NumberOfAssignmentsCompleted: Number("int"),
|
|
@@ -35,7 +35,7 @@ export interface ListWorkersWithQualificationTypeCommandOutput extends ListWorke
|
|
|
35
35
|
* const client = new MTurkClient(config);
|
|
36
36
|
* const input = { // ListWorkersWithQualificationTypeRequest
|
|
37
37
|
* QualificationTypeId: "STRING_VALUE", // required
|
|
38
|
-
* Status: "
|
|
38
|
+
* Status: "Granted" || "Revoked",
|
|
39
39
|
* NextToken: "STRING_VALUE",
|
|
40
40
|
* MaxResults: Number("int"),
|
|
41
41
|
* };
|
|
@@ -54,7 +54,7 @@ export interface ListWorkersWithQualificationTypeCommandOutput extends ListWorke
|
|
|
54
54
|
* // Country: "STRING_VALUE", // required
|
|
55
55
|
* // Subdivision: "STRING_VALUE",
|
|
56
56
|
* // },
|
|
57
|
-
* // Status: "
|
|
57
|
+
* // Status: "Granted" || "Revoked",
|
|
58
58
|
* // },
|
|
59
59
|
* // ],
|
|
60
60
|
* // };
|
|
@@ -51,7 +51,7 @@ export interface NotifyWorkersCommandOutput extends NotifyWorkersResponse, __Met
|
|
|
51
51
|
* // { // NotifyWorkersResponse
|
|
52
52
|
* // NotifyWorkersFailureStatuses: [ // NotifyWorkersFailureStatusList
|
|
53
53
|
* // { // NotifyWorkersFailureStatus
|
|
54
|
-
* // NotifyWorkersFailureCode: "
|
|
54
|
+
* // NotifyWorkersFailureCode: "SoftFailure" || "HardFailure",
|
|
55
55
|
* // NotifyWorkersFailureMessage: "STRING_VALUE",
|
|
56
56
|
* // WorkerId: "STRING_VALUE",
|
|
57
57
|
* // },
|
|
@@ -39,13 +39,13 @@ export interface SendTestEventNotificationCommandOutput extends SendTestEventNot
|
|
|
39
39
|
* const input = { // SendTestEventNotificationRequest
|
|
40
40
|
* Notification: { // NotificationSpecification
|
|
41
41
|
* Destination: "STRING_VALUE", // required
|
|
42
|
-
* Transport: "
|
|
42
|
+
* Transport: "Email" || "SQS" || "SNS", // required
|
|
43
43
|
* Version: "STRING_VALUE", // required
|
|
44
44
|
* EventTypes: [ // EventTypeList // required
|
|
45
|
-
* "
|
|
45
|
+
* "AssignmentAccepted" || "AssignmentAbandoned" || "AssignmentReturned" || "AssignmentSubmitted" || "AssignmentRejected" || "AssignmentApproved" || "HITCreated" || "HITExpired" || "HITReviewable" || "HITExtended" || "HITDisposed" || "Ping",
|
|
46
46
|
* ],
|
|
47
47
|
* },
|
|
48
|
-
* TestEventType: "
|
|
48
|
+
* TestEventType: "AssignmentAccepted" || "AssignmentAbandoned" || "AssignmentReturned" || "AssignmentSubmitted" || "AssignmentRejected" || "AssignmentApproved" || "HITCreated" || "HITExpired" || "HITReviewable" || "HITExtended" || "HITDisposed" || "Ping", // required
|
|
49
49
|
* };
|
|
50
50
|
* const command = new SendTestEventNotificationCommand(input);
|
|
51
51
|
* const response = await client.send(command);
|
|
@@ -45,10 +45,10 @@ export interface UpdateNotificationSettingsCommandOutput extends UpdateNotificat
|
|
|
45
45
|
* HITTypeId: "STRING_VALUE", // required
|
|
46
46
|
* Notification: { // NotificationSpecification
|
|
47
47
|
* Destination: "STRING_VALUE", // required
|
|
48
|
-
* Transport: "
|
|
48
|
+
* Transport: "Email" || "SQS" || "SNS", // required
|
|
49
49
|
* Version: "STRING_VALUE", // required
|
|
50
50
|
* EventTypes: [ // EventTypeList // required
|
|
51
|
-
* "
|
|
51
|
+
* "AssignmentAccepted" || "AssignmentAbandoned" || "AssignmentReturned" || "AssignmentSubmitted" || "AssignmentRejected" || "AssignmentApproved" || "HITCreated" || "HITExpired" || "HITReviewable" || "HITExtended" || "HITDisposed" || "Ping",
|
|
52
52
|
* ],
|
|
53
53
|
* },
|
|
54
54
|
* Active: true || false,
|
|
@@ -65,7 +65,7 @@ export interface UpdateQualificationTypeCommandOutput extends UpdateQualificatio
|
|
|
65
65
|
* const input = { // UpdateQualificationTypeRequest
|
|
66
66
|
* QualificationTypeId: "STRING_VALUE", // required
|
|
67
67
|
* Description: "STRING_VALUE",
|
|
68
|
-
* QualificationTypeStatus: "
|
|
68
|
+
* QualificationTypeStatus: "Active" || "Inactive",
|
|
69
69
|
* Test: "STRING_VALUE",
|
|
70
70
|
* AnswerKey: "STRING_VALUE",
|
|
71
71
|
* TestDurationInSeconds: Number("long"),
|
|
@@ -82,7 +82,7 @@ export interface UpdateQualificationTypeCommandOutput extends UpdateQualificatio
|
|
|
82
82
|
* // Name: "STRING_VALUE",
|
|
83
83
|
* // Description: "STRING_VALUE",
|
|
84
84
|
* // Keywords: "STRING_VALUE",
|
|
85
|
-
* // QualificationTypeStatus: "
|
|
85
|
+
* // QualificationTypeStatus: "Active" || "Inactive",
|
|
86
86
|
* // Test: "STRING_VALUE",
|
|
87
87
|
* // TestDurationInSeconds: Number("long"),
|
|
88
88
|
* // AnswerKey: "STRING_VALUE",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
1
2
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
2
3
|
/**
|
|
3
4
|
* @internal
|
|
4
5
|
*/
|
|
5
|
-
export interface MTurkExtensionConfiguration extends DefaultExtensionConfiguration {
|
|
6
|
+
export interface MTurkExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration {
|
|
6
7
|
}
|
|
@@ -11,7 +11,10 @@ export declare const getRuntimeConfig: (config: MTurkClientConfig) => {
|
|
|
11
11
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
13
|
region: string | import("@smithy/types").Provider<any>;
|
|
14
|
-
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/protocol-http").
|
|
14
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
15
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
16
|
+
httpHandlerConfigs(): {};
|
|
17
|
+
}) | RequestHandler;
|
|
15
18
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
19
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
20
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
@@ -11,7 +11,10 @@ export declare const getRuntimeConfig: (config: MTurkClientConfig) => {
|
|
|
11
11
|
defaultUserAgentProvider: import("@smithy/types").Provider<import("@smithy/types").UserAgent>;
|
|
12
12
|
maxAttempts: number | import("@smithy/types").Provider<number>;
|
|
13
13
|
region: string | import("@smithy/types").Provider<string>;
|
|
14
|
-
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/protocol-http").
|
|
14
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
15
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
16
|
+
httpHandlerConfigs(): {};
|
|
17
|
+
}) | RequestHandler;
|
|
15
18
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
16
19
|
sha256: import("@smithy/types").HashConstructor;
|
|
17
20
|
streamCollector: import("@smithy/types").StreamCollector;
|
|
@@ -5,7 +5,10 @@ import { MTurkClientConfig } from "./MTurkClient";
|
|
|
5
5
|
export declare const getRuntimeConfig: (config: MTurkClientConfig) => {
|
|
6
6
|
runtime: string;
|
|
7
7
|
sha256: import("@smithy/types").HashConstructor;
|
|
8
|
-
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/protocol-http").
|
|
8
|
+
requestHandler: (import("@smithy/types").RequestHandler<any, any, import("@smithy/types").HttpHandlerOptions> & import("@smithy/types").RequestHandler<import("@smithy/protocol-http").HttpRequest, import("@smithy/protocol-http").HttpResponse, import("@smithy/types").HttpHandlerOptions> & {
|
|
9
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
10
|
+
httpHandlerConfigs(): {};
|
|
11
|
+
}) | import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
9
12
|
apiVersion: string;
|
|
10
13
|
urlParser: import("@smithy/types").UrlParser;
|
|
11
14
|
bodyLengthChecker: import("@smithy/types").BodyLengthCalculator;
|
|
@@ -3,7 +3,7 @@ import { MTurkExtensionConfiguration } from "./extensionConfiguration";
|
|
|
3
3
|
* @public
|
|
4
4
|
*/
|
|
5
5
|
export interface RuntimeExtension {
|
|
6
|
-
configure(
|
|
6
|
+
configure(extensionConfiguration: MTurkExtensionConfiguration): void;
|
|
7
7
|
}
|
|
8
8
|
/**
|
|
9
9
|
* @public
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http";
|
|
1
2
|
import { DefaultExtensionConfiguration } from "@smithy/types";
|
|
2
3
|
export interface MTurkExtensionConfiguration
|
|
3
|
-
extends
|
|
4
|
+
extends HttpHandlerExtensionConfiguration,
|
|
5
|
+
DefaultExtensionConfiguration {}
|
|
@@ -20,7 +20,14 @@ export declare const getRuntimeConfig: (config: MTurkClientConfig) => {
|
|
|
20
20
|
any,
|
|
21
21
|
import("@smithy/types").HttpHandlerOptions
|
|
22
22
|
> &
|
|
23
|
-
import("@smithy/
|
|
23
|
+
import("@smithy/types").RequestHandler<
|
|
24
|
+
import("@smithy/protocol-http").HttpRequest,
|
|
25
|
+
import("@smithy/protocol-http").HttpResponse,
|
|
26
|
+
import("@smithy/types").HttpHandlerOptions
|
|
27
|
+
> & {
|
|
28
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
29
|
+
httpHandlerConfigs(): {};
|
|
30
|
+
})
|
|
24
31
|
| RequestHandler;
|
|
25
32
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
26
33
|
sha256: import("@smithy/types").HashConstructor;
|
|
@@ -20,7 +20,14 @@ export declare const getRuntimeConfig: (config: MTurkClientConfig) => {
|
|
|
20
20
|
any,
|
|
21
21
|
import("@smithy/types").HttpHandlerOptions
|
|
22
22
|
> &
|
|
23
|
-
import("@smithy/
|
|
23
|
+
import("@smithy/types").RequestHandler<
|
|
24
|
+
import("@smithy/protocol-http").HttpRequest,
|
|
25
|
+
import("@smithy/protocol-http").HttpResponse,
|
|
26
|
+
import("@smithy/types").HttpHandlerOptions
|
|
27
|
+
> & {
|
|
28
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
29
|
+
httpHandlerConfigs(): {};
|
|
30
|
+
})
|
|
24
31
|
| RequestHandler;
|
|
25
32
|
retryMode: string | import("@smithy/types").Provider<string>;
|
|
26
33
|
sha256: import("@smithy/types").HashConstructor;
|
|
@@ -8,7 +8,14 @@ export declare const getRuntimeConfig: (config: MTurkClientConfig) => {
|
|
|
8
8
|
any,
|
|
9
9
|
import("@smithy/types").HttpHandlerOptions
|
|
10
10
|
> &
|
|
11
|
-
import("@smithy/
|
|
11
|
+
import("@smithy/types").RequestHandler<
|
|
12
|
+
import("@smithy/protocol-http").HttpRequest,
|
|
13
|
+
import("@smithy/protocol-http").HttpResponse,
|
|
14
|
+
import("@smithy/types").HttpHandlerOptions
|
|
15
|
+
> & {
|
|
16
|
+
updateHttpClientConfig(key: never, value: never): void;
|
|
17
|
+
httpHandlerConfigs(): {};
|
|
18
|
+
})
|
|
12
19
|
| import("@smithy/fetch-http-handler").FetchHttpHandler;
|
|
13
20
|
apiVersion: string;
|
|
14
21
|
urlParser: import("@smithy/types").UrlParser;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { MTurkExtensionConfiguration } from "./extensionConfiguration";
|
|
2
2
|
export interface RuntimeExtension {
|
|
3
|
-
configure(
|
|
3
|
+
configure(extensionConfiguration: MTurkExtensionConfiguration): void;
|
|
4
4
|
}
|
|
5
5
|
export interface RuntimeExtensionsConfig {
|
|
6
6
|
extensions: RuntimeExtension[];
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aws-sdk/client-mturk",
|
|
3
3
|
"description": "AWS SDK for JavaScript Mturk Client for Node.js, Browser and React Native",
|
|
4
|
-
"version": "3.
|
|
4
|
+
"version": "3.410.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,37 +21,37 @@
|
|
|
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.
|
|
25
|
-
"@aws-sdk/credential-provider-node": "3.
|
|
26
|
-
"@aws-sdk/middleware-host-header": "3.
|
|
27
|
-
"@aws-sdk/middleware-logger": "3.
|
|
28
|
-
"@aws-sdk/middleware-recursion-detection": "3.
|
|
29
|
-
"@aws-sdk/middleware-signing": "3.
|
|
30
|
-
"@aws-sdk/middleware-user-agent": "3.
|
|
31
|
-
"@aws-sdk/types": "3.
|
|
32
|
-
"@aws-sdk/util-endpoints": "3.
|
|
33
|
-
"@aws-sdk/util-user-agent-browser": "3.
|
|
34
|
-
"@aws-sdk/util-user-agent-node": "3.
|
|
35
|
-
"@smithy/config-resolver": "^2.0.
|
|
36
|
-
"@smithy/fetch-http-handler": "^2.
|
|
37
|
-
"@smithy/hash-node": "^2.0.
|
|
38
|
-
"@smithy/invalid-dependency": "^2.0.
|
|
39
|
-
"@smithy/middleware-content-length": "^2.0.
|
|
40
|
-
"@smithy/middleware-endpoint": "^2.0.
|
|
41
|
-
"@smithy/middleware-retry": "^2.0.
|
|
42
|
-
"@smithy/middleware-serde": "^2.0.
|
|
24
|
+
"@aws-sdk/client-sts": "3.410.0",
|
|
25
|
+
"@aws-sdk/credential-provider-node": "3.410.0",
|
|
26
|
+
"@aws-sdk/middleware-host-header": "3.410.0",
|
|
27
|
+
"@aws-sdk/middleware-logger": "3.410.0",
|
|
28
|
+
"@aws-sdk/middleware-recursion-detection": "3.410.0",
|
|
29
|
+
"@aws-sdk/middleware-signing": "3.410.0",
|
|
30
|
+
"@aws-sdk/middleware-user-agent": "3.410.0",
|
|
31
|
+
"@aws-sdk/types": "3.410.0",
|
|
32
|
+
"@aws-sdk/util-endpoints": "3.410.0",
|
|
33
|
+
"@aws-sdk/util-user-agent-browser": "3.410.0",
|
|
34
|
+
"@aws-sdk/util-user-agent-node": "3.410.0",
|
|
35
|
+
"@smithy/config-resolver": "^2.0.7",
|
|
36
|
+
"@smithy/fetch-http-handler": "^2.1.2",
|
|
37
|
+
"@smithy/hash-node": "^2.0.6",
|
|
38
|
+
"@smithy/invalid-dependency": "^2.0.6",
|
|
39
|
+
"@smithy/middleware-content-length": "^2.0.8",
|
|
40
|
+
"@smithy/middleware-endpoint": "^2.0.6",
|
|
41
|
+
"@smithy/middleware-retry": "^2.0.9",
|
|
42
|
+
"@smithy/middleware-serde": "^2.0.6",
|
|
43
43
|
"@smithy/middleware-stack": "^2.0.0",
|
|
44
|
-
"@smithy/node-config-provider": "^2.0.
|
|
45
|
-
"@smithy/node-http-handler": "^2.
|
|
46
|
-
"@smithy/protocol-http": "^
|
|
47
|
-
"@smithy/smithy-client": "^2.
|
|
48
|
-
"@smithy/types": "^2.
|
|
49
|
-
"@smithy/url-parser": "^2.0.
|
|
44
|
+
"@smithy/node-config-provider": "^2.0.9",
|
|
45
|
+
"@smithy/node-http-handler": "^2.1.2",
|
|
46
|
+
"@smithy/protocol-http": "^3.0.2",
|
|
47
|
+
"@smithy/smithy-client": "^2.1.3",
|
|
48
|
+
"@smithy/types": "^2.3.0",
|
|
49
|
+
"@smithy/url-parser": "^2.0.6",
|
|
50
50
|
"@smithy/util-base64": "^2.0.0",
|
|
51
51
|
"@smithy/util-body-length-browser": "^2.0.0",
|
|
52
52
|
"@smithy/util-body-length-node": "^2.1.0",
|
|
53
|
-
"@smithy/util-defaults-mode-browser": "^2.0.
|
|
54
|
-
"@smithy/util-defaults-mode-node": "^2.0.
|
|
53
|
+
"@smithy/util-defaults-mode-browser": "^2.0.7",
|
|
54
|
+
"@smithy/util-defaults-mode-node": "^2.0.9",
|
|
55
55
|
"@smithy/util-retry": "^2.0.0",
|
|
56
56
|
"@smithy/util-utf8": "^2.0.0",
|
|
57
57
|
"tslib": "^2.5.0"
|