@noresponse/node 7.1.7 → 7.1.8

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 (140) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/dist/commonjs/lib/config.d.ts +2 -2
  3. package/dist/commonjs/lib/config.js +2 -2
  4. package/dist/commonjs/models/account-risk-reason.d.ts +16 -2
  5. package/dist/commonjs/models/account-risk-reason.d.ts.map +1 -1
  6. package/dist/commonjs/models/account-risk-reason.js +8 -2
  7. package/dist/commonjs/models/account-risk-reason.js.map +1 -1
  8. package/dist/commonjs/models/account-risk.d.ts +1 -1
  9. package/dist/commonjs/models/agreement.d.ts +13 -0
  10. package/dist/commonjs/models/agreement.d.ts.map +1 -0
  11. package/dist/commonjs/models/agreement.js +47 -0
  12. package/dist/commonjs/models/agreement.js.map +1 -0
  13. package/dist/commonjs/models/assessment-detail.d.ts +2 -2
  14. package/dist/commonjs/models/attribute-agreement.d.ts +25 -0
  15. package/dist/commonjs/models/attribute-agreement.d.ts.map +1 -0
  16. package/dist/commonjs/models/attribute-agreement.js +61 -0
  17. package/dist/commonjs/models/attribute-agreement.js.map +1 -0
  18. package/dist/commonjs/models/direction.d.ts +13 -0
  19. package/dist/commonjs/models/direction.d.ts.map +1 -0
  20. package/dist/commonjs/models/direction.js +47 -0
  21. package/dist/commonjs/models/direction.js.map +1 -0
  22. package/dist/commonjs/models/footprint-coherence.d.ts +66 -0
  23. package/dist/commonjs/models/footprint-coherence.d.ts.map +1 -0
  24. package/dist/commonjs/models/footprint-coherence.js +84 -0
  25. package/dist/commonjs/models/footprint-coherence.js.map +1 -0
  26. package/dist/commonjs/models/footprint-family.d.ts +21 -0
  27. package/dist/commonjs/models/footprint-family.d.ts.map +1 -0
  28. package/dist/commonjs/models/footprint-family.js +52 -0
  29. package/dist/commonjs/models/footprint-family.js.map +1 -0
  30. package/dist/commonjs/models/footprint-timeline.d.ts +31 -0
  31. package/dist/commonjs/models/footprint-timeline.d.ts.map +1 -0
  32. package/dist/commonjs/models/footprint-timeline.js +82 -0
  33. package/dist/commonjs/models/footprint-timeline.js.map +1 -0
  34. package/dist/commonjs/models/footprint.d.ts +35 -0
  35. package/dist/commonjs/models/footprint.d.ts.map +1 -0
  36. package/dist/commonjs/models/footprint.js +66 -0
  37. package/dist/commonjs/models/footprint.js.map +1 -0
  38. package/dist/commonjs/models/identifier.d.ts +12 -0
  39. package/dist/commonjs/models/identifier.d.ts.map +1 -0
  40. package/dist/commonjs/models/identifier.js +46 -0
  41. package/dist/commonjs/models/identifier.js.map +1 -0
  42. package/dist/commonjs/models/impact.d.ts +14 -0
  43. package/dist/commonjs/models/impact.d.ts.map +1 -0
  44. package/dist/commonjs/models/impact.js +50 -0
  45. package/dist/commonjs/models/impact.js.map +1 -0
  46. package/dist/commonjs/models/index.d.ts +11 -0
  47. package/dist/commonjs/models/index.d.ts.map +1 -1
  48. package/dist/commonjs/models/index.js +11 -0
  49. package/dist/commonjs/models/index.js.map +1 -1
  50. package/dist/commonjs/models/risk-details-event-kind.d.ts +13 -0
  51. package/dist/commonjs/models/risk-details-event-kind.d.ts.map +1 -0
  52. package/dist/commonjs/models/risk-details-event-kind.js +47 -0
  53. package/dist/commonjs/models/risk-details-event-kind.js.map +1 -0
  54. package/dist/commonjs/models/risk-details-event.d.ts +35 -0
  55. package/dist/commonjs/models/risk-details-event.d.ts.map +1 -0
  56. package/dist/commonjs/models/risk-details-event.js +71 -0
  57. package/dist/commonjs/models/risk-details-event.js.map +1 -0
  58. package/dist/commonjs/models/risk-details.d.ts +6 -0
  59. package/dist/commonjs/models/risk-details.d.ts.map +1 -1
  60. package/dist/commonjs/models/risk-details.js +3 -0
  61. package/dist/commonjs/models/risk-details.js.map +1 -1
  62. package/dist/commonjs/models/risk-reason.d.ts +16 -2
  63. package/dist/commonjs/models/risk-reason.d.ts.map +1 -1
  64. package/dist/commonjs/models/risk-reason.js +8 -2
  65. package/dist/commonjs/models/risk-reason.js.map +1 -1
  66. package/dist/commonjs/models/risk-summary.d.ts +6 -0
  67. package/dist/commonjs/models/risk-summary.d.ts.map +1 -1
  68. package/dist/commonjs/models/risk-summary.js +3 -0
  69. package/dist/commonjs/models/risk-summary.js.map +1 -1
  70. package/dist/commonjs/models/risk.d.ts +3 -3
  71. package/dist/esm/lib/config.d.ts +2 -2
  72. package/dist/esm/lib/config.js +2 -2
  73. package/dist/esm/models/account-risk-reason.d.ts +16 -2
  74. package/dist/esm/models/account-risk-reason.d.ts.map +1 -1
  75. package/dist/esm/models/account-risk-reason.js +8 -2
  76. package/dist/esm/models/account-risk-reason.js.map +1 -1
  77. package/dist/esm/models/account-risk.d.ts +1 -1
  78. package/dist/esm/models/agreement.d.ts +13 -0
  79. package/dist/esm/models/agreement.d.ts.map +1 -0
  80. package/dist/esm/models/agreement.js +11 -0
  81. package/dist/esm/models/agreement.js.map +1 -0
  82. package/dist/esm/models/assessment-detail.d.ts +2 -2
  83. package/dist/esm/models/attribute-agreement.d.ts +25 -0
  84. package/dist/esm/models/attribute-agreement.d.ts.map +1 -0
  85. package/dist/esm/models/attribute-agreement.js +23 -0
  86. package/dist/esm/models/attribute-agreement.js.map +1 -0
  87. package/dist/esm/models/direction.d.ts +13 -0
  88. package/dist/esm/models/direction.d.ts.map +1 -0
  89. package/dist/esm/models/direction.js +11 -0
  90. package/dist/esm/models/direction.js.map +1 -0
  91. package/dist/esm/models/footprint-coherence.d.ts +66 -0
  92. package/dist/esm/models/footprint-coherence.d.ts.map +1 -0
  93. package/dist/esm/models/footprint-coherence.js +46 -0
  94. package/dist/esm/models/footprint-coherence.js.map +1 -0
  95. package/dist/esm/models/footprint-family.d.ts +21 -0
  96. package/dist/esm/models/footprint-family.d.ts.map +1 -0
  97. package/dist/esm/models/footprint-family.js +16 -0
  98. package/dist/esm/models/footprint-family.js.map +1 -0
  99. package/dist/esm/models/footprint-timeline.d.ts +31 -0
  100. package/dist/esm/models/footprint-timeline.d.ts.map +1 -0
  101. package/dist/esm/models/footprint-timeline.js +44 -0
  102. package/dist/esm/models/footprint-timeline.js.map +1 -0
  103. package/dist/esm/models/footprint.d.ts +35 -0
  104. package/dist/esm/models/footprint.d.ts.map +1 -0
  105. package/dist/esm/models/footprint.js +28 -0
  106. package/dist/esm/models/footprint.js.map +1 -0
  107. package/dist/esm/models/identifier.d.ts +12 -0
  108. package/dist/esm/models/identifier.d.ts.map +1 -0
  109. package/dist/esm/models/identifier.js +10 -0
  110. package/dist/esm/models/identifier.js.map +1 -0
  111. package/dist/esm/models/impact.d.ts +14 -0
  112. package/dist/esm/models/impact.d.ts.map +1 -0
  113. package/dist/esm/models/impact.js +14 -0
  114. package/dist/esm/models/impact.js.map +1 -0
  115. package/dist/esm/models/index.d.ts +11 -0
  116. package/dist/esm/models/index.d.ts.map +1 -1
  117. package/dist/esm/models/index.js +11 -0
  118. package/dist/esm/models/index.js.map +1 -1
  119. package/dist/esm/models/risk-details-event-kind.d.ts +13 -0
  120. package/dist/esm/models/risk-details-event-kind.d.ts.map +1 -0
  121. package/dist/esm/models/risk-details-event-kind.js +11 -0
  122. package/dist/esm/models/risk-details-event-kind.js.map +1 -0
  123. package/dist/esm/models/risk-details-event.d.ts +35 -0
  124. package/dist/esm/models/risk-details-event.d.ts.map +1 -0
  125. package/dist/esm/models/risk-details-event.js +33 -0
  126. package/dist/esm/models/risk-details-event.js.map +1 -0
  127. package/dist/esm/models/risk-details.d.ts +6 -0
  128. package/dist/esm/models/risk-details.d.ts.map +1 -1
  129. package/dist/esm/models/risk-details.js +3 -0
  130. package/dist/esm/models/risk-details.js.map +1 -1
  131. package/dist/esm/models/risk-reason.d.ts +16 -2
  132. package/dist/esm/models/risk-reason.d.ts.map +1 -1
  133. package/dist/esm/models/risk-reason.js +8 -2
  134. package/dist/esm/models/risk-reason.js.map +1 -1
  135. package/dist/esm/models/risk-summary.d.ts +6 -0
  136. package/dist/esm/models/risk-summary.d.ts.map +1 -1
  137. package/dist/esm/models/risk-summary.js +3 -0
  138. package/dist/esm/models/risk-summary.js.map +1 -1
  139. package/dist/esm/models/risk.d.ts +3 -3
  140. package/package.json +1 -1
