@noresponse/node 6.0.1 → 6.0.2

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 (126) hide show
  1. package/CHANGELOG.md +26 -0
  2. package/dist/commonjs/funcs/accounts-list-changed.d.ts +18 -0
  3. package/dist/commonjs/funcs/accounts-list-changed.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/accounts-list-changed.js +153 -0
  5. package/dist/commonjs/funcs/accounts-list-changed.js.map +1 -0
  6. package/dist/commonjs/funcs/accounts-record-enforcement.d.ts +18 -0
  7. package/dist/commonjs/funcs/accounts-record-enforcement.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/accounts-record-enforcement.js +154 -0
  9. package/dist/commonjs/funcs/accounts-record-enforcement.js.map +1 -0
  10. package/dist/commonjs/lib/config.d.ts +2 -2
  11. package/dist/commonjs/lib/config.js +2 -2
  12. package/dist/commonjs/models/account-list.d.ts +18 -0
  13. package/dist/commonjs/models/account-list.d.ts.map +1 -0
  14. package/dist/commonjs/models/account-list.js +56 -0
  15. package/dist/commonjs/models/account-list.js.map +1 -0
  16. package/dist/commonjs/models/conflict-error-code.d.ts +1 -0
  17. package/dist/commonjs/models/conflict-error-code.d.ts.map +1 -1
  18. package/dist/commonjs/models/conflict-error-code.js +1 -0
  19. package/dist/commonjs/models/conflict-error-code.js.map +1 -1
  20. package/dist/commonjs/models/enforcement-action.d.ts +22 -0
  21. package/dist/commonjs/models/enforcement-action.d.ts.map +1 -0
  22. package/dist/commonjs/models/enforcement-action.js +53 -0
  23. package/dist/commonjs/models/enforcement-action.js.map +1 -0
  24. package/dist/commonjs/models/enforcement-provider.d.ts +20 -0
  25. package/dist/commonjs/models/enforcement-provider.d.ts.map +1 -0
  26. package/dist/commonjs/models/enforcement-provider.js +51 -0
  27. package/dist/commonjs/models/enforcement-provider.js.map +1 -0
  28. package/dist/commonjs/models/enforcement-request.d.ts +53 -0
  29. package/dist/commonjs/models/enforcement-request.d.ts.map +1 -0
  30. package/dist/commonjs/models/enforcement-request.js +64 -0
  31. package/dist/commonjs/models/enforcement-request.js.map +1 -0
  32. package/dist/commonjs/models/enforcement-state.d.ts +21 -0
  33. package/dist/commonjs/models/enforcement-state.d.ts.map +1 -0
  34. package/dist/commonjs/models/enforcement-state.js +52 -0
  35. package/dist/commonjs/models/enforcement-state.js.map +1 -0
  36. package/dist/commonjs/models/enforcement-status.d.ts +18 -0
  37. package/dist/commonjs/models/enforcement-status.d.ts.map +1 -0
  38. package/dist/commonjs/models/enforcement-status.js +49 -0
  39. package/dist/commonjs/models/enforcement-status.js.map +1 -0
  40. package/dist/commonjs/models/enforcement.d.ts +57 -0
  41. package/dist/commonjs/models/enforcement.d.ts.map +1 -0
  42. package/dist/commonjs/models/enforcement.js +72 -0
  43. package/dist/commonjs/models/enforcement.js.map +1 -0
  44. package/dist/commonjs/models/index.d.ts +7 -0
  45. package/dist/commonjs/models/index.d.ts.map +1 -1
  46. package/dist/commonjs/models/index.js +7 -0
  47. package/dist/commonjs/models/index.js.map +1 -1
  48. package/dist/commonjs/models/operations/index.d.ts +2 -0
  49. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  50. package/dist/commonjs/models/operations/index.js +2 -0
  51. package/dist/commonjs/models/operations/index.js.map +1 -1
  52. package/dist/commonjs/models/operations/list-accounts.d.ts +37 -0
  53. package/dist/commonjs/models/operations/list-accounts.d.ts.map +1 -0
  54. package/dist/commonjs/models/operations/list-accounts.js +69 -0
  55. package/dist/commonjs/models/operations/list-accounts.js.map +1 -0
  56. package/dist/commonjs/models/operations/record-enforcement.d.ts +29 -0
  57. package/dist/commonjs/models/operations/record-enforcement.d.ts.map +1 -0
  58. package/dist/commonjs/models/operations/record-enforcement.js +68 -0
  59. package/dist/commonjs/models/operations/record-enforcement.js.map +1 -0
  60. package/dist/commonjs/sdk/accounts.d.ts +14 -0
  61. package/dist/commonjs/sdk/accounts.d.ts.map +1 -1
  62. package/dist/commonjs/sdk/accounts.js +20 -0
  63. package/dist/commonjs/sdk/accounts.js.map +1 -1
  64. package/dist/esm/funcs/accounts-list-changed.d.ts +18 -0
  65. package/dist/esm/funcs/accounts-list-changed.d.ts.map +1 -0
  66. package/dist/esm/funcs/accounts-list-changed.js +117 -0
  67. package/dist/esm/funcs/accounts-list-changed.js.map +1 -0
  68. package/dist/esm/funcs/accounts-record-enforcement.d.ts +18 -0
  69. package/dist/esm/funcs/accounts-record-enforcement.d.ts.map +1 -0
  70. package/dist/esm/funcs/accounts-record-enforcement.js +118 -0
  71. package/dist/esm/funcs/accounts-record-enforcement.js.map +1 -0
  72. package/dist/esm/lib/config.d.ts +2 -2
  73. package/dist/esm/lib/config.js +2 -2
  74. package/dist/esm/models/account-list.d.ts +18 -0
  75. package/dist/esm/models/account-list.d.ts.map +1 -0
  76. package/dist/esm/models/account-list.js +19 -0
  77. package/dist/esm/models/account-list.js.map +1 -0
  78. package/dist/esm/models/conflict-error-code.d.ts +1 -0
  79. package/dist/esm/models/conflict-error-code.d.ts.map +1 -1
  80. package/dist/esm/models/conflict-error-code.js +1 -0
  81. package/dist/esm/models/conflict-error-code.js.map +1 -1
  82. package/dist/esm/models/enforcement-action.d.ts +22 -0
  83. package/dist/esm/models/enforcement-action.d.ts.map +1 -0
  84. package/dist/esm/models/enforcement-action.js +17 -0
  85. package/dist/esm/models/enforcement-action.js.map +1 -0
  86. package/dist/esm/models/enforcement-provider.d.ts +20 -0
  87. package/dist/esm/models/enforcement-provider.d.ts.map +1 -0
  88. package/dist/esm/models/enforcement-provider.js +15 -0
  89. package/dist/esm/models/enforcement-provider.js.map +1 -0
  90. package/dist/esm/models/enforcement-request.d.ts +53 -0
  91. package/dist/esm/models/enforcement-request.d.ts.map +1 -0
  92. package/dist/esm/models/enforcement-request.js +27 -0
  93. package/dist/esm/models/enforcement-request.js.map +1 -0
  94. package/dist/esm/models/enforcement-state.d.ts +21 -0
  95. package/dist/esm/models/enforcement-state.d.ts.map +1 -0
  96. package/dist/esm/models/enforcement-state.js +16 -0
  97. package/dist/esm/models/enforcement-state.js.map +1 -0
  98. package/dist/esm/models/enforcement-status.d.ts +18 -0
  99. package/dist/esm/models/enforcement-status.d.ts.map +1 -0
  100. package/dist/esm/models/enforcement-status.js +13 -0
  101. package/dist/esm/models/enforcement-status.js.map +1 -0
  102. package/dist/esm/models/enforcement.d.ts +57 -0
  103. package/dist/esm/models/enforcement.d.ts.map +1 -0
  104. package/dist/esm/models/enforcement.js +35 -0
  105. package/dist/esm/models/enforcement.js.map +1 -0
  106. package/dist/esm/models/index.d.ts +7 -0
  107. package/dist/esm/models/index.d.ts.map +1 -1
  108. package/dist/esm/models/index.js +7 -0
  109. package/dist/esm/models/index.js.map +1 -1
  110. package/dist/esm/models/operations/index.d.ts +2 -0
  111. package/dist/esm/models/operations/index.d.ts.map +1 -1
  112. package/dist/esm/models/operations/index.js +2 -0
  113. package/dist/esm/models/operations/index.js.map +1 -1
  114. package/dist/esm/models/operations/list-accounts.d.ts +37 -0
  115. package/dist/esm/models/operations/list-accounts.d.ts.map +1 -0
  116. package/dist/esm/models/operations/list-accounts.js +31 -0
  117. package/dist/esm/models/operations/list-accounts.js.map +1 -0
  118. package/dist/esm/models/operations/record-enforcement.d.ts +29 -0
  119. package/dist/esm/models/operations/record-enforcement.d.ts.map +1 -0
  120. package/dist/esm/models/operations/record-enforcement.js +30 -0
  121. package/dist/esm/models/operations/record-enforcement.js.map +1 -0
  122. package/dist/esm/sdk/accounts.d.ts +14 -0
  123. package/dist/esm/sdk/accounts.d.ts.map +1 -1
  124. package/dist/esm/sdk/accounts.js +20 -0
  125. package/dist/esm/sdk/accounts.js.map +1 -1
  126. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -1,5 +1,31 @@
