@remit/api-openapi-types 0.0.114 → 0.0.116

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 +35 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-types",
3
- "version": "0.0.114",
3
+ "version": "0.0.116",
4
4
  "type": "module",
5
5
  "main": "types.d.ts",
6
6
  "types": "types.d.ts",
package/types.d.ts CHANGED
@@ -356,6 +356,10 @@ member (naming the file, the size and the cap), so a refusal must be
356
356
  distinguishable from a network failure without parsing prose.
357
357
  */
358
358
  export type OutboxAttachmentRejectionReason = "EmptyFile" | "UnusableFilename" | "FileTooLarge" | "MessageTooLarge" | "TooManyAttachments" | "ReservationExpired" | "UploadMissing" | "SizeMismatch";
359
+ /**
360
+ * Names a boolean trust flag of `AddressFlags` that `GET /addresses/search` can filter on
361
+ */
362
+ export type AddressTrustFlag = "neverSpam" | "blocked" | "vip";
359
363
  /**
360
364
  * Names a key of `AddressFlags` that a client may address in `PATCH /addresses/{addressId}`. `wellknown` is deliberately absent: it is server-owned, derived from engagement counters, and is never written or removed by a client.
361
365
  */
@@ -2900,6 +2904,10 @@ recap, #1278). A distinct model, deliberately NOT a Filter: it carries no
2900
2904
  rule.
2901
2905
  */
