@superdurable/connector-amazon-sqs 0.1.2 → 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 +368 -2
- package/dist/{chunk-GUYXQWWQ.js → chunk-WRBFEUIT.js} +258 -3
- package/dist/{connection-BC2kNwv9.d.ts → connection-DHP5tO3q.d.ts} +143 -2
- package/dist/index.d.ts +411 -9
- package/dist/index.js +737 -33
- package/dist/sqsmock.d.ts +128 -3
- package/dist/sqsmock.js +305 -3
- package/package.json +4 -3
|
@@ -62,6 +62,16 @@ function decodeCredentials(value) {
|
|
|
62
62
|
credentials.sessionToken = new SecretString(fields["session_token"] ?? "");
|
|
63
63
|
return credentials;
|
|
64
64
|
}
|
|
65
|
+
var SendMessageInputSchema = z.strictObject({
|
|
66
|
+
"queueUrl": z.string().optional(),
|
|
67
|
+
"body": z.string(),
|
|
68
|
+
"messageGroupId": z.string().optional()
|
|
69
|
+
});
|
|
70
|
+
var SentMessageSchema = z.strictObject({
|
|
71
|
+
"queueUrl": z.string(),
|
|
72
|
+
"messageId": z.string(),
|
|
73
|
+
"md5OfBody": z.string()
|
|
74
|
+
});
|
|
65
75
|
var ReceiveMessagesInputSchema = z.strictObject({
|
|
66
76
|
"queueUrl": z.string().optional(),
|
|
67
77
|
"maxMessages": z.number().int().optional(),
|
|
@@ -112,10 +122,64 @@ var ChangedMessageVisibilitySchema = z.strictObject({
|
|
|
112
122
|
"visibilityTimeoutSeconds": z.number().int(),
|
|
113
123
|
"visibleAfter": GoTimeJSONSchema
|
|
114
124
|
});
|
|
125
|
+
var ListQueuesInputSchema = z.strictObject({
|
|
126
|
+
"queueNamePrefix": z.string().optional(),
|
|
127
|
+
"maxResults": z.number().int().optional(),
|
|
128
|
+
"nextToken": z.string().optional()
|
|
129
|
+
});
|
|
130
|
+
var QueuePageSchema = z.strictObject({
|
|
131
|
+
"queueUrls": z.array(z.string()).nullable(),
|
|
132
|
+
"nextToken": z.string().optional()
|
|
133
|
+
});
|
|
134
|
+
var CreateQueueInputSchema = z.strictObject({
|
|
135
|
+
"queueName": z.string(),
|
|
136
|
+
"attributes": z.record(z.string(), z.string()).optional()
|
|
137
|
+
});
|
|
138
|
+
var QueueIdentitySchema = z.strictObject({
|
|
139
|
+
"queueUrl": z.string()
|
|
140
|
+
});
|
|
141
|
+
var QueueNameInputSchema = z.strictObject({
|
|
142
|
+
"queueName": z.string()
|
|
143
|
+
});
|
|
144
|
+
var QueueURLInputSchema = z.strictObject({
|
|
145
|
+
"queueUrl": z.string().optional()
|
|
146
|
+
});
|
|
147
|
+
var QueueAttributesSchema = z.strictObject({
|
|
148
|
+
"queueUrl": z.string(),
|
|
149
|
+
"attributes": z.record(z.string(), z.string()).nullable()
|
|
150
|
+
});
|
|
151
|
+
var SetQueueAttributeInputSchema = z.strictObject({
|
|
152
|
+
"queueUrl": z.string().optional(),
|
|
153
|
+
"attributeName": z.string(),
|
|
154
|
+
"attributeValue": z.string()
|
|
155
|
+
});
|
|
115
156
|
|
|
116
157
|
// src/generated/definitions.ts
|
|
117
158
|
var ConnectorID = "amazon-sqs";
|
|
118
159
|
var ProviderID = "amazon-sqs";
|
|
160
|
+
var SendMessageBranch = {
|
|
161
|
+
Sent: "sent",
|
|
162
|
+
ProviderRejected: "providerRejected",
|
|
163
|
+
Uncertain: "uncertain",
|
|
164
|
+
Defect: "defect"
|
|
165
|
+
};
|
|
166
|
+
var SendMessageBranchSent = SendMessageBranch.Sent;
|
|
167
|
+
var SendMessageBranchProviderRejected = SendMessageBranch.ProviderRejected;
|
|
168
|
+
var SendMessageBranchUncertain = SendMessageBranch.Uncertain;
|
|
169
|
+
var SendMessageBranchDefect = SendMessageBranch.Defect;
|
|
170
|
+
var SendMessageDefinition = {
|
|
171
|
+
operation: { connectorId: ConnectorID, operationId: "sendMessage" },
|
|
172
|
+
branches: [
|
|
173
|
+
{ id: "sent", description: "SQS accepted the message and returned its message ID." },
|
|
174
|
+
{ id: "providerRejected", description: "SQS conclusively rejected the queue or message.", optional: true },
|
|
175
|
+
{ id: "uncertain", description: "SQS may have accepted the message but did not return a usable response before the send cap.", optional: true },
|
|
176
|
+
{ id: "defect", description: "The queue URL, message, or connection is invalid.", optional: true }
|
|
177
|
+
],
|
|
178
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync" },
|
|
179
|
+
repeatOnUnknown: "limited",
|
|
180
|
+
maxSends: 3
|
|
181
|
+
};
|
|
182
|
+
var SendMessageMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
|
|
119
183
|
var ReceiveMessagesBranch = {
|
|
120
184
|
Received: "received",
|
|
121
185
|
Empty: "empty",
|
|
@@ -137,7 +201,8 @@ var ReceiveMessagesDefinition = {
|
|
|
137
201
|
{ id: "invalidResponse", description: "SQS returned an invalid or oversized batch, or a message whose body does not match its MD5 digest; the batch's messages reappear when their visibility timeout ends.", optional: true },
|
|
138
202
|
{ id: "defect", description: "Local input, connection configuration, or connector definition is invalid.", optional: true }
|
|
139
203
|
],
|
|
140
|
-
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync", executeRetry: { initialIntervalMs: 1e3, backoffCoefficient: 2, maximumIntervalMs: 3e4, maximumAttempts: 5, totalDurationMs: 12e4 } }
|
|
204
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "sync", executeRetry: { initialIntervalMs: 1e3, backoffCoefficient: 2, maximumIntervalMs: 3e4, maximumAttempts: 5, totalDurationMs: 12e4 } },
|
|
205
|
+
repeatOnUnknown: "safe"
|
|
141
206
|
};
|
|
142
207
|
var ReceiveMessagesMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
|
|
143
208
|
var DeleteMessageBranch = {
|
|
@@ -158,7 +223,8 @@ var DeleteMessageDefinition = {
|
|
|
158
223
|
{ id: "providerRejected", description: "SQS conclusively rejected the deletion, such as a missing queue, a wrong Region, invalid credentials, or missing sqs:DeleteMessage permission.", optional: true },
|
|
159
224
|
{ id: "defect", description: "Local input, connection configuration, or connector definition is invalid.", optional: true }
|
|
160
225
|
],
|
|
161
|
-
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
|
|
226
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
|
|
227
|
+
repeatOnUnknown: "safe"
|
|
162
228
|
};
|
|
163
229
|
var DeleteMessageMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
|
|
164
230
|
var ChangeMessageVisibilityBranch = {
|
|
@@ -179,9 +245,139 @@ var ChangeMessageVisibilityDefinition = {
|
|
|
179
245
|
{ id: "providerRejected", description: "SQS conclusively rejected the change, such as a missing queue, a wrong Region, invalid credentials, missing sqs:ChangeMessageVisibility permission, or a timeout above the 12-hour limit.", optional: true },
|
|
180
246
|
{ id: "defect", description: "Local input, connection configuration, or connector definition is invalid.", optional: true }
|
|
181
247
|
],
|
|
182
|
-
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async", executeRetry: { initialIntervalMs: 1e3, backoffCoefficient: 2, maximumIntervalMs: 3e4, maximumAttempts: 5, totalDurationMs: 12e4 } }
|
|
248
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async", executeRetry: { initialIntervalMs: 1e3, backoffCoefficient: 2, maximumIntervalMs: 3e4, maximumAttempts: 5, totalDurationMs: 12e4 } },
|
|
249
|
+
repeatOnUnknown: "safe"
|
|
183
250
|
};
|
|
184
251
|
var ChangeMessageVisibilityMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
|
|
252
|
+
var ListQueuesBranch = {
|
|
253
|
+
Page: "page",
|
|
254
|
+
ProviderRejected: "providerRejected",
|
|
255
|
+
InvalidResponse: "invalidResponse",
|
|
256
|
+
Defect: "defect"
|
|
257
|
+
};
|
|
258
|
+
var ListQueuesBranchPage = ListQueuesBranch.Page;
|
|
259
|
+
var ListQueuesBranchProviderRejected = ListQueuesBranch.ProviderRejected;
|
|
260
|
+
var ListQueuesBranchInvalidResponse = ListQueuesBranch.InvalidResponse;
|
|
261
|
+
var ListQueuesBranchDefect = ListQueuesBranch.Defect;
|
|
262
|
+
var ListQueuesDefinition = {
|
|
263
|
+
operation: { connectorId: ConnectorID, operationId: "listQueues" },
|
|
264
|
+
branches: [
|
|
265
|
+
{ id: "page", description: "SQS returned a page of queue URLs." },
|
|
266
|
+
{ id: "providerRejected", description: "SQS refused the list.", optional: true },
|
|
267
|
+
{ id: "invalidResponse", description: "SQS returned invalid queue data.", optional: true },
|
|
268
|
+
{ id: "defect", description: "Queue filter or credentials are invalid.", optional: true }
|
|
269
|
+
],
|
|
270
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
|
|
271
|
+
};
|
|
272
|
+
var ListQueuesMetadata = { kind: "query", idempotency: "none", authorization: "required" };
|
|
273
|
+
var CreateQueueBranch = {
|
|
274
|
+
Created: "created",
|
|
275
|
+
ProviderRejected: "providerRejected",
|
|
276
|
+
InvalidResponse: "invalidResponse",
|
|
277
|
+
Defect: "defect"
|
|
278
|
+
};
|
|
279
|
+
var CreateQueueBranchCreated = CreateQueueBranch.Created;
|
|
280
|
+
var CreateQueueBranchProviderRejected = CreateQueueBranch.ProviderRejected;
|
|
281
|
+
var CreateQueueBranchInvalidResponse = CreateQueueBranch.InvalidResponse;
|
|
282
|
+
var CreateQueueBranchDefect = CreateQueueBranch.Defect;
|
|
283
|
+
var CreateQueueDefinition = {
|
|
284
|
+
operation: { connectorId: ConnectorID, operationId: "createQueue" },
|
|
285
|
+
branches: [
|
|
286
|
+
{ id: "created", description: "SQS returned the queue URL." },
|
|
287
|
+
{ id: "providerRejected", description: "SQS refused the creation or the name already has different attributes.", optional: true },
|
|
288
|
+
{ id: "invalidResponse", description: "SQS returned an invalid queue URL.", optional: true },
|
|
289
|
+
{ id: "defect", description: "Queue name, attributes, or credentials are invalid.", optional: true }
|
|
290
|
+
],
|
|
291
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
|
|
292
|
+
repeatOnUnknown: "safe"
|
|
293
|
+
};
|
|
294
|
+
var CreateQueueMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
|
|
295
|
+
var GetQueueURLBranch = {
|
|
296
|
+
Found: "found",
|
|
297
|
+
Missing: "missing",
|
|
298
|
+
ProviderRejected: "providerRejected",
|
|
299
|
+
InvalidResponse: "invalidResponse",
|
|
300
|
+
Defect: "defect"
|
|
301
|
+
};
|
|
302
|
+
var GetQueueURLBranchFound = GetQueueURLBranch.Found;
|
|
303
|
+
var GetQueueURLBranchMissing = GetQueueURLBranch.Missing;
|
|
304
|
+
var GetQueueURLBranchProviderRejected = GetQueueURLBranch.ProviderRejected;
|
|
305
|
+
var GetQueueURLBranchInvalidResponse = GetQueueURLBranch.InvalidResponse;
|
|
306
|
+
var GetQueueURLBranchDefect = GetQueueURLBranch.Defect;
|
|
307
|
+
var GetQueueURLDefinition = {
|
|
308
|
+
operation: { connectorId: ConnectorID, operationId: "getQueueURL" },
|
|
309
|
+
branches: [
|
|
310
|
+
{ id: "found", description: "SQS returned the queue URL." },
|
|
311
|
+
{ id: "missing", description: "The queue does not exist.", optional: true },
|
|
312
|
+
{ id: "providerRejected", description: "SQS refused the lookup.", optional: true },
|
|
313
|
+
{ id: "invalidResponse", description: "SQS returned an invalid queue URL.", optional: true },
|
|
314
|
+
{ id: "defect", description: "Queue name or credentials are invalid.", optional: true }
|
|
315
|
+
],
|
|
316
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
|
|
317
|
+
};
|
|
318
|
+
var GetQueueURLMetadata = { kind: "query", idempotency: "none", authorization: "required" };
|
|
319
|
+
var GetQueueAttributesBranch = {
|
|
320
|
+
Found: "found",
|
|
321
|
+
Missing: "missing",
|
|
322
|
+
ProviderRejected: "providerRejected",
|
|
323
|
+
InvalidResponse: "invalidResponse",
|
|
324
|
+
Defect: "defect"
|
|
325
|
+
};
|
|
326
|
+
var GetQueueAttributesBranchFound = GetQueueAttributesBranch.Found;
|
|
327
|
+
var GetQueueAttributesBranchMissing = GetQueueAttributesBranch.Missing;
|
|
328
|
+
var GetQueueAttributesBranchProviderRejected = GetQueueAttributesBranch.ProviderRejected;
|
|
329
|
+
var GetQueueAttributesBranchInvalidResponse = GetQueueAttributesBranch.InvalidResponse;
|
|
330
|
+
var GetQueueAttributesBranchDefect = GetQueueAttributesBranch.Defect;
|
|
331
|
+
var GetQueueAttributesDefinition = {
|
|
332
|
+
operation: { connectorId: ConnectorID, operationId: "getQueueAttributes" },
|
|
333
|
+
branches: [
|
|
334
|
+
{ id: "found", description: "SQS returned queue attributes." },
|
|
335
|
+
{ id: "missing", description: "The queue does not exist.", optional: true },
|
|
336
|
+
{ id: "providerRejected", description: "SQS refused the read.", optional: true },
|
|
337
|
+
{ id: "invalidResponse", description: "SQS returned invalid attributes.", optional: true },
|
|
338
|
+
{ id: "defect", description: "Queue URL or credentials are invalid.", optional: true }
|
|
339
|
+
],
|
|
340
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" }
|
|
341
|
+
};
|
|
342
|
+
var GetQueueAttributesMetadata = { kind: "query", idempotency: "none", authorization: "required" };
|
|
343
|
+
var SetQueueAttributeBranch = {
|
|
344
|
+
Updated: "updated",
|
|
345
|
+
ProviderRejected: "providerRejected",
|
|
346
|
+
Defect: "defect"
|
|
347
|
+
};
|
|
348
|
+
var SetQueueAttributeBranchUpdated = SetQueueAttributeBranch.Updated;
|
|
349
|
+
var SetQueueAttributeBranchProviderRejected = SetQueueAttributeBranch.ProviderRejected;
|
|
350
|
+
var SetQueueAttributeBranchDefect = SetQueueAttributeBranch.Defect;
|
|
351
|
+
var SetQueueAttributeDefinition = {
|
|
352
|
+
operation: { connectorId: ConnectorID, operationId: "setQueueAttribute" },
|
|
353
|
+
branches: [
|
|
354
|
+
{ id: "updated", description: "SQS accepted the new setting." },
|
|
355
|
+
{ id: "providerRejected", description: "SQS refused the setting.", optional: true },
|
|
356
|
+
{ id: "defect", description: "Queue URL, setting, or credentials are invalid.", optional: true }
|
|
357
|
+
],
|
|
358
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
|
|
359
|
+
repeatOnUnknown: "safe"
|
|
360
|
+
};
|
|
361
|
+
var SetQueueAttributeMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
|
|
362
|
+
var DeleteQueueBranch = {
|
|
363
|
+
Deleted: "deleted",
|
|
364
|
+
ProviderRejected: "providerRejected",
|
|
365
|
+
Defect: "defect"
|
|
366
|
+
};
|
|
367
|
+
var DeleteQueueBranchDeleted = DeleteQueueBranch.Deleted;
|
|
368
|
+
var DeleteQueueBranchProviderRejected = DeleteQueueBranch.ProviderRejected;
|
|
369
|
+
var DeleteQueueBranchDefect = DeleteQueueBranch.Defect;
|
|
370
|
+
var DeleteQueueDefinition = {
|
|
371
|
+
operation: { connectorId: ConnectorID, operationId: "deleteQueue" },
|
|
372
|
+
branches: [
|
|
373
|
+
{ id: "deleted", description: "SQS accepted queue deletion." },
|
|
374
|
+
{ id: "providerRejected", description: "SQS refused queue deletion.", optional: true },
|
|
375
|
+
{ id: "defect", description: "Queue URL or credentials are invalid.", optional: true }
|
|
376
|
+
],
|
|
377
|
+
stepDefaults: { executeMethodTimeoutMs: 3e4, executeDurability: "async" },
|
|
378
|
+
repeatOnUnknown: "safe"
|
|
379
|
+
};
|
|
380
|
+
var DeleteQueueMetadata = { kind: "mutation", idempotency: "required", authorization: "required" };
|
|
185
381
|
|
|
186
382
|
// src/generated/connection.ts
|
|
187
383
|
import { ConnectionRefSchema } from "@superdurable/connectors-sdk";
|
|
@@ -211,6 +407,8 @@ export {
|
|
|
211
407
|
CredentialMaterialError,
|
|
212
408
|
isCredentialMaterialError,
|
|
213
409
|
decodeCredentials,
|
|
410
|
+
SendMessageInputSchema,
|
|
411
|
+
SentMessageSchema,
|
|
214
412
|
ReceiveMessagesInputSchema,
|
|
215
413
|
MessageAttributeValueSchema,
|
|
216
414
|
MessageSchema,
|
|
@@ -219,8 +417,23 @@ export {
|
|
|
219
417
|
DeletedMessageSchema,
|
|
220
418
|
ChangeMessageVisibilityInputSchema,
|
|
221
419
|
ChangedMessageVisibilitySchema,
|
|
420
|
+
ListQueuesInputSchema,
|
|
421
|
+
QueuePageSchema,
|
|
422
|
+
CreateQueueInputSchema,
|
|
423
|
+
QueueIdentitySchema,
|
|
424
|
+
QueueNameInputSchema,
|
|
425
|
+
QueueURLInputSchema,
|
|
426
|
+
QueueAttributesSchema,
|
|
427
|
+
SetQueueAttributeInputSchema,
|
|
222
428
|
ConnectorID,
|
|
223
429
|
ProviderID,
|
|
430
|
+
SendMessageBranch,
|
|
431
|
+
SendMessageBranchSent,
|
|
432
|
+
SendMessageBranchProviderRejected,
|
|
433
|
+
SendMessageBranchUncertain,
|
|
434
|
+
SendMessageBranchDefect,
|
|
435
|
+
SendMessageDefinition,
|
|
436
|
+
SendMessageMetadata,
|
|
224
437
|
ReceiveMessagesBranch,
|
|
225
438
|
ReceiveMessagesBranchReceived,
|
|
226
439
|
ReceiveMessagesBranchEmpty,
|
|
@@ -243,6 +456,48 @@ export {
|
|
|
243
456
|
ChangeMessageVisibilityBranchDefect,
|
|
244
457
|
ChangeMessageVisibilityDefinition,
|
|
245
458
|
ChangeMessageVisibilityMetadata,
|
|
459
|
+
ListQueuesBranch,
|
|
460
|
+
ListQueuesBranchPage,
|
|
461
|
+
ListQueuesBranchProviderRejected,
|
|
462
|
+
ListQueuesBranchInvalidResponse,
|
|
463
|
+
ListQueuesBranchDefect,
|
|
464
|
+
ListQueuesDefinition,
|
|
465
|
+
ListQueuesMetadata,
|
|
466
|
+
CreateQueueBranch,
|
|
467
|
+
CreateQueueBranchCreated,
|
|
468
|
+
CreateQueueBranchProviderRejected,
|
|
469
|
+
CreateQueueBranchInvalidResponse,
|
|
470
|
+
CreateQueueBranchDefect,
|
|
471
|
+
CreateQueueDefinition,
|
|
472
|
+
CreateQueueMetadata,
|
|
473
|
+
GetQueueURLBranch,
|
|
474
|
+
GetQueueURLBranchFound,
|
|
475
|
+
GetQueueURLBranchMissing,
|
|
476
|
+
GetQueueURLBranchProviderRejected,
|
|
477
|
+
GetQueueURLBranchInvalidResponse,
|
|
478
|
+
GetQueueURLBranchDefect,
|
|
479
|
+
GetQueueURLDefinition,
|
|
480
|
+
GetQueueURLMetadata,
|
|
481
|
+
GetQueueAttributesBranch,
|
|
482
|
+
GetQueueAttributesBranchFound,
|
|
483
|
+
GetQueueAttributesBranchMissing,
|
|
484
|
+
GetQueueAttributesBranchProviderRejected,
|
|
485
|
+
GetQueueAttributesBranchInvalidResponse,
|
|
486
|
+
GetQueueAttributesBranchDefect,
|
|
487
|
+
GetQueueAttributesDefinition,
|
|
488
|
+
GetQueueAttributesMetadata,
|
|
489
|
+
SetQueueAttributeBranch,
|
|
490
|
+
SetQueueAttributeBranchUpdated,
|
|
491
|
+
SetQueueAttributeBranchProviderRejected,
|
|
492
|
+
SetQueueAttributeBranchDefect,
|
|
493
|
+
SetQueueAttributeDefinition,
|
|
494
|
+
SetQueueAttributeMetadata,
|
|
495
|
+
DeleteQueueBranch,
|
|
496
|
+
DeleteQueueBranchDeleted,
|
|
497
|
+
DeleteQueueBranchProviderRejected,
|
|
498
|
+
DeleteQueueBranchDefect,
|
|
499
|
+
DeleteQueueDefinition,
|
|
500
|
+
DeleteQueueMetadata,
|
|
246
501
|
Connection,
|
|
247
502
|
newConnection,
|
|
248
503
|
newConnectionWithOperations
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { SecretString, CredentialProvider, Mutation, ConnectionRef } from '@superdurable/connectors-sdk';
|
|
1
|
+
import { SecretString, CredentialProvider, Mutation, Query, ConnectionRef } from '@superdurable/connectors-sdk';
|
|
2
2
|
import { z } from 'zod';
|
|
3
3
|
|
|
4
4
|
/** Connector configuration; omitted fields use manifest defaults. */
|
|
@@ -44,6 +44,24 @@ declare function isCredentialMaterialError(error: unknown): boolean;
|
|
|
44
44
|
declare function decodeCredentials(value: unknown): Credentials;
|
|
45
45
|
/** Host-owned source of private connector credentials. */
|
|
46
46
|
type CredentialSource = CredentialProvider<Credentials>;
|
|
47
|
+
/** SendMessageInput sends one UTF-8 message to a standard or FIFO queue. */
|
|
48
|
+
interface SendMessageInput {
|
|
49
|
+
/** QueueURL is the full URL from SQS Console > Queues > selected queue; blank uses defaultQueueUrl. */
|
|
50
|
+
"queueUrl"?: string | undefined;
|
|
51
|
+
/** Body is nonempty UTF-8 text, at most 256 KiB for the default SQS queue size limit. */
|
|
52
|
+
"body": string;
|
|
53
|
+
/** MessageGroupID is required for FIFO queues and optional for standard fair queues. */
|
|
54
|
+
"messageGroupId"?: string | undefined;
|
|
55
|
+
}
|
|
56
|
+
/** SentMessage identifies the message SQS accepted; delivery to a consumer is asynchronous. */
|
|
57
|
+
interface SentMessage {
|
|
58
|
+
/** QueueURL is the destination queue. */
|
|
59
|
+
"queueUrl": string;
|
|
60
|
+
/** MessageID is the SQS-assigned message identity. */
|
|
61
|
+
"messageId": string;
|
|
62
|
+
/** MD5OfBody is the SQS checksum of the sent body. */
|
|
63
|
+
"md5OfBody": string;
|
|
64
|
+
}
|
|
47
65
|
/** ReceiveMessagesInput selects one queue and how long and how many messages to wait for. */
|
|
48
66
|
interface ReceiveMessagesInput {
|
|
49
67
|
/** QueueURL is the queue URL, such as https://sqs.eu-west-1.amazonaws.com/123456789012/orders; blank uses
|
|
@@ -145,6 +163,76 @@ interface ChangedMessageVisibility {
|
|
|
145
163
|
/** VisibleAfter is when the message becomes visible again, measured from the Worker clock when SQS answered. */
|
|
146
164
|
"visibleAfter": string;
|
|
147
165
|
}
|
|
166
|
+
/** ListQueuesInput selects a bounded page of queue URLs in the connection Region. */
|
|
167
|
+
interface ListQueuesInput {
|
|
168
|
+
/** QueueNamePrefix optionally filters names by their first characters. */
|
|
169
|
+
"queueNamePrefix"?: string | undefined;
|
|
170
|
+
/** MaxResults is 1–1000; zero uses 100. */
|
|
171
|
+
"maxResults"?: number | undefined;
|
|
172
|
+
/** NextToken selects the next page; blank starts at the beginning. */
|
|
173
|
+
"nextToken"?: string | undefined;
|
|
174
|
+
}
|
|
175
|
+
/** QueuePage contains one page of queue URLs. */
|
|
176
|
+
interface QueuePage {
|
|
177
|
+
/** QueueURLs are full URLs for queues in the connection Region. */
|
|
178
|
+
"queueUrls": Array<string> | null;
|
|
179
|
+
/** NextToken is blank after the final page. */
|
|
180
|
+
"nextToken"?: string | undefined;
|
|
181
|
+
}
|
|
182
|
+
/** CreateQueueInput defines a queue by name and bounded creation attributes. */
|
|
183
|
+
interface CreateQueueInput {
|
|
184
|
+
/** QueueName is unique within the account and Region. */
|
|
185
|
+
"queueName": string;
|
|
186
|
+
/** Attributes contains FifoQueue, VisibilityTimeout, ReceiveMessageWaitTimeSeconds, DelaySeconds, or MaximumMessageSize. */
|
|
187
|
+
"attributes"?: {
|
|
188
|
+
[key: string]: string;
|
|
189
|
+
} | undefined;
|
|
190
|
+
}
|
|
191
|
+
/** QueueIdentity is the complete queue URL returned by SQS or used for a queue mutation. */
|
|
192
|
+
interface QueueIdentity {
|
|
193
|
+
/** QueueURL is the complete SQS queue URL. */
|
|
194
|
+
"queueUrl": string;
|
|
195
|
+
}
|
|
196
|
+
/** QueueNameInput identifies one queue by name. */
|
|
197
|
+
interface QueueNameInput {
|
|
198
|
+
/** QueueName is a standard name or a name ending in .fifo. */
|
|
199
|
+
"queueName": string;
|
|
200
|
+
}
|
|
201
|
+
/** QueueURLInput identifies an existing queue; blank uses the connection defaultQueueUrl. */
|
|
202
|
+
interface QueueURLInput {
|
|
203
|
+
/** QueueURL is the complete SQS queue URL. */
|
|
204
|
+
"queueUrl"?: string | undefined;
|
|
205
|
+
}
|
|
206
|
+
/** QueueAttributes contains all settings returned for a queue. */
|
|
207
|
+
interface QueueAttributes {
|
|
208
|
+
/** QueueURL is the requested queue. */
|
|
209
|
+
"queueUrl": string;
|
|
210
|
+
/** Attributes are provider named settings and approximate queue counts. */
|
|
211
|
+
"attributes": {
|
|
212
|
+
[key: string]: string;
|
|
213
|
+
} | null;
|
|
214
|
+
}
|
|
215
|
+
/** SetQueueAttributeInput replaces one bounded queue setting. */
|
|
216
|
+
interface SetQueueAttributeInput {
|
|
217
|
+
/** QueueURL is the target queue; blank uses defaultQueueUrl. */
|
|
218
|
+
"queueUrl"?: string | undefined;
|
|
219
|
+
/** AttributeName is VisibilityTimeout, ReceiveMessageWaitTimeSeconds, DelaySeconds, or MaximumMessageSize. */
|
|
220
|
+
"attributeName": string;
|
|
221
|
+
/** AttributeValue is an integer as decimal text, in seconds or bytes according to AttributeName. */
|
|
222
|
+
"attributeValue": string;
|
|
223
|
+
}
|
|
224
|
+
/** Runtime validator for SendMessageInput. */
|
|
225
|
+
declare const SendMessageInputSchema: z.ZodObject<{
|
|
226
|
+
queueUrl: z.ZodOptional<z.ZodString>;
|
|
227
|
+
body: z.ZodString;
|
|
228
|
+
messageGroupId: z.ZodOptional<z.ZodString>;
|
|
229
|
+
}, z.core.$strict>;
|
|
230
|
+
/** Runtime validator for SentMessage. */
|
|
231
|
+
declare const SentMessageSchema: z.ZodObject<{
|
|
232
|
+
queueUrl: z.ZodString;
|
|
233
|
+
messageId: z.ZodString;
|
|
234
|
+
md5OfBody: z.ZodString;
|
|
235
|
+
}, z.core.$strict>;
|
|
148
236
|
/** Runtime validator for ReceiveMessagesInput. */
|
|
149
237
|
declare const ReceiveMessagesInputSchema: z.ZodObject<{
|
|
150
238
|
queueUrl: z.ZodOptional<z.ZodString>;
|
|
@@ -223,15 +311,68 @@ declare const ChangedMessageVisibilitySchema: z.ZodObject<{
|
|
|
223
311
|
visibilityTimeoutSeconds: z.ZodNumber;
|
|
224
312
|
visibleAfter: z.ZodPipe<z.ZodString, z.ZodTransform<string, string>>;
|
|
225
313
|
}, z.core.$strict>;
|
|
314
|
+
/** Runtime validator for ListQueuesInput. */
|
|
315
|
+
declare const ListQueuesInputSchema: z.ZodObject<{
|
|
316
|
+
queueNamePrefix: z.ZodOptional<z.ZodString>;
|
|
317
|
+
maxResults: z.ZodOptional<z.ZodNumber>;
|
|
318
|
+
nextToken: z.ZodOptional<z.ZodString>;
|
|
319
|
+
}, z.core.$strict>;
|
|
320
|
+
/** Runtime validator for QueuePage. */
|
|
321
|
+
declare const QueuePageSchema: z.ZodObject<{
|
|
322
|
+
queueUrls: z.ZodNullable<z.ZodArray<z.ZodString>>;
|
|
323
|
+
nextToken: z.ZodOptional<z.ZodString>;
|
|
324
|
+
}, z.core.$strict>;
|
|
325
|
+
/** Runtime validator for CreateQueueInput. */
|
|
326
|
+
declare const CreateQueueInputSchema: z.ZodObject<{
|
|
327
|
+
queueName: z.ZodString;
|
|
328
|
+
attributes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
329
|
+
}, z.core.$strict>;
|
|
330
|
+
/** Runtime validator for QueueIdentity. */
|
|
331
|
+
declare const QueueIdentitySchema: z.ZodObject<{
|
|
332
|
+
queueUrl: z.ZodString;
|
|
333
|
+
}, z.core.$strict>;
|
|
334
|
+
/** Runtime validator for QueueNameInput. */
|
|
335
|
+
declare const QueueNameInputSchema: z.ZodObject<{
|
|
336
|
+
queueName: z.ZodString;
|
|
337
|
+
}, z.core.$strict>;
|
|
338
|
+
/** Runtime validator for QueueURLInput. */
|
|
339
|
+
declare const QueueURLInputSchema: z.ZodObject<{
|
|
340
|
+
queueUrl: z.ZodOptional<z.ZodString>;
|
|
341
|
+
}, z.core.$strict>;
|
|
342
|
+
/** Runtime validator for QueueAttributes. */
|
|
343
|
+
declare const QueueAttributesSchema: z.ZodObject<{
|
|
344
|
+
queueUrl: z.ZodString;
|
|
345
|
+
attributes: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
346
|
+
}, z.core.$strict>;
|
|
347
|
+
/** Runtime validator for SetQueueAttributeInput. */
|
|
348
|
+
declare const SetQueueAttributeInputSchema: z.ZodObject<{
|
|
349
|
+
queueUrl: z.ZodOptional<z.ZodString>;
|
|
350
|
+
attributeName: z.ZodString;
|
|
351
|
+
attributeValue: z.ZodString;
|
|
352
|
+
}, z.core.$strict>;
|
|
226
353
|
|
|
227
354
|
/** Typed operations supplied by a client or mock. */
|
|
228
355
|
interface Operations {
|
|
356
|
+
/** Invoke sendMessage through this connection. */
|
|
357
|
+
sendMessage(): Mutation<SendMessageInput, SentMessage>;
|
|
229
358
|
/** Invoke receiveMessages through this connection. */
|
|
230
359
|
receiveMessages(): Mutation<ReceiveMessagesInput, ReceivedMessages>;
|
|
231
360
|
/** Invoke deleteMessage through this connection. */
|
|
232
361
|
deleteMessage(): Mutation<DeleteMessageInput, DeletedMessage>;
|
|
233
362
|
/** Invoke changeMessageVisibility through this connection. */
|
|
234
363
|
changeMessageVisibility(): Mutation<ChangeMessageVisibilityInput, ChangedMessageVisibility>;
|
|
364
|
+
/** Invoke listQueues through this connection. */
|
|
365
|
+
listQueues(): Query<ListQueuesInput, QueuePage>;
|
|
366
|
+
/** Invoke createQueue through this connection. */
|
|
367
|
+
createQueue(): Mutation<CreateQueueInput, QueueIdentity>;
|
|
368
|
+
/** Invoke getQueueURL through this connection. */
|
|
369
|
+
getQueueURL(): Query<QueueNameInput, QueueIdentity>;
|
|
370
|
+
/** Invoke getQueueAttributes through this connection. */
|
|
371
|
+
getQueueAttributes(): Query<QueueURLInput, QueueAttributes>;
|
|
372
|
+
/** Invoke setQueueAttribute through this connection. */
|
|
373
|
+
setQueueAttribute(): Mutation<SetQueueAttributeInput, QueueIdentity>;
|
|
374
|
+
/** Invoke deleteQueue through this connection. */
|
|
375
|
+
deleteQueue(): Mutation<QueueURLInput, QueueIdentity>;
|
|
235
376
|
}
|
|
236
377
|
/** Named connector connection kept outside Flow state. */
|
|
237
378
|
declare class Connection<BoundOperations = Operations> {
|
|
@@ -247,4 +388,4 @@ declare function newConnection(client: Operations, reference: ConnectionRef): Co
|
|
|
247
388
|
/** Bind scripted operations to a named connection. */
|
|
248
389
|
declare function newConnectionWithOperations(operations: Operations, reference: ConnectionRef): Connection;
|
|
249
390
|
|
|
250
|
-
export { type ChangeMessageVisibilityInput as C, type DeleteMessageInput as D, type Message as M, type Operations as O, type ReceiveMessagesInput as R, type ChangedMessageVisibility as a, Connection as b, type
|
|
391
|
+
export { QueueIdentitySchema as A, QueueNameInputSchema as B, type ChangeMessageVisibilityInput as C, type DeleteMessageInput as D, QueuePageSchema as E, QueueURLInputSchema as F, ReceiveMessagesInputSchema as G, ReceivedMessagesSchema as H, SendMessageInputSchema as I, SentMessageSchema as J, SetQueueAttributeInputSchema as K, type ListQueuesInput as L, type Message as M, decodeCredentials as N, type Operations as O, isCredentialMaterialError as P, type QueueIdentity as Q, type ReceiveMessagesInput as R, type SendMessageInput as S, newConnection as T, newConnectionWithOperations as U, type ChangedMessageVisibility as a, Connection as b, type CreateQueueInput as c, type DeletedMessage as d, type QueueURLInput as e, type QueueAttributes as f, type QueueNameInput as g, type QueuePage as h, type ReceivedMessages as i, type SentMessage as j, type SetQueueAttributeInput as k, type Config as l, type Credentials as m, ChangeMessageVisibilityInputSchema as n, ChangedMessageVisibilitySchema as o, ConfigSchema as p, CreateQueueInputSchema as q, CredentialMaterialError as r, type CredentialSource as s, DeleteMessageInputSchema as t, DeletedMessageSchema as u, ListQueuesInputSchema as v, type MessageAttributeValue as w, MessageAttributeValueSchema as x, MessageSchema as y, QueueAttributesSchema as z };
|