@remit/api-openapi-types 0.0.57 → 0.0.58

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +415 -54
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-types",
3
- "version": "0.0.57",
3
+ "version": "0.0.58",
4
4
  "type": "module",
5
5
  "main": "types.d.ts",
6
6
  "types": "types.d.ts",
package/types.d.ts CHANGED
@@ -377,18 +377,98 @@ a compile-time error rather than a value that silently sorts incorrectly.
377
377
  name: "Authorization";
378
378
  }
379
379
  /**
380
- * Validation error response
380
+ * Every error the API answers with, whatever the status. The body is flat:
381
+ `code`, `message` and `details` sit at the top level, with no envelope around
382
+ them.
383
+
384
+ `code` is always present and is the only field a client branches on. It is a
385
+ stable snake_case token — the refusal's own where it has one
386
+ (`folder_role_unresolved`, `config_not_empty`), and otherwise the status
387
+ class's: `invalid_request`, `unauthorized`, `forbidden`, `not_found`,
388
+ `conflict`, `precondition_failed`, `payload_too_large`,
389
+ `unprocessable_entity`, `internal_error`, and `request_refused` for a 4xx no
390
+ operation declares (405, 408, 415, 429).
391
+
392
+ `message` is a sentence for a person and is free to change; nothing may parse
393
+ it. `details` carries the strings a client words its own prompt from, and a
394
+ 5xx never carries one — an internal failure answers with its status code and
395
+ message and nothing else.
396
+ */
397
+ export interface ApiError {
398
+ /**
399
+ * Stable token naming the refusal. Branch on this, never on `message`.
400
+ */
401
+ code: string;
402
+ /**
403
+ * Human-readable error message
404
+ */
405
+ message: string;
406
+ /**
407
+ * Additional error details
408
+ */
409
+ details?: Record;
410
+ }
411
+ /**
412
+ * The request was refused as malformed or contradictory. `code` is
413
+ `invalid_request` where nothing more specific is known, and the refusal's own
414
+ token where there is one.
415
+
416
+ The calendar surface answers with the reason it read the request by:
417
+ `invalid_window`, `invalid_scope`, `invalid_url_segment`, `url_segment_taken`,
418
+ `unknown_time_zone` and `default_calendar_undeletable` on the collection and
419
+ the query, and, for a VCALENDAR it could not accept,
420
+ `malformed_icalendar`, `not_a_calendar`, `unsupported_component`, `no_event`,
421
+ `no_master_event`, `multiple_master_events`, `missing_uid`, `mismatched_uid`,
422
+ `missing_dt_start`, `backwards_end`, `invalid_date_time`,
423
+ `invalid_recurrence_rule`, `missing_recurrence_id`, `not_recurring` and
424
+ `unknown_occurrence`.
425
+
426
+ `errors` is present only when the request failed schema validation before any
427
+ handler ran, and names every field that was refused.
381
428
  */
382
429
  export interface ValidationError {
383
430
  statusCode: 400;
384
- error: ApiError;
431
+ /**
432
+ * Stable token naming the refusal. Branch on this, never on `message`.
433
+ */
434
+ code: string;
435
+ /**
436
+ * Human-readable error message
437
+ */
438
+ message: string;
439
+ /**
440
+ * Additional error details
441
+ */
442
+ details?: Record;
443
+ /**
444
+ * Every field the schema refused, when the refusal came from schema validation
445
+ */
446
+ errors?: RequestValidationDetail[];
385
447
  }
386
448
  /**
387
- * API error response
449
+ * One reason a request was refused, as the validator read it. Named fields only — nothing here echoes the value that was submitted.
388
450
  */
