@internxt/sdk 1.15.6 → 1.15.8

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,675 @@
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
+ '/health': {
7
+ parameters: {
8
+ query?: never;
9
+ header?: never;
10
+ path?: never;
11
+ cookie?: never;
12
+ };
13
+ get: operations['HealthController_check'];
14
+ put?: never;
15
+ post?: never;
16
+ delete?: never;
17
+ options?: never;
18
+ head?: never;
19
+ patch?: never;
20
+ trace?: never;
21
+ };
22
+ '/email/mailboxes': {
23
+ parameters: {
24
+ query?: never;
25
+ header?: never;
26
+ path?: never;
27
+ cookie?: never;
28
+ };
29
+ /**
30
+ * List mailboxes
31
+ * @description Returns every mailbox for the authenticated user, including folder counts.
32
+ */
33
+ get: operations['EmailController_getMailboxes'];
34
+ put?: never;
35
+ post?: never;
36
+ delete?: never;
37
+ options?: never;
38
+ head?: never;
39
+ patch?: never;
40
+ trace?: never;
41
+ };
42
+ '/email': {
43
+ parameters: {
44
+ query?: never;
45
+ header?: never;
46
+ path?: never;
47
+ cookie?: never;
48
+ };
49
+ /**
50
+ * List emails
51
+ * @description Paginated list of email summaries. Filter by mailbox or omit to list all.
52
+ */
53
+ get: operations['EmailController_list'];
54
+ put?: never;
55
+ post?: never;
56
+ delete?: never;
57
+ options?: never;
58
+ head?: never;
59
+ patch?: never;
60
+ trace?: never;
61
+ };
62
+ '/email/{id}': {
63
+ parameters: {
64
+ query?: never;
65
+ header?: never;
66
+ path?: never;
67
+ cookie?: never;
68
+ };
69
+ /**
70
+ * Get email by ID
71
+ * @description Returns the full email including body content, headers, and metadata.
72
+ */
73
+ get: operations['EmailController_get'];
74
+ put?: never;
75
+ post?: never;
76
+ /**
77
+ * Delete an email
78
+ * @description Permanently deletes an email by ID.
79
+ */
80
+ delete: operations['EmailController_delete'];
81
+ options?: never;
82
+ head?: never;
83
+ /**
84
+ * Update an email
85
+ * @description Partially update an email: move it to another mailbox, mark as read/unread, or flag/unflag. Multiple operations can be combined in a single request.
86
+ */
87
+ patch: operations['EmailController_update'];
88
+ trace?: never;
89
+ };
90
+ '/email/send': {
91
+ parameters: {
92
+ query?: never;
93
+ header?: never;
94
+ path?: never;
95
+ cookie?: never;
96
+ };
97
+ get?: never;
98
+ put?: never;
99
+ /**
100
+ * Send an email
101
+ * @description Composes and sends an email on behalf of the authenticated user. At least one recipient in `to` is required.
102
+ */
103
+ post: operations['EmailController_send'];
104
+ delete?: never;
105
+ options?: never;
106
+ head?: never;
107
+ patch?: never;
108
+ trace?: never;
109
+ };
110
+ '/email/drafts': {
111
+ parameters: {
112
+ query?: never;
113
+ header?: never;
114
+ path?: never;
115
+ cookie?: never;
116
+ };
117
+ get?: never;
118
+ put?: never;
119
+ /**
120
+ * Save a draft
121
+ * @description Creates a new draft email. All fields are optional so partial drafts can be saved.
122
+ */
123
+ post: operations['EmailController_saveDraft'];
124
+ delete?: never;
125
+ options?: never;
126
+ head?: never;
127
+ patch?: never;
128
+ trace?: never;
129
+ };
130
+ '/gateway/accounts': {
131
+ parameters: {
132
+ query?: never;
133
+ header?: never;
134
+ path?: never;
135
+ cookie?: never;
136
+ };
137
+ get?: never;
138
+ put?: never;
139
+ /** Provision a new mail account (called by the auth service) */
140
+ post: operations['GatewayController_provisionAccount'];
141
+ delete?: never;
142
+ options?: never;
143
+ head?: never;
144
+ patch?: never;
145
+ trace?: never;
146
+ };
147
+ '/gateway/domains': {
148
+ parameters: {
149
+ query?: never;
150
+ header?: never;
151
+ path?: never;
152
+ cookie?: never;
153
+ };
154
+ /** List available mail domains (called by the auth service) */
155
+ get: operations['GatewayController_listDomains'];
156
+ put?: never;
157
+ post?: never;
158
+ delete?: never;
159
+ options?: never;
160
+ head?: never;
161
+ patch?: never;
162
+ trace?: never;
163
+ };
164
+ '/gateway/accounts/{uuid}/suspend': {
165
+ parameters: {
166
+ query?: never;
167
+ header?: never;
168
+ path?: never;
169
+ cookie?: never;
170
+ };
171
+ get?: never;
172
+ put?: never;
173
+ /** Suspend a mail account */
174
+ post: operations['GatewayController_suspendAccount'];
175
+ delete?: never;
176
+ options?: never;
177
+ head?: never;
178
+ patch?: never;
179
+ trace?: never;
180
+ };
181
+ '/gateway/accounts/{uuid}/reactivate': {
182
+ parameters: {
183
+ query?: never;
184
+ header?: never;
185
+ path?: never;
186
+ cookie?: never;
187
+ };
188
+ get?: never;
189
+ put?: never;
190
+ /** Reactivate a mail account */
191
+ post: operations['GatewayController_reactivateAccount'];
192
+ delete?: never;
193
+ options?: never;
194
+ head?: never;
195
+ patch?: never;
196
+ trace?: never;
197
+ };
198
+ }
199
+ export type webhooks = Record<string, never>;
200
+ export interface components {
201
+ schemas: {
202
+ MailboxResponseDto: {
203
+ /** @example f3a1b2c4-… */
204
+ id: string;
205
+ /** @example Inbox */
206
+ name: string;
207
+ /**
208
+ * @example inbox
209
+ * @enum {string|null}
210
+ */
211
+ type: 'inbox' | 'drafts' | 'sent' | 'trash' | 'spam' | 'archive' | null;
212
+ /** @example null */
213
+ parentId: Record<string, never> | null;
214
+ /** @example 142 */
215
+ totalEmails: number;
216
+ /** @example 3 */
217
+ unreadEmails: number;
218
+ };
219
+ EmailAddressDto: {
220
+ /** @example Alice Smith */
221
+ name?: string;
222
+ /** @example alice@internxt.me */
223
+ email: string;
224
+ };
225
+ EmailSummaryResponseDto: {
226
+ /** @example Ma1f09b… */
227
+ id: string;
228
+ /**
229
+ * @example [
230
+ * "d",
231
+ * "a"
232
+ * ]
233
+ */
234
+ mailboxIds: string[];
235
+ /** @example T1a2b3c… */
236
+ threadId: string;
237
+ from: components['schemas']['EmailAddressDto'][];
238
+ to: components['schemas']['EmailAddressDto'][];
239
+ /** @example Weekly sync notes */
240
+ subject: string;
241
+ /** @example 2025-06-15T10:30:00Z */
242
+ receivedAt: string;
243
+ /** @example Hi team, here are the notes from… */
244
+ preview: string;
245
+ /** @example true */
246
+ isRead: boolean;
247
+ /** @example false */
248
+ isFlagged: boolean;
249
+ /** @example false */
250
+ hasAttachment: boolean;
251
+ /**
252
+ * @description Size in bytes
253
+ * @example 4096
254
+ */
255
+ size: number;
256
+ };
257
+ EmailListResponseDto: {
258
+ emails: components['schemas']['EmailSummaryResponseDto'][];
259
+ /**
260
+ * @description Total emails in the mailbox
261
+ * @example 142
262
+ */
263
+ total: number;
264
+ /**
265
+ * @description Whether there are more emails to fetch
266
+ * @example true
267
+ */
268
+ hasMoreMails: boolean;
269
+ /** @example Ma1f09b… */
270
+ nextAnchor?: string;
271
+ };
272
+ EmailResponseDto: {
273
+ /** @example Ma1f09b… */
274
+ id: string;
275
+ /**
276
+ * @example [
277
+ * "d",
278
+ * "a"
279
+ * ]
280
+ */
281
+ mailboxIds: string[];
282
+ /** @example T1a2b3c… */
283
+ threadId: string;
284
+ from: components['schemas']['EmailAddressDto'][];
285
+ to: components['schemas']['EmailAddressDto'][];
286
+ /** @example Weekly sync notes */
287
+ subject: string;
288
+ /** @example 2025-06-15T10:30:00Z */
289
+ receivedAt: string;
290
+ /** @example Hi team, here are the notes from… */
291
+ preview: string;
292
+ /** @example true */
293
+ isRead: boolean;
294
+ /** @example false */
295
+ isFlagged: boolean;
296
+ /** @example false */
297
+ hasAttachment: boolean;
298
+ /**
299
+ * @description Size in bytes
300
+ * @example 4096
301
+ */
302
+ size: number;
303
+ cc: components['schemas']['EmailAddressDto'][];
304
+ bcc: components['schemas']['EmailAddressDto'][];
305
+ replyTo: components['schemas']['EmailAddressDto'][];
306
+ /** @example 2025-06-15T10:29:55Z */
307
+ sentAt: string | null;
308
+ /** @example Hi team, here are the notes… */
309
+ textBody: string | null;
310
+ /** @example <p>Hi team, here are the notes…</p> */
311
+ htmlBody: string | null;
312
+ };
313
+ SendEmailRequestDto: {
314
+ /** @description Primary recipients (at least one required) */
315
+ to: components['schemas']['EmailAddressDto'][];
316
+ cc?: components['schemas']['EmailAddressDto'][];
317
+ bcc?: components['schemas']['EmailAddressDto'][];
318
+ /** @example Weekly sync notes */
319
+ subject: string;
320
+ /**
321
+ * @description Plain-text version of the email body
322
+ * @example Hi team, here are the notes from today…
323
+ */
324
+ textBody?: string;
325
+ /**
326
+ * @description HTML version of the email body
327
+ * @example <p>Hi team, here are the notes from today…</p>
328
+ */
329
+ htmlBody?: string;
330
+ };
331
+ EmailCreatedResponseDto: {
332
+ /**
333
+ * @description ID of the created email
334
+ * @example Ma1f09b…
335
+ */
336
+ id: string;
337
+ };
338
+ DraftEmailRequestDto: {
339
+ to?: components['schemas']['EmailAddressDto'][];
340
+ cc?: components['schemas']['EmailAddressDto'][];
341
+ bcc?: components['schemas']['EmailAddressDto'][];
342
+ /** @example Draft: project update */
343
+ subject?: string;
344
+ /** @example Still working on this… */
345
+ textBody?: string;
346
+ /** @example <p>Still working on this…</p> */
347
+ htmlBody?: string;
348
+ };
349
+ UpdateEmailRequestDto: {
350
+ /**
351
+ * @description Move the email to this mailbox
352
+ * @example trash
353
+ * @enum {string}
354
+ */
355
+ mailbox?: 'inbox' | 'drafts' | 'sent' | 'trash' | 'spam' | 'archive';
356
+ /**
357
+ * @description Mark the email as read or unread
358
+ * @example true
359
+ */
360
+ isRead?: boolean;
361
+ /**
362
+ * @description Flag or unflag the email
363
+ * @example false
364
+ */
365
+ isFlagged?: boolean;
366
+ };
367
+ ProvisionAccountRequestDto: {
368
+ /**
369
+ * @description User id
370
+ * @example d7ffe6b1-434d-4eae-86a5-029f76d1aa80
371
+ */
372
+ userId: string;
373
+ /**
374
+ * @description Full email address
375
+ * @example alice@internxt.com
376
+ */
377
+ address: string;
378
+ /**
379
+ * @description Email domain
380
+ * @example internxt.com
381
+ */
382
+ domain: string;
383
+ /**
384
+ * @description User display name
385
+ * @example Alice Smith
386
+ */
387
+ displayName: string;
388
+ };
389
+ };
390
+ responses: never;
391
+ parameters: never;
392
+ requestBodies: never;
393
+ headers: never;
394
+ pathItems: never;
395
+ }
396
+ export type $defs = Record<string, never>;
397
+ export interface operations {
398
+ HealthController_check: {
399
+ parameters: {
400
+ query?: never;
401
+ header?: never;
402
+ path?: never;
403
+ cookie?: never;
404
+ };
405
+ requestBody?: never;
406
+ responses: {
407
+ 200: {
408
+ headers: {
409
+ [name: string]: unknown;
410
+ };
411
+ content?: never;
412
+ };
413
+ };
414
+ };
415
+ EmailController_getMailboxes: {
416
+ parameters: {
417
+ query?: never;
418
+ header?: never;
419
+ path?: never;
420
+ cookie?: never;
421
+ };
422
+ requestBody?: never;
423
+ responses: {
424
+ 200: {
425
+ headers: {
426
+ [name: string]: unknown;
427
+ };
428
+ content: {
429
+ 'application/json': components['schemas']['MailboxResponseDto'][];
430
+ };
431
+ };
432
+ };
433
+ };
434
+ EmailController_list: {
435
+ parameters: {
436
+ query?: {
437
+ /** @description Mailbox to filter by. Omit to list emails from all mailboxes. */
438
+ mailbox?: 'inbox' | 'drafts' | 'sent' | 'trash' | 'spam' | 'archive';
439
+ /** @description Maximum number of emails to return. Defaults to `20`. */
440
+ limit?: number;
441
+ /** @description Zero-based offset for pagination. Defaults to `0`. */
442
+ position?: number;
443
+ /** @description Anchor ID for pagination. */
444
+ anchorId?: string;
445
+ };
446
+ header?: never;
447
+ path?: never;
448
+ cookie?: never;
449
+ };
450
+ requestBody?: never;
451
+ responses: {
452
+ 200: {
453
+ headers: {
454
+ [name: string]: unknown;
455
+ };
456
+ content: {
457
+ 'application/json': components['schemas']['EmailListResponseDto'];
458
+ };
459
+ };
460
+ };
461
+ };
462
+ EmailController_get: {
463
+ parameters: {
464
+ query?: never;
465
+ header?: never;
466
+ path: {
467
+ /** @description Email ID */
468
+ id: string;
469
+ };
470
+ cookie?: never;
471
+ };
472
+ requestBody?: never;
473
+ responses: {
474
+ 200: {
475
+ headers: {
476
+ [name: string]: unknown;
477
+ };
478
+ content: {
479
+ 'application/json': components['schemas']['EmailResponseDto'];
480
+ };
481
+ };
482
+ /** @description Email not found */
483
+ 404: {
484
+ headers: {
485
+ [name: string]: unknown;
486
+ };
487
+ content?: never;
488
+ };
489
+ };
490
+ };
491
+ EmailController_delete: {
492
+ parameters: {
493
+ query?: never;
494
+ header?: never;
495
+ path: {
496
+ /** @description Email ID */
497
+ id: string;
498
+ };
499
+ cookie?: never;
500
+ };
501
+ requestBody?: never;
502
+ responses: {
503
+ /** @description Email deleted successfully */
504
+ 204: {
505
+ headers: {
506
+ [name: string]: unknown;
507
+ };
508
+ content?: never;
509
+ };
510
+ /** @description Email not found */
511
+ 404: {
512
+ headers: {
513
+ [name: string]: unknown;
514
+ };
515
+ content?: never;
516
+ };
517
+ };
518
+ };
519
+ EmailController_update: {
520
+ parameters: {
521
+ query?: never;
522
+ header?: never;
523
+ path: {
524
+ /** @description Email ID */
525
+ id: string;
526
+ };
527
+ cookie?: never;
528
+ };
529
+ requestBody: {
530
+ content: {
531
+ 'application/json': components['schemas']['UpdateEmailRequestDto'];
532
+ };
533
+ };
534
+ responses: {
535
+ /** @description Email updated successfully */
536
+ 204: {
537
+ headers: {
538
+ [name: string]: unknown;
539
+ };
540
+ content?: never;
541
+ };
542
+ /** @description Email not found */
543
+ 404: {
544
+ headers: {
545
+ [name: string]: unknown;
546
+ };
547
+ content?: never;
548
+ };
549
+ };
550
+ };
551
+ EmailController_send: {
552
+ parameters: {
553
+ query?: never;
554
+ header?: never;
555
+ path?: never;
556
+ cookie?: never;
557
+ };
558
+ requestBody: {
559
+ content: {
560
+ 'application/json': components['schemas']['SendEmailRequestDto'];
561
+ };
562
+ };
563
+ responses: {
564
+ /** @description Email sent successfully */
565
+ 200: {
566
+ headers: {
567
+ [name: string]: unknown;
568
+ };
569
+ content: {
570
+ 'application/json': components['schemas']['EmailCreatedResponseDto'];
571
+ };
572
+ };
573
+ };
574
+ };
575
+ EmailController_saveDraft: {
576
+ parameters: {
577
+ query?: never;
578
+ header?: never;
579
+ path?: never;
580
+ cookie?: never;
581
+ };
582
+ requestBody: {
583
+ content: {
584
+ 'application/json': components['schemas']['DraftEmailRequestDto'];
585
+ };
586
+ };
587
+ responses: {
588
+ /** @description Draft saved successfully */
589
+ 200: {
590
+ headers: {
591
+ [name: string]: unknown;
592
+ };
593
+ content: {
594
+ 'application/json': components['schemas']['EmailCreatedResponseDto'];
595
+ };
596
+ };
597
+ };
598
+ };
599
+ GatewayController_provisionAccount: {
600
+ parameters: {
601
+ query?: never;
602
+ header?: never;
603
+ path?: never;
604
+ cookie?: never;
605
+ };
606
+ requestBody: {
607
+ content: {
608
+ 'application/json': components['schemas']['ProvisionAccountRequestDto'];
609
+ };
610
+ };
611
+ responses: {
612
+ 201: {
613
+ headers: {
614
+ [name: string]: unknown;
615
+ };
616
+ content?: never;
617
+ };
618
+ };
619
+ };
620
+ GatewayController_listDomains: {
621
+ parameters: {
622
+ query?: never;
623
+ header?: never;
624
+ path?: never;
625
+ cookie?: never;
626
+ };
627
+ requestBody?: never;
628
+ responses: {
629
+ 200: {
630
+ headers: {
631
+ [name: string]: unknown;
632
+ };
633
+ content?: never;
634
+ };
635
+ };
636
+ };
637
+ GatewayController_suspendAccount: {
638
+ parameters: {
639
+ query?: never;
640
+ header?: never;
641
+ path: {
642
+ uuid: string;
643
+ };
644
+ cookie?: never;
645
+ };
646
+ requestBody?: never;
647
+ responses: {
648
+ 204: {
649
+ headers: {
650
+ [name: string]: unknown;
651
+ };
652
+ content?: never;
653
+ };
654
+ };
655
+ };
656
+ GatewayController_reactivateAccount: {
657
+ parameters: {
658
+ query?: never;
659
+ header?: never;
660
+ path: {
661
+ uuid: string;
662
+ };
663
+ cookie?: never;
664
+ };
665
+ requestBody?: never;
666
+ responses: {
667
+ 204: {
668
+ headers: {
669
+ [name: string]: unknown;
670
+ };
671
+ content?: never;
672
+ };
673
+ };
674
+ };
675
+ }
@@ -0,0 +1,6 @@
1
+ "use strict";
2
+ /**
3
+ * This file was auto-generated by openapi-typescript.
4
+ * Do not make direct changes to the file.
5
+ */
6
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { components, operations } from './schema';
2
+ export type MailboxResponse = components['schemas']['MailboxResponseDto'];
3
+ export type EmailSummaryResponse = components['schemas']['EmailSummaryResponseDto'];
4
+ export type EmailListResponse = components['schemas']['EmailListResponseDto'];
5
+ export type EmailResponse = components['schemas']['EmailResponseDto'];
6
+ export type EmailCreatedResponse = components['schemas']['EmailCreatedResponseDto'];
7
+ export type SendEmailRequest = components['schemas']['SendEmailRequestDto'];
8
+ export type DraftEmailRequest = components['schemas']['DraftEmailRequestDto'];
9
+ export type UpdateEmailRequest = components['schemas']['UpdateEmailRequestDto'];
10
+ export type EmailAddress = components['schemas']['EmailAddressDto'];
11
+ export type ListEmailsQuery = operations['EmailController_list']['parameters']['query'];
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -23,6 +23,7 @@ var AppError = /** @class */ (function (_super) {
23
23
  _this.code = code;
24
24
  _this.headers = headers;
25
25
  _this.requestId = headers === null || headers === void 0 ? void 0 : headers['x-request-id'];
26
+ Object.setPrototypeOf(_this, AppError.prototype);
26
27
  return _this;
27
28
  }
28
29
  return AppError;