@noresponse/node 9.4.1 → 9.4.3

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 (104) hide show
  1. package/CHANGELOG.md +25 -0
  2. package/dist/commonjs/funcs/accounts-search.d.ts +19 -0
  3. package/dist/commonjs/funcs/accounts-search.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/accounts-search.js +149 -0
  5. package/dist/commonjs/funcs/accounts-search.js.map +1 -0
  6. package/dist/commonjs/lib/config.d.ts +2 -2
  7. package/dist/commonjs/lib/config.js +2 -2
  8. package/dist/commonjs/models/account-directory-page-item.d.ts +27 -0
  9. package/dist/commonjs/models/account-directory-page-item.d.ts.map +1 -0
  10. package/dist/commonjs/models/account-directory-page-item.js +58 -0
  11. package/dist/commonjs/models/account-directory-page-item.js.map +1 -0
  12. package/dist/commonjs/models/account-directory-page.d.ts +30 -0
  13. package/dist/commonjs/models/account-directory-page.d.ts.map +1 -0
  14. package/dist/commonjs/models/account-directory-page.js +60 -0
  15. package/dist/commonjs/models/account-directory-page.js.map +1 -0
  16. package/dist/commonjs/models/account-directory-search-request.d.ts +30 -0
  17. package/dist/commonjs/models/account-directory-search-request.d.ts.map +1 -0
  18. package/dist/commonjs/models/account-directory-search-request.js +54 -0
  19. package/dist/commonjs/models/account-directory-search-request.js.map +1 -0
  20. package/dist/commonjs/models/assessment-aggregate-request.d.ts +1 -1
  21. package/dist/commonjs/models/assessment-detail.d.ts +2 -2
  22. package/dist/commonjs/models/assessment-revision.d.ts +1 -1
  23. package/dist/commonjs/models/assessment-search-item.d.ts +1 -1
  24. package/dist/commonjs/models/assessment-search-request.d.ts +1 -1
  25. package/dist/commonjs/models/assessment.d.ts +1 -1
  26. package/dist/commonjs/models/confidence.d.ts +2 -2
  27. package/dist/commonjs/models/confidence.js +1 -1
  28. package/dist/commonjs/models/decision-receipt.d.ts +1 -1
  29. package/dist/commonjs/models/index.d.ts +3 -0
  30. package/dist/commonjs/models/index.d.ts.map +1 -1
  31. package/dist/commonjs/models/index.js +3 -0
  32. package/dist/commonjs/models/index.js.map +1 -1
  33. package/dist/commonjs/models/operations/index.d.ts +1 -0
  34. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  35. package/dist/commonjs/models/operations/index.js +1 -0
  36. package/dist/commonjs/models/operations/index.js.map +1 -1
  37. package/dist/commonjs/models/operations/search-accounts.d.ts +14 -0
  38. package/dist/commonjs/models/operations/search-accounts.d.ts.map +1 -0
  39. package/dist/commonjs/models/operations/search-accounts.js +55 -0
  40. package/dist/commonjs/models/operations/search-accounts.js.map +1 -0
  41. package/dist/commonjs/models/reason-code.d.ts +1 -0
  42. package/dist/commonjs/models/reason-code.d.ts.map +1 -1
  43. package/dist/commonjs/models/reason-code.js +1 -0
  44. package/dist/commonjs/models/reason-code.js.map +1 -1
  45. package/dist/commonjs/models/risk-coverage.d.ts +4 -4
  46. package/dist/commonjs/models/risk.d.ts +1 -1
  47. package/dist/commonjs/models/status.d.ts +2 -2
  48. package/dist/commonjs/models/status.js +1 -1
  49. package/dist/commonjs/sdk/accounts.d.ts +8 -0
  50. package/dist/commonjs/sdk/accounts.d.ts.map +1 -1
  51. package/dist/commonjs/sdk/accounts.js +10 -0
  52. package/dist/commonjs/sdk/accounts.js.map +1 -1
  53. package/dist/esm/funcs/accounts-search.d.ts +19 -0
  54. package/dist/esm/funcs/accounts-search.d.ts.map +1 -0
  55. package/dist/esm/funcs/accounts-search.js +113 -0
  56. package/dist/esm/funcs/accounts-search.js.map +1 -0
  57. package/dist/esm/lib/config.d.ts +2 -2
  58. package/dist/esm/lib/config.js +2 -2
  59. package/dist/esm/models/account-directory-page-item.d.ts +27 -0
  60. package/dist/esm/models/account-directory-page-item.d.ts.map +1 -0
  61. package/dist/esm/models/account-directory-page-item.js +21 -0
  62. package/dist/esm/models/account-directory-page-item.js.map +1 -0
  63. package/dist/esm/models/account-directory-page.d.ts +30 -0
  64. package/dist/esm/models/account-directory-page.d.ts.map +1 -0
  65. package/dist/esm/models/account-directory-page.js +23 -0
  66. package/dist/esm/models/account-directory-page.js.map +1 -0
  67. package/dist/esm/models/account-directory-search-request.d.ts +30 -0
  68. package/dist/esm/models/account-directory-search-request.d.ts.map +1 -0
  69. package/dist/esm/models/account-directory-search-request.js +17 -0
  70. package/dist/esm/models/account-directory-search-request.js.map +1 -0
  71. package/dist/esm/models/assessment-aggregate-request.d.ts +1 -1
  72. package/dist/esm/models/assessment-detail.d.ts +2 -2
  73. package/dist/esm/models/assessment-revision.d.ts +1 -1
  74. package/dist/esm/models/assessment-search-item.d.ts +1 -1
  75. package/dist/esm/models/assessment-search-request.d.ts +1 -1
  76. package/dist/esm/models/assessment.d.ts +1 -1
  77. package/dist/esm/models/confidence.d.ts +2 -2
  78. package/dist/esm/models/confidence.js +1 -1
  79. package/dist/esm/models/decision-receipt.d.ts +1 -1
  80. package/dist/esm/models/index.d.ts +3 -0
  81. package/dist/esm/models/index.d.ts.map +1 -1
  82. package/dist/esm/models/index.js +3 -0
  83. package/dist/esm/models/index.js.map +1 -1
  84. package/dist/esm/models/operations/index.d.ts +1 -0
  85. package/dist/esm/models/operations/index.d.ts.map +1 -1
  86. package/dist/esm/models/operations/index.js +1 -0
  87. package/dist/esm/models/operations/index.js.map +1 -1
  88. package/dist/esm/models/operations/search-accounts.d.ts +14 -0
  89. package/dist/esm/models/operations/search-accounts.d.ts.map +1 -0
  90. package/dist/esm/models/operations/search-accounts.js +18 -0
  91. package/dist/esm/models/operations/search-accounts.js.map +1 -0
  92. package/dist/esm/models/reason-code.d.ts +1 -0
  93. package/dist/esm/models/reason-code.d.ts.map +1 -1
  94. package/dist/esm/models/reason-code.js +1 -0
  95. package/dist/esm/models/reason-code.js.map +1 -1
  96. package/dist/esm/models/risk-coverage.d.ts +4 -4
  97. package/dist/esm/models/risk.d.ts +1 -1
  98. package/dist/esm/models/status.d.ts +2 -2
  99. package/dist/esm/models/status.js +1 -1
  100. package/dist/esm/sdk/accounts.d.ts +8 -0
  101. package/dist/esm/sdk/accounts.d.ts.map +1 -1
  102. package/dist/esm/sdk/accounts.js +10 -0
  103. package/dist/esm/sdk/accounts.js.map +1 -1
  104. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,30 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.4.3
