@noresponse/node 2.0.36 → 3.0.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/CHANGELOG.md +11 -0
- package/README.md +17 -14
- package/dist/commonjs/client.d.ts +1 -1
- package/dist/commonjs/client.d.ts.map +1 -1
- package/dist/commonjs/funcs/accounts-get.d.ts +1 -1
- package/dist/commonjs/funcs/accounts-get.js +1 -1
- package/dist/commonjs/funcs/assessments-create.d.ts +1 -1
- package/dist/commonjs/funcs/assessments-create.js +1 -1
- package/dist/commonjs/funcs/assessments-get.d.ts +1 -1
- package/dist/commonjs/funcs/assessments-get.js +1 -1
- package/dist/commonjs/late-results.d.ts +12 -22
- package/dist/commonjs/late-results.d.ts.map +1 -1
- package/dist/commonjs/late-results.js +89 -47
- package/dist/commonjs/late-results.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/config.js.map +1 -1
- package/dist/commonjs/models/account-decisions-by-flow.d.ts +1 -1
- package/dist/commonjs/models/account.d.ts +1 -1
- package/dist/commonjs/models/{assessment-auth-context.d.ts → assessment-detail-auth-context.d.ts} +4 -4
- package/dist/commonjs/models/assessment-detail-auth-context.d.ts.map +1 -0
- package/dist/commonjs/models/{assessment-auth-context.js → assessment-detail-auth-context.js} +6 -6
- package/dist/commonjs/models/assessment-detail-auth-context.js.map +1 -0
- package/dist/{esm/models/assessment-timing.d.ts → commonjs/models/assessment-detail-timing.d.ts} +4 -4
- package/dist/commonjs/models/assessment-detail-timing.d.ts.map +1 -0
- package/dist/commonjs/models/{assessment-timing.js → assessment-detail-timing.js} +6 -6
- package/dist/commonjs/models/assessment-detail-timing.js.map +1 -0
- package/dist/commonjs/models/assessment-detail.d.ts +90 -0
- package/dist/commonjs/models/assessment-detail.d.ts.map +1 -0
- package/dist/commonjs/models/assessment-detail.js +91 -0
- package/dist/commonjs/models/assessment-detail.js.map +1 -0
- package/dist/commonjs/models/assessment-list.d.ts +3 -3
- package/dist/commonjs/models/assessment-list.d.ts.map +1 -1
- package/dist/commonjs/models/assessment-list.js +2 -2
- package/dist/commonjs/models/assessment-list.js.map +1 -1
- package/dist/commonjs/models/assessment-request-policy-context.d.ts +3 -6
- package/dist/commonjs/models/assessment-request-policy-context.d.ts.map +1 -1
- package/dist/commonjs/models/assessment-request-policy-context.js +0 -2
- package/dist/commonjs/models/assessment-request-policy-context.js.map +1 -1
- package/dist/commonjs/models/assessment-request.d.ts +6 -3
- package/dist/commonjs/models/assessment-request.d.ts.map +1 -1
- package/dist/commonjs/models/assessment-request.js +2 -2
- package/dist/commonjs/models/assessment-request.js.map +1 -1
- package/dist/commonjs/models/assessment.d.ts +15 -60
- package/dist/commonjs/models/assessment.d.ts.map +1 -1
- package/dist/commonjs/models/assessment.js +9 -36
- package/dist/commonjs/models/assessment.js.map +1 -1
- package/dist/commonjs/models/depth.d.ts +5 -3
- package/dist/commonjs/models/depth.d.ts.map +1 -1
- package/dist/commonjs/models/depth.js +7 -3
- package/dist/commonjs/models/depth.js.map +1 -1
- package/dist/commonjs/models/flow.d.ts +8 -7
- package/dist/commonjs/models/flow.d.ts.map +1 -1
- package/dist/commonjs/models/flow.js +9 -6
- package/dist/commonjs/models/flow.js.map +1 -1
- package/dist/commonjs/models/index.d.ts +3 -3
- package/dist/commonjs/models/index.d.ts.map +1 -1
- package/dist/commonjs/models/index.js +3 -3
- package/dist/commonjs/models/index.js.map +1 -1
- package/dist/commonjs/sdk/accounts.d.ts +1 -1
- package/dist/commonjs/sdk/accounts.js +1 -1
- package/dist/commonjs/sdk/assessments.d.ts +2 -2
- package/dist/commonjs/sdk/assessments.js +2 -2
- package/dist/commonjs/webhooks.d.ts +1 -1
- package/dist/commonjs/webhooks.js +1 -1
- package/dist/esm/client.d.ts +1 -1
- package/dist/esm/client.d.ts.map +1 -1
- package/dist/esm/funcs/accounts-get.d.ts +1 -1
- package/dist/esm/funcs/accounts-get.js +1 -1
- package/dist/esm/funcs/assessments-create.d.ts +1 -1
- package/dist/esm/funcs/assessments-create.js +1 -1
- package/dist/esm/funcs/assessments-get.d.ts +1 -1
- package/dist/esm/funcs/assessments-get.js +1 -1
- package/dist/esm/late-results.d.ts +12 -22
- package/dist/esm/late-results.d.ts.map +1 -1
- package/dist/esm/late-results.js +89 -47
- package/dist/esm/late-results.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/config.js.map +1 -1
- package/dist/esm/models/account-decisions-by-flow.d.ts +1 -1
- package/dist/esm/models/account.d.ts +1 -1
- package/dist/esm/models/{assessment-auth-context.d.ts → assessment-detail-auth-context.d.ts} +4 -4
- package/dist/esm/models/assessment-detail-auth-context.d.ts.map +1 -0
- package/dist/esm/models/{assessment-auth-context.js → assessment-detail-auth-context.js} +4 -4
- package/dist/esm/models/assessment-detail-auth-context.js.map +1 -0
- package/dist/{commonjs/models/assessment-timing.d.ts → esm/models/assessment-detail-timing.d.ts} +4 -4
- package/dist/esm/models/assessment-detail-timing.d.ts.map +1 -0
- package/dist/esm/models/{assessment-timing.js → assessment-detail-timing.js} +4 -4
- package/dist/esm/models/assessment-detail-timing.js.map +1 -0
- package/dist/esm/models/assessment-detail.d.ts +90 -0
- package/dist/esm/models/assessment-detail.d.ts.map +1 -0
- package/dist/esm/models/assessment-detail.js +54 -0
- package/dist/esm/models/assessment-detail.js.map +1 -0
- package/dist/esm/models/assessment-list.d.ts +3 -3
- package/dist/esm/models/assessment-list.d.ts.map +1 -1
- package/dist/esm/models/assessment-list.js +2 -2
- package/dist/esm/models/assessment-list.js.map +1 -1
- package/dist/esm/models/assessment-request-policy-context.d.ts +3 -6
- package/dist/esm/models/assessment-request-policy-context.d.ts.map +1 -1
- package/dist/esm/models/assessment-request-policy-context.js +0 -2
- package/dist/esm/models/assessment-request-policy-context.js.map +1 -1
- package/dist/esm/models/assessment-request.d.ts +6 -3
- package/dist/esm/models/assessment-request.d.ts.map +1 -1
- package/dist/esm/models/assessment-request.js +2 -2
- package/dist/esm/models/assessment-request.js.map +1 -1
- package/dist/esm/models/assessment.d.ts +15 -60
- package/dist/esm/models/assessment.d.ts.map +1 -1
- package/dist/esm/models/assessment.js +9 -36
- package/dist/esm/models/assessment.js.map +1 -1
- package/dist/esm/models/depth.d.ts +5 -3
- package/dist/esm/models/depth.d.ts.map +1 -1
- package/dist/esm/models/depth.js +6 -2
- package/dist/esm/models/depth.js.map +1 -1
- package/dist/esm/models/flow.d.ts +8 -7
- package/dist/esm/models/flow.d.ts.map +1 -1
- package/dist/esm/models/flow.js +8 -5
- package/dist/esm/models/flow.js.map +1 -1
- package/dist/esm/models/index.d.ts +3 -3
- package/dist/esm/models/index.d.ts.map +1 -1
- package/dist/esm/models/index.js +3 -3
- package/dist/esm/models/index.js.map +1 -1
- package/dist/esm/sdk/accounts.d.ts +1 -1
- package/dist/esm/sdk/accounts.js +1 -1
- package/dist/esm/sdk/assessments.d.ts +2 -2
- package/dist/esm/sdk/assessments.js +2 -2
- package/dist/esm/webhooks.d.ts +1 -1
- package/dist/esm/webhooks.js +1 -1
- package/package.json +3 -3
- package/dist/commonjs/models/assessment-auth-context.d.ts.map +0 -1
- package/dist/commonjs/models/assessment-auth-context.js.map +0 -1
- package/dist/commonjs/models/assessment-flow.d.ts +0 -17
- package/dist/commonjs/models/assessment-flow.d.ts.map +0 -1
- package/dist/commonjs/models/assessment-flow.js +0 -48
- package/dist/commonjs/models/assessment-flow.js.map +0 -1
- package/dist/commonjs/models/assessment-timing.d.ts.map +0 -1
- package/dist/commonjs/models/assessment-timing.js.map +0 -1
- package/dist/esm/models/assessment-auth-context.d.ts.map +0 -1
- package/dist/esm/models/assessment-auth-context.js.map +0 -1
- package/dist/esm/models/assessment-flow.d.ts +0 -17
- package/dist/esm/models/assessment-flow.d.ts.map +0 -1
- package/dist/esm/models/assessment-flow.js +0 -12
- package/dist/esm/models/assessment-flow.js.map +0 -1
- package/dist/esm/models/assessment-timing.d.ts.map +0 -1
- package/dist/esm/models/assessment-timing.js.map +0 -1
|
@@ -1,16 +1,13 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
2
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
3
|
+
import { Account } from "./account.js";
|
|
4
|
+
import { AssessmentDetail } from "./assessment-detail.js";
|
|
5
|
+
import { Depth } from "./depth.js";
|
|
6
6
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
7
|
-
import {
|
|
8
|
-
import { Recommendation } from "./recommendation.js";
|
|
9
|
-
import { Risk } from "./risk.js";
|
|
10
|
-
import { Signal } from "./signal.js";
|
|
7
|
+
import { Flow } from "./flow.js";
|
|
11
8
|
import { Status } from "./status.js";
|
|
12
9
|
/**
|
|
13
|
-
* One assessment
|
|
10
|
+
* One assessment, as POST /v1/assessments, GET /v1/assessments/{assessment_id} and the assessment.updated webhook return it. account is the account's one current risk: its score, the decision for this assessment's flow, the reasons and the decision for each flow. detail holds this assessment's own facts. status says whether the assessment is final (complete), usable with a source still running (partial) or not yet usable (pending). While the account's first assessment is pending, account is absent; wait for the webhook or poll the assessment. Keep the highest detail.assessment_version.
|
|
14
11
|
*/
|
|
15
12
|
export type Assessment = {
|
|
16
13
|
/**
|
|
@@ -18,71 +15,29 @@ export type Assessment = {
|
|
|
18
15
|
*/
|
|
19
16
|
schemaVersion: "1";
|
|
20
17
|
/**
|
|
21
|
-
*
|
|
18
|
+
* This assessment's id, equal to detail.assessment_id.
|
|
22
19
|
*/
|
|
23
|
-
|
|
24
|
-
/**
|
|
25
|
-
* Your own opaque identifier for the account being checked, scoped to your tenant. Use an id you mint, with no direct identifier (email, phone, name or national id) in it. '|' is accepted so an Auth0 user id such as 'auth0|64abc' passes unchanged; '@', '+', '$' and whitespace are refused by the pattern, as is an exact-shape JWT; a hex digest such as a SHA-256 is allowed, because hashing an internal id is a common pseudonymous scheme. A value such as '07700900123' or 'jane.doe.gmail.com' cannot be told apart from an opaque id. It travels in bodies, and in a URL only as the path segment of GET /v1/accounts/{account_id} and its /assessments. An assessment requested by a provider hook at pre_registration, which has no account yet, carries the server-issued account_id pre: followed by its assessment_id.
|
|
26
|
-
*/
|
|
27
|
-
accountId: string;
|
|
28
|
-
/**
|
|
29
|
-
* An optional provider correlation id, echoed back. It is not an idempotency key. Refuses an exact-shape JWT or a bare 40, 64 or 128 character hex digest; a UUID is accepted.
|
|
30
|
-
*/
|
|
31
|
-
requestId?: string | undefined;
|
|
20
|
+
id: string;
|
|
32
21
|
/**
|
|
33
22
|
* complete: final; nothing is still running. A lane that failed or missed its 10 s deadline stays listed in incomplete_sources, and confidence is lower. partial: a recommendation exists and at least one lane is still running or did not settle (see incomplete_sources). pending: nothing usable before the deadline; no recommendation yet, poll or wait for the webhook.
|
|
34
23
|
*/
|
|
35
24
|
status: Status;
|
|
36
25
|
/**
|
|
37
|
-
* The
|
|
38
|
-
*/
|
|
39
|
-
recommendation?: Recommendation | undefined;
|
|
40
|
-
/**
|
|
41
|
-
* Ordinal confidence in the recommendation under the current policy: low, medium, high or unavailable.
|
|
42
|
-
*/
|
|
43
|
-
confidence: Confidence;
|
|
44
|
-
/**
|
|
45
|
-
* The one risk decision for this event. score is 0 (safe) to 100 (risky): the sum of the weights of the reasons that fired, clamped to 0 to 100, from hand-set versioned weights. Every answer with a recommendation carries it, and the top-level recommendation equals risk.recommendation. It names no source or provider.
|
|
46
|
-
*/
|
|
47
|
-
risk?: Risk | undefined;
|
|
48
|
-
/**
|
|
49
|
-
* Detailed view only (response_mode=detailed, which needs the detailed scope): a standard answer omits signals[], and a detailed one always carries it, possibly empty. The body does not name its mode, so that rule is the serving gate's; the schema states the half it can: an answer with risk.details is a detailed view and carries signals[]. At most one signal per (type, source_id, identifier).
|
|
50
|
-
*/
|
|
51
|
-
signals?: Array<Signal> | undefined;
|
|
52
|
-
/**
|
|
53
|
-
* The lanes that did not settle, each listed once with a reason; lanes, not sources. In a detailed view a lane is listed exactly when one of its signals did not settle; a standard view carries no signals to match.
|
|
54
|
-
*/
|
|
55
|
-
incompleteSources: Array<IncompleteSource>;
|
|
56
|
-
/**
|
|
57
|
-
* Version of the hand-authored heuristic weights that produced the recommendation, for example 'risk-2026-10.7'. A tenant threshold override adds a +t<N> suffix, e.g. 'risk-2026-10.7+t3'.
|
|
58
|
-
*/
|
|
59
|
-
policyVersion: string;
|
|
60
|
-
/**
|
|
61
|
-
* Labels the v0 policy as hand-authored and not statistically validated.
|
|
62
|
-
*/
|
|
63
|
-
policyBasis: "heuristic_unvalidated";
|
|
64
|
-
/**
|
|
65
|
-
* Monotonic revision of this assessment. 1 on the synchronous answer; each material change while the assessment is served (an async continuation settling a source, a change of recommendation, confidence or status) increments it. Expiry does not increment it: an expired assessment is gone, not revised, and the expiry webhook carries the last served version.
|
|
66
|
-
*/
|
|
67
|
-
assessmentVersion: number;
|
|
68
|
-
/**
|
|
69
|
-
* When the assessment was created. Fixed for the life of the assessment: every revision carries the same created_at.
|
|
26
|
+
* The customer event an assessment is made for: signup (a new account), login (a returning sign-in) or purchase (a payment or credit grant). The account's risk is reported with the decision for this flow.
|
|
70
27
|
*/
|
|
71
|
-
|
|
72
|
-
updatedAt: string;
|
|
28
|
+
flow: Flow;
|
|
73
29
|
/**
|
|
74
|
-
*
|
|
30
|
+
* How long the synchronous answer waits for sources. quick waits only for the fast sources, those that answer within 500 ms of ingress (or deadline_ms when lower); full waits for the whole budget, up to 3000 ms. Sources still running at the cut continue asynchronously and update the assessment either way.
|
|
75
31
|
*/
|
|
76
|
-
|
|
32
|
+
depth: Depth;
|
|
77
33
|
/**
|
|
78
|
-
*
|
|
34
|
+
* Body of the 200 answer to GET /v1/accounts/{account_id}: the one current risk of one of the calling tenant's accounts. It is the risk of the account's latest assessment that has a decision (status complete or partial), by created_at and then assessment_id, scored exactly as GET /v1/assessments/{assessment_id} scores that assessment. Its assessments are the account's history (GET /v1/accounts/{account_id}/assessments).
|
|
79
35
|
*/
|
|
80
|
-
|
|
81
|
-
timing: AssessmentTiming;
|
|
36
|
+
account?: Account | undefined;
|
|
82
37
|
/**
|
|
83
|
-
*
|
|
38
|
+
* One assessment's own facts: its score and recommendation, the signals behind them, the lanes still running and its timing. risk here is this assessment's own score; the account's current risk is the account member of the assessment. risk and recommendation are present for complete and partial; assessment_url is present for pending.
|
|
84
39
|
*/
|
|
85
|
-
|
|
40
|
+
detail: AssessmentDetail;
|
|
86
41
|
};
|
|
87
42
|
/** @internal */
|
|
88
43
|
export declare const Assessment$inboundSchema: z.ZodMiniType<Assessment, unknown>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assessment.d.ts","sourceRoot":"","sources":["../../../src/models/assessment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,
|
|
1
|
+
{"version":3,"file":"assessment.d.ts","sourceRoot":"","sources":["../../../src/models/assessment.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,OAAO,EAAyB,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,gBAAgB,EAEjB,MAAM,wBAAwB,CAAC;AAChC,OAAO,EAAE,KAAK,EAAuB,MAAM,YAAY,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAE,IAAI,EAAsB,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,MAAM,EAAwB,MAAM,aAAa,CAAC;AAE3D;;GAEG;AACH,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC;IACnB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,KAAK,CAAC;IACb;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,MAAM,EAAE,gBAAgB,CAAC;CAC1B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAgBrE,CAAC;AAEJ,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
|
|
@@ -39,51 +39,24 @@ const z = __importStar(require("zod/v4-mini"));
|
|
|
39
39
|
const primitives_js_1 = require("../lib/primitives.js");
|
|
40
40
|
const schemas_js_1 = require("../lib/schemas.js");
|
|
41
41
|
const types = __importStar(require("../types/primitives.js"));
|
|
42
|
-
const
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const recommendation_js_1 = require("./recommendation.js");
|
|
47
|
-
const risk_js_1 = require("./risk.js");
|
|
48
|
-
const signal_js_1 = require("./signal.js");
|
|
42
|
+
const account_js_1 = require("./account.js");
|
|
43
|
+
const assessment_detail_js_1 = require("./assessment-detail.js");
|
|
44
|
+
const depth_js_1 = require("./depth.js");
|
|
45
|
+
const flow_js_1 = require("./flow.js");
|
|
49
46
|
const status_js_1 = require("./status.js");
|
|
50
47
|
/** @internal */
|
|
51
48
|
exports.Assessment$inboundSchema = z
|
|
52
49
|
.pipe(z.object({
|
|
53
50
|
schema_version: types.literal("1"),
|
|
54
|
-
|
|
55
|
-
account_id: types.string(),
|
|
56
|
-
request_id: types.optional(types.string()),
|
|
51
|
+
id: types.string(),
|
|
57
52
|
status: status_js_1.Status$inboundSchema,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
incomplete_sources: z.array(incomplete_source_js_1.IncompleteSource$inboundSchema),
|
|
63
|
-
policy_version: types.string(),
|
|
64
|
-
policy_basis: types.literal("heuristic_unvalidated"),
|
|
65
|
-
assessment_version: types.number(),
|
|
66
|
-
created_at: types.string(),
|
|
67
|
-
updated_at: types.string(),
|
|
68
|
-
expires_at: types.string(),
|
|
69
|
-
assessment_url: types.optional(types.string()),
|
|
70
|
-
timing: assessment_timing_js_1.AssessmentTiming$inboundSchema,
|
|
71
|
-
auth_context: types.optional(assessment_auth_context_js_1.AssessmentAuthContext$inboundSchema),
|
|
53
|
+
flow: flow_js_1.Flow$inboundSchema,
|
|
54
|
+
depth: depth_js_1.Depth$inboundSchema,
|
|
55
|
+
account: types.optional(account_js_1.Account$inboundSchema),
|
|
56
|
+
detail: assessment_detail_js_1.AssessmentDetail$inboundSchema,
|
|
72
57
|
}), z.transform((v) => {
|
|
73
58
|
return (0, primitives_js_1.remap)(v, {
|
|
74
59
|
"schema_version": "schemaVersion",
|
|
75
|
-
"assessment_id": "assessmentId",
|
|
76
|
-
"account_id": "accountId",
|
|
77
|
-
"request_id": "requestId",
|
|
78
|
-
"incomplete_sources": "incompleteSources",
|
|
79
|
-
"policy_version": "policyVersion",
|
|
80
|
-
"policy_basis": "policyBasis",
|
|
81
|
-
"assessment_version": "assessmentVersion",
|
|
82
|
-
"created_at": "createdAt",
|
|
83
|
-
"updated_at": "updatedAt",
|
|
84
|
-
"expires_at": "expiresAt",
|
|
85
|
-
"assessment_url": "assessmentUrl",
|
|
86
|
-
"auth_context": "authContext",
|
|
87
60
|
});
|
|
88
61
|
}));
|
|
89
62
|
function assessmentFromJSON(jsonString) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"assessment.js","sourceRoot":"","sources":["../../../src/models/assessment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,wDAAuD;AACvD,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;AAChD,
|
|
1
|
+
{"version":3,"file":"assessment.js","sourceRoot":"","sources":["../../../src/models/assessment.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,wDAAuD;AACvD,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;AAChD,6CAA8D;AAC9D,iEAGgC;AAChC,yCAAwD;AAExD,uCAAqD;AACrD,2CAA2D;AAoC3D,gBAAgB;AACH,QAAA,wBAAwB,GAAuC,CAAC;KAC1E,IAAI,CACH,CAAC,CAAC,MAAM,CAAC;IACP,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;IAClC,EAAE,EAAE,KAAK,CAAC,MAAM,EAAE;IAClB,MAAM,EAAE,gCAAoB;IAC5B,IAAI,EAAE,4BAAkB;IACxB,KAAK,EAAE,8BAAmB;IAC1B,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,kCAAqB,CAAC;IAC9C,MAAM,EAAE,qDAA8B;CACvC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,eAAe;KAClC,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEJ,4BACE,UAAkB,EAC+B;IACjD,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,QAAA,wBAAwB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpD,wCAAwC,CACzC,CAAC;AAAA,CACH"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
|
-
import {
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
3
|
/**
|
|
4
4
|
* How long the synchronous answer waits for sources. quick waits only for the fast sources, those that answer within 500 ms of ingress (or deadline_ms when lower); full waits for the whole budget, up to 3000 ms. Sources still running at the cut continue asynchronously and update the assessment either way.
|
|
5
5
|
*/
|
|
@@ -10,7 +10,9 @@ export declare const Depth: {
|
|
|
10
10
|
/**
|
|
11
11
|
* How long the synchronous answer waits for sources. quick waits only for the fast sources, those that answer within 500 ms of ingress (or deadline_ms when lower); full waits for the whole budget, up to 3000 ms. Sources still running at the cut continue asynchronously and update the assessment either way.
|
|
12
12
|
*/
|
|
13
|
-
export type Depth =
|
|
13
|
+
export type Depth = OpenEnum<typeof Depth>;
|
|
14
14
|
/** @internal */
|
|
15
|
-
export declare const Depth$
|
|
15
|
+
export declare const Depth$inboundSchema: z.ZodMiniType<Depth, unknown>;
|
|
16
|
+
/** @internal */
|
|
17
|
+
export declare const Depth$outboundSchema: z.ZodMiniType<string, Depth>;
|
|
16
18
|
//# sourceMappingURL=depth.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../../src/models/depth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"depth.d.ts","sourceRoot":"","sources":["../../../src/models/depth.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,KAAK;;;CAGR,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,KAAK,GAAG,QAAQ,CAAC,OAAO,KAAK,CAAC,CAAC;AAE3C,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,WAAW,CAAC,KAAK,EAAE,OAAO,CACvC,CAAC;AACxB,gBAAgB;AAChB,eAAO,MAAM,oBAAoB,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,KAAK,CACtC,CAAC"}
|
|
@@ -33,8 +33,8 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.Depth$outboundSchema = exports.Depth = void 0;
|
|
37
|
-
const
|
|
36
|
+
exports.Depth$outboundSchema = exports.Depth$inboundSchema = exports.Depth = void 0;
|
|
37
|
+
const openEnums = __importStar(require("../types/enums.js"));
|
|
38
38
|
/**
|
|
39
39
|
* How long the synchronous answer waits for sources. quick waits only for the fast sources, those that answer within 500 ms of ingress (or deadline_ms when lower); full waits for the whole budget, up to 3000 ms. Sources still running at the cut continue asynchronously and update the assessment either way.
|
|
40
40
|
*/
|
|
@@ -43,5 +43,9 @@ exports.Depth = {
|
|
|
43
43
|
Full: "full",
|
|
44
44
|
};
|
|
45
45
|
/** @internal */
|
|
46
|
-
exports.Depth$
|
|
46
|
+
exports.Depth$inboundSchema = openEnums
|
|
47
|
+
.inboundSchema(exports.Depth);
|
|
48
|
+
/** @internal */
|
|
49
|
+
exports.Depth$outboundSchema = openEnums
|
|
50
|
+
.outboundSchema(exports.Depth);
|
|
47
51
|
//# sourceMappingURL=depth.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"depth.js","sourceRoot":"","sources":["../../../src/models/depth.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"depth.js","sourceRoot":"","sources":["../../../src/models/depth.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAY,SAAS,8CAA0B;AAG/C;;GAEG;AACU,QAAA,KAAK,GAAG;IACnB,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACJ,CAAC;AAMX,gBAAgB;AACH,QAAA,mBAAmB,GAAkC,SAAS;KACxE,aAAa,CAAC,QAAA,KAAK,CAAC,CAAC;AACxB,gBAAgB;AACH,QAAA,oBAAoB,GAAiC,SAAS;KACxE,cAAc,CAAC,QAAA,KAAK,CAAC,CAAC"}
|
|
@@ -1,18 +1,19 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
|
-
import {
|
|
2
|
+
import { OpenEnum } from "../types/enums.js";
|
|
3
3
|
/**
|
|
4
|
-
* The
|
|
4
|
+
* The customer event an assessment is made for: signup (a new account), login (a returning sign-in) or purchase (a payment or credit grant). The account's risk is reported with the decision for this flow.
|
|
5
5
|
*/
|
|
6
6
|
export declare const Flow: {
|
|
7
7
|
readonly Signup: "signup";
|
|
8
8
|
readonly Login: "login";
|
|
9
|
-
readonly
|
|
10
|
-
readonly ProfileChange: "profile_change";
|
|
9
|
+
readonly Purchase: "purchase";
|
|
11
10
|
};
|
|
12
11
|
/**
|
|
13
|
-
* The
|
|
12
|
+
* The customer event an assessment is made for: signup (a new account), login (a returning sign-in) or purchase (a payment or credit grant). The account's risk is reported with the decision for this flow.
|
|
14
13
|
*/
|
|
15
|
-
export type Flow =
|
|
14
|
+
export type Flow = OpenEnum<typeof Flow>;
|
|
16
15
|
/** @internal */
|
|
17
|
-
export declare const Flow$
|
|
16
|
+
export declare const Flow$inboundSchema: z.ZodMiniType<Flow, unknown>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const Flow$outboundSchema: z.ZodMiniType<string, Flow>;
|
|
18
19
|
//# sourceMappingURL=flow.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../src/models/flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"flow.d.ts","sourceRoot":"","sources":["../../../src/models/flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,IAAI;;;;CAIP,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG,QAAQ,CAAC,OAAO,IAAI,CAAC,CAAC;AAEzC,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,OAAO,CACtC,CAAC;AACvB,gBAAgB;AAChB,eAAO,MAAM,mBAAmB,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,IAAI,CACrC,CAAC"}
|
|
@@ -33,17 +33,20 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
33
33
|
};
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
|
-
exports.Flow$outboundSchema = exports.Flow = void 0;
|
|
37
|
-
const
|
|
36
|
+
exports.Flow$outboundSchema = exports.Flow$inboundSchema = exports.Flow = void 0;
|
|
37
|
+
const openEnums = __importStar(require("../types/enums.js"));
|
|
38
38
|
/**
|
|
39
|
-
* The
|
|
39
|
+
* The customer event an assessment is made for: signup (a new account), login (a returning sign-in) or purchase (a payment or credit grant). The account's risk is reported with the decision for this flow.
|
|
40
40
|
*/
|
|
41
41
|
exports.Flow = {
|
|
42
42
|
Signup: "signup",
|
|
43
43
|
Login: "login",
|
|
44
|
-
|
|
45
|
-
ProfileChange: "profile_change",
|
|
44
|
+
Purchase: "purchase",
|
|
46
45
|
};
|
|
47
46
|
/** @internal */
|
|
48
|
-
exports.Flow$
|
|
47
|
+
exports.Flow$inboundSchema = openEnums
|
|
48
|
+
.inboundSchema(exports.Flow);
|
|
49
|
+
/** @internal */
|
|
50
|
+
exports.Flow$outboundSchema = openEnums
|
|
51
|
+
.outboundSchema(exports.Flow);
|
|
49
52
|
//# sourceMappingURL=flow.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"flow.js","sourceRoot":"","sources":["../../../src/models/flow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"flow.js","sourceRoot":"","sources":["../../../src/models/flow.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAY,SAAS,8CAA0B;AAG/C;;GAEG;AACU,QAAA,IAAI,GAAG;IAClB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;IACd,QAAQ,EAAE,UAAU;CACZ,CAAC;AAMX,gBAAgB;AACH,QAAA,kBAAkB,GAAiC,SAAS;KACtE,aAAa,CAAC,QAAA,IAAI,CAAC,CAAC;AACvB,gBAAgB;AACH,QAAA,mBAAmB,GAAgC,SAAS;KACtE,cAAc,CAAC,QAAA,IAAI,CAAC,CAAC"}
|
|
@@ -4,10 +4,11 @@ export * from "./account-deletion.js";
|
|
|
4
4
|
export * from "./account-risk-reason.js";
|
|
5
5
|
export * from "./account-risk.js";
|
|
6
6
|
export * from "./account.js";
|
|
7
|
-
export * from "./assessment-auth-context.js";
|
|
8
7
|
export * from "./assessment-deletion-account.js";
|
|
9
8
|
export * from "./assessment-deletion.js";
|
|
10
|
-
export * from "./assessment-
|
|
9
|
+
export * from "./assessment-detail-auth-context.js";
|
|
10
|
+
export * from "./assessment-detail-timing.js";
|
|
11
|
+
export * from "./assessment-detail.js";
|
|
11
12
|
export * from "./assessment-list.js";
|
|
12
13
|
export * from "./assessment-outcome-request.js";
|
|
13
14
|
export * from "./assessment-outcome.js";
|
|
@@ -17,7 +18,6 @@ export * from "./assessment-request-identifiers.js";
|
|
|
17
18
|
export * from "./assessment-request-issued-credential.js";
|
|
18
19
|
export * from "./assessment-request-policy-context.js";
|
|
19
20
|
export * from "./assessment-request.js";
|
|
20
|
-
export * from "./assessment-timing.js";
|
|
21
21
|
export * from "./assessment.js";
|
|
22
22
|
export * from "./assurance-level.js";
|
|
23
23
|
export * from "./auth-context-mfa.js";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAC;AACtC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,uBAAuB,CAAC;AACtC,cAAc,0BAA0B,CAAC;AACzC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,kCAAkC,CAAC;AACjD,cAAc,0BAA0B,CAAC;AACzC,cAAc,qCAAqC,CAAC;AACpD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAAc,wCAAwC,CAAC;AACvD,cAAc,qCAAqC,CAAC;AACpD,cAAc,2CAA2C,CAAC;AAC1D,cAAc,wCAAwC,CAAC;AACvD,cAAc,yBAAyB,CAAC;AACxC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,WAAW,CAAC;AAC1B,cAAc,qBAAqB,CAAC;AACpC,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,iBAAiB,CAAC;AAChC,cAAc,0BAA0B,CAAC;AACzC,cAAc,wBAAwB,CAAC;AACvC,cAAc,kBAAkB,CAAC;AACj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AAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,sCAAsC,CAAC;AACrD,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,+BAA+B,CAAC;AAC9C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,uBAAuB,CAAC;AACtC,cAAc,mCAAmC,CAAC;AAClD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,6BAA6B,CAAC;AAC5C,cAAc,qBAAqB,CAAC;AACpC,cAAc,iCAAiC,CAAC;AAChD,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC"}
|
|
@@ -20,10 +20,11 @@ __exportStar(require("./account-deletion.js"), exports);
|
|
|
20
20
|
__exportStar(require("./account-risk-reason.js"), exports);
|
|
21
21
|
__exportStar(require("./account-risk.js"), exports);
|
|
22
22
|
__exportStar(require("./account.js"), exports);
|
|
23
|
-
__exportStar(require("./assessment-auth-context.js"), exports);
|
|
24
23
|
__exportStar(require("./assessment-deletion-account.js"), exports);
|
|
25
24
|
__exportStar(require("./assessment-deletion.js"), exports);
|
|
26
|
-
__exportStar(require("./assessment-
|
|
25
|
+
__exportStar(require("./assessment-detail-auth-context.js"), exports);
|
|
26
|
+
__exportStar(require("./assessment-detail-timing.js"), exports);
|
|
27
|
+
__exportStar(require("./assessment-detail.js"), exports);
|
|
27
28
|
__exportStar(require("./assessment-list.js"), exports);
|
|
28
29
|
__exportStar(require("./assessment-outcome-request.js"), exports);
|
|
29
30
|
__exportStar(require("./assessment-outcome.js"), exports);
|
|
@@ -33,7 +34,6 @@ __exportStar(require("./assessment-request-identifiers.js"), exports);
|
|
|
33
34
|
__exportStar(require("./assessment-request-issued-credential.js"), exports);
|
|
34
35
|
__exportStar(require("./assessment-request-policy-context.js"), exports);
|
|
35
36
|
__exportStar(require("./assessment-request.js"), exports);
|
|
36
|
-
__exportStar(require("./assessment-timing.js"), exports);
|
|
37
37
|
__exportStar(require("./assessment.js"), exports);
|
|
38
38
|
__exportStar(require("./assurance-level.js"), exports);
|
|
39
39
|
__exportStar(require("./auth-context-mfa.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,iEAA+C;AAC/C,wDAAsC;AACtC,2DAAyC;AACzC,oDAAkC;AAClC,+CAA6B;AAC7B
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,wDAAsC;AACtC,iEAA+C;AAC/C,wDAAsC;AACtC,2DAAyC;AACzC,oDAAkC;AAClC,+CAA6B;AAC7B,mEAAiD;AACjD,2DAAyC;AACzC,sEAAoD;AACpD,gEAA8C;AAC9C,yDAAuC;AACvC,uDAAqC;AACrC,kEAAgD;AAChD,0DAAwC;AACxC,wDAAsC;AACtC,yEAAuD;AACvD,sEAAoD;AACpD,4EAA0D;AAC1D,yEAAuD;AACvD,0DAAwC;AACxC,kDAAgC;AAChC,uDAAqC;AACrC,wDAAsC;AACtC,oDAAkC;AAClC,iEAA+C;AAC/C,8DAA4C;AAC5C,4CAA0B;AAC1B,sDAAoC;AACpC,mDAAiC;AACjC,uDAAqC;AACrC,sDAAoC;AACpC,8CAA4B;AAC5B,kDAAgC;AAChC,2DAAyC;AACzC,yDAAuC;AACvC,mDAAiC;AACjC,+CAA6B;AAC7B,6CAA2B;AAC3B,kDAAgC;AAChC,sDAAoC;AACpC,+CAA6B;AAC7B,4CAA0B;AAC1B,iDAA+B;AAC/B,kDAAgC;AAChC,uDAAqC;AACrC,yDAAuC;AACvC,yDAAuC;AACvC,8DAA4C;AAC5C,wDAAsC;AACtC,4DAA0C;AAC1C,2DAAyC;AACzC,oEAAkD;AAClD,mDAAiC;AACjC,uDAAqC;AACrC,kDAAgC;AAChC,4DAA0C;AAC1C,oDAAkC;AAClC,4CAA0B;AAC1B,iDAA+B;AAC/B,4DAA0C;AAC1C,+CAA6B;AAC7B,oEAAkD;AAClD,+DAA6C;AAC7C,wDAAsC;AACtC,gDAA8B;AAC9B,6DAA2C;AAC3C,6DAA2C;AAC3C,mDAAiC;AACjC,yDAAuC;AACvC,sDAAoC;AACpC,qDAAmC;AACnC,uDAAqC;AACrC,qDAAmC;AACnC,gEAA8C;AAC9C,+DAA6C;AAC7C,oDAAkC;AAClC,mDAAiC;AACjC,0DAAwC;AACxC,0DAAwC;AACxC,6DAA2C;AAC3C,oDAAkC;AAClC,4CAA0B;AAC1B,gDAA8B;AAC9B,sDAAoC;AACpC,8CAA4B;AAC5B,mDAAiC;AACjC,sDAAoC;AACpC,8CAA4B;AAC5B,iDAA+B;AAC/B,uEAAqD;AACrD,gEAA8C;AAC9C,6DAA2C;AAC3C,gEAA8C;AAC9C,6DAA2C;AAC3C,gEAA8C;AAC9C,8DAA4C;AAC5C,wDAAsC;AACtC,oEAAkD;AAClD,4DAA0C;AAC1C,8DAA4C;AAC5C,sDAAoC;AACpC,kEAAgD;AAChD,4DAA0C;AAC1C,oDAAkC"}
|
|
@@ -6,7 +6,7 @@ export declare class Accounts extends ClientSDK {
|
|
|
6
6
|
* Read an account's one current risk.
|
|
7
7
|
*
|
|
8
8
|
* @remarks
|
|
9
|
-
* An account is the account_id you send with your assessments. Its current risk is the risk of its latest assessment with a decision (status complete or partial), scored as GET /v1/assessments/{assessment_id} scores that assessment, with a decision for each flow. Every assessment updates its account: once an assessment completes, the account carries its risk. Requires the history scope. Read-only and safe to retry. An account with no unexpired assessment that has a decision answers 404 not_found, and a malformed account_id answers 400 invalid_request.
|
|
9
|
+
* An account is the account_id you send with your assessments. Its current risk is the risk of its latest assessment with a decision (status complete or partial), scored as GET /v1/assessments/{assessment_id} scores that assessment, with a decision for each flow; risk.decision is the decision for the flow of that assessment. Every assessment answers with this same account. Every assessment updates its account: once an assessment completes, the account carries its risk. Requires the history scope. Read-only and safe to retry. An account with no unexpired assessment that has a decision answers 404 not_found, and a malformed account_id answers 400 invalid_request.
|
|
10
10
|
*/
|
|
11
11
|
get(request: operations.GetAccountRequest, options?: RequestOptions): Promise<operations.GetAccountResponse>;
|
|
12
12
|
/**
|
|
@@ -12,7 +12,7 @@ class Accounts extends sdks_js_1.ClientSDK {
|
|
|
12
12
|
* Read an account's one current risk.
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* An account is the account_id you send with your assessments. Its current risk is the risk of its latest assessment with a decision (status complete or partial), scored as GET /v1/assessments/{assessment_id} scores that assessment, with a decision for each flow. Every assessment updates its account: once an assessment completes, the account carries its risk. Requires the history scope. Read-only and safe to retry. An account with no unexpired assessment that has a decision answers 404 not_found, and a malformed account_id answers 400 invalid_request.
|
|
15
|
+
* An account is the account_id you send with your assessments. Its current risk is the risk of its latest assessment with a decision (status complete or partial), scored as GET /v1/assessments/{assessment_id} scores that assessment, with a decision for each flow; risk.decision is the decision for the flow of that assessment. Every assessment answers with this same account. Every assessment updates its account: once an assessment completes, the account carries its risk. Requires the history scope. Read-only and safe to retry. An account with no unexpired assessment that has a decision answers 404 not_found, and a malformed account_id answers 400 invalid_request.
|
|
16
16
|
*/
|
|
17
17
|
async get(request, options) {
|
|
18
18
|
return (0, fp_js_1.unwrapAsync)((0, accounts_get_js_1.accountsGet)(this, request, options));
|
|
@@ -7,14 +7,14 @@ export declare class Assessments extends ClientSDK {
|
|
|
7
7
|
* Assess identifiers for a signup or gateway decision.
|
|
8
8
|
*
|
|
9
9
|
* @remarks
|
|
10
|
-
*
|
|
10
|
+
* Assesses one signup, login or purchase (flow) and answers with the account's one current risk: account.risk.decision is the decision for this flow (allow, step_up, review or block, where block means your block threshold was reached), and detail holds this assessment's own facts. depth sets how long the answer waits for sources: quick waits only for the fast ones (500 ms), full for the whole budget (3000 ms at most); it defaults to full for signup and purchase and quick for login. 200 carries complete or partial, 202 carries pending with Location and Retry-After. While the account's first assessment is pending, account is absent: apply your own fallback for that, 429, 503 or a timeout. NoResponse blocks nothing itself; you decide. Requires the assess scope. Idempotency-Key is required and is bound to the body for 24 hours: the same key with the same body replays the latest assessment with Idempotent-Replayed: true and starts no new work; the same key with a different body answers 409 idempotency_key_reused. response_mode defaults to standard; detailed needs the detailed scope.
|
|
11
11
|
*/
|
|
12
12
|
create(request: operations.CreateAssessmentRequest, options?: RequestOptions): Promise<operations.CreateAssessmentResponse>;
|
|
13
13
|
/**
|
|
14
14
|
* Poll the authoritative assessment of one assessment.
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
* Returns the highest assessment_version. Requires the assess or history scope. While status is pending, or partial with a source still running, the response carries Retry-After; poll no faster than it says. Another tenant's assessment, an unknown or expired assessment and a malformed assessment_id all answer 404 not_found. response_mode=detailed needs the detailed scope.
|
|
17
|
+
* Returns the highest assessment_version, with the account's current risk. Requires the assess or history scope. While status is pending, or partial with a source still running, the response carries Retry-After; poll no faster than it says. Another tenant's assessment, an unknown or expired assessment and a malformed assessment_id all answer 404 not_found. response_mode=detailed needs the detailed scope.
|
|
18
18
|
*/
|
|
19
19
|
get(request: operations.GetAssessmentRequest, options?: RequestOptions): Promise<operations.GetAssessmentResponse>;
|
|
20
20
|
/**
|
|
@@ -14,7 +14,7 @@ class Assessments extends sdks_js_1.ClientSDK {
|
|
|
14
14
|
* Assess identifiers for a signup or gateway decision.
|
|
15
15
|
*
|
|
16
16
|
* @remarks
|
|
17
|
-
*
|
|
17
|
+
* Assesses one signup, login or purchase (flow) and answers with the account's one current risk: account.risk.decision is the decision for this flow (allow, step_up, review or block, where block means your block threshold was reached), and detail holds this assessment's own facts. depth sets how long the answer waits for sources: quick waits only for the fast ones (500 ms), full for the whole budget (3000 ms at most); it defaults to full for signup and purchase and quick for login. 200 carries complete or partial, 202 carries pending with Location and Retry-After. While the account's first assessment is pending, account is absent: apply your own fallback for that, 429, 503 or a timeout. NoResponse blocks nothing itself; you decide. Requires the assess scope. Idempotency-Key is required and is bound to the body for 24 hours: the same key with the same body replays the latest assessment with Idempotent-Replayed: true and starts no new work; the same key with a different body answers 409 idempotency_key_reused. response_mode defaults to standard; detailed needs the detailed scope.
|
|
18
18
|
*/
|
|
19
19
|
async create(request, options) {
|
|
20
20
|
return (0, fp_js_1.unwrapAsync)((0, assessments_create_js_1.assessmentsCreate)(this, request, options));
|
|
@@ -23,7 +23,7 @@ class Assessments extends sdks_js_1.ClientSDK {
|
|
|
23
23
|
* Poll the authoritative assessment of one assessment.
|
|
24
24
|
*
|
|
25
25
|
* @remarks
|
|
26
|
-
* Returns the highest assessment_version. Requires the assess or history scope. While status is pending, or partial with a source still running, the response carries Retry-After; poll no faster than it says. Another tenant's assessment, an unknown or expired assessment and a malformed assessment_id all answer 404 not_found. response_mode=detailed needs the detailed scope.
|
|
26
|
+
* Returns the highest assessment_version, with the account's current risk. Requires the assess or history scope. While status is pending, or partial with a source still running, the response carries Retry-After; poll no faster than it says. Another tenant's assessment, an unknown or expired assessment and a malformed assessment_id all answer 404 not_found. response_mode=detailed needs the detailed scope.
|
|
27
27
|
*/
|
|
28
28
|
async get(request, options) {
|
|
29
29
|
return (0, fp_js_1.unwrapAsync)((0, assessments_get_js_1.assessmentsGet)(this, request, options));
|
|
@@ -83,7 +83,7 @@ export declare class WebhookVerificationError extends Error {
|
|
|
83
83
|
* letter case, is refused. `secrets` maps each whk_ key id NoResponse gave you
|
|
84
84
|
* to its secret, so two can be held during a rotation. Deliveries older than
|
|
85
85
|
* `toleranceSeconds` (default 300) are refused; deduplicate on `event.id`
|
|
86
|
-
* and keep the highest `assessmentVersion` yourself.
|
|
86
|
+
* and keep the highest `data.detail.assessmentVersion` yourself.
|
|
87
87
|
*/
|
|
88
88
|
export declare function constructEvent(payload: Uint8Array | string, headers: HeaderInput, secrets: WebhookSecrets, options?: ConstructEventOptions): WebhookEvent;
|
|
89
89
|
/** The body to answer an endpoint.verification event with, as JSON, status 200. */
|
|
@@ -124,7 +124,7 @@ function expired(data) {
|
|
|
124
124
|
* letter case, is refused. `secrets` maps each whk_ key id NoResponse gave you
|
|
125
125
|
* to its secret, so two can be held during a rotation. Deliveries older than
|
|
126
126
|
* `toleranceSeconds` (default 300) are refused; deduplicate on `event.id`
|
|
127
|
-
* and keep the highest `assessmentVersion` yourself.
|
|
127
|
+
* and keep the highest `data.detail.assessmentVersion` yourself.
|
|
128
128
|
*/
|
|
129
129
|
function constructEvent(payload, headers, secrets, options = {}) {
|
|
130
130
|
const raw = typeof payload === "string" ? Buffer.from(payload, "utf8") : Buffer.from(payload.buffer, payload.byteOffset, payload.byteLength);
|
package/dist/esm/client.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export type AssessmentPage = models.AssessmentList & {
|
|
|
69
69
|
hasMore: boolean;
|
|
70
70
|
/** The next page, or null on the last one. */
|
|
71
71
|
next(): Promise<AssessmentPage | null>;
|
|
72
|
-
[Symbol.asyncIterator](): AsyncIterator<models.
|
|
72
|
+
[Symbol.asyncIterator](): AsyncIterator<models.AssessmentDetail>;
|
|
73
73
|
};
|
|
74
74
|
export declare function toSDKOptions(options: NoResponseOptions): SDKOptions;
|
|
75
75
|
export declare class Assessments {
|
package/dist/esm/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../src/client.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,QAAQ,IAAI,iBAAiB,EAAE,MAAM,mBAAmB,CAAC;AACvE,OAAO,KAAK,EAAE,WAAW,IAAI,oBAAoB,EAAE,MAAM,sBAAsB,CAAC;AAChF,OAAO,KAAK,EAAE,YAAY,IAAI,qBAAqB,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,KAAK,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AAQ,CAAC,QAAQ,EAAE,QAAQ,CAAC;IAC5B,QAAQ,CAAC,IAAI,EAAE,IAAI,CAAC;IACpB,QAAQ,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;IAC5C,QAAQ,CAAC,YAAY,EAAE,YAAY,CAAC;IACpC,2FAA2F;IAC3F,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC;IAC9B,QAAQ,CAAC,OAAO,EAAE,MAAM,CAAC;IAEzB,uGAAuG;IACvG,YAAY,OAAO,GAAE,iBAAiB,GAAG,MAAW,EAYnD;IAED,MAAM,IAAI;QAAE,OAAO,EAAE,MAAM,CAAA;KAAE,CAE5B;CAKF"}
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Read an account's one current risk.
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* An account is the account_id you send with your assessments. Its current risk is the risk of its latest assessment with a decision (status complete or partial), scored as GET /v1/assessments/{assessment_id} scores that assessment, with a decision for each flow. Every assessment updates its account: once an assessment completes, the account carries its risk. Requires the history scope. Read-only and safe to retry. An account with no unexpired assessment that has a decision answers 404 not_found, and a malformed account_id answers 400 invalid_request.
|
|
15
|
+
* An account is the account_id you send with your assessments. Its current risk is the risk of its latest assessment with a decision (status complete or partial), scored as GET /v1/assessments/{assessment_id} scores that assessment, with a decision for each flow; risk.decision is the decision for the flow of that assessment. Every assessment answers with this same account. Every assessment updates its account: once an assessment completes, the account carries its risk. Requires the history scope. Read-only and safe to retry. An account with no unexpired assessment that has a decision answers 404 not_found, and a malformed account_id answers 400 invalid_request.
|
|
16
16
|
*/
|
|
17
17
|
export declare function accountsGet(client: NoResponseCore, request: operations.GetAccountRequest, options?: RequestOptions): APIPromise<Result<operations.GetAccountResponse, errors.BadRequestError | errors.AuthenticationError | errors.PermissionDeniedError | errors.NotFoundError | errors.ConflictError | errors.RateLimitError | NoResponseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=accounts-get.d.ts.map
|
|
@@ -13,7 +13,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
13
13
|
* Read an account's one current risk.
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
* An account is the account_id you send with your assessments. Its current risk is the risk of its latest assessment with a decision (status complete or partial), scored as GET /v1/assessments/{assessment_id} scores that assessment, with a decision for each flow. Every assessment updates its account: once an assessment completes, the account carries its risk. Requires the history scope. Read-only and safe to retry. An account with no unexpired assessment that has a decision answers 404 not_found, and a malformed account_id answers 400 invalid_request.
|
|
16
|
+
* An account is the account_id you send with your assessments. Its current risk is the risk of its latest assessment with a decision (status complete or partial), scored as GET /v1/assessments/{assessment_id} scores that assessment, with a decision for each flow; risk.decision is the decision for the flow of that assessment. Every assessment answers with this same account. Every assessment updates its account: once an assessment completes, the account carries its risk. Requires the history scope. Read-only and safe to retry. An account with no unexpired assessment that has a decision answers 404 not_found, and a malformed account_id answers 400 invalid_request.
|
|
17
17
|
*/
|
|
18
18
|
export function accountsGet(client, request, options) {
|
|
19
19
|
return new APIPromise($do(client, request, options));
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Assess identifiers for a signup or gateway decision.
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
*
|
|
15
|
+
* Assesses one signup, login or purchase (flow) and answers with the account's one current risk: account.risk.decision is the decision for this flow (allow, step_up, review or block, where block means your block threshold was reached), and detail holds this assessment's own facts. depth sets how long the answer waits for sources: quick waits only for the fast ones (500 ms), full for the whole budget (3000 ms at most); it defaults to full for signup and purchase and quick for login. 200 carries complete or partial, 202 carries pending with Location and Retry-After. While the account's first assessment is pending, account is absent: apply your own fallback for that, 429, 503 or a timeout. NoResponse blocks nothing itself; you decide. Requires the assess scope. Idempotency-Key is required and is bound to the body for 24 hours: the same key with the same body replays the latest assessment with Idempotent-Replayed: true and starts no new work; the same key with a different body answers 409 idempotency_key_reused. response_mode defaults to standard; detailed needs the detailed scope.
|
|
16
16
|
*/
|
|
17
17
|
export declare function assessmentsCreate(client: NoResponseCore, request: operations.CreateAssessmentRequest, options?: RequestOptions): APIPromise<Result<operations.CreateAssessmentResponse, errors.BadRequestError | errors.AuthenticationError | errors.PermissionDeniedError | errors.NotFoundError | errors.ConflictError | errors.RateLimitError | NoResponseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=assessments-create.d.ts.map
|
|
@@ -13,7 +13,7 @@ import { APIPromise } from "../types/async.js";
|
|
|
13
13
|
* Assess identifiers for a signup or gateway decision.
|
|
14
14
|
*
|
|
15
15
|
* @remarks
|
|
16
|
-
*
|
|
16
|
+
* Assesses one signup, login or purchase (flow) and answers with the account's one current risk: account.risk.decision is the decision for this flow (allow, step_up, review or block, where block means your block threshold was reached), and detail holds this assessment's own facts. depth sets how long the answer waits for sources: quick waits only for the fast ones (500 ms), full for the whole budget (3000 ms at most); it defaults to full for signup and purchase and quick for login. 200 carries complete or partial, 202 carries pending with Location and Retry-After. While the account's first assessment is pending, account is absent: apply your own fallback for that, 429, 503 or a timeout. NoResponse blocks nothing itself; you decide. Requires the assess scope. Idempotency-Key is required and is bound to the body for 24 hours: the same key with the same body replays the latest assessment with Idempotent-Replayed: true and starts no new work; the same key with a different body answers 409 idempotency_key_reused. response_mode defaults to standard; detailed needs the detailed scope.
|
|
17
17
|
*/
|
|
18
18
|
export function assessmentsCreate(client, request, options) {
|
|
19
19
|
return new APIPromise($do(client, request, options));
|
|
@@ -12,7 +12,7 @@ import { Result } from "../types/fp.js";
|
|
|
12
12
|
* Poll the authoritative assessment of one assessment.
|
|
13
13
|
*
|
|
14
14
|
* @remarks
|
|
15
|
-
* Returns the highest assessment_version. Requires the assess or history scope. While status is pending, or partial with a source still running, the response carries Retry-After; poll no faster than it says. Another tenant's assessment, an unknown or expired assessment and a malformed assessment_id all answer 404 not_found. response_mode=detailed needs the detailed scope.
|
|
15
|
+
* Returns the highest assessment_version, with the account's current risk. Requires the assess or history scope. While status is pending, or partial with a source still running, the response carries Retry-After; poll no faster than it says. Another tenant's assessment, an unknown or expired assessment and a malformed assessment_id all answer 404 not_found. response_mode=detailed needs the detailed scope.
|
|
16
16
|
*/
|
|
17
17
|
export declare function assessmentsGet(client: NoResponseCore, request: operations.GetAssessmentRequest, options?: RequestOptions): APIPromise<Result<operations.GetAssessmentResponse, errors.BadRequestError | errors.AuthenticationError | errors.PermissionDeniedError | errors.NotFoundError | errors.ConflictError | errors.RateLimitError | NoResponseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
|
|
18
18
|
//# sourceMappingURL=assessments-get.d.ts.map
|