1 | import {Request} from '../lib/request';
|
2 | import {Response} from '../lib/response';
|
3 | import {AWSError} from '../lib/error';
|
4 | import {Service} from '../lib/service';
|
5 | import {ServiceConfigurationOptions} from '../lib/service';
|
6 | import {ConfigBase as Config} from '../lib/config';
|
7 | interface Blob {}
|
8 | declare class MTurk extends Service {
|
9 | |
10 |
|
11 |
|
12 | constructor(options?: MTurk.Types.ClientConfiguration)
|
13 | config: Config & MTurk.Types.ClientConfiguration;
|
14 | /**
|
15 | * The AcceptQualificationRequest operation approves a Worker's request for a Qualification. Only the owner of the Qualification type can grant a Qualification request for that type. A successful request for the AcceptQualificationRequest operation returns with no errors and an empty body.
|
16 | */
|
17 | acceptQualificationRequest(params: MTurk.Types.AcceptQualificationRequestRequest, callback?: (err: AWSError, data: MTurk.Types.AcceptQualificationRequestResponse) => void): Request<MTurk.Types.AcceptQualificationRequestResponse, AWSError>;
|
18 | /**
|
19 | * The AcceptQualificationRequest operation approves a Worker's request for a Qualification. Only the owner of the Qualification type can grant a Qualification request for that type. A successful request for the AcceptQualificationRequest operation returns with no errors and an empty body.
|
20 | */
|
21 | acceptQualificationRequest(callback?: (err: AWSError, data: MTurk.Types.AcceptQualificationRequestResponse) => void): Request<MTurk.Types.AcceptQualificationRequestResponse, AWSError>;
|
22 | /**
|
23 | * The ApproveAssignment operation approves the results of a completed assignment. Approving an assignment initiates two payments from the Requester's Amazon.com account The Worker who submitted the results is paid the reward specified in the HIT. Amazon Mechanical Turk fees are debited. If the Requester's account does not have adequate funds for these payments, the call to ApproveAssignment returns an exception, and the approval is not processed. You can include an optional feedback message with the approval, which the Worker can see in the Status section of the web site. You can also call this operation for assignments that were previous rejected and approve them by explicitly overriding the previous rejection. This only works on rejected assignments that were submitted within the previous 30 days and only if the assignment's related HIT has not been deleted.
|
24 | */
|
25 | approveAssignment(params: MTurk.Types.ApproveAssignmentRequest, callback?: (err: AWSError, data: MTurk.Types.ApproveAssignmentResponse) => void): Request<MTurk.Types.ApproveAssignmentResponse, AWSError>;
|
26 | /**
|
27 | * The ApproveAssignment operation approves the results of a completed assignment. Approving an assignment initiates two payments from the Requester's Amazon.com account The Worker who submitted the results is paid the reward specified in the HIT. Amazon Mechanical Turk fees are debited. If the Requester's account does not have adequate funds for these payments, the call to ApproveAssignment returns an exception, and the approval is not processed. You can include an optional feedback message with the approval, which the Worker can see in the Status section of the web site. You can also call this operation for assignments that were previous rejected and approve them by explicitly overriding the previous rejection. This only works on rejected assignments that were submitted within the previous 30 days and only if the assignment's related HIT has not been deleted.
|
28 | */
|
29 | approveAssignment(callback?: (err: AWSError, data: MTurk.Types.ApproveAssignmentResponse) => void): Request<MTurk.Types.ApproveAssignmentResponse, AWSError>;
|
30 | /**
|
31 | * The AssociateQualificationWithWorker operation gives a Worker a Qualification. AssociateQualificationWithWorker does not require that the Worker submit a Qualification request. It gives the Qualification directly to the Worker. You can only assign a Qualification of a Qualification type that you created (using the CreateQualificationType operation). Note: AssociateQualificationWithWorker does not affect any pending Qualification requests for the Qualification by the Worker. If you assign a Qualification to a Worker, then later grant a Qualification request made by the Worker, the granting of the request may modify the Qualification score. To resolve a pending Qualification request without affecting the Qualification the Worker already has, reject the request with the RejectQualificationRequest operation.
|
32 | */
|
33 | associateQualificationWithWorker(params: MTurk.Types.AssociateQualificationWithWorkerRequest, callback?: (err: AWSError, data: MTurk.Types.AssociateQualificationWithWorkerResponse) => void): Request<MTurk.Types.AssociateQualificationWithWorkerResponse, AWSError>;
|
34 | /**
|
35 | * The AssociateQualificationWithWorker operation gives a Worker a Qualification. AssociateQualificationWithWorker does not require that the Worker submit a Qualification request. It gives the Qualification directly to the Worker. You can only assign a Qualification of a Qualification type that you created (using the CreateQualificationType operation). Note: AssociateQualificationWithWorker does not affect any pending Qualification requests for the Qualification by the Worker. If you assign a Qualification to a Worker, then later grant a Qualification request made by the Worker, the granting of the request may modify the Qualification score. To resolve a pending Qualification request without affecting the Qualification the Worker already has, reject the request with the RejectQualificationRequest operation.
|
36 | */
|
37 | associateQualificationWithWorker(callback?: (err: AWSError, data: MTurk.Types.AssociateQualificationWithWorkerResponse) => void): Request<MTurk.Types.AssociateQualificationWithWorkerResponse, AWSError>;
|
38 | /**
|
39 | * The CreateAdditionalAssignmentsForHIT operation increases the maximum number of assignments of an existing HIT. To extend the maximum number of assignments, specify the number of additional assignments. HITs created with fewer than 10 assignments cannot be extended to have 10 or more assignments. Attempting to add assignments in a way that brings the total number of assignments for a HIT from fewer than 10 assignments to 10 or more assignments will result in an AWS.MechanicalTurk.InvalidMaximumAssignmentsIncrease exception. HITs that were created before July 22, 2015 cannot be extended. Attempting to extend HITs that were created before July 22, 2015 will result in an AWS.MechanicalTurk.HITTooOldForExtension exception.
|
40 | */
|
41 | createAdditionalAssignmentsForHIT(params: MTurk.Types.CreateAdditionalAssignmentsForHITRequest, callback?: (err: AWSError, data: MTurk.Types.CreateAdditionalAssignmentsForHITResponse) => void): Request<MTurk.Types.CreateAdditionalAssignmentsForHITResponse, AWSError>;
|
42 | /**
|
43 | * The CreateAdditionalAssignmentsForHIT operation increases the maximum number of assignments of an existing HIT. To extend the maximum number of assignments, specify the number of additional assignments. HITs created with fewer than 10 assignments cannot be extended to have 10 or more assignments. Attempting to add assignments in a way that brings the total number of assignments for a HIT from fewer than 10 assignments to 10 or more assignments will result in an AWS.MechanicalTurk.InvalidMaximumAssignmentsIncrease exception. HITs that were created before July 22, 2015 cannot be extended. Attempting to extend HITs that were created before July 22, 2015 will result in an AWS.MechanicalTurk.HITTooOldForExtension exception.
|
44 | */
|
45 | createAdditionalAssignmentsForHIT(callback?: (err: AWSError, data: MTurk.Types.CreateAdditionalAssignmentsForHITResponse) => void): Request<MTurk.Types.CreateAdditionalAssignmentsForHITResponse, AWSError>;
|
46 | /**
|
47 | * The CreateHIT operation creates a new Human Intelligence Task (HIT). The new HIT is made available for Workers to find and accept on the Amazon Mechanical Turk website. This operation allows you to specify a new HIT by passing in values for the properties of the HIT, such as its title, reward amount and number of assignments. When you pass these values to CreateHIT, a new HIT is created for you, with a new HITTypeID. The HITTypeID can be used to create additional HITs in the future without needing to specify common parameters such as the title, description and reward amount each time. An alternative way to create HITs is to first generate a HITTypeID using the CreateHITType operation and then call the CreateHITWithHITType operation. This is the recommended best practice for Requesters who are creating large numbers of HITs. CreateHIT also supports several ways to provide question data: by providing a value for the Question parameter that fully specifies the contents of the HIT, or by providing a HitLayoutId and associated HitLayoutParameters. If a HIT is created with 10 or more maximum assignments, there is an additional fee. For more information, see Amazon Mechanical Turk Pricing.
|
48 | */
|
49 | createHIT(params: MTurk.Types.CreateHITRequest, callback?: (err: AWSError, data: MTurk.Types.CreateHITResponse) => void): Request<MTurk.Types.CreateHITResponse, AWSError>;
|
50 | /**
|
51 | * The CreateHIT operation creates a new Human Intelligence Task (HIT). The new HIT is made available for Workers to find and accept on the Amazon Mechanical Turk website. This operation allows you to specify a new HIT by passing in values for the properties of the HIT, such as its title, reward amount and number of assignments. When you pass these values to CreateHIT, a new HIT is created for you, with a new HITTypeID. The HITTypeID can be used to create additional HITs in the future without needing to specify common parameters such as the title, description and reward amount each time. An alternative way to create HITs is to first generate a HITTypeID using the CreateHITType operation and then call the CreateHITWithHITType operation. This is the recommended best practice for Requesters who are creating large numbers of HITs. CreateHIT also supports several ways to provide question data: by providing a value for the Question parameter that fully specifies the contents of the HIT, or by providing a HitLayoutId and associated HitLayoutParameters. If a HIT is created with 10 or more maximum assignments, there is an additional fee. For more information, see Amazon Mechanical Turk Pricing.
|
52 | */
|
53 | createHIT(callback?: (err: AWSError, data: MTurk.Types.CreateHITResponse) => void): Request<MTurk.Types.CreateHITResponse, AWSError>;
|
54 | /**
|
55 | * The CreateHITType operation creates a new HIT type. This operation allows you to define a standard set of HIT properties to use when creating HITs. If you register a HIT type with values that match an existing HIT type, the HIT type ID of the existing type will be returned.
|
56 | */
|
57 | createHITType(params: MTurk.Types.CreateHITTypeRequest, callback?: (err: AWSError, data: MTurk.Types.CreateHITTypeResponse) => void): Request<MTurk.Types.CreateHITTypeResponse, AWSError>;
|
58 | /**
|
59 | * The CreateHITType operation creates a new HIT type. This operation allows you to define a standard set of HIT properties to use when creating HITs. If you register a HIT type with values that match an existing HIT type, the HIT type ID of the existing type will be returned.
|
60 | */
|
61 | createHITType(callback?: (err: AWSError, data: MTurk.Types.CreateHITTypeResponse) => void): Request<MTurk.Types.CreateHITTypeResponse, AWSError>;
|
62 | /**
|
63 | * The CreateHITWithHITType operation creates a new Human Intelligence Task (HIT) using an existing HITTypeID generated by the CreateHITType operation. This is an alternative way to create HITs from the CreateHIT operation. This is the recommended best practice for Requesters who are creating large numbers of HITs. CreateHITWithHITType also supports several ways to provide question data: by providing a value for the Question parameter that fully specifies the contents of the HIT, or by providing a HitLayoutId and associated HitLayoutParameters. If a HIT is created with 10 or more maximum assignments, there is an additional fee. For more information, see Amazon Mechanical Turk Pricing.
|
64 | */
|
65 | createHITWithHITType(params: MTurk.Types.CreateHITWithHITTypeRequest, callback?: (err: AWSError, data: MTurk.Types.CreateHITWithHITTypeResponse) => void): Request<MTurk.Types.CreateHITWithHITTypeResponse, AWSError>;
|
66 | /**
|
67 | * The CreateHITWithHITType operation creates a new Human Intelligence Task (HIT) using an existing HITTypeID generated by the CreateHITType operation. This is an alternative way to create HITs from the CreateHIT operation. This is the recommended best practice for Requesters who are creating large numbers of HITs. CreateHITWithHITType also supports several ways to provide question data: by providing a value for the Question parameter that fully specifies the contents of the HIT, or by providing a HitLayoutId and associated HitLayoutParameters. If a HIT is created with 10 or more maximum assignments, there is an additional fee. For more information, see Amazon Mechanical Turk Pricing.
|
68 | */
|
69 | createHITWithHITType(callback?: (err: AWSError, data: MTurk.Types.CreateHITWithHITTypeResponse) => void): Request<MTurk.Types.CreateHITWithHITTypeResponse, AWSError>;
|
70 | /**
|
71 | * The CreateQualificationType operation creates a new Qualification type, which is represented by a QualificationType data structure.
|
72 | */
|
73 | createQualificationType(params: MTurk.Types.CreateQualificationTypeRequest, callback?: (err: AWSError, data: MTurk.Types.CreateQualificationTypeResponse) => void): Request<MTurk.Types.CreateQualificationTypeResponse, AWSError>;
|
74 | /**
|
75 | * The CreateQualificationType operation creates a new Qualification type, which is represented by a QualificationType data structure.
|
76 | */
|
77 | createQualificationType(callback?: (err: AWSError, data: MTurk.Types.CreateQualificationTypeResponse) => void): Request<MTurk.Types.CreateQualificationTypeResponse, AWSError>;
|
78 | /**
|
79 | * The CreateWorkerBlock operation allows you to prevent a Worker from working on your HITs. For example, you can block a Worker who is producing poor quality work. You can block up to 100,000 Workers.
|
80 | */
|
81 | createWorkerBlock(params: MTurk.Types.CreateWorkerBlockRequest, callback?: (err: AWSError, data: MTurk.Types.CreateWorkerBlockResponse) => void): Request<MTurk.Types.CreateWorkerBlockResponse, AWSError>;
|
82 | /**
|
83 | * The CreateWorkerBlock operation allows you to prevent a Worker from working on your HITs. For example, you can block a Worker who is producing poor quality work. You can block up to 100,000 Workers.
|
84 | */
|
85 | createWorkerBlock(callback?: (err: AWSError, data: MTurk.Types.CreateWorkerBlockResponse) => void): Request<MTurk.Types.CreateWorkerBlockResponse, AWSError>;
|
86 | /**
|
87 | * The DeleteHIT operation is used to delete HIT that is no longer needed. Only the Requester who created the HIT can delete it. You can only dispose of HITs that are in the Reviewable state, with all of their submitted assignments already either approved or rejected. If you call the DeleteHIT operation on a HIT that is not in the Reviewable state (for example, that has not expired, or still has active assignments), or on a HIT that is Reviewable but without all of its submitted assignments already approved or rejected, the service will return an error. HITs are automatically disposed of after 120 days. After you dispose of a HIT, you can no longer approve the HIT's rejected assignments. Disposed HITs are not returned in results for the ListHITs operation. Disposing HITs can improve the performance of operations such as ListReviewableHITs and ListHITs.
|
88 | */
|
89 | deleteHIT(params: MTurk.Types.DeleteHITRequest, callback?: (err: AWSError, data: MTurk.Types.DeleteHITResponse) => void): Request<MTurk.Types.DeleteHITResponse, AWSError>;
|
90 | /**
|
91 | * The DeleteHIT operation is used to delete HIT that is no longer needed. Only the Requester who created the HIT can delete it. You can only dispose of HITs that are in the Reviewable state, with all of their submitted assignments already either approved or rejected. If you call the DeleteHIT operation on a HIT that is not in the Reviewable state (for example, that has not expired, or still has active assignments), or on a HIT that is Reviewable but without all of its submitted assignments already approved or rejected, the service will return an error. HITs are automatically disposed of after 120 days. After you dispose of a HIT, you can no longer approve the HIT's rejected assignments. Disposed HITs are not returned in results for the ListHITs operation. Disposing HITs can improve the performance of operations such as ListReviewableHITs and ListHITs.
|
92 | */
|
93 | deleteHIT(callback?: (err: AWSError, data: MTurk.Types.DeleteHITResponse) => void): Request<MTurk.Types.DeleteHITResponse, AWSError>;
|
94 | /**
|
95 | * The DeleteQualificationType deletes a Qualification type and deletes any HIT types that are associated with the Qualification type. This operation does not revoke Qualifications already assigned to Workers because the Qualifications might be needed for active HITs. If there are any pending requests for the Qualification type, Amazon Mechanical Turk rejects those requests. After you delete a Qualification type, you can no longer use it to create HITs or HIT types. DeleteQualificationType must wait for all the HITs that use the deleted Qualification type to be deleted before completing. It may take up to 48 hours before DeleteQualificationType completes and the unique name of the Qualification type is available for reuse with CreateQualificationType.
|
96 | */
|
97 | deleteQualificationType(params: MTurk.Types.DeleteQualificationTypeRequest, callback?: (err: AWSError, data: MTurk.Types.DeleteQualificationTypeResponse) => void): Request<MTurk.Types.DeleteQualificationTypeResponse, AWSError>;
|
98 | /**
|
99 | * The DeleteQualificationType deletes a Qualification type and deletes any HIT types that are associated with the Qualification type. This operation does not revoke Qualifications already assigned to Workers because the Qualifications might be needed for active HITs. If there are any pending requests for the Qualification type, Amazon Mechanical Turk rejects those requests. After you delete a Qualification type, you can no longer use it to create HITs or HIT types. DeleteQualificationType must wait for all the HITs that use the deleted Qualification type to be deleted before completing. It may take up to 48 hours before DeleteQualificationType completes and the unique name of the Qualification type is available for reuse with CreateQualificationType.
|
100 | */
|
101 | deleteQualificationType(callback?: (err: AWSError, data: MTurk.Types.DeleteQualificationTypeResponse) => void): Request<MTurk.Types.DeleteQualificationTypeResponse, AWSError>;
|
102 | /**
|
103 | * The DeleteWorkerBlock operation allows you to reinstate a blocked Worker to work on your HITs. This operation reverses the effects of the CreateWorkerBlock operation. You need the Worker ID to use this operation. If the Worker ID is missing or invalid, this operation fails and returns the message “WorkerId is invalid.” If the specified Worker is not blocked, this operation returns successfully.
|
104 | */
|
105 | deleteWorkerBlock(params: MTurk.Types.DeleteWorkerBlockRequest, callback?: (err: AWSError, data: MTurk.Types.DeleteWorkerBlockResponse) => void): Request<MTurk.Types.DeleteWorkerBlockResponse, AWSError>;
|
106 | /**
|
107 | * The DeleteWorkerBlock operation allows you to reinstate a blocked Worker to work on your HITs. This operation reverses the effects of the CreateWorkerBlock operation. You need the Worker ID to use this operation. If the Worker ID is missing or invalid, this operation fails and returns the message “WorkerId is invalid.” If the specified Worker is not blocked, this operation returns successfully.
|
108 | */
|
109 | deleteWorkerBlock(callback?: (err: AWSError, data: MTurk.Types.DeleteWorkerBlockResponse) => void): Request<MTurk.Types.DeleteWorkerBlockResponse, AWSError>;
|
110 | /**
|
111 | * The DisassociateQualificationFromWorker revokes a previously granted Qualification from a user. You can provide a text message explaining why the Qualification was revoked. The user who had the Qualification can see this message.
|
112 | */
|
113 | disassociateQualificationFromWorker(params: MTurk.Types.DisassociateQualificationFromWorkerRequest, callback?: (err: AWSError, data: MTurk.Types.DisassociateQualificationFromWorkerResponse) => void): Request<MTurk.Types.DisassociateQualificationFromWorkerResponse, AWSError>;
|
114 | /**
|
115 | * The DisassociateQualificationFromWorker revokes a previously granted Qualification from a user. You can provide a text message explaining why the Qualification was revoked. The user who had the Qualification can see this message.
|
116 | */
|
117 | disassociateQualificationFromWorker(callback?: (err: AWSError, data: MTurk.Types.DisassociateQualificationFromWorkerResponse) => void): Request<MTurk.Types.DisassociateQualificationFromWorkerResponse, AWSError>;
|
118 | /**
|
119 | * The GetAccountBalance operation retrieves the amount of money in your Amazon Mechanical Turk account.
|
120 | */
|
121 | getAccountBalance(params: MTurk.Types.GetAccountBalanceRequest, callback?: (err: AWSError, data: MTurk.Types.GetAccountBalanceResponse) => void): Request<MTurk.Types.GetAccountBalanceResponse, AWSError>;
|
122 | /**
|
123 | * The GetAccountBalance operation retrieves the amount of money in your Amazon Mechanical Turk account.
|
124 | */
|
125 | getAccountBalance(callback?: (err: AWSError, data: MTurk.Types.GetAccountBalanceResponse) => void): Request<MTurk.Types.GetAccountBalanceResponse, AWSError>;
|
126 | /**
|
127 | * The GetAssignment operation retrieves the details of the specified Assignment.
|
128 | */
|
129 | getAssignment(params: MTurk.Types.GetAssignmentRequest, callback?: (err: AWSError, data: MTurk.Types.GetAssignmentResponse) => void): Request<MTurk.Types.GetAssignmentResponse, AWSError>;
|
130 | /**
|
131 | * The GetAssignment operation retrieves the details of the specified Assignment.
|
132 | */
|
133 | getAssignment(callback?: (err: AWSError, data: MTurk.Types.GetAssignmentResponse) => void): Request<MTurk.Types.GetAssignmentResponse, AWSError>;
|
134 | /**
|
135 | * The GetFileUploadURL operation generates and returns a temporary URL. You use the temporary URL to retrieve a file uploaded by a Worker as an answer to a FileUploadAnswer question for a HIT. The temporary URL is generated the instant the GetFileUploadURL operation is called, and is valid for 60 seconds. You can get a temporary file upload URL any time until the HIT is disposed. After the HIT is disposed, any uploaded files are deleted, and cannot be retrieved. Pending Deprecation on December 12, 2017. The Answer Specification structure will no longer support the FileUploadAnswer element to be used for the QuestionForm data structure. Instead, we recommend that Requesters who want to create HITs asking Workers to upload files to use Amazon S3.
|
136 | */
|
137 | getFileUploadURL(params: MTurk.Types.GetFileUploadURLRequest, callback?: (err: AWSError, data: MTurk.Types.GetFileUploadURLResponse) => void): Request<MTurk.Types.GetFileUploadURLResponse, AWSError>;
|
138 | /**
|
139 | * The GetFileUploadURL operation generates and returns a temporary URL. You use the temporary URL to retrieve a file uploaded by a Worker as an answer to a FileUploadAnswer question for a HIT. The temporary URL is generated the instant the GetFileUploadURL operation is called, and is valid for 60 seconds. You can get a temporary file upload URL any time until the HIT is disposed. After the HIT is disposed, any uploaded files are deleted, and cannot be retrieved. Pending Deprecation on December 12, 2017. The Answer Specification structure will no longer support the FileUploadAnswer element to be used for the QuestionForm data structure. Instead, we recommend that Requesters who want to create HITs asking Workers to upload files to use Amazon S3.
|
140 | */
|
141 | getFileUploadURL(callback?: (err: AWSError, data: MTurk.Types.GetFileUploadURLResponse) => void): Request<MTurk.Types.GetFileUploadURLResponse, AWSError>;
|
142 | /**
|
143 | * The GetHIT operation retrieves the details of the specified HIT.
|
144 | */
|
145 | getHIT(params: MTurk.Types.GetHITRequest, callback?: (err: AWSError, data: MTurk.Types.GetHITResponse) => void): Request<MTurk.Types.GetHITResponse, AWSError>;
|
146 | /**
|
147 | * The GetHIT operation retrieves the details of the specified HIT.
|
148 | */
|
149 | getHIT(callback?: (err: AWSError, data: MTurk.Types.GetHITResponse) => void): Request<MTurk.Types.GetHITResponse, AWSError>;
|
150 | /**
|
151 | * The GetQualificationScore operation returns the value of a Worker's Qualification for a given Qualification type. To get a Worker's Qualification, you must know the Worker's ID. The Worker's ID is included in the assignment data returned by the ListAssignmentsForHIT operation. Only the owner of a Qualification type can query the value of a Worker's Qualification of that type.
|
152 | */
|
153 | getQualificationScore(params: MTurk.Types.GetQualificationScoreRequest, callback?: (err: AWSError, data: MTurk.Types.GetQualificationScoreResponse) => void): Request<MTurk.Types.GetQualificationScoreResponse, AWSError>;
|
154 | /**
|
155 | * The GetQualificationScore operation returns the value of a Worker's Qualification for a given Qualification type. To get a Worker's Qualification, you must know the Worker's ID. The Worker's ID is included in the assignment data returned by the ListAssignmentsForHIT operation. Only the owner of a Qualification type can query the value of a Worker's Qualification of that type.
|
156 | */
|
157 | getQualificationScore(callback?: (err: AWSError, data: MTurk.Types.GetQualificationScoreResponse) => void): Request<MTurk.Types.GetQualificationScoreResponse, AWSError>;
|
158 | /**
|
159 | * The GetQualificationTypeoperation retrieves information about a Qualification type using its ID.
|
160 | */
|
161 | getQualificationType(params: MTurk.Types.GetQualificationTypeRequest, callback?: (err: AWSError, data: MTurk.Types.GetQualificationTypeResponse) => void): Request<MTurk.Types.GetQualificationTypeResponse, AWSError>;
|
162 | /**
|
163 | * The GetQualificationTypeoperation retrieves information about a Qualification type using its ID.
|
164 | */
|
165 | getQualificationType(callback?: (err: AWSError, data: MTurk.Types.GetQualificationTypeResponse) => void): Request<MTurk.Types.GetQualificationTypeResponse, AWSError>;
|
166 | /**
|
167 | * The ListAssignmentsForHIT operation retrieves completed assignments for a HIT. You can use this operation to retrieve the results for a HIT. You can get assignments for a HIT at any time, even if the HIT is not yet Reviewable. If a HIT requested multiple assignments, and has received some results but has not yet become Reviewable, you can still retrieve the partial results with this operation. Use the AssignmentStatus parameter to control which set of assignments for a HIT are returned. The ListAssignmentsForHIT operation can return submitted assignments awaiting approval, or it can return assignments that have already been approved or rejected. You can set AssignmentStatus=Approved,Rejected to get assignments that have already been approved and rejected together in one result set. Only the Requester who created the HIT can retrieve the assignments for that HIT. Results are sorted and divided into numbered pages and the operation returns a single page of results. You can use the parameters of the operation to control sorting and pagination.
|
168 | */
|
169 | listAssignmentsForHIT(params: MTurk.Types.ListAssignmentsForHITRequest, callback?: (err: AWSError, data: MTurk.Types.ListAssignmentsForHITResponse) => void): Request<MTurk.Types.ListAssignmentsForHITResponse, AWSError>;
|
170 | /**
|
171 | * The ListAssignmentsForHIT operation retrieves completed assignments for a HIT. You can use this operation to retrieve the results for a HIT. You can get assignments for a HIT at any time, even if the HIT is not yet Reviewable. If a HIT requested multiple assignments, and has received some results but has not yet become Reviewable, you can still retrieve the partial results with this operation. Use the AssignmentStatus parameter to control which set of assignments for a HIT are returned. The ListAssignmentsForHIT operation can return submitted assignments awaiting approval, or it can return assignments that have already been approved or rejected. You can set AssignmentStatus=Approved,Rejected to get assignments that have already been approved and rejected together in one result set. Only the Requester who created the HIT can retrieve the assignments for that HIT. Results are sorted and divided into numbered pages and the operation returns a single page of results. You can use the parameters of the operation to control sorting and pagination.
|
172 | */
|
173 | listAssignmentsForHIT(callback?: (err: AWSError, data: MTurk.Types.ListAssignmentsForHITResponse) => void): Request<MTurk.Types.ListAssignmentsForHITResponse, AWSError>;
|
174 | /**
|
175 | * The ListBonusPayments operation retrieves the amounts of bonuses you have paid to Workers for a given HIT or assignment.
|
176 | */
|
177 | listBonusPayments(params: MTurk.Types.ListBonusPaymentsRequest, callback?: (err: AWSError, data: MTurk.Types.ListBonusPaymentsResponse) => void): Request<MTurk.Types.ListBonusPaymentsResponse, AWSError>;
|
178 | /**
|
179 | * The ListBonusPayments operation retrieves the amounts of bonuses you have paid to Workers for a given HIT or assignment.
|
180 | */
|
181 | listBonusPayments(callback?: (err: AWSError, data: MTurk.Types.ListBonusPaymentsResponse) => void): Request<MTurk.Types.ListBonusPaymentsResponse, AWSError>;
|
182 | /**
|
183 | * The ListHITs operation returns all of a Requester's HITs. The operation returns HITs of any status, except for HITs that have been deleted of with the DeleteHIT operation or that have been auto-deleted.
|
184 | */
|
185 | listHITs(params: MTurk.Types.ListHITsRequest, callback?: (err: AWSError, data: MTurk.Types.ListHITsResponse) => void): Request<MTurk.Types.ListHITsResponse, AWSError>;
|
186 | /**
|
187 | * The ListHITs operation returns all of a Requester's HITs. The operation returns HITs of any status, except for HITs that have been deleted of with the DeleteHIT operation or that have been auto-deleted.
|
188 | */
|
189 | listHITs(callback?: (err: AWSError, data: MTurk.Types.ListHITsResponse) => void): Request<MTurk.Types.ListHITsResponse, AWSError>;
|
190 | /**
|
191 | * The ListHITsForQualificationType operation returns the HITs that use the given Qualification type for a Qualification requirement. The operation returns HITs of any status, except for HITs that have been deleted with the DeleteHIT operation or that have been auto-deleted.
|
192 | */
|
193 | listHITsForQualificationType(params: MTurk.Types.ListHITsForQualificationTypeRequest, callback?: (err: AWSError, data: MTurk.Types.ListHITsForQualificationTypeResponse) => void): Request<MTurk.Types.ListHITsForQualificationTypeResponse, AWSError>;
|
194 | /**
|
195 | * The ListHITsForQualificationType operation returns the HITs that use the given Qualification type for a Qualification requirement. The operation returns HITs of any status, except for HITs that have been deleted with the DeleteHIT operation or that have been auto-deleted.
|
196 | */
|
197 | listHITsForQualificationType(callback?: (err: AWSError, data: MTurk.Types.ListHITsForQualificationTypeResponse) => void): Request<MTurk.Types.ListHITsForQualificationTypeResponse, AWSError>;
|
198 | /**
|
199 | * The ListQualificationRequests operation retrieves requests for Qualifications of a particular Qualification type. The owner of the Qualification type calls this operation to poll for pending requests, and accepts them using the AcceptQualification operation.
|
200 | */
|
201 | listQualificationRequests(params: MTurk.Types.ListQualificationRequestsRequest, callback?: (err: AWSError, data: MTurk.Types.ListQualificationRequestsResponse) => void): Request<MTurk.Types.ListQualificationRequestsResponse, AWSError>;
|
202 | /**
|
203 | * The ListQualificationRequests operation retrieves requests for Qualifications of a particular Qualification type. The owner of the Qualification type calls this operation to poll for pending requests, and accepts them using the AcceptQualification operation.
|
204 | */
|
205 | listQualificationRequests(callback?: (err: AWSError, data: MTurk.Types.ListQualificationRequestsResponse) => void): Request<MTurk.Types.ListQualificationRequestsResponse, AWSError>;
|
206 | /**
|
207 | * The ListQualificationTypes operation returns a list of Qualification types, filtered by an optional search term.
|
208 | */
|
209 | listQualificationTypes(params: MTurk.Types.ListQualificationTypesRequest, callback?: (err: AWSError, data: MTurk.Types.ListQualificationTypesResponse) => void): Request<MTurk.Types.ListQualificationTypesResponse, AWSError>;
|
210 | /**
|
211 | * The ListQualificationTypes operation returns a list of Qualification types, filtered by an optional search term.
|
212 | */
|
213 | listQualificationTypes(callback?: (err: AWSError, data: MTurk.Types.ListQualificationTypesResponse) => void): Request<MTurk.Types.ListQualificationTypesResponse, AWSError>;
|
214 | /**
|
215 | * The ListReviewPolicyResultsForHIT operation retrieves the computed results and the actions taken in the course of executing your Review Policies for a given HIT. For information about how to specify Review Policies when you call CreateHIT, see Review Policies. The ListReviewPolicyResultsForHIT operation can return results for both Assignment-level and HIT-level review results.
|
216 | */
|
217 | listReviewPolicyResultsForHIT(params: MTurk.Types.ListReviewPolicyResultsForHITRequest, callback?: (err: AWSError, data: MTurk.Types.ListReviewPolicyResultsForHITResponse) => void): Request<MTurk.Types.ListReviewPolicyResultsForHITResponse, AWSError>;
|
218 | /**
|
219 | * The ListReviewPolicyResultsForHIT operation retrieves the computed results and the actions taken in the course of executing your Review Policies for a given HIT. For information about how to specify Review Policies when you call CreateHIT, see Review Policies. The ListReviewPolicyResultsForHIT operation can return results for both Assignment-level and HIT-level review results.
|
220 | */
|
221 | listReviewPolicyResultsForHIT(callback?: (err: AWSError, data: MTurk.Types.ListReviewPolicyResultsForHITResponse) => void): Request<MTurk.Types.ListReviewPolicyResultsForHITResponse, AWSError>;
|
222 | /**
|
223 | * The ListReviewableHITs operation retrieves the HITs with Status equal to Reviewable or Status equal to Reviewing that belong to the Requester calling the operation.
|
224 | */
|
225 | listReviewableHITs(params: MTurk.Types.ListReviewableHITsRequest, callback?: (err: AWSError, data: MTurk.Types.ListReviewableHITsResponse) => void): Request<MTurk.Types.ListReviewableHITsResponse, AWSError>;
|
226 | /**
|
227 | * The ListReviewableHITs operation retrieves the HITs with Status equal to Reviewable or Status equal to Reviewing that belong to the Requester calling the operation.
|
228 | */
|
229 | listReviewableHITs(callback?: (err: AWSError, data: MTurk.Types.ListReviewableHITsResponse) => void): Request<MTurk.Types.ListReviewableHITsResponse, AWSError>;
|
230 | /**
|
231 | * The ListWorkersBlocks operation retrieves a list of Workers who are blocked from working on your HITs.
|
232 | */
|
233 | listWorkerBlocks(params: MTurk.Types.ListWorkerBlocksRequest, callback?: (err: AWSError, data: MTurk.Types.ListWorkerBlocksResponse) => void): Request<MTurk.Types.ListWorkerBlocksResponse, AWSError>;
|
234 | /**
|
235 | * The ListWorkersBlocks operation retrieves a list of Workers who are blocked from working on your HITs.
|
236 | */
|
237 | listWorkerBlocks(callback?: (err: AWSError, data: MTurk.Types.ListWorkerBlocksResponse) => void): Request<MTurk.Types.ListWorkerBlocksResponse, AWSError>;
|
238 | /**
|
239 | * The ListWorkersWithQualificationType operation returns all of the Workers that have been associated with a given Qualification type.
|
240 | */
|
241 | listWorkersWithQualificationType(params: MTurk.Types.ListWorkersWithQualificationTypeRequest, callback?: (err: AWSError, data: MTurk.Types.ListWorkersWithQualificationTypeResponse) => void): Request<MTurk.Types.ListWorkersWithQualificationTypeResponse, AWSError>;
|
242 | /**
|
243 | * The ListWorkersWithQualificationType operation returns all of the Workers that have been associated with a given Qualification type.
|
244 | */
|
245 | listWorkersWithQualificationType(callback?: (err: AWSError, data: MTurk.Types.ListWorkersWithQualificationTypeResponse) => void): Request<MTurk.Types.ListWorkersWithQualificationTypeResponse, AWSError>;
|
246 | /**
|
247 | * The NotifyWorkers operation sends an email to one or more Workers that you specify with the Worker ID. You can specify up to 100 Worker IDs to send the same message with a single call to the NotifyWorkers operation. The NotifyWorkers operation will send a notification email to a Worker only if you have previously approved or rejected work from the Worker.
|
248 | */
|
249 | notifyWorkers(params: MTurk.Types.NotifyWorkersRequest, callback?: (err: AWSError, data: MTurk.Types.NotifyWorkersResponse) => void): Request<MTurk.Types.NotifyWorkersResponse, AWSError>;
|
250 | /**
|
251 | * The NotifyWorkers operation sends an email to one or more Workers that you specify with the Worker ID. You can specify up to 100 Worker IDs to send the same message with a single call to the NotifyWorkers operation. The NotifyWorkers operation will send a notification email to a Worker only if you have previously approved or rejected work from the Worker.
|
252 | */
|
253 | notifyWorkers(callback?: (err: AWSError, data: MTurk.Types.NotifyWorkersResponse) => void): Request<MTurk.Types.NotifyWorkersResponse, AWSError>;
|
254 | /**
|
255 | * The RejectAssignment operation rejects the results of a completed assignment. You can include an optional feedback message with the rejection, which the Worker can see in the Status section of the web site. When you include a feedback message with the rejection, it helps the Worker understand why the assignment was rejected, and can improve the quality of the results the Worker submits in the future. Only the Requester who created the HIT can reject an assignment for the HIT.
|
256 | */
|
257 | rejectAssignment(params: MTurk.Types.RejectAssignmentRequest, callback?: (err: AWSError, data: MTurk.Types.RejectAssignmentResponse) => void): Request<MTurk.Types.RejectAssignmentResponse, AWSError>;
|
258 | /**
|
259 | * The RejectAssignment operation rejects the results of a completed assignment. You can include an optional feedback message with the rejection, which the Worker can see in the Status section of the web site. When you include a feedback message with the rejection, it helps the Worker understand why the assignment was rejected, and can improve the quality of the results the Worker submits in the future. Only the Requester who created the HIT can reject an assignment for the HIT.
|
260 | */
|
261 | rejectAssignment(callback?: (err: AWSError, data: MTurk.Types.RejectAssignmentResponse) => void): Request<MTurk.Types.RejectAssignmentResponse, AWSError>;
|
262 | /**
|
263 | * The RejectQualificationRequest operation rejects a user's request for a Qualification. You can provide a text message explaining why the request was rejected. The Worker who made the request can see this message.
|
264 | */
|
265 | rejectQualificationRequest(params: MTurk.Types.RejectQualificationRequestRequest, callback?: (err: AWSError, data: MTurk.Types.RejectQualificationRequestResponse) => void): Request<MTurk.Types.RejectQualificationRequestResponse, AWSError>;
|
266 | /**
|
267 | * The RejectQualificationRequest operation rejects a user's request for a Qualification. You can provide a text message explaining why the request was rejected. The Worker who made the request can see this message.
|
268 | */
|
269 | rejectQualificationRequest(callback?: (err: AWSError, data: MTurk.Types.RejectQualificationRequestResponse) => void): Request<MTurk.Types.RejectQualificationRequestResponse, AWSError>;
|
270 | /**
|
271 | * The SendBonus operation issues a payment of money from your account to a Worker. This payment happens separately from the reward you pay to the Worker when you approve the Worker's assignment. The SendBonus operation requires the Worker's ID and the assignment ID as parameters to initiate payment of the bonus. You must include a message that explains the reason for the bonus payment, as the Worker may not be expecting the payment. Amazon Mechanical Turk collects a fee for bonus payments, similar to the HIT listing fee. This operation fails if your account does not have enough funds to pay for both the bonus and the fees.
|
272 | */
|
273 | sendBonus(params: MTurk.Types.SendBonusRequest, callback?: (err: AWSError, data: MTurk.Types.SendBonusResponse) => void): Request<MTurk.Types.SendBonusResponse, AWSError>;
|
274 | /**
|
275 | * The SendBonus operation issues a payment of money from your account to a Worker. This payment happens separately from the reward you pay to the Worker when you approve the Worker's assignment. The SendBonus operation requires the Worker's ID and the assignment ID as parameters to initiate payment of the bonus. You must include a message that explains the reason for the bonus payment, as the Worker may not be expecting the payment. Amazon Mechanical Turk collects a fee for bonus payments, similar to the HIT listing fee. This operation fails if your account does not have enough funds to pay for both the bonus and the fees.
|
276 | */
|
277 | sendBonus(callback?: (err: AWSError, data: MTurk.Types.SendBonusResponse) => void): Request<MTurk.Types.SendBonusResponse, AWSError>;
|
278 | /**
|
279 | * The SendTestEventNotification operation causes Amazon Mechanical Turk to send a notification message as if a HIT event occurred, according to the provided notification specification. This allows you to test notifications without setting up notifications for a real HIT type and trying to trigger them using the website. When you call this operation, the service attempts to send the test notification immediately.
|
280 | */
|
281 | sendTestEventNotification(params: MTurk.Types.SendTestEventNotificationRequest, callback?: (err: AWSError, data: MTurk.Types.SendTestEventNotificationResponse) => void): Request<MTurk.Types.SendTestEventNotificationResponse, AWSError>;
|
282 | /**
|
283 | * The SendTestEventNotification operation causes Amazon Mechanical Turk to send a notification message as if a HIT event occurred, according to the provided notification specification. This allows you to test notifications without setting up notifications for a real HIT type and trying to trigger them using the website. When you call this operation, the service attempts to send the test notification immediately.
|
284 | */
|
285 | sendTestEventNotification(callback?: (err: AWSError, data: MTurk.Types.SendTestEventNotificationResponse) => void): Request<MTurk.Types.SendTestEventNotificationResponse, AWSError>;
|
286 | /**
|
287 | * The UpdateExpirationForHIT operation allows you update the expiration time of a HIT. If you update it to a time in the past, the HIT will be immediately expired.
|
288 | */
|
289 | updateExpirationForHIT(params: MTurk.Types.UpdateExpirationForHITRequest, callback?: (err: AWSError, data: MTurk.Types.UpdateExpirationForHITResponse) => void): Request<MTurk.Types.UpdateExpirationForHITResponse, AWSError>;
|
290 | /**
|
291 | * The UpdateExpirationForHIT operation allows you update the expiration time of a HIT. If you update it to a time in the past, the HIT will be immediately expired.
|
292 | */
|
293 | updateExpirationForHIT(callback?: (err: AWSError, data: MTurk.Types.UpdateExpirationForHITResponse) => void): Request<MTurk.Types.UpdateExpirationForHITResponse, AWSError>;
|
294 | /**
|
295 | * The UpdateHITReviewStatus operation updates the status of a HIT. If the status is Reviewable, this operation can update the status to Reviewing, or it can revert a Reviewing HIT back to the Reviewable status.
|
296 | */
|
297 | updateHITReviewStatus(params: MTurk.Types.UpdateHITReviewStatusRequest, callback?: (err: AWSError, data: MTurk.Types.UpdateHITReviewStatusResponse) => void): Request<MTurk.Types.UpdateHITReviewStatusResponse, AWSError>;
|
298 | /**
|
299 | * The UpdateHITReviewStatus operation updates the status of a HIT. If the status is Reviewable, this operation can update the status to Reviewing, or it can revert a Reviewing HIT back to the Reviewable status.
|
300 | */
|
301 | updateHITReviewStatus(callback?: (err: AWSError, data: MTurk.Types.UpdateHITReviewStatusResponse) => void): Request<MTurk.Types.UpdateHITReviewStatusResponse, AWSError>;
|
302 | /**
|
303 | * The UpdateHITTypeOfHIT operation allows you to change the HITType properties of a HIT. This operation disassociates the HIT from its old HITType properties and associates it with the new HITType properties. The HIT takes on the properties of the new HITType in place of the old ones.
|
304 | */
|
305 | updateHITTypeOfHIT(params: MTurk.Types.UpdateHITTypeOfHITRequest, callback?: (err: AWSError, data: MTurk.Types.UpdateHITTypeOfHITResponse) => void): Request<MTurk.Types.UpdateHITTypeOfHITResponse, AWSError>;
|
306 | /**
|
307 | * The UpdateHITTypeOfHIT operation allows you to change the HITType properties of a HIT. This operation disassociates the HIT from its old HITType properties and associates it with the new HITType properties. The HIT takes on the properties of the new HITType in place of the old ones.
|
308 | */
|
309 | updateHITTypeOfHIT(callback?: (err: AWSError, data: MTurk.Types.UpdateHITTypeOfHITResponse) => void): Request<MTurk.Types.UpdateHITTypeOfHITResponse, AWSError>;
|
310 | /**
|
311 | * The UpdateNotificationSettings operation creates, updates, disables or re-enables notifications for a HIT type. If you call the UpdateNotificationSettings operation for a HIT type that already has a notification specification, the operation replaces the old specification with a new one. You can call the UpdateNotificationSettings operation to enable or disable notifications for the HIT type, without having to modify the notification specification itself by providing updates to the Active status without specifying a new notification specification. To change the Active status of a HIT type's notifications, the HIT type must already have a notification specification, or one must be provided in the same call to UpdateNotificationSettings.
|
312 | */
|
313 | updateNotificationSettings(params: MTurk.Types.UpdateNotificationSettingsRequest, callback?: (err: AWSError, data: MTurk.Types.UpdateNotificationSettingsResponse) => void): Request<MTurk.Types.UpdateNotificationSettingsResponse, AWSError>;
|
314 | /**
|
315 | * The UpdateNotificationSettings operation creates, updates, disables or re-enables notifications for a HIT type. If you call the UpdateNotificationSettings operation for a HIT type that already has a notification specification, the operation replaces the old specification with a new one. You can call the UpdateNotificationSettings operation to enable or disable notifications for the HIT type, without having to modify the notification specification itself by providing updates to the Active status without specifying a new notification specification. To change the Active status of a HIT type's notifications, the HIT type must already have a notification specification, or one must be provided in the same call to UpdateNotificationSettings.
|
316 | */
|
317 | updateNotificationSettings(callback?: (err: AWSError, data: MTurk.Types.UpdateNotificationSettingsResponse) => void): Request<MTurk.Types.UpdateNotificationSettingsResponse, AWSError>;
|
318 | /**
|
319 | * The UpdateQualificationType operation modifies the attributes of an existing Qualification type, which is represented by a QualificationType data structure. Only the owner of a Qualification type can modify its attributes. Most attributes of a Qualification type can be changed after the type has been created. However, the Name and Keywords fields cannot be modified. The RetryDelayInSeconds parameter can be modified or added to change the delay or to enable retries, but RetryDelayInSeconds cannot be used to disable retries. You can use this operation to update the test for a Qualification type. The test is updated based on the values specified for the Test, TestDurationInSeconds and AnswerKey parameters. All three parameters specify the updated test. If you are updating the test for a type, you must specify the Test and TestDurationInSeconds parameters. The AnswerKey parameter is optional; omitting it specifies that the updated test does not have an answer key. If you omit the Test parameter, the test for the Qualification type is unchanged. There is no way to remove a test from a Qualification type that has one. If the type already has a test, you cannot update it to be AutoGranted. If the Qualification type does not have a test and one is provided by an update, the type will henceforth have a test. If you want to update the test duration or answer key for an existing test without changing the questions, you must specify a Test parameter with the original questions, along with the updated values. If you provide an updated Test but no AnswerKey, the new test will not have an answer key. Requests for such Qualifications must be granted manually. You can also update the AutoGranted and AutoGrantedValue attributes of the Qualification type.
|
320 | */
|
321 | updateQualificationType(params: MTurk.Types.UpdateQualificationTypeRequest, callback?: (err: AWSError, data: MTurk.Types.UpdateQualificationTypeResponse) => void): Request<MTurk.Types.UpdateQualificationTypeResponse, AWSError>;
|
322 | /**
|
323 | * The UpdateQualificationType operation modifies the attributes of an existing Qualification type, which is represented by a QualificationType data structure. Only the owner of a Qualification type can modify its attributes. Most attributes of a Qualification type can be changed after the type has been created. However, the Name and Keywords fields cannot be modified. The RetryDelayInSeconds parameter can be modified or added to change the delay or to enable retries, but RetryDelayInSeconds cannot be used to disable retries. You can use this operation to update the test for a Qualification type. The test is updated based on the values specified for the Test, TestDurationInSeconds and AnswerKey parameters. All three parameters specify the updated test. If you are updating the test for a type, you must specify the Test and TestDurationInSeconds parameters. The AnswerKey parameter is optional; omitting it specifies that the updated test does not have an answer key. If you omit the Test parameter, the test for the Qualification type is unchanged. There is no way to remove a test from a Qualification type that has one. If the type already has a test, you cannot update it to be AutoGranted. If the Qualification type does not have a test and one is provided by an update, the type will henceforth have a test. If you want to update the test duration or answer key for an existing test without changing the questions, you must specify a Test parameter with the original questions, along with the updated values. If you provide an updated Test but no AnswerKey, the new test will not have an answer key. Requests for such Qualifications must be granted manually. You can also update the AutoGranted and AutoGrantedValue attributes of the Qualification type.
|
324 | */
|
325 | updateQualificationType(callback?: (err: AWSError, data: MTurk.Types.UpdateQualificationTypeResponse) => void): Request<MTurk.Types.UpdateQualificationTypeResponse, AWSError>;
|
326 | }
|
327 | declare namespace MTurk {
|
328 | export interface AcceptQualificationRequestRequest {
|
329 | |
330 |
|
331 |
|
332 | QualificationRequestId: String;
|
333 | |
334 |
|
335 |
|
336 | IntegerValue?: Integer;
|
337 | }
|
338 | export interface AcceptQualificationRequestResponse {
|
339 | }
|
340 | export interface ApproveAssignmentRequest {
|
341 | |
342 |
|
343 |
|
344 | AssignmentId: EntityId;
|
345 | |
346 |
|
347 |
|
348 | RequesterFeedback?: String;
|
349 | |
350 |
|
351 |
|
352 | OverrideRejection?: Boolean;
|
353 | }
|
354 | export interface ApproveAssignmentResponse {
|
355 | }
|
356 | export interface Assignment {
|
357 | |
358 |
|
359 |
|
360 | AssignmentId?: EntityId;
|
361 | |
362 |
|
363 |
|
364 | WorkerId?: CustomerId;
|
365 | |
366 |
|
367 |
|
368 | HITId?: EntityId;
|
369 | |
370 |
|
371 |
|
372 | AssignmentStatus?: AssignmentStatus;
|
373 | |
374 |
|
375 |
|
376 | AutoApprovalTime?: Timestamp;
|
377 | |
378 |
|
379 |
|
380 | AcceptTime?: Timestamp;
|
381 | |
382 |
|
383 |
|
384 | SubmitTime?: Timestamp;
|
385 | |
386 |
|
387 |
|
388 | ApprovalTime?: Timestamp;
|
389 | |
390 |
|
391 |
|
392 | RejectionTime?: Timestamp;
|
393 | |
394 |
|
395 |
|
396 | Deadline?: Timestamp;
|
397 | |
398 |
|
399 |
|
400 | Answer?: String;
|
401 | |
402 |
|
403 |
|
404 | RequesterFeedback?: String;
|
405 | }
|
406 | export type AssignmentList = Assignment[];
|
407 | export type AssignmentStatus = "Submitted"|"Approved"|"Rejected"|string;
|
408 | export type AssignmentStatusList = AssignmentStatus[];
|
409 | export interface AssociateQualificationWithWorkerRequest {
|
410 | |
411 |
|
412 |
|
413 | QualificationTypeId: EntityId;
|
414 | |
415 |
|
416 |
|
417 | WorkerId: CustomerId;
|
418 | |
419 |
|
420 |
|
421 | IntegerValue?: Integer;
|
422 | |
423 |
|
424 |
|
425 | SendNotification?: Boolean;
|
426 | }
|
427 | export interface AssociateQualificationWithWorkerResponse {
|
428 | }
|
429 | export interface BonusPayment {
|
430 | |
431 |
|
432 |
|
433 | WorkerId?: CustomerId;
|
434 | BonusAmount?: CurrencyAmount;
|
435 | |
436 |
|
437 |
|
438 | AssignmentId?: EntityId;
|
439 | |
440 |
|
441 |
|
442 | Reason?: String;
|
443 | |
444 |
|
445 |
|
446 | GrantTime?: Timestamp;
|
447 | }
|
448 | export type BonusPaymentList = BonusPayment[];
|
449 | export type Boolean = boolean;
|
450 | export type Comparator = "LessThan"|"LessThanOrEqualTo"|"GreaterThan"|"GreaterThanOrEqualTo"|"EqualTo"|"NotEqualTo"|"Exists"|"DoesNotExist"|"In"|"NotIn"|string;
|
451 | export type CountryParameters = string;
|
452 | export interface CreateAdditionalAssignmentsForHITRequest {
|
453 | |
454 |
|
455 |
|
456 | HITId: EntityId;
|
457 | |
458 |
|
459 |
|
460 | NumberOfAdditionalAssignments: Integer;
|
461 | |
462 |
|
463 |
|
464 | UniqueRequestToken?: IdempotencyToken;
|
465 | }
|
466 | export interface CreateAdditionalAssignmentsForHITResponse {
|
467 | }
|
468 | export interface CreateHITRequest {
|
469 | |
470 |
|
471 |
|
472 | MaxAssignments?: Integer;
|
473 | |
474 |
|
475 |
|
476 | AutoApprovalDelayInSeconds?: Long;
|
477 | |
478 |
|
479 |
|
480 | LifetimeInSeconds: Long;
|
481 | |
482 |
|
483 |
|
484 | AssignmentDurationInSeconds: Long;
|
485 | |
486 |
|
487 |
|
488 | Reward: CurrencyAmount;
|
489 | |
490 |
|
491 |
|
492 | Title: String;
|
493 | |
494 |
|
495 |
|
496 | Keywords?: String;
|
497 | |
498 |
|
499 |
|
500 | Description: String;
|
501 | |
502 |
|
503 |
|
504 | Question?: String;
|
505 | |
506 |
|
507 |
|
508 | RequesterAnnotation?: String;
|
509 | |
510 |
|
511 |
|
512 | QualificationRequirements?: QualificationRequirementList;
|
513 | |
514 |
|
515 |
|
516 | UniqueRequestToken?: IdempotencyToken;
|
517 | |
518 |
|
519 |
|
520 | AssignmentReviewPolicy?: ReviewPolicy;
|
521 | |
522 |
|
523 |
|
524 | HITReviewPolicy?: ReviewPolicy;
|
525 | |
526 |
|
527 |
|
528 | HITLayoutId?: EntityId;
|
529 | |
530 |
|
531 |
|
532 | HITLayoutParameters?: HITLayoutParameterList;
|
533 | }
|
534 | export interface CreateHITResponse {
|
535 | |
536 |
|
537 |
|
538 | HIT?: HIT;
|
539 | }
|
540 | export interface CreateHITTypeRequest {
|
541 | |
542 |
|
543 |
|
544 | AutoApprovalDelayInSeconds?: Long;
|
545 | |
546 |
|
547 |
|
548 | AssignmentDurationInSeconds: Long;
|
549 | |
550 |
|
551 |
|
552 | Reward: CurrencyAmount;
|
553 | |
554 |
|
555 |
|
556 | Title: String;
|
557 | |
558 |
|
559 |
|
560 | Keywords?: String;
|
561 | |
562 |
|
563 |
|
564 | Description: String;
|
565 | |
566 |
|
567 |
|
568 | QualificationRequirements?: QualificationRequirementList;
|
569 | }
|
570 | export interface CreateHITTypeResponse {
|
571 | |
572 |
|
573 |
|
574 | HITTypeId?: EntityId;
|
575 | }
|
576 | export interface CreateHITWithHITTypeRequest {
|
577 | |
578 |
|
579 |
|
580 | HITTypeId: EntityId;
|
581 | |
582 |
|
583 |
|
584 | MaxAssignments?: Integer;
|
585 | |
586 |
|
587 |
|
588 | LifetimeInSeconds: Long;
|
589 | |
590 |
|
591 |
|
592 | Question?: String;
|
593 | |
594 |
|
595 |
|
596 | RequesterAnnotation?: String;
|
597 | |
598 |
|
599 |
|
600 | UniqueRequestToken?: IdempotencyToken;
|
601 | |
602 |
|
603 |
|
604 | AssignmentReviewPolicy?: ReviewPolicy;
|
605 | |
606 |
|
607 |
|
608 | HITReviewPolicy?: ReviewPolicy;
|
609 | |
610 |
|
611 |
|
612 | HITLayoutId?: EntityId;
|
613 | |
614 |
|
615 |
|
616 | HITLayoutParameters?: HITLayoutParameterList;
|
617 | }
|
618 | export interface CreateHITWithHITTypeResponse {
|
619 | |
620 |
|
621 |
|
622 | HIT?: HIT;
|
623 | }
|
624 | export interface CreateQualificationTypeRequest {
|
625 | |
626 |
|
627 |
|
628 | Name: String;
|
629 | |
630 |
|
631 |
|
632 | Keywords?: String;
|
633 | |
634 |
|
635 |
|
636 | Description: String;
|
637 | |
638 |
|
639 |
|
640 | QualificationTypeStatus: QualificationTypeStatus;
|
641 | |
642 |
|
643 |
|
644 | RetryDelayInSeconds?: Long;
|
645 | |
646 |
|
647 |
|
648 | Test?: String;
|
649 | |
650 |
|
651 |
|
652 | AnswerKey?: String;
|
653 | |
654 |
|
655 |
|
656 | TestDurationInSeconds?: Long;
|
657 | |
658 |
|
659 |
|
660 | AutoGranted?: Boolean;
|
661 | |
662 |
|
663 |
|
664 | AutoGrantedValue?: Integer;
|
665 | }
|
666 | export interface CreateQualificationTypeResponse {
|
667 | |
668 |
|
669 |
|
670 | QualificationType?: QualificationType;
|
671 | }
|
672 | export interface CreateWorkerBlockRequest {
|
673 | |
674 |
|
675 |
|
676 | WorkerId: CustomerId;
|
677 | |
678 |
|
679 |
|
680 | Reason: String;
|
681 | }
|
682 | export interface CreateWorkerBlockResponse {
|
683 | }
|
684 | export type CurrencyAmount = string;
|
685 | export type CustomerId = string;
|
686 | export type CustomerIdList = CustomerId[];
|
687 | export interface DeleteHITRequest {
|
688 | |
689 |
|
690 |
|
691 | HITId: EntityId;
|
692 | }
|
693 | export interface DeleteHITResponse {
|
694 | }
|
695 | export interface DeleteQualificationTypeRequest {
|
696 | |
697 |
|
698 |
|
699 | QualificationTypeId: EntityId;
|
700 | }
|
701 | export interface DeleteQualificationTypeResponse {
|
702 | }
|
703 | export interface DeleteWorkerBlockRequest {
|
704 | |
705 |
|
706 |
|
707 | WorkerId: CustomerId;
|
708 | |
709 |
|
710 |
|
711 | Reason?: String;
|
712 | }
|
713 | export interface DeleteWorkerBlockResponse {
|
714 | }
|
715 | export interface DisassociateQualificationFromWorkerRequest {
|
716 | |
717 |
|
718 |
|
719 | WorkerId: CustomerId;
|
720 | |
721 |
|
722 |
|
723 | QualificationTypeId: EntityId;
|
724 | |
725 |
|
726 |
|
727 | Reason?: String;
|
728 | }
|
729 | export interface DisassociateQualificationFromWorkerResponse {
|
730 | }
|
731 | export type EntityId = string;
|
732 | export type EventType = "AssignmentAccepted"|"AssignmentAbandoned"|"AssignmentReturned"|"AssignmentSubmitted"|"AssignmentRejected"|"AssignmentApproved"|"HITCreated"|"HITExpired"|"HITReviewable"|"HITExtended"|"HITDisposed"|"Ping"|string;
|
733 | export type EventTypeList = EventType[];
|
734 | export interface GetAccountBalanceRequest {
|
735 | }
|
736 | export interface GetAccountBalanceResponse {
|
737 | AvailableBalance?: CurrencyAmount;
|
738 | OnHoldBalance?: CurrencyAmount;
|
739 | }
|
740 | export interface GetAssignmentRequest {
|
741 | |
742 |
|
743 |
|
744 | AssignmentId: EntityId;
|
745 | }
|
746 | export interface GetAssignmentResponse {
|
747 | |
748 |
|
749 |
|
750 | Assignment?: Assignment;
|
751 | |
752 |
|
753 |
|
754 | HIT?: HIT;
|
755 | }
|
756 | export interface GetFileUploadURLRequest {
|
757 | |
758 |
|
759 |
|
760 | AssignmentId: EntityId;
|
761 | |
762 |
|
763 |
|
764 | QuestionIdentifier: String;
|
765 | }
|
766 | export interface GetFileUploadURLResponse {
|
767 | |
768 |
|
769 |
|
770 | FileUploadURL?: String;
|
771 | }
|
772 | export interface GetHITRequest {
|
773 | |
774 |
|
775 |
|
776 | HITId: EntityId;
|
777 | }
|
778 | export interface GetHITResponse {
|
779 | |
780 |
|
781 |
|
782 | HIT?: HIT;
|
783 | }
|
784 | export interface GetQualificationScoreRequest {
|
785 | |
786 |
|
787 |
|
788 | QualificationTypeId: EntityId;
|
789 | |
790 |
|
791 |
|
792 | WorkerId: CustomerId;
|
793 | }
|
794 | export interface GetQualificationScoreResponse {
|
795 | |
796 |
|
797 |
|
798 | Qualification?: Qualification;
|
799 | }
|
800 | export interface GetQualificationTypeRequest {
|
801 | |
802 |
|
803 |
|
804 | QualificationTypeId: EntityId;
|
805 | }
|
806 | export interface GetQualificationTypeResponse {
|
807 | |
808 |
|
809 |
|
810 | QualificationType?: QualificationType;
|
811 | }
|
812 | export interface HIT {
|
813 | |
814 |
|
815 |
|
816 | HITId?: EntityId;
|
817 | |
818 |
|
819 |
|
820 | HITTypeId?: EntityId;
|
821 | |
822 |
|
823 |
|
824 | HITGroupId?: EntityId;
|
825 | |
826 |
|
827 |
|
828 | HITLayoutId?: EntityId;
|
829 | |
830 |
|
831 |
|
832 | CreationTime?: Timestamp;
|
833 | |
834 |
|
835 |
|
836 | Title?: String;
|
837 | |
838 |
|
839 |
|
840 | Description?: String;
|
841 | |
842 |
|
843 |
|
844 | Question?: String;
|
845 | |
846 |
|
847 |
|
848 | Keywords?: String;
|
849 | |
850 |
|
851 |
|
852 | HITStatus?: HITStatus;
|
853 | |
854 |
|
855 |
|
856 | MaxAssignments?: Integer;
|
857 | Reward?: CurrencyAmount;
|
858 | |
859 |
|
860 |
|
861 | AutoApprovalDelayInSeconds?: Long;
|
862 | |
863 |
|
864 |
|
865 | Expiration?: Timestamp;
|
866 | |
867 |
|
868 |
|
869 | AssignmentDurationInSeconds?: Long;
|
870 | |
871 |
|
872 |
|
873 | RequesterAnnotation?: String;
|
874 | |
875 |
|
876 |
|
877 | QualificationRequirements?: QualificationRequirementList;
|
878 | |
879 |
|
880 |
|
881 | HITReviewStatus?: HITReviewStatus;
|
882 | |
883 |
|
884 |
|
885 | NumberOfAssignmentsPending?: Integer;
|
886 | |
887 |
|
888 |
|
889 | NumberOfAssignmentsAvailable?: Integer;
|
890 | |
891 |
|
892 |
|
893 | NumberOfAssignmentsCompleted?: Integer;
|
894 | }
|
895 | export type HITAccessActions = "Accept"|"PreviewAndAccept"|"DiscoverPreviewAndAccept"|string;
|
896 | export interface HITLayoutParameter {
|
897 | |
898 |
|
899 |
|
900 | Name: String;
|
901 | |
902 |
|
903 |
|
904 | Value: String;
|
905 | }
|
906 | export type HITLayoutParameterList = HITLayoutParameter[];
|
907 | export type HITList = HIT[];
|
908 | export type HITReviewStatus = "NotReviewed"|"MarkedForReview"|"ReviewedAppropriate"|"ReviewedInappropriate"|string;
|
909 | export type HITStatus = "Assignable"|"Unassignable"|"Reviewable"|"Reviewing"|"Disposed"|string;
|
910 | export type IdempotencyToken = string;
|
911 | export type Integer = number;
|
912 | export type IntegerList = Integer[];
|
913 | export interface ListAssignmentsForHITRequest {
|
914 | |
915 |
|
916 |
|
917 | HITId: EntityId;
|
918 | |
919 |
|
920 |
|
921 | NextToken?: PaginationToken;
|
922 | MaxResults?: ResultSize;
|
923 | |
924 |
|
925 |
|
926 | AssignmentStatuses?: AssignmentStatusList;
|
927 | }
|
928 | export interface ListAssignmentsForHITResponse {
|
929 | NextToken?: PaginationToken;
|
930 | |
931 |
|
932 |
|
933 | NumResults?: Integer;
|
934 | |
935 |
|
936 |
|
937 | Assignments?: AssignmentList;
|
938 | }
|
939 | export interface ListBonusPaymentsRequest {
|
940 | |
941 |
|
942 |
|
943 | HITId?: EntityId;
|
944 | |
945 |
|
946 |
|
947 | AssignmentId?: EntityId;
|
948 | |
949 |
|
950 |
|
951 | NextToken?: PaginationToken;
|
952 | MaxResults?: ResultSize;
|
953 | }
|
954 | export interface ListBonusPaymentsResponse {
|
955 | |
956 |
|
957 |
|
958 | NumResults?: Integer;
|
959 | NextToken?: PaginationToken;
|
960 | |
961 |
|
962 |
|
963 | BonusPayments?: BonusPaymentList;
|
964 | }
|
965 | export interface ListHITsForQualificationTypeRequest {
|
966 | |
967 |
|
968 |
|
969 | QualificationTypeId: EntityId;
|
970 | |
971 |
|
972 |
|
973 | NextToken?: PaginationToken;
|
974 | |
975 |
|
976 |
|
977 | MaxResults?: ResultSize;
|
978 | }
|
979 | export interface ListHITsForQualificationTypeResponse {
|
980 | NextToken?: PaginationToken;
|
981 | |
982 |
|
983 |
|
984 | NumResults?: Integer;
|
985 | |
986 |
|
987 |
|
988 | HITs?: HITList;
|
989 | }
|
990 | export interface ListHITsRequest {
|
991 | |
992 |
|
993 |
|
994 | NextToken?: PaginationToken;
|
995 | MaxResults?: ResultSize;
|
996 | }
|
997 | export interface ListHITsResponse {
|
998 | NextToken?: PaginationToken;
|
999 | |
1000 |
|
1001 |
|
1002 | NumResults?: Integer;
|
1003 | |
1004 |
|
1005 |
|
1006 | HITs?: HITList;
|
1007 | }
|
1008 | export interface ListQualificationRequestsRequest {
|
1009 | |
1010 |
|
1011 |
|
1012 | QualificationTypeId?: EntityId;
|
1013 | NextToken?: PaginationToken;
|
1014 | |
1015 |
|
1016 |
|
1017 | MaxResults?: ResultSize;
|
1018 | }
|
1019 | export interface ListQualificationRequestsResponse {
|
1020 | |
1021 |
|
1022 |
|
1023 | NumResults?: Integer;
|
1024 | NextToken?: PaginationToken;
|
1025 | |
1026 |
|
1027 |
|
1028 | QualificationRequests?: QualificationRequestList;
|
1029 | }
|
1030 | export interface ListQualificationTypesRequest {
|
1031 | |
1032 |
|
1033 |
|
1034 | Query?: String;
|
1035 | |
1036 |
|
1037 |
|
1038 | MustBeRequestable: Boolean;
|
1039 | |
1040 |
|
1041 |
|
1042 | MustBeOwnedByCaller?: Boolean;
|
1043 | NextToken?: PaginationToken;
|
1044 | |
1045 |
|
1046 |
|
1047 | MaxResults?: ResultSize;
|
1048 | }
|
1049 | export interface ListQualificationTypesResponse {
|
1050 | |
1051 |
|
1052 |
|
1053 | NumResults?: Integer;
|
1054 | NextToken?: PaginationToken;
|
1055 | |
1056 |
|
1057 |
|
1058 | QualificationTypes?: QualificationTypeList;
|
1059 | }
|
1060 | export interface ListReviewPolicyResultsForHITRequest {
|
1061 | |
1062 |
|
1063 |
|
1064 | HITId: EntityId;
|
1065 | |
1066 |
|
1067 |
|
1068 | PolicyLevels?: ReviewPolicyLevelList;
|
1069 | |
1070 |
|
1071 |
|
1072 | RetrieveActions?: Boolean;
|
1073 | |
1074 |
|
1075 |
|
1076 | RetrieveResults?: Boolean;
|
1077 | |
1078 |
|
1079 |
|
1080 | NextToken?: PaginationToken;
|
1081 | |
1082 |
|
1083 |
|
1084 | MaxResults?: ResultSize;
|
1085 | }
|
1086 | export interface ListReviewPolicyResultsForHITResponse {
|
1087 | |
1088 |
|
1089 |
|
1090 | HITId?: EntityId;
|
1091 | |
1092 |
|
1093 |
|
1094 | AssignmentReviewPolicy?: ReviewPolicy;
|
1095 | |
1096 |
|
1097 |
|
1098 | HITReviewPolicy?: ReviewPolicy;
|
1099 | |
1100 |
|
1101 |
|
1102 | AssignmentReviewReport?: ReviewReport;
|
1103 | |
1104 |
|
1105 |
|
1106 | HITReviewReport?: ReviewReport;
|
1107 | NextToken?: PaginationToken;
|
1108 | }
|
1109 | export interface ListReviewableHITsRequest {
|
1110 | |
1111 |
|
1112 |
|
1113 | HITTypeId?: EntityId;
|
1114 | |
1115 |
|
1116 |
|
1117 | Status?: ReviewableHITStatus;
|
1118 | |
1119 |
|
1120 |
|
1121 | NextToken?: PaginationToken;
|
1122 | |
1123 |
|
1124 |
|
1125 | MaxResults?: ResultSize;
|
1126 | }
|
1127 | export interface ListReviewableHITsResponse {
|
1128 | NextToken?: PaginationToken;
|
1129 | |
1130 |
|
1131 |
|
1132 | NumResults?: Integer;
|
1133 | |
1134 |
|
1135 |
|
1136 | HITs?: HITList;
|
1137 | }
|
1138 | export interface ListWorkerBlocksRequest {
|
1139 | |
1140 |
|
1141 |
|
1142 | NextToken?: PaginationToken;
|
1143 | MaxResults?: ResultSize;
|
1144 | }
|
1145 | export interface ListWorkerBlocksResponse {
|
1146 | NextToken?: PaginationToken;
|
1147 | |
1148 |
|
1149 |
|
1150 | NumResults?: Integer;
|
1151 | |
1152 |
|
1153 |
|
1154 | WorkerBlocks?: WorkerBlockList;
|
1155 | }
|
1156 | export interface ListWorkersWithQualificationTypeRequest {
|
1157 | |
1158 |
|
1159 |
|
1160 | QualificationTypeId: EntityId;
|
1161 | |
1162 |
|
1163 |
|
1164 | Status?: QualificationStatus;
|
1165 | |
1166 |
|
1167 |
|
1168 | NextToken?: PaginationToken;
|
1169 | |
1170 |
|
1171 |
|
1172 | MaxResults?: ResultSize;
|
1173 | }
|
1174 | export interface ListWorkersWithQualificationTypeResponse {
|
1175 | NextToken?: PaginationToken;
|
1176 | |
1177 |
|
1178 |
|
1179 | NumResults?: Integer;
|
1180 | |
1181 |
|
1182 |
|
1183 | Qualifications?: QualificationList;
|
1184 | }
|
1185 | export interface Locale {
|
1186 | |
1187 |
|
1188 |
|
1189 | Country: CountryParameters;
|
1190 | |
1191 |
|
1192 |
|
1193 | Subdivision?: CountryParameters;
|
1194 | }
|
1195 | export type LocaleList = Locale[];
|
1196 | export type Long = number;
|
1197 | export interface NotificationSpecification {
|
1198 | |
1199 |
|
1200 |
|
1201 | Destination: String;
|
1202 | |
1203 |
|
1204 |
|
1205 | Transport: NotificationTransport;
|
1206 | |
1207 |
|
1208 |
|
1209 | Version: String;
|
1210 | |
1211 |
|
1212 |
|
1213 | EventTypes: EventTypeList;
|
1214 | }
|
1215 | export type NotificationTransport = "Email"|"SQS"|"SNS"|string;
|
1216 | export type NotifyWorkersFailureCode = "SoftFailure"|"HardFailure"|string;
|
1217 | export interface NotifyWorkersFailureStatus {
|
1218 | |
1219 |
|
1220 |
|
1221 | NotifyWorkersFailureCode?: NotifyWorkersFailureCode;
|
1222 | |
1223 |
|
1224 |
|
1225 | NotifyWorkersFailureMessage?: String;
|
1226 | |
1227 |
|
1228 |
|
1229 | WorkerId?: CustomerId;
|
1230 | }
|
1231 | export type NotifyWorkersFailureStatusList = NotifyWorkersFailureStatus[];
|
1232 | export interface NotifyWorkersRequest {
|
1233 | |
1234 |
|
1235 |
|
1236 | Subject: String;
|
1237 | |
1238 |
|
1239 |
|
1240 | MessageText: String;
|
1241 | |
1242 |
|
1243 |
|
1244 | WorkerIds: CustomerIdList;
|
1245 | }
|
1246 | export interface NotifyWorkersResponse {
|
1247 | |
1248 |
|
1249 |
|
1250 | NotifyWorkersFailureStatuses?: NotifyWorkersFailureStatusList;
|
1251 | }
|
1252 | export type PaginationToken = string;
|
1253 | export interface ParameterMapEntry {
|
1254 | |
1255 |
|
1256 |
|
1257 | Key?: String;
|
1258 | |
1259 |
|
1260 |
|
1261 | Values?: StringList;
|
1262 | }
|
1263 | export type ParameterMapEntryList = ParameterMapEntry[];
|
1264 | export interface PolicyParameter {
|
1265 | |
1266 |
|
1267 |
|
1268 | Key?: String;
|
1269 | |
1270 |
|
1271 |
|
1272 | Values?: StringList;
|
1273 | |
1274 |
|
1275 |
|
1276 | MapEntries?: ParameterMapEntryList;
|
1277 | }
|
1278 | export type PolicyParameterList = PolicyParameter[];
|
1279 | export interface Qualification {
|
1280 | |
1281 |
|
1282 |
|
1283 | QualificationTypeId?: EntityId;
|
1284 | |
1285 |
|
1286 |
|
1287 | WorkerId?: CustomerId;
|
1288 | |
1289 |
|
1290 |
|
1291 | GrantTime?: Timestamp;
|
1292 | |
1293 |
|
1294 |
|
1295 | IntegerValue?: Integer;
|
1296 | LocaleValue?: Locale;
|
1297 | |
1298 |
|
1299 |
|
1300 | Status?: QualificationStatus;
|
1301 | }
|
1302 | export type QualificationList = Qualification[];
|
1303 | export interface QualificationRequest {
|
1304 | |
1305 |
|
1306 |
|
1307 | QualificationRequestId?: String;
|
1308 | |
1309 |
|
1310 |
|
1311 | QualificationTypeId?: EntityId;
|
1312 | |
1313 |
|
1314 |
|
1315 | WorkerId?: CustomerId;
|
1316 | |
1317 |
|
1318 |
|
1319 | Test?: String;
|
1320 | |
1321 |
|
1322 |
|
1323 | Answer?: String;
|
1324 | |
1325 |
|
1326 |
|
1327 | SubmitTime?: Timestamp;
|
1328 | }
|
1329 | export type QualificationRequestList = QualificationRequest[];
|
1330 | export interface QualificationRequirement {
|
1331 | |
1332 |
|
1333 |
|
1334 | QualificationTypeId: String;
|
1335 | |
1336 |
|
1337 |
|
1338 | Comparator: Comparator;
|
1339 | |
1340 |
|
1341 |
|
1342 | IntegerValues?: IntegerList;
|
1343 | |
1344 |
|
1345 |
|
1346 | LocaleValues?: LocaleList;
|
1347 | |
1348 |
|
1349 |
|
1350 | RequiredToPreview?: Boolean;
|
1351 | |
1352 |
|
1353 |
|
1354 | ActionsGuarded?: HITAccessActions;
|
1355 | }
|
1356 | export type QualificationRequirementList = QualificationRequirement[];
|
1357 | export type QualificationStatus = "Granted"|"Revoked"|string;
|
1358 | export interface QualificationType {
|
1359 | |
1360 |
|
1361 |
|
1362 | QualificationTypeId?: EntityId;
|
1363 | |
1364 |
|
1365 |
|
1366 | CreationTime?: Timestamp;
|
1367 | |
1368 |
|
1369 |
|
1370 | Name?: String;
|
1371 | |
1372 |
|
1373 |
|
1374 | Description?: String;
|
1375 | |
1376 |
|
1377 |
|
1378 | Keywords?: String;
|
1379 | |
1380 |
|
1381 |
|
1382 | QualificationTypeStatus?: QualificationTypeStatus;
|
1383 | |
1384 |
|
1385 |
|
1386 | Test?: String;
|
1387 | |
1388 |
|
1389 |
|
1390 | TestDurationInSeconds?: Long;
|
1391 | |
1392 |
|
1393 |
|
1394 | AnswerKey?: String;
|
1395 | |
1396 |
|
1397 |
|
1398 | RetryDelayInSeconds?: Long;
|
1399 | |
1400 |
|
1401 |
|
1402 | IsRequestable?: Boolean;
|
1403 | |
1404 |
|
1405 |
|
1406 | AutoGranted?: Boolean;
|
1407 | |
1408 |
|
1409 |
|
1410 | AutoGrantedValue?: Integer;
|
1411 | }
|
1412 | export type QualificationTypeList = QualificationType[];
|
1413 | export type QualificationTypeStatus = "Active"|"Inactive"|string;
|
1414 | export interface RejectAssignmentRequest {
|
1415 | |
1416 |
|
1417 |
|
1418 | AssignmentId: EntityId;
|
1419 | |
1420 |
|
1421 |
|
1422 | RequesterFeedback: String;
|
1423 | }
|
1424 | export interface RejectAssignmentResponse {
|
1425 | }
|
1426 | export interface RejectQualificationRequestRequest {
|
1427 | |
1428 |
|
1429 |
|
1430 | QualificationRequestId: String;
|
1431 | |
1432 |
|
1433 |
|
1434 | Reason?: String;
|
1435 | }
|
1436 | export interface RejectQualificationRequestResponse {
|
1437 | }
|
1438 | export type ResultSize = number;
|
1439 | export interface ReviewActionDetail {
|
1440 | |
1441 |
|
1442 |
|
1443 | ActionId?: EntityId;
|
1444 | |
1445 |
|
1446 |
|
1447 | ActionName?: String;
|
1448 | |
1449 |
|
1450 |
|
1451 | TargetId?: EntityId;
|
1452 | |
1453 |
|
1454 |
|
1455 | TargetType?: String;
|
1456 | |
1457 |
|
1458 |
|
1459 | Status?: ReviewActionStatus;
|
1460 | |
1461 |
|
1462 |
|
1463 | CompleteTime?: Timestamp;
|
1464 | |
1465 |
|
1466 |
|
1467 | Result?: String;
|
1468 | |
1469 |
|
1470 |
|
1471 | ErrorCode?: String;
|
1472 | }
|
1473 | export type ReviewActionDetailList = ReviewActionDetail[];
|
1474 | export type ReviewActionStatus = "Intended"|"Succeeded"|"Failed"|"Cancelled"|string;
|
1475 | export interface ReviewPolicy {
|
1476 | |
1477 |
|
1478 |
|
1479 | PolicyName: String;
|
1480 | |
1481 |
|
1482 |
|
1483 | Parameters?: PolicyParameterList;
|
1484 | }
|
1485 | export type ReviewPolicyLevel = "Assignment"|"HIT"|string;
|
1486 | export type ReviewPolicyLevelList = ReviewPolicyLevel[];
|
1487 | export interface ReviewReport {
|
1488 | |
1489 |
|
1490 |
|
1491 | ReviewResults?: ReviewResultDetailList;
|
1492 | |
1493 |
|
1494 |
|
1495 | ReviewActions?: ReviewActionDetailList;
|
1496 | }
|
1497 | export interface ReviewResultDetail {
|
1498 | |
1499 |
|
1500 |
|
1501 | ActionId?: EntityId;
|
1502 | |
1503 |
|
1504 |
|
1505 | SubjectId?: EntityId;
|
1506 | |
1507 |
|
1508 |
|
1509 | SubjectType?: String;
|
1510 | |
1511 |
|
1512 |
|
1513 | QuestionId?: EntityId;
|
1514 | |
1515 |
|
1516 |
|
1517 | Key?: String;
|
1518 | |
1519 |
|
1520 |
|
1521 | Value?: String;
|
1522 | }
|
1523 | export type ReviewResultDetailList = ReviewResultDetail[];
|
1524 | export type ReviewableHITStatus = "Reviewable"|"Reviewing"|string;
|
1525 | export interface SendBonusRequest {
|
1526 | |
1527 |
|
1528 |
|
1529 | WorkerId: CustomerId;
|
1530 | |
1531 |
|
1532 |
|
1533 | BonusAmount: CurrencyAmount;
|
1534 | |
1535 |
|
1536 |
|
1537 | AssignmentId: EntityId;
|
1538 | |
1539 |
|
1540 |
|
1541 | Reason: String;
|
1542 | |
1543 |
|
1544 |
|
1545 | UniqueRequestToken?: IdempotencyToken;
|
1546 | }
|
1547 | export interface SendBonusResponse {
|
1548 | }
|
1549 | export interface SendTestEventNotificationRequest {
|
1550 | |
1551 |
|
1552 |
|
1553 | Notification: NotificationSpecification;
|
1554 | |
1555 |
|
1556 |
|
1557 | TestEventType: EventType;
|
1558 | }
|
1559 | export interface SendTestEventNotificationResponse {
|
1560 | }
|
1561 | export type String = string;
|
1562 | export type StringList = String[];
|
1563 | export type Timestamp = Date;
|
1564 | export interface UpdateExpirationForHITRequest {
|
1565 | |
1566 |
|
1567 |
|
1568 | HITId: EntityId;
|
1569 | |
1570 |
|
1571 |
|
1572 | ExpireAt: Timestamp;
|
1573 | }
|
1574 | export interface UpdateExpirationForHITResponse {
|
1575 | }
|
1576 | export interface UpdateHITReviewStatusRequest {
|
1577 | |
1578 |
|
1579 |
|
1580 | HITId: EntityId;
|
1581 | |
1582 |
|
1583 |
|
1584 | Revert?: Boolean;
|
1585 | }
|
1586 | export interface UpdateHITReviewStatusResponse {
|
1587 | }
|
1588 | export interface UpdateHITTypeOfHITRequest {
|
1589 | |
1590 |
|
1591 |
|
1592 | HITId: EntityId;
|
1593 | |
1594 |
|
1595 |
|
1596 | HITTypeId: EntityId;
|
1597 | }
|
1598 | export interface UpdateHITTypeOfHITResponse {
|
1599 | }
|
1600 | export interface UpdateNotificationSettingsRequest {
|
1601 | |
1602 |
|
1603 |
|
1604 | HITTypeId: EntityId;
|
1605 | |
1606 |
|
1607 |
|
1608 | Notification?: NotificationSpecification;
|
1609 | |
1610 |
|
1611 |
|
1612 | Active?: Boolean;
|
1613 | }
|
1614 | export interface UpdateNotificationSettingsResponse {
|
1615 | }
|
1616 | export interface UpdateQualificationTypeRequest {
|
1617 | |
1618 |
|
1619 |
|
1620 | QualificationTypeId: EntityId;
|
1621 | |
1622 |
|
1623 |
|
1624 | Description?: String;
|
1625 | |
1626 |
|
1627 |
|
1628 | QualificationTypeStatus?: QualificationTypeStatus;
|
1629 | |
1630 |
|
1631 |
|
1632 | Test?: String;
|
1633 | |
1634 |
|
1635 |
|
1636 | AnswerKey?: String;
|
1637 | |
1638 |
|
1639 |
|
1640 | TestDurationInSeconds?: Long;
|
1641 | |
1642 |
|
1643 |
|
1644 | RetryDelayInSeconds?: Long;
|
1645 | |
1646 |
|
1647 |
|
1648 | AutoGranted?: Boolean;
|
1649 | |
1650 |
|
1651 |
|
1652 | AutoGrantedValue?: Integer;
|
1653 | }
|
1654 | export interface UpdateQualificationTypeResponse {
|
1655 | |
1656 |
|
1657 |
|
1658 | QualificationType?: QualificationType;
|
1659 | }
|
1660 | export interface WorkerBlock {
|
1661 | |
1662 |
|
1663 |
|
1664 | WorkerId?: CustomerId;
|
1665 | |
1666 |
|
1667 |
|
1668 | Reason?: String;
|
1669 | }
|
1670 | export type WorkerBlockList = WorkerBlock[];
|
1671 | |
1672 |
|
1673 |
|
1674 | export type apiVersion = "2017-01-17"|"latest"|string;
|
1675 | export interface ClientApiVersions {
|
1676 | |
1677 |
|
1678 |
|
1679 | apiVersion?: apiVersion;
|
1680 | }
|
1681 | export type ClientConfiguration = ServiceConfigurationOptions & ClientApiVersions;
|
1682 | |
1683 |
|
1684 |
|
1685 | export import Types = MTurk;
|
1686 | }
|
1687 | export = MTurk;
|