@@ -0,0 +1,35 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
4
+ import { FootprintFamily } from "./footprint-family.js";
5
+ import { Identifier } from "./identifier.js";
6
+ import { RiskDetailsEventKind } from "./risk-details-event-kind.js";
7
+ export type RiskDetailsEvent = {
8
+ year: number;
9
+ month?: number | undefined;
10
+ kind: RiskDetailsEventKind;
11
+ site: string;
12
+ category: string;
13
+ /**
14
+ * The source-neutral kind of evidence: account_presence (an account found on a site), auth_provider (the account at your auth provider), breach (breach and credential tables), breach_abuse (abuse and fraud communities' tables) and code_hosting (a code hosting profile).
15
+ */
16
+ family: FootprintFamily;
17
+ identifier: Identifier;
18
+ };
19
+ /** @internal */
20
+ export declare const RiskDetailsEvent$inboundSchema: z.ZodMiniType<RiskDetailsEvent, unknown>;
21
+ /** @internal */
22
+ export type RiskDetailsEvent$Outbound = {
23
+ year: number;
24
+ month?: number | undefined;
25
+ kind: string;
26
+ site: string;
27
+ category: string;
28
+ family: string;
29
+ identifier: string;
30
+ };
31
+ /** @internal */
32
+ export declare const RiskDetailsEvent$outboundSchema: z.ZodMiniType<RiskDetailsEvent$Outbound, RiskDetailsEvent>;
33
+ export declare function riskDetailsEventToJSON(riskDetailsEvent: RiskDetailsEvent): string;
34
+ export declare function riskDetailsEventFromJSON(jsonString: string): SafeParseResult<RiskDetailsEvent, SDKValidationError>;
35
+ //# sourceMappingURL=risk-details-event.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"risk-details-event.d.ts","sourceRoot":"","sources":["../../../src/models/risk-details-event.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EA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3
+ if (k2 === undefined) k2 = k;
4
+ var desc = Object.getOwnPropertyDescriptor(m, k);
5
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
6
+ desc = { enumerable: true, get: function() { return m[k]; } };
7
+ }
8
+ Object.defineProperty(o, k2, desc);
9
+ }) : (function(o, m, k, k2) {
10
+ if (k2 === undefined) k2 = k;
11
+ o[k2] = m[k];
12
+ }));
13
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
14
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
15
+ }) : function(o, v) {
16
+ o["default"] = v;
17
+ });
18
+ var __importStar = (this && this.__importStar) || (function () {
19
+ var ownKeys = function(o) {
20
+ ownKeys = Object.getOwnPropertyNames || function (o) {
21
+ var ar = [];
22
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
23
+ return ar;
24
+ };
25
+ return ownKeys(o);
26
+ };
27
+ return function (mod) {
28
+ if (mod && mod.__esModule) return mod;
29
+ var result = {};
30
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
31
+ __setModuleDefault(result, mod);
32
+ return result;
33
+ };
34
+ })();
35
+ Object.defineProperty(exports, "__esModule", { value: true });
36
+ exports.RiskDetailsEvent$outboundSchema = exports.RiskDetailsEvent$inboundSchema = void 0;
37
+ exports.riskDetailsEventToJSON = riskDetailsEventToJSON;
38
+ exports.riskDetailsEventFromJSON = riskDetailsEventFromJSON;
39
+ const z = __importStar(require("zod/v4-mini"));
40
+ const schemas_js_1 = require("../lib/schemas.js");
41
+ const types = __importStar(require("../types/primitives.js"));
42
+ const footprint_family_js_1 = require("./footprint-family.js");
43
+ const identifier_js_1 = require("./identifier.js");
44
+ const risk_details_event_kind_js_1 = require("./risk-details-event-kind.js");
45
+ /** @internal */
46
+ exports.RiskDetailsEvent$inboundSchema = z.object({
47
+ year: types.number(),
48
+ month: types.optional(types.number()),
49
+ kind: risk_details_event_kind_js_1.RiskDetailsEventKind$inboundSchema,
50
+ site: types.string(),
51
+ category: types.string(),
52
+ family: footprint_family_js_1.FootprintFamily$inboundSchema,
53
+ identifier: identifier_js_1.Identifier$inboundSchema,
54
+ });
55
+ /** @internal */
56
+ exports.RiskDetailsEvent$outboundSchema = z.object({
57
+ year: z.int(),
58
+ month: z.optional(z.int()),
59
+ kind: risk_details_event_kind_js_1.RiskDetailsEventKind$outboundSchema,
60
+ site: z.string(),
61
+ category: z.string(),
62
+ family: footprint_family_js_1.FootprintFamily$outboundSchema,
63
+ identifier: identifier_js_1.Identifier$outboundSchema,
64
+ });
65
+ function riskDetailsEventToJSON(riskDetailsEvent) {
66
+ return JSON.stringify(exports.RiskDetailsEvent$outboundSchema.parse(riskDetailsEvent));
67
+ }
68
+ function riskDetailsEventFromJSON(jsonString) {
69
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.RiskDetailsEvent$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RiskDetailsEvent' from JSON`);
70
+ }
71
+ //# sourceMappingURL=risk-details-event.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"risk-details-event.js","sourceRoot":"","sources":["../../../src/models/risk-details-event.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;AAEhD,+DAI+B;AAC/B,mDAIyB;AACzB,6EAIsC;AAetC,gBAAgB;AACH,QAAA,8BAA8B,GAGvC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE;IACpB,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;IACrC,IAAI,EAAE,+DAAkC;IACxC,IAAI,EAAE,KAAK,CAAC,MAAM,EAAE;IACpB,QAAQ,EAAE,KAAK,CAAC,MAAM,EAAE;IACxB,MAAM,EAAE,mDAA6B;IACrC,UAAU,EAAE,wCAAwB;CACrC,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,+BAA+B,GAGxC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE;IACb,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IAC1B,IAAI,EAAE,gEAAmC;IACzC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,MAAM,EAAE,oDAA8B;IACtC,UAAU,EAAE,yCAAyB;CACtC,CAAC,CAAC;AAEH,gCACE,gBAAkC,EAC1B;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,QAAA,+BAA+B,CAAC,KAAK,CAAC,gBAAgB,CAAC,CACxD,CAAC;AAAA,CACH;AACD,kCACE,UAAkB,EACqC;IACvD,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,QAAA,8BAA8B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC1D,8CAA8C,CAC/C,CAAC;AAAA,CACH"}
@@ -3,6 +3,7 @@ import { Result as SafeParseResult } from "../types/fp.js";
3
3
  import { Breach, Breach$Outbound } from "./breach.js";
