@remit/api-openapi-types 0.0.38 → 0.0.39
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 +45 -0
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -375,6 +375,48 @@ a compile-time error rather than a value that silently sorts incorrectly.
|
|
|
375
375
|
*/
|
|
376
376
|
details?: Record;
|
|
377
377
|
}
|
|
378
|
+
/**
|
|
379
|
+
* The same flat 409 body, with the two codes this endpoint can answer with.
|
|
380
|
+
|
|
381
|
+
`code: "folder_role_unresolved"` — as everywhere else, with `details` carrying `role`, `accountId` and `reason`.
|
|
382
|
+
|
|
383
|
+
`code: "message_placement_unsettled"` — as `MessagePlacementConflict`, with `details` carrying `accountId`, `messageId` and `reason`.
|
|
384
|
+
*/
|
|
385
|
+
export interface DeleteMessagesConflict {
|
|
386
|
+
statusCode: 409;
|
|
387
|
+
/**
|
|
388
|
+
* Error code
|
|
389
|
+
*/
|
|
390
|
+
code: string;
|
|
391
|
+
/**
|
|
392
|
+
* Human-readable error message
|
|
393
|
+
*/
|
|
394
|
+
message: string;
|
|
395
|
+
/**
|
|
396
|
+
* Additional error details
|
|
397
|
+
*/
|
|
398
|
+
details?: Record;
|
|
399
|
+
}
|
|
400
|
+
/**
|
|
401
|
+
* The same flat 409 body, for a message whose folder and uid do not name the same message.
|
|
402
|
+
|
|
403
|
+
`code: "message_placement_unsettled"` — the message is mid-move, so its row names the destination folder while its uid still belongs to the source; acting on that pair would hit whatever the destination holds at that uid. `details` carries `accountId`, `messageId` and `reason`, one of: `in_flight` (the move is still running, and the same request succeeds once it confirms) or `unverified` (the move gave up without confirming, so where the message sits is unknown until the folder is resynced).
|
|
404
|
+
*/
|
|
405
|
+
export interface MessagePlacementConflict {
|
|
406
|
+
statusCode: 409;
|
|
407
|
+
/**
|
|
408
|
+
* Error code
|
|
409
|
+
*/
|
|
410
|
+
code: string;
|
|
411
|
+
/**
|
|
412
|
+
* Human-readable error message
|
|
413
|
+
*/
|
|
414
|
+
message: string;
|
|
415
|
+
/**
|
|
416
|
+
* Additional error details
|
|
417
|
+
*/
|
|
418
|
+
details?: Record;
|
|
419
|
+
}
|
|
378
420
|
export interface AmazonApiGatewayIntegration {
|
|
379
421
|
type: "aws_proxy";
|
|
380
422
|
httpMethod: "POST";
|
|
@@ -5280,6 +5322,7 @@ declare namespace Paths {
|
|
|
5280
5322
|
export type RequestBody = Components.Schemas.CopyMessagesInput;
|
|
5281
5323
|
namespace Responses {
|
|
5282
5324
|
export type $200 = void;
|
|
5325
|
+
export type $409 = void;
|
|
5283
5326
|
}
|
|
5284
5327
|
}
|
|
5285
5328
|
namespace UpdateMessageLabels {
|
|
@@ -6453,6 +6496,8 @@ export type AccessPattern = Components.Schemas.AccessPattern;
|
|
|
6453
6496
|
export type ResultList = Components.Schemas.ResultList;
|
|
6454
6497
|
export type FolderRoleConflict = Components.Schemas.FolderRoleConflict;
|
|
6455
6498
|
export type AppointFolderRoleConflict = Components.Schemas.AppointFolderRoleConflict;
|
|
6499
|
+
export type DeleteMessagesConflict = Components.Schemas.DeleteMessagesConflict;
|
|
6500
|
+
export type MessagePlacementConflict = Components.Schemas.MessagePlacementConflict;
|
|
6456
6501
|
export type AmazonApiGatewayIntegration = Components.Schemas.AmazonApiGatewayIntegration;
|
|
6457
6502
|
export type NotFoundError = Components.Schemas.NotFoundError;
|
|
6458
6503
|
export type InternalServerError = Components.Schemas.InternalServerError;
|