1
1
  # Changelog
2
2
 
3
+ ## 6.0.2
4
+
5
+ * `sdk.accounts.listChanged()`: **Added**
6
+ * `sdk.accounts.recordEnforcement()`: **Added**
7
+ * `sdk.assessments.create()`: `error.code.enum(riskVersionAhead)` **Added**
8
+ * `sdk.assessments.get()`: `error.code.enum(riskVersionAhead)` **Added**
9
+ * `sdk.assessments.delete()`: `error.code.enum(riskVersionAhead)` **Added**
10
+ * `sdk.assessments.recordOutcome()`: `error.code.enum(riskVersionAhead)` **Added**
11
+ * `sdk.assessments.query()`: `error.code.enum(riskVersionAhead)` **Added**
12
+ * `sdk.accounts.get()`: `error.code.enum(riskVersionAhead)` **Added**
13
+ * `sdk.accounts.delete()`: `error.code.enum(riskVersionAhead)` **Added**
14
+ * `sdk.accounts.listAssessments()`: `error.code.enum(riskVersionAhead)` **Added**
15
+ * `sdk.keyUsage.record()`: `error.code.enum(riskVersionAhead)` **Added**
16
+ * `sdk.keys.rotate()`: `error.code.enum(riskVersionAhead)` **Added**
17
+ * `sdk.integrations.create()`: `error.code.enum(riskVersionAhead)` **Added**
18
+ * `sdk.integrations.list()`: `error.code.enum(riskVersionAhead)` **Added**
19
+ * `sdk.integrations.delete()`: `error.code.enum(riskVersionAhead)` **Added**
20
+ * `sdk.integrations.rotate()`: `error.code.enum(riskVersionAhead)` **Added**
21
+ * `sdk.webhookEndpoints.list()`: `error.code.enum(riskVersionAhead)` **Added**
22
+ * `sdk.webhookEndpoints.create()`: `error.code.enum(riskVersionAhead)` **Added**
23
+ * `sdk.webhookEndpoints.delete()`: `error.code.enum(riskVersionAhead)` **Added**
24
+ * `sdk.webhookEndpoints.rotateSigningKey()`: `error.code.enum(riskVersionAhead)` **Added**
25
+ * `sdk.webhookEndpoints.sendTestEvent()`: `error.code.enum(riskVersionAhead)` **Added**
26
+ * `sdk.webhookEndpoints.listDeliveries()`: `error.code.enum(riskVersionAhead)` **Added**
27
+ * `sdk.webhookEndpoints.replayDelivery()`: `error.code.enum(riskVersionAhead)` **Added**
28
+
3
29
  ## 6.0.1
