@noresponse/node 8.2.0 → 8.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (66) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/dist/commonjs/funcs/accounts-export.d.ts +1 -1
  3. package/dist/commonjs/funcs/accounts-export.js +1 -1
  4. package/dist/commonjs/funcs/accounts-list-assessments.d.ts +1 -1
  5. package/dist/commonjs/funcs/accounts-list-assessments.js +1 -1
  6. package/dist/commonjs/funcs/assessments-create.d.ts +1 -1
  7. package/dist/commonjs/funcs/assessments-create.js +1 -1
  8. package/dist/commonjs/funcs/assessments-get.d.ts +1 -1
  9. package/dist/commonjs/funcs/assessments-get.js +1 -1
  10. package/dist/commonjs/funcs/assessments-query.d.ts +1 -1
  11. package/dist/commonjs/funcs/assessments-query.js +1 -1
  12. package/dist/commonjs/funcs/assessments-retrieve-version.d.ts +1 -1
  13. package/dist/commonjs/funcs/assessments-retrieve-version.js +1 -1
  14. package/dist/commonjs/funcs/assessments-search.d.ts +1 -1
  15. package/dist/commonjs/funcs/assessments-search.js +1 -1
  16. package/dist/commonjs/lib/config.d.ts +2 -2
  17. package/dist/commonjs/lib/config.js +2 -2
  18. package/dist/commonjs/models/assessment-detail.d.ts +6 -0
  19. package/dist/commonjs/models/assessment-detail.d.ts.map +1 -1
  20. package/dist/commonjs/models/assessment-detail.js +3 -0
  21. package/dist/commonjs/models/assessment-detail.js.map +1 -1
  22. package/dist/commonjs/models/index.d.ts +1 -0
  23. package/dist/commonjs/models/index.d.ts.map +1 -1
  24. package/dist/commonjs/models/index.js +1 -0
  25. package/dist/commonjs/models/index.js.map +1 -1
  26. package/dist/commonjs/models/sent-identifiers.d.ts +43 -0
  27. package/dist/commonjs/models/sent-identifiers.d.ts.map +1 -0
  28. package/dist/commonjs/models/sent-identifiers.js +64 -0
  29. package/dist/commonjs/models/sent-identifiers.js.map +1 -0
  30. package/dist/commonjs/sdk/accounts.d.ts +2 -2
  31. package/dist/commonjs/sdk/accounts.js +2 -2
  32. package/dist/commonjs/sdk/assessments.d.ts +5 -5
  33. package/dist/commonjs/sdk/assessments.js +5 -5
  34. package/dist/esm/funcs/accounts-export.d.ts +1 -1
  35. package/dist/esm/funcs/accounts-export.js +1 -1
  36. package/dist/esm/funcs/accounts-list-assessments.d.ts +1 -1
  37. package/dist/esm/funcs/accounts-list-assessments.js +1 -1
  38. package/dist/esm/funcs/assessments-create.d.ts +1 -1
  39. package/dist/esm/funcs/assessments-create.js +1 -1
  40. package/dist/esm/funcs/assessments-get.d.ts +1 -1
  41. package/dist/esm/funcs/assessments-get.js +1 -1
  42. package/dist/esm/funcs/assessments-query.d.ts +1 -1
  43. package/dist/esm/funcs/assessments-query.js +1 -1
  44. package/dist/esm/funcs/assessments-retrieve-version.d.ts +1 -1
  45. package/dist/esm/funcs/assessments-retrieve-version.js +1 -1
  46. package/dist/esm/funcs/assessments-search.d.ts +1 -1
  47. package/dist/esm/funcs/assessments-search.js +1 -1
  48. package/dist/esm/lib/config.d.ts +2 -2
  49. package/dist/esm/lib/config.js +2 -2
  50. package/dist/esm/models/assessment-detail.d.ts +6 -0
  51. package/dist/esm/models/assessment-detail.d.ts.map +1 -1
  52. package/dist/esm/models/assessment-detail.js +3 -0
  53. package/dist/esm/models/assessment-detail.js.map +1 -1
  54. package/dist/esm/models/index.d.ts +1 -0
  55. package/dist/esm/models/index.d.ts.map +1 -1
  56. package/dist/esm/models/index.js +1 -0
  57. package/dist/esm/models/index.js.map +1 -1
  58. package/dist/esm/models/sent-identifiers.d.ts +43 -0
  59. package/dist/esm/models/sent-identifiers.d.ts.map +1 -0
  60. package/dist/esm/models/sent-identifiers.js +26 -0
  61. package/dist/esm/models/sent-identifiers.js.map +1 -0
  62. package/dist/esm/sdk/accounts.d.ts +2 -2
  63. package/dist/esm/sdk/accounts.js +2 -2
  64. package/dist/esm/sdk/assessments.d.ts +5 -5
  65. package/dist/esm/sdk/assessments.js +5 -5
  66. package/package.json +1 -1
