@remit/api-openapi-types 0.0.1 → 0.0.3

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 +11 -6
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-openapi-types",
3
- "version": "0.0.1",
3
+ "version": "0.0.3",
4
4
  "type": "module",
5
5
  "main": "types.d.ts",
6
6
  "types": "types.d.ts",
package/types.d.ts CHANGED
@@ -184,6 +184,7 @@ current enum emitter anyway, so the wire contract uses the bare form.
184
184
  export type UUID = string;
185
185
  export type String800 = string;
186
186
  export type String512 = string;
187
+ export type String32 = string;
187
188
  export type String256 = string;
188
189
  /**
189
190
  * A semantic version string (e.g. "1.10.0"). See https://semver.org.
@@ -202,7 +203,6 @@ a compile-time error rather than a value that silently sorts incorrectly.
202
203
  export type String200 = string;
203
204
  export type String140 = string;
204
205
  export type String64 = string;
205
- export type String32 = string;
206
206
  export interface CognitoAuthorizer {
207
207
  /**
208
208
  * API key authentication
@@ -858,9 +858,9 @@ a compile-time error rather than a value that silently sorts incorrectly.
858
858
  */
859
859
  uidNext: number;
860
860
  /**
861
- * Highest modification sequence number (CONDSTORE). Used to detect mailbox changes efficiently.
861
+ * Highest modification sequence number (CONDSTORE, RFC 7162) as decimal digits. A modseq is an unsigned 64-bit integer that exceeds both a signed int64 column and JS Number precision, so it is stored as a string and parsed to BigInt only at the point of comparison.
862
862
  */
863
- highestModseq: number;
863
+ highestModseq: String32;
864
864
  /**
865
865
  * Total message count in mailbox
866
866
  */
@@ -3994,6 +3994,7 @@ declare namespace Paths {
3994
3994
  continuationToken?: string;
3995
3995
  order?: Components.Schemas.SortOrder;
3996
3996
  limit?: number;
3997
+ starred?: boolean;
3997
3998
  }
3998
3999
  namespace Responses {
3999
4000
  export type $200 = void;
@@ -4406,7 +4407,9 @@ INBOX scope: results are filtered to each account's top-level INBOX, matched by
4406
4407
 
4407
4408
  Mute exclusion: muted accounts and muted mailboxes are excluded. The inbox/mute filter set is rebuilt per page from live state, so muting/unmuting a mailbox mid-pagination takes effect on the next page (never retroactively).
4408
4409
 
4409
- Pagination: pass the returned `continuationToken` to fetch the next page; keep paging until it is absent. The INBOX/deleted filter is applied after the index read with a bounded read window per request, so a page may return FEWER than `limit` rows while still carrying a `continuationToken` — treat the presence of the token (not a full page) as the "more results" signal. No rows are skipped or duplicated across pages.
4410
+ Pagination: pass the returned `continuationToken` to fetch the next page; keep paging until it is absent. In the default (INBOX) mode the INBOX/deleted filter is applied after the index read with a bounded read window per request, so a page may return FEWER than `limit` rows while still carrying a `continuationToken` — treat the presence of the token (not a full page) as the "more results" signal. No rows are skipped or duplicated across pages.
4411
+
4412
+ Starred mode (`starred=true`): served by the `byStarred` LSI4 instead. A star is a marker on the mail rather than on its placement, so the INBOX scope does not apply and a starred thread in Archive is still returned. Excluded are muted and soft-deleted rows as usual, plus the folders a star never surfaces from: Junk, Trash, and Gmail's All Mail (a second copy of everything, whose rows would otherwise double every starred message). All filtering happens in the query, so a page is short only when the results are exhausted. Rows are per mailbox: the same mail filed in two folders is two rows sharing a `threadId`, and a client rendering one row per conversation collapses by `threadId` across the pages it has accumulated.
4410
4413
  */
4411
4414
  'listAllThreads'(
4412
4415
  parameters?: Parameters<Paths.ListAllThreads.QueryParameters> | null,
@@ -4844,7 +4847,9 @@ INBOX scope: results are filtered to each account's top-level INBOX, matched by
4844
4847
 
4845
4848
  Mute exclusion: muted accounts and muted mailboxes are excluded. The inbox/mute filter set is rebuilt per page from live state, so muting/unmuting a mailbox mid-pagination takes effect on the next page (never retroactively).
4846
4849
 
4847
- Pagination: pass the returned `continuationToken` to fetch the next page; keep paging until it is absent. The INBOX/deleted filter is applied after the index read with a bounded read window per request, so a page may return FEWER than `limit` rows while still carrying a `continuationToken` — treat the presence of the token (not a full page) as the "more results" signal. No rows are skipped or duplicated across pages.
4850
+ Pagination: pass the returned `continuationToken` to fetch the next page; keep paging until it is absent. In the default (INBOX) mode the INBOX/deleted filter is applied after the index read with a bounded read window per request, so a page may return FEWER than `limit` rows while still carrying a `continuationToken` — treat the presence of the token (not a full page) as the "more results" signal. No rows are skipped or duplicated across pages.
4851
+
4852
+ Starred mode (`starred=true`): served by the `byStarred` LSI4 instead. A star is a marker on the mail rather than on its placement, so the INBOX scope does not apply and a starred thread in Archive is still returned. Excluded are muted and soft-deleted rows as usual, plus the folders a star never surfaces from: Junk, Trash, and Gmail's All Mail (a second copy of everything, whose rows would otherwise double every starred message). All filtering happens in the query, so a page is short only when the results are exhausted. Rows are per mailbox: the same mail filed in two folders is two rows sharing a `threadId`, and a client rendering one row per conversation collapses by `threadId` across the pages it has accumulated.
4848
4853
  */
4849
4854
  'get'(
4850
4855
  parameters?: Parameters<Paths.ListAllThreads.QueryParameters> | null,
@@ -5193,10 +5198,10 @@ export type MessageFlagPushState = Components.Schemas.MessageFlagPushState;
5193
5198
  export type UUID = Components.Schemas.UUID;
5194
5199
  export type String800 = Components.Schemas.String800;
5195
5200
  export type String512 = Components.Schemas.String512;
5201
+ export type String32 = Components.Schemas.String32;
5196
5202
  export type String256 = Components.Schemas.String256;
5197
5203
  export type SemanticVersion = Components.Schemas.SemanticVersion;
5198
5204
  export type String2048 = Components.Schemas.String2048;
5199
5205
  export type String200 = Components.Schemas.String200;
5200
5206
  export type String140 = Components.Schemas.String140;
5201
5207
  export type String64 = Components.Schemas.String64;
5202
- export type String32 = Components.Schemas.String32;