4
+
5
+ * `sdk.assessments.create()`: `response.account.risk.reasons[].code.enum(noEmailMatches)` **Added**
6
+ * `sdk.assessments.get()`: `response.account.risk.reasons[].code.enum(noEmailMatches)` **Added**
7
+ * `sdk.assessments.query()`: `response.items[].risk.reasons[].code.enum(noEmailMatches)` **Added**
8
+ * `sdk.assessments.aggregate()`:
9
+ * `request.reason.enum(noEmailMatches)` **Added**
10
+ * `response.buckets[].groups[].reason.enum(noEmailMatches)` **Added**
11
+ * `sdk.assessments.search()`:
12
+ * `request.reason.enum(noEmailMatches)` **Added**
13
+ * `response.items[].detail.risk.reasons[].code.enum(noEmailMatches)` **Added**
14
+ * `sdk.assessments.retrieveVersion()`: `response.detail.risk.reasons[].code.enum(noEmailMatches)` **Added**
15
+ * `sdk.accounts.listChanged()`: `response.items[].risk.reasons[].code.enum(noEmailMatches)` **Added**
16
+ * `sdk.accounts.get()`: `response.risk.reasons[].code.enum(noEmailMatches)` **Added**
17
+ * `sdk.accounts.listAssessments()`: `response.items[].risk.reasons[].code.enum(noEmailMatches)` **Added**
18
+ * `sdk.accounts.retrieveDecision()`: `response.account.risk.reasons[].code.enum(noEmailMatches)` **Added**
19
+ * `sdk.accounts.export()`: `response.assessments[].detail.risk.reasons[].code.enum(noEmailMatches)` **Added**
20
+ * `sdk.accounts.listDecisions()`: `response.items[].account.risk.reasons[].code.enum(noEmailMatches)` **Added**
21
+ * `sdk.accounts.search()`: `response.items[].latest.detail.risk.reasons[].code.enum(noEmailMatches)` **Added**
22
+ * `sdk.requests.list()`: `response.items[].decision.account.risk.reasons[].code.enum(noEmailMatches)` **Added**
23
+
24
+ ## 9.4.2
25
+
26
+ * `sdk.accounts.search()`: **Added**
27
+
3
28
  ## 9.4.1