4
4
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
5
  import { RiskDetailsBreachName, RiskDetailsBreachName$Outbound } from "./risk-details-breach-name.js";
6
+ import { RiskDetailsEvent, RiskDetailsEvent$Outbound } from "./risk-details-event.js";
6
7
  import { RiskDetailsPhoneName, RiskDetailsPhoneName$Outbound } from "./risk-details-phone-name.js";
7
8
  /**
8
9
  * Detailed view only (response_mode=detailed, which needs the detailed scope); a standard answer leaves it out. Merged observations without provider, source, origin, raw breach record, value or score.
@@ -17,6 +18,10 @@ export type RiskDetails = {
17
18
  * Names found next to the identifiers in breach records, merged, with the number of distinct tables each was seen in.
18
19
  */
19
20
  breachNames?: Array<RiskDetailsBreachName> | undefined;
21
+ /**
22
+ * The identity's dated footprint events, newest first, at most 100: the year and month, what happened (created, last_active, breached), the site, its category, the kind of evidence and the identifier it belongs to. No breach value: dates are coarsened to the month.
23
+ */
24
+ events?: Array<RiskDetailsEvent> | undefined;
20
25
  };
21
26
  /** @internal */
22
27
  export declare const RiskDetails$inboundSchema: z.ZodMiniType<RiskDetails, unknown>;
@@ -25,6 +30,7 @@ export type RiskDetails$Outbound = {
25
30
  phone_names?: Array<RiskDetailsPhoneName$Outbound> | undefined;
26
31
  breaches?: Array<Breach$Outbound> | undefined;
27
32
  breach_names?: Array<RiskDetailsBreachName$Outbound> | undefined;
33
+ events?: Array<RiskDetailsEvent$Outbound> | undefined;
28
34
  };
29
35
  /** @internal */
30
36
  export declare const RiskDetails$outboundSchema: z.ZodMiniType<RiskDetails$Outbound, RiskDetails>;
