@prismatic-io/components-aws-sns 0.0.0-stage → 0.1.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.
@@ -0,0 +1,549 @@
1
+ //#region npm-dist/.entry.d.ts
2
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
3
+ key: "aws-sns";
4
+ documentationUrl: "https://prismatic.io/docs/components/aws-sns/";
5
+ public: true;
6
+ display: {
7
+ label: string;
8
+ description: string;
9
+ iconPath: string;
10
+ category: "Data Platforms";
11
+ };
12
+ actions: {
13
+ createTopic: import("@prismatic-io/spectral").ActionDefinition<{
14
+ awsRegion: {
15
+ label: string;
16
+ placeholder: string;
17
+ type: "string";
18
+ required: false;
19
+ comments: string;
20
+ example: string;
21
+ dataSource: string;
22
+ clean: (value: unknown, defaultValue?: string) => string;
23
+ };
24
+ name: {
25
+ label: string;
26
+ type: "string";
27
+ required: true;
28
+ placeholder: string;
29
+ example: string;
30
+ comments: string;
31
+ };
32
+ awsConnection: {
33
+ label: string;
34
+ type: "connection";
35
+ required: true;
36
+ comments: string;
37
+ };
38
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
39
+ data: import("@aws-sdk/client-sns").CreateTopicResponse;
40
+ }>;
41
+ deleteTopic: import("@prismatic-io/spectral").ActionDefinition<{
42
+ awsRegion: {
43
+ label: string;
44
+ placeholder: string;
45
+ type: "string";
46
+ required: false;
47
+ comments: string;
48
+ example: string;
49
+ dataSource: string;
50
+ clean: (value: unknown, defaultValue?: string) => string;
51
+ };
52
+ topicArn: {
53
+ label: string;
54
+ type: "string";
55
+ required: true;
56
+ placeholder: string;
57
+ example: string;
58
+ comments: string;
59
+ dataSource: string;
60
+ clean: (value: unknown, defaultValue?: string) => string;
61
+ };
62
+ awsConnection: {
63
+ label: string;
64
+ type: "connection";
65
+ required: true;
66
+ comments: string;
67
+ };
68
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
69
+ data: {};
70
+ }>;
71
+ getTopicAttributes: import("@prismatic-io/spectral").ActionDefinition<{
72
+ awsRegion: {
73
+ label: string;
74
+ placeholder: string;
75
+ type: "string";
76
+ required: false;
77
+ comments: string;
78
+ example: string;
79
+ dataSource: string;
80
+ clean: (value: unknown, defaultValue?: string) => string;
81
+ };
82
+ topicArn: {
83
+ label: string;
84
+ type: "string";
85
+ required: true;
86
+ placeholder: string;
87
+ example: string;
88
+ comments: string;
89
+ dataSource: string;
90
+ clean: (value: unknown, defaultValue?: string) => string;
91
+ };
92
+ awsConnection: {
93
+ label: string;
94
+ type: "connection";
95
+ required: true;
96
+ comments: string;
97
+ };
98
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
99
+ data: import("@aws-sdk/client-sns").GetTopicAttributesResponse;
100
+ }>;
101
+ listTopics: import("@prismatic-io/spectral").ActionDefinition<{
102
+ awsConnection: {
103
+ label: string;
104
+ type: "connection";
105
+ required: true;
106
+ comments: string;
107
+ };
108
+ awsRegion: {
109
+ label: string;
110
+ placeholder: string;
111
+ type: "string";
112
+ required: false;
113
+ comments: string;
114
+ example: string;
115
+ dataSource: string;
116
+ clean: (value: unknown, defaultValue?: string) => string;
117
+ };
118
+ fetchAllTopics: {
119
+ comments: string;
120
+ label: string;
121
+ type: "boolean";
122
+ required: true;
123
+ default: string;
124
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
125
+ };
126
+ nextToken: {
127
+ label: string;
128
+ type: "string";
129
+ required: false;
130
+ placeholder: string;
131
+ example: string;
132
+ comments: string;
133
+ clean: (value: unknown) => string | undefined;
134
+ };
135
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
136
+ data: import("@aws-sdk/client-sns").ListTopicsResponse;
137
+ }>;
138
+ publishMessage: import("@prismatic-io/spectral").ActionDefinition<{
139
+ awsRegion: {
140
+ label: string;
141
+ placeholder: string;
142
+ type: "string";
143
+ required: false;
144
+ comments: string;
145
+ example: string;
146
+ dataSource: string;
147
+ clean: (value: unknown, defaultValue?: string) => string;
148
+ };
149
+ message: {
150
+ label: string;
151
+ type: "string";
152
+ required: true;
153
+ placeholder: string;
154
+ example: string;
155
+ comments: string;
156
+ };
157
+ topicArn: {
158
+ label: string;
159
+ type: "string";
160
+ required: true;
161
+ placeholder: string;
162
+ example: string;
163
+ comments: string;
164
+ dataSource: string;
165
+ clean: (value: unknown, defaultValue?: string) => string;
166
+ };
167
+ messageAttributes: {
168
+ label: string;
169
+ type: "string";
170
+ required: false;
171
+ collection: "keyvaluelist";
172
+ placeholder: string;
173
+ example: string;
174
+ comments: string;
175
+ };
176
+ awsConnection: {
177
+ label: string;
178
+ type: "connection";
179
+ required: true;
180
+ comments: string;
181
+ };
182
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
183
+ data: import("@aws-sdk/client-sns").PublishResponse;
184
+ }>;
185
+ publishBatchMessages: import("@prismatic-io/spectral").ActionDefinition<{
186
+ awsRegion: {
187
+ label: string;
188
+ placeholder: string;
189
+ type: "string";
190
+ required: false;
191
+ comments: string;
192
+ example: string;
193
+ dataSource: string;
194
+ clean: (value: unknown, defaultValue?: string) => string;
195
+ };
196
+ topicArn: {
197
+ label: string;
198
+ type: "string";
199
+ required: true;
200
+ placeholder: string;
201
+ example: string;
202
+ comments: string;
203
+ dataSource: string;
204
+ clean: (value: unknown, defaultValue?: string) => string;
205
+ };
206
+ publishBatchEntries: {
207
+ label: string;
208
+ type: "code";
209
+ language: "json";
210
+ required: true;
211
+ default: string;
212
+ comments: string;
213
+ };
214
+ awsConnection: {
215
+ label: string;
216
+ type: "connection";
217
+ required: true;
218
+ comments: string;
219
+ };
220
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
221
+ data: import("@aws-sdk/client-sns").PublishBatchCommandOutput;
222
+ }>;
223
+ listSubscriptions: import("@prismatic-io/spectral").ActionDefinition<{
224
+ awsConnection: {
225
+ label: string;
226
+ type: "connection";
227
+ required: true;
228
+ comments: string;
229
+ };
230
+ awsRegion: {
231
+ label: string;
232
+ placeholder: string;
233
+ type: "string";
234
+ required: false;
235
+ comments: string;
236
+ example: string;
237
+ dataSource: string;
238
+ clean: (value: unknown, defaultValue?: string) => string;
239
+ };
240
+ topicArn: {
241
+ label: string;
242
+ type: "string";
243
+ required: true;
244
+ placeholder: string;
245
+ example: string;
246
+ comments: string;
247
+ dataSource: string;
248
+ clean: (value: unknown, defaultValue?: string) => string;
249
+ };
250
+ fetchAllSubscriptions: {
251
+ comments: string;
252
+ label: string;
253
+ type: "boolean";
254
+ required: true;
255
+ default: string;
256
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
257
+ };
258
+ nextToken: {
259
+ label: string;
260
+ type: "string";
261
+ required: false;
262
+ placeholder: string;
263
+ example: string;
264
+ comments: string;
265
+ clean: (value: unknown) => string | undefined;
266
+ };
267
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
268
+ data: import("@aws-sdk/client-sns").ListSubscriptionsByTopicResponse;
269
+ }>;
270
+ subscribe: import("@prismatic-io/spectral").ActionDefinition<{
271
+ awsRegion: {
272
+ label: string;
273
+ placeholder: string;
274
+ type: "string";
275
+ required: false;
276
+ comments: string;
277
+ example: string;
278
+ dataSource: string;
279
+ clean: (value: unknown, defaultValue?: string) => string;
280
+ };
281
+ topicArn: {
282
+ label: string;
283
+ type: "string";
284
+ required: true;
285
+ placeholder: string;
286
+ example: string;
287
+ comments: string;
288
+ dataSource: string;
289
+ clean: (value: unknown, defaultValue?: string) => string;
290
+ };
291
+ protocol: {
292
+ label: string;
293
+ type: "string";
294
+ required: true;
295
+ default: string;
296
+ model: {
297
+ label: string;
298
+ value: string;
299
+ }[];
300
+ comments: string;
301
+ };
302
+ endpoint: {
303
+ label: string;
304
+ type: "string";
305
+ required: true;
306
+ placeholder: string;
307
+ example: string;
308
+ comments: string;
309
+ };
310
+ awsConnection: {
311
+ label: string;
312
+ type: "connection";
313
+ required: true;
314
+ comments: string;
315
+ };
316
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
317
+ data: import("@aws-sdk/client-sns").SubscribeResponse;
318
+ }>;
319
+ unsubscribe: import("@prismatic-io/spectral").ActionDefinition<{
320
+ awsRegion: {
321
+ label: string;
322
+ placeholder: string;
323
+ type: "string";
324
+ required: false;
325
+ comments: string;
326
+ example: string;
327
+ dataSource: string;
328
+ clean: (value: unknown, defaultValue?: string) => string;
329
+ };
330
+ subscriptionArn: {
331
+ label: string;
332
+ type: "string";
333
+ required: true;
334
+ placeholder: string;
335
+ example: string;
336
+ comments: string;
337
+ clean: (value: unknown, defaultValue?: string) => string;
338
+ dataSource: string;
339
+ };
340
+ awsConnection: {
341
+ label: string;
342
+ type: "connection";
343
+ required: true;
344
+ comments: string;
345
+ };
346
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
347
+ data: {};
348
+ }>;
349
+ listOptOutNumbers: import("@prismatic-io/spectral").ActionDefinition<{
350
+ awsRegion: {
351
+ label: string;
352
+ placeholder: string;
353
+ type: "string";
354
+ required: false;
355
+ comments: string;
356
+ example: string;
357
+ dataSource: string;
358
+ clean: (value: unknown, defaultValue?: string) => string;
359
+ };
360
+ nextToken: {
361
+ label: string;
362
+ type: "string";
363
+ required: false;
364
+ placeholder: string;
365
+ example: string;
366
+ comments: string;
367
+ clean: (value: unknown) => string | undefined;
368
+ };
369
+ awsConnection: {
370
+ label: string;
371
+ type: "connection";
372
+ required: true;
373
+ comments: string;
374
+ };
375
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
376
+ data: import("@aws-sdk/client-sns").ListPhoneNumbersOptedOutResponse;
377
+ }>;
378
+ publishSms: import("@prismatic-io/spectral").ActionDefinition<{
379
+ awsRegion: {
380
+ label: string;
381
+ placeholder: string;
382
+ type: "string";
383
+ required: false;
384
+ comments: string;
385
+ example: string;
386
+ dataSource: string;
387
+ clean: (value: unknown, defaultValue?: string) => string;
388
+ };
389
+ message: {
390
+ label: string;
391
+ type: "string";
392
+ required: true;
393
+ placeholder: string;
394
+ example: string;
395
+ comments: string;
396
+ };
397
+ phoneNumber: {
398
+ label: string;
399
+ type: "string";
400
+ required: true;
401
+ placeholder: string;
402
+ example: string;
403
+ comments: string;
404
+ };
405
+ awsConnection: {
406
+ label: string;
407
+ type: "connection";
408
+ required: true;
409
+ comments: string;
410
+ };
411
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
412
+ data: import("@aws-sdk/client-sns").PublishResponse;
413
+ }>;
414
+ };
415
+ triggers: {
416
+ subscriptionTrigger: import("@prismatic-io/spectral").TriggerDefinition<{
417
+ parseMessage: {
418
+ label: string;
419
+ type: "boolean";
420
+ required: true;
421
+ default: string;
422
+ comments: string;
423
+ };
424
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, true, {
425
+ branch: string;
426
+ payload: any;
427
+ }, import("@prismatic-io/spectral").Inputs>;
428
+ webhookLifecycleTrigger: import("@prismatic-io/spectral").TriggerDefinition<{
429
+ parseMessage: {
430
+ label: string;
431
+ type: "boolean";
432
+ required: true;
433
+ default: string;
434
+ comments: string;
435
+ };
436
+ awsConnection: {
437
+ label: string;
438
+ type: "connection";
439
+ required: true;
440
+ comments: string;
441
+ };
442
+ awsRegion: {
443
+ label: string;
444
+ placeholder: string;
445
+ type: "string";
446
+ required: false;
447
+ comments: string;
448
+ example: string;
449
+ dataSource: string;
450
+ clean: (value: unknown, defaultValue?: string) => string;
451
+ };
452
+ topicArn: {
453
+ label: string;
454
+ type: "string";
455
+ required: true;
456
+ placeholder: string;
457
+ example: string;
458
+ comments: string;
459
+ dataSource: string;
460
+ clean: (value: unknown, defaultValue?: string) => string;
461
+ };
462
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, true, {
463
+ branch: string;
464
+ payload: any;
465
+ }, import("@prismatic-io/spectral").Inputs>;
466
+ };
467
+ connections: (import("@prismatic-io/spectral").DefaultConnectionDefinition | import("@prismatic-io/spectral").KeyedConnection<{
468
+ key: "apiKeySecret";
469
+ display: {
470
+ label: string;
471
+ description: string;
472
+ };
473
+ inputs: {
474
+ accessKeyId: {
475
+ label: string;
476
+ placeholder: string;
477
+ type: "string";
478
+ required: true;
479
+ shown: true;
480
+ comments: string;
481
+ example: string;
482
+ };
483
+ secretAccessKey: {
484
+ label: string;
485
+ placeholder: string;
486
+ type: "password";
487
+ required: true;
488
+ shown: true;
489
+ comments: string;
490
+ example: string;
491
+ };
492
+ };
493
+ }, "apiKeySecret">)[];
494
+ dataSources: {
495
+ selectRegion: import("@prismatic-io/spectral").DataSourceDefinition<{}, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
496
+ selectSubscription: import("@prismatic-io/spectral").DataSourceDefinition<{
497
+ awsConnection: {
498
+ label: string;
499
+ type: "connection";
500
+ required: true;
501
+ comments: string;
502
+ };
503
+ awsRegion: {
504
+ dataSource: any;
505
+ model: any;
506
+ label: string;
507
+ placeholder: string;
508
+ type: "string";
509
+ required: false;
510
+ comments: string;
511
+ example: string;
512
+ clean: (value: unknown, defaultValue?: string) => string;
513
+ };
514
+ topicArn: {
515
+ dataSource: any;
516
+ label: string;
517
+ type: "string";
518
+ required: true;
519
+ placeholder: string;
520
+ example: string;
521
+ comments: string;
522
+ clean: (value: unknown, defaultValue?: string) => string;
523
+ };
524
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
525
+ selectTopic: import("@prismatic-io/spectral").DataSourceDefinition<{
526
+ awsConnection: {
527
+ label: string;
528
+ type: "connection";
529
+ required: true;
530
+ comments: string;
531
+ };
532
+ awsRegion: {
533
+ dataSource: any;
534
+ model: any;
535
+ label: string;
536
+ placeholder: string;
537
+ type: "string";
538
+ required: false;
539
+ comments: string;
540
+ example: string;
541
+ clean: (value: unknown, defaultValue?: string) => string;
542
+ };
543
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
544
+ };
545
+ hooks: {
546
+ error: (error: unknown) => unknown;
547
+ };
548
+ }>;
549
+ export = _default;
package/package.json CHANGED
@@ -1,6 +1,56 @@
1
1
  {
2
2
  "name": "@prismatic-io/components-aws-sns",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.1.0",
4
+ "main": "./npm-dist/index.cjs",
5
+ "types": "./npm-dist/index.d.cts",
6
+ "exports": {
7
+ ".": {
8
+ "types": "./npm-dist/index.d.cts",
9
+ "default": "./npm-dist/index.cjs"
10
+ }
11
+ },
12
+ "description": "Manage topics, subscriptions, and messages in Amazon SNS.",
13
+ "license": "Apache-2.0",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/prismatic-io/components.git",
17
+ "directory": "components/aws-sns"
18
+ },
19
+ "publishConfig": {
20
+ "access": "public"
21
+ },
22
+ "files": [
23
+ "npm-dist",
24
+ "dist"
25
+ ],
26
+ "prismatic": {
27
+ "component": "./dist/index.js"
28
+ },
29
+ "scripts": {
30
+ "lint": "biome lint --write .",
31
+ "format": "biome format --write .",
32
+ "build": "npm run format && npm run lint && tsdown",
33
+ "typecheck": "tsc --noEmit",
34
+ "test": "echo 'no tests'",
35
+ "prepare": "npm run build",
36
+ "publish:platform": "npm run build && prism components:publish"
37
+ },
38
+ "peerDependencies": {
39
+ "@prismatic-io/spectral": "^10.38.5"
40
+ },
41
+ "dependencies": {
42
+ "@aws-sdk/client-sns": "3.1088.0",
43
+ "sns-validator": "^0.3.5",
44
+ "@aws-sdk/client-sts": "3.1088.0"
45
+ },
46
+ "devDependencies": {
47
+ "@biomejs/biome": "2.5.1",
48
+ "@types/node": "^26.6.4",
49
+ "@types/sns-validator": "0.3.3",
50
+ "tsdown": "0.22.3",
51
+ "typescript": "6.0.3",
52
+ "vitest": "4.1.9",
53
+ "@prismatic-io/spectral": "^10.38.5",
54
+ "aws-utils": "file:../../packages/aws-utils"
55
+ }
56
+ }