@remit/api-openapi-types 0.0.57 → 0.0.59

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 +419 -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.59",
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
  /**
@@ -2157,6 +2318,10 @@ vectors at match time and never persisted as a FilterAnchor row.
2157
2318
  * True when the semantic widen could not run because this deployment ships no vector pipeline (self-host without sqlite-vec / the embedding model). The matched set is then the literal matches only, or empty for an anchor-only predicate; literal search is unaffected. Absent on deployments where the widen ran.
2158
2319
  */
2159
2320
  semanticUnavailable?: boolean;
2321
+ /**
2322
+ * True when the widen ran but this account's semantic index held nothing to answer with — no vectors at all, or none yet for the anchor message. A zero count is then a fact about the index, which is still filling, rather than about the rule. Absent when the index answered.
2323
+ */
2324
+ semanticIndexEmpty?: boolean;
2160
2325
  }
2161
2326
  /**
2162
2327
  * An async "all like these" back-apply job (RFC 034 recap, #1278). Modeled on
@@ -3990,16 +4155,39 @@ either way and cannot tell which it received.
3990
4155
  uploadExpiresAt: number;
3991
4156
  }
3992
4157
  /**
3993
- * Refusal response for an attachment
4158
+ * A file the server refused, with everything the composer needs to say why
3994
4159
  */