@@ -1 +1 @@
1
- {"version":3,"file":"risk-details.d.ts","sourceRoot":"","sources":["../../../src/models/risk-details.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EACL,MAAM,EAEN,eAAe,EAEhB,MAAM,aAAa,CAAC;AACrB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,qBAAqB,EAErB,8BAA8B,EAE/B,MAAM,+BAA+B,CAAC;AACvC,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,8BAA8B,CAAC;AAEtC;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACrC;;O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AEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,UAAU,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC;IACrD;;OAEG;IACH,QAAQ,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,WAAW,CAAC,EAAE,KAAK,CAAC,qBAAqB,CAAC,GAAG,SAAS,CAAC;IACvD;;OAEG;IACH,MAAM,CAAC,EAAE,KAAK,CAAC,gBAAgB,CAAC,GAAG,SAAS,CAAC;CAC9C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,WAAW,CAAC,WAAW,EAAE,OAAO,CAgBvE,CAAC;AACJ,gBAAgB;AAChB,MAAM,MAAM,oBAAoB,GAAG;IACjC,WAAW,CAAC,EAAE,KAAK,CAAC,6BAA6B,CAAC,GAAG,SAAS,CAAC;IAC/D,QAAQ,CAAC,EAAE,KAAK,CAAC,eAAe,CAAC,GAAG,SAAS,CAAC;IAC9C,YAAY,CAAC,EAAE,KAAK,CAAC,8BAA8B,CAAC,GAAG,SAAS,CAAC;IACjE,MAAM,CAAC,EAAE,KAAK,CAAC,yBAAyB,CAAC,GAAG,SAAS,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,WAAW,CACpD,oBAAoB,EACpB,WAAW,CAcZ,CAAC;AAEF,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AACD,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
@@ -42,6 +42,7 @@ const schemas_js_1 = require("../lib/schemas.js");
42
42
  const types = __importStar(require("../types/primitives.js"));
43
43
  const breach_js_1 = require("./breach.js");
44
44
  const risk_details_breach_name_js_1 = require("./risk-details-breach-name.js");
45
+ const risk_details_event_js_1 = require("./risk-details-event.js");
45
46
  const risk_details_phone_name_js_1 = require("./risk-details-phone-name.js");
46
47
  /** @internal */
47
48
  exports.RiskDetails$inboundSchema = z
@@ -49,6 +50,7 @@ exports.RiskDetails$inboundSchema = z
49
50
  phone_names: types.optional(z.array(risk_details_phone_name_js_1.RiskDetailsPhoneName$inboundSchema)),
50
51
  breaches: types.optional(z.array(breach_js_1.Breach$inboundSchema)),
51
52
  breach_names: types.optional(z.array(risk_details_breach_name_js_1.RiskDetailsBreachName$inboundSchema)),
53
+ events: types.optional(z.array(risk_details_event_js_1.RiskDetailsEvent$inboundSchema)),
52
54
  }), z.transform((v) => {
53
55
  return (0, primitives_js_1.remap)(v, {
54
56
  "phone_names": "phoneNames",
@@ -60,6 +62,7 @@ exports.RiskDetails$outboundSchema = z.pipe(z.object({
60
62
  phoneNames: z.optional(z.array(risk_details_phone_name_js_1.RiskDetailsPhoneName$outboundSchema)),
61
63
  breaches: z.optional(z.array(breach_js_1.Breach$outboundSchema)),
62
64
  breachNames: z.optional(z.array(risk_details_breach_name_js_1.RiskDetailsBreachName$outboundSchema)),
65
+ events: z.optional(z.array(risk_details_event_js_1.RiskDetailsEvent$outboundSchema)),
63
66
  }), z.transform((v) => {
64
67
  return (0, primitives_js_1.remap)(v, {
65
68
  phoneNames: "phone_names",
@@ -1 +1 @@
1
- {"version":3,"file":"risk-details.js","sourceRoot":"","sources":["../../../src/models/risk-details.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,wDAAuD;AACvD,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;AAChD,2CAKqB;AAErB,+EAKuC;AACvC,6EAKsC;AAiBtC,gBAAgB;AACH,QAAA,yBAAyB,GAAwC,CAAC;KAC5E,IAAI,CACH,CAAC,CAAC,MAAM,CAAC;IACP,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,+DAA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,iCAAqB,CAAC,CAAC;IACpD,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,kEAAoC,CAAC,CAAC;IACtE,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,uDAA+B,CAAC,CAAC;CAC7D,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,UAAU,EAAE,aAAa;QACzB,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,2BAAkC,WAAwB,EAAU;IAClE,OAAO,IAAI,CAAC,SAAS,CAAC,QAAA,0BAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AAAA,CACtE;AACD,6BACE,UAAkB,EACgC;IAClD,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,QAAA,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AAAA,CACH"}
@@ -1,26 +1,40 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { Direction } from "./direction.js";
3
4
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
+ import { Impact } from "./impact.js";
4
6
  import { ReasonCode } from "./reason-code.js";
5
7
  import { ReasonIdentifier } from "./reason-identifier.js";
8
+ /**
9
+ * One reason that fired. direction is whether it raises or lowers the score, or is neutral (informational, it moves nothing). impact is a coarse band of how much it moves the score: none for a neutral reason, otherwise low, medium or high.
10
+ */
6
11
  export type RiskReason = {
7
12
  /**
8
13
  * A stable reason code. New codes may appear; ignore any you do not know.
9
14
  */
10
15
  code: ReasonCode;
11
- weight: number;
16
+ direction: Direction;
17
+ impact: Impact;
12
18
  /**
13
19
  * The submitted identifier or client context field a reason concerns; absent when it concerns the whole assessment. Client context is a claimed hint, not a device fingerprint.
14
20
  */
15
21
  identifier?: ReasonIdentifier | undefined;
22
+ /**
23
+ * Deprecated and always 0: the policy's weights are not published. It is sent so that SDK versions that require it keep reading reasons. Read direction and impact.
24
+ *
25
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
26
+ */
27
+ weight?: 0 | undefined;
16
28
  };
17
29
  /** @internal */
18
30
  export declare const RiskReason$inboundSchema: z.ZodMiniType<RiskReason, unknown>;
19
31
  /** @internal */
20
32
  export type RiskReason$Outbound = {
21
33
  code: string;
22
- weight: number;
34
+ direction: string;
35
+ impact: string;
23
36
  identifier?: string | undefined;
37
+ weight?: 0 | undefined;
24
38
  };
25
39
  /** @internal */
26
40
  export declare const RiskReason$outboundSchema: z.ZodMiniType<RiskReason$Outbound, RiskReason>;
@@ -1 +1 @@
1
- {"version":3,"file":"risk-reason.d.ts","sourceRoot":"","sources":["../../../src/models/risk-reason.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,UAAU,EAGX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAGjB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,UAAU,GAAG;IACvB;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,WAAW,CAAC,UAAU,EAAE,OAAO,CAKpE,CAAC;AACL,gBAAgB;AAChB,MAAM,MAAM,mBAAmB,GA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B,MAAM,MAAM,mBAAmB,GAAG;IAChC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,MAAM,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,WAAW,CACnD,mBAAmB,EACnB,UAAU,CAOV,CAAC;AAEH,wBAAgB,gBAAgB,CAAC,UAAU,EAAE,UAAU,GAAG,MAAM,CAE/D;AACD,wBAAgB,kBAAkB,CAChC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,UAAU,EAAE,kBAAkB,CAAC,CAMjD"}
@@ -39,20 +39,26 @@ exports.riskReasonFromJSON = riskReasonFromJSON;
39
39
  const z = __importStar(require("zod/v4-mini"));
40
40
  const schemas_js_1 = require("../lib/schemas.js");
41
41
  const types = __importStar(require("../types/primitives.js"));
42
+ const direction_js_1 = require("./direction.js");
43
+ const impact_js_1 = require("./impact.js");
42
44
  const reason_code_js_1 = require("./reason-code.js");
43
45
  const reason_identifier_js_1 = require("./reason-identifier.js");
44
46
  /** @internal */
45
47
  exports.RiskReason$inboundSchema = z
46
48
  .object({
47
49
  code: reason_code_js_1.ReasonCode$inboundSchema,
48
- weight: types.number(),
50
+ direction: direction_js_1.Direction$inboundSchema,
51
+ impact: impact_js_1.Impact$inboundSchema,
49
52
  identifier: types.optional(reason_identifier_js_1.ReasonIdentifier$inboundSchema),
53
+ weight: types.optional(types.literal(0)),
50
54
  });
51
55
  /** @internal */
52
56
  exports.RiskReason$outboundSchema = z.object({
53
57
  code: reason_code_js_1.ReasonCode$outboundSchema,
54
- weight: z.int(),
58
+ direction: direction_js_1.Direction$outboundSchema,
59
+ impact: impact_js_1.Impact$outboundSchema,
55
60
  identifier: z.optional(reason_identifier_js_1.ReasonIdentifier$outboundSchema),
61
+ weight: z.optional(z.literal(0)),
56
62
  });
57
63
  function riskReasonToJSON(riskReason) {
58
64
  return JSON.stringify(exports.RiskReason$outboundSchema.parse(riskReason));
@@ -1 +1 @@
1
- {"version":3,"file":"risk-reason.js","sourceRoot":"","sources":["../../../src/models/risk-reason.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;AAEhD,qDAI0B;AAC1B,iEAIgC;AAchC,gBAAgB;AACH,QAAA,wBAAwB,GAAuC,CAAC;KAC1E,MAAM,CAAC;IACN,IAAI,EAAE,yCAAwB;IAC9B,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,qDAA8B,CAAC;CAC3D,CAAC,CAAC;AAQL,gBAAgB;AACH,QAAA,yBAAyB,GAGlC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,0CAAyB;IAC/B,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE;IACf,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,sDAA+B,CAAC;CACxD,CAAC,CAAC;AAEH,0BAAiC,UAAsB,EAAU;IAC/D,OAAO,IAAI,CAAC,SAAS,CAAC,QAAA,yBAAyB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AAAA,CACpE;AACD,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
+ {"version":3,"file":"risk-reason.js","sourceRoot":"","sources":["../../../src/models/risk-reason.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;AAChD,iDAIwB;AAExB,2CAIqB;AACrB,qDAI0B;AAC1B,iEAIgC;AAwBhC,gBAAgB;AACH,QAAA,wBAAwB,GAAuC,CAAC;KAC1E,MAAM,CAAC;IACN,IAAI,EAAE,yCAAwB;IAC9B,SAAS,EAAE,sCAAuB;IAClC,MAAM,EAAE,gCAAoB;IAC5B,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,qDAA8B,CAAC;IAC1D,MAAM,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;CACzC,CAAC,CAAC;AAUL,gBAAgB;AACH,QAAA,yBAAyB,GAGlC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,0CAAyB;IAC/B,SAAS,EAAE,uCAAwB;IACnC,MAAM,EAAE,iCAAqB;IAC7B,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,sDAA+B,CAAC;IACvD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;CACjC,CAAC,CAAC;AAEH,0BAAiC,UAAsB,EAAU;IAC/D,OAAO,IAAI,CAAC,SAAS,CAAC,QAAA,yBAAyB,CAAC,KAAK,CAAC,UAAU,CAAC,CAAC,CAAC;AAAA,CACpE;AACD,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"}
@@ -2,6 +2,7 @@ import * as z from "zod/v4-mini";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
3
  import { Consistency, Consistency$Outbound } from "./consistency.js";
4
4
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
+ import { Footprint, Footprint$Outbound } from "./footprint.js";
5
6
  import { IpSummary, IpSummary$Outbound } from "./ip-summary.js";
6
7
  import { RiskSummaryEmail, RiskSummaryEmail$Outbound } from "./risk-summary-email.js";
7
8
  import { RiskSummaryPhone, RiskSummaryPhone$Outbound } from "./risk-summary-phone.js";
@@ -21,6 +22,10 @@ export type RiskSummary = {
21
22
  * Cross-identifier agreement, computed from facts only. Every member is optional; absent makes no claim.
22
23
  */
23
24
  consistency?: Consistency | undefined;
25
+ /**
26
+ * How long and how widely the signup's email and username have existed, and how far independent sources agree on the person behind them, in years and counts only. families are the kinds of evidence that found either identifier. Omitted when nothing found them: a footprint lookup that failed makes no claim, and absence is no_digital_footprint's to state.
27
+ */
28
+ footprint?: Footprint | undefined;
24
29
  };
25
30
  /** @internal */
26
31
  export declare const RiskSummary$inboundSchema: z.ZodMiniType<RiskSummary, unknown>;
@@ -31,6 +36,7 @@ export type RiskSummary$Outbound = {
31
36
  username?: RiskSummaryUsername$Outbound | undefined;
32
37
  ip?: IpSummary$Outbound | undefined;
33
38
  consistency?: Consistency$Outbound | undefined;
39
+ footprint?: Footprint$Outbound | undefined;
34
40
  };
35
41
  /** @internal */
36
42
  export declare const RiskSummary$outboundSchema: z.ZodMiniType<RiskSummary$Outbound, RiskSummary>;
@@ -1 +1 @@
1
- {"version":3,"file":"risk-summary.d.ts","sourceRoot":"","sources":["../../../src/models/risk-summary.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EACL,WAAW,EAEX,oBAAoB,EAErB,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,SAAS,EAET,kBAAkB,EAEnB,MAAM,iBAAiB,CAAC;AACzB,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1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AQ,CAAC,EAAE,4BAA4B,GAAG,SAAS,CAAC;IACpD,EAAE,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;IACpC,WAAW,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAC/C,SAAS,CAAC,EAAE,kBAAkB,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0BAA0B,EAAE,CAAC,CAAC,WAAW,CACpD,oBAAoB,EACpB,WAAW,CAQX,CAAC;AAEH,wBAAgB,iBAAiB,CAAC,WAAW,EAAE,WAAW,GAAG,MAAM,CAElE;AACD,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
@@ -40,6 +40,7 @@ const z = __importStar(require("zod/v4-mini"));
40
40
  const schemas_js_1 = require("../lib/schemas.js");
41
41
  const types = __importStar(require("../types/primitives.js"));
42
42
  const consistency_js_1 = require("./consistency.js");
43
+ const footprint_js_1 = require("./footprint.js");
43
44
  const ip_summary_js_1 = require("./ip-summary.js");
44
45
  const risk_summary_email_js_1 = require("./risk-summary-email.js");
45
46
  const risk_summary_phone_js_1 = require("./risk-summary-phone.js");
@@ -52,6 +53,7 @@ exports.RiskSummary$inboundSchema = z
52
53
  username: types.optional(risk_summary_username_js_1.RiskSummaryUsername$inboundSchema),
53
54
  ip: types.optional(ip_summary_js_1.IpSummary$inboundSchema),
54
55
  consistency: types.optional(consistency_js_1.Consistency$inboundSchema),
56
+ footprint: types.optional(footprint_js_1.Footprint$inboundSchema),
55
57
  });
56
58
  /** @internal */
57
59
  exports.RiskSummary$outboundSchema = z.object({
@@ -60,6 +62,7 @@ exports.RiskSummary$outboundSchema = z.object({
60
62
  username: z.optional(risk_summary_username_js_1.RiskSummaryUsername$outboundSchema),
61
63
  ip: z.optional(ip_summary_js_1.IpSummary$outboundSchema),
62
64
  consistency: z.optional(consistency_js_1.Consistency$outboundSchema),
65
+ footprint: z.optional(footprint_js_1.Footprint$outboundSchema),
63
66
  });
64
67
  function riskSummaryToJSON(riskSummary) {
65
68
  return JSON.stringify(exports.RiskSummary$outboundSchema.parse(riskSummary));
@@ -1 +1 @@
1
- {"version":3,"file":"risk-summary.js","sourceRoot":"","sources":["../../../src/models/risk-summary.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;AAChD,qDAK0B;AAE1B,mDAKyB;AACzB,mEAKiC;AACjC,mEAKiC;AACjC,yEAKoC;AAmBpC,gBAAgB;AACH,QAAA,yBAAyB,GAAwC,CAAC;KAC5E,MAAM,CAAC;IACN,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,sDAA8B,CAAC;IACrD,KAAK,EAAE,KAAK,CAAC,QAAQ,CAAC,sDAA8B,CAAC;IACrD,QAAQ,EAAE,KAAK,CAAC,QAAQ,CAAC,4DAAiC,CAAC;IAC3D,EAAE,EAAE,KAAK,CAAC,QAAQ,CAAC,uCAAuB,CAAC;IAC3C,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,0CAAyB,CAAC;CACvD,CAAC,CAAC;AAUL,gBAAgB;AACH,QAAA,0BAA0B,GAGnC,CAAC,CAAC,MAAM,CAAC;IACX,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,uDAA+B,CAAC;IAClD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,uDAA+B,CAAC;IAClD,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,6DAAkC,CAAC;IACxD,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,wCAAwB,CAAC;IACxC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,2CAA0B,CAAC;CACpD,CAAC,CAAC;AAEH,2BAAkC,WAAwB,EAAU;IAClE,OAAO,IAAI,CAAC,SAAS,CAAC,QAAA,0BAA0B,CAAC,KA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AAC,QAAQ,CAAC,wCAAwB,CAAC;IACxC,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,2CAA0B,CAAC;IACnD,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,uCAAwB,CAAC;CAChD,CAAC,CAAC;AAEH,2BAAkC,WAAwB,EAAU;IAClE,OAAO,IAAI,CAAC,SAAS,CAAC,QAAA,0BAA0B,CAAC,KAAK,CAAC,WAAW,CAAC,CAAC,CAAC;AAAA,CACtE;AACD,6BACE,UAAkB,EACgC;IAClD,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,QAAA,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AAAA,CACH"}
@@ -9,7 +9,7 @@ import { RiskDetails, RiskDetails$Outbound } from "./risk-details.js";
9
9
  import { RiskReason, RiskReason$Outbound } from "./risk-reason.js";
10
10
  import { RiskSummary, RiskSummary$Outbound } from "./risk-summary.js";
11
11
  /**
12
- * 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.
12
+ * The one risk decision for this event. score is 0 (safe) to 100 (risky), set by the reasons that fired under a hand-set, versioned heuristic policy. Each reason carries its direction and impact band; the policy's weights are not published. Every answer with a recommendation carries it, and the top-level recommendation equals risk.recommendation. It names no source or provider.
13
13
  */
14
14
  export type Risk = {
15
15
  score: number;
@@ -34,7 +34,7 @@ export type Risk = {
34
34
  */
35
35
  confidence: RiskConfidence;
36
36
  /**
37
- * Version of the hand-authored heuristic weights that produced the recommendation, for example 'risk-2026-10.7'. A workspace threshold override adds a +t<N> suffix, e.g. 'risk-2026-10.7+t3'.
37
+ * Version of the hand-authored heuristic policy that produced the recommendation, for example 'risk-2026-10.7'. A workspace threshold override adds a +t<N> suffix, e.g. 'risk-2026-10.7+t3'.
38
38
  */
39
39
  policyVersion: string;
40
40
  /**
@@ -42,7 +42,7 @@ export type Risk = {
42
42
  */
43
43
  policyBasis: "heuristic_unvalidated";
44
44
  /**
45
- * Every reason that fired, highest weight first. The weights sum to score before clamping.
45
+ * Every reason that fired: risk-raising reasons first, then neutral, then risk-lowering, each strongest impact band first and then by code. The policy's numeric weights are kept private, so a reason carries only its direction and impact band.
46
46
  */
47
47
  reasons: Array<RiskReason>;
48
48
  /**
@@ -31,8 +31,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
31
31
  export declare const SDK_METADATA: {
32
32
  readonly language: "typescript";
33
33
  readonly openapiDocVersion: "1";
34
- readonly sdkVersion: "7.1.7";
34
+ readonly sdkVersion: "7.1.8";
35
35
  readonly genVersion: "internal";
36
- readonly userAgent: "noresponse-sdk/typescript 7.1.7 internal 1 @noresponse/node";
36
+ readonly userAgent: "noresponse-sdk/typescript 7.1.8 internal 1 @noresponse/node";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -24,8 +24,8 @@ export function serverURLFromOptions(options) {
24
24
  export const SDK_METADATA = {
25
25
  language: "typescript",
26
26
  openapiDocVersion: "1",
27
- sdkVersion: "7.1.7",
27
+ sdkVersion: "7.1.8",
28
28
  genVersion: "internal",
29
- userAgent: "noresponse-sdk/typescript 7.1.7 internal 1 @noresponse/node",
29
+ userAgent: "noresponse-sdk/typescript 7.1.8 internal 1 @noresponse/node",
30
30
  };
31
31
  //# sourceMappingURL=config.js.map
@@ -1,26 +1,40 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { Direction } from "./direction.js";
3
4
  import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
+ import { Impact } from "./impact.js";
4
6
  import { ReasonCode } from "./reason-code.js";
5
7
  import { ReasonIdentifier } from "./reason-identifier.js";
8
+ /**
9
+ * One reason that fired. direction is whether it raises or lowers the score, or is neutral (informational, it moves nothing). impact is a coarse band of how much it moves the score: none for a neutral reason, otherwise low, medium or high.
10
+ */
6
11
  export type AccountRiskReason = {
7
12
  /**
8
13
  * A stable reason code. New codes may appear; ignore any you do not know.
9
14
  */
10
15
  code: ReasonCode;
11
- weight: number;
16
+ direction: Direction;
17
+ impact: Impact;
12
18
  /**
13
19
  * The submitted identifier or client context field a reason concerns; absent when it concerns the whole assessment. Client context is a claimed hint, not a device fingerprint.
14
20
  */
15
21
  identifier?: ReasonIdentifier | undefined;
22
+ /**
23
+ * Deprecated and always 0: the policy's weights are not published. It is sent so that SDK versions that require it keep reading reasons. Read direction and impact.
24
+ *
25
+ * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
26
+ */
27
+ weight?: 0 | undefined;
16
28
  };
17
29
  /** @internal */
18
30
  export declare const AccountRiskReason$inboundSchema: z.ZodMiniType<AccountRiskReason, unknown>;
19
31
  /** @internal */
20
32
  export type AccountRiskReason$Outbound = {
21
33
  code: string;
22
- weight: number;
34
+ direction: string;
35
+ impact: string;
23
36
  identifier?: string | undefined;
37
+ weight?: 0 | undefined;
24
38
  };
25
39
  /** @internal */
26
40
  export declare const AccountRiskReason$outboundSchema: z.ZodMiniType<AccountRiskReason$Outbound, AccountRiskReason>;
@@ -1 +1 @@
1
- {"version":3,"file":"account-risk-reason.d.ts","sourceRoot":"","sources":["../../../src/models/account-risk-reason.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,UAAU,EAGX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAGjB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,WAAW,CACzD,iBAAiB,EACjB,OAAO,CAKP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,0BAA0B,EAC1B,iBAAiB,CAKjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AACD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
1
+ {"version":3,"file":"account-risk-reason.d.ts","sourceRoot":"","sources":["../../../src/models/account-risk-reason.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EACL,SAAS,EAGV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,MAAM,EAGP,MAAM,aAAa,CAAC;AACrB,OAAO,EACL,UAAU,EAGX,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAGjB,MAAM,wBAAwB,CAAC;AAEhC;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,IAAI,EAAE,UAAU,CAAC;IACjB,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf;;OAEG;IACH,UAAU,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IAC1C;;;;OAIG;IACH,MAAM,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,WAAW,CACzD,iBAAiB,EACjB,OAAO,CAOP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,MAAM,CAAC,EAAE,CAAC,GAAG,SAAS,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,0BAA0B,EAC1B,iBAAiB,CAOjB,CAAC;AAEH,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AACD,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
@@ -1,19 +1,25 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  import { safeParse } from "../lib/schemas.js";
3
3
  import * as types from "../types/primitives.js";
4
+ import { Direction$inboundSchema, Direction$outboundSchema, } from "./direction.js";
5
+ import { Impact$inboundSchema, Impact$outboundSchema, } from "./impact.js";
4
6
  import { ReasonCode$inboundSchema, ReasonCode$outboundSchema, } from "./reason-code.js";
5
7
  import { ReasonIdentifier$inboundSchema, ReasonIdentifier$outboundSchema, } from "./reason-identifier.js";
6
8
  /** @internal */
7
9
  export const AccountRiskReason$inboundSchema = z.object({
8
10
  code: ReasonCode$inboundSchema,
9
- weight: types.number(),
11
+ direction: Direction$inboundSchema,
12
+ impact: Impact$inboundSchema,
10
13
  identifier: types.optional(ReasonIdentifier$inboundSchema),
14
+ weight: types.optional(types.literal(0)),
11
15
  });
12
16
  /** @internal */
13
17
  export const AccountRiskReason$outboundSchema = z.object({
14
18
  code: ReasonCode$outboundSchema,
15
- weight: z.int(),
19
+ direction: Direction$outboundSchema,
20
+ impact: Impact$outboundSchema,
16
21
  identifier: z.optional(ReasonIdentifier$outboundSchema),
22
+ weight: z.optional(z.literal(0)),
17
23
  });
18
24
  export function accountRiskReasonToJSON(accountRiskReason) {
19
25
  return JSON.stringify(AccountRiskReason$outboundSchema.parse(accountRiskReason));
@@ -1 +1 @@
1
- {"version":3,"file":"account-risk-reason.js","sourceRoot":"","sources":["../../../src/models/account-risk-reason.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,KAAK,KAAK,MAAM,wBAAwB,CAAC;AAEhD,OAAO,EAEL,wBAAwB,EACxB,yBAAyB,GAC1B,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EAEL,8BAA8B,EAC9B,+BAA+B,GAChC,MAAM,wBAAwB,CAAC;AAchC,gBAAgB;AAChB,MAAM,CAAC,MAAM,+BAA+B,GAGxC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,wBAAwB;IAC9B,MAAM,EAAE,KAAK,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,KAAK,CAAC,QAAQ,CAAC,8BAA8B,CAAC;CAC3D,CAAC,CAAC;AAQH,gBAAgB;AAChB,MAAM,CAAC,MAAM,gCAAgC,GAGzC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,yBAAyB;IAC/B,MAAM,EAAE,CAAC,CAAC,GAAG,EAAE;IACf,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,+BAA+B,CAAC;CACxD,CAAC,CAAC;AAEH,MAAM,UAAU,uBAAuB,CACrC,iBAAoC,EAC5B;IACR,OAAO,IAAI,CAAC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wBAAwB;IACnC,MAAM,EAAE,qBAAqB;IAC7B,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,+BAA+B,CAAC;IACvD,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC;CACjC,CAAC,CAAC;AAEH,MAAM,UAAU,uBAAuB,CACrC,iBAAoC,EAC5B;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,gCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AAAA,CACH;AACD,MAAM,UAAU,yBAAyB,CACvC,UAAkB,EACsC;IACxD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+BAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AAAA,CACH"}
@@ -13,7 +13,7 @@ export type AccountRisk = {
13
13
  */
14
14
  decision: AccountDecision;
15
15
  /**
16
- * Every reason that fired, highest weight first. The weights sum to score before clamping.
16
+ * Every reason that fired: risk-raising reasons first, then neutral, then risk-lowering, each strongest impact band first and then by code. The policy's numeric weights are kept private, so a reason carries only its direction and impact band.
17
17
  */
18
18
  reasons: Array<AccountRiskReason>;
19
19
  };
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ export declare const Agreement: {
4
+ readonly Match: "match";
5
+ readonly Partial: "partial";
6
+ readonly Mismatch: "mismatch";
7
+ };
8
+ export type Agreement = OpenEnum<typeof Agreement>;
9
+ /** @internal */
10
+ export declare const Agreement$inboundSchema: z.ZodMiniType<Agreement, unknown>;
11
+ /** @internal */
12
+ export declare const Agreement$outboundSchema: z.ZodMiniType<string, Agreement>;
13
+ //# sourceMappingURL=agreement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agreement.d.ts","sourceRoot":"","sources":["../../../src/models/agreement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C,eAAO,MAAM,SAAS;;;;CAIZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,QAAQ,CAAC,OAAO,SAAS,CAAC,CAAC;AAEnD,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,WAAW,CAAC,SAAS,EAAE,OAAO,CAClC,CAAC;AACrC,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,WAAW,CAAC,MAAM,EAAE,SAAS,CACjC,CAAC"}
@@ -0,0 +1,11 @@
1
+ import * as openEnums from "../types/enums.js";
2
+ export const Agreement = {
3
+ Match: "match",
4
+ Partial: "partial",
5
+ Mismatch: "mismatch",
6
+ };
7
+ /** @internal */
8
+ export const Agreement$inboundSchema = openEnums.inboundSchema(Agreement);
9
+ /** @internal */
10
+ export const Agreement$outboundSchema = openEnums.outboundSchema(Agreement);
11
+ //# sourceMappingURL=agreement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"agreement.js","sourceRoot":"","sources":["../../../src/models/agreement.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C,MAAM,CAAC,MAAM,SAAS,GAAG;IACvB,KAAK,EAAE,OAAO;IACd,OAAO,EAAE,SAAS;IAClB,QAAQ,EAAE,UAAU;CACZ,CAAC;AAGX,gBAAgB;AAChB,MAAM,CAAC,MAAM,uBAAuB,GAClC,SAAS,CAAC,aAAa,CAAC,SAAS,CAAC,CAAC;AACrC,gBAAgB;AAChB,MAAM,CAAC,MAAM,wBAAwB,GACnC,SAAS,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC"}
@@ -42,7 +42,7 @@ export type AssessmentDetail = {
42
42
  */
43
43
  confidence: Confidence;
44
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.
45
+ * The one risk decision for this event. score is 0 (safe) to 100 (risky), set by the reasons that fired under a hand-set, versioned heuristic policy. Each reason carries its direction and impact band; the policy's weights are not published. Every answer with a recommendation carries it, and the top-level recommendation equals risk.recommendation. It names no source or provider.
46
46
  */
47
47
  risk?: Risk | undefined;
48
48
  /**
@@ -54,7 +54,7 @@ export type AssessmentDetail = {
54
54
  */
55
55
  incompleteSources: Array<IncompleteSource>;
56
56
  /**
57
- * Version of the hand-authored heuristic weights that produced the recommendation, for example 'risk-2026-10.7'. A workspace threshold override adds a +t<N> suffix, e.g. 'risk-2026-10.7+t3'.
57
+ * Version of the hand-authored heuristic policy that produced the recommendation, for example 'risk-2026-10.7'. A workspace threshold override adds a +t<N> suffix, e.g. 'risk-2026-10.7+t3'.
58
58
  */
59
59
  policyVersion: string;
60
60
  /**
@@ -0,0 +1,25 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { Agreement } from "./agreement.js";
4
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
+ /**
6
+ * How far independent sources agree on one attribute: values is the number of distinct values reported, support the tables and profiles reporting any, and agreement match (one value), partial (the most reported value holds more than half the support) or mismatch. The values themselves are not served.
7
+ */
8
+ export type AttributeAgreement = {
9
+ agreement: Agreement;
10
+ values: number;
11
+ support: number;
12
+ };
13
+ /** @internal */
14
+ export declare const AttributeAgreement$inboundSchema: z.ZodMiniType<AttributeAgreement, unknown>;
15
+ /** @internal */
16
+ export type AttributeAgreement$Outbound = {
17
+ agreement: string;
18
+ values: number;
19
+ support: number;
20
+ };
21
+ /** @internal */
22
+ export declare const AttributeAgreement$outboundSchema: z.ZodMiniType<AttributeAgreement$Outbound, AttributeAgreement>;
23
+ export declare function attributeAgreementToJSON(attributeAgreement: AttributeAgreement): string;
24
+ export declare function attributeAgreementFromJSON(jsonString: string): SafeParseResult<AttributeAgreement, SDKValidationError>;
25
+ //# sourceMappingURL=attribute-agreement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"attribute-agreement.d.ts","sourceRoot":"","sources":["../../../src/models/attribute-agreement.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EACL,SAAS,EAGV,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B,SAAS,EAAE,SAAS,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,kBAAkB,EAClB,OAAO,CAKP,CAAC;AACH,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,WAAW,CAC3D,2BAA2B,EAC3B,kBAAkB,CAKlB,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AACD,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
@@ -0,0 +1,23 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { safeParse } from "../lib/schemas.js";
3
+ import * as types from "../types/primitives.js";
4
+ import { Agreement$inboundSchema, Agreement$outboundSchema, } from "./agreement.js";
5
+ /** @internal */
6
+ export const AttributeAgreement$inboundSchema = z.object({
7
+ agreement: Agreement$inboundSchema,
8
+ values: types.number(),
9
+ support: types.number(),
10
+ });
11
+ /** @internal */
12
+ export const AttributeAgreement$outboundSchema = z.object({
13
+ agreement: Agreement$outboundSchema,
14
+ values: z.int(),
15
+ support: z.int(),
16
+ });
17
+ export function attributeAgreementToJSON(attributeAgreement) {
18
+ return JSON.stringify(AttributeAgreement$outboundSchema.parse(attributeAgreement));
19
+ }
20
+ export function attributeAgreementFromJSON(jsonString) {
21
+ return safeParse(jsonString, (x) => AttributeAgreement$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AttributeAgreement' from JSON`);
22
+ }
23
+ //# sourceMappingURL=attribute-agreement.js.map