@noresponse/node 2.0.19 → 2.0.21

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 (137) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +19 -0
  3. package/dist/commonjs/client.d.ts +27 -0
  4. package/dist/commonjs/client.d.ts.map +1 -1
  5. package/dist/commonjs/client.js +39 -2
  6. package/dist/commonjs/client.js.map +1 -1
  7. package/dist/commonjs/funcs/accounts-get.d.ts +18 -0
  8. package/dist/commonjs/funcs/accounts-get.d.ts.map +1 -0
  9. package/dist/commonjs/funcs/accounts-get.js +153 -0
  10. package/dist/commonjs/funcs/accounts-get.js.map +1 -0
  11. package/dist/commonjs/funcs/accounts-list-assessments.d.ts +21 -0
  12. package/dist/commonjs/funcs/accounts-list-assessments.d.ts.map +1 -0
  13. package/dist/commonjs/funcs/accounts-list-assessments.js +183 -0
  14. package/dist/commonjs/funcs/accounts-list-assessments.js.map +1 -0
  15. package/dist/commonjs/index.d.ts +2 -2
  16. package/dist/commonjs/index.d.ts.map +1 -1
  17. package/dist/commonjs/index.js +2 -1
  18. package/dist/commonjs/index.js.map +1 -1
  19. package/dist/commonjs/lib/config.d.ts +2 -2
  20. package/dist/commonjs/lib/config.js +2 -2
  21. package/dist/commonjs/models/account-decision.d.ts +18 -0
  22. package/dist/commonjs/models/account-decision.d.ts.map +1 -0
  23. package/dist/commonjs/models/account-decision.js +49 -0
  24. package/dist/commonjs/models/account-decision.js.map +1 -0
  25. package/dist/commonjs/models/account-decisions-by-flow.d.ts +25 -0
  26. package/dist/commonjs/models/account-decisions-by-flow.d.ts.map +1 -0
  27. package/dist/commonjs/models/account-decisions-by-flow.js +50 -0
  28. package/dist/commonjs/models/account-decisions-by-flow.js.map +1 -0
  29. package/dist/commonjs/models/account-risk-reason.d.ts +20 -0
  30. package/dist/commonjs/models/account-risk-reason.d.ts.map +1 -0
  31. package/dist/commonjs/models/account-risk-reason.js +52 -0
  32. package/dist/commonjs/models/account-risk-reason.js.map +1 -0
  33. package/dist/commonjs/models/account-risk.d.ts +23 -0
  34. package/dist/commonjs/models/account-risk.d.ts.map +1 -0
  35. package/dist/commonjs/models/account-risk.js +53 -0
  36. package/dist/commonjs/models/account-risk.js.map +1 -0
  37. package/dist/commonjs/models/account.d.ts +35 -0
  38. package/dist/commonjs/models/account.d.ts.map +1 -0
  39. package/dist/commonjs/models/account.js +63 -0
  40. package/dist/commonjs/models/account.js.map +1 -0
  41. package/dist/commonjs/models/assessment-list.d.ts +1 -1
  42. package/dist/commonjs/models/assessment-query.d.ts +1 -1
  43. package/dist/commonjs/models/assessment-request.d.ts +1 -1
  44. package/dist/commonjs/models/assessment.d.ts +1 -1
  45. package/dist/commonjs/models/index.d.ts +5 -0
  46. package/dist/commonjs/models/index.d.ts.map +1 -1
  47. package/dist/commonjs/models/index.js +5 -0
  48. package/dist/commonjs/models/index.js.map +1 -1
  49. package/dist/commonjs/models/key-rotation.d.ts +2 -2
  50. package/dist/commonjs/models/operations/get-account.d.ts +27 -0
  51. package/dist/commonjs/models/operations/get-account.d.ts.map +1 -0
  52. package/dist/commonjs/models/operations/get-account.js +67 -0
  53. package/dist/commonjs/models/operations/get-account.js.map +1 -0
  54. package/dist/commonjs/models/operations/index.d.ts +2 -0
  55. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  56. package/dist/commonjs/models/operations/index.js +2 -0
  57. package/dist/commonjs/models/operations/index.js.map +1 -1
  58. package/dist/commonjs/models/operations/list-account-assessments.d.ts +42 -0
  59. package/dist/commonjs/models/operations/list-account-assessments.d.ts.map +1 -0
  60. package/dist/commonjs/models/operations/list-account-assessments.js +71 -0
  61. package/dist/commonjs/models/operations/list-account-assessments.js.map +1 -0
  62. package/dist/commonjs/sdk/accounts.d.ts +22 -0
  63. package/dist/commonjs/sdk/accounts.d.ts.map +1 -0
  64. package/dist/commonjs/sdk/accounts.js +30 -0
  65. package/dist/commonjs/sdk/accounts.js.map +1 -0
  66. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  67. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  68. package/dist/commonjs/sdk/sdk.js +5 -0
  69. package/dist/commonjs/sdk/sdk.js.map +1 -1
  70. package/dist/esm/client.d.ts +27 -0
  71. package/dist/esm/client.d.ts.map +1 -1
  72. package/dist/esm/client.js +37 -1
  73. package/dist/esm/client.js.map +1 -1
  74. package/dist/esm/funcs/accounts-get.d.ts +18 -0
  75. package/dist/esm/funcs/accounts-get.d.ts.map +1 -0
  76. package/dist/esm/funcs/accounts-get.js +117 -0
  77. package/dist/esm/funcs/accounts-get.js.map +1 -0
  78. package/dist/esm/funcs/accounts-list-assessments.d.ts +21 -0
  79. package/dist/esm/funcs/accounts-list-assessments.d.ts.map +1 -0
  80. package/dist/esm/funcs/accounts-list-assessments.js +147 -0
  81. package/dist/esm/funcs/accounts-list-assessments.js.map +1 -0
  82. package/dist/esm/index.d.ts +2 -2
  83. package/dist/esm/index.d.ts.map +1 -1
  84. package/dist/esm/index.js +1 -1
  85. package/dist/esm/index.js.map +1 -1
  86. package/dist/esm/lib/config.d.ts +2 -2
  87. package/dist/esm/lib/config.js +2 -2
  88. package/dist/esm/models/account-decision.d.ts +18 -0
  89. package/dist/esm/models/account-decision.d.ts.map +1 -0
  90. package/dist/esm/models/account-decision.js +13 -0
  91. package/dist/esm/models/account-decision.js.map +1 -0
  92. package/dist/esm/models/account-decisions-by-flow.d.ts +25 -0
  93. package/dist/esm/models/account-decisions-by-flow.d.ts.map +1 -0
  94. package/dist/esm/models/account-decisions-by-flow.js +13 -0
  95. package/dist/esm/models/account-decisions-by-flow.js.map +1 -0
  96. package/dist/esm/models/account-risk-reason.d.ts +20 -0
  97. package/dist/esm/models/account-risk-reason.d.ts.map +1 -0
  98. package/dist/esm/models/account-risk-reason.js +15 -0
  99. package/dist/esm/models/account-risk-reason.js.map +1 -0
  100. package/dist/esm/models/account-risk.d.ts +23 -0
  101. package/dist/esm/models/account-risk.d.ts.map +1 -0
  102. package/dist/esm/models/account-risk.js +16 -0
  103. package/dist/esm/models/account-risk.js.map +1 -0
  104. package/dist/esm/models/account.d.ts +35 -0
  105. package/dist/esm/models/account.d.ts.map +1 -0
  106. package/dist/esm/models/account.js +26 -0
  107. package/dist/esm/models/account.js.map +1 -0
  108. package/dist/esm/models/assessment-list.d.ts +1 -1
  109. package/dist/esm/models/assessment-query.d.ts +1 -1
  110. package/dist/esm/models/assessment-request.d.ts +1 -1
  111. package/dist/esm/models/assessment.d.ts +1 -1
  112. package/dist/esm/models/index.d.ts +5 -0
  113. package/dist/esm/models/index.d.ts.map +1 -1
  114. package/dist/esm/models/index.js +5 -0
  115. package/dist/esm/models/index.js.map +1 -1
  116. package/dist/esm/models/key-rotation.d.ts +2 -2
  117. package/dist/esm/models/operations/get-account.d.ts +27 -0
  118. package/dist/esm/models/operations/get-account.d.ts.map +1 -0
  119. package/dist/esm/models/operations/get-account.js +29 -0
  120. package/dist/esm/models/operations/get-account.js.map +1 -0
  121. package/dist/esm/models/operations/index.d.ts +2 -0
  122. package/dist/esm/models/operations/index.d.ts.map +1 -1
  123. package/dist/esm/models/operations/index.js +2 -0
  124. package/dist/esm/models/operations/index.js.map +1 -1
  125. package/dist/esm/models/operations/list-account-assessments.d.ts +42 -0
  126. package/dist/esm/models/operations/list-account-assessments.d.ts.map +1 -0
  127. package/dist/esm/models/operations/list-account-assessments.js +33 -0
  128. package/dist/esm/models/operations/list-account-assessments.js.map +1 -0
  129. package/dist/esm/sdk/accounts.d.ts +22 -0
  130. package/dist/esm/sdk/accounts.d.ts.map +1 -0
  131. package/dist/esm/sdk/accounts.js +26 -0
  132. package/dist/esm/sdk/accounts.js.map +1 -0
  133. package/dist/esm/sdk/sdk.d.ts +3 -0
  134. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  135. package/dist/esm/sdk/sdk.js +5 -0
  136. package/dist/esm/sdk/sdk.js.map +1 -1
  137. package/package.json +1 -1
