@remit/api-openapi-types 0.0.60 → 0.0.62
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.
- package/package.json +1 -1
- package/types.d.ts +37 -7
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -597,11 +597,9 @@ unless the refusal names its own — see `FolderRoleConflict`,
|
|
|
597
597
|
details?: Record;
|
|
598
598
|
}
|
|
599
599
|
/**
|
|
600
|
-
* The same flat 409 body as `FolderRoleConflict`, with
|
|
600
|
+
* The same flat 409 body as `FolderRoleConflict`, with the codes only this endpoint can answer with.
|
|
601
601
|
|
|
602
602
|
`code: "folder_role_unresolved"` — as everywhere else, with `details` carrying `role`, `accountId` and `reason`.
|
|
603
|
-
|
|
604
|
-
`code: "mailbox_not_settled"` — the mailbox being appointed is still being created or deleted on the mail server, so it cannot yet hold a role. `details` carries `mailboxId` and `syncStatus`. Clearing a role is never refused this way.
|
|
605
603
|
*/
|
|
606
604
|
export interface AppointFolderRoleConflict {
|
|
607
605
|
statusCode: 409;
|
|
@@ -618,6 +616,28 @@ unless the refusal names its own — see `FolderRoleConflict`,
|
|
|
618
616
|
*/
|
|
619
617
|
details?: Record;
|
|
620
618
|
}
|
|
619
|
+
/**
|
|
620
|
+
* The write binds a durable reference — a role appointment, a filter's move target, a message's destination — to a folder whose own mutation has not settled, so the reference would point at something that may never exist.
|
|
621
|
+
|
|
622
|
+
`code: "mailbox_not_settled"` — `details` carries `mailboxId` and `syncStatus`, one of `pending` (the mail server has not confirmed the folder yet), `deleting` (it is on its way out) or `failed` (its last rename or delete did not land, and the user has a retry or a dismissal to make first). Clearing a reference is never refused this way, and neither is moving mail *out of* such a folder.
|
|
623
|
+
|
|
624
|
+
422 rather than a second 409: 409 means somebody else is changing this folder right now and the client should refresh, which is different copy and a different remedy.
|
|
625
|
+
*/
|
|
626
|
+
export interface MailboxNotSettled {
|
|
627
|
+
statusCode: 422;
|
|
628
|
+
/**
|
|
629
|
+
* Stable token naming the refusal. Branch on this, never on `message`.
|
|
630
|
+
*/
|
|
631
|
+
code: string;
|
|
632
|
+
/**
|
|
633
|
+
* Human-readable error message
|
|
634
|
+
*/
|
|
635
|
+
message: string;
|
|
636
|
+
/**
|
|
637
|
+
* Additional error details
|
|
638
|
+
*/
|
|
639
|
+
details?: Record;
|
|
640
|
+
}
|
|
621
641
|
/**
|
|
622
642
|
* The condition the request stated is no longer true. Answered when an
|
|
623
643
|
`If-Match` names an etag the stored resource no longer carries: somebody else
|
|
@@ -6385,6 +6405,8 @@ declare namespace Paths {
|
|
|
6385
6405
|
export type RequestBody = Components.Schemas.RenameMailboxInput;
|
|
6386
6406
|
namespace Responses {
|
|
6387
6407
|
export type $200 = void;
|
|
6408
|
+
export type $400 = void;
|
|
6409
|
+
export type $409 = void;
|
|
6388
6410
|
export type $404 = void;
|
|
6389
6411
|
export type $403 = void;
|
|
6390
6412
|
export type $401 = void;
|
|
@@ -6397,6 +6419,8 @@ declare namespace Paths {
|
|
|
6397
6419
|
}
|
|
6398
6420
|
namespace Responses {
|
|
6399
6421
|
export type $204 = void;
|
|
6422
|
+
export type $400 = void;
|
|
6423
|
+
export type $409 = void;
|
|
6400
6424
|
export type $404 = void;
|
|
6401
6425
|
export type $403 = void;
|
|
6402
6426
|
export type $401 = void;
|
|
@@ -6411,6 +6435,7 @@ declare namespace Paths {
|
|
|
6411
6435
|
namespace Responses {
|
|
6412
6436
|
export type $200 = void;
|
|
6413
6437
|
export type $409 = void;
|
|
6438
|
+
export type $422 = void;
|
|
6414
6439
|
export type $404 = void;
|
|
6415
6440
|
export type $403 = void;
|
|
6416
6441
|
export type $401 = void;
|
|
@@ -6438,6 +6463,7 @@ declare namespace Paths {
|
|
|
6438
6463
|
namespace Responses {
|
|
6439
6464
|
export type $200 = void;
|
|
6440
6465
|
export type $400 = void;
|
|
6466
|
+
export type $422 = void;
|
|
6441
6467
|
export type $404 = void;
|
|
6442
6468
|
export type $403 = void;
|
|
6443
6469
|
export type $401 = void;
|
|
@@ -6462,6 +6488,7 @@ declare namespace Paths {
|
|
|
6462
6488
|
export type RequestBody = Components.Schemas.UpdateFilterInput;
|
|
6463
6489
|
namespace Responses {
|
|
6464
6490
|
export type $200 = void;
|
|
6491
|
+
export type $422 = void;
|
|
6465
6492
|
export type $404 = void;
|
|
6466
6493
|
export type $403 = void;
|
|
6467
6494
|
export type $401 = void;
|
|
@@ -7104,6 +7131,7 @@ declare namespace Paths {
|
|
|
7104
7131
|
namespace Responses {
|
|
7105
7132
|
export type $200 = void;
|
|
7106
7133
|
export type $409 = void;
|
|
7134
|
+
export type $422 = void;
|
|
7107
7135
|
export type $404 = void;
|
|
7108
7136
|
export type $403 = void;
|
|
7109
7137
|
export type $401 = void;
|
|
@@ -7114,6 +7142,7 @@ declare namespace Paths {
|
|
|
7114
7142
|
namespace Responses {
|
|
7115
7143
|
export type $200 = void;
|
|
7116
7144
|
export type $409 = void;
|
|
7145
|
+
export type $422 = void;
|
|
7117
7146
|
export type $404 = void;
|
|
7118
7147
|
export type $403 = void;
|
|
7119
7148
|
export type $401 = void;
|
|
@@ -7310,7 +7339,7 @@ export interface OperationMethods {
|
|
|
7310
7339
|
config?: AxiosRequestConfig
|
|
7311
7340
|
): OperationResponse<Paths.GetMailbox.Responses.$200>;
|
|
7312
7341
|
/**
|
|
7313
|
-
* renameMailbox
|
|
7342
|
+
* renameMailbox - Rename a folder, or dismiss a folder mutation that failed. `fullPath` records the rename target over the folder and everything under it; the folder keeps the path the mail server holds until the rename lands. A `fullPath` equal to the folder's current one is a dismissal: it clears a failed rename or delete and enqueues nothing. Refused with 400 for INBOX at either end, a name reserved for a system folder, and a name another folder already has; with 409 when a mutation is already in flight on the folder or on anything inside it.
|
|
7314
7343
|
*/
|
|
7315
7344
|
'renameMailbox'(
|
|
7316
7345
|
parameters?: Parameters<Paths.RenameMailbox.PathParameters> | null,
|
|
@@ -7318,7 +7347,7 @@ export interface OperationMethods {
|
|
|
7318
7347
|
config?: AxiosRequestConfig
|
|
7319
7348
|
): OperationResponse<Paths.RenameMailbox.Responses.$200>;
|
|
7320
7349
|
/**
|
|
7321
|
-
* deleteMailbox
|
|
7350
|
+
* deleteMailbox - Record a delete intent for a folder. The folder stays listed, marked as being deleted, until the mail server confirms it and its mail goes with it. Refused with 400 for INBOX, for a folder with folders inside it, and for a folder a filter or a canonical role is bound to — the message names each binding; with 409 when a mutation is already in flight on it.
|
|
7322
7351
|
*/
|
|
7323
7352
|
'deleteMailbox'(
|
|
7324
7353
|
parameters?: Parameters<Paths.DeleteMailbox.PathParameters> | null,
|
|
@@ -8096,7 +8125,7 @@ export interface PathsDictionary {
|
|
|
8096
8125
|
config?: AxiosRequestConfig
|
|
8097
8126
|
): OperationResponse<Paths.GetMailbox.Responses.$200>;
|
|
8098
8127
|
/**
|
|
8099
|
-
* renameMailbox
|
|
8128
|
+
* renameMailbox - Rename a folder, or dismiss a folder mutation that failed. `fullPath` records the rename target over the folder and everything under it; the folder keeps the path the mail server holds until the rename lands. A `fullPath` equal to the folder's current one is a dismissal: it clears a failed rename or delete and enqueues nothing. Refused with 400 for INBOX at either end, a name reserved for a system folder, and a name another folder already has; with 409 when a mutation is already in flight on the folder or on anything inside it.
|
|
8100
8129
|
*/
|
|
8101
8130
|
'patch'(
|
|
8102
8131
|
parameters?: Parameters<Paths.RenameMailbox.PathParameters> | null,
|
|
@@ -8104,7 +8133,7 @@ export interface PathsDictionary {
|
|
|
8104
8133
|
config?: AxiosRequestConfig
|
|
8105
8134
|
): OperationResponse<Paths.RenameMailbox.Responses.$200>;
|
|
8106
8135
|
/**
|
|
8107
|
-
* deleteMailbox
|
|
8136
|
+
* deleteMailbox - Record a delete intent for a folder. The folder stays listed, marked as being deleted, until the mail server confirms it and its mail goes with it. Refused with 400 for INBOX, for a folder with folders inside it, and for a folder a filter or a canonical role is bound to — the message names each binding; with 409 when a mutation is already in flight on it.
|
|
8108
8137
|
*/
|
|
8109
8138
|
'delete'(
|
|
8110
8139
|
parameters?: Parameters<Paths.DeleteMailbox.PathParameters> | null,
|
|
@@ -8872,6 +8901,7 @@ export type ForbiddenError = Components.Schemas.ForbiddenError;
|
|
|
8872
8901
|
export type NoContent = Components.Schemas.NoContent;
|
|
8873
8902
|
export type FolderRoleConflict = Components.Schemas.FolderRoleConflict;
|
|
8874
8903
|
export type AppointFolderRoleConflict = Components.Schemas.AppointFolderRoleConflict;
|
|
8904
|
+
export type MailboxNotSettled = Components.Schemas.MailboxNotSettled;
|
|
8875
8905
|
export type PreconditionFailedError = Components.Schemas.PreconditionFailedError;
|
|
8876
8906
|
export type DeleteMessagesConflict = Components.Schemas.DeleteMessagesConflict;
|
|
8877
8907
|
export type MessagePlacementConflict = Components.Schemas.MessagePlacementConflict;
|