4
30
 
5
31
  No changes detected.
@@ -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
+ * Poll the accounts whose risk changed.
13
+ *
14
+ * @remarks
15
+ * Your accounts whose risk changed, oldest change first, each as accounts.get answers it. Every page carries next_cursor: pass it back as changed_since to read the changes made after that page; without changed_since the list starts from the oldest change. When nothing changed, items is empty and next_cursor is the cursor you sent, so poll by calling again with the latest next_cursor. An account appears again each time its risk changes, with a higher risk_version; keep the copy with the highest. unenforced=true lists only accounts with a decision other than allow for some flow and no applied enforcement at their current risk_version; such a page can hold fewer than limit items, or none, while later changes exist, so keep polling with next_cursor. Requires the history scope. Read-only and safe to retry. A tampered or foreign cursor answers 400 invalid_cursor.
16
+ */
17
+ export declare function accountsListChanged(client: NoResponseCore, request?: operations.ListAccountsRequest | undefined, options?: RequestOptions): APIPromise<Result<operations.ListAccountsResponse, errors.BadRequestError | errors.AuthenticationError | errors.PermissionDeniedError | errors.NotFoundError | errors.ConflictError | errors.RateLimitError | NoResponseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=accounts-list-changed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts-list-changed.d.ts","sourceRoot":"","sources":["../../../src/funcs/accounts-list-changed.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,mBAAmB,CACjC,MAAM,EAAE,cAAc,EACtB,OAAO,CAAC,EAAE,UAAU,CAAC,mBAAmB,GAAG,SAAS,EACpD,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,oBAAoB,EAC7B,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,153 @@
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.accountsListChanged = accountsListChanged;
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 operations = __importStar(require("../models/operations/index.js"));
47
+ const async_js_1 = require("../types/async.js");
48
+ /**
49
+ * Poll the accounts whose risk changed.
50
+ *
51
+ * @remarks
52
+ * Your accounts whose risk changed, oldest change first, each as accounts.get answers it. Every page carries next_cursor: pass it back as changed_since to read the changes made after that page; without changed_since the list starts from the oldest change. When nothing changed, items is empty and next_cursor is the cursor you sent, so poll by calling again with the latest next_cursor. An account appears again each time its risk changes, with a higher risk_version; keep the copy with the highest. unenforced=true lists only accounts with a decision other than allow for some flow and no applied enforcement at their current risk_version; such a page can hold fewer than limit items, or none, while later changes exist, so keep polling with next_cursor. Requires the history scope. Read-only and safe to retry. A tampered or foreign cursor answers 400 invalid_cursor.
53
+ */
54
+ function accountsListChanged(client, request, options) {
55
+ return new async_js_1.APIPromise($do(client, request, options));
56
+ }
57
+ async function $do(client, request, options) {
58
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.parse(z.optional(operations.ListAccountsRequest$outboundSchema), value), "Input validation failed");
59
+ if (!parsed.ok) {
60
+ return [parsed, { status: "invalid" }];
61
+ }
62
+ const payload = parsed.value;
63
+ const body = null;
64
+ const path = (0, url_js_1.pathToFunc)("/v1/accounts")();
65
+ const query = (0, encodings_js_1.encodeFormQuery)({
66
+ "changed_since": payload?.changed_since,
67
+ "limit": payload?.limit,
68
+ "unenforced": payload?.unenforced,
69
+ });
70
+ const headers = new Headers((0, primitives_js_1.compactMap)({
71
+ Accept: "application/json",
72
+ }));
73
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
74
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
75
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
76
+ const context = {
77
+ options: client._options,
78
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
79
+ operationID: "listAccounts",
80
+ oAuth2Scopes: null,
81
+ resolvedSecurity: requestSecurity,
82
+ securitySource: client._options.apiKey,
83
+ retryConfig: options?.retries
84
+ || client._options.retryConfig
85
+ || {
86
+ strategy: "backoff",
87
+ backoff: {
88
+ initialInterval: 500,
89
+ maxInterval: 8000,
90
+ exponent: 2,
91
+ maxElapsedTime: 30000,
92
+ },
93
+ retryConnectionErrors: true,
94
+ }
95
+ || { strategy: "none" },
96
+ retryCodes: options?.retryCodes || ["408", "429", "5XX"],
97
+ };
98
+ const requestRes = client._createRequest(context, {
99
+ security: requestSecurity,
100
+ method: "GET",
101
+ baseURL: options?.serverURL,
102
+ path: path,
103
+ headers: headers,
104
+ query: query,
105
+ body: body,
106
+ userAgent: client._options.userAgent,
107
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
108
+ }, options);
109
+ if (!requestRes.ok) {
110
+ return [requestRes, { status: "invalid" }];
111
+ }
112
+ const req = requestRes.value;
113
+ const doResult = await client._do(req, {
114
+ context,
115
+ isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
116
+ retryConfig: context.retryConfig,
117
+ retryCodes: context.retryCodes,
118
+ });
119
+ if (!doResult.ok) {
120
+ return [doResult, { status: "request-error", request: req }];
121
+ }
122
+ const response = doResult.value;
123
+ const responseFields = {
124
+ HttpMeta: { Response: response, Request: req },
125
+ };
126
+ const [result] = await M.match(M.json(200, operations.ListAccountsResponse$inboundSchema, {
127
+ hdrs: true,
128
+ key: "Result",
129
+ }), M.jsonErr(400, errors.BadRequestError$inboundSchema, {
130
+ ctype: "application/problem+json",
131
+ hdrs: true,
132
+ }), M.jsonErr(401, errors.AuthenticationError$inboundSchema, {
133
+ ctype: "application/problem+json",
134
+ hdrs: true,
135
+ }), M.jsonErr(403, errors.PermissionDeniedError$inboundSchema, {
136
+ ctype: "application/problem+json",
137
+ hdrs: true,
138
+ }), M.jsonErr(404, errors.NotFoundError$inboundSchema, {
139
+ ctype: "application/problem+json",
140
+ hdrs: true,
141
+ }), M.jsonErr(409, errors.ConflictError$inboundSchema, {
142
+ ctype: "application/problem+json",
143
+ hdrs: true,
144
+ }), M.jsonErr(429, errors.RateLimitError$inboundSchema, {
145
+ ctype: "application/problem+json",
146
+ hdrs: true,
147
+ }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
148
+ if (!result.ok) {
149
+ return [result, { status: "complete", request: req, response }];
150
+ }
151
+ return [result, { status: "complete", request: req, response }];
152
+ }
153
+ //# sourceMappingURL=accounts-list-changed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts-list-changed.js","sourceRoot":"","sources":["../../../src/funcs/accounts-list-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCA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C,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,iCAAiC,EAAE;QACvD,KAAK,EAAE,0BAA0B;QACjC,IAAI,EAAE,IAAI;KACX,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,mCAAmC,EAAE;QACzD,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,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"}
@@ -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
+ * Record what you did to an account in your identity provider.
13
+ *
14
+ * @remarks
15
+ * Records what you did to the account in your identity provider for one flow's decision at one risk_version: the action (or none), the account's state before it, the provider and whether it was applied or failed. It is your action, not an outcome, and it leaves the account's risk unchanged. A record is kept once per account, risk_version, flow and action: the first report answers 201, and a repeat answers 200 with the stored record unchanged, so retries are safe without an Idempotency-Key. An applied report after a failed one replaces the failed record, keeping its id and created_at, and answers 201. A risk_version older than the account's current one is accepted and stored, but only an applied record at the current risk_version takes the account out of listChanged with unenforced=true; a newer one answers 409 risk_version_ahead. An account with no current risk answers 404 not_found. error_code is allowed only with status failed. Requires the history scope.
16
+ */
17
+ export declare function accountsRecordEnforcement(client: NoResponseCore, request: operations.RecordEnforcementRequest, options?: RequestOptions): APIPromise<Result<operations.RecordEnforcementResponse, errors.BadRequestError | errors.AuthenticationError | errors.PermissionDeniedError | errors.NotFoundError | errors.ConflictError | errors.RateLimitError | NoResponseError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
18
+ //# sourceMappingURL=accounts-record-enforcement.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts-record-enforcement.d.ts","sourceRoot":"","sources":["../../../src/funcs/accounts-record-enforcement.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,yBAAyB,CACvC,MAAM,EAAE,cAAc,EACtB,OAAO,EAAE,UAAU,CAAC,wBAAwB,EAC5C,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,UAAU,CAAC,yBAAyB,EAClC,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,154 @@
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.accountsRecordEnforcement = accountsRecordEnforcement;
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 operations = __importStar(require("../models/operations/index.js"));
47
+ const async_js_1 = require("../types/async.js");
48
+ /**
49
+ * Record what you did to an account in your identity provider.
50
+ *
51
+ * @remarks
52
+ * Records what you did to the account in your identity provider for one flow's decision at one risk_version: the action (or none), the account's state before it, the provider and whether it was applied or failed. It is your action, not an outcome, and it leaves the account's risk unchanged. A record is kept once per account, risk_version, flow and action: the first report answers 201, and a repeat answers 200 with the stored record unchanged, so retries are safe without an Idempotency-Key. An applied report after a failed one replaces the failed record, keeping its id and created_at, and answers 201. A risk_version older than the account's current one is accepted and stored, but only an applied record at the current risk_version takes the account out of listChanged with unenforced=true; a newer one answers 409 risk_version_ahead. An account with no current risk answers 404 not_found. error_code is allowed only with status failed. Requires the history scope.
53
+ */
54
+ function accountsRecordEnforcement(client, request, options) {
55
+ return new async_js_1.APIPromise($do(client, request, options));
56
+ }
57
+ async function $do(client, request, options) {
58
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => z.parse(operations.RecordEnforcementRequest$outboundSchema, value), "Input validation failed");
59
+ if (!parsed.ok) {
60
+ return [parsed, { status: "invalid" }];
61
+ }
62
+ const payload = parsed.value;
63
+ const body = (0, encodings_js_1.encodeJSON)("body", payload.body, { explode: true });
64
+ const pathParams = {
65
+ account_id: (0, encodings_js_1.encodeSimple)("account_id", payload.account_id, {
66
+ explode: false,
67
+ charEncoding: "percent",
68
+ }),
69
+ };
70
+ const path = (0, url_js_1.pathToFunc)("/v1/accounts/{account_id}/enforcements")(pathParams);
71
+ const headers = new Headers((0, primitives_js_1.compactMap)({
72
+ "Content-Type": "application/json",
73
+ Accept: "application/json",
74
+ }));
75
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKey);
76
+ const securityInput = secConfig == null ? {} : { apiKey: secConfig };
77
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
78
+ const context = {
79
+ options: client._options,
80
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
81
+ operationID: "recordEnforcement",
82
+ oAuth2Scopes: null,
83
+ resolvedSecurity: requestSecurity,
84
+ securitySource: client._options.apiKey,
85
+ retryConfig: options?.retries
86
+ || client._options.retryConfig
87
+ || {
88
+ strategy: "backoff",
89
+ backoff: {
90
+ initialInterval: 500,
91
+ maxInterval: 8000,
92
+ exponent: 2,
93
+ maxElapsedTime: 30000,
94
+ },
95
+ retryConnectionErrors: true,
96
+ }
97
+ || { strategy: "none" },
98
+ retryCodes: options?.retryCodes || ["408", "429", "5XX"],
99
+ };
100
+ const requestRes = client._createRequest(context, {
101
+ security: requestSecurity,
102
+ method: "POST",
103
+ baseURL: options?.serverURL,
104
+ path: path,
105
+ headers: headers,
106
+ body: body,
107
+ userAgent: client._options.userAgent,
108
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
109
+ }, options);
110
+ if (!requestRes.ok) {
111
+ return [requestRes, { status: "invalid" }];
112
+ }
113
+ const req = requestRes.value;
114
+ const doResult = await client._do(req, {
115
+ context,
116
+ isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
117
+ retryConfig: context.retryConfig,
118
+ retryCodes: context.retryCodes,
119
+ });
120
+ if (!doResult.ok) {
121
+ return [doResult, { status: "request-error", request: req }];
122
+ }
123
+ const response = doResult.value;
124
+ const responseFields = {
125
+ HttpMeta: { Response: response, Request: req },
126
+ };
127
+ const [result] = await M.match(M.json([200, 201], operations.RecordEnforcementResponse$inboundSchema, {
128
+ hdrs: true,
129
+ key: "Result",
130
+ }), M.jsonErr(400, errors.BadRequestError$inboundSchema, {
131
+ ctype: "application/problem+json",
132
+ hdrs: true,
133
+ }), M.jsonErr(401, errors.AuthenticationError$inboundSchema, {
134
+ ctype: "application/problem+json",
135
+ hdrs: true,
136
+ }), M.jsonErr(403, errors.PermissionDeniedError$inboundSchema, {
137
+ ctype: "application/problem+json",
138
+ hdrs: true,
139
+ }), M.jsonErr(404, errors.NotFoundError$inboundSchema, {
140
+ ctype: "application/problem+json",
141
+ hdrs: true,
142
+ }), M.jsonErr(409, errors.ConflictError$inboundSchema, {
143
+ ctype: "application/problem+json",
144
+ hdrs: true,
145
+ }), M.jsonErr(429, errors.RateLimitError$inboundSchema, {
146
+ ctype: "application/problem+json",
147
+ hdrs: true,
148
+ }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
149
+ if (!result.ok) {
150
+ return [result, { status: "complete", request: req, response }];
151
+ }
152
+ return [result, { status: "complete", request: req, response }];
153
+ }
154
+ //# sourceMappingURL=accounts-record-enforcement.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"accounts-record-enforcement.js","sourceRoot":"","sources":["../../../src/funcs/accounts-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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: "6.0.1";
34
+ readonly sdkVersion: "6.0.2";
35
35
  readonly genVersion: "internal";
36
- readonly userAgent: "noresponse-sdk/typescript 6.0.1 internal 1 @noresponse/node";
36
+ readonly userAgent: "noresponse-sdk/typescript 6.0.2 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: "6.0.1",
31
+ sdkVersion: "6.0.2",
32
32
  genVersion: "internal",
33
- userAgent: "noresponse-sdk/typescript 6.0.1 internal 1 @noresponse/node",
33
+ userAgent: "noresponse-sdk/typescript 6.0.2 internal 1 @noresponse/node",
34
34
  };
