@remit/api-openapi-types 0.0.37 → 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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/types.d.ts +82 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-types",
3
- "version": "0.0.37",
3
+ "version": "0.0.39",
4
4
  "type": "module",
5
5
  "main": "types.d.ts",
6
6
  "types": "types.d.ts",
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";
@@ -1191,6 +1233,19 @@ never from a raw content-type line — parameters carry `name=` and
1191
1233
  */
1192
1234
  staleAppointmentPath?: String512;
1193
1235
  }
1236
+ /**
1237
+ * A configuration export: one versioned document carrying every user decision this instance holds, and no credential.
1238
+ */
1239
+ export interface ConfigExportResponse {
1240
+ /**
1241
+ * Schema version of the document below
1242
+ */
1243
+ schemaVersion: number;
1244
+ /**
1245
+ * The config document. Opaque here; the JSON Schema for `schemaVersion` is its contract.
1246
+ */
1247
+ document: Record;
1248
+ }
1194
1249
  /**
1195
1250
  * The self-update resource: the running version, the outcome of the most recent manifest check, and the state of the current or last run. One read serves every interface state. The check block and the run block are independent by construction (RFC 037 D7).
1196
1251
  */
@@ -4789,6 +4844,11 @@ declare namespace Paths {
4789
4844
  export type $200 = void;
4790
4845
  }
4791
4846
  }
4847
+ namespace ExportConfig {
4848
+ namespace Responses {
4849
+ export type $200 = void;
4850
+ }
4851
+ }
4792
4852
  namespace GetSystemUpdate {
4793
4853
  export interface QueryParameters {
4794
4854
  refresh?: boolean;
@@ -5262,6 +5322,7 @@ declare namespace Paths {
5262
5322
  export type RequestBody = Components.Schemas.CopyMessagesInput;
5263
5323
  namespace Responses {
5264
5324
  export type $200 = void;
5325
+ export type $409 = void;
5265
5326
  }
5266
5327
  }
5267
5328
  namespace UpdateMessageLabels {
@@ -5333,6 +5394,14 @@ export interface OperationMethods {
5333
5394
  data?: any,
5334
5395
  config?: AxiosRequestConfig
5335
5396
  ): OperationResponse<Paths.GetConfig.Responses.$200>;
5397
+ /**
5398
+ * exportConfig - Export every configured setting for the caller as one versioned JSON document. Contains no credentials: no IMAP/SMTP password and no OAuth token, encrypted or otherwise, and the credential fields are structurally absent rather than blank. The document's own shape is not defined here - it is defined by the published JSON Schema for its `schemaVersion` (build/config-schema/reader-config.v<N>.schema.json), so a file keeps validating independent of this API's models.
5399
+ */
5400
+ 'exportConfig'(
5401
+ parameters?: Parameters<UnknownParamsObject> | null,
5402
+ data?: any,
5403
+ config?: AxiosRequestConfig
5404
+ ): OperationResponse<Paths.ExportConfig.Responses.$200>;
5336
5405
  /**
5337
5406
  * getSystemUpdate - Read the self-update resource: the running version, the outcome of the most recent manifest check, and the state of the current or last run. With `refresh=true`, records a check request on the control volume for the updater to pick up and answers with the stored state as it stands; the caller watches `check.lastCheckedAt` for the updater's answer. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).
5338
5407
  */
@@ -5860,6 +5929,16 @@ export interface PathsDictionary {
5860
5929
  config?: AxiosRequestConfig
5861
5930
  ): OperationResponse<Paths.GetConfig.Responses.$200>;
5862
5931
  };
5932
+ ['/config/export']: {
5933
+ /**
5934
+ * exportConfig - Export every configured setting for the caller as one versioned JSON document. Contains no credentials: no IMAP/SMTP password and no OAuth token, encrypted or otherwise, and the credential fields are structurally absent rather than blank. The document's own shape is not defined here - it is defined by the published JSON Schema for its `schemaVersion` (build/config-schema/reader-config.v<N>.schema.json), so a file keeps validating independent of this API's models.
5935
+ */
5936
+ 'get'(
5937
+ parameters?: Parameters<UnknownParamsObject> | null,
5938
+ data?: any,
5939
+ config?: AxiosRequestConfig
5940
+ ): OperationResponse<Paths.ExportConfig.Responses.$200>;
5941
+ };
5863
5942
  ['/system/update']: {
5864
5943
  /**
5865
5944
  * getSystemUpdate - Read the self-update resource: the running version, the outcome of the most recent manifest check, and the state of the current or last run. With `refresh=true`, records a check request on the control volume for the updater to pick up and answers with the stored state as it stands; the caller watches `check.lastCheckedAt` for the updater's answer. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).
@@ -6417,6 +6496,8 @@ export type AccessPattern = Components.Schemas.AccessPattern;
6417
6496
  export type ResultList = Components.Schemas.ResultList;
6418
6497
  export type FolderRoleConflict = Components.Schemas.FolderRoleConflict;
6419
6498
  export type AppointFolderRoleConflict = Components.Schemas.AppointFolderRoleConflict;
6499
+ export type DeleteMessagesConflict = Components.Schemas.DeleteMessagesConflict;
6500
+ export type MessagePlacementConflict = Components.Schemas.MessagePlacementConflict;
6420
6501
  export type AmazonApiGatewayIntegration = Components.Schemas.AmazonApiGatewayIntegration;
6421
6502
  export type NotFoundError = Components.Schemas.NotFoundError;
6422
6503
  export type InternalServerError = Components.Schemas.InternalServerError;
@@ -6441,6 +6522,7 @@ export type AccountResponse = Components.Schemas.AccountResponse;
6441
6522
  export type AddressFlagBase = Components.Schemas.AddressFlagBase;
6442
6523
  export type MutedFlag = Components.Schemas.MutedFlag;
6443
6524
  export type FolderAppointment = Components.Schemas.FolderAppointment;
6525
+ export type ConfigExportResponse = Components.Schemas.ConfigExportResponse;
6444
6526
  export type SystemUpdateResponse = Components.Schemas.SystemUpdateResponse;
6445
6527
  export type SystemUpdateCheck = Components.Schemas.SystemUpdateCheck;
6446
6528
  export type SystemUpdateRun = Components.Schemas.SystemUpdateRun;