@remit/api-http-client 0.0.32 → 0.0.34

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.
@@ -972,7 +972,7 @@ export const semanticSearchOperationsSemanticSearchOptions = (options: Options<S
972
972
  export const systemOperationsGetSystemUpdateQueryKey = (options?: Options<SystemOperationsGetSystemUpdateData>) => createQueryKey('systemOperationsGetSystemUpdate', options);
973
973
 
974
974
  /**
975
- * 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. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).
975
+ * 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).
976
976
  */
977
977
  export const systemOperationsGetSystemUpdateOptions = (options?: Options<SystemOperationsGetSystemUpdateData>) => queryOptions<SystemOperationsGetSystemUpdateResponse, DefaultError, SystemOperationsGetSystemUpdateResponse, ReturnType<typeof systemOperationsGetSystemUpdateQueryKey>>({
978
978
  queryFn: async ({ queryKey, signal }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@remit/api-http-client",
3
- "version": "0.0.32",
3
+ "version": "0.0.34",
4
4
  "type": "module",
5
5
  "exports": {
6
6
  ".": "./index.ts",
package/sdk.gen.ts CHANGED
@@ -572,7 +572,7 @@ export const semanticSearchOperationsSemanticSearch = <ThrowOnError extends bool
572
572
  });
573
573
 
574
574
  /**
575
- * 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. Owner-only, and absent (404) unless a manifest URL is configured (RFC 037 D7, D8).
575
+ * 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).
576
576
  */
577
577
  export const systemOperationsGetSystemUpdate = <ThrowOnError extends boolean = false>(options?: Options<SystemOperationsGetSystemUpdateData, ThrowOnError>): RequestResult<SystemOperationsGetSystemUpdateResponses, unknown, ThrowOnError> => (options?.client ?? client).get<SystemOperationsGetSystemUpdateResponses, unknown, ThrowOnError>({
578
578
  security: [{ name: 'Authorization', type: 'apiKey' }],
package/types.gen.ts CHANGED
@@ -275,6 +275,10 @@ export type RemitImapAccountSyncStatusResponse = {
275
275
  * Number of mailboxes whose initial message sync has completed
276
276
  */
277
277
  mailboxCountSynced?: number;
278
+ /**
279
+ * When the account's most recent sync round started, stamped once per round by the worker. A client that triggered a sync compares this against the reading it took before triggering, so it confirms only on a round of its own rather than one already in flight.
280
+ */
281
+ lastSyncAt?: number;
278
282
  /**
279
283
  * Per-mailbox sync progress
280
284
  */
@@ -4267,7 +4271,9 @@ export type SemanticSearchOperationsSemanticSearchResponse = SemanticSearchOpera
4267
4271
  export type SystemOperationsGetSystemUpdateData = {
4268
4272
  body?: never;
4269
4273
  path?: never;
4270
- query?: never;
4274
+ query?: {
4275
+ refresh?: boolean;
4276
+ };
4271
4277
  url: '/system/update';
4272
4278
  };
4273
4279