@superdurable/connector-amazon-sqs 0.1.1 → 0.2.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/README.md +8 -5
- package/dex-connector.json +449 -5
- package/dist/chunk-WRBFEUIT.js +504 -0
- package/dist/{connection-DqOJtCt2.d.ts → connection-DHP5tO3q.d.ts} +156 -7
- package/dist/index.d.ts +413 -9
- package/dist/index.js +773 -38
- package/dist/sqsmock.d.ts +128 -3
- package/dist/sqsmock.js +305 -3
- package/package.json +6 -4
- package/dist/chunk-JUNMI7YJ.js +0 -192
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
|
-
import { C as ChangeMessageVisibilityInput, a as ChangedMessageVisibility, b as Connection, D as DeleteMessageInput,
|
|
2
|
-
export {
|
|
3
|
-
import
|
|
4
|
-
import { MutationDefinition, MutationStepConfig, Mutation, MutationResult, MutationStep, Call, MutationAttempt, CredentialProvider, Receipt, Failure } from '@superdurable/connectors-sdk';
|
|
1
|
+
import { C as ChangeMessageVisibilityInput, a as ChangedMessageVisibility, b as Connection, c as CreateQueueInput, Q as QueueIdentity, D as DeleteMessageInput, d as DeletedMessage, e as QueueURLInput, f as QueueAttributes, g as QueueNameInput, L as ListQueuesInput, h as QueuePage, R as ReceiveMessagesInput, i as ReceivedMessages, S as SendMessageInput, j as SentMessage, k as SetQueueAttributeInput, l as Config, m as Credentials, O as Operations } from './connection-DHP5tO3q.js';
|
|
2
|
+
export { n as ChangeMessageVisibilityInputSchema, o as ChangedMessageVisibilitySchema, p as ConfigSchema, q as CreateQueueInputSchema, r as CredentialMaterialError, s as CredentialSource, t as DeleteMessageInputSchema, u as DeletedMessageSchema, v as ListQueuesInputSchema, M as Message, w as MessageAttributeValue, x as MessageAttributeValueSchema, y as MessageSchema, z as QueueAttributesSchema, A as QueueIdentitySchema, B as QueueNameInputSchema, E as QueuePageSchema, F as QueueURLInputSchema, G as ReceiveMessagesInputSchema, H as ReceivedMessagesSchema, I as SendMessageInputSchema, J as SentMessageSchema, K as SetQueueAttributeInputSchema, N as decodeCredentials, P as isCredentialMaterialError, T as newConnection, U as newConnectionWithOperations } from './connection-DHP5tO3q.js';
|
|
3
|
+
import { MutationDefinition, QueryDefinition, MutationStepConfig, Mutation, MutationResult, QueryStepConfig, Query, QueryResult, MutationStep, QueryStep, Call, MutationAttempt, CallID, IdempotencyKey, QueryAttempt, CredentialProvider, Receipt, Failure } from '@superdurable/connectors-sdk';
|
|
5
4
|
import { StepTarget } from '@superdurable/dex';
|
|
6
5
|
import { ProviderRequest, ProviderResponse } from '@superdurable/connectors-sdk/providerhttp';
|
|
7
6
|
import { LoadedProject } from '@superdurable/connectors-sdk/projectconfig';
|
|
@@ -11,6 +10,29 @@ import 'zod';
|
|
|
11
10
|
declare const ConnectorID = "amazon-sqs";
|
|
12
11
|
/** Provider identity for named connections. */
|
|
13
12
|
declare const ProviderID = "amazon-sqs";
|
|
13
|
+
/** Branch IDs for sendMessage. */
|
|
14
|
+
declare const SendMessageBranch: {
|
|
15
|
+
readonly Sent: "sent";
|
|
16
|
+
readonly ProviderRejected: "providerRejected";
|
|
17
|
+
readonly Uncertain: "uncertain";
|
|
18
|
+
readonly Defect: "defect";
|
|
19
|
+
};
|
|
20
|
+
/** SQS accepted the message and returned its message ID. */
|
|
21
|
+
declare const SendMessageBranchSent: "sent";
|
|
22
|
+
/** SQS conclusively rejected the queue or message. */
|
|
23
|
+
declare const SendMessageBranchProviderRejected: "providerRejected";
|
|
24
|
+
/** SQS may have accepted the message but did not return a usable response before the send cap. */
|
|
25
|
+
declare const SendMessageBranchUncertain: "uncertain";
|
|
26
|
+
/** The queue URL, message, or connection is invalid. */
|
|
27
|
+
declare const SendMessageBranchDefect: "defect";
|
|
28
|
+
/** Manifest definition for sendMessage. */
|
|
29
|
+
declare const SendMessageDefinition: MutationDefinition;
|
|
30
|
+
/** Manifest metadata for sendMessage. */
|
|
31
|
+
declare const SendMessageMetadata: {
|
|
32
|
+
readonly kind: "mutation";
|
|
33
|
+
readonly idempotency: "required";
|
|
34
|
+
readonly authorization: "required";
|
|
35
|
+
};
|
|
14
36
|
/** Branch IDs for receiveMessages. */
|
|
15
37
|
declare const ReceiveMessagesBranch: {
|
|
16
38
|
readonly Received: "received";
|
|
@@ -83,7 +105,164 @@ declare const ChangeMessageVisibilityMetadata: {
|
|
|
83
105
|
readonly idempotency: "required";
|
|
84
106
|
readonly authorization: "required";
|
|
85
107
|
};
|
|
108
|
+
/** Branch IDs for listQueues. */
|
|
109
|
+
declare const ListQueuesBranch: {
|
|
110
|
+
readonly Page: "page";
|
|
111
|
+
readonly ProviderRejected: "providerRejected";
|
|
112
|
+
readonly InvalidResponse: "invalidResponse";
|
|
113
|
+
readonly Defect: "defect";
|
|
114
|
+
};
|
|
115
|
+
/** SQS returned a page of queue URLs. */
|
|
116
|
+
declare const ListQueuesBranchPage: "page";
|
|
117
|
+
/** SQS refused the list. */
|
|
118
|
+
declare const ListQueuesBranchProviderRejected: "providerRejected";
|
|
119
|
+
/** SQS returned invalid queue data. */
|
|
120
|
+
declare const ListQueuesBranchInvalidResponse: "invalidResponse";
|
|
121
|
+
/** Queue filter or credentials are invalid. */
|
|
122
|
+
declare const ListQueuesBranchDefect: "defect";
|
|
123
|
+
/** Manifest definition for listQueues. */
|
|
124
|
+
declare const ListQueuesDefinition: QueryDefinition;
|
|
125
|
+
/** Manifest metadata for listQueues. */
|
|
126
|
+
declare const ListQueuesMetadata: {
|
|
127
|
+
readonly kind: "query";
|
|
128
|
+
readonly idempotency: "none";
|
|
129
|
+
readonly authorization: "required";
|
|
130
|
+
};
|
|
131
|
+
/** Branch IDs for createQueue. */
|
|
132
|
+
declare const CreateQueueBranch: {
|
|
133
|
+
readonly Created: "created";
|
|
134
|
+
readonly ProviderRejected: "providerRejected";
|
|
135
|
+
readonly InvalidResponse: "invalidResponse";
|
|
136
|
+
readonly Defect: "defect";
|
|
137
|
+
};
|
|
138
|
+
/** SQS returned the queue URL. */
|
|
139
|
+
declare const CreateQueueBranchCreated: "created";
|
|
140
|
+
/** SQS refused the creation or the name already has different attributes. */
|
|
141
|
+
declare const CreateQueueBranchProviderRejected: "providerRejected";
|
|
142
|
+
/** SQS returned an invalid queue URL. */
|
|
143
|
+
declare const CreateQueueBranchInvalidResponse: "invalidResponse";
|
|
144
|
+
/** Queue name, attributes, or credentials are invalid. */
|
|
145
|
+
declare const CreateQueueBranchDefect: "defect";
|
|
146
|
+
/** Manifest definition for createQueue. */
|
|
147
|
+
declare const CreateQueueDefinition: MutationDefinition;
|
|
148
|
+
/** Manifest metadata for createQueue. */
|
|
149
|
+
declare const CreateQueueMetadata: {
|
|
150
|
+
readonly kind: "mutation";
|
|
151
|
+
readonly idempotency: "required";
|
|
152
|
+
readonly authorization: "required";
|
|
153
|
+
};
|
|
154
|
+
/** Branch IDs for getQueueURL. */
|
|
155
|
+
declare const GetQueueURLBranch: {
|
|
156
|
+
readonly Found: "found";
|
|
157
|
+
readonly Missing: "missing";
|
|
158
|
+
readonly ProviderRejected: "providerRejected";
|
|
159
|
+
readonly InvalidResponse: "invalidResponse";
|
|
160
|
+
readonly Defect: "defect";
|
|
161
|
+
};
|
|
162
|
+
/** SQS returned the queue URL. */
|
|
163
|
+
declare const GetQueueURLBranchFound: "found";
|
|
164
|
+
/** The queue does not exist. */
|
|
165
|
+
declare const GetQueueURLBranchMissing: "missing";
|
|
166
|
+
/** SQS refused the lookup. */
|
|
167
|
+
declare const GetQueueURLBranchProviderRejected: "providerRejected";
|
|
168
|
+
/** SQS returned an invalid queue URL. */
|
|
169
|
+
declare const GetQueueURLBranchInvalidResponse: "invalidResponse";
|
|
170
|
+
/** Queue name or credentials are invalid. */
|
|
171
|
+
declare const GetQueueURLBranchDefect: "defect";
|
|
172
|
+
/** Manifest definition for getQueueURL. */
|
|
173
|
+
declare const GetQueueURLDefinition: QueryDefinition;
|
|
174
|
+
/** Manifest metadata for getQueueURL. */
|
|
175
|
+
declare const GetQueueURLMetadata: {
|
|
176
|
+
readonly kind: "query";
|
|
177
|
+
readonly idempotency: "none";
|
|
178
|
+
readonly authorization: "required";
|
|
179
|
+
};
|
|
180
|
+
/** Branch IDs for getQueueAttributes. */
|
|
181
|
+
declare const GetQueueAttributesBranch: {
|
|
182
|
+
readonly Found: "found";
|
|
183
|
+
readonly Missing: "missing";
|
|
184
|
+
readonly ProviderRejected: "providerRejected";
|
|
185
|
+
readonly InvalidResponse: "invalidResponse";
|
|
186
|
+
readonly Defect: "defect";
|
|
187
|
+
};
|
|
188
|
+
/** SQS returned queue attributes. */
|
|
189
|
+
declare const GetQueueAttributesBranchFound: "found";
|
|
190
|
+
/** The queue does not exist. */
|
|
191
|
+
declare const GetQueueAttributesBranchMissing: "missing";
|
|
192
|
+
/** SQS refused the read. */
|
|
193
|
+
declare const GetQueueAttributesBranchProviderRejected: "providerRejected";
|
|
194
|
+
/** SQS returned invalid attributes. */
|
|
195
|
+
declare const GetQueueAttributesBranchInvalidResponse: "invalidResponse";
|
|
196
|
+
/** Queue URL or credentials are invalid. */
|
|
197
|
+
declare const GetQueueAttributesBranchDefect: "defect";
|
|
198
|
+
/** Manifest definition for getQueueAttributes. */
|
|
199
|
+
declare const GetQueueAttributesDefinition: QueryDefinition;
|
|
200
|
+
/** Manifest metadata for getQueueAttributes. */
|
|
201
|
+
declare const GetQueueAttributesMetadata: {
|
|
202
|
+
readonly kind: "query";
|
|
203
|
+
readonly idempotency: "none";
|
|
204
|
+
readonly authorization: "required";
|
|
205
|
+
};
|
|
206
|
+
/** Branch IDs for setQueueAttribute. */
|
|
207
|
+
declare const SetQueueAttributeBranch: {
|
|
208
|
+
readonly Updated: "updated";
|
|
209
|
+
readonly ProviderRejected: "providerRejected";
|
|
210
|
+
readonly Defect: "defect";
|
|
211
|
+
};
|
|
212
|
+
/** SQS accepted the new setting. */
|
|
213
|
+
declare const SetQueueAttributeBranchUpdated: "updated";
|
|
214
|
+
/** SQS refused the setting. */
|
|
215
|
+
declare const SetQueueAttributeBranchProviderRejected: "providerRejected";
|
|
216
|
+
/** Queue URL, setting, or credentials are invalid. */
|
|
217
|
+
declare const SetQueueAttributeBranchDefect: "defect";
|
|
218
|
+
/** Manifest definition for setQueueAttribute. */
|
|
219
|
+
declare const SetQueueAttributeDefinition: MutationDefinition;
|
|
220
|
+
/** Manifest metadata for setQueueAttribute. */
|
|
221
|
+
declare const SetQueueAttributeMetadata: {
|
|
222
|
+
readonly kind: "mutation";
|
|
223
|
+
readonly idempotency: "required";
|
|
224
|
+
readonly authorization: "required";
|
|
225
|
+
};
|
|
226
|
+
/** Branch IDs for deleteQueue. */
|
|
227
|
+
declare const DeleteQueueBranch: {
|
|
228
|
+
readonly Deleted: "deleted";
|
|
229
|
+
readonly ProviderRejected: "providerRejected";
|
|
230
|
+
readonly Defect: "defect";
|
|
231
|
+
};
|
|
232
|
+
/** SQS accepted queue deletion. */
|
|
233
|
+
declare const DeleteQueueBranchDeleted: "deleted";
|
|
234
|
+
/** SQS refused queue deletion. */
|
|
235
|
+
declare const DeleteQueueBranchProviderRejected: "providerRejected";
|
|
236
|
+
/** Queue URL or credentials are invalid. */
|
|
237
|
+
declare const DeleteQueueBranchDefect: "defect";
|
|
238
|
+
/** Manifest definition for deleteQueue. */
|
|
239
|
+
declare const DeleteQueueDefinition: MutationDefinition;
|
|
240
|
+
/** Manifest metadata for deleteQueue. */
|
|
241
|
+
declare const DeleteQueueMetadata: {
|
|
242
|
+
readonly kind: "mutation";
|
|
243
|
+
readonly idempotency: "required";
|
|
244
|
+
readonly authorization: "required";
|
|
245
|
+
};
|
|
86
246
|
|
|
247
|
+
/** Configuration for the sendMessage connector Step. */
|
|
248
|
+
interface SendMessageStepConfig<StepInput, OperationInput = SendMessageInput, OperationOutput = SentMessage> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
249
|
+
/** Named connection supplying this operation. */
|
|
250
|
+
connection: Connection<{
|
|
251
|
+
sendMessage(): Mutation<OperationInput, OperationOutput>;
|
|
252
|
+
}>;
|
|
253
|
+
/** Name matching the bound connection. */
|
|
254
|
+
connectionName: string;
|
|
255
|
+
/** SQS accepted the message and returned its message ID. */
|
|
256
|
+
sent: StepTarget<MutationResult<OperationOutput>>;
|
|
257
|
+
/** SQS conclusively rejected the queue or message. */
|
|
258
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
259
|
+
/** SQS may have accepted the message but did not return a usable response before the send cap. */
|
|
260
|
+
uncertain?: StepTarget<MutationResult<OperationOutput>>;
|
|
261
|
+
/** The queue URL, message, or connection is invalid. */
|
|
262
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
263
|
+
}
|
|
264
|
+
/** Build the sendMessage Step from a named connection. */
|
|
265
|
+
declare function newSendMessageStep<StepInput, OperationInput = SendMessageInput, OperationOutput = SentMessage>(configuration: SendMessageStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
87
266
|
/** Configuration for the receiveMessages connector Step. */
|
|
88
267
|
interface ReceiveMessagesStepConfig<StepInput, OperationInput = ReceiveMessagesInput, OperationOutput = ReceivedMessages> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
89
268
|
/** Named connection supplying this operation. */
|
|
@@ -102,6 +281,8 @@ interface ReceiveMessagesStepConfig<StepInput, OperationInput = ReceiveMessagesI
|
|
|
102
281
|
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
103
282
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
104
283
|
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
284
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
285
|
+
maxSends?: number;
|
|
105
286
|
}
|
|
106
287
|
/** Build the receiveMessages Step from a named connection. */
|
|
107
288
|
declare function newReceiveMessagesStep<StepInput, OperationInput = ReceiveMessagesInput, OperationOutput = ReceivedMessages>(configuration: ReceiveMessagesStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
@@ -121,6 +302,8 @@ interface DeleteMessageStepConfig<StepInput, OperationInput = DeleteMessageInput
|
|
|
121
302
|
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
122
303
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
123
304
|
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
305
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
306
|
+
maxSends?: number;
|
|
124
307
|
}
|
|
125
308
|
/** Build the deleteMessage Step from a named connection. */
|
|
126
309
|
declare function newDeleteMessageStep<StepInput, OperationInput = DeleteMessageInput, OperationOutput = DeletedMessage>(configuration: DeleteMessageStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
@@ -140,15 +323,137 @@ interface ChangeMessageVisibilityStepConfig<StepInput, OperationInput = ChangeMe
|
|
|
140
323
|
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
141
324
|
/** Local input, connection configuration, or connector definition is invalid. */
|
|
142
325
|
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
326
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
327
|
+
maxSends?: number;
|
|
143
328
|
}
|
|
144
329
|
/** Build the changeMessageVisibility Step from a named connection. */
|
|
145
330
|
declare function newChangeMessageVisibilityStep<StepInput, OperationInput = ChangeMessageVisibilityInput, OperationOutput = ChangedMessageVisibility>(configuration: ChangeMessageVisibilityStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
331
|
+
/** Configuration for the listQueues connector Step. */
|
|
332
|
+
interface ListQueuesStepConfig<StepInput, OperationInput = ListQueuesInput, OperationOutput = QueuePage> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
333
|
+
/** Named connection supplying this operation. */
|
|
334
|
+
connection: Connection<{
|
|
335
|
+
listQueues(): Query<OperationInput, OperationOutput>;
|
|
336
|
+
}>;
|
|
337
|
+
/** Name matching the bound connection. */
|
|
338
|
+
connectionName: string;
|
|
339
|
+
/** SQS returned a page of queue URLs. */
|
|
340
|
+
page: StepTarget<QueryResult<OperationOutput>>;
|
|
341
|
+
/** SQS refused the list. */
|
|
342
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
343
|
+
/** SQS returned invalid queue data. */
|
|
344
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
345
|
+
/** Queue filter or credentials are invalid. */
|
|
346
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
347
|
+
}
|
|
348
|
+
/** Build the listQueues Step from a named connection. */
|
|
349
|
+
declare function newListQueuesStep<StepInput, OperationInput = ListQueuesInput, OperationOutput = QueuePage>(configuration: ListQueuesStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
350
|
+
/** Configuration for the createQueue connector Step. */
|
|
351
|
+
interface CreateQueueStepConfig<StepInput, OperationInput = CreateQueueInput, OperationOutput = QueueIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
352
|
+
/** Named connection supplying this operation. */
|
|
353
|
+
connection: Connection<{
|
|
354
|
+
createQueue(): Mutation<OperationInput, OperationOutput>;
|
|
355
|
+
}>;
|
|
356
|
+
/** Name matching the bound connection. */
|
|
357
|
+
connectionName: string;
|
|
358
|
+
/** SQS returned the queue URL. */
|
|
359
|
+
created: StepTarget<MutationResult<OperationOutput>>;
|
|
360
|
+
/** SQS refused the creation or the name already has different attributes. */
|
|
361
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
362
|
+
/** SQS returned an invalid queue URL. */
|
|
363
|
+
invalidResponse?: StepTarget<MutationResult<OperationOutput>>;
|
|
364
|
+
/** Queue name, attributes, or credentials are invalid. */
|
|
365
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
366
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
367
|
+
maxSends?: number;
|
|
368
|
+
}
|
|
369
|
+
/** Build the createQueue Step from a named connection. */
|
|
370
|
+
declare function newCreateQueueStep<StepInput, OperationInput = CreateQueueInput, OperationOutput = QueueIdentity>(configuration: CreateQueueStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
371
|
+
/** Configuration for the getQueueURL connector Step. */
|
|
372
|
+
interface GetQueueURLStepConfig<StepInput, OperationInput = QueueNameInput, OperationOutput = QueueIdentity> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
373
|
+
/** Named connection supplying this operation. */
|
|
374
|
+
connection: Connection<{
|
|
375
|
+
getQueueURL(): Query<OperationInput, OperationOutput>;
|
|
376
|
+
}>;
|
|
377
|
+
/** Name matching the bound connection. */
|
|
378
|
+
connectionName: string;
|
|
379
|
+
/** SQS returned the queue URL. */
|
|
380
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
381
|
+
/** The queue does not exist. */
|
|
382
|
+
missing?: StepTarget<QueryResult<OperationOutput>>;
|
|
383
|
+
/** SQS refused the lookup. */
|
|
384
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
385
|
+
/** SQS returned an invalid queue URL. */
|
|
386
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
387
|
+
/** Queue name or credentials are invalid. */
|
|
388
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
389
|
+
}
|
|
390
|
+
/** Build the getQueueURL Step from a named connection. */
|
|
391
|
+
declare function newGetQueueURLStep<StepInput, OperationInput = QueueNameInput, OperationOutput = QueueIdentity>(configuration: GetQueueURLStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
392
|
+
/** Configuration for the getQueueAttributes connector Step. */
|
|
393
|
+
interface GetQueueAttributesStepConfig<StepInput, OperationInput = QueueURLInput, OperationOutput = QueueAttributes> extends Omit<QueryStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
394
|
+
/** Named connection supplying this operation. */
|
|
395
|
+
connection: Connection<{
|
|
396
|
+
getQueueAttributes(): Query<OperationInput, OperationOutput>;
|
|
397
|
+
}>;
|
|
398
|
+
/** Name matching the bound connection. */
|
|
399
|
+
connectionName: string;
|
|
400
|
+
/** SQS returned queue attributes. */
|
|
401
|
+
found: StepTarget<QueryResult<OperationOutput>>;
|
|
402
|
+
/** The queue does not exist. */
|
|
403
|
+
missing?: StepTarget<QueryResult<OperationOutput>>;
|
|
404
|
+
/** SQS refused the read. */
|
|
405
|
+
providerRejected?: StepTarget<QueryResult<OperationOutput>>;
|
|
406
|
+
/** SQS returned invalid attributes. */
|
|
407
|
+
invalidResponse?: StepTarget<QueryResult<OperationOutput>>;
|
|
408
|
+
/** Queue URL or credentials are invalid. */
|
|
409
|
+
defect?: StepTarget<QueryResult<OperationOutput>>;
|
|
410
|
+
}
|
|
411
|
+
/** Build the getQueueAttributes Step from a named connection. */
|
|
412
|
+
declare function newGetQueueAttributesStep<StepInput, OperationInput = QueueURLInput, OperationOutput = QueueAttributes>(configuration: GetQueueAttributesStepConfig<StepInput, OperationInput, OperationOutput>): QueryStep<StepInput, OperationInput, OperationOutput>;
|
|
413
|
+
/** Configuration for the setQueueAttribute connector Step. */
|
|
414
|
+
interface SetQueueAttributeStepConfig<StepInput, OperationInput = SetQueueAttributeInput, OperationOutput = QueueIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
415
|
+
/** Named connection supplying this operation. */
|
|
416
|
+
connection: Connection<{
|
|
417
|
+
setQueueAttribute(): Mutation<OperationInput, OperationOutput>;
|
|
418
|
+
}>;
|
|
419
|
+
/** Name matching the bound connection. */
|
|
420
|
+
connectionName: string;
|
|
421
|
+
/** SQS accepted the new setting. */
|
|
422
|
+
updated: StepTarget<MutationResult<OperationOutput>>;
|
|
423
|
+
/** SQS refused the setting. */
|
|
424
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
425
|
+
/** Queue URL, setting, or credentials are invalid. */
|
|
426
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
427
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
428
|
+
maxSends?: number;
|
|
429
|
+
}
|
|
430
|
+
/** Build the setQueueAttribute Step from a named connection. */
|
|
431
|
+
declare function newSetQueueAttributeStep<StepInput, OperationInput = SetQueueAttributeInput, OperationOutput = QueueIdentity>(configuration: SetQueueAttributeStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
432
|
+
/** Configuration for the deleteQueue connector Step. */
|
|
433
|
+
interface DeleteQueueStepConfig<StepInput, OperationInput = QueueURLInput, OperationOutput = QueueIdentity> extends Omit<MutationStepConfig<StepInput, OperationInput, OperationOutput>, 'operation' | 'connection' | 'branches'> {
|
|
434
|
+
/** Named connection supplying this operation. */
|
|
435
|
+
connection: Connection<{
|
|
436
|
+
deleteQueue(): Mutation<OperationInput, OperationOutput>;
|
|
437
|
+
}>;
|
|
438
|
+
/** Name matching the bound connection. */
|
|
439
|
+
connectionName: string;
|
|
440
|
+
/** SQS accepted queue deletion. */
|
|
441
|
+
deleted: StepTarget<MutationResult<OperationOutput>>;
|
|
442
|
+
/** SQS refused queue deletion. */
|
|
443
|
+
providerRejected?: StepTarget<MutationResult<OperationOutput>>;
|
|
444
|
+
/** Queue URL or credentials are invalid. */
|
|
445
|
+
defect?: StepTarget<MutationResult<OperationOutput>>;
|
|
446
|
+
/** Accepted for compatibility; ignored because the operation is safe to repeat. */
|
|
447
|
+
maxSends?: number;
|
|
448
|
+
}
|
|
449
|
+
/** Build the deleteQueue Step from a named connection. */
|
|
450
|
+
declare function newDeleteQueueStep<StepInput, OperationInput = QueueURLInput, OperationOutput = QueueIdentity>(configuration: DeleteQueueStepConfig<StepInput, OperationInput, OperationOutput>): MutationStep<StepInput, OperationInput, OperationOutput>;
|
|
146
451
|
|
|
147
452
|
/** Receive a verified message batch from a standard or FIFO queue. */
|
|
148
453
|
declare class ReceiveMessagesOperation implements Mutation<ReceiveMessagesInput, ReceivedMessages> {
|
|
149
454
|
private readonly client;
|
|
150
455
|
/** Bind one SQS client. */ constructor(client: SQSClient);
|
|
151
|
-
/** Return the manifest operation identity. */ definition():
|
|
456
|
+
/** Return the manifest operation identity. */ definition(): MutationDefinition;
|
|
152
457
|
/** Reuse the call ID for FIFO receive deduplication. */ idempotencyKey(callId: string): string;
|
|
153
458
|
/** Validate, sign, send, and classify one receive attempt. */
|
|
154
459
|
invoke(call: Call, input: ReceiveMessagesInput): Promise<MutationAttempt<ReceivedMessages>>;
|
|
@@ -157,7 +462,7 @@ declare class ReceiveMessagesOperation implements Mutation<ReceiveMessagesInput,
|
|
|
157
462
|
declare class DeleteMessageOperation implements Mutation<DeleteMessageInput, DeletedMessage> {
|
|
158
463
|
private readonly client;
|
|
159
464
|
/** Bind one SQS client. */ constructor(client: SQSClient);
|
|
160
|
-
/** Return the manifest operation identity. */ definition():
|
|
465
|
+
/** Return the manifest operation identity. */ definition(): MutationDefinition;
|
|
161
466
|
/** Stable mutation key for Dex retries. */ idempotencyKey(callId: string): string;
|
|
162
467
|
/** Validate, sign, send, and classify one delete attempt. */
|
|
163
468
|
invoke(call: Call, input: DeleteMessageInput): Promise<MutationAttempt<DeletedMessage>>;
|
|
@@ -166,11 +471,89 @@ declare class DeleteMessageOperation implements Mutation<DeleteMessageInput, Del
|
|
|
166
471
|
declare class ChangeMessageVisibilityOperation implements Mutation<ChangeMessageVisibilityInput, ChangedMessageVisibility> {
|
|
167
472
|
private readonly client;
|
|
168
473
|
/** Bind one SQS client. */ constructor(client: SQSClient);
|
|
169
|
-
/** Return the manifest operation identity. */ definition():
|
|
474
|
+
/** Return the manifest operation identity. */ definition(): MutationDefinition;
|
|
170
475
|
/** Stable mutation key for Dex retries. */ idempotencyKey(callId: string): string;
|
|
171
476
|
/** Validate, sign, send, and classify one visibility attempt. */
|
|
172
477
|
invoke(call: Call, input: ChangeMessageVisibilityInput): Promise<MutationAttempt<ChangedMessageVisibility>>;
|
|
173
478
|
}
|
|
479
|
+
/** Send one message to an Amazon SQS queue. */
|
|
480
|
+
declare class SendMessageOperation implements Mutation<SendMessageInput, SentMessage> {
|
|
481
|
+
private readonly client;
|
|
482
|
+
/** Bind one SQS client. */
|
|
483
|
+
constructor(client: SQSClient);
|
|
484
|
+
/** Return the manifest operation identity. */
|
|
485
|
+
definition(): MutationDefinition;
|
|
486
|
+
/** Use the stable Dex call ID to correlate retries. */
|
|
487
|
+
idempotencyKey(callId: CallID): IdempotencyKey;
|
|
488
|
+
/** Send one message to an Amazon SQS queue. */
|
|
489
|
+
invoke(call: Call, input: SendMessageInput): Promise<MutationAttempt<SentMessage>>;
|
|
490
|
+
}
|
|
491
|
+
/** List one bounded page of Amazon SQS queues. */
|
|
492
|
+
declare class ListQueuesOperation implements Query<ListQueuesInput, QueuePage> {
|
|
493
|
+
private readonly client;
|
|
494
|
+
/** Bind one SQS client. */
|
|
495
|
+
constructor(client: SQSClient);
|
|
496
|
+
/** Return the manifest operation identity. */
|
|
497
|
+
definition(): QueryDefinition;
|
|
498
|
+
/** List one bounded page of Amazon SQS queues. */
|
|
499
|
+
invoke(call: Call, input: ListQueuesInput): Promise<QueryAttempt<QueuePage>>;
|
|
500
|
+
}
|
|
501
|
+
/** Create an Amazon SQS queue with explicit settings. */
|
|
502
|
+
declare class CreateQueueOperation implements Mutation<CreateQueueInput, QueueIdentity> {
|
|
503
|
+
private readonly client;
|
|
504
|
+
/** Bind one SQS client. */
|
|
505
|
+
constructor(client: SQSClient);
|
|
506
|
+
/** Return the manifest operation identity. */
|
|
507
|
+
definition(): MutationDefinition;
|
|
508
|
+
/** Use the stable Dex call ID to correlate retries. */
|
|
509
|
+
idempotencyKey(callId: CallID): IdempotencyKey;
|
|
510
|
+
/** Create an Amazon SQS queue with explicit settings. */
|
|
511
|
+
invoke(call: Call, input: CreateQueueInput): Promise<MutationAttempt<QueueIdentity>>;
|
|
512
|
+
}
|
|
513
|
+
/** Resolve an Amazon SQS queue name to its URL. */
|
|
514
|
+
declare class GetQueueURLOperation implements Query<QueueNameInput, QueueIdentity> {
|
|
515
|
+
private readonly client;
|
|
516
|
+
/** Bind one SQS client. */
|
|
517
|
+
constructor(client: SQSClient);
|
|
518
|
+
/** Return the manifest operation identity. */
|
|
519
|
+
definition(): QueryDefinition;
|
|
520
|
+
/** Resolve an Amazon SQS queue name to its URL. */
|
|
521
|
+
invoke(call: Call, input: QueueNameInput): Promise<QueryAttempt<QueueIdentity>>;
|
|
522
|
+
}
|
|
523
|
+
/** Read settings from an Amazon SQS queue. */
|
|
524
|
+
declare class GetQueueAttributesOperation implements Query<QueueURLInput, QueueAttributes> {
|
|
525
|
+
private readonly client;
|
|
526
|
+
/** Bind one SQS client. */
|
|
527
|
+
constructor(client: SQSClient);
|
|
528
|
+
/** Return the manifest operation identity. */
|
|
529
|
+
definition(): QueryDefinition;
|
|
530
|
+
/** Read settings from an Amazon SQS queue. */
|
|
531
|
+
invoke(call: Call, input: QueueURLInput): Promise<QueryAttempt<QueueAttributes>>;
|
|
532
|
+
}
|
|
533
|
+
/** Replace one setting on an Amazon SQS queue. */
|
|
534
|
+
declare class SetQueueAttributeOperation implements Mutation<SetQueueAttributeInput, QueueIdentity> {
|
|
535
|
+
private readonly client;
|
|
536
|
+
/** Bind one SQS client. */
|
|
537
|
+
constructor(client: SQSClient);
|
|
538
|
+
/** Return the manifest operation identity. */
|
|
539
|
+
definition(): MutationDefinition;
|
|
540
|
+
/** Use the stable Dex call ID to correlate retries. */
|
|
541
|
+
idempotencyKey(callId: CallID): IdempotencyKey;
|
|
542
|
+
/** Replace one setting on an Amazon SQS queue. */
|
|
543
|
+
invoke(call: Call, input: SetQueueAttributeInput): Promise<MutationAttempt<QueueIdentity>>;
|
|
544
|
+
}
|
|
545
|
+
/** Delete an Amazon SQS queue and its messages. */
|
|
546
|
+
declare class DeleteQueueOperation implements Mutation<QueueURLInput, QueueIdentity> {
|
|
547
|
+
private readonly client;
|
|
548
|
+
/** Bind one SQS client. */
|
|
549
|
+
constructor(client: SQSClient);
|
|
550
|
+
/** Return the manifest operation identity. */
|
|
551
|
+
definition(): MutationDefinition;
|
|
552
|
+
/** Use the stable Dex call ID to correlate retries. */
|
|
553
|
+
idempotencyKey(callId: CallID): IdempotencyKey;
|
|
554
|
+
/** Delete an Amazon SQS queue and its messages. */
|
|
555
|
+
invoke(call: Call, input: QueueURLInput): Promise<MutationAttempt<QueueIdentity>>;
|
|
556
|
+
}
|
|
174
557
|
|
|
175
558
|
/** Validated queue identity used for SQS requests and receipts. */
|
|
176
559
|
interface QueueAddress {
|
|
@@ -208,12 +591,32 @@ declare class SQSClient {
|
|
|
208
591
|
/** Bind the receive mutation. */ receiveMessages(): ReceiveMessagesOperation;
|
|
209
592
|
/** Bind the delete mutation. */ deleteMessage(): DeleteMessageOperation;
|
|
210
593
|
/** Bind the visibility mutation. */ changeMessageVisibility(): ChangeMessageVisibilityOperation;
|
|
594
|
+
/** Send one message to an Amazon SQS queue. */
|
|
595
|
+
sendMessage(): SendMessageOperation;
|
|
596
|
+
/** List one bounded page of Amazon SQS queues. */
|
|
597
|
+
listQueues(): ListQueuesOperation;
|
|
598
|
+
/** Create an Amazon SQS queue with explicit settings. */
|
|
599
|
+
createQueue(): CreateQueueOperation;
|
|
600
|
+
/** Resolve an Amazon SQS queue name to its URL. */
|
|
601
|
+
getQueueURL(): GetQueueURLOperation;
|
|
602
|
+
/** Read settings from an Amazon SQS queue. */
|
|
603
|
+
getQueueAttributes(): GetQueueAttributesOperation;
|
|
604
|
+
/** Replace one setting on an Amazon SQS queue. */
|
|
605
|
+
setQueueAttribute(): SetQueueAttributeOperation;
|
|
606
|
+
/** Delete an Amazon SQS queue and its messages. */
|
|
607
|
+
deleteQueue(): DeleteQueueOperation;
|
|
211
608
|
/** Select the input queue or the connection default and validate its identity. */
|
|
212
609
|
resolveQueue(inputQueueUrl: string | undefined): QueueAddress;
|
|
213
610
|
/** Resolve one current access key without retaining it in a result. */
|
|
214
611
|
resolveCredentials(call: Call): Promise<Credentials | undefined>;
|
|
612
|
+
/** Return null for a transient credential failure and undefined for a terminal or invalid one. */
|
|
613
|
+
private resolveCredentialsOrTransient;
|
|
215
614
|
/** Sign and send one JSON-protocol action with AWS Signature Version 4. */
|
|
216
|
-
exchange(call: Call, credentials: Credentials, action: string, requestBody: object
|
|
615
|
+
exchange(call: Call, credentials: Credentials, action: string, requestBody: object, options?: {
|
|
616
|
+
sortKeys?: boolean;
|
|
617
|
+
responseLimit?: number;
|
|
618
|
+
signal?: AbortSignal;
|
|
619
|
+
}): Promise<SQSResponse>;
|
|
217
620
|
/** Build one secret-safe receipt. */
|
|
218
621
|
receipt(call: Call, response: SQSResponse, objectId: string): Receipt;
|
|
219
622
|
}
|
|
@@ -226,6 +629,7 @@ declare function classifyResponse(operation: string, subject: string, response:
|
|
|
226
629
|
branch: 'retry' | 'receiptHandleInvalid' | 'providerRejected';
|
|
227
630
|
failure: Failure;
|
|
228
631
|
retryAfterMs: number;
|
|
632
|
+
code: string;
|
|
229
633
|
};
|
|
230
634
|
|
|
231
635
|
/** Bind SQS operations and per-call credentials to a static project connection. */
|
|
@@ -233,4 +637,4 @@ declare function newProjectConnection(project: LoadedProject, connectionName: st
|
|
|
233
637
|
/** Bind scripted SQS operations to one static connection name. */
|
|
234
638
|
declare function newSQSConnectionWithOperations(operations: Operations, connectionName: string): Connection;
|
|
235
639
|
|
|
236
|
-
export { ChangeMessageVisibilityBranch, ChangeMessageVisibilityBranchChanged, ChangeMessageVisibilityBranchDefect, ChangeMessageVisibilityBranchProviderRejected, ChangeMessageVisibilityBranchReceiptHandleInvalid, ChangeMessageVisibilityDefinition, ChangeMessageVisibilityInput, ChangeMessageVisibilityMetadata, ChangeMessageVisibilityOperation, type ChangeMessageVisibilityStepConfig, ChangedMessageVisibility, Config, Connection, ConnectorID, Credentials, DeleteMessageBranch, DeleteMessageBranchDefect, DeleteMessageBranchDeleted, DeleteMessageBranchProviderRejected, DeleteMessageBranchReceiptHandleInvalid, DeleteMessageDefinition, DeleteMessageInput, DeleteMessageMetadata, DeleteMessageOperation, type DeleteMessageStepConfig, DeletedMessage, Operations, ProviderID, type QueueAddress, ReceiveMessagesBranch, ReceiveMessagesBranchDefect, ReceiveMessagesBranchEmpty, ReceiveMessagesBranchInvalidResponse, ReceiveMessagesBranchProviderRejected, ReceiveMessagesBranchReceived, ReceiveMessagesDefinition, ReceiveMessagesInput, ReceiveMessagesMetadata, ReceiveMessagesOperation, type ReceiveMessagesStepConfig, ReceivedMessages, SQSClient, type SQSClientOptions, type SQSRequestSender, type SQSResponse, classifyResponse, header, newChangeMessageVisibilityStep, newDeleteMessageStep, newProjectConnection, newReceiveMessagesStep, newSQSConnectionWithOperations, receiveSystemAttributes };
|
|
640
|
+
export { ChangeMessageVisibilityBranch, ChangeMessageVisibilityBranchChanged, ChangeMessageVisibilityBranchDefect, ChangeMessageVisibilityBranchProviderRejected, ChangeMessageVisibilityBranchReceiptHandleInvalid, ChangeMessageVisibilityDefinition, ChangeMessageVisibilityInput, ChangeMessageVisibilityMetadata, ChangeMessageVisibilityOperation, type ChangeMessageVisibilityStepConfig, ChangedMessageVisibility, Config, Connection, ConnectorID, CreateQueueBranch, CreateQueueBranchCreated, CreateQueueBranchDefect, CreateQueueBranchInvalidResponse, CreateQueueBranchProviderRejected, CreateQueueDefinition, CreateQueueInput, CreateQueueMetadata, CreateQueueOperation, type CreateQueueStepConfig, Credentials, DeleteMessageBranch, DeleteMessageBranchDefect, DeleteMessageBranchDeleted, DeleteMessageBranchProviderRejected, DeleteMessageBranchReceiptHandleInvalid, DeleteMessageDefinition, DeleteMessageInput, DeleteMessageMetadata, DeleteMessageOperation, type DeleteMessageStepConfig, DeleteQueueBranch, DeleteQueueBranchDefect, DeleteQueueBranchDeleted, DeleteQueueBranchProviderRejected, DeleteQueueDefinition, DeleteQueueMetadata, DeleteQueueOperation, type DeleteQueueStepConfig, DeletedMessage, GetQueueAttributesBranch, GetQueueAttributesBranchDefect, GetQueueAttributesBranchFound, GetQueueAttributesBranchInvalidResponse, GetQueueAttributesBranchMissing, GetQueueAttributesBranchProviderRejected, GetQueueAttributesDefinition, GetQueueAttributesMetadata, GetQueueAttributesOperation, type GetQueueAttributesStepConfig, GetQueueURLBranch, GetQueueURLBranchDefect, GetQueueURLBranchFound, GetQueueURLBranchInvalidResponse, GetQueueURLBranchMissing, GetQueueURLBranchProviderRejected, GetQueueURLDefinition, GetQueueURLMetadata, GetQueueURLOperation, type GetQueueURLStepConfig, ListQueuesBranch, ListQueuesBranchDefect, ListQueuesBranchInvalidResponse, ListQueuesBranchPage, ListQueuesBranchProviderRejected, ListQueuesDefinition, ListQueuesInput, ListQueuesMetadata, ListQueuesOperation, type ListQueuesStepConfig, Operations, ProviderID, type QueueAddress, QueueAttributes, QueueIdentity, QueueNameInput, QueuePage, QueueURLInput, ReceiveMessagesBranch, ReceiveMessagesBranchDefect, ReceiveMessagesBranchEmpty, ReceiveMessagesBranchInvalidResponse, ReceiveMessagesBranchProviderRejected, ReceiveMessagesBranchReceived, ReceiveMessagesDefinition, ReceiveMessagesInput, ReceiveMessagesMetadata, ReceiveMessagesOperation, type ReceiveMessagesStepConfig, ReceivedMessages, SQSClient, type SQSClientOptions, type SQSRequestSender, type SQSResponse, SendMessageBranch, SendMessageBranchDefect, SendMessageBranchProviderRejected, SendMessageBranchSent, SendMessageBranchUncertain, SendMessageDefinition, SendMessageInput, SendMessageMetadata, SendMessageOperation, type SendMessageStepConfig, SentMessage, SetQueueAttributeBranch, SetQueueAttributeBranchDefect, SetQueueAttributeBranchProviderRejected, SetQueueAttributeBranchUpdated, SetQueueAttributeDefinition, SetQueueAttributeInput, SetQueueAttributeMetadata, SetQueueAttributeOperation, type SetQueueAttributeStepConfig, classifyResponse, header, newChangeMessageVisibilityStep, newCreateQueueStep, newDeleteMessageStep, newDeleteQueueStep, newGetQueueAttributesStep, newGetQueueURLStep, newListQueuesStep, newProjectConnection, newReceiveMessagesStep, newSQSConnectionWithOperations, newSendMessageStep, newSetQueueAttributeStep, receiveSystemAttributes };
|