@prismatic-io/components-imap 0.0.0-stage → 0.0.1

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,632 @@
1
+ //#region npm-dist/.entry.d.ts
2
+ declare const _default: import("@prismatic-io/spectral").CallableComponent<{
3
+ key: "imap";
4
+ public: true;
5
+ documentationUrl: "https://prismatic.io/docs/components/imap/";
6
+ display: {
7
+ category: "Application Connectors";
8
+ label: string;
9
+ description: string;
10
+ iconPath: string;
11
+ };
12
+ hooks: {
13
+ error: (error: unknown) => unknown;
14
+ };
15
+ actions: {
16
+ listMailboxes: import("@prismatic-io/spectral").ActionDefinition<{
17
+ connection: {
18
+ label: string;
19
+ type: "connection";
20
+ required: true;
21
+ comments: string;
22
+ };
23
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
24
+ data: ({
25
+ path: string;
26
+ flags: Set<string>;
27
+ delimiter: string;
28
+ listed: boolean;
29
+ name: string;
30
+ subscribed: boolean;
31
+ specialUse?: undefined;
32
+ } | {
33
+ path: string;
34
+ flags: Set<string>;
35
+ delimiter: string;
36
+ listed: boolean;
37
+ specialUse: string;
38
+ name: string;
39
+ subscribed: boolean;
40
+ })[];
41
+ }>;
42
+ getStatus: import("@prismatic-io/spectral").ActionDefinition<{
43
+ connection: {
44
+ label: string;
45
+ type: "connection";
46
+ required: true;
47
+ comments: string;
48
+ };
49
+ mailbox: {
50
+ label: string;
51
+ type: "string";
52
+ required: true;
53
+ comments: string;
54
+ example: string;
55
+ placeholder: string;
56
+ clean: (value: unknown, defaultValue?: string) => string;
57
+ };
58
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
59
+ data: any;
60
+ }>;
61
+ addFlags: import("@prismatic-io/spectral").ActionDefinition<{
62
+ connection: {
63
+ label: string;
64
+ type: "connection";
65
+ required: true;
66
+ comments: string;
67
+ };
68
+ mailbox: {
69
+ label: string;
70
+ type: "string";
71
+ required: true;
72
+ comments: string;
73
+ example: string;
74
+ placeholder: string;
75
+ clean: (value: unknown, defaultValue?: string) => string;
76
+ };
77
+ range: {
78
+ label: string;
79
+ type: "string";
80
+ required: true;
81
+ comments: string;
82
+ example: string;
83
+ placeholder: string;
84
+ clean: (value: unknown, defaultValue?: string) => string;
85
+ };
86
+ flags: {
87
+ label: string;
88
+ type: "string";
89
+ required: true;
90
+ collection: "valuelist";
91
+ comments: string;
92
+ example: string;
93
+ placeholder: string;
94
+ clean: (value: unknown) => string[];
95
+ };
96
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
97
+ data: boolean;
98
+ }>;
99
+ appendMessage: import("@prismatic-io/spectral").ActionDefinition<{
100
+ connection: {
101
+ label: string;
102
+ type: "connection";
103
+ required: true;
104
+ comments: string;
105
+ };
106
+ mailbox: {
107
+ label: string;
108
+ type: "string";
109
+ required: true;
110
+ comments: string;
111
+ example: string;
112
+ placeholder: string;
113
+ clean: (value: unknown, defaultValue?: string) => string;
114
+ };
115
+ path: {
116
+ label: string;
117
+ type: "string";
118
+ required: true;
119
+ comments: string;
120
+ example: string;
121
+ placeholder: string;
122
+ clean: (value: unknown, defaultValue?: string) => string;
123
+ };
124
+ content: {
125
+ label: string;
126
+ type: "string";
127
+ required: true;
128
+ comments: string;
129
+ example: string;
130
+ placeholder: string;
131
+ clean: (value: unknown, defaultValue?: string) => string;
132
+ };
133
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
134
+ data: any;
135
+ }>;
136
+ copyMessage: import("@prismatic-io/spectral").ActionDefinition<{
137
+ connection: {
138
+ label: string;
139
+ type: "connection";
140
+ required: true;
141
+ comments: string;
142
+ };
143
+ mailbox: {
144
+ label: string;
145
+ type: "string";
146
+ required: true;
147
+ comments: string;
148
+ example: string;
149
+ placeholder: string;
150
+ clean: (value: unknown, defaultValue?: string) => string;
151
+ };
152
+ range: {
153
+ label: string;
154
+ type: "string";
155
+ required: true;
156
+ comments: string;
157
+ example: string;
158
+ placeholder: string;
159
+ clean: (value: unknown, defaultValue?: string) => string;
160
+ };
161
+ path: {
162
+ label: string;
163
+ type: "string";
164
+ required: true;
165
+ comments: string;
166
+ example: string;
167
+ placeholder: string;
168
+ clean: (value: unknown, defaultValue?: string) => string;
169
+ };
170
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
171
+ data: {
172
+ uidValidity: string | undefined;
173
+ path: string;
174
+ destination: string;
175
+ uidMap?: Map<number, number>;
176
+ };
177
+ }>;
178
+ createMailbox: import("@prismatic-io/spectral").ActionDefinition<{
179
+ connection: {
180
+ label: string;
181
+ type: "connection";
182
+ required: true;
183
+ comments: string;
184
+ };
185
+ path: {
186
+ label: string;
187
+ type: "string";
188
+ required: true;
189
+ comments: string;
190
+ example: string;
191
+ placeholder: string;
192
+ clean: (value: unknown, defaultValue?: string) => string;
193
+ };
194
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
195
+ data: {
196
+ path: string;
197
+ created: boolean;
198
+ };
199
+ }>;
200
+ deleteMessage: import("@prismatic-io/spectral").ActionDefinition<{
201
+ connection: {
202
+ label: string;
203
+ type: "connection";
204
+ required: true;
205
+ comments: string;
206
+ };
207
+ mailbox: {
208
+ label: string;
209
+ type: "string";
210
+ required: true;
211
+ comments: string;
212
+ example: string;
213
+ placeholder: string;
214
+ clean: (value: unknown, defaultValue?: string) => string;
215
+ };
216
+ messageIndex: {
217
+ label: string;
218
+ type: "string";
219
+ required: true;
220
+ example: string;
221
+ comments: string;
222
+ placeholder: string;
223
+ clean: (value: unknown, defaultValue?: string) => string;
224
+ };
225
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
226
+ data: boolean;
227
+ }>;
228
+ downloadMessage: import("@prismatic-io/spectral").ActionDefinition<{
229
+ connection: {
230
+ label: string;
231
+ type: "connection";
232
+ required: true;
233
+ comments: string;
234
+ };
235
+ mailbox: {
236
+ label: string;
237
+ type: "string";
238
+ required: true;
239
+ comments: string;
240
+ example: string;
241
+ placeholder: string;
242
+ clean: (value: unknown, defaultValue?: string) => string;
243
+ };
244
+ messageIndex: {
245
+ label: string;
246
+ comments: string;
247
+ type: "string";
248
+ required: true;
249
+ example: string;
250
+ placeholder: string;
251
+ clean: (value: unknown, defaultValue?: string) => string;
252
+ };
253
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
254
+ data: {
255
+ meta: {
256
+ expectedSize: number;
257
+ contentType: string;
258
+ };
259
+ message: {
260
+ headers: Record<string, unknown>;
261
+ attachments: {
262
+ file: {
263
+ contentType: string;
264
+ data: Buffer;
265
+ };
266
+ }[];
267
+ attachmentsMetadata: {
268
+ filename: string | undefined;
269
+ size: number;
270
+ checksum: string;
271
+ headers: unknown;
272
+ related: boolean;
273
+ }[];
274
+ text: string | undefined;
275
+ html: string | false;
276
+ };
277
+ };
278
+ }>;
279
+ removeFlags: import("@prismatic-io/spectral").ActionDefinition<{
280
+ connection: {
281
+ label: string;
282
+ type: "connection";
283
+ required: true;
284
+ comments: string;
285
+ };
286
+ mailbox: {
287
+ label: string;
288
+ type: "string";
289
+ required: true;
290
+ comments: string;
291
+ example: string;
292
+ placeholder: string;
293
+ clean: (value: unknown, defaultValue?: string) => string;
294
+ };
295
+ range: {
296
+ label: string;
297
+ type: "string";
298
+ required: true;
299
+ comments: string;
300
+ example: string;
301
+ placeholder: string;
302
+ clean: (value: unknown, defaultValue?: string) => string;
303
+ };
304
+ flags: {
305
+ label: string;
306
+ type: "string";
307
+ required: true;
308
+ collection: "valuelist";
309
+ comments: string;
310
+ example: string;
311
+ placeholder: string;
312
+ clean: (value: unknown) => string[];
313
+ };
314
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
315
+ data: boolean;
316
+ }>;
317
+ renameMailbox: import("@prismatic-io/spectral").ActionDefinition<{
318
+ connection: {
319
+ label: string;
320
+ type: "connection";
321
+ required: true;
322
+ comments: string;
323
+ };
324
+ path: {
325
+ label: string;
326
+ type: "string";
327
+ required: true;
328
+ comments: string;
329
+ example: string;
330
+ placeholder: string;
331
+ clean: (value: unknown, defaultValue?: string) => string;
332
+ };
333
+ newPath: {
334
+ label: string;
335
+ type: "string";
336
+ required: true;
337
+ comments: string;
338
+ example: string;
339
+ placeholder: string;
340
+ clean: (value: unknown, defaultValue?: string) => string;
341
+ };
342
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
343
+ data: import("imapflow").MailboxRenameResponse;
344
+ }>;
345
+ searchMailbox: import("@prismatic-io/spectral").ActionDefinition<{
346
+ connection: {
347
+ label: string;
348
+ type: "connection";
349
+ required: true;
350
+ comments: string;
351
+ };
352
+ mailbox: {
353
+ label: string;
354
+ type: "string";
355
+ required: true;
356
+ comments: string;
357
+ example: string;
358
+ placeholder: string;
359
+ clean: (value: unknown, defaultValue?: string) => string;
360
+ };
361
+ from: {
362
+ label: string;
363
+ type: "string";
364
+ required: false;
365
+ comments: string;
366
+ example: string;
367
+ placeholder: string;
368
+ clean: (value: unknown, defaultValue?: string) => string;
369
+ };
370
+ to: {
371
+ label: string;
372
+ type: "string";
373
+ required: false;
374
+ comments: string;
375
+ example: string;
376
+ placeholder: string;
377
+ clean: (value: unknown, defaultValue?: string) => string;
378
+ };
379
+ readUnread: {
380
+ label: string;
381
+ type: "string";
382
+ required: true;
383
+ default: string;
384
+ comments: string;
385
+ model: {
386
+ label: string;
387
+ value: string;
388
+ }[];
389
+ clean: (value: unknown, defaultValue?: string) => string;
390
+ };
391
+ filterOptions: {
392
+ label: string;
393
+ type: "code";
394
+ language: "json";
395
+ required: false;
396
+ comments: string;
397
+ placeholder: string;
398
+ example: string;
399
+ clean: (value: unknown) => object;
400
+ };
401
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
402
+ data: number[];
403
+ }>;
404
+ setFlags: import("@prismatic-io/spectral").ActionDefinition<{
405
+ connection: {
406
+ label: string;
407
+ type: "connection";
408
+ required: true;
409
+ comments: string;
410
+ };
411
+ mailbox: {
412
+ label: string;
413
+ type: "string";
414
+ required: true;
415
+ comments: string;
416
+ example: string;
417
+ placeholder: string;
418
+ clean: (value: unknown, defaultValue?: string) => string;
419
+ };
420
+ range: {
421
+ label: string;
422
+ type: "string";
423
+ required: true;
424
+ comments: string;
425
+ example: string;
426
+ placeholder: string;
427
+ clean: (value: unknown, defaultValue?: string) => string;
428
+ };
429
+ flags: {
430
+ label: string;
431
+ type: "string";
432
+ required: true;
433
+ collection: "valuelist";
434
+ comments: string;
435
+ example: string;
436
+ placeholder: string;
437
+ clean: (value: unknown) => string[];
438
+ };
439
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, boolean, {
440
+ data: boolean;
441
+ }>;
442
+ };
443
+ triggers: {
444
+ newEmailsPollingTrigger: import("@prismatic-io/spectral").PollingTriggerDefinition<{
445
+ connection: {
446
+ label: string;
447
+ type: "connection";
448
+ required: true;
449
+ comments: string;
450
+ };
451
+ mailbox: {
452
+ label: string;
453
+ type: "string";
454
+ required: true;
455
+ comments: string;
456
+ example: string;
457
+ placeholder: string;
458
+ clean: (value: unknown, defaultValue?: string) => string;
459
+ };
460
+ lookBackDate: {
461
+ label: string;
462
+ placeholder: string;
463
+ type: "string";
464
+ required: false;
465
+ comments: string;
466
+ example: string;
467
+ clean: (value: unknown) => string;
468
+ };
469
+ fetchContent: {
470
+ label: string;
471
+ type: "boolean";
472
+ required: false;
473
+ default: string;
474
+ comments: string;
475
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
476
+ };
477
+ markAsRead: {
478
+ label: string;
479
+ type: "boolean";
480
+ required: false;
481
+ default: string;
482
+ comments: string;
483
+ clean: (value: unknown, defaultValue?: boolean) => boolean;
484
+ };
485
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, import("@prismatic-io/spectral").TriggerPayload<Record<string, unknown>>, boolean, {
486
+ payload: {
487
+ body: {
488
+ data: Record<string, unknown>[];
489
+ };
490
+ headers: {
491
+ [key: string]: string;
492
+ };
493
+ queryParameters: {
494
+ [key: string]: string;
495
+ };
496
+ rawBody: {
497
+ data: unknown;
498
+ contentType?: string;
499
+ };
500
+ pathFragment: string;
501
+ webhookUrls: {
502
+ [key: string]: string;
503
+ };
504
+ webhookApiKeys: {
505
+ [key: string]: string[];
506
+ };
507
+ invokeUrl: string;
508
+ executionId: string;
509
+ customer: import("@prismatic-io/spectral").CustomerAttributes;
510
+ instance: import("@prismatic-io/spectral").InstanceAttributes;
511
+ user: import("@prismatic-io/spectral").UserAttributes;
512
+ integration: import("@prismatic-io/spectral").IntegrationAttributes;
513
+ flow: import("@prismatic-io/spectral").FlowAttributes;
514
+ startedAt: string;
515
+ globalDebug: boolean;
516
+ paginationState?: Record<string, unknown> | undefined;
517
+ };
518
+ polledNoChanges: boolean;
519
+ }, import("@prismatic-io/spectral").Inputs>;
520
+ };
521
+ dataSources: {
522
+ listMailboxes: import("@prismatic-io/spectral").DataSourceDefinition<{
523
+ connection: {
524
+ label: string;
525
+ type: "connection";
526
+ required: true;
527
+ comments: string;
528
+ };
529
+ }, import("@prismatic-io/spectral").ConfigVarResultCollection, "picklist">;
530
+ };
531
+ connections: import("@prismatic-io/spectral").KeyedConnection<{
532
+ key: "imap";
533
+ display: {
534
+ label: string;
535
+ description: string;
536
+ };
537
+ inputs: {
538
+ host: {
539
+ label: string;
540
+ placeholder: string;
541
+ type: "string";
542
+ required: true;
543
+ clean: (param: unknown) => string | undefined;
544
+ shown: true;
545
+ comments: string;
546
+ example: string;
547
+ onPremControlled: true;
548
+ };
549
+ port: {
550
+ label: string;
551
+ placeholder: string;
552
+ type: "string";
553
+ required: true;
554
+ clean: (param: unknown) => number | undefined;
555
+ shown: true;
556
+ comments: string;
557
+ example: string;
558
+ default: string;
559
+ onPremControlled: true;
560
+ };
561
+ secure: {
562
+ label: string;
563
+ placeholder: string;
564
+ type: "boolean";
565
+ clean: (param: unknown) => true | undefined;
566
+ required: true;
567
+ shown: true;
568
+ default: string;
569
+ comments: string;
570
+ };
571
+ user: {
572
+ label: string;
573
+ placeholder: string;
574
+ type: "string";
575
+ clean: (param: unknown) => string | undefined;
576
+ required: true;
577
+ shown: true;
578
+ comments: string;
579
+ example: string;
580
+ };
581
+ pass: {
582
+ label: string;
583
+ placeholder: string;
584
+ type: "password";
585
+ required: false;
586
+ shown: true;
587
+ clean: (param: unknown) => string | undefined;
588
+ comments: string;
589
+ example: string;
590
+ };
591
+ minVersion: {
592
+ label: string;
593
+ type: "string";
594
+ required: true;
595
+ shown: true;
596
+ clean: (param: unknown) => string | undefined;
597
+ comments: string;
598
+ example: string;
599
+ default: string;
600
+ model: {
601
+ label: string;
602
+ value: string;
603
+ }[];
604
+ };
605
+ maxVersion: {
606
+ label: string;
607
+ type: "string";
608
+ required: true;
609
+ shown: true;
610
+ clean: (param: unknown) => string | undefined;
611
+ comments: string;
612
+ example: string;
613
+ default: string;
614
+ model: {
615
+ label: string;
616
+ value: string;
617
+ }[];
618
+ };
619
+ minDHSize: {
620
+ label: string;
621
+ type: "string";
622
+ required: true;
623
+ shown: true;
624
+ clean: (param: unknown) => number | undefined;
625
+ comments: string;
626
+ example: string;
627
+ default: string;
628
+ };
629
+ };
630
+ }, "imap">[];
631
+ }>;
632
+ export = _default;
package/package.json CHANGED
@@ -1,6 +1,56 @@
1
1
  {
2
2
  "name": "@prismatic-io/components-imap",
3
- "version": "0.0.0-stage",
4
- "stub": true,
5
- "description": "Temporary package placeholder for staged publishing"
6
- }
3
+ "version": "0.0.1",
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": "Interact with your IMAP email account",
13
+ "license": "Apache-2.0",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "git+https://github.com/prismatic-io/components.git",
17
+ "directory": "components/imap"
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
+ "build": "npm run format && npm run lint && tsdown",
31
+ "typecheck": "tsc --noEmit",
32
+ "lint": "biome lint --write .",
33
+ "format": "biome format --write .",
34
+ "test": "vitest run",
35
+ "generate:manifest": "npm run build && npx @prismatic-io/spectral component-manifest",
36
+ "generate:manifest:dev": "npm run build && npx @prismatic-io/spectral component-manifest --skip-signature-verify",
37
+ "prepare": "npm run build",
38
+ "publish:platform": "npm run build && prism components:publish"
39
+ },
40
+ "peerDependencies": {
41
+ "@prismatic-io/spectral": "^10.38.5"
42
+ },
43
+ "dependencies": {
44
+ "imapflow": "1.0.120",
45
+ "mailparser": "3.6.3"
46
+ },
47
+ "devDependencies": {
48
+ "@biomejs/biome": "2.5.1",
49
+ "@types/imapflow": "^1.0.23",
50
+ "@types/node": "^26.6.4",
51
+ "tsdown": "0.22.3",
52
+ "typescript": "6.0.3",
53
+ "vitest": "4.1.9",
54
+ "@prismatic-io/spectral": "^10.38.5"
55
+ }
56
+ }