389
- export interface ApiError {
451
+ export interface RequestValidationDetail {
390
452
  /**
391
- * Error code
453
+ * JSON Pointer to the offending value; empty for the document itself
454
+ */
455
+ path: string;
456
+ /**
457
+ * The rule that refused it, e.g. `required`, `type`, `format`
458
+ */
459
+ rule: string;
460
+ /**
461
+ * What the validator said
462
+ */
463
+ message: string;
464
+ }
465
+ /**
466
+ * The request carried no usable credential. `code` is `unauthorized`.
467
+ */
468
+ export interface UnauthorizedError {
469
+ statusCode: 401;
470
+ /**
471
+ * Stable token naming the refusal. Branch on this, never on `message`.
392
472
  */
393
473
  code: string;
394
474
  /**
@@ -408,10 +488,90 @@ a compile-time error rather than a value that silently sorts incorrectly.
408
488
  pk?: ModelProperty[] | any;
409
489
  sk?: ModelProperty[] | any;
410
490
  }
491
+ /**
492
+ * Nothing answers to this address, or the caller may not learn that something does. `code` is `not_found`.
493
+ */
494
+ export interface NotFoundError {
495
+ statusCode: 404;
496
+ /**
497
+ * Stable token naming the refusal. Branch on this, never on `message`.
498
+ */
499
+ code: string;
500
+ /**
501
+ * Human-readable error message
502
+ */
503
+ message: string;
504
+ /**
505
+ * Additional error details
506
+ */
507
+ details?: Record;
508
+ }
509
+ /**
510
+ * The request contradicts the state the resource is in. `code` is `conflict`
511
+ unless the refusal names its own — see `FolderRoleConflict`,
512
+ `MessagePlacementConflict` and `ConfigImportConflict`.
513
+ */
514
+ export interface ConflictError {
515
+ statusCode: 409;
516
+ /**
517
+ * Stable token naming the refusal. Branch on this, never on `message`.
518
+ */
519
+ code: string;
520
+ /**
521
+ * Human-readable error message
522
+ */
523
+ message: string;
524
+ /**
525
+ * Additional error details
526
+ */
527
+ details?: Record;
528
+ }
529
+ /**
530
+ * The request is well-formed but the thing it names cannot be produced. `code` is `unprocessable_entity`.
531
+ */
532
+ export interface UnprocessableEntityError {
533
+ statusCode: 422;
534
+ /**
535
+ * Stable token naming the refusal. Branch on this, never on `message`.
536
+ */
537
+ code: string;
538
+ /**
539
+ * Human-readable error message
540
+ */
541
+ message: string;
542
+ /**
543
+ * Additional error details
544
+ */
545
+ details?: Record;
546
+ }
411
547
  export interface ResultList {
412
548
  continuationToken?: String800;
413
549
  items: any[];
414
550
  }
551
+ /**
552
+ * The caller is known and may not do this. `code` is `forbidden`.
553
+ */
554
+ export interface ForbiddenError {
555
+ statusCode: 403;
556
+ /**
557
+ * Stable token naming the refusal. Branch on this, never on `message`.
558
+ */
559
+ code: string;
560
+ /**
561
+ * Human-readable error message
562
+ */
563
+ message: string;
564
+ /**
565
+ * Additional error details
566
+ */
567
+ details?: Record;
568
+ }
569
+ /**
570
+ * Nothing to return. The request succeeded and the response carries no body.
571
+ */
572
+ export interface NoContent {
573
+ statusCode: 204;
574
+ }
415
575
  /**
416
576
  * An action was refused because the folder role it needs is not settled. The body is flat: `code`, `message` and `details` sit at the top level, which is what the API emits. Clients branch on `code` and word their prompt from `details`, never from `message`.
417
577
 
@@ -420,7 +580,7 @@ a compile-time error rather than a value that silently sorts incorrectly.
420
580
  export interface FolderRoleConflict {
421
581
  statusCode: 409;
422
582
  /**
423
- * Error code
583
+ * Stable token naming the refusal. Branch on this, never on `message`.
424
584
  */
425
585
  code: string;
426
586
  /**
@@ -442,7 +602,7 @@ a compile-time error rather than a value that silently sorts incorrectly.
442
602
  export interface AppointFolderRoleConflict {
443
603
  statusCode: 409;
444
604
  /**
445
- * Error code
605
+ * Stable token naming the refusal. Branch on this, never on `message`.
446
606
  */
447
607
  code: string;
448
608
  /**
@@ -454,23 +614,27 @@ a compile-time error rather than a value that silently sorts incorrectly.
454
614
  */
455
615
  details?: Record;
456
616
  }
457
- /**
458
- * Not found error response
459
- */
460
- export interface NotFoundError {
461
- statusCode: 404;
462
- error: ApiError;
463
- }
464
617
  /**
465
618
  * The condition the request stated is no longer true. Answered when an
466
619
  `If-Match` names an etag the stored resource no longer carries: somebody else
467
620
  wrote it in between, so applying this request would silently discard their
468
621
  change. The client re-reads the resource and decides what to do with the
469
- version it now has.
622
+ version it now has. `code` is `precondition_failed`.
470
623
  */
471
624
  export interface PreconditionFailedError {
472
625
  statusCode: 412;
473
- error: ApiError;
626
+ /**
627
+ * Stable token naming the refusal. Branch on this, never on `message`.
628
+ */
629
+ code: string;
630
+ /**
631
+ * Human-readable error message
632
+ */
633
+ message: string;
634
+ /**
635
+ * Additional error details
636
+ */
637
+ details?: Record;
474
638
  }
475
639
  /**
476
640
  * The same flat 409 body, with the two codes this endpoint can answer with.
@@ -482,7 +646,7 @@ version it now has.
482
646
  export interface DeleteMessagesConflict {
483
647
  statusCode: 409;
484
648
  /**
485
- * Error code
649
+ * Stable token naming the refusal. Branch on this, never on `message`.
486
650
  */
487
651
  code: string;
488
652
  /**
@@ -502,7 +666,7 @@ version it now has.
502
666
  export interface MessagePlacementConflict {
503
667
  statusCode: 409;
504
668
  /**
505
- * Error code
669
+ * Stable token naming the refusal. Branch on this, never on `message`.
506
670
  */
507
671
  code: string;
508
672
  /**
@@ -521,25 +685,22 @@ version it now has.
521
685
  uri: any;
522
686
  }
523
687
  /**
524
- * Internal server error response
688
+ * The server failed. `code` is `internal_error` and `details` is never present — nothing about the failure leaves the process beyond its message.
525
689
  */
526
690
  export interface InternalServerError {
527
691
  statusCode: 500;
528
- error: ApiError;
529
- }
530
- /**
531
- * Unauthorized error response
532
- */
533
- export interface UnauthorizedError {
534
- statusCode: 401;
535
- error: ApiError;
536
- }
537
- /**
538
- * Forbidden error response
539
- */
540
- export interface ForbiddenError {
541
- statusCode: 403;
542
- error: ApiError;
692
+ /**
693
+ * Stable token naming the refusal. Branch on this, never on `message`.
694
+ */
695
+ code: string;
696
+ /**
697
+ * Human-readable error message
698
+ */
699
+ message: string;
700
+ /**
701
+ * Additional error details
702
+ */
703
+ details?: Record;
543
704
  }
544
705
  /**
545
706
  * Input for DELETE /me — requires the caller to confirm their email address
@@ -1447,7 +1608,7 @@ with `onExisting: merge` to upsert instead.
1447
1608
  export interface ConfigImportConflict {
1448
1609
  statusCode: 409;
1449
1610
  /**
1450
- * Error code
1611
+ * Stable token naming the refusal. Branch on this, never on `message`.
1451
1612
  */
1452
1613
  code: string;
1453
1614
  /**
@@ -3990,16 +4151,39 @@ either way and cannot tell which it received.
3990
4151
  uploadExpiresAt: number;
3991
4152
  }
3992
4153
  /**
3993
- * Refusal response for an attachment
4154
+ * A file the server refused, with everything the composer needs to say why
3994
4155
  */
3995
- export interface OutboxAttachmentRejected {
3996
- statusCode: 400 | 413;
3997
- error: OutboxAttachmentRejection;
4156
+ export interface OutboxAttachmentRejection {
4157
+ /**
4158
+ * `attachment_rejected`, the code every refusal here carries. `reason` says which one.
4159
+ */
4160
+ code: string;
4161
+ /**
4162
+ * Machine-readable reason
4163
+ */
4164
+ reason: OutboxAttachmentRejectionReason;
4165
+ /**
4166
+ * Sentence naming the file, its size and the cap
4167
+ */
4168
+ message: String512;
4169
+ /**
4170
+ * Total bytes one message may carry
4171
+ */
4172
+ limitBytes: number;
4173
+ /**
4174
+ * Bytes already spoken for on this draft, uploaded or merely reserved
4175
+ */
4176
+ usedBytes: number;
3998
4177
  }
3999
4178
  /**
4000
- * A file the server refused, with everything the composer needs to say why
4179
+ * Refusal response for an attachment. Flat, like every other error body.
4001
4180
  */
4002
- export interface OutboxAttachmentRejection {
4181
+ export interface OutboxAttachmentRejected {
4182
+ statusCode: 400 | 413;
4183
+ /**
4184
+ * `attachment_rejected`, the code every refusal here carries. `reason` says which one.
4185
+ */
4186
+ code: string;
4003
4187
  /**
4004
4188
  * Machine-readable reason
4005
4189
  */
@@ -6049,16 +6233,19 @@ declare namespace Paths {
6049
6233
  namespace Responses {
6050
6234
  export type $202 = void;
6051
6235
  export type $400 = void;
6236
+ export type $401 = void;
6052
6237
  }
6053
6238
  }
6054
6239
  namespace ListVipSuggestions {
6055
6240
  namespace Responses {
6056
6241
  export type $200 = void;
6242
+ export type $401 = void;
6057
6243
  }
6058
6244
  }
6059
6245
  namespace CreateExport {
6060
6246
  namespace Responses {
6061
6247
  export type $202 = void;
6248
+ export type $401 = void;
6062
6249
  }
6063
6250
  }
6064
6251
  namespace GetExport {
@@ -6067,21 +6254,26 @@ declare namespace Paths {
6067
6254
  }
6068
6255
  namespace Responses {
6069
6256
  export type $200 = void;
6257
+ export type $404 = void;
6258
+ export type $401 = void;
6070
6259
  }
6071
6260
  }
6072
6261
  namespace ListQuarantine {
6073
6262
  namespace Responses {
6074
6263
  export type $200 = void;
6264
+ export type $401 = void;
6075
6265
  }
6076
6266
  }
6077
6267
  namespace GetConfig {
6078
6268
  namespace Responses {
6079
6269
  export type $200 = void;
6270
+ export type $401 = void;
6080
6271
  }
6081
6272
  }
6082
6273
  namespace ExportConfig {
6083
6274
  namespace Responses {
6084
6275
  export type $200 = void;
6276
+ export type $401 = void;
6085
6277
  }
6086
6278
  }
6087
6279
  namespace ImportConfig {
@@ -6090,6 +6282,7 @@ declare namespace Paths {
6090
6282
  export type $200 = void;
6091
6283
  export type $400 = void;
6092
6284
  export type $409 = void;
6285
+ export type $401 = void;
6093
6286
  }
6094
6287
  }
6095
6288
  namespace GetSystemUpdate {
@@ -6098,12 +6291,18 @@ declare namespace Paths {
6098
6291
  }
6099
6292
  namespace Responses {
6100
6293
  export type $200 = void;
6294
+ export type $401 = void;
6295
+ export type $404 = void;
6101
6296
  }
6102
6297
  }
6103
6298
  namespace ApplySystemUpdate {
6104
6299
  export type RequestBody = Components.Schemas.ApplyUpdateInput;
6105
6300
  namespace Responses {
6106
6301
  export type $200 = void;
6302
+ export type $401 = void;
6303
+ export type $404 = void;
6304
+ export type $409 = void;
6305
+ export type $422 = void;
6107
6306
  }
6108
6307
  }
6109
6308
  namespace ListMailboxes {
@@ -6115,6 +6314,9 @@ declare namespace Paths {
6115
6314
  }
6116
6315
  namespace Responses {
6117
6316
  export type $200 = void;
6317
+ export type $400 = void;
6318
+ export type $404 = void;
6319
+ export type $401 = void;
6118
6320
  }
6119
6321
  }
6120
6322
  namespace CreateMailbox {
@@ -6124,6 +6326,9 @@ declare namespace Paths {
6124
6326
  export type RequestBody = Components.Schemas.CreateMailboxInput;
6125
6327
  namespace Responses {
6126
6328
  export type $200 = void;
6329
+ export type $404 = void;
6330
+ export type $403 = void;
6331
+ export type $401 = void;
6127
6332
  }
6128
6333
  }
6129
6334
  namespace GetMailbox {
@@ -6133,6 +6338,8 @@ declare namespace Paths {
6133
6338
  }
6134
6339
  namespace Responses {
6135
6340
  export type $200 = void;
6341
+ export type $404 = void;
6342
+ export type $401 = void;
6136
6343
  }
6137
6344
  }
6138
6345
  namespace RenameMailbox {
@@ -6143,6 +6350,9 @@ declare namespace Paths {
6143
6350
  export type RequestBody = Components.Schemas.RenameMailboxInput;
6144
6351
  namespace Responses {
6145
6352
  export type $200 = void;
6353
+ export type $404 = void;
6354
+ export type $403 = void;
6355
+ export type $401 = void;
6146
6356
  }
6147
6357
  }
6148
6358
  namespace DeleteMailbox {
@@ -6151,6 +6361,10 @@ declare namespace Paths {
6151
6361
  mailboxId: Components.Schemas.UUID;
6152
6362
  }
6153
6363
  namespace Responses {
6364
+ export type $204 = void;
6365
+ export type $404 = void;
6366
+ export type $403 = void;
6367
+ export type $401 = void;
6154
6368
  }
6155
6369
  }
6156
6370
  namespace AppointFolderRole {
@@ -6162,6 +6376,9 @@ declare namespace Paths {
6162
6376
  namespace Responses {
6163
6377
  export type $200 = void;
6164
6378
  export type $409 = void;
6379
+ export type $404 = void;
6380
+ export type $403 = void;
6381
+ export type $401 = void;
6165
6382
  }
6166
6383
  }
6167
6384
  namespace ListFilters {
@@ -6173,6 +6390,9 @@ declare namespace Paths {
6173
6390
  }
6174
6391
  namespace Responses {
6175
6392
  export type $200 = void;
6393
+ export type $400 = void;
6394
+ export type $404 = void;
6395
+ export type $401 = void;
6176
6396
  }
6177
6397
  }
6178
6398
  namespace CreateFilter {
@@ -6183,6 +6403,9 @@ declare namespace Paths {
6183
6403
  namespace Responses {
6184
6404
  export type $200 = void;
6185
6405
  export type $400 = void;
6406
+ export type $404 = void;
6407
+ export type $403 = void;
6408
+ export type $401 = void;
6186
6409
  }
6187
6410
  }
6188
6411
  namespace GetFilter {
@@ -6192,6 +6415,8 @@ declare namespace Paths {
6192
6415
  }
6193
6416
  namespace Responses {
6194
6417
  export type $200 = void;
6418
+ export type $404 = void;
6419
+ export type $401 = void;
6195
6420
  }
6196
6421
  }
6197
6422
  namespace UpdateFilter {
@@ -6202,6 +6427,9 @@ declare namespace Paths {
6202
6427
  export type RequestBody = Components.Schemas.UpdateFilterInput;
6203
6428
  namespace Responses {
6204
6429
  export type $200 = void;
6430
+ export type $404 = void;
6431
+ export type $403 = void;
6432
+ export type $401 = void;
6205
6433
  }
6206
6434
  }
6207
6435
  namespace DeleteFilter {
@@ -6210,6 +6438,10 @@ declare namespace Paths {
6210
6438
  filterId: Components.Schemas.UUID;
6211
6439
  }
6212
6440
  namespace Responses {
6441
+ export type $204 = void;
6442
+ export type $404 = void;
6443
+ export type $403 = void;
6444
+ export type $401 = void;
6213
6445
  }
6214
6446
  }
6215
6447
  namespace ListLabels {
@@ -6221,6 +6453,9 @@ declare namespace Paths {
6221
6453
  }
6222
6454
  namespace Responses {
6223
6455
  export type $200 = void;
6456
+ export type $400 = void;
6457
+ export type $404 = void;
6458
+ export type $401 = void;
6224
6459
  }
6225
6460
  }
6226
6461
  namespace CreateLabel {
@@ -6230,6 +6465,9 @@ declare namespace Paths {
6230
6465
  export type RequestBody = Components.Schemas.CreateLabelInput;
6231
6466
  namespace Responses {
6232
6467
  export type $200 = void;
6468
+ export type $404 = void;
6469
+ export type $403 = void;
6470
+ export type $401 = void;
6233
6471
  }
6234
6472
  }
6235
6473
  namespace GetLabel {
@@ -6239,6 +6477,8 @@ declare namespace Paths {
6239
6477
  }
6240
6478
  namespace Responses {
6241
6479
  export type $200 = void;
6480
+ export type $404 = void;
6481
+ export type $401 = void;
6242
6482
  }
6243
6483
  }
6244
6484
  namespace UpdateLabel {
@@ -6249,6 +6489,9 @@ declare namespace Paths {
6249
6489
  export type RequestBody = Components.Schemas.UpdateLabelInput;
6250
6490
  namespace Responses {
6251
6491
  export type $200 = void;
6492
+ export type $404 = void;
6493
+ export type $403 = void;
6494
+ export type $401 = void;
6252
6495
  }
6253
6496
  }
6254
6497
  namespace DeleteLabel {
@@ -6257,6 +6500,10 @@ declare namespace Paths {
6257
6500
  labelId: Components.Schemas.UUID;
6258
6501
  }
6259
6502
  namespace Responses {
6503
+ export type $204 = void;
6504
+ export type $404 = void;
6505
+ export type $403 = void;
6506
+ export type $401 = void;
6260
6507
  }
6261
6508
  }
6262
6509
  namespace CreateOrganizeJob {
@@ -6267,6 +6514,9 @@ declare namespace Paths {
6267
6514
  namespace Responses {
6268
6515
  export type $202 = void;
6269
6516
  export type $400 = void;
6517
+ export type $404 = void;
6518
+ export type $403 = void;
6519
+ export type $401 = void;
6270
6520
  }
6271
6521
  }
6272
6522
  namespace PreviewOrganize {
@@ -6277,6 +6527,8 @@ declare namespace Paths {
6277
6527
  namespace Responses {
6278
6528
  export type $200 = void;
6279
6529
  export type $400 = void;
6530
+ export type $404 = void;
6531
+ export type $401 = void;
6280
6532
  }
6281
6533
  }
6282
6534
  namespace GetOrganizeJob {
@@ -6286,11 +6538,14 @@ declare namespace Paths {
6286
6538
  }
6287
6539
  namespace Responses {
6288
6540
  export type $200 = void;
6541
+ export type $404 = void;
6542
+ export type $401 = void;
6289
6543
  }
6290
6544
  }
6291
6545
  namespace ListCalendars {
6292
6546
  namespace Responses {
6293
6547
  export type $200 = void;
6548
+ export type $401 = void;
6294
6549
  }
6295
6550
  }
6296
6551
  namespace CreateCalendar {
@@ -6298,6 +6553,7 @@ declare namespace Paths {
6298
6553
  namespace Responses {
6299
6554
  export type $200 = void;
6300
6555
  export type $400 = void;
6556
+ export type $401 = void;
6301
6557
  }
6302
6558
  }
6303
6559
  namespace GetCalendar {
@@ -6307,6 +6563,7 @@ declare namespace Paths {
6307
6563
  namespace Responses {
6308
6564
  export type $200 = void;
6309
6565
  export type $404 = void;
6566
+ export type $401 = void;
6310
6567
  }
6311
6568
  }
6312
6569
  namespace UpdateCalendar {
@@ -6318,6 +6575,7 @@ declare namespace Paths {
6318
6575
  export type $200 = void;
6319
6576
  export type $400 = void;
6320
6577
  export type $404 = void;
6578
+ export type $401 = void;
6321
6579
  }
6322
6580
  }
6323
6581
  namespace DeleteCalendar {
@@ -6328,6 +6586,7 @@ declare namespace Paths {
6328
6586
  export type $204 = void;
6329
6587
  export type $400 = void;
6330
6588
  export type $404 = void;
6589
+ export type $401 = void;
6331
6590
  }
6332
6591
  }
6333
6592
  namespace GetCalendarFeed {
@@ -6337,6 +6596,7 @@ declare namespace Paths {
6337
6596
  namespace Responses {
6338
6597
  export type $200 = void;
6339
6598
  export type $404 = void;
6599
+ export type $401 = void;
6340
6600
  }
6341
6601
  }
6342
6602
  namespace PutCalendarFeed {
@@ -6346,6 +6606,7 @@ declare namespace Paths {
6346
6606
  namespace Responses {
6347
6607
  export type $200 = void;
6348
6608
  export type $404 = void;
6609
+ export type $401 = void;
6349
6610
  }
6350
6611
  }
6351
6612
  namespace RevokeCalendarFeed {
@@ -6355,6 +6616,7 @@ declare namespace Paths {
6355
6616
  namespace Responses {
6356
6617
  export type $204 = void;
6357
6618
  export type $404 = void;
6619
+ export type $401 = void;
6358
6620
  }
6359
6621
  }
6360
6622
  namespace GetCalendarFeedIcal {
@@ -6381,6 +6643,7 @@ declare namespace Paths {
6381
6643
  export type $200 = void;
6382
6644
  export type $400 = void;
6383
6645
  export type $404 = void;
6646
+ export type $401 = void;
6384
6647
  }
6385
6648
  }
6386
6649
  namespace CreateCalendarEvent {
@@ -6389,6 +6652,7 @@ declare namespace Paths {
6389
6652
  export type $200 = void;
6390
6653
  export type $400 = void;
6391
6654
  export type $404 = void;
6655
+ export type $401 = void;
6392
6656
  }
6393
6657
  }
6394
6658
  namespace GetCalendarEvent {
@@ -6402,6 +6666,7 @@ declare namespace Paths {
6402
6666
  export type $200 = void;
6403
6667
  export type $400 = void;
6404
6668
  export type $404 = void;
6669
+ export type $401 = void;
6405
6670
  }
6406
6671
  }
6407
6672
  namespace UpdateCalendarEvent {
@@ -6422,6 +6687,7 @@ declare namespace Paths {
6422
6687
  export type $400 = void;
6423
6688
  export type $404 = void;
6424
6689
  export type $412 = void;
6690
+ export type $401 = void;
6425
6691
  }
6426
6692
  }
6427
6693
  namespace DeleteCalendarEvent {
@@ -6441,6 +6707,7 @@ declare namespace Paths {
6441
6707
  export type $400 = void;
6442
6708
  export type $404 = void;
6443
6709
  export type $412 = void;
6710
+ export type $401 = void;
6444
6711
  }
6445
6712
  }
6446
6713
  namespace ListCalendarFreeBusy {
@@ -6451,6 +6718,7 @@ declare namespace Paths {
6451
6718
  namespace Responses {
6452
6719
  export type $200 = void;
6453
6720
  export type $400 = void;
6721
+ export type $401 = void;
6454
6722
  }
6455
6723
  }
6456
6724
  namespace EmptyTrash {
@@ -6460,6 +6728,9 @@ declare namespace Paths {
6460
6728
  namespace Responses {
6461
6729
  export type $200 = void;
6462
6730
  export type $409 = void;
6731
+ export type $404 = void;
6732
+ export type $403 = void;
6733
+ export type $401 = void;
6463
6734
  }
6464
6735
  }
6465
6736
  namespace TriggerSync {
@@ -6468,6 +6739,9 @@ declare namespace Paths {
6468
6739
  }
6469
6740
  namespace Responses {
6470
6741
  export type $200 = void;
6742
+ export type $404 = void;
6743
+ export type $403 = void;
6744
+ export type $401 = void;
6471
6745
  }
6472
6746
  }
6473
6747
  namespace GetSyncStatus {
@@ -6476,24 +6750,32 @@ declare namespace Paths {
6476
6750
  }
6477
6751
  namespace Responses {
6478
6752
  export type $200 = void;
6753
+ export type $404 = void;
6754
+ export type $401 = void;
6479
6755
  }
6480
6756
  }
6481
6757
  namespace CreateAccount {
6482
6758
  export type RequestBody = Components.Schemas.CreateAccountInput;
6483
6759
  namespace Responses {
6484
6760
  export type $200 = void;
6761
+ export type $400 = void;
6762
+ export type $409 = void;
6763
+ export type $401 = void;
6485
6764
  }
6486
6765
  }
6487
6766
  namespace TestConnection {
6488
6767
  export type RequestBody = Components.Schemas.TestConnectionInput;
6489
6768
  namespace Responses {
6490
6769
  export type $200 = void;
6770
+ export type $404 = void;
6771
+ export type $401 = void;
6491
6772
  }
6492
6773
  }
6493
6774
  namespace MicrosoftOAuthStart {
6494
6775
  export type RequestBody = Components.Schemas.MicrosoftOAuthStartRequest;
6495
6776
  namespace Responses {
6496
6777
  export type $200 = void;
6778
+ export type $401 = void;
6497
6779
  }
6498
6780
  }
6499
6781
  namespace MicrosoftOAuthCallback {
@@ -6513,6 +6795,9 @@ declare namespace Paths {
6513
6795
  export type RequestBody = Components.Schemas.UpdateAccountInput;
6514
6796
  namespace Responses {
6515
6797
  export type $200 = void;
6798
+ export type $404 = void;
6799
+ export type $403 = void;
6800
+ export type $401 = void;
6516
6801
  }
6517
6802
  }
6518
6803
  namespace DeleteAccount {
@@ -6521,6 +6806,9 @@ declare namespace Paths {
6521
6806
  }
6522
6807
  namespace Responses {
6523
6808
  export type $200 = void;
6809
+ export type $404 = void;
6810
+ export type $403 = void;
6811
+ export type $401 = void;
6524
6812
  }
6525
6813
  }
6526
6814
  namespace ListThreadMessages {
@@ -6532,6 +6820,8 @@ declare namespace Paths {
6532
6820
  }
6533
6821
  namespace Responses {
6534
6822
  export type $200 = void;
6823
+ export type $404 = void;
6824
+ export type $401 = void;
6535
6825
  }
6536
6826
  }
6537
6827
  namespace ListAllThreads {
@@ -6554,6 +6844,8 @@ declare namespace Paths {
6554
6844
  }
6555
6845
  namespace Responses {
6556
6846
  export type $200 = void;
6847
+ export type $400 = void;
6848
+ export type $401 = void;
6557
6849
  }
6558
6850
  }
6559
6851
  namespace ListThreads {
@@ -6566,6 +6858,8 @@ declare namespace Paths {
6566
6858
  }
6567
6859
  namespace Responses {
6568
6860
  export type $200 = void;
6861
+ export type $400 = void;
6862
+ export type $401 = void;
6569
6863
  }
6570
6864
  }
6571
6865
  namespace SearchThreads {
@@ -6590,6 +6884,8 @@ declare namespace Paths {
6590
6884
  }
6591
6885
  namespace Responses {
6592
6886
  export type $200 = void;
6887
+ export type $400 = void;
6888
+ export type $401 = void;
6593
6889
  }
6594
6890
  }
6595
6891
  namespace SemanticSearch {
@@ -6606,12 +6902,16 @@ declare namespace Paths {
6606
6902
  }
6607
6903
  namespace Responses {
6608
6904
  export type $200 = void;
6905
+ export type $401 = void;
6609
6906
  }
6610
6907
  }
6611
6908
  namespace CreateOutboxMessage {
6612
6909
  export type RequestBody = Components.Schemas.CreateOutboxMessageInput;
6613
6910
  namespace Responses {
6614
6911
  export type $200 = void;
6912
+ export type $404 = void;
6913
+ export type $403 = void;
6914
+ export type $401 = void;
6615
6915
  }
6616
6916
  }
6617
6917
  namespace ListOutboxMessages {
@@ -6620,6 +6920,8 @@ declare namespace Paths {
6620
6920
  }
6621
6921
  namespace Responses {
6622
6922
  export type $200 = void;
6923
+ export type $400 = void;
6924
+ export type $401 = void;
6623
6925
  }
6624
6926
  }
6625
6927
  namespace GetOutboxMessage {
@@ -6628,6 +6930,8 @@ declare namespace Paths {
6628
6930
  }
6629
6931
  namespace Responses {
6630
6932
  export type $200 = void;
6933
+ export type $404 = void;
6934
+ export type $401 = void;
6631
6935
  }
6632
6936
  }
6633
6937
  namespace UpdateOutboxMessage {
@@ -6637,6 +6941,9 @@ declare namespace Paths {
6637
6941
  export type RequestBody = Components.Schemas.UpdateOutboxMessageInput;
6638
6942
  namespace Responses {
6639
6943
  export type $200 = void;
6944
+ export type $404 = void;
6945
+ export type $403 = void;
6946
+ export type $401 = void;
6640
6947
  }
6641
6948
  }
6642
6949
  namespace DeleteOutboxMessage {
@@ -6644,6 +6951,10 @@ declare namespace Paths {
6644
6951
  outboxMessageId: Components.Schemas.UUID;
6645
6952
  }
6646
6953
  namespace Responses {
6954
+ export type $204 = void;
6955
+ export type $404 = void;
6956
+ export type $403 = void;
6957
+ export type $401 = void;
6647
6958
  }
6648
6959
  }
6649
6960
  namespace SendOutboxMessage {
@@ -6652,6 +6963,9 @@ declare namespace Paths {
6652
6963
  }
6653
6964
  namespace Responses {
6654
6965
  export type $200 = void;
6966
+ export type $404 = void;
6967
+ export type $403 = void;
6968
+ export type $401 = void;
6655
6969
  }
6656
6970
  }
6657
6971
  namespace MintOutboxAttachment {
@@ -6662,6 +6976,7 @@ declare namespace Paths {
6662
6976
  namespace Responses {
6663
6977
  export type $200 = void;
6664
6978
  export type $200 = void;
6979
+ export type $401 = void;
6665
6980
  }
6666
6981
  }
6667
6982
  namespace CompleteOutboxAttachment {
@@ -6672,6 +6987,7 @@ declare namespace Paths {
6672
6987
  namespace Responses {
6673
6988
  export type $200 = void;
6674
6989
  export type $200 = void;
6990
+ export type $401 = void;
6675
6991
  }
6676
6992
  }
6677
6993
  namespace SearchAddresses {
@@ -6681,6 +6997,7 @@ declare namespace Paths {
6681
6997
  }
6682
6998
  namespace Responses {
6683
6999
  export type $200 = void;
7000
+ export type $401 = void;
6684
7001
  }
6685
7002
  }
6686
7003
  namespace UpdateAddress {
@@ -6690,6 +7007,9 @@ declare namespace Paths {
6690
7007
  export type RequestBody = Components.Schemas.UpdateAddressInput;
6691
7008
  namespace Responses {
6692
7009
  export type $200 = void;
7010
+ export type $404 = void;
7011
+ export type $403 = void;
7012
+ export type $401 = void;
6693
7013
  }
6694
7014
  }
6695
7015
  namespace DescribeMessage {
@@ -6698,6 +7018,9 @@ declare namespace Paths {
6698
7018
  }
6699
7019
  namespace Responses {
6700
7020
  export type $200 = void;
7021
+ export type $404 = void;
7022
+ export type $422 = void;
7023
+ export type $401 = void;
6701
7024
  }
6702
7025
  }
6703
7026
  namespace GetRawMessage {
@@ -6706,6 +7029,8 @@ declare namespace Paths {
6706
7029
  }
6707
7030
  namespace Responses {
6708
7031
  export type $200 = void;
7032
+ export type $404 = void;
7033
+ export type $401 = void;
6709
7034
  }
6710
7035
  }
6711
7036
  namespace UpdateMessageFlags {
@@ -6715,12 +7040,18 @@ declare namespace Paths {
6715
7040
  export type RequestBody = Components.Schemas.UpdateFlagsInput;
6716
7041
  namespace Responses {
6717
7042
  export type $200 = void;
7043
+ export type $404 = void;
7044
+ export type $403 = void;
7045
+ export type $401 = void;
6718
7046
  }
6719
7047
  }
6720
7048
  namespace UpdateFlags {
6721
7049
  export type RequestBody = Components.Schemas.BulkUpdateFlagsInput;
6722
7050
  namespace Responses {
6723
7051
  export type $200 = void;
7052
+ export type $404 = void;
7053
+ export type $403 = void;
7054
+ export type $401 = void;
6724
7055
  }
6725
7056
  }
6726
7057
  namespace DeleteMessages {
@@ -6728,6 +7059,9 @@ declare namespace Paths {
6728
7059
  namespace Responses {
6729
7060
  export type $200 = void;
6730
7061
  export type $409 = void;
7062
+ export type $404 = void;
7063
+ export type $403 = void;
7064
+ export type $401 = void;
6731
7065
  }
6732
7066
  }
6733
7067
  namespace MoveMessages {
@@ -6735,6 +7069,9 @@ declare namespace Paths {
6735
7069
  namespace Responses {
6736
7070
  export type $200 = void;
6737
7071
  export type $409 = void;
7072
+ export type $404 = void;
7073
+ export type $403 = void;
7074
+ export type $401 = void;
6738
7075
  }
6739
7076
  }
6740
7077
  namespace CopyMessages {
@@ -6742,24 +7079,36 @@ declare namespace Paths {
6742
7079
  namespace Responses {
6743
7080
  export type $200 = void;
6744
7081
  export type $409 = void;
7082
+ export type $404 = void;
7083
+ export type $403 = void;
7084
+ export type $401 = void;
6745
7085
  }
6746
7086
  }
6747
7087
  namespace UpdateMessageLabels {
6748
7088
  export type RequestBody = Components.Schemas.UpdateMessageLabelsInput;
6749
7089
  namespace Responses {
6750
7090
  export type $200 = void;
7091
+ export type $404 = void;
7092
+ export type $403 = void;
7093
+ export type $401 = void;
6751
7094
  }
6752
7095
  }
6753
7096
  namespace ReportSpam {
6754
7097
  export type RequestBody = Components.Schemas.BulkMessageInput;
6755
7098
  namespace Responses {
6756
7099
  export type $200 = void;
7100
+ export type $404 = void;
7101
+ export type $403 = void;
7102
+ export type $401 = void;
6757
7103
  }
6758
7104
  }
6759
7105
  namespace NotSpam {
6760
7106
  export type RequestBody = Components.Schemas.BulkMessageInput;
6761
7107
  namespace Responses {
6762
7108
  export type $200 = void;
7109
+ export type $404 = void;
7110
+ export type $403 = void;
7111
+ export type $401 = void;
6763
7112
  }
6764
7113
  }
6765
7114
  namespace ListCalendarSuggestions {
@@ -6770,6 +7119,7 @@ declare namespace Paths {
6770
7119
  namespace Responses {
6771
7120
  export type $200 = void;
6772
7121
  export type $400 = void;
7122
+ export type $401 = void;
6773
7123
  }
6774
7124
  }
6775
7125
  namespace ListMessageCalendarSuggestions {
@@ -6779,6 +7129,7 @@ declare namespace Paths {
6779
7129
  namespace Responses {
6780
7130
  export type $200 = void;
6781
7131
  export type $400 = void;
7132
+ export type $401 = void;
6782
7133
  }
6783
7134
  }
6784
7135
  namespace AcceptCalendarSuggestion {
@@ -6789,6 +7140,8 @@ declare namespace Paths {
6789
7140
  namespace Responses {
6790
7141
  export type $200 = void;
6791
7142
  export type $400 = void;
7143
+ export type $404 = void;
7144
+ export type $401 = void;
6792
7145
  }
6793
7146
  }
6794
7147
  namespace DeclineCalendarSuggestion {
@@ -6798,6 +7151,8 @@ declare namespace Paths {
6798
7151
  namespace Responses {
6799
7152
  export type $200 = void;
6800
7153
  export type $400 = void;
7154
+ export type $404 = void;
7155
+ export type $401 = void;
6801
7156
  }
6802
7157
  }
6803
7158
  namespace DismissCalendarSuggestion {
@@ -6808,6 +7163,8 @@ declare namespace Paths {
6808
7163
  namespace Responses {
6809
7164
  export type $200 = void;
6810
7165
  export type $400 = void;
7166
+ export type $404 = void;
7167
+ export type $401 = void;
6811
7168
  }
6812
7169
  }
6813
7170
  }
@@ -6932,7 +7289,7 @@ export interface OperationMethods {
6932
7289
  parameters?: Parameters<Paths.DeleteMailbox.PathParameters> | null,
6933
7290
  data?: any,
6934
7291
  config?: AxiosRequestConfig
6935
- ): OperationResponse<any>;
7292
+ ): OperationResponse<Paths.DeleteMailbox.Responses.$204>;
6936
7293
  /**
6937
7294
  * appointFolderRole - Appoint a canonical role to a mailbox, or clear it. Exclusive by construction: the role always resolves to exactly one mailbox, so appointing a new one silently replaces whichever mailbox previously held it — there is no second place a duplicate appointment could live. Returns the account with its refreshed folderAppointments.
6938
7295
  */
@@ -6980,7 +7337,7 @@ export interface OperationMethods {
6980
7337
  parameters?: Parameters<Paths.DeleteFilter.PathParameters> | null,
6981
7338
  data?: any,
6982
7339
  config?: AxiosRequestConfig
6983
- ): OperationResponse<any>;
7340
+ ): OperationResponse<Paths.DeleteFilter.Responses.$204>;
6984
7341
  /**
6985
7342
  * listLabels
6986
7343
  */
@@ -7020,7 +7377,7 @@ export interface OperationMethods {
7020
7377
  parameters?: Parameters<Paths.DeleteLabel.PathParameters> | null,
7021
7378
  data?: any,
7022
7379
  config?: AxiosRequestConfig
7023
- ): OperationResponse<any>;
7380
+ ): OperationResponse<Paths.DeleteLabel.Responses.$204>;
7024
7381
  /**
7025
7382
  * createOrganizeJob - Start a one-time "all like these" back-apply: match the corpus against the given predicate and apply the action to every match, in one pass. Returns immediately with an organizeJobId; poll GET /accounts/{accountId}/organize/{organizeJobId} for state and counts. Never creates a Filter or FilterAnchor row (RFC 034 recap).
7026
7383
  */
@@ -7399,7 +7756,7 @@ Counting: `count=true` answers how many CONVERSATIONS match, over the whole scop
7399
7756
  parameters?: Parameters<Paths.DeleteOutboxMessage.PathParameters> | null,
7400
7757
  data?: any,
7401
7758
  config?: AxiosRequestConfig
7402
- ): OperationResponse<any>;
7759
+ ): OperationResponse<Paths.DeleteOutboxMessage.Responses.$204>;
7403
7760
  /**
7404
7761
  * sendOutboxMessage - Queue a draft message for sending
7405
7762
  */
@@ -7718,7 +8075,7 @@ export interface PathsDictionary {
7718
8075
  parameters?: Parameters<Paths.DeleteMailbox.PathParameters> | null,
7719
8076
  data?: any,
7720
8077
  config?: AxiosRequestConfig
7721
- ): OperationResponse<any>;
8078
+ ): OperationResponse<Paths.DeleteMailbox.Responses.$204>;
7722
8079
  };
7723
8080
  ['/accounts/{accountId}/folder-roles/{role}']: {
7724
8081
  /**
@@ -7772,7 +8129,7 @@ export interface PathsDictionary {
7772
8129
  parameters?: Parameters<Paths.DeleteFilter.PathParameters> | null,
7773
8130
  data?: any,
7774
8131
  config?: AxiosRequestConfig
7775
- ): OperationResponse<any>;
8132
+ ): OperationResponse<Paths.DeleteFilter.Responses.$204>;
7776
8133
  };
7777
8134
  ['/accounts/{accountId}/labels']: {
7778
8135
  /**
@@ -7816,7 +8173,7 @@ export interface PathsDictionary {
7816
8173
  parameters?: Parameters<Paths.DeleteLabel.PathParameters> | null,
7817
8174
  data?: any,
7818
8175
  config?: AxiosRequestConfig
7819
- ): OperationResponse<any>;
8176
+ ): OperationResponse<Paths.DeleteLabel.Responses.$204>;
7820
8177
  };
7821
8178
  ['/accounts/{accountId}/organize']: {
7822
8179
  /**
@@ -8245,7 +8602,7 @@ Counting: `count=true` answers how many CONVERSATIONS match, over the whole scop
8245
8602
  parameters?: Parameters<Paths.DeleteOutboxMessage.PathParameters> | null,
8246
8603
  data?: any,
8247
8604
  config?: AxiosRequestConfig
8248
- ): OperationResponse<any>;
8605
+ ): OperationResponse<Paths.DeleteOutboxMessage.Responses.$204>;
8249
8606
  };
8250
8607
  ['/outbox/{outboxMessageId}/send']: {
8251
8608
  /**
@@ -8467,20 +8824,24 @@ declined, dismissed or superseded — or when its iCalendar will not parse.
8467
8824
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>;
8468
8825
 
8469
8826
  export type CognitoAuthorizer = Components.Schemas.CognitoAuthorizer;
8470
- export type ValidationError = Components.Schemas.ValidationError;
8471
8827
  export type ApiError = Components.Schemas.ApiError;
8828
+ export type ValidationError = Components.Schemas.ValidationError;
8829
+ export type RequestValidationDetail = Components.Schemas.RequestValidationDetail;
8830
+ export type UnauthorizedError = Components.Schemas.UnauthorizedError;
8472
8831
  export type AccessPattern = Components.Schemas.AccessPattern;
8832
+ export type NotFoundError = Components.Schemas.NotFoundError;
8833
+ export type ConflictError = Components.Schemas.ConflictError;
8834
+ export type UnprocessableEntityError = Components.Schemas.UnprocessableEntityError;
8473
8835
  export type ResultList = Components.Schemas.ResultList;
8836
+ export type ForbiddenError = Components.Schemas.ForbiddenError;
8837
+ export type NoContent = Components.Schemas.NoContent;
8474
8838
  export type FolderRoleConflict = Components.Schemas.FolderRoleConflict;
8475
8839
  export type AppointFolderRoleConflict = Components.Schemas.AppointFolderRoleConflict;
8476
- export type NotFoundError = Components.Schemas.NotFoundError;
8477
8840
  export type PreconditionFailedError = Components.Schemas.PreconditionFailedError;
8478
8841
  export type DeleteMessagesConflict = Components.Schemas.DeleteMessagesConflict;
8479
8842
  export type MessagePlacementConflict = Components.Schemas.MessagePlacementConflict;
8480
8843
  export type AmazonApiGatewayIntegration = Components.Schemas.AmazonApiGatewayIntegration;
8481
8844
  export type InternalServerError = Components.Schemas.InternalServerError;
8482
- export type UnauthorizedError = Components.Schemas.UnauthorizedError;
8483
- export type ForbiddenError = Components.Schemas.ForbiddenError;
8484
8845
  export type DeleteMeInput = Components.Schemas.DeleteMeInput;
8485
8846
  export type DeleteAccountConfigResponse = Components.Schemas.DeleteAccountConfigResponse;
8486
8847
  export type VipSuggestionsResponse = Components.Schemas.VipSuggestionsResponse;
@@ -8573,8 +8934,8 @@ export type OutboxAttachmentResponse = Components.Schemas.OutboxAttachmentRespon
8573
8934
  export type UpdateOutboxMessageInput = Components.Schemas.UpdateOutboxMessageInput;
8574
8935
  export type MintOutboxAttachmentInput = Components.Schemas.MintOutboxAttachmentInput;
8575
8936
  export type MintOutboxAttachmentResponse = Components.Schemas.MintOutboxAttachmentResponse;
8576
- export type OutboxAttachmentRejected = Components.Schemas.OutboxAttachmentRejected;
8577
8937
  export type OutboxAttachmentRejection = Components.Schemas.OutboxAttachmentRejection;
8938
+ export type OutboxAttachmentRejected = Components.Schemas.OutboxAttachmentRejected;
8578
8939
  export type Address = Components.Schemas.Address;
8579
8940
  export type AddressFlags = Components.Schemas.AddressFlags;
8580
8941
  export type TrustedFlag = Components.Schemas.TrustedFlag;