@noresponse/node 8.0.3 → 8.1.0
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.
- package/CHANGELOG.md +4 -0
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/models/account-risk-changed-event.d.ts +1 -1
- package/dist/commonjs/models/account-risk-changed.d.ts +6 -1
- package/dist/commonjs/models/account-risk-changed.d.ts.map +1 -1
- package/dist/commonjs/models/account-risk-changed.js +5 -0
- package/dist/commonjs/models/account-risk-changed.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/models/account-risk-changed-event.d.ts +1 -1
- package/dist/esm/models/account-risk-changed.d.ts +6 -1
- package/dist/esm/models/account-risk-changed.d.ts.map +1 -1
- package/dist/esm/models/account-risk-changed.js +5 -0
- package/dist/esm/models/account-risk-changed.js.map +1 -1
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -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: "8.0
|
|
34
|
+
readonly sdkVersion: "8.1.0";
|
|
35
35
|
readonly genVersion: "internal";
|
|
36
|
-
readonly userAgent: "noresponse-sdk/typescript 8.0
|
|
36
|
+
readonly userAgent: "noresponse-sdk/typescript 8.1.0 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: "8.0
|
|
31
|
+
sdkVersion: "8.1.0",
|
|
32
32
|
genVersion: "internal",
|
|
33
|
-
userAgent: "noresponse-sdk/typescript 8.0
|
|
33
|
+
userAgent: "noresponse-sdk/typescript 8.1.0 internal 1 @noresponse/node",
|
|
34
34
|
};
|
|
35
35
|
//# sourceMappingURL=config.js.map
|
|
@@ -23,7 +23,7 @@ export type AccountRiskChangedEvent = {
|
|
|
23
23
|
*/
|
|
24
24
|
test?: boolean | undefined;
|
|
25
25
|
/**
|
|
26
|
-
* The account's decision for at least one flow changed. account is the account as GET /v1/accounts/{account_id} answers it for the revision that made the change: its new score, decision, reasons and decisions_by_flow, and the assessment the risk comes from. previous_decisions_by_flow are the decisions it replaced, so account.decisions_by_flow differs from them for at least one flow. On the account's first decision
|
|
26
|
+
* The account's decision for at least one flow changed. account is the account as GET /v1/accounts/{account_id} answers it for the revision that made the change: its new score, decision, reasons and decisions_by_flow, and the assessment the risk comes from. previous_decisions_by_flow are the decisions it replaced, so account.decisions_by_flow differs from them for at least one flow, and previous_risk_version is the risk_version they were announced at. On the account's first event no decision was announced before: previous_risk_version is absent and previous_decisions_by_flow is allow for every flow, the decisions an account has before its first event. Events of one account are not ordered: account.risk_version orders them, so keep the account with the highest risk_version and ignore an event whose account is older than the one held.
|
|
27
27
|
*/
|
|
28
28
|
data: AccountRiskChanged;
|
|
29
29
|
};
|
|
@@ -4,7 +4,7 @@ import { AccountDecisionsByFlow, AccountDecisionsByFlow$Outbound } from "./accou
|
|
|
4
4
|
import { Account, Account$Outbound } from "./account.js";
|
|
5
5
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
6
6
|
/**
|
|
7
|
-
* The account's decision for at least one flow changed. account is the account as GET /v1/accounts/{account_id} answers it for the revision that made the change: its new score, decision, reasons and decisions_by_flow, and the assessment the risk comes from. previous_decisions_by_flow are the decisions it replaced, so account.decisions_by_flow differs from them for at least one flow. On the account's first decision
|
|
7
|
+
* The account's decision for at least one flow changed. account is the account as GET /v1/accounts/{account_id} answers it for the revision that made the change: its new score, decision, reasons and decisions_by_flow, and the assessment the risk comes from. previous_decisions_by_flow are the decisions it replaced, so account.decisions_by_flow differs from them for at least one flow, and previous_risk_version is the risk_version they were announced at. On the account's first event no decision was announced before: previous_risk_version is absent and previous_decisions_by_flow is allow for every flow, the decisions an account has before its first event. Events of one account are not ordered: account.risk_version orders them, so keep the account with the highest risk_version and ignore an event whose account is older than the one held.
|
|
8
8
|
*/
|
|
9
9
|
export type AccountRiskChanged = {
|
|
10
10
|
/**
|
|
@@ -15,6 +15,10 @@ export type AccountRiskChanged = {
|
|
|
15
15
|
* The decision for each flow: the account's score under that flow's thresholds. A flow the workspace has not set uses its account_creation thresholds, so the flows differ only where it set them. The flow of the current assessment is held while that flow's admission is held and the assessment's investigation has not completed.
|
|
16
16
|
*/
|
|
17
17
|
previousDecisionsByFlow: AccountDecisionsByFlow;
|
|
18
|
+
/**
|
|
19
|
+
* The account's risk_version when previous_decisions_by_flow were announced, always lower than account.risk_version. Absent on the account's first event, when no decision was announced before, and on the first event after the account was deleted.
|
|
20
|
+
*/
|
|
21
|
+
previousRiskVersion?: number | undefined;
|
|
18
22
|
};
|
|
19
23
|
/** @internal */
|
|
20
24
|
export declare const AccountRiskChanged$inboundSchema: z.ZodMiniType<AccountRiskChanged, unknown>;
|
|
@@ -22,6 +26,7 @@ export declare const AccountRiskChanged$inboundSchema: z.ZodMiniType<AccountRisk
|
|
|
22
26
|
export type AccountRiskChanged$Outbound = {
|
|
23
27
|
account: Account$Outbound;
|
|
24
28
|
previous_decisions_by_flow: AccountDecisionsByFlow$Outbound;
|
|
29
|
+
previous_risk_version?: number | undefined;
|
|
25
30
|
};
|
|
26
31
|
/** @internal */
|
|
27
32
|
export declare const AccountRiskChanged$outboundSchema: z.ZodMiniType<AccountRiskChanged$Outbound, AccountRiskChanged>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-risk-changed.d.ts","sourceRoot":"","sources":["../../../src/models/account-risk-changed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM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D"}
|
|
@@ -39,24 +39,29 @@ exports.accountRiskChangedFromJSON = accountRiskChangedFromJSON;
|
|
|
39
39
|
const z = __importStar(require("zod/v4-mini"));
|
|
40
40
|
const primitives_js_1 = require("../lib/primitives.js");
|
|
41
41
|
const schemas_js_1 = require("../lib/schemas.js");
|
|
42
|
+
const types = __importStar(require("../types/primitives.js"));
|
|
42
43
|
const account_decisions_by_flow_js_1 = require("./account-decisions-by-flow.js");
|
|
43
44
|
const account_js_1 = require("./account.js");
|
|
44
45
|
/** @internal */
|
|
45
46
|
exports.AccountRiskChanged$inboundSchema = z.pipe(z.object({
|
|
46
47
|
account: account_js_1.Account$inboundSchema,
|
|
47
48
|
previous_decisions_by_flow: account_decisions_by_flow_js_1.AccountDecisionsByFlow$inboundSchema,
|
|
49
|
+
previous_risk_version: types.optional(types.number()),
|
|
48
50
|
}), z.transform((v) => {
|
|
49
51
|
return (0, primitives_js_1.remap)(v, {
|
|
50
52
|
"previous_decisions_by_flow": "previousDecisionsByFlow",
|
|
53
|
+
"previous_risk_version": "previousRiskVersion",
|
|
51
54
|
});
|
|
52
55
|
}));
|
|
53
56
|
/** @internal */
|
|
54
57
|
exports.AccountRiskChanged$outboundSchema = z.pipe(z.object({
|
|
55
58
|
account: account_js_1.Account$outboundSchema,
|
|
56
59
|
previousDecisionsByFlow: account_decisions_by_flow_js_1.AccountDecisionsByFlow$outboundSchema,
|
|
60
|
+
previousRiskVersion: z.optional(z.int()),
|
|
57
61
|
}), z.transform((v) => {
|
|
58
62
|
return (0, primitives_js_1.remap)(v, {
|
|
59
63
|
previousDecisionsByFlow: "previous_decisions_by_flow",
|
|
64
|
+
previousRiskVersion: "previous_risk_version",
|
|
60
65
|
});
|
|
61
66
|
}));
|
|
62
67
|
function accountRiskChangedToJSON(accountRiskChanged) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-risk-changed.js","sourceRoot":"","sources":["../../../src/models/account-risk-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,wDAAuD;AACvD,kDAA8C;AAE9C,iFAKwC;AACxC,6CAKsB;
|
|
1
|
+
{"version":3,"file":"account-risk-changed.js","sourceRoot":"","sources":["../../../src/models/account-risk-changed.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA,MAAY,CAAC,wCAAoB;AACjC,wDAAuD;AACvD,kDAA8C;AAE9C,MAAY,KAAK,mDAA+B;AAChD,iFAKwC;AACxC,6CAKsB;AAqBtB,gBAAgB;AACH,QAAA,gCAAgC,GAGzC,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,kCAAqB;IAC9B,0BAA0B,EAAE,mEAAoC;IAChE,qBAAqB,EAAE,KAAK,CAAC,QAAQ,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC;CACtD,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,4BAA4B,EAAE,yBAAyB;QACvD,uBAAuB,EAAE,qBAAqB;KAC/C,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAQF,gBAAgB;AACH,QAAA,iCAAiC,GAG1C,CAAC,CAAC,IAAI,CACR,CAAC,CAAC,MAAM,CAAC;IACP,OAAO,EAAE,mCAAsB;IAC/B,uBAAuB,EAAE,oEAAqC;IAC9D,mBAAmB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CACzC,CAAC,EACF,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,uBAAuB,EAAE,4BAA4B;QACrD,mBAAmB,EAAE,uBAAuB;KAC7C,CAAC,CAAC;AAAA,CACJ,CAAC,CACH,CAAC;AAEF,kCACE,kBAAsC,EAC9B;IACR,OAAO,IAAI,CAAC,SAAS,CACnB,QAAA,iCAAiC,CAAC,KAAK,CAAC,kBAAkB,CAAC,CAC5D,CAAC;AAAA,CACH;AACD,oCACE,UAAkB,EACuC;IACzD,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,QAAA,gCAAgC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC5D,gDAAgD,CACjD,CAAC;AAAA,CACH"}
|
package/dist/esm/lib/config.d.ts
CHANGED
|
@@ -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: "8.0
|
|
34
|
+
readonly sdkVersion: "8.1.0";
|
|
35
35
|
readonly genVersion: "internal";
|
|
36
|
-
readonly userAgent: "noresponse-sdk/typescript 8.0
|
|
36
|
+
readonly userAgent: "noresponse-sdk/typescript 8.1.0 internal 1 @noresponse/node";
|
|
37
37
|
};
|
|
38
38
|
//# sourceMappingURL=config.d.ts.map
|
package/dist/esm/lib/config.js
CHANGED
|
@@ -24,8 +24,8 @@ export function serverURLFromOptions(options) {
|
|
|
24
24
|
export const SDK_METADATA = {
|
|
25
25
|
language: "typescript",
|
|
26
26
|
openapiDocVersion: "1",
|
|
27
|
-
sdkVersion: "8.0
|
|
27
|
+
sdkVersion: "8.1.0",
|
|
28
28
|
genVersion: "internal",
|
|
29
|
-
userAgent: "noresponse-sdk/typescript 8.0
|
|
29
|
+
userAgent: "noresponse-sdk/typescript 8.1.0 internal 1 @noresponse/node",
|
|
30
30
|
};
|
|
31
31
|
//# sourceMappingURL=config.js.map
|
|
@@ -23,7 +23,7 @@ export type AccountRiskChangedEvent = {
|
|
|
23
23
|
*/
|
|
24
24
|
test?: boolean | undefined;
|
|
25
25
|
/**
|
|
26
|
-
* The account's decision for at least one flow changed. account is the account as GET /v1/accounts/{account_id} answers it for the revision that made the change: its new score, decision, reasons and decisions_by_flow, and the assessment the risk comes from. previous_decisions_by_flow are the decisions it replaced, so account.decisions_by_flow differs from them for at least one flow. On the account's first decision
|
|
26
|
+
* The account's decision for at least one flow changed. account is the account as GET /v1/accounts/{account_id} answers it for the revision that made the change: its new score, decision, reasons and decisions_by_flow, and the assessment the risk comes from. previous_decisions_by_flow are the decisions it replaced, so account.decisions_by_flow differs from them for at least one flow, and previous_risk_version is the risk_version they were announced at. On the account's first event no decision was announced before: previous_risk_version is absent and previous_decisions_by_flow is allow for every flow, the decisions an account has before its first event. Events of one account are not ordered: account.risk_version orders them, so keep the account with the highest risk_version and ignore an event whose account is older than the one held.
|
|
27
27
|
*/
|
|
28
28
|
data: AccountRiskChanged;
|
|
29
29
|
};
|
|
@@ -4,7 +4,7 @@ import { AccountDecisionsByFlow, AccountDecisionsByFlow$Outbound } from "./accou
|
|
|
4
4
|
import { Account, Account$Outbound } from "./account.js";
|
|
5
5
|
import { SDKValidationError } from "./errors/sdk-validation-error.js";
|
|
6
6
|
/**
|
|
7
|
-
* The account's decision for at least one flow changed. account is the account as GET /v1/accounts/{account_id} answers it for the revision that made the change: its new score, decision, reasons and decisions_by_flow, and the assessment the risk comes from. previous_decisions_by_flow are the decisions it replaced, so account.decisions_by_flow differs from them for at least one flow. On the account's first decision
|
|
7
|
+
* The account's decision for at least one flow changed. account is the account as GET /v1/accounts/{account_id} answers it for the revision that made the change: its new score, decision, reasons and decisions_by_flow, and the assessment the risk comes from. previous_decisions_by_flow are the decisions it replaced, so account.decisions_by_flow differs from them for at least one flow, and previous_risk_version is the risk_version they were announced at. On the account's first event no decision was announced before: previous_risk_version is absent and previous_decisions_by_flow is allow for every flow, the decisions an account has before its first event. Events of one account are not ordered: account.risk_version orders them, so keep the account with the highest risk_version and ignore an event whose account is older than the one held.
|
|
8
8
|
*/
|
|
9
9
|
export type AccountRiskChanged = {
|
|
10
10
|
/**
|
|
@@ -15,6 +15,10 @@ export type AccountRiskChanged = {
|
|
|
15
15
|
* The decision for each flow: the account's score under that flow's thresholds. A flow the workspace has not set uses its account_creation thresholds, so the flows differ only where it set them. The flow of the current assessment is held while that flow's admission is held and the assessment's investigation has not completed.
|
|
16
16
|
*/
|
|
17
17
|
previousDecisionsByFlow: AccountDecisionsByFlow;
|
|
18
|
+
/**
|
|
19
|
+
* The account's risk_version when previous_decisions_by_flow were announced, always lower than account.risk_version. Absent on the account's first event, when no decision was announced before, and on the first event after the account was deleted.
|
|
20
|
+
*/
|
|
21
|
+
previousRiskVersion?: number | undefined;
|
|
18
22
|
};
|
|
19
23
|
/** @internal */
|
|
20
24
|
export declare const AccountRiskChanged$inboundSchema: z.ZodMiniType<AccountRiskChanged, unknown>;
|
|
@@ -22,6 +26,7 @@ export declare const AccountRiskChanged$inboundSchema: z.ZodMiniType<AccountRisk
|
|
|
22
26
|
export type AccountRiskChanged$Outbound = {
|
|
23
27
|
account: Account$Outbound;
|
|
24
28
|
previous_decisions_by_flow: AccountDecisionsByFlow$Outbound;
|
|
29
|
+
previous_risk_version?: number | undefined;
|
|
25
30
|
};
|
|
26
31
|
/** @internal */
|
|
27
32
|
export declare const AccountRiskChanged$outboundSchema: z.ZodMiniType<AccountRiskChanged$Outbound, AccountRiskChanged>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-risk-changed.d.ts","sourceRoot":"","sources":["../../../src/models/account-risk-changed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"account-risk-changed.d.ts","sourceRoot":"","sources":["../../../src/models/account-risk-changed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AAGjC,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,gBAAgB,CAAC;AAE3D,OAAO,EACL,sBAAsB,EAEtB,+BAA+B,EAEhC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EACL,OAAO,EAEP,gBAAgB,EAEjB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,kBAAkB,EAAE,MAAM,kCAAkC,CAAC;AAEtE;;GAEG;AACH,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,OAAO,EAAE,OAAO,CAAC;IACjB;;OAEG;IACH,uBAAuB,EAAE,sBAAsB,CAAC;IAChD;;OAEG;IACH,mBAAmB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,WAAW,CAC1D,kBAAkB,EAClB,OAAO,CAaR,CAAC;AACF,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,OAAO,EAAE,gBAAgB,CAAC;IAC1B,0BAA0B,EAAE,+BAA+B,CAAC;IAC5D,qBAAqB,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,WAAW,CAC3D,2BAA2B,EAC3B,kBAAkB,CAanB,CAAC;AAEF,wBAAgB,wBAAwB,CACtC,kBAAkB,EAAE,kBAAkB,GACrC,MAAM,CAIR;AACD,wBAAgB,0BAA0B,CACxC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kBAAkB,EAAE,kBAAkB,CAAC,CAMzD"}
|
|
@@ -1,24 +1,29 @@
|
|
|
1
1
|
import * as z from "zod/v4-mini";
|
|
2
2
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
3
3
|
import { safeParse } from "../lib/schemas.js";
|
|
4
|
+
import * as types from "../types/primitives.js";
|
|
4
5
|
import { AccountDecisionsByFlow$inboundSchema, AccountDecisionsByFlow$outboundSchema, } from "./account-decisions-by-flow.js";
|
|
5
6
|
import { Account$inboundSchema, Account$outboundSchema, } from "./account.js";
|
|
6
7
|
/** @internal */
|
|
7
8
|
export const AccountRiskChanged$inboundSchema = z.pipe(z.object({
|
|
8
9
|
account: Account$inboundSchema,
|
|
9
10
|
previous_decisions_by_flow: AccountDecisionsByFlow$inboundSchema,
|
|
11
|
+
previous_risk_version: types.optional(types.number()),
|
|
10
12
|
}), z.transform((v) => {
|
|
11
13
|
return remap$(v, {
|
|
12
14
|
"previous_decisions_by_flow": "previousDecisionsByFlow",
|
|
15
|
+
"previous_risk_version": "previousRiskVersion",
|
|
13
16
|
});
|
|
14
17
|
}));
|
|
15
18
|
/** @internal */
|
|
16
19
|
export const AccountRiskChanged$outboundSchema = z.pipe(z.object({
|
|
17
20
|
account: Account$outboundSchema,
|
|
18
21
|
previousDecisionsByFlow: AccountDecisionsByFlow$outboundSchema,
|
|
22
|
+
previousRiskVersion: z.optional(z.int()),
|
|
19
23
|
}), z.transform((v) => {
|
|
20
24
|
return remap$(v, {
|
|
21
25
|
previousDecisionsByFlow: "previous_decisions_by_flow",
|
|
26
|
+
previousRiskVersion: "previous_risk_version",
|
|
22
27
|
});
|
|
23
28
|
}));
|
|
24
29
|
export function accountRiskChangedToJSON(accountRiskChanged) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"account-risk-changed.js","sourceRoot":"","sources":["../../../src/models/account-risk-changed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,aAAa,CAAC;AACjC,OAAO,EAAE,KAAK,IAAI,MAAM,EAAE,MAAM,sBAAsB,CAAC;AACvD,OAAO,EAAE,SAAS,EAAE,MAAM,mBAAmB,CAAC;AAE9C,OAAO,EAEL,oCAAoC,EAEpC,qCAAqC,GACtC,MAAM,gCAAgC,CAAC;AACxC,OAAO,EAEL,qBAAqB,EAErB,sBAAsB,GACvB,MAAM,cAAc,CAAC;
|
|
1
|
+
{"version":3,"file":"account-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