@orvlabs/iris 0.1.0 → 0.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -3,18 +3,22 @@
3
3
  * Do not make direct changes to the file.
4
4
  */
5
5
  export interface paths {
6
- "/v3/smtp/email": {
6
+ "/api/emails": {
7
7
  parameters: {
8
8
  query?: never;
9
9
  header?: never;
10
10
  path?: never;
11
11
  cookie?: never;
12
12
  };
13
- get?: never;
13
+ /**
14
+ * List emails
15
+ * @description Emails of the key's project, most recent first, cancelled emails left out.
16
+ */
17
+ get: operations["listEmails"];
14
18
  put?: never;
15
19
  /**
16
20
  * 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.
21
+ * @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 22 hours. With `message_versions`, 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
22
  *
19
23
  * 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
24
  */
@@ -25,38 +29,18 @@ export interface paths {
25
29
  patch?: never;
26
30
  trace?: never;
27
31
  };
28
- "/v3/smtp/email/{identifier}": {
32
+ "/api/emails/{id}": {
29
33
  parameters: {
30
34
  query?: never;
31
35
  header?: never;
32
36
  path?: never;
33
37
  cookie?: never;
34
38
  };
35
- get?: never;
36
- put?: never;
37
- post?: never;
38
39
  /**
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.
40
+ * Get an email
41
+ * @description One email of the key's project, with its status.
41
42
  */
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"];
43
+ get: operations["getEmail"];
60
44
  put?: never;
61
45
  post?: never;
62
46
  delete?: never;
@@ -65,7 +49,7 @@ export interface paths {
65
49
  patch?: never;
66
50
  trace?: never;
67
51
  };
68
- "/v3/iris/secrets/{messageId}/revoke": {
52
+ "/api/emails/{id}/cancel": {
69
53
  parameters: {
70
54
  query?: never;
71
55
  header?: never;
@@ -75,37 +59,37 @@ export interface paths {
75
59
  get?: never;
76
60
  put?: never;
77
61
  /**
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.
62
+ * Cancel a scheduled email
63
+ * @description Cancels a scheduled email, or every pending email of a scheduled batch (`batch_id`), that has not left yet. They become `cancelled` and their units are given back; they no longer appear in the reports. Only the emails of the key's project can be cancelled. Needs a `full` key.
80
64
  */
81
- post: operations["revokeSecret"];
65
+ post: operations["cancelEmail"];
82
66
  delete?: never;
83
67
  options?: never;
84
68
  head?: never;
85
69
  patch?: never;
86
70
  trace?: never;
87
71
  };
88
- "/v3/smtp/statistics/aggregatedReport": {
72
+ "/api/emails/check": {
89
73
  parameters: {
90
74
  query?: never;
91
75
  header?: never;
92
76
  path?: never;
93
77
  cookie?: never;
94
78
  };
79
+ get?: never;
80
+ put?: never;
95
81
  /**
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.
82
+ * Check addresses
83
+ * @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.
98
84
  */
99
- get: operations["getAggregatedReport"];
100
- put?: never;
101
- post?: never;
85
+ post: operations["checkEmailAddresses"];
102
86
  delete?: never;
103
87
  options?: never;
104
88
  head?: never;
105
89
  patch?: never;
106
90
  trace?: never;
107
91
  };
108
- "/v3/smtp/statistics/events": {
92
+ "/api/events": {
109
93
  parameters: {
110
94
  query?: never;
111
95
  header?: never;
@@ -114,9 +98,9 @@ export interface paths {
114
98
  };
115
99
  /**
116
100
  * 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`.
101
+ * @description One item per event of the key's project, most recent first; cancelled emails are left out.
118
102
  */
119
- get: operations["listEmailEvents"];
103
+ get: operations["listEvents"];
120
104
  put?: never;
121
105
  post?: never;
122
106
  delete?: never;
@@ -125,7 +109,7 @@ export interface paths {
125
109
  patch?: never;
126
110
  trace?: never;
127
111
  };
128
- "/v3/smtp/emails": {
112
+ "/api/stats": {
129
113
  parameters: {
130
114
  query?: never;
131
115
  header?: never;
@@ -133,10 +117,10 @@ export interface paths {
133
117
  cookie?: never;
134
118
  };
135
119
  /**
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.
120
+ * Statistics
121
+ * @description Totals over the key's project for the period, 90 days at most; the last 30 days by default.
138
122
  */
139
- get: operations["listTransactionalEmails"];
123
+ get: operations["getStats"];
140
124
  put?: never;
141
125
  post?: never;
142
126
  delete?: never;
@@ -145,7 +129,7 @@ export interface paths {
145
129
  patch?: never;
146
130
  trace?: never;
147
131
  };
148
- "/v3/smtp/blockedContacts": {
132
+ "/api/suppressions": {
149
133
  parameters: {
150
134
  query?: never;
151
135
  header?: never;
@@ -154,9 +138,9 @@ export interface paths {
154
138
  };
155
139
  /**
156
140
  * Suppression list
157
- * @description Addresses added after a hard bounce, a complaint or a one-click unsubscribe. The whole history by default.
141
+ * @description Addresses Iris no longer writes to, organisation-wide: after a hard bounce, a complaint or a one-click unsubscribe. Most recent first.
158
142
  */
159
- get: operations["listBlockedContacts"];
143
+ get: operations["listSuppressions"];
160
144
  put?: never;
161
145
  post?: never;
162
146
  delete?: never;
@@ -165,7 +149,7 @@ export interface paths {
165
149
  patch?: never;
166
150
  trace?: never;
167
151
  };
168
- "/v3/smtp/blockedContacts/{email}": {
152
+ "/api/suppressions/{email}": {
169
153
  parameters: {
170
154
  query?: never;
171
155
  header?: never;
@@ -175,47 +159,50 @@ export interface paths {
175
159
  get?: never;
176
160
  put?: never;
177
161
  post?: never;
178
- /** Remove an address from the suppression list */
179
- delete: operations["unblockContact"];
162
+ /**
163
+ * Remove an address from the suppression list
164
+ * @description Only when the person agrees to receive your email again. Needs a `full` key.
165
+ */
166
+ delete: operations["deleteSuppression"];
180
167
  options?: never;
181
168
  head?: never;
182
169
  patch?: never;
183
170
  trace?: never;
184
171
  };
185
- "/v3/inbound/attachments/{id}/{index}": {
172
+ "/api/secrets/{id}/revoke": {
186
173
  parameters: {
187
174
  query?: never;
188
175
  header?: never;
189
176
  path?: never;
190
177
  cookie?: never;
191
178
  };
179
+ get?: never;
180
+ put?: never;
192
181
  /**
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.
182
+ * Revoke a secret message
183
+ * @description Destroys the encrypted content of a message sent with `secret`; the link then shows that the content is gone. Revoking again answers 200. Needs a `full` key.
195
184
  */
196
- get: operations["getInboundAttachment"];
197
- put?: never;
198
- post?: never;
185
+ post: operations["revokeSecret"];
199
186
  delete?: never;
200
187
  options?: never;
201
188
  head?: never;
202
189
  patch?: never;
203
190
  trace?: never;
204
191
  };
205
- "/v1/emails/check": {
192
+ "/api/inbound/{delivery}/attachments/{index}": {
206
193
  parameters: {
207
194
  query?: never;
208
195
  header?: never;
209
196
  path?: never;
210
197
  cookie?: never;
211
198
  };
212
- get?: never;
213
- put?: never;
214
199
  /**
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.
200
+ * Download an attachment of a received email
201
+ * @description The `downloadUrl` of each attachment in the inbound email webhook. Received emails are kept 30 days.
217
202
  */
218
- post: operations["checkEmailAddresses"];
203
+ get: operations["getInboundAttachment"];
204
+ put?: never;
205
+ post?: never;
219
206
  delete?: never;
220
207
  options?: never;
221
208
  head?: never;
@@ -233,7 +220,7 @@ export interface paths {
233
220
  put?: never;
234
221
  /**
235
222
  * 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`.
223
+ * @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 (`unsubscribe`), 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
224
  */
238
225
  post: operations["unsubscribeOneClick"];
239
226
  delete?: never;
@@ -253,7 +240,9 @@ export interface paths {
253
240
  put?: never;
254
241
  /**
255
242
  * 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.
243
+ * @description SMS and WhatsApp: coming soon. Until they open, `auto` sends by email only and a request that needs SMS or WhatsApp alone answers `503 service_unavailable`.
244
+ *
245
+ * Sends a code on the first available channel. In `auto` mode (the default), Iris tries email, then SMS, then WhatsApp, and moves to the next channel after `fallbackAfter` seconds if the code is not approved. To choose the channels and their order, send `channels` (for example `["whatsapp"]` or `["whatsapp", "sms"]`): Iris only uses the channels you list, in that order. SMS and WhatsApp need a paid plan: a free plan, or a paid plan that has expired, gets `402 plan_required`. A code by email uses 1 unit of the monthly quota (then rollover, then credits). SMS and WhatsApp are paid from top-up credits only, never from the monthly quota: SMS 2 to 4 credits, WhatsApp 1 to 2 credits, depending on our costs at the time; the current value is in `units` of the answer and in the console. 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
246
  */
258
247
  post: operations["createVerification"];
259
248
  delete?: never;
@@ -388,69 +377,66 @@ export interface webhooks {
388
377
  export interface components {
389
378
  schemas: {
390
379
  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;
380
+ error: {
381
+ /** @description Stable machine-readable code, listed in the introduction. */
382
+ code: string;
383
+ /** @description What is wrong, in readable French; may change. */
384
+ message: string;
385
+ /** @description What to change so the request succeeds, in readable French; may change. */
386
+ fix: string;
387
+ /**
388
+ * Format: uri
389
+ * @description Errors section of the API reference.
390
+ */
391
+ docs: string;
392
+ };
404
393
  };
405
394
  Attachment: {
406
395
  /** @description File name, without `/`, `\` or line breaks. */
407
- name: string;
396
+ filename: string;
408
397
  /** @description File in standard base64. */
409
398
  content: string;
410
- /** @description Not supported: a request with `url` is refused (400). */
411
- url?: string;
412
399
  };
413
400
  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. */
401
+ /** @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 `reply_to` unless you give one, and at most 50 recipients a day (200 on a paid plan). */
402
+ from: components["schemas"]["Mailbox"];
403
+ /** @description Required, unless `message_versions` is used (then ignored). */
404
+ to?: components["schemas"]["Mailboxes"];
405
+ cc?: components["schemas"]["Mailboxes"];
406
+ bcc?: components["schemas"]["Mailboxes"];
407
+ reply_to?: components["schemas"]["Mailbox"];
408
+ /** @description Required without `template`. `{{params.x}}` is replaced with `data.x`. */
423
409
  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;
410
+ /** @description `html` or `text` is required without `template`. 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. */
411
+ html?: string;
412
+ text?: string;
427
413
  /** @description Extra headers. Silently dropped: invalid names, addressing headers (From, To, Subject, Message-ID...), `Content-*`, values over 998 characters or with line breaks. */
428
414
  headers?: {
429
415
  [key: string]: string;
430
416
  };
431
417
  /** @description Values for `{{params.x}}` and `{{ params.x.y }}` in the subject and contents, or for the template. */
432
- params?: Record<string, never>;
418
+ data?: Record<string, unknown>;
433
419
  /** @description Accepted and not stored. */
434
420
  tags?: string[];
435
421
  /** @description 10 MB decoded at most in total. */
436
- attachment?: components["schemas"]["Attachment"][];
422
+ attachments?: components["schemas"]["Attachment"][];
437
423
  /**
438
424
  * 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`.
425
+ * @description A template of your organisation, rendered with `data`. Its subject and contents replace `subject`, `html` and `text`. 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 `data`.
440
426
  */
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";
427
+ template?: number;
428
+ /** @description RFC 3339 with a time zone, 72 hours ahead at most. 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. */
429
+ send_at?: string | "auto";
444
430
  /**
445
431
  * 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`.
432
+ * @description Lowercase UUID v4 naming the scheduled batch; generated when absent. Checked even without `send_at` (anything else answers 400), but only names a batch with `send_at`.
447
433
  */
448
- batchId?: string;
434
+ batch_id?: string;
449
435
  /** @description One message per version. Not combined with `payment` or `secret`. */
450
- messageVersions?: components["schemas"]["MessageVersion"][];
436
+ message_versions?: components["schemas"]["MessageVersion"][];
451
437
  payment?: components["schemas"]["Payment"];
452
438
  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. */
439
+ /** @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 of the monthly quota (then rollover, then credits), only once the WhatsApp message has left. Needs exactly one recipient and no `message_versions` (400); 503 when WhatsApp is not available. */
454
440
  fallback?: {
455
441
  /**
456
442
  * @description Mobile number, E.164 or Senegalese.
@@ -459,25 +445,25 @@ export interface components {
459
445
  whatsapp: string;
460
446
  };
461
447
  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. */
448
+ /** @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 `message_versions`) 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
449
  unsubscribe?: boolean;
464
450
  };
465
- /** @description Each field given replaces the one of the request for this version; the rest is inherited, `templateId` included. */
451
+ /** @description Each field given replaces the one of the request for this version; the rest is inherited, `template` included. */
466
452
  MessageVersion: {
467
- to: components["schemas"]["Address"][];
468
- cc?: components["schemas"]["Address"][];
469
- bcc?: components["schemas"]["Address"][];
470
- replyTo?: components["schemas"]["Address"];
453
+ to: components["schemas"]["Mailboxes"];
454
+ cc?: components["schemas"]["Mailboxes"];
455
+ bcc?: components["schemas"]["Mailboxes"];
456
+ reply_to?: components["schemas"]["Mailbox"];
471
457
  subject?: string;
472
- /** @description Given with or without `textContent`, replaces both contents. */
473
- htmlContent?: string;
474
- textContent?: string;
475
- params?: Record<string, never>;
458
+ /** @description Given with or without `text`, replaces both contents. */
459
+ html?: string;
460
+ text?: string;
461
+ data?: Record<string, unknown>;
476
462
  };
477
463
  /** @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
464
  Payment: {
479
465
  /** @description Whole CFA francs. */
480
- amountXof: number;
466
+ amount_xof: number;
481
467
  /** @description Your reference, unique per payment. */
482
468
  reference: string;
483
469
  description: string;
@@ -485,7 +471,7 @@ export interface components {
485
471
  * @description Link lifetime in seconds.
486
472
  * @default 604800
487
473
  */
488
- expiresIn: number;
474
+ expires_in?: number;
489
475
  /** @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
476
  methods?: ("wave" | "orange_money")[];
491
477
  };
@@ -513,7 +499,7 @@ export interface components {
513
499
  location?: string;
514
500
  description?: string;
515
501
  /** @description The sender when absent. */
516
- organizer?: components["schemas"]["Address"];
502
+ organizer?: components["schemas"]["Mailbox"];
517
503
  };
518
504
  /** @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
505
  Secret: {
@@ -521,120 +507,41 @@ export interface components {
521
507
  * @description Seconds before the content is destroyed.
522
508
  * @default 604800
523
509
  */
524
- expiresIn: number;
510
+ expires_in?: number;
525
511
  /**
526
512
  * @description Destroy the content after the first reading.
527
513
  * @default false
528
514
  */
529
- viewOnce: boolean;
515
+ view_once?: boolean;
530
516
  /**
531
517
  * @description `email`: the reader asks for a code sent to the recipient before reading.
532
518
  * @default none
533
519
  * @enum {string}
534
520
  */
535
- code: "none" | "email";
521
+ code?: "none" | "email";
536
522
  };
523
+ /** @description `id` for one email, `ids` (one per version, in order) with `message_versions`. `batch_id` names a scheduled send: `POST /api/emails/{batch_id}/cancel` cancels all its emails. */
537
524
  SendEmailResponse: {
538
- /** @description Without `messageVersions`. */
539
- messageId?: string;
540
- /** @description With `messageVersions`, in version order. */
541
- messageIds?: string[];
525
+ /** @description Use it with `GET /api/emails/{id}` and `POST /api/emails/{id}/cancel`. */
526
+ id?: string;
527
+ /** @description With `message_versions`: one `id` per version, in order. */
528
+ ids?: string[];
529
+ /**
530
+ * @description `scheduled` with `send_at`.
531
+ * @enum {string}
532
+ */
533
+ status: "queued" | "scheduled";
542
534
  /**
543
535
  * Format: uuid
544
- * @description With `scheduledAt`.
536
+ * @description With `send_at`: the batch of this request (yours if you sent `batch_id`).
545
537
  */
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"][];
538
+ batch_id?: string;
561
539
  };
562
540
  SecretRevoked: {
563
- messageId: string;
541
+ id: string;
564
542
  /** @constant */
565
543
  revoked: true;
566
544
  };
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
545
  /** @description `email` or `emails`, not both. */
639
546
  AddressCheckRequest: {
640
547
  email: string;
@@ -645,14 +552,14 @@ export interface components {
645
552
  /** @description As submitted. */
646
553
  email: string;
647
554
  /** @description A bare ASCII address that Iris would send to. */
648
- validSyntax: boolean;
555
+ valid_syntax: boolean;
649
556
  /** @description Bare address, domain in lowercase; null when the syntax is invalid. */
650
557
  normalized: string | null;
651
558
  /**
652
559
  * @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
560
  * @enum {string|null}
654
561
  */
655
- mailServer: "mx" | "a" | null | "none" | "unknown";
562
+ mail_server: "mx" | "a" | null | "none" | "unknown";
656
563
  /** @description Disposable address domain. */
657
564
  disposable: boolean;
658
565
  /** @description Role address such as `contact@` or `info@`. */
@@ -662,7 +569,7 @@ export interface components {
662
569
  /** @description On your suppression list. */
663
570
  suppressed: boolean;
664
571
  /**
665
- * @description `undeliverable`: invalid syntax, `mailServer` `none` or suppressed address. `risky`: disposable, role, likely typo or `mailServer` `unknown`. Otherwise `deliverable`.
572
+ * @description `undeliverable`: invalid syntax, `mail_server` `none` or suppressed address. `risky`: disposable, role, likely typo or `mail_server` `unknown`. Otherwise `deliverable`.
666
573
  * @enum {string}
667
574
  */
668
575
  verdict: "deliverable" | "risky" | "undeliverable";
@@ -680,32 +587,41 @@ export interface components {
680
587
  phone?: string;
681
588
  };
682
589
  /**
590
+ * @description One channel, or `auto` for email, then SMS, then WhatsApp. Cannot be combined with `channels`.
683
591
  * @default auto
684
592
  * @enum {string}
685
593
  */
686
- channel: "auto" | "email" | "sms" | "whatsapp";
594
+ channel?: "auto" | "email" | "sms" | "whatsapp";
595
+ /**
596
+ * @description Channels to use, in order. The first one sends the code; the next ones only take over after `fallbackAfter` seconds, or at once if a send fails. No other channel is used. Each listed channel needs its `to` field (`to.email` for email, `to.phone` otherwise). SMS and WhatsApp need a paid plan (`402 plan_required`, checked when the verification is created). Cannot be combined with `channel`.
597
+ * @example [
598
+ * "whatsapp",
599
+ * "sms"
600
+ * ]
601
+ */
602
+ channels?: ("email" | "sms" | "whatsapp")[];
687
603
  /**
688
604
  * @default fr
689
605
  * @enum {string}
690
606
  */
691
- locale: "fr" | "en";
607
+ locale?: "fr" | "en";
692
608
  /** @description Name shown in the message; your organisation name by default. */
693
609
  brand?: string;
694
610
  /**
695
611
  * @description Digits in the code.
696
612
  * @default 6
697
613
  */
698
- length: number;
614
+ length?: number;
699
615
  /**
700
616
  * @description Code lifetime in seconds.
701
617
  * @default 300
702
618
  */
703
- ttl: number;
619
+ ttl?: number;
704
620
  /**
705
- * @description Seconds before the next channel in `auto` mode.
621
+ * @description Seconds before the next channel in `auto` mode or the next one in `channels`.
706
622
  * @default 60
707
623
  */
708
- fallbackAfter: number;
624
+ fallbackAfter?: number;
709
625
  };
710
626
  Verification: {
711
627
  /** Format: uuid */
@@ -715,6 +631,8 @@ export interface components {
715
631
  * @enum {string}
716
632
  */
717
633
  channel: "email" | "sms" | "whatsapp";
634
+ /** @description Units (email) or top-up credits (SMS, WhatsApp) taken by this send; 0 with a test key. */
635
+ units?: number;
718
636
  /** Format: date-time */
719
637
  expiresAt: string;
720
638
  };
@@ -736,9 +654,9 @@ export interface components {
736
654
  * @description Unix time in milliseconds.
737
655
  */
738
656
  receivedAt: number;
739
- from: components["schemas"]["Address"];
740
- to: components["schemas"]["Address"][];
741
- cc: components["schemas"]["Address"][];
657
+ from: components["schemas"]["InboundAddress"];
658
+ to: components["schemas"]["InboundAddress"][];
659
+ cc: components["schemas"]["InboundAddress"][];
742
660
  subject: string;
743
661
  text: string;
744
662
  html: string;
@@ -754,7 +672,7 @@ export interface components {
754
672
  contentId: string;
755
673
  /**
756
674
  * Format: uri
757
- * @description `GET /v3/inbound/attachments/{id}/{index}`, with your `api-key`.
675
+ * @description `GET /api/inbound/{delivery}/attachments/{index}`, with your key as a Bearer token.
758
676
  */
759
677
  downloadUrl: string;
760
678
  /** @description The antivirus found malware: the download answers `403 attachment_infected`. */
@@ -798,6 +716,110 @@ export interface components {
798
716
  currency: "XOF";
799
717
  };
800
718
  };
719
+ InboundAddress: {
720
+ /**
721
+ * Format: email
722
+ * @description Bare ASCII address, without display name; the domain needs a dot.
723
+ */
724
+ email: string;
725
+ /** @description Display name. Line breaks become spaces. */
726
+ name?: string;
727
+ };
728
+ /**
729
+ * @description `email@domain` or `Name <email@domain>`. ASCII address; the domain needs a dot.
730
+ * @example Boutique Ndiaye <commandes@boutique.sn>
731
+ */
732
+ Mailbox: string;
733
+ /** @description One address or a list. */
734
+ Mailboxes: components["schemas"]["Mailbox"] | components["schemas"]["Mailbox"][];
735
+ Email: {
736
+ /** @description `Message-ID` of the email without angle brackets. */
737
+ id: string;
738
+ /**
739
+ * @description `queued` until it leaves, `scheduled` until `send_at`, `sent` handed to the relay, `delivered` at least one recipient accepted it, `bounced` every recipient refused it, `failed` final failure, `cancelled` scheduled email cancelled.
740
+ * @enum {string}
741
+ */
742
+ status: "queued" | "scheduled" | "sent" | "delivered" | "bounced" | "failed" | "cancelled";
743
+ /** @description `Message-ID` header of the email. */
744
+ message_id?: string;
745
+ from: components["schemas"]["Mailbox"];
746
+ to: components["schemas"]["Mailbox"][];
747
+ subject: string;
748
+ /** Format: date-time */
749
+ created_at: string;
750
+ /**
751
+ * Format: date-time
752
+ * @description Scheduled time, null when sent right away.
753
+ */
754
+ send_at?: string | null;
755
+ /** @description Readable reason of a failure. */
756
+ error?: string | null;
757
+ };
758
+ EmailList: {
759
+ data: components["schemas"]["Email"][];
760
+ /** @description Pass it as `cursor` for the next page; null on the last one. */
761
+ next_cursor: string | null;
762
+ };
763
+ Event: {
764
+ /** @description `evt_…`, the same id as the email event webhook delivery. */
765
+ id: string;
766
+ /** @enum {string} */
767
+ type: "email.delivered" | "email.bounced" | "email.soft_bounced" | "email.complained" | "email.opened" | "email.clicked" | "email.unsubscribed";
768
+ /** @description `id` of the email. */
769
+ email_id: string;
770
+ /** @description Null for an open or click of an email with several recipients: the pixel cannot tell them apart. */
771
+ recipient?: string | null;
772
+ /** Format: date-time */
773
+ created_at: string;
774
+ /**
775
+ * Format: uri
776
+ * @description Clicked link.
777
+ */
778
+ link?: string;
779
+ };
780
+ EventList: {
781
+ data: components["schemas"]["Event"][];
782
+ /** @description Pass it as `cursor` for the next page; null on the last one. */
783
+ next_cursor: string | null;
784
+ };
785
+ /** @description Totals over the emails accepted in the period, cancelled emails left out. Opens and clicks are only known on domains with tracking on; unique counts count emails. */
786
+ Stats: {
787
+ /** Format: date */
788
+ from?: string;
789
+ /** Format: date */
790
+ to?: string;
791
+ requests?: number;
792
+ delivered?: number;
793
+ hard_bounces?: number;
794
+ soft_bounces?: number;
795
+ complaints?: number;
796
+ unsubscribed?: number;
797
+ opens?: number;
798
+ unique_opens?: number;
799
+ clicks?: number;
800
+ unique_clicks?: number;
801
+ };
802
+ Suppression: {
803
+ /** Format: email */
804
+ email: string;
805
+ /** @enum {string} */
806
+ reason: "hard_bounce" | "complaint" | "unsubscribe";
807
+ /** Format: date-time */
808
+ created_at: string;
809
+ };
810
+ SuppressionList: {
811
+ data: components["schemas"]["Suppression"][];
812
+ /** @description Pass it as `cursor` for the next page; null on the last one. */
813
+ next_cursor: string | null;
814
+ };
815
+ CancelResult: {
816
+ /** @description The `id` or `batch_id` given in the path. */
817
+ id: string;
818
+ /** @constant */
819
+ status: "cancelled";
820
+ /** @description Emails cancelled: 1 for an email, all the pending emails of a batch. */
821
+ cancelled: number;
822
+ };
801
823
  };
802
824
  responses: {
803
825
  /** @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. */
@@ -817,14 +839,18 @@ export interface components {
817
839
  content: {
818
840
  /**
819
841
  * @example {
820
- * "code": "unauthorized",
821
- * "message": "Key not found"
842
+ * "error": {
843
+ * "code": "unauthorized",
844
+ * "message": "Clé absente, inconnue ou révoquée",
845
+ * "fix": "Envoyez l'en-tête Authorization: Bearer avec une clé active, créée dans la console (Clés API).",
846
+ * "docs": "https://iris.orvlabs.com/docs#description/errors"
847
+ * }
822
848
  * }
823
849
  */
824
850
  "application/json": components["schemas"]["Error"];
825
851
  };
826
852
  };
827
- /** @description `not_enough_credits`: monthly quota, rollover and credits are used up. */
853
+ /** @description `not_enough_credits`: monthly quota, rollover and credits are used up. On `POST /v1/verify`, `plan_required` means SMS and WhatsApp need a paid plan. */
828
854
  PaymentRequired: {
829
855
  headers: {
830
856
  [name: string]: unknown;
@@ -832,14 +858,18 @@ export interface components {
832
858
  content: {
833
859
  /**
834
860
  * @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"
861
+ * "error": {
862
+ * "code": "not_enough_credits",
863
+ * "message": "Le quota mensuel de votre offre est atteint et vos crédits sont insuffisants",
864
+ * "fix": "Rechargez vos crédits par Wave ou Orange Money, ou changez d'offre dans la console.",
865
+ * "docs": "https://iris.orvlabs.com/docs#description/errors"
866
+ * }
837
867
  * }
838
868
  */
839
869
  "application/json": components["schemas"]["Error"];
840
870
  };
841
871
  };
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`. */
872
+ /** @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 /api/emails`: `unauthorized` (sender domain not verified) and `plan_required` (`secret`). Inbound attachment: `attachment_infected`. */
843
873
  Forbidden: {
844
874
  headers: {
845
875
  [name: string]: unknown;
@@ -848,7 +878,7 @@ export interface components {
848
878
  "application/json": components["schemas"]["Error"];
849
879
  };
850
880
  };
851
- /** @description `document_not_found` on `/v3/smtp` routes, `not_found` elsewhere. */
881
+ /** @description `not_found`: the email, scheduled email, suppressed address, secret, attachment or verification does not exist for your organisation. */
852
882
  NotFound: {
853
883
  headers: {
854
884
  [name: string]: unknown;
@@ -856,14 +886,18 @@ export interface components {
856
886
  content: {
857
887
  /**
858
888
  * @example {
859
- * "code": "document_not_found",
860
- * "message": "Aucun envoi programmé pour cet identifiant"
889
+ * "error": {
890
+ * "code": "not_found",
891
+ * "message": "Aucun email avec cet identifiant",
892
+ * "fix": "Vérifiez l'id renvoyé par POST /api/emails.",
893
+ * "docs": "https://iris.orvlabs.com/docs#description/errors"
894
+ * }
861
895
  * }
862
896
  */
863
897
  "application/json": components["schemas"]["Error"];
864
898
  };
865
899
  };
866
- /** @description `payment`: `merchant_not_linked`, `merchant_key_invalid`, `payment_reference_used`, `payment_already_paid`. Verify: `not_pending`. */
900
+ /** @description `payment`: `merchant_not_linked`, `merchant_key_invalid`, `payment_reference_used`, `payment_already_paid`. `Idempotency-Key`: `idempotency_in_progress`. Verify: `not_pending`. */
867
901
  Conflict: {
868
902
  headers: {
869
903
  [name: string]: unknown;
@@ -871,8 +905,12 @@ export interface components {
871
905
  content: {
872
906
  /**
873
907
  * @example {
874
- * "code": "payment_already_paid",
875
- * "message": "Cette référence de paiement est déjà payée"
908
+ * "error": {
909
+ * "code": "payment_already_paid",
910
+ * "message": "Cette référence de paiement est déjà payée",
911
+ * "fix": "Ne redemandez pas le paiement : marquez la commande comme payée chez vous.",
912
+ * "docs": "https://iris.orvlabs.com/docs#description/errors"
913
+ * }
876
914
  * }
877
915
  */
878
916
  "application/json": components["schemas"]["Error"];
@@ -895,8 +933,12 @@ export interface components {
895
933
  content: {
896
934
  /**
897
935
  * @example {
898
- * "code": "payment_link_failed",
899
- * "message": "221 Pay n'a pas répondu, réessayez dans un instant"
936
+ * "error": {
937
+ * "code": "payment_link_failed",
938
+ * "message": "221 Pay n'a pas répondu",
939
+ * "fix": "Réessayez dans un instant avec la même reference.",
940
+ * "docs": "https://iris.orvlabs.com/docs#description/errors"
941
+ * }
900
942
  * }
901
943
  */
902
944
  "application/json": components["schemas"]["Error"];
@@ -910,8 +952,31 @@ export interface components {
910
952
  content: {
911
953
  /**
912
954
  * @example {
913
- * "code": "service_unavailable",
914
- * "message": "Service momentanément indisponible, réessayez plus tard"
955
+ * "error": {
956
+ * "code": "service_unavailable",
957
+ * "message": "Service momentanément indisponible",
958
+ * "fix": "Réessayez plus tard avec un délai croissant.",
959
+ * "docs": "https://iris.orvlabs.com/docs#description/errors"
960
+ * }
961
+ * }
962
+ */
963
+ "application/json": components["schemas"]["Error"];
964
+ };
965
+ };
966
+ /** @description `idempotency_key_reused`: the `Idempotency-Key` was used with another body in the last 24 hours. */
967
+ UnprocessableEntity: {
968
+ headers: {
969
+ [name: string]: unknown;
970
+ };
971
+ content: {
972
+ /**
973
+ * @example {
974
+ * "error": {
975
+ * "code": "idempotency_key_reused",
976
+ * "message": "Cette Idempotency-Key a déjà servi pour un autre corps de requête",
977
+ * "fix": "Donnez une nouvelle Idempotency-Key à chaque envoi différent ; gardez la même seulement pour renvoyer le même corps.",
978
+ * "docs": "https://iris.orvlabs.com/docs#description/errors"
979
+ * }
915
980
  * }
916
981
  */
917
982
  "application/json": components["schemas"]["Error"];
@@ -919,29 +984,6 @@ export interface components {
919
984
  };
920
985
  };
921
986
  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
987
  /** @description `verificationId` returned by `POST /v1/verify`. */
946
988
  verificationId: string;
947
989
  /** @description Event id, identical on every attempt: deduplicate on it. */
@@ -953,6 +995,14 @@ export interface components {
953
995
  * @example v1,K5oZfzN95Z9UVu1EsfQmfVNQhnkZ2pj9o9NDN/H/pI4=
954
996
  */
955
997
  webhookSignature: string;
998
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
999
+ irisVersion: string;
1000
+ /** @description Your own key for this send (an order number, for example), unique in your organisation for 24 hours. A retry with the same key and body replays the first `202` answer with `Idempotent-Replayed: true` and sends nothing; another body answers `422 idempotency_key_reused`, a request still running `409 idempotency_in_progress`. A refused request frees the key. */
1001
+ idempotencyKey: string;
1002
+ /** @description `next_cursor` of the previous page. */
1003
+ cursor: string;
1004
+ /** @description `id` returned by `POST /api/emails`. */
1005
+ emailId: string;
956
1006
  };
957
1007
  requestBodies: never;
958
1008
  headers: never;
@@ -960,106 +1010,143 @@ export interface components {
960
1010
  }
961
1011
  export type $defs = Record<string, never>;
962
1012
  export interface operations {
963
- sendEmail: {
1013
+ listEmails: {
964
1014
  parameters: {
965
- query?: never;
966
- header?: never;
1015
+ query?: {
1016
+ /** @description Only emails to this address. */
1017
+ to?: string;
1018
+ /** @description Only the email with this `Message-ID` header. */
1019
+ message_id?: string;
1020
+ /** @description `next_cursor` of the previous page. */
1021
+ cursor?: components["parameters"]["cursor"];
1022
+ };
1023
+ header?: {
1024
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1025
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1026
+ };
967
1027
  path?: never;
968
1028
  cookie?: never;
969
1029
  };
970
- requestBody: {
971
- content: {
972
- "application/json": components["schemas"]["SendEmailRequest"];
973
- };
974
- };
1030
+ requestBody?: never;
975
1031
  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: {
1032
+ /** @description A page of emails. */
1033
+ 200: {
987
1034
  headers: {
988
1035
  [name: string]: unknown;
989
1036
  };
990
1037
  content: {
991
1038
  /**
992
1039
  * @example {
993
- * "messageIds": [
994
- * "<a1b2c3d4e5f6a1b2c3d4e5f6@boutique.sn>",
995
- * "<b2c3d4e5f6a1b2c3d4e5f6a1@boutique.sn>"
1040
+ * "data": [
1041
+ * {
1042
+ * "id": "a1b2c3d4e5f6@boutique.sn",
1043
+ * "status": "delivered",
1044
+ * "message_id": "<a1b2c3d4e5f6@boutique.sn>",
1045
+ * "from": "commandes@boutique.sn",
1046
+ * "to": [
1047
+ * "awa@example.sn"
1048
+ * ],
1049
+ * "subject": "Votre commande",
1050
+ * "created_at": "2026-11-17T10:00:00Z",
1051
+ * "send_at": null,
1052
+ * "error": null
1053
+ * }
996
1054
  * ],
997
- * "batchId": "5b0f8e3c-6f0a-4d39-9d43-2a7c1f0e9b21"
1055
+ * "next_cursor": null
998
1056
  * }
999
1057
  */
1000
- "application/json": components["schemas"]["SendEmailResponse"];
1058
+ "application/json": components["schemas"]["EmailList"];
1001
1059
  };
1002
1060
  };
1003
1061
  400: components["responses"]["BadRequest"];
1004
1062
  401: components["responses"]["Unauthorized"];
1005
- 402: components["responses"]["PaymentRequired"];
1006
1063
  403: components["responses"]["Forbidden"];
1007
- 409: components["responses"]["Conflict"];
1008
- 429: components["responses"]["TooManyRequests"];
1009
- 502: components["responses"]["BadGateway"];
1010
1064
  503: components["responses"]["ServiceUnavailable"];
1011
1065
  };
1012
1066
  };
1013
- cancelScheduledEmail: {
1067
+ sendEmail: {
1014
1068
  parameters: {
1015
1069
  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;
1070
+ header?: {
1071
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1072
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1073
+ /** @description Your own key for this send (an order number, for example), unique in your organisation for 24 hours. A retry with the same key and body replays the first `202` answer with `Idempotent-Replayed: true` and sends nothing; another body answers `422 idempotency_key_reused`, a request still running `409 idempotency_in_progress`. A refused request frees the key. */
1074
+ "Idempotency-Key"?: components["parameters"]["idempotencyKey"];
1023
1075
  };
1076
+ path?: never;
1024
1077
  cookie?: never;
1025
1078
  };
1026
- requestBody?: never;
1079
+ requestBody: {
1080
+ content: {
1081
+ "application/json": components["schemas"]["SendEmailRequest"];
1082
+ };
1083
+ };
1027
1084
  responses: {
1028
- /** @description Cancelled. */
1029
- 204: {
1085
+ /** @description Queued, scheduled emails included. */
1086
+ 202: {
1030
1087
  headers: {
1088
+ /** @description `true` when the answer replays the first request with the same `Idempotency-Key`. */
1089
+ "Idempotent-Replayed"?: "true";
1031
1090
  [name: string]: unknown;
1032
1091
  };
1033
- content?: never;
1092
+ content: {
1093
+ /**
1094
+ * @example {
1095
+ * "id": "a1b2c3d4e5f6@boutique.sn",
1096
+ * "status": "queued"
1097
+ * }
1098
+ */
1099
+ "application/json": components["schemas"]["SendEmailResponse"];
1100
+ };
1034
1101
  };
1102
+ 400: components["responses"]["BadRequest"];
1035
1103
  401: components["responses"]["Unauthorized"];
1104
+ 402: components["responses"]["PaymentRequired"];
1036
1105
  403: components["responses"]["Forbidden"];
1037
- 404: components["responses"]["NotFound"];
1106
+ 409: components["responses"]["Conflict"];
1107
+ 422: components["responses"]["UnprocessableEntity"];
1108
+ 429: components["responses"]["TooManyRequests"];
1109
+ 502: components["responses"]["BadGateway"];
1038
1110
  503: components["responses"]["ServiceUnavailable"];
1039
1111
  };
1040
1112
  };
1041
- getScheduledEmailStatus: {
1113
+ getEmail: {
1042
1114
  parameters: {
1043
1115
  query?: never;
1044
- header?: never;
1116
+ header?: {
1117
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1118
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1119
+ };
1045
1120
  path: {
1046
- /**
1047
- * @description A `messageId` with its angle brackets (URL-encoded), or a `batchId`.
1048
- * @example <a1b2c3d4e5f6a1b2c3d4e5f6@boutique.sn>
1049
- */
1050
- identifier: string;
1121
+ /** @description `id` returned by `POST /api/emails`. */
1122
+ id: components["parameters"]["emailId"];
1051
1123
  };
1052
1124
  cookie?: never;
1053
1125
  };
1054
1126
  requestBody?: never;
1055
1127
  responses: {
1056
- /** @description Status of the message, or of the batch. */
1128
+ /** @description The email. */
1057
1129
  200: {
1058
1130
  headers: {
1059
1131
  [name: string]: unknown;
1060
1132
  };
1061
1133
  content: {
1062
- "application/json": components["schemas"]["ScheduledStatus"] | components["schemas"]["BatchStatus"];
1134
+ /**
1135
+ * @example {
1136
+ * "id": "a1b2c3d4e5f6@boutique.sn",
1137
+ * "status": "queued",
1138
+ * "message_id": "<a1b2c3d4e5f6@boutique.sn>",
1139
+ * "from": "rappels@boutique.sn",
1140
+ * "to": [
1141
+ * "awa@example.sn"
1142
+ * ],
1143
+ * "subject": "Rappel de rendez-vous",
1144
+ * "created_at": "2026-11-17T10:00:00Z",
1145
+ * "send_at": "2026-11-18T09:00:00Z",
1146
+ * "error": null
1147
+ * }
1148
+ */
1149
+ "application/json": components["schemas"]["Email"];
1063
1150
  };
1064
1151
  };
1065
1152
  401: components["responses"]["Unauthorized"];
@@ -1068,22 +1155,22 @@ export interface operations {
1068
1155
  503: components["responses"]["ServiceUnavailable"];
1069
1156
  };
1070
1157
  };
1071
- revokeSecret: {
1158
+ cancelEmail: {
1072
1159
  parameters: {
1073
1160
  query?: never;
1074
- header?: never;
1161
+ header?: {
1162
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1163
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1164
+ };
1075
1165
  path: {
1076
- /**
1077
- * @description The `messageId`, with or without its angle brackets, URL-encoded.
1078
- * @example a1b2c3d4e5f6a1b2c3d4e5f6@boutique.sn
1079
- */
1080
- messageId: string;
1166
+ /** @description `id` returned by `POST /api/emails`. */
1167
+ id: components["parameters"]["emailId"];
1081
1168
  };
1082
1169
  cookie?: never;
1083
1170
  };
1084
1171
  requestBody?: never;
1085
1172
  responses: {
1086
- /** @description Content destroyed. */
1173
+ /** @description Cancelled. */
1087
1174
  200: {
1088
1175
  headers: {
1089
1176
  [name: string]: unknown;
@@ -1091,11 +1178,12 @@ export interface operations {
1091
1178
  content: {
1092
1179
  /**
1093
1180
  * @example {
1094
- * "messageId": "<a1b2c3d4e5f6a1b2c3d4e5f6@boutique.sn>",
1095
- * "revoked": true
1181
+ * "id": "a1b2c3d4e5f6@boutique.sn",
1182
+ * "status": "cancelled",
1183
+ * "cancelled": 1
1096
1184
  * }
1097
1185
  */
1098
- "application/json": components["schemas"]["SecretRevoked"];
1186
+ "application/json": components["schemas"]["CancelResult"];
1099
1187
  };
1100
1188
  };
1101
1189
  401: components["responses"]["Unauthorized"];
@@ -1104,108 +1192,56 @@ export interface operations {
1104
1192
  503: components["responses"]["ServiceUnavailable"];
1105
1193
  };
1106
1194
  };
1107
- getAggregatedReport: {
1195
+ checkEmailAddresses: {
1108
1196
  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"];
1197
+ query?: never;
1198
+ header?: {
1199
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1200
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1125
1201
  };
1126
- header?: never;
1127
1202
  path?: never;
1128
1203
  cookie?: never;
1129
1204
  };
1130
- requestBody?: never;
1205
+ requestBody: {
1206
+ content: {
1207
+ "application/json": components["schemas"]["AddressCheckRequest"];
1208
+ };
1209
+ };
1131
1210
  responses: {
1132
- /** @description Statistics. */
1211
+ /** @description One result for `email`, `results` for `emails`. */
1133
1212
  200: {
1134
1213
  headers: {
1135
1214
  [name: string]: unknown;
1136
1215
  };
1137
1216
  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"];
1217
+ "application/json": components["schemas"]["AddressCheck"] | components["schemas"]["AddressCheckResults"];
1156
1218
  };
1157
1219
  };
1158
1220
  400: components["responses"]["BadRequest"];
1159
1221
  401: components["responses"]["Unauthorized"];
1222
+ 402: components["responses"]["PaymentRequired"];
1160
1223
  403: components["responses"]["Forbidden"];
1161
1224
  503: components["responses"]["ServiceUnavailable"];
1162
1225
  };
1163
1226
  };
1164
- listEmailEvents: {
1227
+ listEvents: {
1165
1228
  parameters: {
1166
1229
  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"];
1230
+ /** @description Only events of this type. */
1231
+ type?: "email.delivered" | "email.bounced" | "email.soft_bounced" | "email.complained" | "email.opened" | "email.clicked" | "email.unsubscribed";
1232
+ /** @description `next_cursor` of the previous page. */
1233
+ cursor?: components["parameters"]["cursor"];
1234
+ };
1235
+ header?: {
1236
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1237
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1201
1238
  };
1202
- header?: never;
1203
1239
  path?: never;
1204
1240
  cookie?: never;
1205
1241
  };
1206
1242
  requestBody?: never;
1207
1243
  responses: {
1208
- /** @description Events, ordered by date then messageId and email. */
1244
+ /** @description A page of events. */
1209
1245
  200: {
1210
1246
  headers: {
1211
1247
  [name: string]: unknown;
@@ -1213,19 +1249,19 @@ export interface operations {
1213
1249
  content: {
1214
1250
  /**
1215
1251
  * @example {
1216
- * "events": [
1252
+ * "data": [
1217
1253
  * {
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"
1254
+ * "id": "evt_1042",
1255
+ * "type": "email.delivered",
1256
+ * "email_id": "a1b2c3d4e5f6@boutique.sn",
1257
+ * "recipient": "awa@example.sn",
1258
+ * "created_at": "2026-11-17T10:00:03Z"
1224
1259
  * }
1225
- * ]
1260
+ * ],
1261
+ * "next_cursor": "eyJ0IjoxNzYzMzczNjAzfQ"
1226
1262
  * }
1227
1263
  */
1228
- "application/json": components["schemas"]["EventsReport"];
1264
+ "application/json": components["schemas"]["EventList"];
1229
1265
  };
1230
1266
  };
1231
1267
  400: components["responses"]["BadRequest"];
@@ -1234,41 +1270,24 @@ export interface operations {
1234
1270
  503: components["responses"]["ServiceUnavailable"];
1235
1271
  };
1236
1272
  };
1237
- listTransactionalEmails: {
1273
+ getStats: {
1238
1274
  parameters: {
1239
1275
  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"];
1276
+ /** @description First day, `YYYY-MM-DD`, UTC, included. */
1277
+ from?: string;
1278
+ /** @description Last day, `YYYY-MM-DD`, UTC, included. */
1279
+ to?: string;
1280
+ };
1281
+ header?: {
1282
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1283
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1264
1284
  };
1265
- header?: never;
1266
1285
  path?: never;
1267
1286
  cookie?: never;
1268
1287
  };
1269
1288
  requestBody?: never;
1270
1289
  responses: {
1271
- /** @description Log lines and their total. */
1290
+ /** @description Totals. */
1272
1291
  200: {
1273
1292
  headers: {
1274
1293
  [name: string]: unknown;
@@ -1276,20 +1295,21 @@ export interface operations {
1276
1295
  content: {
1277
1296
  /**
1278
1297
  * @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
- * ]
1298
+ * "from": "2026-11-01",
1299
+ * "to": "2026-11-23",
1300
+ * "requests": 1240,
1301
+ * "delivered": 1221,
1302
+ * "hard_bounces": 6,
1303
+ * "soft_bounces": 4,
1304
+ * "complaints": 1,
1305
+ * "unsubscribed": 3,
1306
+ * "opens": 812,
1307
+ * "unique_opens": 640,
1308
+ * "clicks": 205,
1309
+ * "unique_clicks": 174
1290
1310
  * }
1291
1311
  */
1292
- "application/json": components["schemas"]["TransactionalEmails"];
1312
+ "application/json": components["schemas"]["Stats"];
1293
1313
  };
1294
1314
  };
1295
1315
  400: components["responses"]["BadRequest"];
@@ -1298,36 +1318,22 @@ export interface operations {
1298
1318
  503: components["responses"]["ServiceUnavailable"];
1299
1319
  };
1300
1320
  };
1301
- listBlockedContacts: {
1321
+ listSuppressions: {
1302
1322
  parameters: {
1303
1323
  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"];
1324
+ /** @description `next_cursor` of the previous page. */
1325
+ cursor?: components["parameters"]["cursor"];
1326
+ };
1327
+ header?: {
1328
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1329
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1323
1330
  };
1324
- header?: never;
1325
1331
  path?: never;
1326
1332
  cookie?: never;
1327
1333
  };
1328
1334
  requestBody?: never;
1329
1335
  responses: {
1330
- /** @description Blocked addresses and their total. */
1336
+ /** @description A page of addresses. */
1331
1337
  200: {
1332
1338
  headers: {
1333
1339
  [name: string]: unknown;
@@ -1335,21 +1341,17 @@ export interface operations {
1335
1341
  content: {
1336
1342
  /**
1337
1343
  * @example {
1338
- * "count": 1,
1339
- * "contacts": [
1344
+ * "data": [
1340
1345
  * {
1341
1346
  * "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"
1347
+ * "reason": "hard_bounce",
1348
+ * "created_at": "2026-11-10T08:12:00Z"
1348
1349
  * }
1349
- * ]
1350
+ * ],
1351
+ * "next_cursor": null
1350
1352
  * }
1351
1353
  */
1352
- "application/json": components["schemas"]["BlockedContacts"];
1354
+ "application/json": components["schemas"]["SuppressionList"];
1353
1355
  };
1354
1356
  };
1355
1357
  400: components["responses"]["BadRequest"];
@@ -1358,22 +1360,21 @@ export interface operations {
1358
1360
  503: components["responses"]["ServiceUnavailable"];
1359
1361
  };
1360
1362
  };
1361
- unblockContact: {
1363
+ deleteSuppression: {
1362
1364
  parameters: {
1363
1365
  query?: never;
1364
- header?: never;
1366
+ header?: {
1367
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1368
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1369
+ };
1365
1370
  path: {
1366
- /**
1367
- * @description The address, case-insensitive.
1368
- * @example ancien@example.sn
1369
- */
1370
1371
  email: string;
1371
1372
  };
1372
1373
  cookie?: never;
1373
1374
  };
1374
1375
  requestBody?: never;
1375
1376
  responses: {
1376
- /** @description Removed: Iris writes to this address again. */
1377
+ /** @description Removed. */
1377
1378
  204: {
1378
1379
  headers: {
1379
1380
  [name: string]: unknown;
@@ -1386,29 +1387,34 @@ export interface operations {
1386
1387
  503: components["responses"]["ServiceUnavailable"];
1387
1388
  };
1388
1389
  };
1389
- getInboundAttachment: {
1390
+ revokeSecret: {
1390
1391
  parameters: {
1391
1392
  query?: never;
1392
- header?: never;
1393
+ header?: {
1394
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1395
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1396
+ };
1393
1397
  path: {
1394
- /** @description `id` of the inbound email webhook. */
1395
- id: string;
1396
- /** @description Position in `attachments`, from 0. */
1397
- index: number;
1398
+ /** @description `id` returned by `POST /api/emails`. */
1399
+ id: components["parameters"]["emailId"];
1398
1400
  };
1399
1401
  cookie?: never;
1400
1402
  };
1401
1403
  requestBody?: never;
1402
1404
  responses: {
1403
- /** @description The file. Its name is in `Content-Disposition`. */
1405
+ /** @description Revoked. */
1404
1406
  200: {
1405
1407
  headers: {
1406
- /** @example attachment; filename=facture.pdf */
1407
- "Content-Disposition"?: string;
1408
1408
  [name: string]: unknown;
1409
1409
  };
1410
1410
  content: {
1411
- "application/octet-stream": string;
1411
+ /**
1412
+ * @example {
1413
+ * "id": "a1b2c3d4e5f6@boutique.sn",
1414
+ * "revoked": true
1415
+ * }
1416
+ */
1417
+ "application/json": components["schemas"]["SecretRevoked"];
1412
1418
  };
1413
1419
  };
1414
1420
  401: components["responses"]["Unauthorized"];
@@ -1417,32 +1423,37 @@ export interface operations {
1417
1423
  503: components["responses"]["ServiceUnavailable"];
1418
1424
  };
1419
1425
  };
1420
- checkEmailAddresses: {
1426
+ getInboundAttachment: {
1421
1427
  parameters: {
1422
1428
  query?: never;
1423
- header?: never;
1424
- path?: never;
1425
- cookie?: never;
1426
- };
1427
- requestBody: {
1428
- content: {
1429
- "application/json": components["schemas"]["AddressCheckRequest"];
1429
+ header?: {
1430
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1431
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1430
1432
  };
1433
+ path: {
1434
+ /** @description `id` of the inbound email. */
1435
+ delivery: string;
1436
+ /** @description Position in `attachments`, from 0. */
1437
+ index: number;
1438
+ };
1439
+ cookie?: never;
1431
1440
  };
1441
+ requestBody?: never;
1432
1442
  responses: {
1433
- /** @description One result for `email`, `results` for `emails`. */
1443
+ /** @description The file. Its name is in `Content-Disposition`. */
1434
1444
  200: {
1435
1445
  headers: {
1446
+ /** @example attachment; filename=facture.pdf */
1447
+ "Content-Disposition"?: string;
1436
1448
  [name: string]: unknown;
1437
1449
  };
1438
1450
  content: {
1439
- "application/json": components["schemas"]["AddressCheck"] | components["schemas"]["AddressCheckResults"];
1451
+ "application/octet-stream": string;
1440
1452
  };
1441
1453
  };
1442
- 400: components["responses"]["BadRequest"];
1443
1454
  401: components["responses"]["Unauthorized"];
1444
- 402: components["responses"]["PaymentRequired"];
1445
1455
  403: components["responses"]["Forbidden"];
1456
+ 404: components["responses"]["NotFound"];
1446
1457
  503: components["responses"]["ServiceUnavailable"];
1447
1458
  };
1448
1459
  };
@@ -1497,7 +1508,10 @@ export interface operations {
1497
1508
  createVerification: {
1498
1509
  parameters: {
1499
1510
  query?: never;
1500
- header?: never;
1511
+ header?: {
1512
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1513
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1514
+ };
1501
1515
  path?: never;
1502
1516
  cookie?: never;
1503
1517
  };
@@ -1528,6 +1542,7 @@ export interface operations {
1528
1542
  * @example {
1529
1543
  * "verificationId": "7d1e4b2a-3c5f-4e6a-8b9c-0d1e2f3a4b5c",
1530
1544
  * "channel": "email",
1545
+ * "units": 1,
1531
1546
  * "expiresAt": "2026-11-17T10:05:00Z"
1532
1547
  * }
1533
1548
  */
@@ -1546,7 +1561,10 @@ export interface operations {
1546
1561
  checkVerification: {
1547
1562
  parameters: {
1548
1563
  query?: never;
1549
- header?: never;
1564
+ header?: {
1565
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1566
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1567
+ };
1550
1568
  path?: never;
1551
1569
  cookie?: never;
1552
1570
  };
@@ -1586,7 +1604,10 @@ export interface operations {
1586
1604
  cancelVerification: {
1587
1605
  parameters: {
1588
1606
  query?: never;
1589
- header?: never;
1607
+ header?: {
1608
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1609
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1610
+ };
1590
1611
  path: {
1591
1612
  /** @description `verificationId` returned by `POST /v1/verify`. */
1592
1613
  id: components["parameters"]["verificationId"];
@@ -1618,7 +1639,10 @@ export interface operations {
1618
1639
  resendVerification: {
1619
1640
  parameters: {
1620
1641
  query?: never;
1621
- header?: never;
1642
+ header?: {
1643
+ /** @description Pins the API behaviour of this date. Without it, the current version answers. */
1644
+ "Iris-Version"?: components["parameters"]["irisVersion"];
1645
+ };
1622
1646
  path: {
1623
1647
  /** @description `verificationId` returned by `POST /v1/verify`. */
1624
1648
  id: components["parameters"]["verificationId"];
@@ -1637,6 +1661,7 @@ export interface operations {
1637
1661
  * @example {
1638
1662
  * "verificationId": "7d1e4b2a-3c5f-4e6a-8b9c-0d1e2f3a4b5c",
1639
1663
  * "channel": "sms",
1664
+ * "units": 2,
1640
1665
  * "expiresAt": "2026-11-17T10:06:00Z"
1641
1666
  * }
1642
1667
  */
@@ -1703,7 +1728,7 @@ export interface operations {
1703
1728
  * "contentType": "image/jpeg",
1704
1729
  * "size": 48213,
1705
1730
  * "contentId": "",
1706
- * "downloadUrl": "https://iris.orvlabs.com/v3/inbound/attachments/3e2d1c0b-9a8f-4e7d-8c6b-5a4f3e2d1c0b/0",
1731
+ * "downloadUrl": "https://iris.orvlabs.com/api/inbound/3e2d1c0b-9a8f-4e7d-8c6b-5a4f3e2d1c0b/attachments/0",
1707
1732
  * "infected": false
1708
1733
  * }
1709
1734
  * ]