@pryzr/verify 0.3.0 → 0.3.1
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.
- package/README.md +2 -0
- package/dist/index.d.ts +15 -4
- package/dist/index.js +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -42,3 +42,5 @@ The client also supports:
|
|
|
42
42
|
The API key selects the correct workspace and environment automatically. You do not need to send workspace, environment, verification-provider, or workflow IDs in normal API requests.
|
|
43
43
|
|
|
44
44
|
Webhook secrets are shown once. Save them in a server-side secret manager before continuing. Never log API keys, webhook secrets, player verification URLs, or identity data.
|
|
45
|
+
|
|
46
|
+
The published package is native Node ESM. Release verification runs `npm run test:sdk:typescript-artifact` from the repository root to build, pack, install offline and import the actual package in plain Node, including its webhook helpers.
|
package/dist/index.d.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Server-side client for the Pryzr Verify API. API credentials must never be
|
|
3
3
|
* shipped to browser code.
|
|
4
4
|
*/
|
|
5
|
-
export { PRYZR_WEBHOOK_TOLERANCE_SECONDS, verifyPryzrWebhookSignature, verifyPryzrWebhookWithSecrets, } from "./webhooks";
|
|
5
|
+
export { PRYZR_WEBHOOK_TOLERANCE_SECONDS, verifyPryzrWebhookSignature, verifyPryzrWebhookWithSecrets, } from "./webhooks.js";
|
|
6
6
|
export type PryzrEnvironment = "sandbox" | "production";
|
|
7
7
|
export declare const operatorApiOperationAvailability: {
|
|
8
8
|
readonly createApplicant: "implemented";
|
|
@@ -107,6 +107,19 @@ export interface PlayPrintTelemetryEvent {
|
|
|
107
107
|
consentReceiptRef?: string;
|
|
108
108
|
signals: Readonly<Record<string, unknown>>;
|
|
109
109
|
}
|
|
110
|
+
export interface PlayPrintTelemetryAcceptance {
|
|
111
|
+
events: Array<{
|
|
112
|
+
eventId: string;
|
|
113
|
+
accepted: true;
|
|
114
|
+
replay: boolean;
|
|
115
|
+
stepUp?: {
|
|
116
|
+
outcome: "consent_required";
|
|
117
|
+
requestId: string;
|
|
118
|
+
/** Short-lived player bearer path. Never log or send to analytics. */
|
|
119
|
+
playerPath: string;
|
|
120
|
+
};
|
|
121
|
+
}>;
|
|
122
|
+
}
|
|
110
123
|
export type SigningSecret = {
|
|
111
124
|
id: string;
|
|
112
125
|
key_label: string;
|
|
@@ -258,8 +271,6 @@ export declare class PryzrVerifyClient {
|
|
|
258
271
|
explanation: string;
|
|
259
272
|
}>;
|
|
260
273
|
}>;
|
|
261
|
-
submitTelemetry(events: PlayPrintTelemetryEvent[], idempotencyKey: string): Promise<
|
|
262
|
-
events: unknown[];
|
|
263
|
-
}>;
|
|
274
|
+
submitTelemetry(events: PlayPrintTelemetryEvent[], idempotencyKey: string): Promise<PlayPrintTelemetryAcceptance>;
|
|
264
275
|
private request;
|
|
265
276
|
}
|
package/dist/index.js
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
* Server-side client for the Pryzr Verify API. API credentials must never be
|
|
3
3
|
* shipped to browser code.
|
|
4
4
|
*/
|
|
5
|
-
export { PRYZR_WEBHOOK_TOLERANCE_SECONDS, verifyPryzrWebhookSignature, verifyPryzrWebhookWithSecrets, } from "./webhooks";
|
|
5
|
+
export { PRYZR_WEBHOOK_TOLERANCE_SECONDS, verifyPryzrWebhookSignature, verifyPryzrWebhookWithSecrets, } from "./webhooks.js";
|
|
6
6
|
export const operatorApiOperationAvailability = {
|
|
7
7
|
createApplicant: "implemented",
|
|
8
8
|
getApplicant: "implemented",
|