@riocrypto/common 1.0.2687 → 1.0.2689

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.
@@ -0,0 +1,11 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface InformationRequestDocumentUploadedEvent {
3
+ subject: Subjects.InformationRequestDocumentUploaded;
4
+ data: {
5
+ userId: string;
6
+ email: string;
7
+ label: string;
8
+ fileName: string;
9
+ uploadedAt: string;
10
+ };
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -0,0 +1,11 @@
1
+ import { Subjects } from "./subjects";
2
+ export interface MalwareDetectedEvent {
3
+ subject: Subjects.MalwareDetected;
4
+ data: {
5
+ userId: string;
6
+ fileName: string;
7
+ signature?: string;
8
+ source: string;
9
+ detectedAt: string;
10
+ };
11
+ }
@@ -0,0 +1,2 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -234,5 +234,7 @@ export declare enum Subjects {
234
234
  PostSettlementPayoutFailed = "postSettlementPayout:failed",
235
235
  UserOnboardingReadyForReviewSlackMessageSent = "userOnboardingReadyForReview:slackMessageSent",
236
236
  ComplianceSessionCompleted = "complianceSession:completed",
237
- MainPricingProviderOffline = "mainPricingProvider:offline"
237
+ MainPricingProviderOffline = "mainPricingProvider:offline",
238
+ MalwareDetected = "malware:detected",
239
+ InformationRequestDocumentUploaded = "informationRequestDocument:uploaded"
238
240
  }
@@ -239,4 +239,6 @@ var Subjects;
239
239
  Subjects["UserOnboardingReadyForReviewSlackMessageSent"] = "userOnboardingReadyForReview:slackMessageSent";
240
240
  Subjects["ComplianceSessionCompleted"] = "complianceSession:completed";
241
241
  Subjects["MainPricingProviderOffline"] = "mainPricingProvider:offline";
242
+ Subjects["MalwareDetected"] = "malware:detected";
243
+ Subjects["InformationRequestDocumentUploaded"] = "informationRequestDocument:uploaded";
242
244
  })(Subjects = exports.Subjects || (exports.Subjects = {}));
package/build/index.d.ts CHANGED
@@ -264,6 +264,8 @@ export * from "./events/binance-rfq-order-settlement-completed-event";
264
264
  export * from "./events/bank-account-verification-actual-account-holder-name-obtained-event";
265
265
  export * from "./events/user-onboarding-ready-for-review-slack-message-sent-event";
266
266
  export * from "./events/compliance-session-completed-event";
267
+ export * from "./events/malware-detected-event";
268
+ export * from "./events/information-request-document-uploaded-event";
267
269
  export * from "./types/auth-payload";
268
270
  export * from "./types/admin-auth-payload";
269
271
  export * from "./types/admin-auth";
@@ -511,6 +513,7 @@ export * from "./types/liquidity-sourcing-settings";
511
513
  export * from "./types/stablecoin-type";
512
514
  export * from "./types/static-bank-payment-reference";
513
515
  export * from "./types/indicative-quote-page";
516
+ export * from "./types/information-request-link";
514
517
  export * from "./types/cancelled-order-pnl-entry";
515
518
  export * from "./types/cancelled-order-pnl-report";
516
519
  export * from "./types/banner-announcement";
package/build/index.js CHANGED
@@ -280,6 +280,8 @@ __exportStar(require("./events/binance-rfq-order-settlement-completed-event"), e
280
280
  __exportStar(require("./events/bank-account-verification-actual-account-holder-name-obtained-event"), exports);
281
281
  __exportStar(require("./events/user-onboarding-ready-for-review-slack-message-sent-event"), exports);
282
282
  __exportStar(require("./events/compliance-session-completed-event"), exports);
283
+ __exportStar(require("./events/malware-detected-event"), exports);
284
+ __exportStar(require("./events/information-request-document-uploaded-event"), exports);
283
285
  __exportStar(require("./types/auth-payload"), exports);
284
286
  __exportStar(require("./types/admin-auth-payload"), exports);
285
287
  __exportStar(require("./types/admin-auth"), exports);
@@ -527,6 +529,7 @@ __exportStar(require("./types/liquidity-sourcing-settings"), exports);
527
529
  __exportStar(require("./types/stablecoin-type"), exports);
528
530
  __exportStar(require("./types/static-bank-payment-reference"), exports);
529
531
  __exportStar(require("./types/indicative-quote-page"), exports);
532
+ __exportStar(require("./types/information-request-link"), exports);
530
533
  __exportStar(require("./types/cancelled-order-pnl-entry"), exports);
531
534
  __exportStar(require("./types/cancelled-order-pnl-report"), exports);
532
535
  __exportStar(require("./types/banner-announcement"), exports);
@@ -13,6 +13,10 @@ export interface IndicativeQuoteAuthPayload {
13
13
  email: string;
14
14
  pageId: string;
15
15
  }
16
+ export interface InformationRequestAuthPayload {
17
+ email: string;
18
+ linkToken: string;
19
+ }
16
20
  export interface PhoneVerifiedPayload {
17
21
  phoneNumber: string;
18
22
  purpose?: "signin" | "signup" | "reset" | "verify-action";
@@ -8,6 +8,7 @@ export declare enum AuthorizationType {
8
8
  Cluster = "cluster",
9
9
  Public = "public",
10
10
  IndicativeQuoteAuth = "indicativeQuoteAuth",
11
+ InformationRequestAuth = "informationRequestAuth",
11
12
  FXPricePusher = "fxPricePusher",
12
13
  AdminAPIKey = "adminAPIKey"
13
14
  }
@@ -12,6 +12,7 @@ var AuthorizationType;
12
12
  AuthorizationType["Cluster"] = "cluster";
13
13
  AuthorizationType["Public"] = "public";
14
14
  AuthorizationType["IndicativeQuoteAuth"] = "indicativeQuoteAuth";
15
+ AuthorizationType["InformationRequestAuth"] = "informationRequestAuth";
15
16
  AuthorizationType["FXPricePusher"] = "fxPricePusher";
16
17
  AuthorizationType["AdminAPIKey"] = "adminAPIKey";
17
18
  })(AuthorizationType = exports.AuthorizationType || (exports.AuthorizationType = {}));
@@ -0,0 +1,19 @@
1
+ export interface InformationRequestUpload {
2
+ label: string;
3
+ fileName: string;
4
+ email: string;
5
+ uploadedAt: Date;
6
+ sizeBytes: number;
7
+ aipriseDocumentId?: string;
8
+ }
9
+ export interface InformationRequestLink {
10
+ id: string;
11
+ userId: string;
12
+ token: string;
13
+ allowedEmails: string[];
14
+ revokedAt?: Date;
15
+ createdBy: string;
16
+ createdAt: Date;
17
+ updatedAt: Date;
18
+ uploads: InformationRequestUpload[];
19
+ }
@@ -0,0 +1,12 @@
1
+ "use strict";
2
+ // A standing link that lets a customer send compliance what it has asked them
3
+ // for, instead of emailing it over for someone to re-upload by hand.
4
+ //
5
+ // One link per user, and it does not expire: due diligence recurs over the
6
+ // life of an account, so the same link is reused for each request rather than
7
+ // reissued. What is being asked for is communicated by email; the link itself
8
+ // is open-ended and the customer labels whatever they send.
9
+ //
10
+ // Today that means documents. The naming is deliberately not document-specific
11
+ // so the same link can later carry free-text answers or identity checks.
12
+ 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.2687",
3
+ "version": "1.0.2689",
4
4
  "description": "",
5
5
  "main": "./build/index.js",
6
6
  "types": "./build/index.d.ts",