@@ -14,7 +14,7 @@ export class Assessments extends ClientSDK {
14
14
  * Assess identifiers for a signup or gateway decision.
15
15
  *
16
16
  * @remarks
17
- * Assesses one account creation, login or purchase (flow) and answers with the account's one current risk: account.risk.decision is the decision for this flow (allow, step_up, review or block, where block means your block threshold was reached), and detail holds this assessment's own facts. depth sets how long the answer waits for sources: quick waits only for the fast ones (500 ms), full for the whole budget (3000 ms at most); it defaults to full for account_creation and purchase and quick for login. 200 carries complete or partial, 202 carries pending with Location and Retry-After. While the account's first assessment is pending, account is absent: apply your own fallback for that, 429, 503 or a timeout. NoResponse blocks nothing itself; you decide. Requires the assess scope. Idempotency-Key is required and is bound to the body for 24 hours: the same key with the same body replays the latest assessment with Idempotent-Replayed: true and starts no new work; the same key with a different body answers 409 idempotency_key_reused. response_mode defaults to standard; detailed needs the detailed scope.
17
+ * Assesses one account creation, login or purchase (flow) and answers with the account's one current risk: account.risk.decision is the decision for this flow (allow, step_up, review or block, where block means your block threshold was reached), and detail holds this assessment's own facts. depth sets how long the answer waits for sources: quick waits only for the fast ones (500 ms), full for the whole budget (3000 ms at most); it defaults to full for account_creation and purchase and quick for login. 200 carries complete or partial, 202 carries pending with Location and Retry-After. While the account's first assessment is pending, account is absent: apply your own fallback for that, 429, 503 or a timeout. NoResponse blocks nothing itself; you decide. Requires the assess scope. Idempotency-Key is required and is bound to the body for 24 hours: the same key with the same body replays the latest assessment with Idempotent-Replayed: true and starts no new work; the same key with a different body answers 409 idempotency_key_reused. response_mode defaults to standard; detailed needs the detailed scope. The answer leaves out detail.identifiers: you hold what you sent, and a key with the history scope gets them back with GET.
18
18
  */
19
19
  async create(request, options) {
20
20
  return unwrapAsync(assessmentsCreate(this, request, options));
@@ -23,7 +23,7 @@ export class Assessments extends ClientSDK {
23
23
  * Poll the authoritative assessment of one assessment.
24
24
  *
25
25
  * @remarks
26
- * Returns the highest assessment_version, with the account's current risk. Requires the assess or history scope. While status is pending, or partial with a source still running, the response carries Retry-After; poll no faster than it says. Another workspace's assessment, an unknown or expired assessment and a malformed assessment_id all answer 404 not_found. response_mode=detailed needs the detailed scope.
26
+ * Returns the highest assessment_version, with the account's current risk. Requires the assess or history scope. While status is pending, or partial with a source still running, the response carries Retry-After; poll no faster than it says. Another workspace's assessment, an unknown or expired assessment and a malformed assessment_id all answer 404 not_found. response_mode=detailed needs the detailed scope. A key with the history scope also gets detail.identifiers, the identifiers the assessment was sent, exactly as received.
27
27
  */
28
28
  async get(request, options) {
29
29
  return unwrapAsync(assessmentsGet(this, request, options));
@@ -50,7 +50,7 @@ export class Assessments extends ClientSDK {
50
50
  * Page through one account's unexpired assessments.
51
51
  *
52
52
  * @remarks
53
- * History is a POST with account_id in the body so an account identifier stays out of URLs and access logs. Requires the history scope. Read-only and safe to retry. Newest first, each at its latest assessment_version. An account with no assessments answers 200 with empty items. The cursor is opaque and bound to your workspace and the account; a tampered or expired cursor answers 400 invalid_cursor. response_mode=detailed needs the detailed scope.
53
+ * History is a POST with account_id in the body so an account identifier stays out of URLs and access logs. Requires the history scope. Read-only and safe to retry. Newest first, each at its latest assessment_version. An account with no assessments answers 200 with empty items. The cursor is opaque and bound to your workspace and the account; a tampered or expired cursor answers 400 invalid_cursor. response_mode=detailed needs the detailed scope. Each item's identifiers holds the identifiers its assessment was sent, exactly as received.
54
54
  */
55
55
  async query(request, options) {
56
56
  return unwrapResultIterator(assessmentsQuery(this, request, options));
@@ -59,7 +59,7 @@ export class Assessments extends ClientSDK {
59
59
  * Search assessments across this environment
60
60
  *
61
61
  * @remarks
62
- * Search retained assessments created in [from,to), over at most 366 days. Filters use each assessment decision, rather than the current account decision. Results can change between pages. Keep the assessment version to retrieve the exact decision later. This read does not require an idempotency key.
62
+ * Search retained assessments created in [from,to), over at most 366 days. Filters use each assessment decision, rather than the current account decision. Results can change between pages. Keep the assessment version to retrieve the exact decision later. Each item's detail.identifiers holds the identifiers its assessment was sent, exactly as received. This read does not require an idempotency key.
63
63
  */
64
64
  async search(request, options) {
65
65
  return unwrapAsync(assessmentsSearch(this, request, options));
@@ -68,7 +68,7 @@ export class Assessments extends ClientSDK {
68
68
  * Retrieve an exact assessment revision
69
69
  *
70
70
  * @remarks
71
- * Retrieve a retained assessment version with its original decision, policy, flow and depth. This response excludes the current account decision. Current retention and response-mode permissions still apply.
71
+ * Retrieve a retained assessment version with its original decision, policy, flow and depth. This response excludes the current account decision. Current retention and response-mode permissions still apply. detail.identifiers holds the identifiers the assessment was sent, exactly as received.
72
72
  */
73
73
  async retrieveVersion(request, options) {
74
74
  return unwrapAsync(assessmentsRetrieveVersion(this, request, options));
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@noresponse/node",
3
- "version": "8.2.0",
3
+ "version": "8.2.1",
4
4
  "author": "NoResponse",
5
5
  "bugs": {
6
6
  "url": "https://github.com/noresponsehq/node/issues"