2902
2906
  export interface OrganizeInput {
2907
+ /**
2908
+ * Start the pass at this position: the nextPosition of a finished job, to continue its selection. Send the predicate and action, or the filterId, that job ran.
2909
+ */
2910
+ startPosition?: string;
2903
2911
  /**
2904
2912
  * Back-apply this standing filter instead of the predicate in this body. The server reads the filter's persisted predicate and action, runs the pass over the inbox, and skips a move another active filter outranks, as index time does. The predicate and action fields of this body are ignored when it is set.
2905
2913
  */
@@ -3019,6 +3027,18 @@ standing to persist.
3019
3027
  * Number of matches the action was successfully applied to
3020
3028
  */
3021
3029
  appliedCount: number;
3030
+ /**
3031
+ * Where in the selection this job starts: the store position the job it continues stopped at, or empty to start at the newest message.
3032
+ */
3033
+ startPosition: string;
3034
+ /**
3035
+ * Where in the selection the next job continues, or empty when no message after this batch still matches.
3036
+ */
3037
+ nextPosition: string;
3038
+ /**
3039
+ * Number of messages after this batch that still match the selection, set when the pass completes. A job is capped, so a selection larger than the cap continues in a new job started at this job's nextPosition. Exact for a folder sweep; an upper bound for a rule, whose remaining rows are still refined by the rule.
3040
+ */
3041
+ remainingCount: number;
3022
3042
  /**
3023
3043
  * Number of matches whose action apply failed
3024
3044
  */
@@ -3088,6 +3108,14 @@ standing to persist.
3088
3108
  * Number of matches the action was successfully applied to
3089
3109
  */
3090
3110
  appliedCount: number;
3111
+ /**
3112
+ * Where in the selection the next job continues, or empty when no message after this batch still matches.
3113
+ */
3114
+ nextPosition: string;
3115
+ /**
3116
+ * Number of messages after this batch that still match the selection, set when the pass completes. A job is capped, so a selection larger than the cap continues in a new job started at this job's nextPosition. Exact for a folder sweep; an upper bound for a rule, whose remaining rows are still refined by the rule.
3117
+ */
3118
+ remainingCount: number;
3091
3119
  /**
3092
3120
  * Number of matches whose action apply failed
3093
3121
  */
@@ -8984,6 +9012,7 @@ declare namespace Paths {
8984
9012
  export interface QueryParameters {
8985
9013
  q: string;
8986
9014
  limit?: number;
9015
+ flag?: Components.Schemas.AddressTrustFlag;
8987
9016
  }
8988
9017
  namespace Responses {
8989
9018
  export type $200 = { continuationToken?: Components.Schemas.String800; items: Components.Schemas.AddressResponse[] };
@@ -9437,7 +9466,7 @@ export interface OperationMethods {
9437
9466
  config?: AxiosRequestConfig
9438
9467
  ): OperationResponse<Paths.DeleteLabel.Responses.$204>;
9439
9468
  /**
9440
- * OrganizeOperations_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 row (RFC 034 recap).
9469
+ * OrganizeOperations_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 of at most 500 messages. Returns immediately with an organizeJobId; poll GET /accounts/{accountId}/organize/{organizeJobId} for state, counts, remainingCount and the nextPosition that continues the selection. Never creates a Filter row (RFC 034 recap).
9441
9470
  */
9442
9471
  'OrganizeOperations_createOrganizeJob'(
9443
9472
  parameters?: Parameters<Paths.CreateOrganizeJob.PathParameters> | null,
@@ -9453,7 +9482,7 @@ export interface OperationMethods {
9453
9482
  config?: AxiosRequestConfig
9454
9483
  ): OperationResponse<Paths.PreviewOrganize.Responses.$200>;
9455
9484
  /**
9456
- * OrganizeJobDetailOperations_getOrganizeJob - Get the status of a back-apply job, including matched/applied/failed counts. Terminal states are Complete and Failed.
9485
+ * OrganizeJobDetailOperations_getOrganizeJob - Get the status of a back-apply job, including matched/applied/failed counts, how many messages still match after this batch, and the nextPosition that continues the selection. Terminal states are Complete and Failed.
9457
9486
  */
9458
9487
  'OrganizeJobDetailOperations_getOrganizeJob'(
9459
9488
  parameters?: Parameters<Paths.GetOrganizeJob.PathParameters> | null,
@@ -10405,7 +10434,7 @@ export interface PathsDictionary {
10405
10434
  };
10406
10435
  ['/accounts/{accountId}/organize']: {
10407
10436
  /**
10408
- * OrganizeOperations_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 row (RFC 034 recap).
10437
+ * OrganizeOperations_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 of at most 500 messages. Returns immediately with an organizeJobId; poll GET /accounts/{accountId}/organize/{organizeJobId} for state, counts, remainingCount and the nextPosition that continues the selection. Never creates a Filter row (RFC 034 recap).
10409
10438
  */
10410
10439
  'post'(
10411
10440
  parameters?: Parameters<Paths.CreateOrganizeJob.PathParameters> | null,
@@ -10425,7 +10454,7 @@ export interface PathsDictionary {
10425
10454
  };
10426
10455
  ['/accounts/{accountId}/organize/{organizeJobId}']: {
10427
10456
  /**
10428
- * OrganizeJobDetailOperations_getOrganizeJob - Get the status of a back-apply job, including matched/applied/failed counts. Terminal states are Complete and Failed.
10457
+ * OrganizeJobDetailOperations_getOrganizeJob - Get the status of a back-apply job, including matched/applied/failed counts, how many messages still match after this batch, and the nextPosition that continues the selection. Terminal states are Complete and Failed.
10429
10458
  */
10430
10459
  'get'(
10431
10460
  parameters?: Parameters<Paths.GetOrganizeJob.PathParameters> | null,
@@ -11836,7 +11865,7 @@ export interface Operations {
11836
11865
  };
11837
11866
  'AddressOperations_searchAddresses': {
11838
11867
  params: {};
11839
- query: { q: string; limit?: number };
11868
+ query: { q: string; limit?: number; flag?: Components.Schemas.AddressTrustFlag };
11840
11869
  headers: {};
11841
11870
  cookies: {};
11842
11871
  requestBody: undefined;
@@ -12341,6 +12370,7 @@ export type SpamJudgeName = Components.Schemas.SpamJudgeName;
12341
12370
  export type SpamFailureKind = Components.Schemas.SpamFailureKind;
12342
12371
  export type OutboxAttachmentState = Components.Schemas.OutboxAttachmentState;
12343
12372
  export type OutboxAttachmentRejectionReason = Components.Schemas.OutboxAttachmentRejectionReason;
12373
+ export type AddressTrustFlag = Components.Schemas.AddressTrustFlag;
12344
12374
  export type AddressFlagKey = Components.Schemas.AddressFlagKey;
12345
12375
  export type MessageClassificationState = Components.Schemas.MessageClassificationState;
12346
12376
  export type AuthResultVerdict = Components.Schemas.AuthResultVerdict;