@noresponse/node 2.0.11 → 2.0.12

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 (63) hide show
  1. package/CHANGELOG.md +8 -0
  2. package/README.md +9 -0
  3. package/dist/commonjs/funcs/assessments-create.d.ts +1 -1
  4. package/dist/commonjs/funcs/assessments-create.js +1 -1
  5. package/dist/commonjs/index.d.ts +1 -0
  6. package/dist/commonjs/index.d.ts.map +1 -1
  7. package/dist/commonjs/index.js +3 -1
  8. package/dist/commonjs/index.js.map +1 -1
  9. package/dist/commonjs/issued-credential.d.ts +9 -0
  10. package/dist/commonjs/issued-credential.d.ts.map +1 -0
  11. package/dist/commonjs/issued-credential.js +18 -0
  12. package/dist/commonjs/issued-credential.js.map +1 -0
  13. package/dist/commonjs/lib/config.d.ts +2 -2
  14. package/dist/commonjs/lib/config.js +2 -2
  15. package/dist/commonjs/models/assessment-request-issued-credential.d.ts +18 -0
  16. package/dist/commonjs/models/assessment-request-issued-credential.d.ts.map +1 -0
  17. package/dist/commonjs/models/assessment-request-issued-credential.js +46 -0
  18. package/dist/commonjs/models/assessment-request-issued-credential.js.map +1 -0
  19. package/dist/commonjs/models/assessment-request.d.ts +6 -0
  20. package/dist/commonjs/models/assessment-request.d.ts.map +1 -1
  21. package/dist/commonjs/models/assessment-request.js +3 -0
  22. package/dist/commonjs/models/assessment-request.js.map +1 -1
  23. package/dist/commonjs/models/index.d.ts +1 -0
  24. package/dist/commonjs/models/index.d.ts.map +1 -1
  25. package/dist/commonjs/models/index.js +1 -0
  26. package/dist/commonjs/models/index.js.map +1 -1
  27. package/dist/commonjs/models/risk.d.ts +8 -0
  28. package/dist/commonjs/models/risk.d.ts.map +1 -1
  29. package/dist/commonjs/models/risk.js +3 -0
  30. package/dist/commonjs/models/risk.js.map +1 -1
  31. package/dist/commonjs/sdk/assessments.d.ts +1 -1
  32. package/dist/commonjs/sdk/assessments.js +1 -1
  33. package/dist/esm/funcs/assessments-create.d.ts +1 -1
  34. package/dist/esm/funcs/assessments-create.js +1 -1
  35. package/dist/esm/index.d.ts +1 -0
  36. package/dist/esm/index.d.ts.map +1 -1
  37. package/dist/esm/index.js +1 -0
  38. package/dist/esm/index.js.map +1 -1
  39. package/dist/esm/issued-credential.d.ts +9 -0
  40. package/dist/esm/issued-credential.d.ts.map +1 -0
  41. package/dist/esm/issued-credential.js +15 -0
  42. package/dist/esm/issued-credential.js.map +1 -0
  43. package/dist/esm/lib/config.d.ts +2 -2
  44. package/dist/esm/lib/config.js +2 -2
  45. package/dist/esm/models/assessment-request-issued-credential.d.ts +18 -0
  46. package/dist/esm/models/assessment-request-issued-credential.d.ts.map +1 -0
  47. package/dist/esm/models/assessment-request-issued-credential.js +9 -0
  48. package/dist/esm/models/assessment-request-issued-credential.js.map +1 -0
  49. package/dist/esm/models/assessment-request.d.ts +6 -0
  50. package/dist/esm/models/assessment-request.d.ts.map +1 -1
  51. package/dist/esm/models/assessment-request.js +3 -0
  52. package/dist/esm/models/assessment-request.js.map +1 -1
  53. package/dist/esm/models/index.d.ts +1 -0
  54. package/dist/esm/models/index.d.ts.map +1 -1
  55. package/dist/esm/models/index.js +1 -0
  56. package/dist/esm/models/index.js.map +1 -1
  57. package/dist/esm/models/risk.d.ts +8 -0
  58. package/dist/esm/models/risk.d.ts.map +1 -1
  59. package/dist/esm/models/risk.js +3 -0
  60. package/dist/esm/models/risk.js.map +1 -1
  61. package/dist/esm/sdk/assessments.d.ts +1 -1
  62. package/dist/esm/sdk/assessments.js +1 -1
  63. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,13 @@
1
1
  # Changelog
2
2
 
3
+ ## 2.0.12
4
+
5
+ * `sdk.assessments.create()`:
6
+ * `request.body.issuedCredential` **Added**
7
+ * `response.risk` **Changed**
8
+ * `sdk.assessments.get()`: `response.risk` **Changed**
9
+ * `sdk.assessments.query()`: `response.items[].risk` **Changed**
10
+
3
11
  ## 2.0.11
4
12
 
5
13
  No changes detected.
package/README.md CHANGED
@@ -173,6 +173,15 @@ Override per client with `retryConfig`, or per call with `{ retries }`:
173
173
  await nr.assessments.create(params, { retries: { strategy: "none" } });