35
35
  //# sourceMappingURL=config.js.map
@@ -0,0 +1,18 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { Result as SafeParseResult } from "../types/fp.js";
3
+ import { Account } from "./account.js";
4
+ import { SDKValidationError } from "./errors/sdk-validation-error.js";
5
+ /**
6
+ * Body of the 200 answer to GET /v1/accounts: the calling workspace's accounts whose risk changed after changed_since, in the environment of the calling key, oldest change first. An account is listed when its risk_version advanced and it has a current risk, and each item is the account exactly as GET /v1/accounts/{account_id} answers it. An account appears once per page, at its latest change; when its risk changes again later, it appears again on a later page with the newer risk_version. next_cursor is always present: pass it back as changed_since to read the changes made after this page.
7
+ */
8
+ export type AccountList = {
9
+ items: Array<Account>;
10
+ /**
11
+ * Opaque cursor after the last change this page read, bound to the workspace and the environment of the calling key. Pass it back unchanged as changed_since. It is present on every page, the last one included: when nothing changed after changed_since it is the cursor that was sent, so a poller keeps calling with the latest next_cursor. A tampered or foreign cursor answers 400 invalid_cursor. Consumers do not parse it.
12
+ */
13
+ nextCursor: string;
14
+ };
15
+ /** @internal */
16
+ export declare const AccountList$inboundSchema: z.ZodMiniType<AccountList, unknown>;
17
+ export declare function accountListFromJSON(jsonString: string): SafeParseResult<AccountList, SDKValidationError>;
18
+ //# sourceMappingURL=account-list.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-list.d.ts","sourceRoot":"","sources":["../../../src/models/account-list.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,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,KAAK,CAAC,OAAO,CAAC,CAAC;IACtB;;OAEG;IACH,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yBAAyB,EAAE,CAAC,CAAC,WAAW,CAAC,WAAW,EAAE,OAAO,CAWvE,CAAC;AAEJ,wBAAgB,mBAAmB,CACjC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,WAAW,EAAE,kBAAkB,CAAC,CAMlD"}
@@ -0,0 +1,56 @@
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.AccountList$inboundSchema = void 0;
37
+ exports.accountListFromJSON = accountListFromJSON;
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
+ /** @internal */
44
+ exports.AccountList$inboundSchema = z
45
+ .pipe(z.object({
46
+ items: z.array(account_js_1.Account$inboundSchema),
47
+ next_cursor: types.string(),
48
+ }), z.transform((v) => {
49
+ return (0, primitives_js_1.remap)(v, {
50
+ "next_cursor": "nextCursor",
51
+ });
52
+ }));
53
+ function accountListFromJSON(jsonString) {
54
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.AccountList$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'AccountList' from JSON`);
55
+ }
56
+ //# sourceMappingURL=account-list.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"account-list.js","sourceRoot":"","sources":["../../../src/models/account-list.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,wDAAuD;AACvD,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;AAChD,6CAA8D;AAc9D,gBAAgB;AACH,QAAA,yBAAyB,GAAwC,CAAC;KAC5E,IAAI,CACH,CAAC,CAAC,MAAM,CAAC;IACP,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,kCAAqB,CAAC;IACrC,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,aAAa,EAAE,YAAY;KAC5B,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEJ,6BACE,UAAkB,EACgC;IAClD,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,QAAA,yBAAyB,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACrD,yCAAyC,CAC1C,CAAC;AAAA,CACH"}
@@ -9,6 +9,7 @@ export declare const ConflictErrorCode: {
9
9
  readonly WebhookEndpointLimitReached: "webhook_endpoint_limit_reached";
10
10
  readonly WebhookEndpointUnverified: "webhook_endpoint_unverified";
11
11
  readonly TooManyIntegrations: "too_many_integrations";
12
+ readonly RiskVersionAhead: "risk_version_ahead";
12
13
  };
13
14
  /**
14
15
  * Machine codes an HTTP 409 answer can carry.
@@ -1 +1 @@
1
- {"version":3,"file":"conflict-error-code.d.ts","sourceRoot":"","sources":["../../../src/models/conflict-error-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;CAMpB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,WAAW,CACzD,iBAAiB,EACjB,OAAO,CACqC,CAAC"}
1
+ {"version":3,"file":"conflict-error-code.d.ts","sourceRoot":"","sources":["../../../src/models/conflict-error-code.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,WAAW,CACzD,iBAAiB,EACjB,OAAO,CACqC,CAAC"}
@@ -44,6 +44,7 @@ exports.ConflictErrorCode = {
44
44
  WebhookEndpointLimitReached: "webhook_endpoint_limit_reached",
45
45
  WebhookEndpointUnverified: "webhook_endpoint_unverified",
46
46
  TooManyIntegrations: "too_many_integrations",
47
+ RiskVersionAhead: "risk_version_ahead",
47
48
  };
48
49
  /** @internal */
49
50
  exports.ConflictErrorCode$inboundSchema = openEnums.inboundSchema(exports.ConflictErrorCode);
@@ -1 +1 @@
1
- {"version":3,"file":"conflict-error-code.js","sourceRoot":"","sources":["../../../src/models/conflict-error-code.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAY,SAAS,8CAA0B;AAG/C;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,oBAAoB,EAAE,wBAAwB;IAC9C,qBAAqB,EAAE,0BAA0B;IACjD,2BAA2B,EAAE,gCAAgC;IAC7D,yBAAyB,EAAE,6BAA6B;IACxD,mBAAmB,EAAE,uBAAuB;CACpC,CAAC;AAMX,gBAAgB;AACH,QAAA,+BAA+B,GAGxC,SAAS,CAAC,aAAa,CAAC,QAAA,iBAAiB,CAAC,CAAC"}
1
+ {"version":3,"file":"conflict-error-code.js","sourceRoot":"","sources":["../../../src/models/conflict-error-code.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AACA,MAAY,SAAS,8CAA0B;AAG/C;;GAEG;AACU,QAAA,iBAAiB,GAAG;IAC/B,oBAAoB,EAAE,wBAAwB;IAC9C,qBAAqB,EAAE,0BAA0B;IACjD,2BAA2B,EAAE,gCAAgC;IAC7D,yBAAyB,EAAE,6BAA6B;IACxD,mBAAmB,EAAE,uBAAuB;IAC5C,gBAAgB,EAAE,oBAAoB;CAC9B,CAAC;AAMX,gBAAgB;AACH,QAAA,+BAA+B,GAGxC,SAAS,CAAC,aAAa,CAAC,QAAA,iBAAiB,CAAC,CAAC"}
@@ -0,0 +1,22 @@
1
+ import * as z from "zod/v4-mini";
2
+ import { OpenEnum } from "../types/enums.js";
3
+ /**
4
+ * What the workspace did in its identity provider: revoke_sessions (signed the account out everywhere), restrict (limited what the account can do), unrestrict (lifted an earlier restriction), fail_onboarding (stopped an account that was still onboarding), reject_activation (refused to activate a provisional account) or none (decided to take no action).
5
+ */
6
+ export declare const EnforcementAction: {
7
+ readonly RevokeSessions: "revoke_sessions";
8
+ readonly Restrict: "restrict";
9
+ readonly Unrestrict: "unrestrict";
10
+ readonly FailOnboarding: "fail_onboarding";
11
+ readonly RejectActivation: "reject_activation";
12
+ readonly None: "none";
13
+ };
14
+ /**
15
+ * What the workspace did in its identity provider: revoke_sessions (signed the account out everywhere), restrict (limited what the account can do), unrestrict (lifted an earlier restriction), fail_onboarding (stopped an account that was still onboarding), reject_activation (refused to activate a provisional account) or none (decided to take no action).
16
+ */
17
+ export type EnforcementAction = OpenEnum<typeof EnforcementAction>;
18
+ /** @internal */
19
+ export declare const EnforcementAction$inboundSchema: z.ZodMiniType<EnforcementAction, unknown>;
20
+ /** @internal */
21
+ export declare const EnforcementAction$outboundSchema: z.ZodMiniType<string, EnforcementAction>;
22
+ //# sourceMappingURL=enforcement-action.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"enforcement-action.d.ts","sourceRoot":"","sources":["../../../src/models/enforcement-action.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAEjC,OAAO,EAAE,QAAQ,EAAE,MAAM,mBAAmB,CAAC;AAE7C;;GAEG;AACH,eAAO,MAAM,iBAAiB;;;;;;;CAOpB,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,iBAAiB,GAAG,QAAQ,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAEnE,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,WAAW,CACzD,iBAAiB,EACjB,OAAO,CACqC,CAAC;AAC/C,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,MAAM,EACN,iBAAiB,CAC4B,CAAC"}
@@ -0,0 +1,53 @@
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.EnforcementAction$outboundSchema = exports.EnforcementAction$inboundSchema = exports.EnforcementAction = void 0;
37
+ const openEnums = __importStar(require("../types/enums.js"));
38
+ /**
39
+ * What the workspace did in its identity provider: revoke_sessions (signed the account out everywhere), restrict (limited what the account can do), unrestrict (lifted an earlier restriction), fail_onboarding (stopped an account that was still onboarding), reject_activation (refused to activate a provisional account) or none (decided to take no action).
40
+ */
41
+ exports.EnforcementAction = {
42
+ RevokeSessions: "revoke_sessions",
43
+ Restrict: "restrict",
44
+ Unrestrict: "unrestrict",
45
+ FailOnboarding: "fail_onboarding",
46
+ RejectActivation: "reject_activation",
47
+ None: "none",
48
+ };
49
+ /** @internal */
50
+ exports.EnforcementAction$inboundSchema = openEnums.inboundSchema(exports.EnforcementAction);
51
+ /** @internal */
52
+ exports.EnforcementAction$outboundSchema = openEnums.outboundSchema(exports.EnforcementAction);
53
+ //# sourceMappingURL=enforcement-action.js.map