3995
- export interface OutboxAttachmentRejected {
3996
- statusCode: 400 | 413;
3997
- error: OutboxAttachmentRejection;
4160
+ export interface OutboxAttachmentRejection {
4161
+ /**
4162
+ * `attachment_rejected`, the code every refusal here carries. `reason` says which one.
4163
+ */
4164
+ code: string;
4165
+ /**
4166
+ * Machine-readable reason
4167
+ */
4168
+ reason: OutboxAttachmentRejectionReason;
4169
+ /**
4170
+ * Sentence naming the file, its size and the cap
4171
+ */
4172
+ message: String512;
4173
+ /**
4174
+ * Total bytes one message may carry
4175
+ */
4176
+ limitBytes: number;
4177
+ /**
4178
+ * Bytes already spoken for on this draft, uploaded or merely reserved
4179
+ */
4180
+ usedBytes: number;
3998
4181
  }
3999
4182
  /**
4000
- * A file the server refused, with everything the composer needs to say why
4183
+ * Refusal response for an attachment. Flat, like every other error body.
4001
4184
  */
4002
- export interface OutboxAttachmentRejection {
4185
+ export interface OutboxAttachmentRejected {
4186
+ statusCode: 400 | 413;
4187
+ /**
4188
+ * `attachment_rejected`, the code every refusal here carries. `reason` says which one.
4189
+ */
4190
+ code: string;
4003
4191
  /**
4004
4192
  * Machine-readable reason
4005
4193
  */
@@ -6049,16 +6237,19 @@ declare namespace Paths {
6049
6237
  namespace Responses {
6050
6238
  export type $202 = void;
6051
6239
  export type $400 = void;
6240
+ export type $401 = void;
6052
6241
  }
6053
6242
  }
6054
6243
  namespace ListVipSuggestions {
6055
6244
  namespace Responses {
6056
6245
  export type $200 = void;
6246
+ export type $401 = void;
6057
6247
  }
6058
6248
  }
6059
6249
  namespace CreateExport {
6060
6250
  namespace Responses {
6061
6251
  export type $202 = void;
6252
+ export type $401 = void;
6062
6253
  }
6063
6254
  }
6064
6255
  namespace GetExport {
@@ -6067,21 +6258,26 @@ declare namespace Paths {
6067
6258
  }
6068
6259
  namespace Responses {
6069
6260
  export type $200 = void;
6261
+ export type $404 = void;
6262
+ export type $401 = void;
6070
6263
  }
6071
6264
  }
6072
6265
  namespace ListQuarantine {
6073
6266
  namespace Responses {
6074
6267
  export type $200 = void;
6268
+ export type $401 = void;
6075
6269
  }
6076
6270
  }
6077
6271
  namespace GetConfig {
6078
6272
  namespace Responses {
6079
6273
  export type $200 = void;
6274
+ export type $401 = void;
6080
6275
  }
6081
6276
  }
6082
6277
  namespace ExportConfig {
6083
6278
  namespace Responses {
6084
6279
  export type $200 = void;
6280
+ export type $401 = void;
6085
6281
  }
6086
6282
  }
6087
6283
  namespace ImportConfig {
@@ -6090,6 +6286,7 @@ declare namespace Paths {
6090
6286
  export type $200 = void;
6091
6287
  export type $400 = void;
6092
6288
  export type $409 = void;
6289
+ export type $401 = void;
6093
6290
  }
6094
6291
  }
6095
6292
  namespace GetSystemUpdate {
@@ -6098,12 +6295,18 @@ declare namespace Paths {
6098
6295
  }
6099
6296
  namespace Responses {
6100
6297
  export type $200 = void;
6298
+ export type $401 = void;
6299
+ export type $404 = void;
6101
6300
  }
6102
6301
  }
6103
6302
  namespace ApplySystemUpdate {
6104
6303
  export type RequestBody = Components.Schemas.ApplyUpdateInput;
6105
6304
  namespace Responses {
6106
6305
  export type $200 = void;
6306
+ export type $401 = void;
6307
+ export type $404 = void;
6308
+ export type $409 = void;
6309
+ export type $422 = void;
6107
6310
  }
6108
6311
  }
6109
6312
  namespace ListMailboxes {
@@ -6115,6 +6318,9 @@ declare namespace Paths {
6115
6318
  }
6116
6319
  namespace Responses {
6117
6320
  export type $200 = void;
6321
+ export type $400 = void;
6322
+ export type $404 = void;
6323
+ export type $401 = void;
6118
6324
  }
6119
6325
  }
6120
6326
  namespace CreateMailbox {
@@ -6124,6 +6330,9 @@ declare namespace Paths {
6124
6330
  export type RequestBody = Components.Schemas.CreateMailboxInput;
6125
6331
  namespace Responses {
6126
6332
  export type $200 = void;
6333
+ export type $404 = void;
6334
+ export type $403 = void;
6335
+ export type $401 = void;
6127
6336
  }
6128
6337
  }
6129
6338
  namespace GetMailbox {
@@ -6133,6 +6342,8 @@ declare namespace Paths {
6133
6342
  }
6134
6343
  namespace Responses {
6135
6344
  export type $200 = void;
6345
+ export type $404 = void;
6346
+ export type $401 = void;
6136
6347
  }
6137
6348
  }
6138
6349
  namespace RenameMailbox {
@@ -6143,6 +6354,9 @@ declare namespace Paths {
6143
6354
  export type RequestBody = Components.Schemas.RenameMailboxInput;
6144
6355
  namespace Responses {
6145
6356
  export type $200 = void;
6357
+ export type $404 = void;
6358
+ export type $403 = void;
6359
+ export type $401 = void;
6146
6360
  }
6147
6361
  }
6148
6362
  namespace DeleteMailbox {
@@ -6151,6 +6365,10 @@ declare namespace Paths {
6151
6365
  mailboxId: Components.Schemas.UUID;
6152
6366
  }
6153
6367
  namespace Responses {
6368
+ export type $204 = void;
6369
+ export type $404 = void;
6370
+ export type $403 = void;
6371
+ export type $401 = void;
6154
6372
  }
6155
6373
  }
6156
6374
  namespace AppointFolderRole {
@@ -6162,6 +6380,9 @@ declare namespace Paths {
6162
6380
  namespace Responses {
6163
6381
  export type $200 = void;
6164
6382
  export type $409 = void;
6383
+ export type $404 = void;
6384
+ export type $403 = void;
6385
+ export type $401 = void;
6165
6386
  }
6166
6387
  }
6167
6388
  namespace ListFilters {
@@ -6173,6 +6394,9 @@ declare namespace Paths {
6173
6394
  }
6174
6395
  namespace Responses {
6175
6396
  export type $200 = void;
6397
+ export type $400 = void;
6398
+ export type $404 = void;
6399
+ export type $401 = void;
6176
6400
  }
6177
6401
  }
6178
6402
  namespace CreateFilter {
@@ -6183,6 +6407,9 @@ declare namespace Paths {
6183
6407
  namespace Responses {
6184
6408
  export type $200 = void;
6185
6409
  export type $400 = void;
6410
+ export type $404 = void;
6411
+ export type $403 = void;
6412
+ export type $401 = void;
6186
6413
  }
6187
6414
  }
6188
6415
  namespace GetFilter {
@@ -6192,6 +6419,8 @@ declare namespace Paths {
6192
6419
  }
6193
6420
  namespace Responses {
6194
6421
  export type $200 = void;
6422
+ export type $404 = void;
6423
+ export type $401 = void;
6195
6424
  }
6196
6425
  }
6197
6426
  namespace UpdateFilter {
@@ -6202,6 +6431,9 @@ declare namespace Paths {
6202
6431
  export type RequestBody = Components.Schemas.UpdateFilterInput;
6203
6432
  namespace Responses {
6204
6433
  export type $200 = void;
6434
+ export type $404 = void;
6435
+ export type $403 = void;
6436
+ export type $401 = void;
6205
6437
  }
6206
6438
  }
6207
6439
  namespace DeleteFilter {
@@ -6210,6 +6442,10 @@ declare namespace Paths {
6210
6442
  filterId: Components.Schemas.UUID;
6211
6443
  }
6212
6444
  namespace Responses {
6445
+ export type $204 = void;
6446
+ export type $404 = void;
6447
+ export type $403 = void;
6448
+ export type $401 = void;
6213
6449
  }
6214
6450
  }
6215
6451
  namespace ListLabels {
@@ -6221,6 +6457,9 @@ declare namespace Paths {
6221
6457
  }
6222
6458
  namespace Responses {
6223
6459
  export type $200 = void;
6460
+ export type $400 = void;
6461
+ export type $404 = void;
6462
+ export type $401 = void;
6224
6463
  }
6225
6464
  }
6226
6465
  namespace CreateLabel {
@@ -6230,6 +6469,9 @@ declare namespace Paths {
6230
6469
  export type RequestBody = Components.Schemas.CreateLabelInput;
6231
6470
  namespace Responses {
6232
6471
  export type $200 = void;
6472
+ export type $404 = void;
6473
+ export type $403 = void;
6474
+ export type $401 = void;
6233
6475
  }
6234
6476
  }
6235
6477
  namespace GetLabel {
@@ -6239,6 +6481,8 @@ declare namespace Paths {
6239
6481
  }
6240
6482
  namespace Responses {
6241
6483
  export type $200 = void;
6484
+ export type $404 = void;
6485
+ export type $401 = void;
6242
6486
  }
6243
6487
  }
6244
6488
  namespace UpdateLabel {
@@ -6249,6 +6493,9 @@ declare namespace Paths {
6249
6493
  export type RequestBody = Components.Schemas.UpdateLabelInput;
6250
6494
  namespace Responses {
6251
6495
  export type $200 = void;
6496
+ export type $404 = void;
6497
+ export type $403 = void;
6498
+ export type $401 = void;
6252
6499
  }
6253
6500
  }
6254
6501
  namespace DeleteLabel {
@@ -6257,6 +6504,10 @@ declare namespace Paths {
6257
6504
  labelId: Components.Schemas.UUID;
6258
6505
  }
6259
6506
  namespace Responses {
6507
+ export type $204 = void;
6508
+ export type $404 = void;
6509
+ export type $403 = void;
6510
+ export type $401 = void;
6260
6511
  }
6261
6512
  }
6262
6513
  namespace CreateOrganizeJob {
@@ -6267,6 +6518,9 @@ declare namespace Paths {
6267
6518
  namespace Responses {
6268
6519
  export type $202 = void;
6269
6520
  export type $400 = void;
6521
+ export type $404 = void;
6522
+ export type $403 = void;
6523
+ export type $401 = void;
6270
6524
  }
6271
6525
  }
6272
6526
  namespace PreviewOrganize {
@@ -6277,6 +6531,8 @@ declare namespace Paths {
6277
6531
  namespace Responses {
6278
6532
  export type $200 = void;
6279
6533
  export type $400 = void;
6534
+ export type $404 = void;
6535
+ export type $401 = void;
6280
6536
  }
6281
6537
  }
6282
6538
  namespace GetOrganizeJob {
@@ -6286,11 +6542,14 @@ declare namespace Paths {
6286
6542
  }
6287
6543
  namespace Responses {
6288
6544
  export type $200 = void;
6545
+ export type $404 = void;
6546
+ export type $401 = void;
6289
6547
  }
6290
6548
  }
6291
6549
  namespace ListCalendars {
6292
6550
  namespace Responses {
6293
6551
  export type $200 = void;
6552
+ export type $401 = void;
6294
6553
  }
6295
6554
  }
6296
6555
  namespace CreateCalendar {
@@ -6298,6 +6557,7 @@ declare namespace Paths {
6298
6557
  namespace Responses {
6299
6558
  export type $200 = void;
6300
6559
  export type $400 = void;
6560
+ export type $401 = void;
6301
6561
  }
6302
6562
  }
6303
6563
  namespace GetCalendar {
@@ -6307,6 +6567,7 @@ declare namespace Paths {
6307
6567
  namespace Responses {
6308
6568
  export type $200 = void;
6309
6569
  export type $404 = void;
6570
+ export type $401 = void;
6310
6571
  }
6311
6572
  }
6312
6573
  namespace UpdateCalendar {
@@ -6318,6 +6579,7 @@ declare namespace Paths {
6318
6579
  export type $200 = void;
6319
6580
  export type $400 = void;
6320
6581
  export type $404 = void;
6582
+ export type $401 = void;
6321
6583
  }
6322
6584
  }
6323
6585
  namespace DeleteCalendar {
@@ -6328,6 +6590,7 @@ declare namespace Paths {
6328
6590
  export type $204 = void;
6329
6591
  export type $400 = void;
6330
6592
  export type $404 = void;
6593
+ export type $401 = void;
6331
6594
  }
6332
6595
  }
6333
6596
  namespace GetCalendarFeed {
@@ -6337,6 +6600,7 @@ declare namespace Paths {
6337
6600
  namespace Responses {
6338
6601
  export type $200 = void;
6339
6602
  export type $404 = void;
6603
+ export type $401 = void;
6340
6604
  }
6341
6605
  }
6342
6606
  namespace PutCalendarFeed {
@@ -6346,6 +6610,7 @@ declare namespace Paths {
6346
6610
  namespace Responses {
6347
6611
  export type $200 = void;
6348
6612
  export type $404 = void;
6613
+ export type $401 = void;
6349
6614
  }
6350
6615
  }
6351
6616
  namespace RevokeCalendarFeed {
@@ -6355,6 +6620,7 @@ declare namespace Paths {
6355
6620
  namespace Responses {
6356
6621
  export type $204 = void;
6357
6622
  export type $404 = void;
6623
+ export type $401 = void;
6358
6624
  }
6359
6625
  }
6360
6626
  namespace GetCalendarFeedIcal {
@@ -6381,6 +6647,7 @@ declare namespace Paths {
6381
6647
  export type $200 = void;
6382
6648
  export type $400 = void;
6383
6649
  export type $404 = void;
6650
+ export type $401 = void;
6384
6651
  }
6385
6652
  }
6386
6653
  namespace CreateCalendarEvent {
@@ -6389,6 +6656,7 @@ declare namespace Paths {
6389
6656
  export type $200 = void;
6390
6657
  export type $400 = void;
6391
6658
  export type $404 = void;
6659
+ export type $401 = void;
6392
6660
  }
6393
6661
  }
6394
6662
  namespace GetCalendarEvent {
@@ -6402,6 +6670,7 @@ declare namespace Paths {
6402
6670
  export type $200 = void;
6403
6671
  export type $400 = void;
6404
6672
  export type $404 = void;
6673
+ export type $401 = void;
6405
6674
  }
6406
6675
  }
6407
6676
  namespace UpdateCalendarEvent {
@@ -6422,6 +6691,7 @@ declare namespace Paths {
6422
6691
  export type $400 = void;
6423
6692
  export type $404 = void;
6424
6693
  export type $412 = void;
6694
+ export type $401 = void;
6425
6695
  }
6426
6696
  }
6427
6697
  namespace DeleteCalendarEvent {
@@ -6441,6 +6711,7 @@ declare namespace Paths {
6441
6711
  export type $400 = void;
6442
6712
  export type $404 = void;
6443
6713
  export type $412 = void;
6714
+ export type $401 = void;
6444
6715
  }
6445
6716
  }
6446
6717
  namespace ListCalendarFreeBusy {
@@ -6451,6 +6722,7 @@ declare namespace Paths {
6451
6722
  namespace Responses {
6452
6723
  export type $200 = void;
6453
6724
  export type $400 = void;
6725
+ export type $401 = void;
6454
6726
  }
6455
6727
  }
6456
6728
  namespace EmptyTrash {
@@ -6460,6 +6732,9 @@ declare namespace Paths {
6460
6732
  namespace Responses {
6461
6733
  export type $200 = void;
6462
6734
  export type $409 = void;
6735
+ export type $404 = void;
6736
+ export type $403 = void;
6737
+ export type $401 = void;
6463
6738
  }
6464
6739
  }
6465
6740
  namespace TriggerSync {
@@ -6468,6 +6743,9 @@ declare namespace Paths {
6468
6743
  }
6469
6744
  namespace Responses {
6470
6745
  export type $200 = void;
6746
+ export type $404 = void;
6747
+ export type $403 = void;
6748
+ export type $401 = void;
6471
6749
  }
6472
6750
  }
6473
6751
  namespace GetSyncStatus {
@@ -6476,24 +6754,32 @@ declare namespace Paths {
6476
6754
  }
6477
6755
  namespace Responses {
6478
6756
  export type $200 = void;
6757
+ export type $404 = void;
6758
+ export type $401 = void;
6479
6759
  }
6480
6760
  }
6481
6761
  namespace CreateAccount {
6482
6762
  export type RequestBody = Components.Schemas.CreateAccountInput;
6483
6763
  namespace Responses {
6484
6764
  export type $200 = void;
6765
+ export type $400 = void;
6766
+ export type $409 = void;
6767
+ export type $401 = void;
6485
6768
  }
6486
6769
  }
6487
6770
  namespace TestConnection {
6488
6771
  export type RequestBody = Components.Schemas.TestConnectionInput;
6489
6772
  namespace Responses {
6490
6773
  export type $200 = void;
6774
+ export type $404 = void;
6775
+ export type $401 = void;
6491
6776
  }
6492
6777
  }
6493
6778
  namespace MicrosoftOAuthStart {
6494
6779
  export type RequestBody = Components.Schemas.MicrosoftOAuthStartRequest;
6495
6780
  namespace Responses {
6496
6781
  export type $200 = void;
6782
+ export type $401 = void;
6497
6783
  }
6498
6784
  }
6499
6785
  namespace MicrosoftOAuthCallback {
@@ -6513,6 +6799,9 @@ declare namespace Paths {
6513
6799
  export type RequestBody = Components.Schemas.UpdateAccountInput;
6514
6800
  namespace Responses {
6515
6801
  export type $200 = void;
6802
+ export type $404 = void;
6803
+ export type $403 = void;
6804
+ export type $401 = void;
6516
6805
  }
6517
6806
  }
6518
6807
  namespace DeleteAccount {
@@ -6521,6 +6810,9 @@ declare namespace Paths {
6521
6810
  }
6522
6811
  namespace Responses {
6523
6812
  export type $200 = void;
6813
+ export type $404 = void;
6814
+ export type $403 = void;
6815
+ export type $401 = void;
6524
6816
  }
6525
6817
  }
6526
6818
  namespace ListThreadMessages {
@@ -6532,6 +6824,8 @@ declare namespace Paths {
6532
6824
  }
6533
6825
  namespace Responses {
6534
6826
  export type $200 = void;
6827
+ export type $404 = void;
6828
+ export type $401 = void;
6535
6829
  }
6536
6830
  }
6537
6831
  namespace ListAllThreads {
@@ -6554,6 +6848,8 @@ declare namespace Paths {
6554
6848
  }
6555
6849
  namespace Responses {
6556
6850
  export type $200 = void;
6851
+ export type $400 = void;
6852
+ export type $401 = void;
6557
6853
  }
6558
6854
  }
6559
6855
  namespace ListThreads {
@@ -6566,6 +6862,8 @@ declare namespace Paths {
6566
6862
  }
6567
6863
  namespace Responses {
6568
6864
  export type $200 = void;
6865
+ export type $400 = void;
6866
+ export type $401 = void;
6569
6867
  }
6570
6868
  }
6571
6869
  namespace SearchThreads {
@@ -6590,6 +6888,8 @@ declare namespace Paths {
6590
6888
  }
6591
6889
  namespace Responses {
6592
6890
  export type $200 = void;
6891
+ export type $400 = void;
6892
+ export type $401 = void;
6593
6893
  }
6594
6894
  }
6595
6895
  namespace SemanticSearch {
@@ -6606,12 +6906,16 @@ declare namespace Paths {
6606
6906
  }
6607
6907
  namespace Responses {
6608
6908
  export type $200 = void;
6909
+ export type $401 = void;
6609
6910
  }
6610
6911
  }
6611
6912
  namespace CreateOutboxMessage {
6612
6913
  export type RequestBody = Components.Schemas.CreateOutboxMessageInput;
6613
6914
  namespace Responses {
6614
6915
  export type $200 = void;
6916
+ export type $404 = void;
6917
+ export type $403 = void;
6918
+ export type $401 = void;
6615
6919
  }
6616
6920
  }
6617
6921
  namespace ListOutboxMessages {
@@ -6620,6 +6924,8 @@ declare namespace Paths {
6620
6924
  }
6621
6925
  namespace Responses {
6622
6926
  export type $200 = void;
6927
+ export type $400 = void;
6928
+ export type $401 = void;
6623
6929
  }
6624
6930
  }
6625
6931
  namespace GetOutboxMessage {
@@ -6628,6 +6934,8 @@ declare namespace Paths {
6628
6934
  }
6629
6935
  namespace Responses {
6630
6936
  export type $200 = void;
6937
+ export type $404 = void;
6938
+ export type $401 = void;
6631
6939
  }
6632
6940
  }
6633
6941
  namespace UpdateOutboxMessage {
@@ -6637,6 +6945,9 @@ declare namespace Paths {
6637
6945
  export type RequestBody = Components.Schemas.UpdateOutboxMessageInput;
6638
6946
  namespace Responses {
6639
6947
  export type $200 = void;
6948
+ export type $404 = void;
6949
+ export type $403 = void;
6950
+ export type $401 = void;
6640
6951
  }
6641
6952
  }
6642
6953
  namespace DeleteOutboxMessage {
@@ -6644,6 +6955,10 @@ declare namespace Paths {
6644
6955
  outboxMessageId: Components.Schemas.UUID;
6645
6956
  }
6646
6957
  namespace Responses {
6958
+ export type $204 = void;
6959
+ export type $404 = void;
6960
+ export type $403 = void;
6961
+ export type $401 = void;
6647
6962
  }
6648
6963
  }
6649
6964
  namespace SendOutboxMessage {
@@ -6652,6 +6967,9 @@ declare namespace Paths {
6652
6967
  }
6653
6968
  namespace Responses {
6654
6969
  export type $200 = void;
6970
+ export type $404 = void;
6971
+ export type $403 = void;
6972
+ export type $401 = void;
6655
6973
  }
6656
6974
  }
6657
6975
  namespace MintOutboxAttachment {
@@ -6662,6 +6980,7 @@ declare namespace Paths {
6662
6980
  namespace Responses {
6663
6981
  export type $200 = void;
6664
6982
  export type $200 = void;
6983
+ export type $401 = void;
6665
6984
  }
6666
6985
  }
6667
6986
  namespace CompleteOutboxAttachment {
@@ -6672,6 +6991,7 @@ declare namespace Paths {
6672
6991
  namespace Responses {
6673
6992
  export type $200 = void;
6674
6993
  export type $200 = void;
6994
+ export type $401 = void;
6675
6995
  }
6676
6996
  }
6677
6997
  namespace SearchAddresses {
@@ -6681,6 +7001,7 @@ declare namespace Paths {
6681
7001
  }
6682
7002
  namespace Responses {
6683
7003
  export type $200 = void;
7004
+ export type $401 = void;
6684
7005
  }
6685
7006
  }
6686
7007
  namespace UpdateAddress {
@@ -6690,6 +7011,9 @@ declare namespace Paths {
6690
7011
  export type RequestBody = Components.Schemas.UpdateAddressInput;
6691
7012
  namespace Responses {
6692
7013
  export type $200 = void;
7014
+ export type $404 = void;
7015
+ export type $403 = void;
7016
+ export type $401 = void;
6693
7017
  }
6694
7018
  }
6695
7019
  namespace DescribeMessage {
@@ -6698,6 +7022,9 @@ declare namespace Paths {
6698
7022
  }
6699
7023
  namespace Responses {
6700
7024
  export type $200 = void;
7025
+ export type $404 = void;
7026
+ export type $422 = void;
7027
+ export type $401 = void;
6701
7028
  }
6702
7029
  }
6703
7030
  namespace GetRawMessage {
@@ -6706,6 +7033,8 @@ declare namespace Paths {
6706
7033
  }
6707
7034
  namespace Responses {
6708
7035
  export type $200 = void;
7036
+ export type $404 = void;
7037
+ export type $401 = void;
6709
7038
  }
6710
7039
  }
6711
7040
  namespace UpdateMessageFlags {
@@ -6715,12 +7044,18 @@ declare namespace Paths {
6715
7044
  export type RequestBody = Components.Schemas.UpdateFlagsInput;
6716
7045
  namespace Responses {
6717
7046
  export type $200 = void;
7047
+ export type $404 = void;
7048
+ export type $403 = void;
7049
+ export type $401 = void;
6718
7050
  }
6719
7051
  }
6720
7052
  namespace UpdateFlags {
6721
7053
  export type RequestBody = Components.Schemas.BulkUpdateFlagsInput;
6722
7054
  namespace Responses {
6723
7055
  export type $200 = void;
7056
+ export type $404 = void;
7057
+ export type $403 = void;
7058
+ export type $401 = void;
6724
7059
  }
6725
7060
  }
6726
7061
  namespace DeleteMessages {
@@ -6728,6 +7063,9 @@ declare namespace Paths {
6728
7063
  namespace Responses {
6729
7064
  export type $200 = void;
6730
7065
  export type $409 = void;
7066
+ export type $404 = void;
7067
+ export type $403 = void;
7068
+ export type $401 = void;
6731
7069
  }
6732
7070
  }
6733
7071
  namespace MoveMessages {
@@ -6735,6 +7073,9 @@ declare namespace Paths {
6735
7073
  namespace Responses {
6736
7074
  export type $200 = void;
6737
7075
  export type $409 = void;
7076
+ export type $404 = void;
7077
+ export type $403 = void;
7078
+ export type $401 = void;
6738
7079
  }
6739
7080
  }
6740
7081
  namespace CopyMessages {
@@ -6742,24 +7083,36 @@ declare namespace Paths {
6742
7083
  namespace Responses {
6743
7084
  export type $200 = void;
6744
7085
  export type $409 = void;
7086
+ export type $404 = void;
7087
+ export type $403 = void;
7088
+ export type $401 = void;
6745
7089
  }
6746
7090
  }
6747
7091
  namespace UpdateMessageLabels {
6748
7092
  export type RequestBody = Components.Schemas.UpdateMessageLabelsInput;
6749
7093
  namespace Responses {
6750
7094
  export type $200 = void;
7095
+ export type $404 = void;
7096
+ export type $403 = void;
7097
+ export type $401 = void;
6751
7098
  }
6752
7099
  }
6753
7100
  namespace ReportSpam {
6754
7101
  export type RequestBody = Components.Schemas.BulkMessageInput;
6755
7102
  namespace Responses {
6756
7103
  export type $200 = void;
7104
+ export type $404 = void;
7105
+ export type $403 = void;
7106
+ export type $401 = void;
6757
7107
  }
6758
7108
  }
6759
7109
  namespace NotSpam {
6760
7110
  export type RequestBody = Components.Schemas.BulkMessageInput;
6761
7111
  namespace Responses {
6762
7112
  export type $200 = void;
7113
+ export type $404 = void;
7114
+ export type $403 = void;
7115
+ export type $401 = void;
6763
7116
  }
6764
7117
  }
6765
7118
  namespace ListCalendarSuggestions {
@@ -6770,6 +7123,7 @@ declare namespace Paths {
6770
7123
  namespace Responses {
6771
7124
  export type $200 = void;
6772
7125
  export type $400 = void;
7126
+ export type $401 = void;
6773
7127
  }
6774
7128
  }
6775
7129
  namespace ListMessageCalendarSuggestions {
@@ -6779,6 +7133,7 @@ declare namespace Paths {
6779
7133
  namespace Responses {
6780
7134
  export type $200 = void;
6781
7135
  export type $400 = void;
7136
+ export type $401 = void;
6782
7137
  }
6783
7138
  }
6784
7139
  namespace AcceptCalendarSuggestion {
@@ -6789,6 +7144,8 @@ declare namespace Paths {
6789
7144
  namespace Responses {
6790
7145
  export type $200 = void;
6791
7146
  export type $400 = void;
7147
+ export type $404 = void;
7148
+ export type $401 = void;
6792
7149
  }
6793
7150
  }
6794
7151
  namespace DeclineCalendarSuggestion {
@@ -6798,6 +7155,8 @@ declare namespace Paths {
6798
7155
  namespace Responses {
6799
7156
  export type $200 = void;
6800
7157
  export type $400 = void;
7158
+ export type $404 = void;
7159
+ export type $401 = void;
6801
7160
  }
6802
7161
  }
6803
7162
  namespace DismissCalendarSuggestion {
@@ -6808,6 +7167,8 @@ declare namespace Paths {
6808
7167
  namespace Responses {
6809
7168
  export type $200 = void;
6810
7169
  export type $400 = void;
7170
+ export type $404 = void;
7171
+ export type $401 = void;
6811
7172
  }
6812
7173
  }
6813
7174
  }
@@ -6932,7 +7293,7 @@ export interface OperationMethods {
6932
7293
  parameters?: Parameters<Paths.DeleteMailbox.PathParameters> | null,
6933
7294
  data?: any,
6934
7295
  config?: AxiosRequestConfig
6935
- ): OperationResponse<any>;
7296
+ ): OperationResponse<Paths.DeleteMailbox.Responses.$204>;
6936
7297
  /**
6937
7298
  * 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
7299
  */
@@ -6980,7 +7341,7 @@ export interface OperationMethods {
6980
7341
  parameters?: Parameters<Paths.DeleteFilter.PathParameters> | null,
6981
7342
  data?: any,
6982
7343
  config?: AxiosRequestConfig
6983
- ): OperationResponse<any>;
7344
+ ): OperationResponse<Paths.DeleteFilter.Responses.$204>;
6984
7345
  /**
6985
7346
  * listLabels
6986
7347
  */
@@ -7020,7 +7381,7 @@ export interface OperationMethods {
7020
7381
  parameters?: Parameters<Paths.DeleteLabel.PathParameters> | null,
7021
7382
  data?: any,
7022
7383
  config?: AxiosRequestConfig
7023
- ): OperationResponse<any>;
7384
+ ): OperationResponse<Paths.DeleteLabel.Responses.$204>;
7024
7385
  /**
7025
7386
  * 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
7387
  */
@@ -7399,7 +7760,7 @@ Counting: `count=true` answers how many CONVERSATIONS match, over the whole scop
7399
7760
  parameters?: Parameters<Paths.DeleteOutboxMessage.PathParameters> | null,
7400
7761
  data?: any,
7401
7762
  config?: AxiosRequestConfig
7402
- ): OperationResponse<any>;
7763
+ ): OperationResponse<Paths.DeleteOutboxMessage.Responses.$204>;
7403
7764
  /**
7404
7765
  * sendOutboxMessage - Queue a draft message for sending
7405
7766
  */
@@ -7718,7 +8079,7 @@ export interface PathsDictionary {
7718
8079
  parameters?: Parameters<Paths.DeleteMailbox.PathParameters> | null,
7719
8080
  data?: any,
7720
8081
  config?: AxiosRequestConfig
7721
- ): OperationResponse<any>;
8082
+ ): OperationResponse<Paths.DeleteMailbox.Responses.$204>;
7722
8083
  };
7723
8084
  ['/accounts/{accountId}/folder-roles/{role}']: {
7724
8085
  /**
@@ -7772,7 +8133,7 @@ export interface PathsDictionary {
7772
8133
  parameters?: Parameters<Paths.DeleteFilter.PathParameters> | null,
7773
8134
  data?: any,
7774
8135
  config?: AxiosRequestConfig
7775
- ): OperationResponse<any>;
8136
+ ): OperationResponse<Paths.DeleteFilter.Responses.$204>;
7776
8137
  };
7777
8138
  ['/accounts/{accountId}/labels']: {
7778
8139
  /**
@@ -7816,7 +8177,7 @@ export interface PathsDictionary {
7816
8177
  parameters?: Parameters<Paths.DeleteLabel.PathParameters> | null,
7817
8178
  data?: any,
7818
8179
  config?: AxiosRequestConfig
7819
- ): OperationResponse<any>;
8180
+ ): OperationResponse<Paths.DeleteLabel.Responses.$204>;
7820
8181
  };
7821
8182
  ['/accounts/{accountId}/organize']: {
7822
8183
  /**
@@ -8245,7 +8606,7 @@ Counting: `count=true` answers how many CONVERSATIONS match, over the whole scop
8245
8606
  parameters?: Parameters<Paths.DeleteOutboxMessage.PathParameters> | null,
8246
8607
  data?: any,
8247
8608
  config?: AxiosRequestConfig
8248
- ): OperationResponse<any>;
8609
+ ): OperationResponse<Paths.DeleteOutboxMessage.Responses.$204>;
8249
8610
  };
8250
8611
  ['/outbox/{outboxMessageId}/send']: {
8251
8612
  /**
@@ -8467,20 +8828,24 @@ declined, dismissed or superseded — or when its iCalendar will not parse.
8467
8828
  export type Client = OpenAPIClient<OperationMethods, PathsDictionary>;
8468
8829
 
8469
8830
  export type CognitoAuthorizer = Components.Schemas.CognitoAuthorizer;
8470
- export type ValidationError = Components.Schemas.ValidationError;
8471
8831
  export type ApiError = Components.Schemas.ApiError;
8832
+ export type ValidationError = Components.Schemas.ValidationError;
8833
+ export type RequestValidationDetail = Components.Schemas.RequestValidationDetail;
8834
+ export type UnauthorizedError = Components.Schemas.UnauthorizedError;
8472
8835
  export type AccessPattern = Components.Schemas.AccessPattern;
8836
+ export type NotFoundError = Components.Schemas.NotFoundError;
8837
+ export type ConflictError = Components.Schemas.ConflictError;
8838
+ export type UnprocessableEntityError = Components.Schemas.UnprocessableEntityError;
8473
8839
  export type ResultList = Components.Schemas.ResultList;
8840
+ export type ForbiddenError = Components.Schemas.ForbiddenError;
8841
+ export type NoContent = Components.Schemas.NoContent;
8474
8842
  export type FolderRoleConflict = Components.Schemas.FolderRoleConflict;
8475
8843
  export type AppointFolderRoleConflict = Components.Schemas.AppointFolderRoleConflict;
8476
- export type NotFoundError = Components.Schemas.NotFoundError;
8477
8844
  export type PreconditionFailedError = Components.Schemas.PreconditionFailedError;
8478
8845
  export type DeleteMessagesConflict = Components.Schemas.DeleteMessagesConflict;
8479
8846
  export type MessagePlacementConflict = Components.Schemas.MessagePlacementConflict;
8480
8847
  export type AmazonApiGatewayIntegration = Components.Schemas.AmazonApiGatewayIntegration;
8481
8848
  export type InternalServerError = Components.Schemas.InternalServerError;
8482
- export type UnauthorizedError = Components.Schemas.UnauthorizedError;
8483
- export type ForbiddenError = Components.Schemas.ForbiddenError;
8484
8849
  export type DeleteMeInput = Components.Schemas.DeleteMeInput;
8485
8850
  export type DeleteAccountConfigResponse = Components.Schemas.DeleteAccountConfigResponse;
8486
8851
  export type VipSuggestionsResponse = Components.Schemas.VipSuggestionsResponse;
@@ -8573,8 +8938,8 @@ export type OutboxAttachmentResponse = Components.Schemas.OutboxAttachmentRespon
8573
8938
  export type UpdateOutboxMessageInput = Components.Schemas.UpdateOutboxMessageInput;
8574
8939
  export type MintOutboxAttachmentInput = Components.Schemas.MintOutboxAttachmentInput;
8575
8940
  export type MintOutboxAttachmentResponse = Components.Schemas.MintOutboxAttachmentResponse;
8576
- export type OutboxAttachmentRejected = Components.Schemas.OutboxAttachmentRejected;
8577
8941
  export type OutboxAttachmentRejection = Components.Schemas.OutboxAttachmentRejection;
8942
+ export type OutboxAttachmentRejected = Components.Schemas.OutboxAttachmentRejected;
8578
8943
  export type Address = Components.Schemas.Address;
8579
8944
  export type AddressFlags = Components.Schemas.AddressFlags;
8580
8945
  export type TrustedFlag = Components.Schemas.TrustedFlag;