Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion TELEMETRY_CONTRACT.txt
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
NEVER edit the generated catalog file (TelemetryCatalog.* / telemetryCatalog.ts).
Need a new id? Add it to OneHookBackend/packages/telemetry/src/catalog.ts, run
npm run telemetry:generate && npm run telemetry:sync
and deploy the backend BEFORE shipping the client that uses it.
(web), publish onehook-api-client and bump it in OneHookPlatform
node scripts/sync-api-specs.mjs --bump onehook-api-client@<version>
(iOS, Android), and deploy the backend BEFORE shipping a client that uses it.
Unregistered or wrong-platform ids are REJECTED by the server and never stored.

3. Parity: an element may be missing on a platform ONLY if it is listed, with a
Expand Down
6 changes: 3 additions & 3 deletions src/api/liveness.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,13 @@ export type LivenessStatus =
export const LivenessApi = {
/** Create a Rekognition streaming liveness session. */
createSession: async (): Promise<{ sessionId: string }> => {
const res: any = await (sdkClient as any).createLivenessSession({});
const res = await sdkClient.createLivenessSession({});
return { sessionId: res.sessionId };
},

/** Read the authoritative liveness verification status for the caller. */
getStatus: async (): Promise<{ status: LivenessStatus }> => {
const res: any = await (sdkClient as any).getLivenessStatus({});
return { status: (res?.status as LivenessStatus) ?? 'NONE' };
const res = await sdkClient.getLivenessStatus({});
return { status: (res.status as LivenessStatus | undefined) ?? 'NONE' };
},
};
3 changes: 2 additions & 1 deletion src/lib/analytics/generated/apiManifest.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
// GENERATED FILE - DO NOT EDIT.
// Source of truth: OneHookBackend/packages/api-models/model/smithy/*.smithy (every HTTP route is a Smithy operation).
// Regenerate: (OneHookBackend) npm --prefix packages/api-models run build && npm run api:sync
// Regenerate: (OneHookBackend) npm --prefix packages/api-models run build && npm run api:sync.
// iOS / Android copies: pulled from onehook-api-client (manifest/) by OneHookPlatform scripts/sync-api-specs.mjs.
/* eslint-disable */

export type ApiAuth = 'cognito' | 'iam' | 'none';
Expand Down
5 changes: 3 additions & 2 deletions src/lib/analytics/generated/telemetryCatalog.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
// GENERATED FILE - DO NOT EDIT.
// telemetry-integrity: sha256 963a0e6c686534101845009a720ed931f8816e765ead51d78fce4706e8ac9258
// telemetry-integrity: sha256 d6cec8a8fa32f0829743a77f20b9f22eaa3e5634975e8acfe5529d3a11b87e4d
// Source of truth: OneHookBackend/packages/telemetry/src/catalog.ts
// Regenerate: (OneHookBackend) npm run telemetry:generate && npm run telemetry:sync
// Regenerate: (OneHookBackend) npm run telemetry:generate && npm run telemetry:sync.
// iOS / Android copies: pulled from onehook-api-client (telemetry/) by OneHookPlatform scripts/sync-api-specs.mjs.
// Catalog version 1.24.0, hash 139c2761335ed6ce.
//
// HARD RULE: every user interaction MUST emit ui_interaction with an id from THIS file, and
Expand Down
Loading