174
174
  ```
175
175
 
176
+ ## Issued keys
177
+
178
+ When your signup gate issues an API key to the new account, send only its hash, as `issued_credential.sha256`; the key itself never leaves your backend.
179
+
180
+ ```ts
181
+ import { hashIssuedCredential } from "@noresponse/node";
182
+ const sha256 = hashIssuedCredential(issuedKey); // 64 lower-case hex characters
183
+ ```
184
+
176
185
  ## Webhooks
177
186
 
178
187
  Verify the exact bytes you received, then act on the typed event. `secrets` maps each `whk_` key id we give you to its secret; hold both during a rotation.
@@ -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
- * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. 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.
15
+ * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. risk.block says when your block threshold was reached. 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
@@ -49,7 +49,7 @@ const async_js_1 = require("../types/async.js");
49
49
  * Assess identifiers for a signup or gateway decision.
50
50
  *
51
51
  * @remarks
52
- * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. 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.
52
+ * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. risk.block says when your block threshold was reached. 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.
53
53
  */
54
54
  function assessmentsCreate(client, request, options) {
55
55
  return new async_js_1.APIPromise($do(client, request, options));
@@ -8,6 +8,7 @@ export { constructEvent, verificationResponse, isExpiredEvent, WebhookVerificati
8
8
  export { handleLateResult, lateResultAction, clerkActions, workosActions, auth0Actions, ProviderActionError, DEFAULT_LATE_RESULT_POLICY, type LateResult, type LateResultAction, type LateResultOptions, type LateResultPolicy, type LateResultProvider, type ClerkActionsOptions, type WorkOSActionsOptions, type Auth0ActionsOptions, } from "./late-results.js";
9
9
  export { fromAuth0, fromClerk, fromCognito, fromEntra, fromFirebase, fromKeycloak, fromOIDC, fromOry, fromOryOAuth2, fromSupabase, fromWorkOS, type VerifiedClaims, type AuthContextOverrides, } from "./auth.js";
10
10
  export { DEFAULT_WAIT_TIMEOUT_MS, MIN_POLL_INTERVAL_MS } from "./wait.js";
11
+ export { hashIssuedCredential } from "./issued-credential.js";
11
12
  export * from "./models/index.js";
12
13
  export type { CreateAssessmentRequest, GetAssessmentRequest, RecordAssessmentOutcomeRequest } from "./models/operations/index.js";
13
14
  export { SDK_METADATA, ServerList, type SDKOptions } from "./lib/config.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,UAAU,EACV,WAAW,EACX,IAAI,EACJ,gBAAgB,EAChB,kBAAkB,EAClB,KAAK,iBAAiB,EACtB,KAAK,aAAa,EAClB,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,YAAY,EACjB,KAAK,QAAQ,EACb,KAAK,WAAW,GACjB,MAAM,aAAa,CAAC;AACrB,cAAc,aAAa,CAAC;AAC5B,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,wBAAwB,EACxB,yBAAyB,EACzB,KAAK,YAAY,EACjB,KAAK,sBAAsB,EAC3B,KAAK,sBAAsB,EAC3B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,qBAAqB,EAC1B,KAAK,WAAW,EAChB,KAAK,cAAc,EACnB,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,0BAA0B,EAC1B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,SAAS,EACT,SAAS,EACT,WAAW,EACX,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,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c,EACnB,KAAK,gBAAgB,GACtB,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,0BAA0B,EAC1B,KAAK,UAAU,EACf,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,gBAAgB,EACrB,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,SAAS,EACT,SAAS,EACT,WAAW,EACX,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,aAAa,EACb,YAAY,EACZ,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,oBAAoB,GAC1B,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,cAAc,mBAAmB,CAAC;AAClC,YAAY,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAClI,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,KAAK,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACjF,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC"}
@@ -14,7 +14,7 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
14
14
  for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
15
15
  };
16
16
  Object.defineProperty(exports, "__esModule", { value: true });
17
- exports.NoResponseCore = exports.HTTPClient = exports.ServerList = exports.SDK_METADATA = exports.MIN_POLL_INTERVAL_MS = exports.DEFAULT_WAIT_TIMEOUT_MS = exports.fromWorkOS = exports.fromSupabase = exports.fromOryOAuth2 = exports.fromOry = exports.fromOIDC = exports.fromKeycloak = exports.fromFirebase = exports.fromEntra = exports.fromCognito = exports.fromClerk = exports.fromAuth0 = exports.DEFAULT_LATE_RESULT_POLICY = exports.ProviderActionError = exports.auth0Actions = exports.workosActions = exports.clerkActions = exports.lateResultAction = exports.handleLateResult = exports.DEFAULT_TOLERANCE_SECONDS = exports.WebhookVerificationError = exports.isExpiredEvent = exports.verificationResponse = exports.constructEvent = exports.DEFAULT_TIMEOUT_MS = exports.DEFAULT_BASE_URL = exports.Keys = exports.Assessments = exports.NoResponse = void 0;
17
+ exports.NoResponseCore = exports.HTTPClient = exports.ServerList = exports.SDK_METADATA = exports.hashIssuedCredential = exports.MIN_POLL_INTERVAL_MS = exports.DEFAULT_WAIT_TIMEOUT_MS = exports.fromWorkOS = exports.fromSupabase = exports.fromOryOAuth2 = exports.fromOry = exports.fromOIDC = exports.fromKeycloak = exports.fromFirebase = exports.fromEntra = exports.fromCognito = exports.fromClerk = exports.fromAuth0 = exports.DEFAULT_LATE_RESULT_POLICY = exports.ProviderActionError = exports.auth0Actions = exports.workosActions = exports.clerkActions = exports.lateResultAction = exports.handleLateResult = exports.DEFAULT_TOLERANCE_SECONDS = exports.WebhookVerificationError = exports.isExpiredEvent = exports.verificationResponse = exports.constructEvent = exports.DEFAULT_TIMEOUT_MS = exports.DEFAULT_BASE_URL = exports.Keys = exports.Assessments = exports.NoResponse = void 0;
18
18
  /**
19
19
  * @noresponse/node entry point. Hand-written (listed in .genignore); the
20
20
  * generated client lives under ./sdk, ./funcs, ./models and ./lib.
@@ -55,6 +55,8 @@ Object.defineProperty(exports, "fromWorkOS", { enumerable: true, get: function (
55
55
  const wait_js_1 = require("./wait.js");
56
56
  Object.defineProperty(exports, "DEFAULT_WAIT_TIMEOUT_MS", { enumerable: true, get: function () { return wait_js_1.DEFAULT_WAIT_TIMEOUT_MS; } });
57
57
  Object.defineProperty(exports, "MIN_POLL_INTERVAL_MS", { enumerable: true, get: function () { return wait_js_1.MIN_POLL_INTERVAL_MS; } });
58
+ const issued_credential_js_1 = require("./issued-credential.js");
59
+ Object.defineProperty(exports, "hashIssuedCredential", { enumerable: true, get: function () { return issued_credential_js_1.hashIssuedCredential; } });
58
60
  __exportStar(require("./models/index.js"), exports);
59
61
  const config_js_1 = require("./lib/config.js");
60
62
  Object.defineProperty(exports, "SDK_METADATA", { enumerable: true, get: function () { return config_js_1.SDK_METADATA; } });
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA;;;GAGG;AACH,2CAaqB;AAZnB,uGAAA,UAAU,OAAA;AACV,wGAAA,WAAW,OAAA;AACX,iGAAA,IAAI,OAAA;AACJ,6GAAA,gBAAgB,OAAA;AAChB,+GAAA,kBAAkB,OAAA;AASpB,8CAA4B;AAC5B,+CAgBuB;AAfrB,6GAAA,cAAc,OAAA;AACd,mHAAA,oBAAoB,OAAA;AACpB,6GAAA,cAAc,OAAA;AACd,uHAAA,wBAAwB,OAAA;AACxB,wHAAA,yBAAyB,OAAA;AAY3B,uDAgB2B;AAfzB,mHAAA,gBAAgB,OAAA;AAChB,mHAAA,gBAAgB,OAAA;AAChB,+GAAA,YAAY,OAAA;AACZ,gHAAA,aAAa,OAAA;AACb,+GAAA,YAAY,OAAA;AACZ,sHAAA,mBAAmB,OAAA;AACnB,6HAAA,0BAA0B,OAAA;AAU5B,uCAcmB;AAbjB,oGAAA,SAAS,OAAA;AACT,oGAAA,SAAS,OAAA;AACT,sGAAA,WAAW,OAAA;AACX,oGAAA,SAAS,OAAA;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ACP,wGAAA,aAAa,OAAA;AACb,uGAAA,YAAY,OAAA;AACZ,qGAAA,UAAU,OAAA;AAIZ,uCAA0E;AAAjE,kHAAA,uBAAuB,OAAA;AAAE,+GAAA,oBAAoB,OAAA;AACtD,iEAA8D;AAArD,4HAAA,oBAAoB,OAAA;AAC7B,oDAAkC;AAElC,+CAA4E;AAAnE,yGAAA,YAAY,OAAA;AAAE,uGAAA,UAAU,OAAA;AACjC,2CAAiF;AAAxE,qGAAA,UAAU,OAAA;AAInB,uCAA2C;AAAlC,yGAAA,cAAc,OAAA"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * SHA-256 of an API key your signup gate issued to the new account, as 64
3
+ * lower-case hex characters. The key never leaves your backend: send only this
4
+ * hash, as `issuedCredential.sha256` on the assessment request. The key is
5
+ * hashed as its UTF-8 bytes exactly as given, with no trimming or
6
+ * normalisation. An empty key throws a TypeError.
7
+ */
8
+ export declare function hashIssuedCredential(key: string): string;
9
+ //# sourceMappingURL=issued-credential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issued-credential.d.ts","sourceRoot":"","sources":["../../src/issued-credential.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAKxD"}
@@ -0,0 +1,18 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.hashIssuedCredential = hashIssuedCredential;
4
+ const node_crypto_1 = require("node:crypto");
5
+ /**
6
+ * SHA-256 of an API key your signup gate issued to the new account, as 64
7
+ * lower-case hex characters. The key never leaves your backend: send only this
8
+ * hash, as `issuedCredential.sha256` on the assessment request. The key is
9
+ * hashed as its UTF-8 bytes exactly as given, with no trimming or
10
+ * normalisation. An empty key throws a TypeError.
11
+ */
12
+ function hashIssuedCredential(key) {
13
+ if (typeof key !== "string" || key.length === 0) {
14
+ throw new TypeError("issued key must be a non-empty string");
15
+ }
16
+ return (0, node_crypto_1.createHash)("sha256").update(key, "utf8").digest("hex");
17
+ }
18
+ //# sourceMappingURL=issued-credential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issued-credential.js","sourceRoot":"","sources":["../../src/issued-credential.ts"],"names":[],"mappings":";;;AAAA,6CAAyC;AAEzC;;;;;;GAMG;AACH,8BAAqC,GAAW,EAAU;IACxD,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,SAAS,CAAC,uCAAuC,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,IAAA,wBAAU,EAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAAA,CAC/D"}
@@ -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: "2.0.11";
34
+ readonly sdkVersion: "2.0.12";
35
35
  readonly genVersion: "internal";
36
- readonly userAgent: "noresponse-sdk/typescript 2.0.11 internal 1 @noresponse/node";
36
+ readonly userAgent: "noresponse-sdk/typescript 2.0.12 internal 1 @noresponse/node";
37
37
  };
38
38
  //# sourceMappingURL=config.d.ts.map
@@ -28,8 +28,8 @@ function serverURLFromOptions(options) {
28
28
  exports.SDK_METADATA = {
29
29
  language: "typescript",
30
30
  openapiDocVersion: "1",
31
- sdkVersion: "2.0.11",
31
+ sdkVersion: "2.0.12",
32
32
  genVersion: "internal",
33
- userAgent: "noresponse-sdk/typescript 2.0.11 internal 1 @noresponse/node",
33
+ userAgent: "noresponse-sdk/typescript 2.0.12 internal 1 @noresponse/node",
34
34
  };
35
35
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,18 @@
1
+ import * as z from "zod/v4-mini";
2
+ /**
3
+ * Optional. When the signup gate issues an API key to the new account, send SHA-256 of that key, so later usage of the key, or a leaked copy, ties back to this assessment. Each SDK has a helper that computes it. Send only the hash: customer keys are high-entropy, so the hash reveals nothing about them. The assessment stores it, and no response, webhook or log carries it.
4
+ */
5
+ export type AssessmentRequestIssuedCredential = {
6
+ /**
7
+ * SHA-256 of the issued key's UTF-8 bytes, as 64 lower-case hex characters.
8
+ */
9
+ sha256: string;
10
+ };
11
+ /** @internal */
12
+ export type AssessmentRequestIssuedCredential$Outbound = {
13
+ sha256: string;
14
+ };
15
+ /** @internal */
16
+ export declare const AssessmentRequestIssuedCredential$outboundSchema: z.ZodMiniType<AssessmentRequestIssuedCredential$Outbound, AssessmentRequestIssuedCredential>;
17
+ export declare function assessmentRequestIssuedCredentialToJSON(assessmentRequestIssuedCredential: AssessmentRequestIssuedCredential): string;
18
+ //# sourceMappingURL=assessment-request-issued-credential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assessment-request-issued-credential.d.ts","sourceRoot":"","sources":["../../../src/models/assessment-request-issued-credential.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,0CAA0C,GAAG;IACvD,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,WAAW,CAC1E,0CAA0C,EAC1C,iCAAiC,CAGjC,CAAC;AAEH,wBAAgB,uCAAuC,CACrD,iCAAiC,EAAE,iCAAiC,GACnE,MAAM,CAMR"}
@@ -0,0 +1,46 @@
1
+ "use strict";
2
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
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.AssessmentRequestIssuedCredential$outboundSchema = void 0;
37
+ exports.assessmentRequestIssuedCredentialToJSON = assessmentRequestIssuedCredentialToJSON;
38
+ const z = __importStar(require("zod/v4-mini"));
39
+ /** @internal */
40
+ exports.AssessmentRequestIssuedCredential$outboundSchema = z.object({
41
+ sha256: z.string(),
42
+ });
43
+ function assessmentRequestIssuedCredentialToJSON(assessmentRequestIssuedCredential) {
44
+ return JSON.stringify(exports.AssessmentRequestIssuedCredential$outboundSchema.parse(assessmentRequestIssuedCredential));
45
+ }
46
+ //# sourceMappingURL=assessment-request-issued-credential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assessment-request-issued-credential.js","sourceRoot":"","sources":["../../../src/models/assessment-request-issued-credential.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AAiBjC,gBAAgB;AACH,QAAA,gDAAgD,GAGzD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH,iDACE,iCAAoE,EAC5D;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,QAAA,gDAAgD,CAAC,KAAK,CACpD,iCAAiC,CAClC,CACF,CAAC;AAAA,CACH"}
@@ -1,6 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  import { AssessmentRequestClientContext, AssessmentRequestClientContext$Outbound } from "./assessment-request-client-context.js";
3
3
  import { AssessmentRequestIdentifiers, AssessmentRequestIdentifiers$Outbound } from "./assessment-request-identifiers.js";
4
+ import { AssessmentRequestIssuedCredential, AssessmentRequestIssuedCredential$Outbound } from "./assessment-request-issued-credential.js";
4
5
  import { AssessmentRequestPolicyContext, AssessmentRequestPolicyContext$Outbound } from "./assessment-request-policy-context.js";
5
6
  import { AuthContext, AuthContext$Outbound } from "./auth-context.js";
6
7
  import { ResponseMode } from "./response-mode.js";
@@ -37,6 +38,10 @@ export type AssessmentRequest = {
37
38
  * Normalised claims from a session your backend has already verified with WorkOS, Clerk, Auth0 or any OIDC provider. Pass the output of the SDK's auth adapters, not a raw token.
38
39
  */
39
40
  authContext?: AuthContext | undefined;
41
+ /**
42
+ * Optional. When the signup gate issues an API key to the new account, send SHA-256 of that key, so later usage of the key, or a leaked copy, ties back to this assessment. Each SDK has a helper that computes it. Send only the hash: customer keys are high-entropy, so the hash reveals nothing about them. The assessment stores it, and no response, webhook or log carries it.
43
+ */
44
+ issuedCredential?: AssessmentRequestIssuedCredential | undefined;
40
45
  };
41
46
  /** @internal */
42
47
  export type AssessmentRequest$Outbound = {
@@ -48,6 +53,7 @@ export type AssessmentRequest$Outbound = {
48
53
  response_mode?: string | undefined;
49
54
  client_context?: AssessmentRequestClientContext$Outbound | undefined;
50
55
  auth_context?: AuthContext$Outbound | undefined;
56
+ issued_credential?: AssessmentRequestIssuedCredential$Outbound | undefined;
51
57
  };
52
58
  /** @internal */
53
59
  export declare const AssessmentRequest$outboundSchema: z.ZodMiniType<AssessmentRequest$Outbound, AssessmentRequest>;
@@ -1 +1 @@
1
- {"version":3,"file":"assessment-request.d.ts","sourceRoot":"","sources":["../../../src/models/assessment-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EACL,8BAA8B,EAC9B,uCAAuC,EAExC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,4BAA4B,EAC5B,qCAAqC,EAEtC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,8BAA8B,EAC9B,uCAAuC,EAExC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,WAAW,EACX,oBAAoB,EAErB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAA+B,MAAM,oBAAoB,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,4BAA4B,CAAC;IAC1C,aAAa,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAC3D;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,aAAa,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAC3D;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,qCAAqC,CAAC;IACnD,cAAc,CAAC,EAAE,uCAAuC,GAAG,SAAS,CAAC;IACrE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,cAAc,CAAC,EAAE,uCAAuC,GAAG,SAAS,CAAC;IACrE,YAAY,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CACjD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,0BAA0B,EAC1B,iBAAiB,CAuBlB,CAAC;AAEF,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
1
+ {"version":3,"file":"assessment-request.d.ts","sourceRoot":"","sources":["../../../src/models/assessment-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EACL,8BAA8B,EAC9B,uCAAuC,EAExC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,4BAA4B,EAC5B,qCAAqC,EAEtC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,iCAAiC,EACjC,0CAA0C,EAE3C,MAAM,2CAA2C,CAAC;AACnD,OAAO,EACL,8BAA8B,EAC9B,uCAAuC,EAExC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,WAAW,EACX,oBAAoB,EAErB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAA+B,MAAM,oBAAoB,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,4BAA4B,CAAC;IAC1C,aAAa,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAC3D;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,aAAa,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAC3D;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,gBAAgB,CAAC,EAAE,iCAAiC,GAAG,SAAS,CAAC;CAClE,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,qCAAqC,CAAC;IACnD,cAAc,CAAC,EAAE,uCAAuC,GAAG,SAAS,CAAC;IACrE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,cAAc,CAAC,EAAE,uCAAuC,GAAG,SAAS,CAAC;IACrE,YAAY,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAChD,iBAAiB,CAAC,EAAE,0CAA0C,GAAG,SAAS,CAAC;CAC5E,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,0BAA0B,EAC1B,iBAAiB,CA2BlB,CAAC;AAEF,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
@@ -39,6 +39,7 @@ const z = __importStar(require("zod/v4-mini"));
39
39
  const primitives_js_1 = require("../lib/primitives.js");
40
40
  const assessment_request_client_context_js_1 = require("./assessment-request-client-context.js");
41
41
  const assessment_request_identifiers_js_1 = require("./assessment-request-identifiers.js");
42
+ const assessment_request_issued_credential_js_1 = require("./assessment-request-issued-credential.js");
42
43
  const assessment_request_policy_context_js_1 = require("./assessment-request-policy-context.js");
43
44
  const auth_context_js_1 = require("./auth-context.js");
44
45
  const response_mode_js_1 = require("./response-mode.js");
@@ -52,6 +53,7 @@ exports.AssessmentRequest$outboundSchema = z.pipe(z.object({
52
53
  responseMode: z.optional(response_mode_js_1.ResponseMode$outboundSchema),
53
54
  clientContext: z.optional(assessment_request_client_context_js_1.AssessmentRequestClientContext$outboundSchema),
54
55
  authContext: z.optional(auth_context_js_1.AuthContext$outboundSchema),
56
+ issuedCredential: z.optional(assessment_request_issued_credential_js_1.AssessmentRequestIssuedCredential$outboundSchema),
55
57
  }), z.transform((v) => {
56
58
  return (0, primitives_js_1.remap)(v, {
57
59
  accountId: "account_id",
@@ -61,6 +63,7 @@ exports.AssessmentRequest$outboundSchema = z.pipe(z.object({
61
63
  responseMode: "response_mode",
62
64
  clientContext: "client_context",
63
65
  authContext: "auth_context",
66
+ issuedCredential: "issued_credential",
64
67
  });
65
68
  }));
66
69
  function assessmentRequestToJSON(assessmentRequest) {
@@ -1 +1 @@
1
- {"version":3,"file":"assessment-request.js","sourceRoot":"","sources":["../../../src/models/assessment-request.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,wDAAuD;AACvD,iGAIgD;AAChD,2FAI6C;AAC7C,iGAIgD;AAChD,uDAI2B;AAC3B,yDAA+E;AAiD/E,gBAAgB;AACH,QAAA,gCAAgC,GAGzC,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,WAAW,EAAE,+EAA2C;IACxD,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,oFAA6C,CAAC;IACxE,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;IAC/B,YAA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AG,EAAE,CAAC;IAC/B,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,8CAA2B,CAAC;IACrD,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,oFAA6C,CAAC;IACxE,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,4CAA0B,CAAC;IACnD,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAC1B,0FAAgD,CACjD;CACF,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,aAAa,EAAE,gBAAgB;QAC/B,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,aAAa;QACzB,YAAY,EAAE,eAAe;QAC7B,aAAa,EAAE,gBAAgB;QAC/B,WAAW,EAAE,cAAc;QAC3B,gBAAgB,EAAE,mBAAmB;KACtC,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,iCACE,iBAAoC,EAC5B;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,QAAA,gCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AAAA,CACH"}
@@ -4,6 +4,7 @@ export * from "./assessment-outcome.js";
4
4
  export * from "./assessment-query.js";
5
5
  export * from "./assessment-request-client-context.js";
6
6
  export * from "./assessment-request-identifiers.js";
7
+ export * from "./assessment-request-issued-credential.js";
7
8
  export * from "./assessment-request-policy-context.js";
8
9
  export * from "./assessment-request.js";
9
10
  export * from "./assessment-timing.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,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,wC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C;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
@@ -20,6 +20,7 @@ __exportStar(require("./assessment-outcome.js"), exports);
20
20
  __exportStar(require("./assessment-query.js"), exports);
21
21
  __exportStar(require("./assessment-request-client-context.js"), exports);
22
22
  __exportStar(require("./assessment-request-identifiers.js"), exports);
23
+ __exportStar(require("./assessment-request-issued-credential.js"), exports);
23
24
  __exportStar(require("./assessment-request-policy-context.js"), exports);
24
25
  __exportStar(require("./assessment-request.js"), exports);
25
26
  __exportStar(require("./assessment-timing.js"), exports);
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,kEAAgD;AAChD,0DAAwC;AACxC,wDAAsC;AACtC,yEAAuD;AACvD,sEAAoD;AACpD,yEAAuD;AACvD,0DAAwC;AACxC,yDAAuC;AACvC,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,sDAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,kDAAgC;AAChC,uDAAqC;AACrC,yDAAuC;AACvC,yDAAuC;AACvC,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,8CAA4B;AAC5B,iDAA+B"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,uDAAqC;AACrC,kEAAgD;AAChD,0DAAwC;AACxC,wDAAsC;AACtC,yEAAuD;AACvD,sEAAoD;AACpD,4EAA0D;AAC1D,yEAAuD;AACvD,0DAAwC;AACxC,yDAAuC;AACvC,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,sDAAoC;AACpC,4CAA0B;AAC1B,iDAA+B;AAC/B,kDAAgC;AAChC,uDAAqC;AACrC,yDAAuC;AACvC,yDAAuC;AACvC,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,8CAA4B;AAC5B,iDAA+B"}
@@ -21,6 +21,14 @@ export type Risk = {
21
21
  * The recommended action: allow, step_up or review. Your application applies it.
22
22
  */
23
23
  recommendation: Recommendation;
24
+ /**
25
+ * true when the tenant's block threshold is set and score reached it. A provider hook can deny the signup on it; the provider decides and enforces. It does not change recommendation. It is false while blocking is off, the default, and a body from before the flag existed omits it: read absent as false.
26
+ */
27
+ block?: boolean | undefined;
28
+ /**
29
+ * The block threshold this answer used: block is true exactly when score is at least this value. Absent while blocking is off. NoResponse sets it per tenant on request, at or above the review threshold.
30
+ */
31
+ blockThreshold?: number | undefined;
24
32
  /**
25
33
  * How much of the planned evidence answered; it says nothing about risk.
26
34
  */
@@ -1 +1 @@
1
- {"version":3,"file":"risk.d.ts","sourceRoot":"","sources":["../../../src/models/risk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,IAAI,EAAsB,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EAEf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAA8B,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAA6B,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAA4B,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,WAAW,EAA6B,MAAM,mBAAmB,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B;;OAEG;IACH,UAAU,EAAE,cAAc,CAAC;IAC3B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,uBAAuB,CAAC;IACrC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAClC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;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,uBAAuB,CAAC;IACrC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,OAAO,CAsB3D,CAAC;AAEF,wBAAgB,YAAY,CAC1B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAM3C"}
@@ -51,6 +51,8 @@ exports.Risk$inboundSchema = z.pipe(z.object({
51
51
  score: types.number(),
52
52
  band: band_js_1.Band$inboundSchema,
53
53
  recommendation: recommendation_js_1.Recommendation$inboundSchema,
54
+ block: types.optional(types.boolean()),
55
+ block_threshold: types.optional(types.number()),
54
56
  confidence: risk_confidence_js_1.RiskConfidence$inboundSchema,
55
57
  policy_version: types.string(),
56
58
  policy_basis: types.literal("heuristic_unvalidated"),
@@ -60,6 +62,7 @@ exports.Risk$inboundSchema = z.pipe(z.object({
60
62
  details: types.optional(risk_details_js_1.RiskDetails$inboundSchema),
61
63
  }), z.transform((v) => {
62
64
  return (0, primitives_js_1.remap)(v, {
65
+ "block_threshold": "blockThreshold",
63
66
  "policy_version": "policyVersion",
64
67
  "policy_basis": "policyBasis",
65
68
  });
@@ -1 +1 @@
1
- {"version":3,"file":"risk.js","sourceRoot":"","sources":["../../../src/models/risk.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,wDAAuD;AACvD,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;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-7,7 +7,7 @@ export declare class Assessments extends ClientSDK {
7
7
  * Assess identifiers for a signup or gateway decision.
8
8
  *
9
9
  * @remarks
10
- * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. 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.
10
+ * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. risk.block says when your block threshold was reached. 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
  /**
@@ -13,7 +13,7 @@ class Assessments extends sdks_js_1.ClientSDK {
13
13
  * Assess identifiers for a signup or gateway decision.
14
14
  *
15
15
  * @remarks
16
- * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. 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
+ * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. risk.block says when your block threshold was reached. 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
  async create(request, options) {
19
19
  return (0, fp_js_1.unwrapAsync)((0, assessments_create_js_1.assessmentsCreate)(this, 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
- * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. 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.
15
+ * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. risk.block says when your block threshold was reached. 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
- * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. 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
+ * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. risk.block says when your block threshold was reached. 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));
@@ -8,6 +8,7 @@ export { constructEvent, verificationResponse, isExpiredEvent, WebhookVerificati
8
8
  export { handleLateResult, lateResultAction, clerkActions, workosActions, auth0Actions, ProviderActionError, DEFAULT_LATE_RESULT_POLICY, type LateResult, type LateResultAction, type LateResultOptions, type LateResultPolicy, type LateResultProvider, type ClerkActionsOptions, type WorkOSActionsOptions, type Auth0ActionsOptions, } from "./late-results.js";
9
9
  export { fromAuth0, fromClerk, fromCognito, fromEntra, fromFirebase, fromKeycloak, fromOIDC, fromOry, fromOryOAuth2, fromSupabase, fromWorkOS, type VerifiedClaims, type AuthContextOverrides, } from "./auth.js";
10
10
  export { DEFAULT_WAIT_TIMEOUT_MS, MIN_POLL_INTERVAL_MS } from "./wait.js";
11
+ export { hashIssuedCredential } from "./issued-credential.js";
11
12
  export * from "./models/index.js";
12
13
  export type { CreateAssessmentRequest, GetAssessmentRequest, RecordAssessmentOutcomeRequest } from "./models/operations/index.js";
13
14
  export { SDK_METADATA, ServerList, type SDKOptions } from "./lib/config.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot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B,KAAK,kBAAkB,EACvB,KAAK,mBAAmB,EACxB,KAAK,oBAAoB,EACzB,KAAK,mBAAmB,GACzB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,SAAS,EACT,SAAS,EACT,WAAW,EACX,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,aAAa,EACb,YAAY,EACZ,UAAU,EACV,KAAK,cAAc,EACnB,KAAK,oBAAoB,GAC1B,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,cAAc,mBAAmB,CAAC;AAClC,YAAY,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,8BAA8B,EAAE,MAAM,8BAA8B,CAAC;AAClI,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,KAAK,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,KAAK,OAAO,EAAE,KAAK,iBAAiB,EAAE,MAAM,eAAe,CAAC;AACjF,YAAY,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAC9C,YAAY,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AACpD,YAAY,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAC;AACrE,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC"}
package/dist/esm/index.js CHANGED
@@ -8,6 +8,7 @@ export { constructEvent, verificationResponse, isExpiredEvent, WebhookVerificati
8
8
  export { handleLateResult, lateResultAction, clerkActions, workosActions, auth0Actions, ProviderActionError, DEFAULT_LATE_RESULT_POLICY, } from "./late-results.js";
9
9
  export { fromAuth0, fromClerk, fromCognito, fromEntra, fromFirebase, fromKeycloak, fromOIDC, fromOry, fromOryOAuth2, fromSupabase, fromWorkOS, } from "./auth.js";
10
10
  export { DEFAULT_WAIT_TIMEOUT_MS, MIN_POLL_INTERVAL_MS } from "./wait.js";
11
+ export { hashIssuedCredential } from "./issued-credential.js";
11
12
  export * from "./models/index.js";
12
13
  export { SDK_METADATA, ServerList } from "./lib/config.js";
13
14
  export { HTTPClient } from "./lib/http.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,UAAU,EACV,WAAW,EACX,IAAI,EACJ,gBAAgB,EAChB,kBAAkB,GAQnB,MAAM,aAAa,CAAC;AACrB,cAAc,aAAa,CAAC;AAC5B,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,wBAAwB,EACxB,yBAAyB,GAW1B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,0BAA0B,GAS3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,SAAS,EACT,SAAS,EACT,WAAW,EACX,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,aAAa,EACb,YAAY,EACZ,UAAU,GAGX,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAC1E,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAmB,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAwC,MAAM,eAAe,CAAC;AAIjF,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,UAAU,EACV,WAAW,EACX,IAAI,EACJ,gBAAgB,EAChB,kBAAkB,GAQnB,MAAM,aAAa,CAAC;AACrB,cAAc,aAAa,CAAC;AAC5B,OAAO,EACL,cAAc,EACd,oBAAoB,EACpB,cAAc,EACd,wBAAwB,EACxB,yBAAyB,GAW1B,MAAM,eAAe,CAAC;AACvB,OAAO,EACL,gBAAgB,EAChB,gBAAgB,EAChB,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,mBAAmB,EACnB,0BAA0B,GAS3B,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,SAAS,EACT,SAAS,EACT,WAAW,EACX,SAAS,EACT,YAAY,EACZ,YAAY,EACZ,QAAQ,EACR,OAAO,EACP,aAAa,EACb,YAAY,EACZ,UAAU,GAGX,MAAM,WAAW,CAAC;AACnB,OAAO,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,MAAM,WAAW,CAAC;AAC1E,OAAO,EAAE,oBAAoB,EAAE,MAAM,wBAAwB,CAAC;AAC9D,cAAc,mBAAmB,CAAC;AAElC,OAAO,EAAE,YAAY,EAAE,UAAU,EAAmB,MAAM,iBAAiB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAwC,MAAM,eAAe,CAAC;AAIjF,OAAO,EAAE,cAAc,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,9 @@
1
+ /**
2
+ * SHA-256 of an API key your signup gate issued to the new account, as 64
3
+ * lower-case hex characters. The key never leaves your backend: send only this
4
+ * hash, as `issuedCredential.sha256` on the assessment request. The key is
5
+ * hashed as its UTF-8 bytes exactly as given, with no trimming or
6
+ * normalisation. An empty key throws a TypeError.
7
+ */
8
+ export declare function hashIssuedCredential(key: string): string;
9
+ //# sourceMappingURL=issued-credential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issued-credential.d.ts","sourceRoot":"","sources":["../../src/issued-credential.ts"],"names":[],"mappings":"AAEA;;;;;;GAMG;AACH,wBAAgB,oBAAoB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAKxD"}
@@ -0,0 +1,15 @@
1
+ import { createHash } from "node:crypto";
2
+ /**
3
+ * SHA-256 of an API key your signup gate issued to the new account, as 64
4
+ * lower-case hex characters. The key never leaves your backend: send only this
5
+ * hash, as `issuedCredential.sha256` on the assessment request. The key is
6
+ * hashed as its UTF-8 bytes exactly as given, with no trimming or
7
+ * normalisation. An empty key throws a TypeError.
8
+ */
9
+ export function hashIssuedCredential(key) {
10
+ if (typeof key !== "string" || key.length === 0) {
11
+ throw new TypeError("issued key must be a non-empty string");
12
+ }
13
+ return createHash("sha256").update(key, "utf8").digest("hex");
14
+ }
15
+ //# sourceMappingURL=issued-credential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"issued-credential.js","sourceRoot":"","sources":["../../src/issued-credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AAEzC;;;;;;GAMG;AACH,MAAM,UAAU,oBAAoB,CAAC,GAAW,EAAU;IACxD,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,GAAG,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;QAChD,MAAM,IAAI,SAAS,CAAC,uCAAuC,CAAC,CAAC;IAC/D,CAAC;IACD,OAAO,UAAU,CAAC,QAAQ,CAAC,CAAC,MAAM,CAAC,GAAG,EAAE,MAAM,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AAAA,CAC/D"}
@@ -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: "2.0.11";
34
+ readonly sdkVersion: "2.0.12";
35
35
  readonly genVersion: "internal";
36
- readonly userAgent: "noresponse-sdk/typescript 2.0.11 internal 1 @noresponse/node";
36
+ readonly userAgent: "noresponse-sdk/typescript 2.0.12 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: "2.0.11",
27
+ sdkVersion: "2.0.12",
28
28
  genVersion: "internal",
29
- userAgent: "noresponse-sdk/typescript 2.0.11 internal 1 @noresponse/node",
29
+ userAgent: "noresponse-sdk/typescript 2.0.12 internal 1 @noresponse/node",
30
30
  };
31
31
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,18 @@
1
+ import * as z from "zod/v4-mini";
2
+ /**
3
+ * Optional. When the signup gate issues an API key to the new account, send SHA-256 of that key, so later usage of the key, or a leaked copy, ties back to this assessment. Each SDK has a helper that computes it. Send only the hash: customer keys are high-entropy, so the hash reveals nothing about them. The assessment stores it, and no response, webhook or log carries it.
4
+ */
5
+ export type AssessmentRequestIssuedCredential = {
6
+ /**
7
+ * SHA-256 of the issued key's UTF-8 bytes, as 64 lower-case hex characters.
8
+ */
9
+ sha256: string;
10
+ };
11
+ /** @internal */
12
+ export type AssessmentRequestIssuedCredential$Outbound = {
13
+ sha256: string;
14
+ };
15
+ /** @internal */
16
+ export declare const AssessmentRequestIssuedCredential$outboundSchema: z.ZodMiniType<AssessmentRequestIssuedCredential$Outbound, AssessmentRequestIssuedCredential>;
17
+ export declare function assessmentRequestIssuedCredentialToJSON(assessmentRequestIssuedCredential: AssessmentRequestIssuedCredential): string;
18
+ //# sourceMappingURL=assessment-request-issued-credential.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assessment-request-issued-credential.d.ts","sourceRoot":"","sources":["../../../src/models/assessment-request-issued-credential.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC;;GAEG;AACH,MAAM,MAAM,iCAAiC,GAAG;IAC9C;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,0CAA0C,GAAG;IACvD,MAAM,EAAE,MAAM,CAAC;CAChB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,WAAW,CAC1E,0CAA0C,EAC1C,iCAAiC,CAGjC,CAAC;AAEH,wBAAgB,uCAAuC,CACrD,iCAAiC,EAAE,iCAAiC,GACnE,MAAM,CAMR"}
@@ -0,0 +1,9 @@
1
+ import * as z from "zod/v4-mini";
2
+ /** @internal */
3
+ export const AssessmentRequestIssuedCredential$outboundSchema = z.object({
4
+ sha256: z.string(),
5
+ });
6
+ export function assessmentRequestIssuedCredentialToJSON(assessmentRequestIssuedCredential) {
7
+ return JSON.stringify(AssessmentRequestIssuedCredential$outboundSchema.parse(assessmentRequestIssuedCredential));
8
+ }
9
+ //# sourceMappingURL=assessment-request-issued-credential.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"assessment-request-issued-credential.js","sourceRoot":"","sources":["../../../src/models/assessment-request-issued-credential.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAiBjC,gBAAgB;AAChB,MAAM,CAAC,MAAM,gDAAgD,GAGzD,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;CACnB,CAAC,CAAC;AAEH,MAAM,UAAU,uCAAuC,CACrD,iCAAoE,EAC5D;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,gDAAgD,CAAC,KAAK,CACpD,iCAAiC,CAClC,CACF,CAAC;AAAA,CACH"}
@@ -1,6 +1,7 @@
1
1
  import * as z from "zod/v4-mini";
2
2
  import { AssessmentRequestClientContext, AssessmentRequestClientContext$Outbound } from "./assessment-request-client-context.js";
3
3
  import { AssessmentRequestIdentifiers, AssessmentRequestIdentifiers$Outbound } from "./assessment-request-identifiers.js";
4
+ import { AssessmentRequestIssuedCredential, AssessmentRequestIssuedCredential$Outbound } from "./assessment-request-issued-credential.js";
4
5
  import { AssessmentRequestPolicyContext, AssessmentRequestPolicyContext$Outbound } from "./assessment-request-policy-context.js";
5
6
  import { AuthContext, AuthContext$Outbound } from "./auth-context.js";
6
7
  import { ResponseMode } from "./response-mode.js";
@@ -37,6 +38,10 @@ export type AssessmentRequest = {
37
38
  * Normalised claims from a session your backend has already verified with WorkOS, Clerk, Auth0 or any OIDC provider. Pass the output of the SDK's auth adapters, not a raw token.
38
39
  */
39
40
  authContext?: AuthContext | undefined;
41
+ /**
42
+ * Optional. When the signup gate issues an API key to the new account, send SHA-256 of that key, so later usage of the key, or a leaked copy, ties back to this assessment. Each SDK has a helper that computes it. Send only the hash: customer keys are high-entropy, so the hash reveals nothing about them. The assessment stores it, and no response, webhook or log carries it.
43
+ */
44
+ issuedCredential?: AssessmentRequestIssuedCredential | undefined;
40
45
  };
41
46
  /** @internal */
42
47
  export type AssessmentRequest$Outbound = {
@@ -48,6 +53,7 @@ export type AssessmentRequest$Outbound = {
48
53
  response_mode?: string | undefined;
49
54
  client_context?: AssessmentRequestClientContext$Outbound | undefined;
50
55
  auth_context?: AuthContext$Outbound | undefined;
56
+ issued_credential?: AssessmentRequestIssuedCredential$Outbound | undefined;
51
57
  };
52
58
  /** @internal */
53
59
  export declare const AssessmentRequest$outboundSchema: z.ZodMiniType<AssessmentRequest$Outbound, AssessmentRequest>;
@@ -1 +1 @@
1
- {"version":3,"file":"assessment-request.d.ts","sourceRoot":"","sources":["../../../src/models/assessment-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EACL,8BAA8B,EAC9B,uCAAuC,EAExC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,4BAA4B,EAC5B,qCAAqC,EAEtC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,8BAA8B,EAC9B,uCAAuC,EAExC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,WAAW,EACX,oBAAoB,EAErB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EAAE,YAAY,EAA+B,MAAM,oBAAoB,CAAC;AAE/E;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,EAAE,4BAA4B,CAAC;IAC1C,aAAa,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAC3D;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC;;OAEG;IACH,YAAY,CAAC,EAAE,YAAY,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,aAAa,CAAC,EAAE,8BAA8B,GAAG,SAAS,CAAC;IAC3D;;OAEG;IACH,WAAW,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACvC,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,qCAAqC,CAAC;IACnD,cAAc,CAAC,EAAE,uCAAuC,GAAG,SAAS,CAAC;IACrE,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,WAAW,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACjC,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC,cAAc,CAAC,EAAE,uCAAuC,GAAG,SAAS,CAAC;IACrE,YAAY,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;CACjD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,0BAA0B,EAC1B,iBAAiB,CAuBlB,CAAC;AAEF,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
1
+ {"version":3,"file":"assessment-request.d.ts","sourceRoot":"","sources":["../../../src/models/assessment-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EACL,8BAA8B,EAC9B,uCAAuC,EAExC,MAAM,wCAAwC,CAAC;AAChD,OAAO,EACL,4B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AAY,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IAChD,iBAAiB,CAAC,EAAE,0CAA0C,GAAG,SAAS,CAAC;CAC5E,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,0BAA0B,EAC1B,iBAAiB,CA2BlB,CAAC;AAEF,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR"}
@@ -2,6 +2,7 @@ import * as z from "zod/v4-mini";
2
2
  import { remap as remap$ } from "../lib/primitives.js";
3
3
  import { AssessmentRequestClientContext$outboundSchema, } from "./assessment-request-client-context.js";
4
4
  import { AssessmentRequestIdentifiers$outboundSchema, } from "./assessment-request-identifiers.js";
5
+ import { AssessmentRequestIssuedCredential$outboundSchema, } from "./assessment-request-issued-credential.js";
5
6
  import { AssessmentRequestPolicyContext$outboundSchema, } from "./assessment-request-policy-context.js";
6
7
  import { AuthContext$outboundSchema, } from "./auth-context.js";
7
8
  import { ResponseMode$outboundSchema } from "./response-mode.js";
@@ -15,6 +16,7 @@ export const AssessmentRequest$outboundSchema = z.pipe(z.object({
15
16
  responseMode: z.optional(ResponseMode$outboundSchema),
16
17
  clientContext: z.optional(AssessmentRequestClientContext$outboundSchema),
17
18
  authContext: z.optional(AuthContext$outboundSchema),
19
+ issuedCredential: z.optional(AssessmentRequestIssuedCredential$outboundSchema),
18
20
  }), z.transform((v) => {
19
21
  return remap$(v, {
20
22
  accountId: "account_id",
@@ -24,6 +26,7 @@ export const AssessmentRequest$outboundSchema = z.pipe(z.object({
24
26
  responseMode: "response_mode",
25
27
  clientContext: "client_context",
26
28
  authContext: "auth_context",
29
+ issuedCredential: "issued_credential",
27
30
  });
28
31
  }));
29
32
  export function assessmentRequestToJSON(assessmentRequest) {
@@ -1 +1 @@
1
- {"version":3,"file":"assessment-request.js","sourceRoot":"","sources":["../../../src/models/assessment-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,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AE,CAAC,CAAC,QAAQ,CAC1B,gDAAgD,CACjD;CACF,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,aAAa,EAAE,gBAAgB;QAC/B,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,aAAa;QACzB,YAAY,EAAE,eAAe;QAC7B,aAAa,EAAE,gBAAgB;QAC/B,WAAW,EAAE,cAAc;QAC3B,gBAAgB,EAAE,mBAAmB;KACtC,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,uBAAuB,CACrC,iBAAoC,EAC5B;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,gCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AAAA,CACH"}
@@ -4,6 +4,7 @@ export * from "./assessment-outcome.js";
4
4
  export * from "./assessment-query.js";
5
5
  export * from "./assessment-request-client-context.js";
6
6
  export * from "./assessment-request-identifiers.js";
7
+ export * from "./assessment-request-issued-credential.js";
7
8
  export * from "./assessment-request-policy-context.js";
8
9
  export * from "./assessment-request.js";
9
10
  export * from "./assessment-timing.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,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,wCAAwC,CAAC;AACvD,cAAc,yBAAyB,CAAC;AACxC,cAAc,wBAAwB,CAAC;AACvC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,gCAAgC,CAAC;AA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c,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
@@ -4,6 +4,7 @@ export * from "./assessment-outcome.js";
4
4
  export * from "./assessment-query.js";
5
5
  export * from "./assessment-request-client-context.js";
6
6
  export * from "./assessment-request-identifiers.js";
7
+ export * from "./assessment-request-issued-credential.js";
7
8
  export * from "./assessment-request-policy-context.js";
8
9
  export * from "./assessment-request.js";
9
10
  export * from "./assessment-timing.js";
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/models/index.ts"],"names":[],"mappings":"AAAA,cAAc,sBAAsB,CAAC;AACrC,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,uBAAuB,CAAC;AACtC,cAA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AAC;AACpC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC;AACrC,cAAc,wBAAwB,CAAC;AACvC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,iBAAiB,CAAC;AAChC,cAAc,2BAA2B,CAAC;AAC1C,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,2BAA2B,CAAC;AAC1C,cAAc,cAAc,CAAC;AAC7B,cAAc,mCAAmC,CAAC;AAClD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,uBAAuB,CAAC;AACtC,cAAc,eAAe,CAAC;AAC9B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,wBAAwB,CAAC;AACvC,cAAc,qBAAqB,CAAC;AACpC,cAAc,oBAAoB,CAAC;AACnC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,kBAAkB,CAAC;AACjC,cAAc,yBAAyB,CAAC;AACxC,cAAc,yBAAyB,CAAC;AACxC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,eAAe,CAAC;AAC9B,cAAc,qBAAqB,CAAC;AACpC,cAAc,aAAa,CAAC;AAC5B,cAAc,aAAa,CAAC;AAC5B,cAAc,gBAAgB,CAAC"}
@@ -21,6 +21,14 @@ export type Risk = {
21
21
  * The recommended action: allow, step_up or review. Your application applies it.
22
22
  */
23
23
  recommendation: Recommendation;
24
+ /**
25
+ * true when the tenant's block threshold is set and score reached it. A provider hook can deny the signup on it; the provider decides and enforces. It does not change recommendation. It is false while blocking is off, the default, and a body from before the flag existed omits it: read absent as false.
26
+ */
27
+ block?: boolean | undefined;
28
+ /**
29
+ * The block threshold this answer used: block is true exactly when score is at least this value. Absent while blocking is off. NoResponse sets it per tenant on request, at or above the review threshold.
30
+ */
31
+ blockThreshold?: number | undefined;
24
32
  /**
25
33
  * How much of the planned evidence answered; it says nothing about risk.
26
34
  */
@@ -1 +1 @@
1
- {"version":3,"file":"risk.d.ts","sourceRoot":"","sources":["../../../src/models/risk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,IAAI,EAAsB,MAAM,WAAW,CAAC;AACrD,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AACtE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,cAAc,EAEf,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,YAAY,EAA8B,MAAM,oBAAoB,CAAC;AAC9E,OAAO,EAAE,WAAW,EAA6B,MAAM,mBAAmB,CAAC;AAC3E,OAAO,EAAE,UAAU,EAA4B,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAAE,WAAW,EAA6B,MAAM,mBAAmB,CAAC;AAE3E;;GAEG;AACH,MAAM,MAAM,IAAI,GAAG;IACjB,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,IAAI,EAAE,IAAI,CAAC;IACX;;OAEG;IACH,cAAc,EAAE,cAAc,CAAC;IAC/B;;OAEG;IACH,UAAU,EAAE,cAAc,CAAC;IAC3B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,uBAAuB,CAAC;IACrC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,WA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U,EAAE,cAAc,CAAC;IAC3B;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,WAAW,EAAE,uBAAuB,CAAC;IACrC;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,UAAU,CAAC,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,QAAQ,EAAE,YAAY,CAAC;IACvB;;OAEG;IACH,OAAO,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kBAAkB,EAAE,CAAC,CAAC,WAAW,CAAC,IAAI,EAAE,OAAO,CAsB3D,CAAC;AAEF,wBAAgB,YAAY,CAC1B,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,IAAI,EAAE,kBAAkB,CAAC,CAM3C"}
@@ -14,6 +14,8 @@ export const Risk$inboundSchema = z.pipe(z.object({
14
14
  score: types.number(),
15
15
  band: Band$inboundSchema,
16
16
  recommendation: Recommendation$inboundSchema,
17
+ block: types.optional(types.boolean()),
18
+ block_threshold: types.optional(types.number()),
17
19
  confidence: RiskConfidence$inboundSchema,
18
20
  policy_version: types.string(),
19
21
  policy_basis: types.literal("heuristic_unvalidated"),
@@ -23,6 +25,7 @@ export const Risk$inboundSchema = z.pipe(z.object({
23
25
  details: types.optional(RiskDetails$inboundSchema),
24
26
  }), z.transform((v) => {
25
27
  return remap$(v, {
28
+ "block_threshold": "blockThreshold",
26
29
  "policy_version": "policyVersion",
27
30
  "policy_basis": "policyBasis",
28
31
  });
@@ -1 +1 @@
1
- {"version":3,"file":"risk.js","sourceRoot":"","sources":["../../../src/models/risk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AA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C,OAAO,CAAC,uBAAuB,CAAC;IACpD,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,wBAAwB,CAAC;IAC1C,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,yBAAyB,CAAC;IAClD,QAAQ,EAAE,0BAA0B;IACpC,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,yBAAyB,CAAC;CACnD,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,MAAM,CAAC,CAAC,EAAE;QACf,iBAAiB,EAAE,gBAAgB;QACnC,gBAAgB,EAAE,eAAe;QACjC,cAAc,EAAE,aAAa;KAC9B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,MAAM,UAAU,YAAY,CAC1B,UAAkB,EACyB;IAC3C,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,kBAAkB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9C,kCAAkC,CACnC,CAAC;AAAA,CACH"}
@@ -7,7 +7,7 @@ export declare class Assessments extends ClientSDK {
7
7
  * Assess identifiers for a signup or gateway decision.
8
8
  *
9
9
  * @remarks
10
- * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. 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.
10
+ * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. risk.block says when your block threshold was reached. 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
  /**
@@ -10,7 +10,7 @@ export class Assessments extends ClientSDK {
10
10
  * Assess identifiers for a signup or gateway decision.
11
11
  *
12
12
  * @remarks
13
- * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. 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.
13
+ * Returns within the deadline (500 ms at most) with a complete, partial or pending assessment: 200 carries complete or partial, 202 carries pending with Location and Retry-After. A pending answer has no recommendation; apply your own fallback for pending, 429, 503 or a timeout. risk.block says when your block threshold was reached. 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.
14
14
  */
15
15
  async create(request, options) {
16
16
  return unwrapAsync(assessmentsCreate(this, request, options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noresponse/node",
3
- "version": "2.0.11",
3
+ "version": "2.0.12",
4
4
  "author": "NoResponse",
5
5
  "bugs": {
6
6
  "url": "https://github.com/noresponsehq/node/issues"