@orvlabs/iris 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,1817 @@
1
+ /**
2
+ * This file was auto-generated by openapi-typescript.
3
+ * Do not make direct changes to the file.
4
+ */
5
+ export interface paths {
6
+ "/v3/smtp/email": {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ get?: never;
14
+ put?: never;
15
+ /**
16
+ * Send an email
17
+ * @description Validates the request, reserves the units (one per recipient: monthly quota, then rollover, then credits) and queues the message. The answer comes as soon as the email is queued; delivery follows within seconds, with retries for about 24 hours. With `messageVersions`, every version is reserved or none is. The sender must be on a verified domain of your organisation. Recipients on your suppression list are removed before counting units.
18
+ *
19
+ * Limits: 99 recipients per message (to, cc and bcc), 2,000 per request, 10 MB of attachments, 15 MB of body, 1,000 recipients per rolling hour per organisation.
20
+ */
21
+ post: operations["sendEmail"];
22
+ delete?: never;
23
+ options?: never;
24
+ head?: never;
25
+ patch?: never;
26
+ trace?: never;
27
+ };
28
+ "/v3/smtp/email/{identifier}": {
29
+ parameters: {
30
+ query?: never;
31
+ header?: never;
32
+ path?: never;
33
+ cookie?: never;
34
+ };
35
+ get?: never;
36
+ put?: never;
37
+ post?: never;
38
+ /**
39
+ * Cancel a scheduled email
40
+ * @description Cancels the scheduled messages of this identifier that have not left yet. They become `cancelled` and their units are given back; they no longer appear in the reports.
41
+ */
42
+ delete: operations["cancelScheduledEmail"];
43
+ options?: never;
44
+ head?: never;
45
+ patch?: never;
46
+ trace?: never;
47
+ };
48
+ "/v3/smtp/emailStatus/{identifier}": {
49
+ parameters: {
50
+ query?: never;
51
+ header?: never;
52
+ path?: never;
53
+ cookie?: never;
54
+ };
55
+ /**
56
+ * Status of a scheduled email or batch
57
+ * @description Only for scheduled messages. A `messageId` returns one status; a `batchId` returns the total and the 100 most recent messages. `queued` before the time, `inProgress` once it has passed, `processed` once sent or failed. A cancelled message is no longer found (404).
58
+ */
59
+ get: operations["getScheduledEmailStatus"];
60
+ put?: never;
61
+ post?: never;
62
+ delete?: never;
63
+ options?: never;
64
+ head?: never;
65
+ patch?: never;
66
+ trace?: never;
67
+ };
68
+ "/v3/iris/secrets/{messageId}/revoke": {
69
+ parameters: {
70
+ query?: never;
71
+ header?: never;
72
+ path?: never;
73
+ cookie?: never;
74
+ };
75
+ get?: never;
76
+ put?: never;
77
+ /**
78
+ * Revoke a secret message
79
+ * @description Destroys the encrypted content of a message sent with `secret`; the link then shows that the content is gone. Revoking again answers 200.
80
+ */
81
+ post: operations["revokeSecret"];
82
+ delete?: never;
83
+ options?: never;
84
+ head?: never;
85
+ patch?: never;
86
+ trace?: never;
87
+ };
88
+ "/v3/smtp/statistics/aggregatedReport": {
89
+ parameters: {
90
+ query?: never;
91
+ header?: never;
92
+ path?: never;
93
+ cookie?: never;
94
+ };
95
+ /**
96
+ * Aggregated statistics
97
+ * @description Counts over the emails sent with your keys in the period, cancelled ones excluded: the last 90 days by default, 90 days at most. Unique opens and clicks count messages. `softBounces` counts recipients with a temporary bounce, once per message; `unsubscribed` counts one-click unsubscribes. Iris does not track blocks or invalid addresses: those fields are always 0.
98
+ */
99
+ get: operations["getAggregatedReport"];
100
+ put?: never;
101
+ post?: never;
102
+ delete?: never;
103
+ options?: never;
104
+ head?: never;
105
+ patch?: never;
106
+ trace?: never;
107
+ };
108
+ "/v3/smtp/statistics/events": {
109
+ parameters: {
110
+ query?: never;
111
+ header?: never;
112
+ path?: never;
113
+ cookie?: never;
114
+ };
115
+ /**
116
+ * Email events
117
+ * @description One line per event, over the last 30 days by default, 90 days at most; cancelled emails are left out. An open or click of a message with several recipients has an empty `email`.
118
+ */
119
+ get: operations["listEmailEvents"];
120
+ put?: never;
121
+ post?: never;
122
+ delete?: never;
123
+ options?: never;
124
+ head?: never;
125
+ patch?: never;
126
+ trace?: never;
127
+ };
128
+ "/v3/smtp/emails": {
129
+ parameters: {
130
+ query?: never;
131
+ header?: never;
132
+ path?: never;
133
+ cookie?: never;
134
+ };
135
+ /**
136
+ * Email log
137
+ * @description One item per recipient, cancelled emails left out. `email` or `messageId` is required. The last 30 days by default, 31 days at most.
138
+ */
139
+ get: operations["listTransactionalEmails"];
140
+ put?: never;
141
+ post?: never;
142
+ delete?: never;
143
+ options?: never;
144
+ head?: never;
145
+ patch?: never;
146
+ trace?: never;
147
+ };
148
+ "/v3/smtp/blockedContacts": {
149
+ parameters: {
150
+ query?: never;
151
+ header?: never;
152
+ path?: never;
153
+ cookie?: never;
154
+ };
155
+ /**
156
+ * Suppression list
157
+ * @description Addresses added after a hard bounce, a complaint or a one-click unsubscribe. The whole history by default.
158
+ */
159
+ get: operations["listBlockedContacts"];
160
+ put?: never;
161
+ post?: never;
162
+ delete?: never;
163
+ options?: never;
164
+ head?: never;
165
+ patch?: never;
166
+ trace?: never;
167
+ };
168
+ "/v3/smtp/blockedContacts/{email}": {
169
+ parameters: {
170
+ query?: never;
171
+ header?: never;
172
+ path?: never;
173
+ cookie?: never;
174
+ };
175
+ get?: never;
176
+ put?: never;
177
+ post?: never;
178
+ /** Remove an address from the suppression list */
179
+ delete: operations["unblockContact"];
180
+ options?: never;
181
+ head?: never;
182
+ patch?: never;
183
+ trace?: never;
184
+ };
185
+ "/v3/inbound/attachments/{id}/{index}": {
186
+ parameters: {
187
+ query?: never;
188
+ header?: never;
189
+ path?: never;
190
+ cookie?: never;
191
+ };
192
+ /**
193
+ * Download an attachment of a received email
194
+ * @description The `downloadUrl` of each attachment in the inbound email webhook. Received emails are kept 30 days.
195
+ */
196
+ get: operations["getInboundAttachment"];
197
+ put?: never;
198
+ post?: never;
199
+ delete?: never;
200
+ options?: never;
201
+ head?: never;
202
+ patch?: never;
203
+ trace?: never;
204
+ };
205
+ "/v1/emails/check": {
206
+ parameters: {
207
+ query?: never;
208
+ header?: never;
209
+ path?: never;
210
+ cookie?: never;
211
+ };
212
+ get?: never;
213
+ put?: never;
214
+ /**
215
+ * Check addresses
216
+ * @description Checks the syntax, the mail server in DNS, disposable and role addresses, likely typos and your suppression list. Iris never contacts the recipient's mail server: `deliverable` means nothing stands in the way, not that the mailbox exists. Send `email` for one address (one result) or `emails` for 1 to 100 (`results` in the same order). Each address submitted uses one unit (monthly quota, then rollover, then credits), whatever its verdict, reserved before the DNS lookups; the addresses are not stored. Body: 64 KB at most.
217
+ */
218
+ post: operations["checkEmailAddresses"];
219
+ delete?: never;
220
+ options?: never;
221
+ head?: never;
222
+ patch?: never;
223
+ trace?: never;
224
+ };
225
+ "/u/{token}": {
226
+ parameters: {
227
+ query?: never;
228
+ header?: never;
229
+ path?: never;
230
+ cookie?: never;
231
+ };
232
+ get?: never;
233
+ put?: never;
234
+ /**
235
+ * One-click unsubscribe
236
+ * @description The URL of the `List-Unsubscribe` header added with `unsubscribe`. The recipient's mailbox provider calls it (RFC 8058); you do not. The body is ignored. The recipient is added to your suppression list (`unsubscribedViaEmail`), even if the message has left the log, and `email.unsubscribed` is sent once per recipient while the message is in the log. The same URL opened with `GET` shows a page with a button and unsubscribes nothing. The host can be a dedicated tracking domain instead of `iris.orvlabs.com`.
237
+ */
238
+ post: operations["unsubscribeOneClick"];
239
+ delete?: never;
240
+ options?: never;
241
+ head?: never;
242
+ patch?: never;
243
+ trace?: never;
244
+ };
245
+ "/v1/verify": {
246
+ parameters: {
247
+ query?: never;
248
+ header?: never;
249
+ path?: never;
250
+ cookie?: never;
251
+ };
252
+ get?: never;
253
+ put?: never;
254
+ /**
255
+ * Send a one-time code
256
+ * @description Sends a code on the first available channel. In `auto` mode, Iris tries email, then SMS, then WhatsApp, and moves to the next channel after `fallbackAfter` seconds if the code is not approved. Each send uses units: email 1, SMS 4, WhatsApp 4. Limits: 5 codes per recipient and 300 per organisation every 10 minutes. A code by email is an email: it counts in the hourly email cap, and your suppression list and an email pause apply to it. Body: 16 KB at most.
257
+ */
258
+ post: operations["createVerification"];
259
+ delete?: never;
260
+ options?: never;
261
+ head?: never;
262
+ patch?: never;
263
+ trace?: never;
264
+ };
265
+ "/v1/verify/check": {
266
+ parameters: {
267
+ query?: never;
268
+ header?: never;
269
+ path?: never;
270
+ cookie?: never;
271
+ };
272
+ get?: never;
273
+ put?: never;
274
+ /**
275
+ * Check a code
276
+ * @description Every code sent for this verification stays valid until it expires. A wrong code answers 200 with `pending`; the fifth wrong code answers `max_attempts`. A verification that is no longer pending returns its status without counting an attempt.
277
+ */
278
+ post: operations["checkVerification"];
279
+ delete?: never;
280
+ options?: never;
281
+ head?: never;
282
+ patch?: never;
283
+ trace?: never;
284
+ };
285
+ "/v1/verify/{id}/cancel": {
286
+ parameters: {
287
+ query?: never;
288
+ header?: never;
289
+ path?: never;
290
+ cookie?: never;
291
+ };
292
+ get?: never;
293
+ put?: never;
294
+ /**
295
+ * Cancel a verification
296
+ * @description A pending verification becomes `canceled`; any other returns its current status unchanged.
297
+ */
298
+ post: operations["cancelVerification"];
299
+ delete?: never;
300
+ options?: never;
301
+ head?: never;
302
+ patch?: never;
303
+ trace?: never;
304
+ };
305
+ "/v1/verify/{id}/resend": {
306
+ parameters: {
307
+ query?: never;
308
+ header?: never;
309
+ path?: never;
310
+ cookie?: never;
311
+ };
312
+ get?: never;
313
+ put?: never;
314
+ /**
315
+ * Send a new code
316
+ * @description Sends a new code on the current channel and restarts the expiry and the attempt count. Earlier codes stay valid until they expire. 30 seconds at least between two sends.
317
+ */
318
+ post: operations["resendVerification"];
319
+ delete?: never;
320
+ options?: never;
321
+ head?: never;
322
+ patch?: never;
323
+ trace?: never;
324
+ };
325
+ }
326
+ export interface webhooks {
327
+ inboundEmail: {
328
+ parameters: {
329
+ query?: never;
330
+ header?: never;
331
+ path?: never;
332
+ cookie?: never;
333
+ };
334
+ get?: never;
335
+ put?: never;
336
+ /**
337
+ * Email received
338
+ * @description An email received at your inbound address, or at an address matched by one of your inbound routes (that route's URL and secret are then used). Signed with Standard Webhooks; `webhook-id` is the email `id`. Retried after 1 min, 5 min, 15 min, 1 h, 3 h, 6 h and 12 h; a failed delivery can be replayed from the console.
339
+ */
340
+ post: operations["inboundEmailWebhook"];
341
+ delete?: never;
342
+ options?: never;
343
+ head?: never;
344
+ patch?: never;
345
+ trace?: never;
346
+ };
347
+ emailEvent: {
348
+ parameters: {
349
+ query?: never;
350
+ header?: never;
351
+ path?: never;
352
+ cookie?: never;
353
+ };
354
+ get?: never;
355
+ put?: never;
356
+ /**
357
+ * Email event
358
+ * @description Signed with Standard Webhooks; `webhook-id` is the event `id`. `email.opened` is sent on the first open only (when tracking is on for the domain), `email.clicked` on every click with `url`. `email.delivered`, `email.bounced` (hard bounce), `email.soft_bounced` (temporary bounce, the relay retries) and `email.complained` are sent once per recipient, with `email` (absent from a complaint whose recipient cannot be read). `email.unsubscribed` is sent once per recipient, with `email`, while the message is in the log. Never sent for an email of a test key.
359
+ */
360
+ post: operations["emailEventWebhook"];
361
+ delete?: never;
362
+ options?: never;
363
+ head?: never;
364
+ patch?: never;
365
+ trace?: never;
366
+ };
367
+ paymentEvent: {
368
+ parameters: {
369
+ query?: never;
370
+ header?: never;
371
+ path?: never;
372
+ cookie?: never;
373
+ };
374
+ get?: never;
375
+ put?: never;
376
+ /**
377
+ * Payment received
378
+ * @description A payment link sent with `payment` was paid. Configured with the 221 Pay merchant account in the console; its secret starts with `whsec_iris_`. `X-Iris-Signature` is `v1=` followed by the hex HMAC-SHA256 of `<X-Iris-Timestamp>.<raw body>`, keyed with the whole secret string as shown. For 24 hours after a secret rotation in the console, the header carries two space-separated signatures, the new secret first: accept the request when one of them matches. Compare in constant time and refuse a timestamp more than 5 minutes away from your clock.
379
+ */
380
+ post: operations["paymentEventWebhook"];
381
+ delete?: never;
382
+ options?: never;
383
+ head?: never;
384
+ patch?: never;
385
+ trace?: never;
386
+ };
387
+ }
388
+ export interface components {
389
+ schemas: {
390
+ Error: {
391
+ /** @description Stable machine-readable code, listed in the introduction. */
392
+ code: string;
393
+ /** @description Readable French text; may change. */
394
+ message: string;
395
+ };
396
+ Address: {
397
+ /**
398
+ * Format: email
399
+ * @description Bare ASCII address, without display name; the domain needs a dot.
400
+ */
401
+ email: string;
402
+ /** @description Display name. Line breaks become spaces. */
403
+ name?: string;
404
+ };
405
+ Attachment: {
406
+ /** @description File name, without `/`, `\` or line breaks. */
407
+ name: string;
408
+ /** @description File in standard base64. */
409
+ content: string;
410
+ /** @description Not supported: a request with `url` is refused (400). */
411
+ url?: string;
412
+ };
413
+ SendEmailRequest: {
414
+ /** @description On a verified domain of your organisation, or a personal address (Gmail, Yahoo…) confirmed in the console: the email then leaves from an alias on Iris's shared domain, with this address as `replyTo` unless you give one, and at most 50 recipients a day (200 on a paid plan). */
415
+ sender: components["schemas"]["Address"];
416
+ /** @description Required, unless `messageVersions` is used (then ignored). */
417
+ to?: components["schemas"]["Address"][];
418
+ cc?: components["schemas"]["Address"][];
419
+ bcc?: components["schemas"]["Address"][];
420
+ /** @description Ignored when `email` is empty. */
421
+ replyTo?: components["schemas"]["Address"];
422
+ /** @description Required without `templateId`. `{{params.x}}` is replaced. */
423
+ subject?: string;
424
+ /** @description `htmlContent` or `textContent` is required without `templateId`. A `{{bloc_paiement}}` marker places the payment block. With click tracking on, a link carrying `data-iris-notrack` (or `notrack`) keeps its address and the attribute is removed. */
425
+ htmlContent?: string;
426
+ textContent?: string;
427
+ /** @description Extra headers. Silently dropped: invalid names, addressing headers (From, To, Subject, Message-ID...), `Content-*`, values over 998 characters or with line breaks. */
428
+ headers?: {
429
+ [key: string]: string;
430
+ };
431
+ /** @description Values for `{{params.x}}` and `{{ params.x.y }}` in the subject and contents, or for the template. */
432
+ params?: Record<string, never>;
433
+ /** @description Accepted and not stored. */
434
+ tags?: string[];
435
+ /** @description 10 MB decoded at most in total. */
436
+ attachment?: components["schemas"]["Attachment"][];
437
+ /**
438
+ * Format: int64
439
+ * @description A template of your organisation, rendered with `params`. Its subject and contents replace `subject`, `htmlContent` and `textContent`. An archived template answers 400 `invalid_parameter`; a template that requires its variables answers 400 `invalid_parameter` naming the first missing or wrongly typed field of `params`.
440
+ */
441
+ templateId?: number;
442
+ /** @description RFC 3339 with a time zone, 72 hours ahead at most. The answer is then 202 with a `batchId`. Iris extension `auto`: each message leaves at the next full hour (within 24 hours) when its first recipient opened your emails most in the last 90 days, else when your organisation's emails are opened most, else now. Opens are only known on domains with tracking on. */
443
+ scheduledAt?: string | "auto";
444
+ /**
445
+ * Format: uuid
446
+ * @description Lowercase UUID v4 naming the scheduled batch; generated when absent. Checked even without `scheduledAt` (anything else answers 400), but only names a batch with `scheduledAt`.
447
+ */
448
+ batchId?: string;
449
+ /** @description One message per version. Not combined with `payment` or `secret`. */
450
+ messageVersions?: components["schemas"]["MessageVersion"][];
451
+ payment?: components["schemas"]["Payment"];
452
+ secret?: components["schemas"]["Secret"];
453
+ /** @description Iris extension: if the email hard-bounces, Iris sends a WhatsApp message to this number with its approved template (your sender address and the address that refused the email). Costs 4 units, like a Verify code by WhatsApp, only once the WhatsApp message has left. Needs exactly one recipient and no `messageVersions` (400); 503 when WhatsApp is not available. */
454
+ fallback?: {
455
+ /**
456
+ * @description Mobile number, E.164 or Senegalese.
457
+ * @example +221771234567
458
+ */
459
+ whatsapp: string;
460
+ };
461
+ calendar?: components["schemas"]["Calendar"];
462
+ /** @description Iris extension, one-click unsubscribe (RFC 8058). `true` adds `List-Unsubscribe` and `List-Unsubscribe-Post: List-Unsubscribe=One-Click`, replacing those given in `headers`; it needs exactly one recipient per message (to, cc and bcc together: use `messageVersions`) and is refused with `secret` (400). `false` turns it off for this request. Absent: the setting of the sender domain in the console, which skips messages with several recipients. Never added to a secret. An address that unsubscribes joins your suppression list. */
463
+ unsubscribe?: boolean;
464
+ };
465
+ /** @description Each field given replaces the one of the request for this version; the rest is inherited, `templateId` included. */
466
+ MessageVersion: {
467
+ to: components["schemas"]["Address"][];
468
+ cc?: components["schemas"]["Address"][];
469
+ bcc?: components["schemas"]["Address"][];
470
+ replyTo?: components["schemas"]["Address"];
471
+ subject?: string;
472
+ /** @description Given with or without `textContent`, replaces both contents. */
473
+ htmlContent?: string;
474
+ textContent?: string;
475
+ params?: Record<string, never>;
476
+ };
477
+ /** @description Iris extension: a 221 Pay link (Wave, Orange Money) of your linked merchant account, shown as a button at `{{bloc_paiement}}` or before `</body>`, and as a line in the text. The same `reference` and amount reuse the same link. */
478
+ Payment: {
479
+ /** @description Whole CFA francs. */
480
+ amountXof: number;
481
+ /** @description Your reference, unique per payment. */
482
+ reference: string;
483
+ description: string;
484
+ /**
485
+ * @description Link lifetime in seconds.
486
+ * @default 604800
487
+ */
488
+ expiresIn: number;
489
+ /** @description Buttons shown in the brand colours (text only, no logo). Both when absent. Every button opens the same 221 Pay link, where the payer can still choose. */
490
+ methods?: ("wave" | "orange_money")[];
491
+ };
492
+ /**
493
+ * @description Iris extension: an `invitation.ics` attachment (RFC 5545, `METHOD:REQUEST`, `text/calendar; method=REQUEST`) inviting every `to` and `cc` recipient. In a template, `{{ lien_agenda }}` is the matching Google Calendar link.
494
+ * @example {
495
+ * "title": "Consultation",
496
+ * "start": "2026-11-20T10:30:00Z",
497
+ * "end": "2026-11-20T11:00:00Z",
498
+ * "location": "Cabinet Ndiaye, Plateau, Dakar"
499
+ * }
500
+ */
501
+ Calendar: {
502
+ title: string;
503
+ /**
504
+ * Format: date-time
505
+ * @description RFC 3339 with a time zone.
506
+ */
507
+ start: string;
508
+ /**
509
+ * Format: date-time
510
+ * @description After `start`, 31 days later at most.
511
+ */
512
+ end: string;
513
+ location?: string;
514
+ description?: string;
515
+ /** @description The sender when absent. */
516
+ organizer?: components["schemas"]["Address"];
517
+ };
518
+ /** @description Iris extension, paid plans: the content stays encrypted at Iris and the email only carries a link. One recipient in `to`, no `cc` or `bcc`, not combined with `payment`. */
519
+ Secret: {
520
+ /**
521
+ * @description Seconds before the content is destroyed.
522
+ * @default 604800
523
+ */
524
+ expiresIn: number;
525
+ /**
526
+ * @description Destroy the content after the first reading.
527
+ * @default false
528
+ */
529
+ viewOnce: boolean;
530
+ /**
531
+ * @description `email`: the reader asks for a code sent to the recipient before reading.
532
+ * @default none
533
+ * @enum {string}
534
+ */
535
+ code: "none" | "email";
536
+ };
537
+ SendEmailResponse: {
538
+ /** @description Without `messageVersions`. */
539
+ messageId?: string;
540
+ /** @description With `messageVersions`, in version order. */
541
+ messageIds?: string[];
542
+ /**
543
+ * Format: uuid
544
+ * @description With `scheduledAt`.
545
+ */
546
+ batchId?: string;
547
+ };
548
+ ScheduledStatus: {
549
+ /** Format: date-time */
550
+ createdAt: string;
551
+ /** Format: date-time */
552
+ scheduledAt: string;
553
+ /** @enum {string} */
554
+ status: "queued" | "inProgress" | "processed";
555
+ };
556
+ BatchStatus: {
557
+ /** @description Messages in the batch. */
558
+ count: number;
559
+ /** @description The 100 most recent. */
560
+ batches: components["schemas"]["ScheduledStatus"][];
561
+ };
562
+ SecretRevoked: {
563
+ messageId: string;
564
+ /** @constant */
565
+ revoked: true;
566
+ };
567
+ AggregatedReport: {
568
+ /** @description `YYYY-MM-DD|YYYY-MM-DD`. */
569
+ range?: string;
570
+ /** @description Recipients of the emails accepted. */
571
+ requests?: number;
572
+ delivered?: number;
573
+ hardBounces?: number;
574
+ /** @description Recipients with a temporary bounce, once per message. */
575
+ softBounces?: number;
576
+ clicks?: number;
577
+ uniqueClicks?: number;
578
+ opens?: number;
579
+ uniqueOpens?: number;
580
+ spamReports?: number;
581
+ /** @constant */
582
+ blocked?: 0;
583
+ /** @constant */
584
+ invalid?: 0;
585
+ /** @description One-click unsubscribes. */
586
+ unsubscribed?: number;
587
+ };
588
+ EventsReport: {
589
+ events: {
590
+ email: string;
591
+ /** Format: date-time */
592
+ date: string;
593
+ subject: string;
594
+ messageId: string;
595
+ /**
596
+ * @description `requests`: accepted, one per recipient. `softBounces`: temporary bounce, the relay retries. `error`: permanent failure, with `reason`.
597
+ * @enum {string}
598
+ */
599
+ event: "requests" | "delivered" | "hardBounces" | "softBounces" | "spam" | "opened" | "clicks" | "unsubscribed" | "error";
600
+ reason?: string;
601
+ /** @description Clicked link. */
602
+ link?: string;
603
+ from: string;
604
+ }[];
605
+ };
606
+ TransactionalEmails: {
607
+ /** @description Total lines matching, all pages. */
608
+ count: number;
609
+ transactionalEmails: {
610
+ email: string;
611
+ subject: string;
612
+ messageId: string;
613
+ /**
614
+ * Format: uuid
615
+ * @description Log id of the message, also accepted to cancel it.
616
+ */
617
+ uuid: string;
618
+ /** Format: date-time */
619
+ date: string;
620
+ from: string;
621
+ }[];
622
+ };
623
+ BlockedContacts: {
624
+ /** @description Total addresses matching, all pages. */
625
+ count: number;
626
+ contacts: {
627
+ email: string;
628
+ senderEmail: string;
629
+ reason: {
630
+ /** @enum {string} */
631
+ code: "hardBounce" | "contactFlaggedAsSpam" | "unsubscribedViaEmail";
632
+ message: string;
633
+ };
634
+ /** Format: date-time */
635
+ blockedAt: string;
636
+ }[];
637
+ };
638
+ /** @description `email` or `emails`, not both. */
639
+ AddressCheckRequest: {
640
+ email: string;
641
+ } | {
642
+ emails: string[];
643
+ };
644
+ AddressCheck: {
645
+ /** @description As submitted. */
646
+ email: string;
647
+ /** @description A bare ASCII address that Iris would send to. */
648
+ validSyntax: boolean;
649
+ /** @description Bare address, domain in lowercase; null when the syntax is invalid. */
650
+ normalized: string | null;
651
+ /**
652
+ * @description `mx`; `a`: no MX, the domain address is the implicit MX (RFC 5321); `none`: neither, or a null MX (RFC 7505); `unknown`: no DNS answer within 10 seconds; null when the syntax is invalid.
653
+ * @enum {string|null}
654
+ */
655
+ mailServer: "mx" | "a" | null | "none" | "unknown";
656
+ /** @description Disposable address domain. */
657
+ disposable: boolean;
658
+ /** @description Role address such as `contact@` or `info@`. */
659
+ role: boolean;
660
+ /** @description Corrected address when the domain is one or two typos away from a common provider. */
661
+ suggestion: string | null;
662
+ /** @description On your suppression list. */
663
+ suppressed: boolean;
664
+ /**
665
+ * @description `undeliverable`: invalid syntax, `mailServer` `none` or suppressed address. `risky`: disposable, role, likely typo or `mailServer` `unknown`. Otherwise `deliverable`.
666
+ * @enum {string}
667
+ */
668
+ verdict: "deliverable" | "risky" | "undeliverable";
669
+ };
670
+ AddressCheckResults: {
671
+ /** @description In the order of `emails`. */
672
+ results: components["schemas"]["AddressCheck"][];
673
+ };
674
+ VerificationRequest: {
675
+ /** @description `email`, `phone` or both. */
676
+ to: {
677
+ /** Format: email */
678
+ email?: string;
679
+ /** @description Mobile number; Senegal when there is no country code. Stored in E.164. */
680
+ phone?: string;
681
+ };
682
+ /**
683
+ * @default auto
684
+ * @enum {string}
685
+ */
686
+ channel: "auto" | "email" | "sms" | "whatsapp";
687
+ /**
688
+ * @default fr
689
+ * @enum {string}
690
+ */
691
+ locale: "fr" | "en";
692
+ /** @description Name shown in the message; your organisation name by default. */
693
+ brand?: string;
694
+ /**
695
+ * @description Digits in the code.
696
+ * @default 6
697
+ */
698
+ length: number;
699
+ /**
700
+ * @description Code lifetime in seconds.
701
+ * @default 300
702
+ */
703
+ ttl: number;
704
+ /**
705
+ * @description Seconds before the next channel in `auto` mode.
706
+ * @default 60
707
+ */
708
+ fallbackAfter: number;
709
+ };
710
+ Verification: {
711
+ /** Format: uuid */
712
+ verificationId: string;
713
+ /**
714
+ * @description Channel of the code just sent.
715
+ * @enum {string}
716
+ */
717
+ channel: "email" | "sms" | "whatsapp";
718
+ /** Format: date-time */
719
+ expiresAt: string;
720
+ };
721
+ VerificationCheck: {
722
+ /** Format: uuid */
723
+ verificationId: string;
724
+ code: string;
725
+ };
726
+ VerificationStatus: {
727
+ /** @enum {string} */
728
+ status: "pending" | "approved" | "max_attempts" | "canceled" | "expired";
729
+ };
730
+ InboundEmail: {
731
+ /** Format: uuid */
732
+ id: string;
733
+ messageId: string;
734
+ /**
735
+ * Format: int64
736
+ * @description Unix time in milliseconds.
737
+ */
738
+ receivedAt: number;
739
+ from: components["schemas"]["Address"];
740
+ to: components["schemas"]["Address"][];
741
+ cc: components["schemas"]["Address"][];
742
+ subject: string;
743
+ text: string;
744
+ html: string;
745
+ headers: {
746
+ [key: string]: string[];
747
+ };
748
+ /** @description Attachments, then inline images. */
749
+ attachments: {
750
+ name: string;
751
+ contentType: string;
752
+ /** @description Bytes. */
753
+ size: number;
754
+ contentId: string;
755
+ /**
756
+ * Format: uri
757
+ * @description `GET /v3/inbound/attachments/{id}/{index}`, with your `api-key`.
758
+ */
759
+ downloadUrl: string;
760
+ /** @description The antivirus found malware: the download answers `403 attachment_infected`. */
761
+ infected: boolean;
762
+ /** @description Malware name found by the antivirus, only when `infected`. */
763
+ signature?: string;
764
+ }[];
765
+ };
766
+ EmailEvent: {
767
+ /** @description `evt_` followed by a number; equals `webhook-id`. */
768
+ id: string;
769
+ /** @enum {string} */
770
+ type: "email.delivered" | "email.bounced" | "email.soft_bounced" | "email.complained" | "email.unsubscribed" | "email.opened" | "email.clicked";
771
+ /** Format: date-time */
772
+ createdAt: string;
773
+ data: {
774
+ messageId: string;
775
+ /** @description Recipient, for delivered, bounced, soft_bounced, complained and unsubscribed. */
776
+ email?: string;
777
+ /** @description Clicked link, for `email.clicked`. */
778
+ url?: string;
779
+ };
780
+ };
781
+ PaymentEvent: {
782
+ /** @description `evt_` followed by `paymentId`. */
783
+ id: string;
784
+ /** @constant */
785
+ type: "payment.succeeded";
786
+ /**
787
+ * Format: date-time
788
+ * @description Payment time.
789
+ */
790
+ createdAt: string;
791
+ data: {
792
+ /** Format: uuid */
793
+ paymentId: string;
794
+ reference: string;
795
+ description: string;
796
+ amountXof: number;
797
+ /** @constant */
798
+ currency: "XOF";
799
+ };
800
+ };
801
+ };
802
+ responses: {
803
+ /** @description `missing_parameter` or `invalid_parameter`; also `all_recipients_suppressed` when sending email (including a Verify code by email), and `content_rejected` from the outbound spam filter. */
804
+ BadRequest: {
805
+ headers: {
806
+ [name: string]: unknown;
807
+ };
808
+ content: {
809
+ "application/json": components["schemas"]["Error"];
810
+ };
811
+ };
812
+ /** @description `unauthorized`: key missing, unknown or revoked. */
813
+ Unauthorized: {
814
+ headers: {
815
+ [name: string]: unknown;
816
+ };
817
+ content: {
818
+ /**
819
+ * @example {
820
+ * "code": "unauthorized",
821
+ * "message": "Key not found"
822
+ * }
823
+ */
824
+ "application/json": components["schemas"]["Error"];
825
+ };
826
+ };
827
+ /** @description `not_enough_credits`: monthly quota, rollover and credits are used up. */
828
+ PaymentRequired: {
829
+ headers: {
830
+ [name: string]: unknown;
831
+ };
832
+ content: {
833
+ /**
834
+ * @example {
835
+ * "code": "not_enough_credits",
836
+ * "message": "Le quota mensuel de votre offre est atteint et vos crédits sont insuffisants : rechargez votre compte"
837
+ * }
838
+ */
839
+ "application/json": components["schemas"]["Error"];
840
+ };
841
+ };
842
+ /** @description `key_suspended`, `ip_not_allowed` and `key_scope` on every route. When sending email, Verify codes or address checks: `account_blocked` and `account_closing`. Email only, Verify codes by email included: `sending_paused`. `POST /v3/smtp/email`: `unauthorized` (sender domain not verified) and `plan_required` (`secret`). Inbound attachment: `attachment_infected`. */
843
+ Forbidden: {
844
+ headers: {
845
+ [name: string]: unknown;
846
+ };
847
+ content: {
848
+ "application/json": components["schemas"]["Error"];
849
+ };
850
+ };
851
+ /** @description `document_not_found` on `/v3/smtp` routes, `not_found` elsewhere. */
852
+ NotFound: {
853
+ headers: {
854
+ [name: string]: unknown;
855
+ };
856
+ content: {
857
+ /**
858
+ * @example {
859
+ * "code": "document_not_found",
860
+ * "message": "Aucun envoi programmé pour cet identifiant"
861
+ * }
862
+ */
863
+ "application/json": components["schemas"]["Error"];
864
+ };
865
+ };
866
+ /** @description `payment`: `merchant_not_linked`, `merchant_key_invalid`, `payment_reference_used`, `payment_already_paid`. Verify: `not_pending`. */
867
+ Conflict: {
868
+ headers: {
869
+ [name: string]: unknown;
870
+ };
871
+ content: {
872
+ /**
873
+ * @example {
874
+ * "code": "payment_already_paid",
875
+ * "message": "Cette référence de paiement est déjà payée"
876
+ * }
877
+ */
878
+ "application/json": components["schemas"]["Error"];
879
+ };
880
+ };
881
+ /** @description `too_many_requests`: 1,000 email recipients per rolling hour per organisation, Verify codes by email included; for Verify also 5 codes per recipient and 300 per organisation every 10 minutes, and 30 seconds between two resends. `daily_limit_reached`: the organisation's daily recipient cap (UTC day, rises with account age and delivered volume). `key_daily_limit`: the key's own daily cap. */
882
+ TooManyRequests: {
883
+ headers: {
884
+ [name: string]: unknown;
885
+ };
886
+ content: {
887
+ "application/json": components["schemas"]["Error"];
888
+ };
889
+ };
890
+ /** @description `payment_link_failed` (221 Pay) or `provider_failed` (SMS or WhatsApp). Retry. */
891
+ BadGateway: {
892
+ headers: {
893
+ [name: string]: unknown;
894
+ };
895
+ content: {
896
+ /**
897
+ * @example {
898
+ * "code": "payment_link_failed",
899
+ * "message": "221 Pay n'a pas répondu, réessayez dans un instant"
900
+ * }
901
+ */
902
+ "application/json": components["schemas"]["Error"];
903
+ };
904
+ };
905
+ /** @description `service_unavailable`: temporary failure, or the feature is not configured on this server. Retry later. */
906
+ ServiceUnavailable: {
907
+ headers: {
908
+ [name: string]: unknown;
909
+ };
910
+ content: {
911
+ /**
912
+ * @example {
913
+ * "code": "service_unavailable",
914
+ * "message": "Service momentanément indisponible, réessayez plus tard"
915
+ * }
916
+ */
917
+ "application/json": components["schemas"]["Error"];
918
+ };
919
+ };
920
+ };
921
+ parameters: {
922
+ /**
923
+ * @description First day, with `endDate`. Not combined with `days`.
924
+ * @example 2026-11-01
925
+ */
926
+ startDate: string;
927
+ /**
928
+ * @description Last day, included, with `startDate`.
929
+ * @example 2026-11-17
930
+ */
931
+ endDate: string;
932
+ /**
933
+ * @description The last N days, today included. Not combined with `startDate` and `endDate`.
934
+ * @example 7
935
+ */
936
+ days: number;
937
+ offset: number;
938
+ /** @description By date. */
939
+ sort: "asc" | "desc";
940
+ /**
941
+ * @description With or without angle brackets.
942
+ * @example <a1b2c3d4e5f6a1b2c3d4e5f6@boutique.sn>
943
+ */
944
+ messageIdQuery: string;
945
+ /** @description `verificationId` returned by `POST /v1/verify`. */
946
+ verificationId: string;
947
+ /** @description Event id, identical on every attempt: deduplicate on it. */
948
+ webhookId: string;
949
+ /** @description Unix time of this attempt, in seconds. */
950
+ webhookTimestamp: string;
951
+ /**
952
+ * @description Standard Webhooks signature: `v1,` followed by the base64 HMAC-SHA256 of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of the `whsec_` secret shown in the console. For 24 hours after a secret rotation, two space-separated signatures (new and old secret). Use a Standard Webhooks library, which accepts any matching signature and refuses timestamps more than 5 minutes away.
953
+ * @example v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=
954
+ */
955
+ webhookSignature: string;
956
+ };
957
+ requestBodies: never;
958
+ headers: never;
959
+ pathItems: never;
960
+ }
961
+ export type $defs = Record<string, never>;
962
+ export interface operations {
963
+ sendEmail: {
964
+ parameters: {
965
+ query?: never;
966
+ header?: never;
967
+ path?: never;
968
+ cookie?: never;
969
+ };
970
+ requestBody: {
971
+ content: {
972
+ "application/json": components["schemas"]["SendEmailRequest"];
973
+ };
974
+ };
975
+ responses: {
976
+ /** @description Queued. `messageId`, or `messageIds` in version order with `messageVersions`. */
977
+ 201: {
978
+ headers: {
979
+ [name: string]: unknown;
980
+ };
981
+ content: {
982
+ "application/json": components["schemas"]["SendEmailResponse"];
983
+ };
984
+ };
985
+ /** @description Scheduled with `scheduledAt`. Units are reserved now and counted in the current month. */
986
+ 202: {
987
+ headers: {
988
+ [name: string]: unknown;
989
+ };
990
+ content: {
991
+ /**
992
+ * @example {
993
+ * "messageIds": [
994
+ * "<a1b2c3d4e5f6a1b2c3d4e5f6@boutique.sn>",
995
+ * "<b2c3d4e5f6a1b2c3d4e5f6a1@boutique.sn>"
996
+ * ],
997
+ * "batchId": "5b0f8e3c-6f0a-4d39-9d43-2a7c1f0e9b21"
998
+ * }
999
+ */
1000
+ "application/json": components["schemas"]["SendEmailResponse"];
1001
+ };
1002
+ };
1003
+ 400: components["responses"]["BadRequest"];
1004
+ 401: components["responses"]["Unauthorized"];
1005
+ 402: components["responses"]["PaymentRequired"];
1006
+ 403: components["responses"]["Forbidden"];
1007
+ 409: components["responses"]["Conflict"];
1008
+ 429: components["responses"]["TooManyRequests"];
1009
+ 502: components["responses"]["BadGateway"];
1010
+ 503: components["responses"]["ServiceUnavailable"];
1011
+ };
1012
+ };
1013
+ cancelScheduledEmail: {
1014
+ parameters: {
1015
+ query?: never;
1016
+ header?: never;
1017
+ path: {
1018
+ /**
1019
+ * @description A `messageId` with its angle brackets (URL-encoded), a `batchId`, or the `uuid` from `GET /v3/smtp/emails`.
1020
+ * @example 5b0f8e3c-6f0a-4d39-9d43-2a7c1f0e9b21
1021
+ */
1022
+ identifier: string;
1023
+ };
1024
+ cookie?: never;
1025
+ };
1026
+ requestBody?: never;
1027
+ responses: {
1028
+ /** @description Cancelled. */
1029
+ 204: {
1030
+ headers: {
1031
+ [name: string]: unknown;
1032
+ };
1033
+ content?: never;
1034
+ };
1035
+ 401: components["responses"]["Unauthorized"];
1036
+ 403: components["responses"]["Forbidden"];
1037
+ 404: components["responses"]["NotFound"];
1038
+ 503: components["responses"]["ServiceUnavailable"];
1039
+ };
1040
+ };
1041
+ getScheduledEmailStatus: {
1042
+ parameters: {
1043
+ query?: never;
1044
+ header?: never;
1045
+ path: {
1046
+ /**
1047
+ * @description A `messageId` with its angle brackets (URL-encoded), or a `batchId`.
1048
+ * @example <a1b2c3d4e5f6a1b2c3d4e5f6@boutique.sn>
1049
+ */
1050
+ identifier: string;
1051
+ };
1052
+ cookie?: never;
1053
+ };
1054
+ requestBody?: never;
1055
+ responses: {
1056
+ /** @description Status of the message, or of the batch. */
1057
+ 200: {
1058
+ headers: {
1059
+ [name: string]: unknown;
1060
+ };
1061
+ content: {
1062
+ "application/json": components["schemas"]["ScheduledStatus"] | components["schemas"]["BatchStatus"];
1063
+ };
1064
+ };
1065
+ 401: components["responses"]["Unauthorized"];
1066
+ 403: components["responses"]["Forbidden"];
1067
+ 404: components["responses"]["NotFound"];
1068
+ 503: components["responses"]["ServiceUnavailable"];
1069
+ };
1070
+ };
1071
+ revokeSecret: {
1072
+ parameters: {
1073
+ query?: never;
1074
+ header?: never;
1075
+ path: {
1076
+ /**
1077
+ * @description The `messageId`, with or without its angle brackets, URL-encoded.
1078
+ * @example a1b2c3d4e5f6a1b2c3d4e5f6@boutique.sn
1079
+ */
1080
+ messageId: string;
1081
+ };
1082
+ cookie?: never;
1083
+ };
1084
+ requestBody?: never;
1085
+ responses: {
1086
+ /** @description Content destroyed. */
1087
+ 200: {
1088
+ headers: {
1089
+ [name: string]: unknown;
1090
+ };
1091
+ content: {
1092
+ /**
1093
+ * @example {
1094
+ * "messageId": "<a1b2c3d4e5f6a1b2c3d4e5f6@boutique.sn>",
1095
+ * "revoked": true
1096
+ * }
1097
+ */
1098
+ "application/json": components["schemas"]["SecretRevoked"];
1099
+ };
1100
+ };
1101
+ 401: components["responses"]["Unauthorized"];
1102
+ 403: components["responses"]["Forbidden"];
1103
+ 404: components["responses"]["NotFound"];
1104
+ 503: components["responses"]["ServiceUnavailable"];
1105
+ };
1106
+ };
1107
+ getAggregatedReport: {
1108
+ parameters: {
1109
+ query?: {
1110
+ /**
1111
+ * @description First day, with `endDate`. Not combined with `days`.
1112
+ * @example 2026-11-01
1113
+ */
1114
+ startDate?: components["parameters"]["startDate"];
1115
+ /**
1116
+ * @description Last day, included, with `startDate`.
1117
+ * @example 2026-11-17
1118
+ */
1119
+ endDate?: components["parameters"]["endDate"];
1120
+ /**
1121
+ * @description The last N days, today included. Not combined with `startDate` and `endDate`.
1122
+ * @example 7
1123
+ */
1124
+ days?: components["parameters"]["days"];
1125
+ };
1126
+ header?: never;
1127
+ path?: never;
1128
+ cookie?: never;
1129
+ };
1130
+ requestBody?: never;
1131
+ responses: {
1132
+ /** @description Statistics. */
1133
+ 200: {
1134
+ headers: {
1135
+ [name: string]: unknown;
1136
+ };
1137
+ content: {
1138
+ /**
1139
+ * @example {
1140
+ * "range": "2026-08-20|2026-11-17",
1141
+ * "requests": 1200,
1142
+ * "delivered": 1180,
1143
+ * "hardBounces": 6,
1144
+ * "softBounces": 4,
1145
+ * "clicks": 310,
1146
+ * "uniqueClicks": 240,
1147
+ * "opens": 900,
1148
+ * "uniqueOpens": 700,
1149
+ * "spamReports": 1,
1150
+ * "blocked": 0,
1151
+ * "invalid": 0,
1152
+ * "unsubscribed": 3
1153
+ * }
1154
+ */
1155
+ "application/json": components["schemas"]["AggregatedReport"];
1156
+ };
1157
+ };
1158
+ 400: components["responses"]["BadRequest"];
1159
+ 401: components["responses"]["Unauthorized"];
1160
+ 403: components["responses"]["Forbidden"];
1161
+ 503: components["responses"]["ServiceUnavailable"];
1162
+ };
1163
+ };
1164
+ listEmailEvents: {
1165
+ parameters: {
1166
+ query?: {
1167
+ limit?: number;
1168
+ offset?: components["parameters"]["offset"];
1169
+ /**
1170
+ * @description First day, with `endDate`. Not combined with `days`.
1171
+ * @example 2026-11-01
1172
+ */
1173
+ startDate?: components["parameters"]["startDate"];
1174
+ /**
1175
+ * @description Last day, included, with `startDate`.
1176
+ * @example 2026-11-17
1177
+ */
1178
+ endDate?: components["parameters"]["endDate"];
1179
+ /**
1180
+ * @description The last N days, today included. Not combined with `startDate` and `endDate`.
1181
+ * @example 7
1182
+ */
1183
+ days?: components["parameters"]["days"];
1184
+ /**
1185
+ * @description Recipient address, case-insensitive.
1186
+ * @example awa@example.sn
1187
+ */
1188
+ email?: string;
1189
+ /**
1190
+ * @description `bounces` returns `hardBounces` and `softBounces`. Events Iris does not produce return an empty list.
1191
+ * @example delivered
1192
+ */
1193
+ event?: "bounces" | "hardBounces" | "softBounces" | "delivered" | "spam" | "requests" | "opened" | "clicks" | "invalid" | "deferred" | "blocked" | "unsubscribed" | "error" | "loadedByProxy";
1194
+ /**
1195
+ * @description With or without angle brackets.
1196
+ * @example <a1b2c3d4e5f6a1b2c3d4e5f6@boutique.sn>
1197
+ */
1198
+ messageId?: components["parameters"]["messageIdQuery"];
1199
+ /** @description By date. */
1200
+ sort?: components["parameters"]["sort"];
1201
+ };
1202
+ header?: never;
1203
+ path?: never;
1204
+ cookie?: never;
1205
+ };
1206
+ requestBody?: never;
1207
+ responses: {
1208
+ /** @description Events, ordered by date then messageId and email. */
1209
+ 200: {
1210
+ headers: {
1211
+ [name: string]: unknown;
1212
+ };
1213
+ content: {
1214
+ /**
1215
+ * @example {
1216
+ * "events": [
1217
+ * {
1218
+ * "email": "awa@example.sn",
1219
+ * "date": "2026-11-17T10:00:03Z",
1220
+ * "subject": "Votre commande",
1221
+ * "messageId": "<a1b2c3d4e5f6a1b2c3d4e5f6@boutique.sn>",
1222
+ * "event": "delivered",
1223
+ * "from": "commandes@boutique.sn"
1224
+ * }
1225
+ * ]
1226
+ * }
1227
+ */
1228
+ "application/json": components["schemas"]["EventsReport"];
1229
+ };
1230
+ };
1231
+ 400: components["responses"]["BadRequest"];
1232
+ 401: components["responses"]["Unauthorized"];
1233
+ 403: components["responses"]["Forbidden"];
1234
+ 503: components["responses"]["ServiceUnavailable"];
1235
+ };
1236
+ };
1237
+ listTransactionalEmails: {
1238
+ parameters: {
1239
+ query?: {
1240
+ /**
1241
+ * @description Recipient address, case-insensitive.
1242
+ * @example awa@example.sn
1243
+ */
1244
+ email?: string;
1245
+ /**
1246
+ * @description With or without angle brackets.
1247
+ * @example <a1b2c3d4e5f6a1b2c3d4e5f6@boutique.sn>
1248
+ */
1249
+ messageId?: components["parameters"]["messageIdQuery"];
1250
+ /**
1251
+ * @description First day, with `endDate`. Not combined with `days`.
1252
+ * @example 2026-11-01
1253
+ */
1254
+ startDate?: components["parameters"]["startDate"];
1255
+ /**
1256
+ * @description Last day, included, with `startDate`.
1257
+ * @example 2026-11-17
1258
+ */
1259
+ endDate?: components["parameters"]["endDate"];
1260
+ limit?: number;
1261
+ offset?: components["parameters"]["offset"];
1262
+ /** @description By date. */
1263
+ sort?: components["parameters"]["sort"];
1264
+ };
1265
+ header?: never;
1266
+ path?: never;
1267
+ cookie?: never;
1268
+ };
1269
+ requestBody?: never;
1270
+ responses: {
1271
+ /** @description Log lines and their total. */
1272
+ 200: {
1273
+ headers: {
1274
+ [name: string]: unknown;
1275
+ };
1276
+ content: {
1277
+ /**
1278
+ * @example {
1279
+ * "count": 1,
1280
+ * "transactionalEmails": [
1281
+ * {
1282
+ * "email": "awa@example.sn",
1283
+ * "subject": "Votre commande",
1284
+ * "messageId": "<a1b2c3d4e5f6a1b2c3d4e5f6@boutique.sn>",
1285
+ * "uuid": "0c6f1a52-8a1e-4c7b-9a51-2f3d4e5f6a7b",
1286
+ * "date": "2026-11-17T10:00:00Z",
1287
+ * "from": "commandes@boutique.sn"
1288
+ * }
1289
+ * ]
1290
+ * }
1291
+ */
1292
+ "application/json": components["schemas"]["TransactionalEmails"];
1293
+ };
1294
+ };
1295
+ 400: components["responses"]["BadRequest"];
1296
+ 401: components["responses"]["Unauthorized"];
1297
+ 403: components["responses"]["Forbidden"];
1298
+ 503: components["responses"]["ServiceUnavailable"];
1299
+ };
1300
+ };
1301
+ listBlockedContacts: {
1302
+ parameters: {
1303
+ query?: {
1304
+ /**
1305
+ * @description First day, with `endDate`. Not combined with `days`.
1306
+ * @example 2026-11-01
1307
+ */
1308
+ startDate?: components["parameters"]["startDate"];
1309
+ /**
1310
+ * @description Last day, included, with `startDate`.
1311
+ * @example 2026-11-17
1312
+ */
1313
+ endDate?: components["parameters"]["endDate"];
1314
+ limit?: number;
1315
+ offset?: components["parameters"]["offset"];
1316
+ /**
1317
+ * @description Comma-separated sender addresses, case-insensitive.
1318
+ * @example commandes@boutique.sn,factures@boutique.sn
1319
+ */
1320
+ senders?: string;
1321
+ /** @description By date. */
1322
+ sort?: components["parameters"]["sort"];
1323
+ };
1324
+ header?: never;
1325
+ path?: never;
1326
+ cookie?: never;
1327
+ };
1328
+ requestBody?: never;
1329
+ responses: {
1330
+ /** @description Blocked addresses and their total. */
1331
+ 200: {
1332
+ headers: {
1333
+ [name: string]: unknown;
1334
+ };
1335
+ content: {
1336
+ /**
1337
+ * @example {
1338
+ * "count": 1,
1339
+ * "contacts": [
1340
+ * {
1341
+ * "email": "ancien@example.sn",
1342
+ * "senderEmail": "commandes@boutique.sn",
1343
+ * "reason": {
1344
+ * "code": "hardBounce",
1345
+ * "message": "Rebond définitif"
1346
+ * },
1347
+ * "blockedAt": "2026-11-02T08:30:00Z"
1348
+ * }
1349
+ * ]
1350
+ * }
1351
+ */
1352
+ "application/json": components["schemas"]["BlockedContacts"];
1353
+ };
1354
+ };
1355
+ 400: components["responses"]["BadRequest"];
1356
+ 401: components["responses"]["Unauthorized"];
1357
+ 403: components["responses"]["Forbidden"];
1358
+ 503: components["responses"]["ServiceUnavailable"];
1359
+ };
1360
+ };
1361
+ unblockContact: {
1362
+ parameters: {
1363
+ query?: never;
1364
+ header?: never;
1365
+ path: {
1366
+ /**
1367
+ * @description The address, case-insensitive.
1368
+ * @example ancien@example.sn
1369
+ */
1370
+ email: string;
1371
+ };
1372
+ cookie?: never;
1373
+ };
1374
+ requestBody?: never;
1375
+ responses: {
1376
+ /** @description Removed: Iris writes to this address again. */
1377
+ 204: {
1378
+ headers: {
1379
+ [name: string]: unknown;
1380
+ };
1381
+ content?: never;
1382
+ };
1383
+ 401: components["responses"]["Unauthorized"];
1384
+ 403: components["responses"]["Forbidden"];
1385
+ 404: components["responses"]["NotFound"];
1386
+ 503: components["responses"]["ServiceUnavailable"];
1387
+ };
1388
+ };
1389
+ getInboundAttachment: {
1390
+ parameters: {
1391
+ query?: never;
1392
+ header?: never;
1393
+ path: {
1394
+ /** @description `id` of the inbound email webhook. */
1395
+ id: string;
1396
+ /** @description Position in `attachments`, from 0. */
1397
+ index: number;
1398
+ };
1399
+ cookie?: never;
1400
+ };
1401
+ requestBody?: never;
1402
+ responses: {
1403
+ /** @description The file. Its name is in `Content-Disposition`. */
1404
+ 200: {
1405
+ headers: {
1406
+ /** @example attachment; filename=facture.pdf */
1407
+ "Content-Disposition"?: string;
1408
+ [name: string]: unknown;
1409
+ };
1410
+ content: {
1411
+ "application/octet-stream": string;
1412
+ };
1413
+ };
1414
+ 401: components["responses"]["Unauthorized"];
1415
+ 403: components["responses"]["Forbidden"];
1416
+ 404: components["responses"]["NotFound"];
1417
+ 503: components["responses"]["ServiceUnavailable"];
1418
+ };
1419
+ };
1420
+ checkEmailAddresses: {
1421
+ parameters: {
1422
+ query?: never;
1423
+ header?: never;
1424
+ path?: never;
1425
+ cookie?: never;
1426
+ };
1427
+ requestBody: {
1428
+ content: {
1429
+ "application/json": components["schemas"]["AddressCheckRequest"];
1430
+ };
1431
+ };
1432
+ responses: {
1433
+ /** @description One result for `email`, `results` for `emails`. */
1434
+ 200: {
1435
+ headers: {
1436
+ [name: string]: unknown;
1437
+ };
1438
+ content: {
1439
+ "application/json": components["schemas"]["AddressCheck"] | components["schemas"]["AddressCheckResults"];
1440
+ };
1441
+ };
1442
+ 400: components["responses"]["BadRequest"];
1443
+ 401: components["responses"]["Unauthorized"];
1444
+ 402: components["responses"]["PaymentRequired"];
1445
+ 403: components["responses"]["Forbidden"];
1446
+ 503: components["responses"]["ServiceUnavailable"];
1447
+ };
1448
+ };
1449
+ unsubscribeOneClick: {
1450
+ parameters: {
1451
+ query?: never;
1452
+ header?: never;
1453
+ path: {
1454
+ /** @description Signed token of the link; it names the organisation, the message and the recipient. */
1455
+ token: string;
1456
+ };
1457
+ cookie?: never;
1458
+ };
1459
+ requestBody?: {
1460
+ content: {
1461
+ "application/x-www-form-urlencoded": {
1462
+ /** @constant */
1463
+ "List-Unsubscribe"?: "One-Click";
1464
+ };
1465
+ };
1466
+ };
1467
+ responses: {
1468
+ /** @description Unsubscribed. HTML confirmation page. */
1469
+ 200: {
1470
+ headers: {
1471
+ [name: string]: unknown;
1472
+ };
1473
+ content: {
1474
+ "text/html": string;
1475
+ };
1476
+ };
1477
+ /** @description Invalid or modified token. HTML page. */
1478
+ 404: {
1479
+ headers: {
1480
+ [name: string]: unknown;
1481
+ };
1482
+ content: {
1483
+ "text/html": string;
1484
+ };
1485
+ };
1486
+ /** @description Temporary failure: retry. */
1487
+ 503: {
1488
+ headers: {
1489
+ [name: string]: unknown;
1490
+ };
1491
+ content: {
1492
+ "text/plain": string;
1493
+ };
1494
+ };
1495
+ };
1496
+ };
1497
+ createVerification: {
1498
+ parameters: {
1499
+ query?: never;
1500
+ header?: never;
1501
+ path?: never;
1502
+ cookie?: never;
1503
+ };
1504
+ requestBody: {
1505
+ content: {
1506
+ /**
1507
+ * @example {
1508
+ * "to": {
1509
+ * "email": "awa@example.sn",
1510
+ * "phone": "+221771234567"
1511
+ * },
1512
+ * "channel": "auto",
1513
+ * "locale": "fr",
1514
+ * "brand": "Boutique"
1515
+ * }
1516
+ */
1517
+ "application/json": components["schemas"]["VerificationRequest"];
1518
+ };
1519
+ };
1520
+ responses: {
1521
+ /** @description Code sent. */
1522
+ 201: {
1523
+ headers: {
1524
+ [name: string]: unknown;
1525
+ };
1526
+ content: {
1527
+ /**
1528
+ * @example {
1529
+ * "verificationId": "7d1e4b2a-3c5f-4e6a-8b9c-0d1e2f3a4b5c",
1530
+ * "channel": "email",
1531
+ * "expiresAt": "2026-11-17T10:05:00Z"
1532
+ * }
1533
+ */
1534
+ "application/json": components["schemas"]["Verification"];
1535
+ };
1536
+ };
1537
+ 400: components["responses"]["BadRequest"];
1538
+ 401: components["responses"]["Unauthorized"];
1539
+ 402: components["responses"]["PaymentRequired"];
1540
+ 403: components["responses"]["Forbidden"];
1541
+ 429: components["responses"]["TooManyRequests"];
1542
+ 502: components["responses"]["BadGateway"];
1543
+ 503: components["responses"]["ServiceUnavailable"];
1544
+ };
1545
+ };
1546
+ checkVerification: {
1547
+ parameters: {
1548
+ query?: never;
1549
+ header?: never;
1550
+ path?: never;
1551
+ cookie?: never;
1552
+ };
1553
+ requestBody: {
1554
+ content: {
1555
+ /**
1556
+ * @example {
1557
+ * "verificationId": "7d1e4b2a-3c5f-4e6a-8b9c-0d1e2f3a4b5c",
1558
+ * "code": "482913"
1559
+ * }
1560
+ */
1561
+ "application/json": components["schemas"]["VerificationCheck"];
1562
+ };
1563
+ };
1564
+ responses: {
1565
+ /** @description Status after the check. */
1566
+ 200: {
1567
+ headers: {
1568
+ [name: string]: unknown;
1569
+ };
1570
+ content: {
1571
+ /**
1572
+ * @example {
1573
+ * "status": "approved"
1574
+ * }
1575
+ */
1576
+ "application/json": components["schemas"]["VerificationStatus"];
1577
+ };
1578
+ };
1579
+ 400: components["responses"]["BadRequest"];
1580
+ 401: components["responses"]["Unauthorized"];
1581
+ 403: components["responses"]["Forbidden"];
1582
+ 404: components["responses"]["NotFound"];
1583
+ 503: components["responses"]["ServiceUnavailable"];
1584
+ };
1585
+ };
1586
+ cancelVerification: {
1587
+ parameters: {
1588
+ query?: never;
1589
+ header?: never;
1590
+ path: {
1591
+ /** @description `verificationId` returned by `POST /v1/verify`. */
1592
+ id: components["parameters"]["verificationId"];
1593
+ };
1594
+ cookie?: never;
1595
+ };
1596
+ requestBody?: never;
1597
+ responses: {
1598
+ /** @description Status after the request. */
1599
+ 200: {
1600
+ headers: {
1601
+ [name: string]: unknown;
1602
+ };
1603
+ content: {
1604
+ /**
1605
+ * @example {
1606
+ * "status": "canceled"
1607
+ * }
1608
+ */
1609
+ "application/json": components["schemas"]["VerificationStatus"];
1610
+ };
1611
+ };
1612
+ 401: components["responses"]["Unauthorized"];
1613
+ 403: components["responses"]["Forbidden"];
1614
+ 404: components["responses"]["NotFound"];
1615
+ 503: components["responses"]["ServiceUnavailable"];
1616
+ };
1617
+ };
1618
+ resendVerification: {
1619
+ parameters: {
1620
+ query?: never;
1621
+ header?: never;
1622
+ path: {
1623
+ /** @description `verificationId` returned by `POST /v1/verify`. */
1624
+ id: components["parameters"]["verificationId"];
1625
+ };
1626
+ cookie?: never;
1627
+ };
1628
+ requestBody?: never;
1629
+ responses: {
1630
+ /** @description New code sent. */
1631
+ 200: {
1632
+ headers: {
1633
+ [name: string]: unknown;
1634
+ };
1635
+ content: {
1636
+ /**
1637
+ * @example {
1638
+ * "verificationId": "7d1e4b2a-3c5f-4e6a-8b9c-0d1e2f3a4b5c",
1639
+ * "channel": "sms",
1640
+ * "expiresAt": "2026-11-17T10:06:00Z"
1641
+ * }
1642
+ */
1643
+ "application/json": components["schemas"]["Verification"];
1644
+ };
1645
+ };
1646
+ 400: components["responses"]["BadRequest"];
1647
+ 401: components["responses"]["Unauthorized"];
1648
+ 402: components["responses"]["PaymentRequired"];
1649
+ 403: components["responses"]["Forbidden"];
1650
+ 404: components["responses"]["NotFound"];
1651
+ 409: components["responses"]["Conflict"];
1652
+ 429: components["responses"]["TooManyRequests"];
1653
+ 502: components["responses"]["BadGateway"];
1654
+ 503: components["responses"]["ServiceUnavailable"];
1655
+ };
1656
+ };
1657
+ inboundEmailWebhook: {
1658
+ parameters: {
1659
+ query?: never;
1660
+ header: {
1661
+ /** @description Event id, identical on every attempt: deduplicate on it. */
1662
+ "webhook-id": components["parameters"]["webhookId"];
1663
+ /** @description Unix time of this attempt, in seconds. */
1664
+ "webhook-timestamp": components["parameters"]["webhookTimestamp"];
1665
+ /**
1666
+ * @description Standard Webhooks signature: `v1,` followed by the base64 HMAC-SHA256 of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of the `whsec_` secret shown in the console. For 24 hours after a secret rotation, two space-separated signatures (new and old secret). Use a Standard Webhooks library, which accepts any matching signature and refuses timestamps more than 5 minutes away.
1667
+ * @example v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=
1668
+ */
1669
+ "webhook-signature": components["parameters"]["webhookSignature"];
1670
+ };
1671
+ path?: never;
1672
+ cookie?: never;
1673
+ };
1674
+ requestBody: {
1675
+ content: {
1676
+ /**
1677
+ * @example {
1678
+ * "id": "3e2d1c0b-9a8f-4e7d-8c6b-5a4f3e2d1c0b",
1679
+ * "messageId": "<CAF=abc123@mail.example.sn>",
1680
+ * "receivedAt": 1795428000000,
1681
+ * "from": {
1682
+ * "email": "awa@example.sn",
1683
+ * "name": "Awa"
1684
+ * },
1685
+ * "to": [
1686
+ * {
1687
+ * "email": "support@boutique.sn",
1688
+ * "name": ""
1689
+ * }
1690
+ * ],
1691
+ * "cc": [],
1692
+ * "subject": "Question sur ma commande",
1693
+ * "text": "Bonjour, ...",
1694
+ * "html": "",
1695
+ * "headers": {
1696
+ * "Subject": [
1697
+ * "Question sur ma commande"
1698
+ * ]
1699
+ * },
1700
+ * "attachments": [
1701
+ * {
1702
+ * "name": "photo.jpg",
1703
+ * "contentType": "image/jpeg",
1704
+ * "size": 48213,
1705
+ * "contentId": "",
1706
+ * "downloadUrl": "https://iris.orvlabs.com/v3/inbound/attachments/3e2d1c0b-9a8f-4e7d-8c6b-5a4f3e2d1c0b/0",
1707
+ * "infected": false
1708
+ * }
1709
+ * ]
1710
+ * }
1711
+ */
1712
+ "application/json": components["schemas"]["InboundEmail"];
1713
+ };
1714
+ };
1715
+ responses: {
1716
+ /** @description Any 2xx acknowledges the delivery. */
1717
+ 200: {
1718
+ headers: {
1719
+ [name: string]: unknown;
1720
+ };
1721
+ content?: never;
1722
+ };
1723
+ };
1724
+ };
1725
+ emailEventWebhook: {
1726
+ parameters: {
1727
+ query?: never;
1728
+ header: {
1729
+ /** @description Event id, identical on every attempt: deduplicate on it. */
1730
+ "webhook-id": components["parameters"]["webhookId"];
1731
+ /** @description Unix time of this attempt, in seconds. */
1732
+ "webhook-timestamp": components["parameters"]["webhookTimestamp"];
1733
+ /**
1734
+ * @description Standard Webhooks signature: `v1,` followed by the base64 HMAC-SHA256 of `<webhook-id>.<webhook-timestamp>.<raw body>`, keyed with the base64-decoded part of the `whsec_` secret shown in the console. For 24 hours after a secret rotation, two space-separated signatures (new and old secret). Use a Standard Webhooks library, which accepts any matching signature and refuses timestamps more than 5 minutes away.
1735
+ * @example v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=
1736
+ */
1737
+ "webhook-signature": components["parameters"]["webhookSignature"];
1738
+ };
1739
+ path?: never;
1740
+ cookie?: never;
1741
+ };
1742
+ requestBody: {
1743
+ content: {
1744
+ /**
1745
+ * @example {
1746
+ * "id": "evt_10428",
1747
+ * "type": "email.delivered",
1748
+ * "createdAt": "2026-11-17T10:00:03Z",
1749
+ * "data": {
1750
+ * "messageId": "<a1b2c3d4e5f6a1b2c3d4e5f6@boutique.sn>",
1751
+ * "email": "awa@example.sn"
1752
+ * }
1753
+ * }
1754
+ */
1755
+ "application/json": components["schemas"]["EmailEvent"];
1756
+ };
1757
+ };
1758
+ responses: {
1759
+ /** @description Any 2xx acknowledges the delivery. */
1760
+ 200: {
1761
+ headers: {
1762
+ [name: string]: unknown;
1763
+ };
1764
+ content?: never;
1765
+ };
1766
+ };
1767
+ };
1768
+ paymentEventWebhook: {
1769
+ parameters: {
1770
+ query?: never;
1771
+ header: {
1772
+ /**
1773
+ * @description Same value as `id`, identical on every attempt.
1774
+ * @example evt_0f9e8d7c-6b5a-4c3d-9e2f-1a0b9c8d7e6f
1775
+ */
1776
+ "X-Iris-Event-Id": string;
1777
+ /**
1778
+ * @description Unix time of this attempt, in seconds.
1779
+ * @example 1795428000
1780
+ */
1781
+ "X-Iris-Timestamp": string;
1782
+ /** @example v1=5d41402abc4b2a76b9719d911017c592ae5f1c2b3d4e5f6a7b8c9d0e1f2a3b4c */
1783
+ "X-Iris-Signature": string;
1784
+ };
1785
+ path?: never;
1786
+ cookie?: never;
1787
+ };
1788
+ requestBody: {
1789
+ content: {
1790
+ /**
1791
+ * @example {
1792
+ * "id": "evt_0f9e8d7c-6b5a-4c3d-9e2f-1a0b9c8d7e6f",
1793
+ * "type": "payment.succeeded",
1794
+ * "createdAt": "2026-11-17T11:42:10Z",
1795
+ * "data": {
1796
+ * "paymentId": "0f9e8d7c-6b5a-4c3d-9e2f-1a0b9c8d7e6f",
1797
+ * "reference": "FAC-2026-0042",
1798
+ * "description": "Facture de novembre",
1799
+ * "amountXof": 15000,
1800
+ * "currency": "XOF"
1801
+ * }
1802
+ * }
1803
+ */
1804
+ "application/json": components["schemas"]["PaymentEvent"];
1805
+ };
1806
+ };
1807
+ responses: {
1808
+ /** @description Any 2xx acknowledges the delivery. */
1809
+ 200: {
1810
+ headers: {
1811
+ [name: string]: unknown;
1812
+ };
1813
+ content?: never;
1814
+ };
1815
+ };
1816
+ };
1817
+ }