@@ -0,0 +1,18 @@
1
+ import { NoResponseCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
4
+ import * as errors from "../models/errors/index.js";
5
+ import { NoResponseError } from "../models/errors/no-response-error.js";
6
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
7
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ /**
12
+ * Read an account's one current risk.
13
+ *
14
+ * @remarks
15
+ * An account is the account_id you send with your assessments. Its current risk is the risk of its latest assessment with a decision (status complete or partial), scored as GET /v1/assessments/{assessment_id} scores that assessment, with a decision for each flow. Every assessment updates its account: once an assessment completes, the account carries its risk. Requires the history scope. Read-only and safe to retry. An account with no unexpired assessment that has a decision answers 404 not_found, and a malformed account_id answers 400 invalid_request.
16
+ */
17
+ export declare function accountsGet(client: NoResponseCore, request: operations.GetAccountRequest, options?: RequestOptions): APIPromise<Result<operations.GetAccountResponse, errors.BadRequestError | errors.AuthenticationError | errors.PermissionDeniedError | errors.NotFoundError | errors.ConflictError | errors.RateLimitError | NoResponseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=accounts-get.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts-get.d.ts","sourceRoot":"","sources":["../../../src/funcs/accounts-get.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,WAAW,CACzB,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,UAAU,CAAC,iBAAiB,EACrC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,kBAAkB,EAC3B,MAAM,CAAC,eAAe,GACtB,MAAM,CAAC,mBAAmB,GAC1B,MAAM,CAAC,qBAAqB,GAC5B,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,cAAc,GACrB,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,117 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { encodeSimple } from "../lib/encodings.js";
3
+ import { matchStatusCode } from "../lib/http.js";
4
+ import * as M from "../lib/matchers.js";
5
+ import { compactMap } from "../lib/primitives.js";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
8
+ import { pathToFunc } from "../lib/url.js";
9
+ import * as errors from "../models/errors/index.js";
10
+ import * as operations from "../models/operations/index.js";
11
+ import { APIPromise } from "../types/async.js";
12
+ /**
13
+ * Read an account's one current risk.
14
+ *
15
+ * @remarks
16
+ * An account is the account_id you send with your assessments. Its current risk is the risk of its latest assessment with a decision (status complete or partial), scored as GET /v1/assessments/{assessment_id} scores that assessment, with a decision for each flow. Every assessment updates its account: once an assessment completes, the account carries its risk. Requires the history scope. Read-only and safe to retry. An account with no unexpired assessment that has a decision answers 404 not_found, and a malformed account_id answers 400 invalid_request.
17
+ */
18
+ export function accountsGet(client, request, options) {
19
+ return new APIPromise($do(client, request, options));
20
+ }
21
+ async function $do(client, request, options) {
22
+ const parsed = safeParse(request, (value) => z.parse(operations.GetAccountRequest$outboundSchema, value), "Input validation failed");
23
+ if (!parsed.ok) {
24
+ return [parsed, { status: "invalid" }];
25
+ }
26
+ const payload = parsed.value;
27
+ const body = null;
28
+ const pathParams = {
29
+ account_id: encodeSimple("account_id", payload.account_id, {
30
+ explode: false,
31
+ charEncoding: "percent",
32
+ }),
33
+ };
34
+ const path = pathToFunc("/v1/accounts/{account_id}")(pathParams);
35
+ const headers = new Headers(compactMap({
36
+ Accept: "application/json",
37
+ }));
38
+ const secConfig = await extractSecurity(client._options.apiKey);
39
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
40
+ const requestSecurity = resolveGlobalSecurity(securityInput);
41
+ const context = {
42
+ options: client._options,
43
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
44
+ operationID: "getAccount",
45
+ oAuth2Scopes: null,
46
+ resolvedSecurity: requestSecurity,
47
+ securitySource: client._options.apiKey,
48
+ retryConfig: options?.retries
49
+ || client._options.retryConfig
50
+ || {
51
+ strategy: "backoff",
52
+ backoff: {
53
+ initialInterval: 500,
54
+ maxInterval: 8000,
55
+ exponent: 2,
56
+ maxElapsedTime: 30000,
57
+ },
58
+ retryConnectionErrors: true,
59
+ }
60
+ || { strategy: "none" },
61
+ retryCodes: options?.retryCodes || ["408", "429", "5XX"],
62
+ };
63
+ const requestRes = client._createRequest(context, {
64
+ security: requestSecurity,
65
+ method: "GET",
66
+ baseURL: options?.serverURL,
67
+ path: path,
68
+ headers: headers,
69
+ body: body,
70
+ userAgent: client._options.userAgent,
71
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
72
+ }, options);
73
+ if (!requestRes.ok) {
74
+ return [requestRes, { status: "invalid" }];
75
+ }
76
+ const req = requestRes.value;
77
+ const doResult = await client._do(req, {
78
+ context,
79
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
80
+ retryConfig: context.retryConfig,
81
+ retryCodes: context.retryCodes,
82
+ });
83
+ if (!doResult.ok) {
84
+ return [doResult, { status: "request-error", request: req }];
85
+ }
86
+ const response = doResult.value;
87
+ const responseFields = {
88
+ HttpMeta: { Response: response, Request: req },
89
+ };
90
+ const [result] = await M.match(M.json(200, operations.GetAccountResponse$inboundSchema, {
91
+ hdrs: true,
92
+ key: "Result",
93
+ }), M.jsonErr(400, errors.BadRequestError$inboundSchema, {
94
+ ctype: "application/problem+json",
95
+ hdrs: true,
96
+ }), M.jsonErr(401, errors.AuthenticationError$inboundSchema, {
97
+ ctype: "application/problem+json",
98
+ hdrs: true,
99
+ }), M.jsonErr(403, errors.PermissionDeniedError$inboundSchema, {
100
+ ctype: "application/problem+json",
101
+ hdrs: true,
102
+ }), M.jsonErr(404, errors.NotFoundError$inboundSchema, {
103
+ ctype: "application/problem+json",
104
+ hdrs: true,
105
+ }), M.jsonErr(409, errors.ConflictError$inboundSchema, {
106
+ ctype: "application/problem+json",
107
+ hdrs: true,
108
+ }), M.jsonErr(429, errors.RateLimitError$inboundSchema, {
109
+ ctype: "application/problem+json",
110
+ hdrs: true,
111
+ }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
112
+ if (!result.ok) {
113
+ return [result, { status: "complete", request: req, response }];
114
+ }
115
+ return [result, { status: "complete", request: req, response }];
116
+ }
117
+ //# sourceMappingURL=accounts-get.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts-get.js","sourceRoot":"","sources":["../../../src/funcs/accounts-get.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,YAAY,EAAE,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EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
@@ -0,0 +1,21 @@
1
+ import { NoResponseCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/http-client-errors.js";
4
+ import * as errors from "../models/errors/index.js";
5
+ import { NoResponseError } from "../models/errors/no-response-error.js";
6
+ import { ResponseValidationError } from "../models/errors/response-validation-error.js";
7
+ import { SDKValidationError } from "../models/errors/sdk-validation-error.js";
8
+ import * as operations from "../models/operations/index.js";
9
+ import { APIPromise } from "../types/async.js";
10
+ import { Result } from "../types/fp.js";
11
+ import { PageIterator } from "../types/operations.js";
12
+ /**
13
+ * Page through one account's unexpired assessments.
14
+ *
15
+ * @remarks
16
+ * The account's history: the same page as POST /v1/assessments/query for this account_id, newest first, each at its latest assessment_version. Requires the history scope. Read-only and safe to retry. An account with no assessments answers 200 with empty items. The cursor is opaque and bound to your tenant and the account; a tampered or expired cursor answers 400 invalid_cursor. response_mode=detailed needs the detailed scope. The account_id travels in the URL; use POST /v1/assessments/query to keep it out of access logs.
17
+ */
18
+ export declare function accountsListAssessments(client: NoResponseCore, request: operations.ListAccountAssessmentsRequest, options?: RequestOptions): APIPromise<PageIterator<Result<operations.ListAccountAssessmentsResponse, errors.BadRequestError | errors.AuthenticationError | errors.PermissionDeniedError | errors.NotFoundError | errors.ConflictError | errors.RateLimitError | NoResponseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>, {
19
+ cursor: string;
20
+ }>>;
21
+ //# sourceMappingURL=accounts-list-assessments.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts-list-assessments.d.ts","sourceRoot":"","sources":["../../../src/funcs/accounts-list-assessments.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAM5C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,wCAAwC,CAAC;AAChD,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAC;AACxE,OAAO,EAAE,uBAAuB,EAAE,MAAM,+CAA+C,CAAC;AACxF,OAAO,EAAE,kBAAkB,EAAE,MAAM,0CAA0C,CAAC;AAC9E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EAGL,YAAY,EAEb,MAAM,wBAAwB,CAAC;AAEhC;;;;;GAKG;AACH,wBAAgB,uBAAuB,CACrC,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,UAAU,CAAC,6BAA6B,EACjD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,YAAY,CACV,MAAM,CACJ,UAAU,CAAC,8BAA8B,EACvC,MAAM,CAAC,eAAe,GACtB,MAAM,CAAC,mBAAmB,GAC1B,MAAM,CAAC,qBAAqB,GAC5B,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,aAAa,GACpB,MAAM,CAAC,cAAc,GACrB,eAAe,GACf,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,EACD;IAAE,MAAM,EAAE,MAAM,CAAA;CAAE,CACnB,CACF,CAMA"}
@@ -0,0 +1,147 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { encodeFormQuery, encodeSimple } from "../lib/encodings.js";
3
+ import { matchStatusCode } from "../lib/http.js";
4
+ import * as M from "../lib/matchers.js";
5
+ import { compactMap } from "../lib/primitives.js";
6
+ import { safeParse } from "../lib/schemas.js";
7
+ import { extractSecurity, resolveGlobalSecurity } from "../lib/security.js";
8
+ import { pathToFunc } from "../lib/url.js";
9
+ import * as errors from "../models/errors/index.js";
10
+ import * as operations from "../models/operations/index.js";
11
+ import { APIPromise } from "../types/async.js";
12
+ import { createPageIterator, haltIterator, } from "../types/operations.js";
13
+ /**
14
+ * Page through one account's unexpired assessments.
15
+ *
16
+ * @remarks
17
+ * The account's history: the same page as POST /v1/assessments/query for this account_id, newest first, each at its latest assessment_version. Requires the history scope. Read-only and safe to retry. An account with no assessments answers 200 with empty items. The cursor is opaque and bound to your tenant and the account; a tampered or expired cursor answers 400 invalid_cursor. response_mode=detailed needs the detailed scope. The account_id travels in the URL; use POST /v1/assessments/query to keep it out of access logs.
18
+ */
19
+ export function accountsListAssessments(client, request, options) {
20
+ return new APIPromise($do(client, request, options));
21
+ }
22
+ async function $do(client, request, options) {
23
+ const parsed = safeParse(request, (value) => z.parse(operations.ListAccountAssessmentsRequest$outboundSchema, value), "Input validation failed");
24
+ if (!parsed.ok) {
25
+ return [haltIterator(parsed), { status: "invalid" }];
26
+ }
27
+ const payload = parsed.value;
28
+ const body = null;
29
+ const pathParams = {
30
+ account_id: encodeSimple("account_id", payload.account_id, {
31
+ explode: false,
32
+ charEncoding: "percent",
33
+ }),
34
+ };
35
+ const path = pathToFunc("/v1/accounts/{account_id}/assessments")(pathParams);
36
+ const query = encodeFormQuery({
37
+ "cursor": payload.cursor,
38
+ "limit": payload.limit,
39
+ "response_mode": payload.response_mode,
40
+ });
41
+ const headers = new Headers(compactMap({
42
+ Accept: "application/json",
43
+ }));
44
+ const secConfig = await extractSecurity(client._options.apiKey);
45
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
46
+ const requestSecurity = resolveGlobalSecurity(securityInput);
47
+ const context = {
48
+ options: client._options,
49
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
50
+ operationID: "listAccountAssessments",
51
+ oAuth2Scopes: null,
52
+ resolvedSecurity: requestSecurity,
53
+ securitySource: client._options.apiKey,
54
+ retryConfig: options?.retries
55
+ || client._options.retryConfig
56
+ || {
57
+ strategy: "backoff",
58
+ backoff: {
59
+ initialInterval: 500,
60
+ maxInterval: 8000,
61
+ exponent: 2,
62
+ maxElapsedTime: 30000,
63
+ },
64
+ retryConnectionErrors: true,
65
+ }
66
+ || { strategy: "none" },
67
+ retryCodes: options?.retryCodes || ["408", "429", "5XX"],
68
+ };
69
+ const requestRes = client._createRequest(context, {
70
+ security: requestSecurity,
71
+ method: "GET",
72
+ baseURL: options?.serverURL,
73
+ path: path,
74
+ headers: headers,
75
+ query: query,
76
+ body: body,
77
+ userAgent: client._options.userAgent,
78
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
79
+ }, options);
80
+ if (!requestRes.ok) {
81
+ return [haltIterator(requestRes), { status: "invalid" }];
82
+ }
83
+ const req = requestRes.value;
84
+ const doResult = await client._do(req, {
85
+ context,
86
+ isErrorStatusCode: (statusCode) => matchStatusCode({ status: statusCode }, ["4XX", "5XX"]),
87
+ retryConfig: context.retryConfig,
88
+ retryCodes: context.retryCodes,
89
+ });
90
+ if (!doResult.ok) {
91
+ return [haltIterator(doResult), { status: "request-error", request: req }];
92
+ }
93
+ const response = doResult.value;
94
+ const responseFields = {
95
+ HttpMeta: { Response: response, Request: req },
96
+ };
97
+ const [result, raw] = await M.match(M.json(200, operations.ListAccountAssessmentsResponse$inboundSchema, {
98
+ hdrs: true,
99
+ key: "Result",
100
+ }), M.jsonErr(400, errors.BadRequestError$inboundSchema, {
101
+ ctype: "application/problem+json",
102
+ hdrs: true,
103
+ }), M.jsonErr(401, errors.AuthenticationError$inboundSchema, {
104
+ ctype: "application/problem+json",
105
+ hdrs: true,
106
+ }), M.jsonErr(403, errors.PermissionDeniedError$inboundSchema, {
107
+ ctype: "application/problem+json",
108
+ hdrs: true,
109
+ }), M.jsonErr(404, errors.NotFoundError$inboundSchema, {
110
+ ctype: "application/problem+json",
111
+ hdrs: true,
112
+ }), M.jsonErr(409, errors.ConflictError$inboundSchema, {
113
+ ctype: "application/problem+json",
114
+ hdrs: true,
115
+ }), M.jsonErr(429, errors.RateLimitError$inboundSchema, {
116
+ ctype: "application/problem+json",
117
+ hdrs: true,
118
+ }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
119
+ if (!result.ok) {
120
+ return [haltIterator(result), {
121
+ status: "complete",
122
+ request: req,
123
+ response,
124
+ }];
125
+ }
126
+ const nextFunc = (responseData) => {
127
+ const nextCursor = responseData.next_cursor;
128
+ if (typeof nextCursor !== "string") {
129
+ return { next: () => null };
130
+ }
131
+ if (nextCursor.trim() === "") {
132
+ return { next: () => null };
133
+ }
134
+ const nextVal = () => accountsListAssessments(client, {
135
+ ...request,
136
+ cursor: nextCursor,
137
+ }, options);
138
+ return { next: nextVal, "~next": { cursor: nextCursor } };
139
+ };
140
+ const page = { ...result, ...nextFunc(raw) };
141
+ return [{ ...page, ...createPageIterator(page, (v) => !v.ok) }, {
142
+ status: "complete",
143
+ request: req,
144
+ response,
145
+ }];
146
+ }
147
+ //# sourceMappingURL=accounts-list-assessments.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts-list-assessments.js","sourceRoot":"","sources":["../../../src/funcs/accounts-list-assessments.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,eAAe,EAAE,YAAY,EAAE,MAAM,qBAAqB,CAAC;AACpE,OAAO,EAAE,eAAe,EAAE,MAAM,gBAAgB,CAAC;AACjD,OAAO,KAAK,CAAC,MAAM,oBAAoB,CAAC;AACxC,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAAE,eAAe,EAAE,qBAAqB,EAAE,MAAM,oBAAoB,CAAC;AAC5E,OAAO,EAAE,UAAU,EAAE,MAAM,eAA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AAE,CAAC;QACH,MAAM,UAAU,GAAI,YAA0C,CAAC,WAAW,CAAC;QAC3E,IAAI,OAAO,UAAU,KAAK,QAAQ,EAAE,CAAC;YACnC,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;QAC9B,CAAC;QACD,IAAI,UAAU,CAAC,IAAI,EAAE,KAAK,EAAE,EAAE,CAAC;YAC7B,OAAO,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC,IAAI,EAAE,CAAC;QAC9B,CAAC;QAED,MAAM,OAAO,GAAG,GAAG,EAAE,CACnB,uBAAuB,CACrB,MAAM,EACN;YACE,GAAG,OAAO;YACV,MAAM,EAAE,UAAU;SACnB,EACD,OAAO,CACR,CAAC;QAEJ,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,EAAE,CAAC;IAAA,CAC3D,CAAC;IAEF,MAAM,IAAI,GAAG,EAAE,GAAG,MAAM,EAAE,GAAG,QAAQ,CAAC,GAAG,CAAC,EAAE,CAAC;IAC7C,OAAO,CAAC,EAAE,GAAG,IAAI,EAAE,GAAG,kBAAkB,CAAC,IAAI,EAAE,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE;YAC9D,MAAM,EAAE,UAAU;YAClB,OAAO,EAAE,GAAG;YACZ,QAAQ;SACT,CAAC,CAAC;AAAA,CACJ"}
@@ -2,7 +2,7 @@
2
2
  * @noresponse/node entry point. Hand-written (listed in .genignore); the
3
3
  * generated client lives under ./sdk, ./funcs, ./models and ./lib.
4
4
  */
5
- export { NoResponse, Assessments, Keys, WebhookEndpoints, Integrations, DEFAULT_BASE_URL, DEFAULT_TIMEOUT_MS, type NoResponseOptions, type CreateOptions, type GetOptions, type AssessmentPage, type ResponseMeta, type WithMeta, type WaitOptions, } from "./client.js";
5
+ export { NoResponse, Assessments, Accounts, Keys, WebhookEndpoints, Integrations, DEFAULT_BASE_URL, DEFAULT_TIMEOUT_MS, type NoResponseOptions, type CreateOptions, type GetOptions, type ListAssessmentsOptions, type AssessmentPage, type ResponseMeta, type WithMeta, type WaitOptions, } from "./client.js";
6
6
  export * from "./errors.js";
7
7
  export { constructEvent, verificationResponse, isExpiredEvent, WebhookVerificationError, DEFAULT_TOLERANCE_SECONDS, type WebhookEvent, type AssessmentUpdatedEvent, type AssessmentExpiredEvent, type EndpointVerificationEvent, type AssessmentExpired, type EndpointVerification, type ConstructEventOptions, type HeaderInput, type WebhookSecrets, type WebhookErrorCode, } from "./webhooks.js";
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";
@@ -10,7 +10,7 @@ export { fromAuth0, fromClerk, fromCognito, fromEntra, fromFirebase, fromKeycloa
10
10
  export { DEFAULT_WAIT_TIMEOUT_MS, MIN_POLL_INTERVAL_MS } from "./wait.js";
11
11
  export { hashIssuedCredential } from "./issued-credential.js";
12
12
  export * from "./models/index.js";
13
- export type { CreateAssessmentRequest, GetAssessmentRequest, RecordAssessmentOutcomeRequest } from "./models/operations/index.js";
13
+ export type { CreateAssessmentRequest, GetAccountRequest, GetAssessmentRequest, ListAccountAssessmentsRequest, RecordAssessmentOutcomeRequest, } from "./models/operations/index.js";
14
14
  export { SDK_METADATA, ServerList, type SDKOptions } from "./lib/config.js";
15
15
  export { HTTPClient, type Fetcher, type HTTPClientOptions } from "./lib/http.js";
16
16
  export type { Logger } from "./lib/logger.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,YAAY,EACZ,gBA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,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,EACV,uBAAuB,EACvB,iBAAiB,EACjB,oBAAoB,EACpB,6BAA6B,EAC7B,8BAA8B,GAC/B,MAAM,8BAA8B,CAAC;AACtC,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
@@ -2,7 +2,7 @@
2
2
  * @noresponse/node entry point. Hand-written (listed in .genignore); the
3
3
  * generated client lives under ./sdk, ./funcs, ./models and ./lib.
4
4
  */
5
- export { NoResponse, Assessments, Keys, WebhookEndpoints, Integrations, DEFAULT_BASE_URL, DEFAULT_TIMEOUT_MS, } from "./client.js";
5
+ export { NoResponse, Assessments, Accounts, Keys, WebhookEndpoints, Integrations, DEFAULT_BASE_URL, DEFAULT_TIMEOUT_MS, } from "./client.js";
6
6
  export * from "./errors.js";
7
7
  export { constructEvent, verificationResponse, isExpiredEvent, WebhookVerificationError, DEFAULT_TOLERANCE_SECONDS, } from "./webhooks.js";
8
8
  export { handleLateResult, lateResultAction, clerkActions, workosActions, auth0Actions, ProviderActionError, DEFAULT_LATE_RESULT_POLICY, } from "./late-results.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,YAAY,EACZ,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"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EACL,UAAU,EACV,WAAW,EACX,QAAQ,EACR,IAAI,EACJ,gBAAgB,EAChB,YAAY,EACZ,gBAAgB,EAChB,kBAAkB,GASnB,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;AAQlC,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"}
@@ -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.19";
34
+ readonly sdkVersion: "2.0.21";
35
35
  readonly genVersion: "internal";
36
- readonly userAgent: "noresponse-sdk/typescript 2.0.19 internal 1 @noresponse/node";
36
+ readonly userAgent: "noresponse-sdk/typescript 2.0.21 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.19",
27
+ sdkVersion: "2.0.21",
28
28
  genVersion: "internal",
29
- userAgent: "noresponse-sdk/typescript 2.0.19 internal 1 @noresponse/node",
29
+ userAgent: "noresponse-sdk/typescript 2.0.21 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
+ import { OpenEnum } from "../types/enums.js";
3
+ /**
4
+ * block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it.
5
+ */
6
+ export declare const AccountDecision: {
7
+ readonly Allow: "allow";
8
+ readonly StepUp: "step_up";
9
+ readonly Review: "review";
10
+ readonly Block: "block";
11
+ };
12
+ /**
13
+ * block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it.
14
+ */
15
+ export type AccountDecision = OpenEnum<typeof AccountDecision>;
16
+ /** @internal */
17
+ export declare const AccountDecision$inboundSchema: z.ZodMiniType<AccountDecision, unknown>;
18
+ //# sourceMappingURL=account-decision.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-decision.d.ts","sourceRoot":"","sources":["../../../src/models/account-decision.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,eAAe;;;;;CAKlB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,eAAe,GAAG,QAAQ,CAAC,OAAO,eAAe,CAAC,CAAC;AAE/D,gBAAgB;AAChB,eAAO,MAAM,6BAA6B,EAAE,CAAC,CAAC,WAAW,CACvD,eAAe,EACf,OAAO,CACmC,CAAC"}
@@ -0,0 +1,13 @@
1
+ import * as openEnums from "../types/enums.js";
2
+ /**
3
+ * block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it.
4
+ */
5
+ export const AccountDecision = {
6
+ Allow: "allow",
7
+ StepUp: "step_up",
8
+ Review: "review",
9
+ Block: "block",
10
+ };
11
+ /** @internal */
12
+ export const AccountDecision$inboundSchema = openEnums.inboundSchema(AccountDecision);
13
+ //# sourceMappingURL=account-decision.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-decision.js","sourceRoot":"","sources":["../../../src/models/account-decision.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,SAAS,MAAM,mBAAmB,CAAC;AAG/C;;GAEG;AACH,MAAM,CAAC,MAAM,eAAe,GAAG;IAC7B,KAAK,EAAE,OAAO;IACd,MAAM,EAAE,SAAS;IACjB,MAAM,EAAE,QAAQ;IAChB,KAAK,EAAE,OAAO;CACN,CAAC;AAMX,gBAAgB;AAChB,MAAM,CAAC,MAAM,6BAA6B,GAGtC,SAAS,CAAC,aAAa,CAAC,eAAe,CAAC,CAAC"}
@@ -0,0 +1,25 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { AccountDecision } from "./account-decision.js";
4
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
+ /**
6
+ * The decision for each flow. Every flow uses the tenant's signup thresholds today, so all three equal risk.decision.
7
+ */
8
+ export type AccountDecisionsByFlow = {
9
+ /**
10
+ * block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it.
11
+ */
12
+ signup: AccountDecision;
13
+ /**
14
+ * block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it.
15
+ */
16
+ login: AccountDecision;
17
+ /**
18
+ * block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it.
19
+ */
20
+ purchase: AccountDecision;
21
+ };
22
+ /** @internal */
23
+ export declare const AccountDecisionsByFlow$inboundSchema: z.ZodMiniType<AccountDecisionsByFlow, unknown>;
24
+ export declare function accountDecisionsByFlowFromJSON(jsonString: string): SafeParseResult<AccountDecisionsByFlow, SDKValidationError>;
25
+ //# sourceMappingURL=account-decisions-by-flow.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-decisions-by-flow.d.ts","sourceRoot":"","sources":["../../../src/models/account-decisions-by-flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAC3D,OAAO,EACL,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,MAAM,EAAE,eAAe,CAAC;IACxB;;OAEG;IACH,KAAK,EAAE,eAAe,CAAC;IACvB;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,WAAW,CAC9D,sBAAsB,EACtB,OAAO,CAKP,CAAC;AAEH,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
@@ -0,0 +1,13 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { safeParse } from "../lib/schemas.js";
3
+ import { AccountDecision$inboundSchema, } from "./account-decision.js";
4
+ /** @internal */
5
+ export const AccountDecisionsByFlow$inboundSchema = z.object({
6
+ signup: AccountDecision$inboundSchema,
7
+ login: AccountDecision$inboundSchema,
8
+ purchase: AccountDecision$inboundSchema,
9
+ });
10
+ export function accountDecisionsByFlowFromJSON(jsonString) {
11
+ return safeParse(jsonString, (x) => AccountDecisionsByFlow$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountDecisionsByFlow' from JSON`);
12
+ }
13
+ //# sourceMappingURL=account-decisions-by-flow.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-decisions-by-flow.js","sourceRoot":"","sources":["../../../src/models/account-decisions-by-flow.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAEL,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAqB/B,gBAAgB;AAChB,MAAM,CAAC,MAAM,oCAAoC,GAG7C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,6BAA6B;IACrC,KAAK,EAAE,6BAA6B;IACpC,QAAQ,EAAE,6BAA6B;CACxC,CAAC,CAAC;AAEH,MAAM,UAAU,8BAA8B,CAC5C,UAAkB,EAC2C;IAC7D,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,oCAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,CAAC;AAAA,CACH"}
@@ -0,0 +1,20 @@
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 { ReasonCode } from "./reason-code.js";
5
+ import { ReasonIdentifier } from "./reason-identifier.js";
6
+ export type AccountRiskReason = {
7
+ /**
8
+ * A stable reason code. New codes may appear; ignore any you do not know.
9
+ */
10
+ code: ReasonCode;
11
+ weight: number;
12
+ /**
13
+ * 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
+ */
15
+ identifier?: ReasonIdentifier | undefined;
16
+ };
17
+ /** @internal */
18
+ export declare const AccountRiskReason$inboundSchema: z.ZodMiniType<AccountRiskReason, unknown>;
19
+ export declare function accountRiskReasonFromJSON(jsonString: string): SafeParseResult<AccountRiskReason, SDKValidationError>;
20
+ //# sourceMappingURL=account-risk-reason.d.ts.map
@@ -0,0 +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,EAAE,UAAU,EAA4B,MAAM,kBAAkB,CAAC;AACxE,OAAO,EACL,gBAAgB,EAEjB,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;AAEH,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
@@ -0,0 +1,15 @@
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 { ReasonCode$inboundSchema } from "./reason-code.js";
5
+ import { ReasonIdentifier$inboundSchema, } from "./reason-identifier.js";
6
+ /** @internal */
7
+ export const AccountRiskReason$inboundSchema = z.object({
8
+ code: ReasonCode$inboundSchema,
9
+ weight: types.number(),
10
+ identifier: types.optional(ReasonIdentifier$inboundSchema),
11
+ });
12
+ export function accountRiskReasonFromJSON(jsonString) {
13
+ return safeParse(jsonString, (x) => AccountRiskReason$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountRiskReason' from JSON`);
14
+ }
15
+ //# sourceMappingURL=account-risk-reason.js.map
@@ -0,0 +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,EAAc,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AACxE,OAAO,EAEL,8BAA8B,GAC/B,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;AAEH,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"}
@@ -0,0 +1,23 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { AccountDecision } from "./account-decision.js";
4
+ import { AccountRiskReason } from "./account-risk-reason.js";
5
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
6
+ export type AccountRisk = {
7
+ /**
8
+ * 0 (safe) to 100 (risky), as risk.score of the assessment.
9
+ */
10
+ score: number;
11
+ /**
12
+ * block when the score reached your block threshold (risk.block of the assessment), otherwise the assessment's recommendation. Your application applies it.
13
+ */
14
+ decision: AccountDecision;
15
+ /**
16
+ * Every reason that fired, highest weight first. The weights sum to score before clamping.
17
+ */
18
+ reasons: Array<AccountRiskReason>;
19
+ };
20
+ /** @internal */
21
+ export declare const AccountRisk$inboundSchema: z.ZodMiniType<AccountRisk, unknown>;
22
+ export declare function accountRiskFromJSON(jsonString: string): SafeParseResult<AccountRisk, SDKValidationError>;
23
+ //# sourceMappingURL=account-risk.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-risk.d.ts","sourceRoot":"","sources":["../../../src/models/account-risk.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EACL,eAAe,EAEhB,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EACL,iBAAiB,EAElB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,MAAM,WAAW,GAAG;IACxB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,eAAe,CAAC;IAC1B;;OAEG;IACH,OAAO,EAAE,KAAK,CAAC,iBAAiB,CAAC,CAAC;CACnC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,WAAW,CAAC,WAAW,EAAE,OAAO,CAKtE,CAAC;AAEL,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
@@ -0,0 +1,16 @@
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 { AccountDecision$inboundSchema, } from "./account-decision.js";
5
+ import { AccountRiskReason$inboundSchema, } from "./account-risk-reason.js";
6
+ /** @internal */
7
+ export const AccountRisk$inboundSchema = z
8
+ .object({
9
+ score: types.number(),
10
+ decision: AccountDecision$inboundSchema,
11
+ reasons: z.array(AccountRiskReason$inboundSchema),
12
+ });
13
+ export function accountRiskFromJSON(jsonString) {
14
+ return safeParse(jsonString, (x) => AccountRisk$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountRisk' from JSON`);
15
+ }
16
+ //# sourceMappingURL=account-risk.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-risk.js","sourceRoot":"","sources":["../../../src/models/account-risk.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;AAChD,OAAO,EAEL,6BAA6B,GAC9B,MAAM,uBAAuB,CAAC;AAC/B,OAAO,EAEL,+BAA+B,GAChC,MAAM,0BAA0B,CAAC;AAkBlC,gBAAgB;AAChB,MAAM,CAAC,MAAM,yBAAyB,GAAwC,CAAC;KAC5E,MAAM,CAAC;IACN,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,QAAQ,EAAE,6BAA6B;IACvC,OAAO,EAAE,CAAC,CAAC,KAAK,CAAC,+BAA+B,CAAC;CAClD,CAAC,CAAC;AAEL,MAAM,UAAU,mBAAmB,CACjC,UAAkB,EACgC;IAClD,OAAO,SAAS,CACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AAAA,CACH"}