@riocrypto/common 1.0.2596 → 1.0.2600

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/build/index.d.ts CHANGED
@@ -300,6 +300,8 @@ export * from "./types/address-check-result";
300
300
  export * from "./types/fireblocks-vault";
301
301
  export * from "./types/fireblocks-transfer";
302
302
  export * from "./types/user-type";
303
+ export * from "./types/compliance-tree-user";
304
+ export * from "./types/compliance-step-type";
303
305
  export * from "./types/platform-fee-range";
304
306
  export * from "./types/api-key";
305
307
  export * from "./types/authorization-type";
@@ -480,8 +482,10 @@ export * from "./types/compliance-rule";
480
482
  export * from "./types/compliance-rule-result";
481
483
  export * from "./types/compliance-rule-result-status";
482
484
  export * from "./types/compliance-rule-outcome";
485
+ export * from "./types/compliance-rule-set";
483
486
  export * from "./types/compliance-session";
484
487
  export * from "./types/compliance-session-status";
488
+ export * from "./types/compliance-user-cache";
485
489
  export * from "./types/position";
486
490
  export * from "./types/residual";
487
491
  export * from "./types/liquidity-sourcing-plan";
package/build/index.js CHANGED
@@ -316,6 +316,8 @@ __exportStar(require("./types/address-check-result"), exports);
316
316
  __exportStar(require("./types/fireblocks-vault"), exports);
317
317
  __exportStar(require("./types/fireblocks-transfer"), exports);
318
318
  __exportStar(require("./types/user-type"), exports);
319
+ __exportStar(require("./types/compliance-tree-user"), exports);
320
+ __exportStar(require("./types/compliance-step-type"), exports);
319
321
  __exportStar(require("./types/platform-fee-range"), exports);
320
322
  __exportStar(require("./types/api-key"), exports);
321
323
  __exportStar(require("./types/authorization-type"), exports);
@@ -496,8 +498,10 @@ __exportStar(require("./types/compliance-rule"), exports);
496
498
  __exportStar(require("./types/compliance-rule-result"), exports);
497
499
  __exportStar(require("./types/compliance-rule-result-status"), exports);
498
500
  __exportStar(require("./types/compliance-rule-outcome"), exports);
501
+ __exportStar(require("./types/compliance-rule-set"), exports);
499
502
  __exportStar(require("./types/compliance-session"), exports);
500
503
  __exportStar(require("./types/compliance-session-status"), exports);
504
+ __exportStar(require("./types/compliance-user-cache"), exports);
501
505
  __exportStar(require("./types/position"), exports);
502
506
  __exportStar(require("./types/residual"), exports);
503
507
  __exportStar(require("./types/liquidity-sourcing-plan"), exports);
@@ -1,5 +1,6 @@
1
1
  export declare enum ComplianceRuleOutcome {
2
2
  Pass = "pass",
3
+ Fail = "fail",
3
4
  Alert = "alert",
4
5
  Error = "error",
5
6
  Warning = "warning",
@@ -4,6 +4,10 @@ exports.ComplianceRuleOutcome = void 0;
4
4
  var ComplianceRuleOutcome;
5
5
  (function (ComplianceRuleOutcome) {
6
6
  ComplianceRuleOutcome["Pass"] = "pass";
7
+ // Simple-rule failure. The current LLM prompt asks for "Pass" or "Fail";
8
+ // historical sessions stored the same idea as "alert" so consumers should
9
+ // treat both values as a failure when rendering or aggregating outcomes.
10
+ ComplianceRuleOutcome["Fail"] = "fail";
7
11
  ComplianceRuleOutcome["Alert"] = "alert";
8
12
  ComplianceRuleOutcome["Error"] = "error";
9
13
  ComplianceRuleOutcome["Warning"] = "warning";
@@ -1,5 +1,6 @@
1
1
  import { ComplianceRuleResultStatus } from "./compliance-rule-result-status";
2
2
  import { ComplianceRuleOutcome } from "./compliance-rule-outcome";
3
+ import { ComplianceStepType } from "./compliance-step-type";
3
4
  export interface ComplianceRuleResult {
4
5
  id: string;
5
6
  sessionId: string;
@@ -7,6 +8,7 @@ export interface ComplianceRuleResult {
7
8
  name: string;
8
9
  status: ComplianceRuleResultStatus;
9
10
  prompt: string;
11
+ stepType: ComplianceStepType;
10
12
  data?: string;
11
13
  details?: string;
12
14
  outcome?: ComplianceRuleOutcome;
@@ -0,0 +1,10 @@
1
+ export interface ComplianceRuleSet {
2
+ id: string;
3
+ country: string;
4
+ ruleType: string;
5
+ name: string;
6
+ description?: string;
7
+ isDefault: boolean;
8
+ createdAt: Date;
9
+ updatedAt: Date;
10
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,7 +1,10 @@
1
+ import { ComplianceStepType } from "./compliance-step-type";
1
2
  export interface ComplianceRule {
2
3
  id: string;
4
+ ruleSetId?: string;
3
5
  country: string;
4
6
  name: string;
5
7
  prompt: string;
6
8
  ruleType: string;
9
+ stepType: ComplianceStepType;
7
10
  }
@@ -8,4 +8,8 @@ export interface ComplianceSession {
8
8
  status: ComplianceSessionStatus;
9
9
  transcript: string;
10
10
  modelName: string;
11
+ startedBy?: string;
12
+ startedByName?: string;
13
+ ruleSetId?: string;
14
+ ruleSetName?: string;
11
15
  }
@@ -0,0 +1,5 @@
1
+ export declare enum ComplianceStepType {
2
+ Extraction = "extraction",
3
+ Simple = "simple",
4
+ Complex = "complex"
5
+ }
@@ -0,0 +1,9 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ComplianceStepType = void 0;
4
+ var ComplianceStepType;
5
+ (function (ComplianceStepType) {
6
+ ComplianceStepType["Extraction"] = "extraction";
7
+ ComplianceStepType["Simple"] = "simple";
8
+ ComplianceStepType["Complex"] = "complex";
9
+ })(ComplianceStepType = exports.ComplianceStepType || (exports.ComplianceStepType = {}));
@@ -0,0 +1,11 @@
1
+ import { Country } from "./country";
2
+ import { OnboardingStatus } from "./onboarding-status";
3
+ import { UserType } from "./user-type";
4
+ export type ComplianceTreeUser = {
5
+ id: string;
6
+ type: UserType;
7
+ country: Country;
8
+ displayName: string;
9
+ email?: string;
10
+ onboardingStatus?: OnboardingStatus;
11
+ };
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ export interface ComplianceUserCacheDocument {
2
+ fileName: string;
3
+ text: string;
4
+ }
5
+ export interface ComplianceUserCache {
6
+ id: string;
7
+ userId: string;
8
+ profileJson: string;
9
+ documents: ComplianceUserCacheDocument[];
10
+ updatedAt: Date;
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riocrypto/common",
3
- "version": "1.0.2596",
3
+ "version": "1.0.2600",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",