4
29
 
5
30
  No changes detected.
@@ -0,0 +1,19 @@
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 models from "../models/index.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { APIPromise } from "../types/async.js";
11
+ import { Result } from "../types/fp.js";
12
+ /**
13
+ * Search distinct accounts by email or account ID
14
+ *
15
+ * @remarks
16
+ * Search distinct accounts observed in retained assessments in this environment. Match an exact account_id or canonical email; an email matches any retained assessment belonging to the account. The response contains one row per account with its newest retained assessment, current decision when available, per-account assessment count, and total distinct-account count. Send next_cursor with unchanged filters to continue. Totals are exact below 10000 and capped at 10000. Results are live across pages. Requires history access and identifier access for email. Read-only and safe to retry.
17
+ */
18
+ export declare function accountsSearch(client: NoResponseCore, request: models.AccountDirectorySearchRequest, options?: RequestOptions): APIPromise<Result<operations.SearchAccountsResponse, errors.BadRequestError | errors.AuthenticationError | errors.PermissionDeniedError | errors.NotFoundError | errors.ConflictError | errors.RateLimitError | NoResponseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
+ //# sourceMappingURL=accounts-search.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts-search.d.ts","sourceRoot":"","sources":["../../../src/funcs/accounts-search.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,MAAM,MAAM,oBAAoB,CAAC;AAC7C,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,cAAc,CAC5B,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,MAAM,CAAC,6BAA6B,EAC7C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,sBAAsB,EAC/B,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,149 @@
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.accountsSearch = accountsSearch;
37
+ const z = __importStar(require("zod/v4-mini"));
38
+ const encodings_js_1 = require("../lib/encodings.js");
39
+ const http_js_1 = require("../lib/http.js");
40
+ const M = __importStar(require("../lib/matchers.js"));
41
+ const primitives_js_1 = require("../lib/primitives.js");
42
+ const schemas_js_1 = require("../lib/schemas.js");
43
+ const security_js_1 = require("../lib/security.js");
44
+ const url_js_1 = require("../lib/url.js");
45
+ const errors = __importStar(require("../models/errors/index.js"));
46
+ const models = __importStar(require("../models/index.js"));
47
+ const operations = __importStar(require("../models/operations/index.js"));
48
+ const async_js_1 = require("../types/async.js");
49
+ /**
50
+ * Search distinct accounts by email or account ID
51
+ *
52
+ * @remarks
53
+ * Search distinct accounts observed in retained assessments in this environment. Match an exact account_id or canonical email; an email matches any retained assessment belonging to the account. The response contains one row per account with its newest retained assessment, current decision when available, per-account assessment count, and total distinct-account count. Send next_cursor with unchanged filters to continue. Totals are exact below 10000 and capped at 10000. Results are live across pages. Requires history access and identifier access for email. Read-only and safe to retry.
54
+ */
55
+ function accountsSearch(client, request, options) {
56
+ return new async_js_1.APIPromise($do(client, request, options));
57
+ }
58
+ async function $do(client, request, options) {
59
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.parse(models.AccountDirectorySearchRequest$outboundSchema, value), "Input validation failed");
60
+ if (!parsed.ok) {
61
+ return [parsed, { status: "invalid" }];
62
+ }
63
+ const payload = parsed.value;
64
+ const body = (0, encodings_js_1.encodeJSON)("body", payload, { explode: true });
65
+ const path = (0, url_js_1.pathToFunc)("/v1/accounts/search")();
66
+ const headers = new Headers((0, primitives_js_1.compactMap)({
67
+ "Content-Type": "application/json",
68
+ Accept: "application/json",
69
+ }));
70
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
71
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
72
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
73
+ const context = {
74
+ options: client._options,
75
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
76
+ operationID: "searchAccounts",
77
+ oAuth2Scopes: null,
78
+ resolvedSecurity: requestSecurity,
79
+ securitySource: client._options.apiKey,
80
+ retryConfig: options?.retries
81
+ || client._options.retryConfig
82
+ || {
83
+ strategy: "backoff",
84
+ backoff: {
85
+ initialInterval: 500,
86
+ maxInterval: 8000,
87
+ exponent: 2,
88
+ maxElapsedTime: 30000,
89
+ },
90
+ retryConnectionErrors: true,
91
+ }
92
+ || { strategy: "none" },
93
+ retryCodes: options?.retryCodes || ["408", "429", "5XX"],
94
+ };
95
+ const requestRes = client._createRequest(context, {
96
+ security: requestSecurity,
97
+ method: "POST",
98
+ baseURL: options?.serverURL,
99
+ path: path,
100
+ headers: headers,
101
+ body: body,
102
+ userAgent: client._options.userAgent,
103
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
104
+ }, options);
105
+ if (!requestRes.ok) {
106
+ return [requestRes, { status: "invalid" }];
107
+ }
108
+ const req = requestRes.value;
109
+ const doResult = await client._do(req, {
110
+ context,
111
+ isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
112
+ retryConfig: context.retryConfig,
113
+ retryCodes: context.retryCodes,
114
+ });
115
+ if (!doResult.ok) {
116
+ return [doResult, { status: "request-error", request: req }];
117
+ }
118
+ const response = doResult.value;
119
+ const responseFields = {
120
+ HttpMeta: { Response: response, Request: req },
121
+ };
122
+ const [result] = await M.match(M.json(200, operations.SearchAccountsResponse$inboundSchema, {
123
+ hdrs: true,
124
+ key: "Result",
125
+ }), M.jsonErr(400, errors.BadRequestError$inboundSchema, {
126
+ ctype: "application/problem+json",
127
+ hdrs: true,
128
+ }), M.jsonErr(401, errors.AuthenticationError$inboundSchema, {
129
+ ctype: "application/problem+json",
130
+ hdrs: true,
131
+ }), M.jsonErr(403, errors.PermissionDeniedError$inboundSchema, {
132
+ ctype: "application/problem+json",
133
+ hdrs: true,
134
+ }), M.jsonErr(404, errors.NotFoundError$inboundSchema, {
135
+ ctype: "application/problem+json",
136
+ hdrs: true,
137
+ }), M.jsonErr(409, errors.ConflictError$inboundSchema, {
138
+ ctype: "application/problem+json",
139
+ hdrs: true,
140
+ }), M.jsonErr(429, errors.RateLimitError$inboundSchema, {
141
+ ctype: "application/problem+json",
142
+ hdrs: true,
143
+ }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
144
+ if (!result.ok) {
145
+ return [result, { status: "complete", request: req, response }];
146
+ }
147
+ return [result, { status: "complete", request: req, response }];
148
+ }
149
+ //# sourceMappingURL=accounts-search.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts-search.js","sourceRoot":"","sources":["../../../src/funcs/accounts-search.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AAEjC,sDAAiD;AACjD,4CAAiD;AACjD,MAAY,CAAC,+CAA2B;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;A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K,EAAE,0BAA0B;QACjC,IAAI,EAAE,IAAI;KACX,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,2BAA2B,EAAE;QACjD,KAAK,EAAE,0BAA0B;QACjC,IAAI,EAAE,IAAI;KACX,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,2BAA2B,EAAE;QACjD,KAAK,EAAE,0BAA0B;QACjC,IAAI,EAAE,IAAI;KACX,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,4BAA4B,EAAE;QAClD,KAAK,EAAE,0BAA0B;QACjC,IAAI,EAAE,IAAI;KACX,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAAA,CACjE"}
@@ -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: "9.4.1";
34
+ readonly sdkVersion: "9.4.3";
35
35
  readonly genVersion: "internal";
36
- readonly userAgent: "noresponse-sdk/typescript 9.4.1 internal 1 @noresponse/node";
36
+ readonly userAgent: "noresponse-sdk/typescript 9.4.3 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: "9.4.1",
31
+ sdkVersion: "9.4.3",
32
32
  genVersion: "internal",
33
- userAgent: "noresponse-sdk/typescript 9.4.1 internal 1 @noresponse/node",
33
+ userAgent: "noresponse-sdk/typescript 9.4.3 internal 1 @noresponse/node",
34
34
  };
35
35
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,27 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { Account } from "./account.js";
4
+ import { AssessmentRevision } from "./assessment-revision.js";
5
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
6
+ export type AccountDirectoryPageItem = {
7
+ /**
8
+ * Your own opaque identifier for the account being checked, scoped to your workspace. Use an id you mint, with no direct identifier (email, phone, name or national id) in it. '|' is accepted so an Auth0 user id such as 'auth0|64abc' passes unchanged; '@', '+', '$' and whitespace are refused by the pattern, as is an exact-shape JWT; a hex digest such as a SHA-256 is allowed, because hashing an internal id is a common pseudonymous scheme. A value such as '07700900123' or 'jane.doe.gmail.com' cannot be told apart from an opaque id. It travels in bodies, and in a URL only as the path segment of GET /v1/accounts/{account_id} and its /assessments. An assessment requested by a provider hook at pre_registration, which has no account yet, carries the server-issued account_id pre: followed by its assessment_id.
9
+ */
10
+ accountId: string;
11
+ /**
12
+ * 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.
13
+ */
14
+ latest: AssessmentRevision;
15
+ /**
16
+ * Body of the 200 answer to GET /v1/accounts/{account_id}: the one current risk of one of the calling workspace's accounts. It is the risk of the account's latest assessment that has a decision (status complete or partial), by created_at and then assessment_id, scored exactly as GET /v1/assessments/{assessment_id} scores that assessment, plus the account's own reason shared_api_key when a key issued to the account was used from many IP addresses or countries (POST /v1/key_usage/batches). Its assessments are the account's history (GET /v1/accounts/{account_id}/assessments).
17
+ */
18
+ current?: Account | undefined;
19
+ /**
20
+ * Count of admitted retained assessments belonging to this account, not just the returned page.
21
+ */
22
+ assessments: number;
23
+ };
24
+ /** @internal */
25
+ export declare const AccountDirectoryPageItem$inboundSchema: z.ZodMiniType<AccountDirectoryPageItem, unknown>;
26
+ export declare function accountDirectoryPageItemFromJSON(jsonString: string): SafeParseResult<AccountDirectoryPageItem, SDKValidationError>;
27
+ //# sourceMappingURL=account-directory-page-item.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-directory-page-item.d.ts","sourceRoot":"","sources":["../../../src/models/account-directory-page-item.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EAAE,OAAO,EAAyB,MAAM,cAAc,CAAC;AAC9D,OAAO,EACL,kBAAkB,EAEnB,MAAM,0BAA0B,CAAC;AAClC,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,MAAM,EAAE,kBAAkB,CAAC;IAC3B;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;CACrB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,WAAW,CAChE,wBAAwB,EACxB,OAAO,CAaR,CAAC;AAEF,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
@@ -0,0 +1,58 @@
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.AccountDirectoryPageItem$inboundSchema = void 0;
37
+ exports.accountDirectoryPageItemFromJSON = accountDirectoryPageItemFromJSON;
38
+ const z = __importStar(require("zod/v4-mini"));
39
+ const primitives_js_1 = require("../lib/primitives.js");
40
+ const schemas_js_1 = require("../lib/schemas.js");
41
+ const types = __importStar(require("../types/primitives.js"));
42
+ const account_js_1 = require("./account.js");
43
+ const assessment_revision_js_1 = require("./assessment-revision.js");
44
+ /** @internal */
45
+ exports.AccountDirectoryPageItem$inboundSchema = z.pipe(z.object({
46
+ account_id: types.string(),
47
+ latest: assessment_revision_js_1.AssessmentRevision$inboundSchema,
48
+ current: types.optional(account_js_1.Account$inboundSchema),
49
+ assessments: types.number(),
50
+ }), z.transform((v) => {
51
+ return (0, primitives_js_1.remap)(v, {
52
+ "account_id": "accountId",
53
+ });
54
+ }));
55
+ function accountDirectoryPageItemFromJSON(jsonString) {
56
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountDirectoryPageItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountDirectoryPageItem' from JSON`);
57
+ }
58
+ //# sourceMappingURL=account-directory-page-item.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-directory-page-item.js","sourceRoot":"","sources":["../../../src/models/account-directory-page-item.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,wDAAuD;AACvD,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;AAChD,6CAA8D;AAC9D,qEAGkC;AAsBlC,gBAAgB;AACH,QAAA,sCAAsC,GAG/C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,UAAU,EAAE,KAAK,CAAC,MAAM,EAAE;IAC1B,MAAM,EAAE,yDAAgC;IACxC,OAAO,EAAE,KAAK,CAAC,QAAQ,CAAC,kCAAqB,CAAC;IAC9C,WAAW,EAAE,KAAK,CAAC,MAAM,EAAE;CAC5B,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,WAAW;KAC1B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,0CACE,UAAkB,EAC6C;IAC/D,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,QAAA,sCAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AAAA,CACH"}
@@ -0,0 +1,30 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { AccountDirectoryPageItem } from "./account-directory-page-item.js";
4
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
+ /**
6
+ * Accounts observed in retained assessments, newest seen first, with each account once per page and across pages. Counts and keyset pagination are computed over distinct accounts in one database snapshot per page. Live data can change between pages.
7
+ */
8
+ export type AccountDirectoryPage = {
9
+ /**
10
+ * Version of the body shape.
11
+ */
12
+ schemaVersion: "1";
13
+ items: Array<AccountDirectoryPageItem>;
14
+ /**
15
+ * Distinct accounts matching the filters, exact below 10000 and capped at 10000.
16
+ */
17
+ total: number;
18
+ /**
19
+ * True when at least 10000 accounts match.
20
+ */
21
+ totalCapped: boolean;
22
+ /**
23
+ * Opaque, expiring cursor bound to this environment, operation and every filter. Keep the filters unchanged.
24
+ */
25
+ nextCursor?: string | undefined;
26
+ };
27
+ /** @internal */
28
+ export declare const AccountDirectoryPage$inboundSchema: z.ZodMiniType<AccountDirectoryPage, unknown>;
29
+ export declare function accountDirectoryPageFromJSON(jsonString: string): SafeParseResult<AccountDirectoryPage, SDKValidationError>;
30
+ //# sourceMappingURL=account-directory-page.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-directory-page.d.ts","sourceRoot":"","sources":["../../../src/models/account-directory-page.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EACL,wBAAwB,EAEzB,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,aAAa,EAAE,GAAG,CAAC;IACnB,KAAK,EAAE,KAAK,CAAC,wBAAwB,CAAC,CAAC;IACvC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,WAAW,EAAE,OAAO,CAAC;IACrB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,WAAW,CAC5D,oBAAoB,EACpB,OAAO,CAgBR,CAAC;AAEF,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
@@ -0,0 +1,60 @@
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.AccountDirectoryPage$inboundSchema = void 0;
37
+ exports.accountDirectoryPageFromJSON = accountDirectoryPageFromJSON;
38
+ const z = __importStar(require("zod/v4-mini"));
39
+ const primitives_js_1 = require("../lib/primitives.js");
40
+ const schemas_js_1 = require("../lib/schemas.js");
41
+ const types = __importStar(require("../types/primitives.js"));
42
+ const account_directory_page_item_js_1 = require("./account-directory-page-item.js");
43
+ /** @internal */
44
+ exports.AccountDirectoryPage$inboundSchema = z.pipe(z.object({
45
+ schema_version: types.literal("1"),
46
+ items: z.array(account_directory_page_item_js_1.AccountDirectoryPageItem$inboundSchema),
47
+ total: types.number(),
48
+ total_capped: types.boolean(),
49
+ next_cursor: types.optional(types.string()),
50
+ }), z.transform((v) => {
51
+ return (0, primitives_js_1.remap)(v, {
52
+ "schema_version": "schemaVersion",
53
+ "total_capped": "totalCapped",
54
+ "next_cursor": "nextCursor",
55
+ });
56
+ }));
57
+ function accountDirectoryPageFromJSON(jsonString) {
58
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountDirectoryPage$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountDirectoryPage' from JSON`);
59
+ }
60
+ //# sourceMappingURL=account-directory-page.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-directory-page.js","sourceRoot":"","sources":["../../../src/models/account-directory-page.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,wDAAuD;AACvD,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;AAChD,qFAG0C;AA0B1C,gBAAgB;AACH,QAAA,kCAAkC,GAG3C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,cAAc,EAAE,KAAK,CAAC,OAAO,CAAC,GAAG,CAAC;IAClC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,uEAAsC,CAAC;IACtD,KAAK,EAAE,KAAK,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,KAAK,CAAC,OAAO,EAAE;IAC7B,WAAW,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CAC5C,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,eAAe;QACjC,cAAc,EAAE,aAAa;QAC7B,aAAa,EAAE,YAAY;KAC5B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,sCACE,UAAkB,EACyC;IAC3D,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,QAAA,kCAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AAAA,CACH"}
@@ -0,0 +1,30 @@
1
+ import * as z from "zod/v4-mini";
2
+ /**
3
+ * Bounded distinct-account search for a single authenticated workspace/environment. Email matches any retained admitted assessment of an account, using assessment search's canonical mailbox rules. No assessment history download is required.
4
+ */
5
+ export type AccountDirectorySearchRequest = {
6
+ /**
7
+ * Your own opaque identifier for the account being checked, scoped to your workspace. Use an id you mint, with no direct identifier (email, phone, name or national id) in it. '|' is accepted so an Auth0 user id such as 'auth0|64abc' passes unchanged; '@', '+', '$' and whitespace are refused by the pattern, as is an exact-shape JWT; a hex digest such as a SHA-256 is allowed, because hashing an internal id is a common pseudonymous scheme. A value such as '07700900123' or 'jane.doe.gmail.com' cannot be told apart from an opaque id. It travels in bodies, and in a URL only as the path segment of GET /v1/accounts/{account_id} and its /assessments. An assessment requested by a provider hook at pre_registration, which has no account yet, carries the server-issued account_id pre: followed by its assessment_id.
8
+ */
9
+ accountId?: string | undefined;
10
+ /**
11
+ * Assessments of every account that one of its retained admitted assessments sent this mailbox as identifiers.email, matched as lists match an email entry: case-insensitive, a +tag removed and, at gmail.com and googlemail.com, the dots of the local part ignored. Only assessments stored since email list matching began carry the mailbox. An address that is not a valid mailbox is refused with 400.
12
+ */
13
+ email?: string | undefined;
14
+ limit?: number | undefined;
15
+ /**
16
+ * Opaque, expiring cursor bound to this environment, operation and every filter. Keep the filters unchanged.
17
+ */
18
+ cursor?: string | undefined;
19
+ };
20
+ /** @internal */
21
+ export type AccountDirectorySearchRequest$Outbound = {
22
+ account_id?: string | undefined;
23
+ email?: string | undefined;
24
+ limit: number;
25
+ cursor?: string | undefined;
26
+ };
27
+ /** @internal */
28
+ export declare const AccountDirectorySearchRequest$outboundSchema: z.ZodMiniType<AccountDirectorySearchRequest$Outbound, AccountDirectorySearchRequest>;
29
+ export declare function accountDirectorySearchRequestToJSON(accountDirectorySearchRequest: AccountDirectorySearchRequest): string;
30
+ //# sourceMappingURL=account-directory-search-request.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-directory-search-request.d.ts","sourceRoot":"","sources":["../../../src/models/account-directory-search-request.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC;;GAEG;AACH,MAAM,MAAM,6BAA6B,GAAG;IAC1C;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,sCAAsC,GAAG;IACnD,UAAU,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAChC,KAAK,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC3B,KAAK,EAAE,MAAM,CAAC;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC7B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,WAAW,CACtE,sCAAsC,EACtC,6BAA6B,CAa9B,CAAC;AAEF,wBAAgB,mCAAmC,CACjD,6BAA6B,EAAE,6BAA6B,GAC3D,MAAM,CAMR"}
@@ -0,0 +1,54 @@
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.AccountDirectorySearchRequest$outboundSchema = void 0;
37
+ exports.accountDirectorySearchRequestToJSON = accountDirectorySearchRequestToJSON;
38
+ const z = __importStar(require("zod/v4-mini"));
39
+ const primitives_js_1 = require("../lib/primitives.js");
40
+ /** @internal */
41
+ exports.AccountDirectorySearchRequest$outboundSchema = z.pipe(z.object({
42
+ accountId: z.optional(z.string()),
43
+ email: z.optional(z.string()),
44
+ limit: z._default(z.int(), 25),
45
+ cursor: z.optional(z.string()),
46
+ }), z.transform((v) => {
47
+ return (0, primitives_js_1.remap)(v, {
48
+ accountId: "account_id",
49
+ });
50
+ }));
51
+ function accountDirectorySearchRequestToJSON(accountDirectorySearchRequest) {
52
+ return JSON.stringify(exports.AccountDirectorySearchRequest$outboundSchema.parse(accountDirectorySearchRequest));
53
+ }
54
+ //# sourceMappingURL=account-directory-search-request.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-directory-search-request.js","sourceRoot":"","sources":["../../../src/models/account-directory-search-request.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,wDAAuD;AA6BvD,gBAAgB;AACH,QAAA,4CAA4C,GAGrD,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjC,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC7B,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,EAAE,EAAE,CAAC;IAC9B,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;CAC/B,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;KACxB,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,6CACE,6BAA4D,EACpD;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,QAAA,4CAA4C,CAAC,KAAK,CAChD,6BAA6B,CAC9B,CACF,CAAC;AAAA,CACH"}
@@ -57,7 +57,7 @@ export type AssessmentAggregateRequest = {
57
57
  */
58
58
  flow?: Flow | undefined;
59
59
  /**
60
- * complete: final; nothing is still running. A lane that failed or missed its 10 s deadline stays listed in incomplete_sources, and confidence is lower. partial: a recommendation exists and at least one lane is still running or did not settle (see incomplete_sources). pending: nothing usable before the deadline; no recommendation yet, poll or wait for the webhook.
60
+ * Processing state, separate from evidence coverage. complete: final; nothing is still running, but unsupported, failed or unanswered lanes remain in incomplete_sources. partial: a recommendation exists and evidence is incomplete; assessment_url identifies continuing work when present. pending: no recommendation yet; poll or wait for the webhook. Finished processing does not mean all sources answered.
61
61
  */
62
62
  status?: Status | undefined;
63
63
  /**
@@ -35,7 +35,7 @@ export type AssessmentDetail = {
35
35
  */
36
36
  requestId?: string | undefined;
37
37
  /**
38
- * complete: final; nothing is still running. A lane that failed or missed its 10 s deadline stays listed in incomplete_sources, and confidence is lower. partial: a recommendation exists and at least one lane is still running or did not settle (see incomplete_sources). pending: nothing usable before the deadline; no recommendation yet, poll or wait for the webhook.
38
+ * Processing state, separate from evidence coverage. complete: final; nothing is still running, but unsupported, failed or unanswered lanes remain in incomplete_sources. partial: a recommendation exists and evidence is incomplete; assessment_url identifies continuing work when present. pending: no recommendation yet; poll or wait for the webhook. Finished processing does not mean all sources answered.
39
39
  */
40
40
  status: Status;
41
41
  /**
@@ -43,7 +43,7 @@ export type AssessmentDetail = {
43
43
  */
44
44
  recommendation?: Recommendation | undefined;
45
45
  /**
46
- * Ordinal confidence in the recommendation under the current policy: low, medium, high or unavailable.
46
+ * Evidence coverage: how much of the planned source evidence gave a definite answer. This is not confidence that an identity is genuine, agreement between identifiers, a risk score or a probability. unavailable means no usable evidence answered; a terminal uncovered assessment can have this value and recommend review.
47
47
  */
48
48
  confidence: Confidence;
49
49
  /**
@@ -18,7 +18,7 @@ export type AssessmentRevision = {
18
18
  */
19
19
  id: string;
20
20
  /**
21
- * complete: final; nothing is still running. A lane that failed or missed its 10 s deadline stays listed in incomplete_sources, and confidence is lower. partial: a recommendation exists and at least one lane is still running or did not settle (see incomplete_sources). pending: nothing usable before the deadline; no recommendation yet, poll or wait for the webhook.
21
+ * Processing state, separate from evidence coverage. complete: final; nothing is still running, but unsupported, failed or unanswered lanes remain in incomplete_sources. partial: a recommendation exists and evidence is incomplete; assessment_url identifies continuing work when present. pending: no recommendation yet; poll or wait for the webhook. Finished processing does not mean all sources answered.
22
22
  */
23
23
  status: Status;
24
24
  /**
@@ -19,7 +19,7 @@ export type AssessmentSearchItem = {
19
19
  */
20
20
  id: string;
21
21
  /**
22
- * complete: final; nothing is still running. A lane that failed or missed its 10 s deadline stays listed in incomplete_sources, and confidence is lower. partial: a recommendation exists and at least one lane is still running or did not settle (see incomplete_sources). pending: nothing usable before the deadline; no recommendation yet, poll or wait for the webhook.
22
+ * Processing state, separate from evidence coverage. complete: final; nothing is still running, but unsupported, failed or unanswered lanes remain in incomplete_sources. partial: a recommendation exists and evidence is incomplete; assessment_url identifies continuing work when present. pending: no recommendation yet; poll or wait for the webhook. Finished processing does not mean all sources answered.
23
23
  */
24
24
  status: Status;
25
25
  /**
@@ -29,7 +29,7 @@ export type AssessmentSearchRequest = {
29
29
  */
30
30
  flow?: Flow | undefined;
31
31
  /**
32
- * complete: final; nothing is still running. A lane that failed or missed its 10 s deadline stays listed in incomplete_sources, and confidence is lower. partial: a recommendation exists and at least one lane is still running or did not settle (see incomplete_sources). pending: nothing usable before the deadline; no recommendation yet, poll or wait for the webhook.
32
+ * Processing state, separate from evidence coverage. complete: final; nothing is still running, but unsupported, failed or unanswered lanes remain in incomplete_sources. partial: a recommendation exists and evidence is incomplete; assessment_url identifies continuing work when present. pending: no recommendation yet; poll or wait for the webhook. Finished processing does not mean all sources answered.
33
33
  */
34
34
  status?: Status | undefined;
35
35
  /**
@@ -19,7 +19,7 @@ export type Assessment = {
19
19
  */
20
20
  id: string;
21
21
  /**
22
- * complete: final; nothing is still running. A lane that failed or missed its 10 s deadline stays listed in incomplete_sources, and confidence is lower. partial: a recommendation exists and at least one lane is still running or did not settle (see incomplete_sources). pending: nothing usable before the deadline; no recommendation yet, poll or wait for the webhook.
22
+ * Processing state, separate from evidence coverage. complete: final; nothing is still running, but unsupported, failed or unanswered lanes remain in incomplete_sources. partial: a recommendation exists and evidence is incomplete; assessment_url identifies continuing work when present. pending: no recommendation yet; poll or wait for the webhook. Finished processing does not mean all sources answered.
23
23
  */
24
24
  status: Status;
25
25
  /**