From 8f2fa113f409dfad9786b7fd10b6e085daeb1065 Mon Sep 17 00:00:00 2001 From: Leonardo Adriano Date: Wed, 20 Mar 2024 13:31:43 -0300 Subject: [PATCH] Feature/mixed verification method (#63) * feat: added mixed verification method * feat: added mixed verification method --- .trunk/.gitignore | 8 +++++++ .trunk/configs/.markdownlint.yaml | 10 +++++++++ .trunk/configs/.yamllint.yaml | 10 +++++++++ .trunk/trunk.yaml | 36 +++++++++++++++++++++++++++++++ build/src/enums.d.ts | 3 ++- build/src/enums.d.ts.map | 2 +- build/src/enums.js | 1 + build/src/enums.js.map | 2 +- src/enums.ts | 3 ++- 9 files changed, 71 insertions(+), 4 deletions(-) create mode 100644 .trunk/.gitignore create mode 100644 .trunk/configs/.markdownlint.yaml create mode 100644 .trunk/configs/.yamllint.yaml create mode 100644 .trunk/trunk.yaml diff --git a/.trunk/.gitignore b/.trunk/.gitignore new file mode 100644 index 0000000..1e24652 --- /dev/null +++ b/.trunk/.gitignore @@ -0,0 +1,8 @@ +*out +*logs +*actions +*notifications +*tools +plugins +user_trunk.yaml +user.yaml diff --git a/.trunk/configs/.markdownlint.yaml b/.trunk/configs/.markdownlint.yaml new file mode 100644 index 0000000..fb94039 --- /dev/null +++ b/.trunk/configs/.markdownlint.yaml @@ -0,0 +1,10 @@ +# Autoformatter friendly markdownlint config (all formatting rules disabled) +default: true +blank_lines: false +bullet: false +html: false +indentation: false +line_length: false +spaces: false +url: false +whitespace: false diff --git a/.trunk/configs/.yamllint.yaml b/.trunk/configs/.yamllint.yaml new file mode 100644 index 0000000..4d44466 --- /dev/null +++ b/.trunk/configs/.yamllint.yaml @@ -0,0 +1,10 @@ +rules: + quoted-strings: + required: only-when-needed + extra-allowed: ["{|}"] + empty-values: + forbid-in-block-mappings: true + forbid-in-flow-mappings: true + key-duplicates: {} + octal-values: + forbid-implicit-octal: true diff --git a/.trunk/trunk.yaml b/.trunk/trunk.yaml new file mode 100644 index 0000000..a5cc753 --- /dev/null +++ b/.trunk/trunk.yaml @@ -0,0 +1,36 @@ +# This file controls the behavior of Trunk: https://docs.trunk.io/cli +# To learn more about the format of this file, see https://docs.trunk.io/reference/trunk-yaml +version: 0.1 +cli: + version: 1.18.1 +# Trunk provides extensibility via plugins. (https://docs.trunk.io/plugins) +plugins: + sources: + - id: trunk + ref: v1.4.5 + uri: https://github.com/trunk-io/plugins +# Many linters and tools depend on runtimes - configure them here. (https://docs.trunk.io/runtimes) +runtimes: + enabled: + - node@18.12.1 + - python@3.10.8 +# This is the section where you manage your linters. (https://docs.trunk.io/check/configuration) +lint: + enabled: + - actionlint@1.6.26 + - checkov@3.1.38 + - eslint@8.56.0 + - git-diff-check + - markdownlint@0.38.0 + - osv-scanner@1.5.0 + - prettier@3.1.1 + - trivy@0.48.1 + - trufflehog@3.63.5 + - yamllint@1.33.0 +actions: + disabled: + - trunk-announce + - trunk-check-pre-push + - trunk-fmt-pre-commit + enabled: + - trunk-upgrade-available diff --git a/build/src/enums.d.ts b/build/src/enums.d.ts index b94cb85..d77d04e 100644 --- a/build/src/enums.d.ts +++ b/build/src/enums.d.ts @@ -36,7 +36,8 @@ export declare enum InputFormatEnum { export declare enum CredentialVerificationMethodEnum { SELF_ATTESTED = "self_attested", PHONE_CARRIER = "phone_carrier", - OTP = "otp" + OTP = "otp", + MIXED = "mixed" } export declare enum UserIdentifierTypeEnum { EMAIL = "EMAIL", diff --git a/build/src/enums.d.ts.map b/build/src/enums.d.ts.map index 35fd4b7..2a459e6 100644 --- a/build/src/enums.d.ts.map +++ b/build/src/enums.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,EAAE,OAAO;IACT,YAAY,iBAAiB;CAC9B;AAED,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,aAAa,kBAAkB;IAC/B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,cAAc,mBAAmB;CAClC;AAED;;GAEG;AACH,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,KAAK,UAAU;CAChB;AAED;;GAEG;AACH,oBAAY,gCAAgC;IAC1C,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,GAAG,QAAQ;CACZ;AAED,oBAAY,sBAAsB;IAChC,KAAK,UAAU;IACf,KAAK,UAAU;CAChB"} \ No newline at end of file +{"version":3,"file":"enums.d.ts","sourceRoot":"","sources":["../../src/enums.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,oBAAY,aAAa;IACvB,GAAG,QAAQ;IACX,EAAE,OAAO;IACT,YAAY,iBAAiB;CAC9B;AAED,oBAAY,iBAAiB;IAC3B,KAAK,UAAU;IACf,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,IAAI,SAAS;IACb,OAAO,YAAY;IACnB,aAAa,kBAAkB;IAC/B,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,MAAM,WAAW;IACjB,cAAc,mBAAmB;CAClC;AAED;;GAEG;AACH,oBAAY,eAAe;IACzB,IAAI,SAAS;IACb,IAAI,SAAS;IACb,MAAM,WAAW;IACjB,KAAK,UAAU;IACf,KAAK,UAAU;IACf,GAAG,QAAQ;IACX,KAAK,UAAU;CAChB;AAED;;GAEG;AACH,oBAAY,gCAAgC;IAC1C,aAAa,kBAAkB;IAC/B,aAAa,kBAAkB;IAC/B,GAAG,QAAQ;IACX,KAAK,UAAU;CAChB;AAED,oBAAY,sBAAsB;IAChC,KAAK,UAAU;IACf,KAAK,UAAU;CAChB"} \ No newline at end of file diff --git a/build/src/enums.js b/build/src/enums.js index 91fe193..bea7052 100644 --- a/build/src/enums.js +++ b/build/src/enums.js @@ -44,6 +44,7 @@ var CredentialVerificationMethodEnum; CredentialVerificationMethodEnum["SELF_ATTESTED"] = "self_attested"; CredentialVerificationMethodEnum["PHONE_CARRIER"] = "phone_carrier"; CredentialVerificationMethodEnum["OTP"] = "otp"; + CredentialVerificationMethodEnum["MIXED"] = "mixed"; })(CredentialVerificationMethodEnum = exports.CredentialVerificationMethodEnum || (exports.CredentialVerificationMethodEnum = {})); var UserIdentifierTypeEnum; (function (UserIdentifierTypeEnum) { diff --git a/build/src/enums.js.map b/build/src/enums.js.map index b83ca19..844b9ba 100644 --- a/build/src/enums.js.map +++ b/build/src/enums.js.map @@ -1 +1 @@ -{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/enums.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,0BAAS,CAAA;IACT,8CAA6B,CAAA;AAC/B,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB;AAED,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,oCAAe,CAAA;IACf,gCAAW,CAAA;IACX,kCAAa,CAAA;IACb,wCAAmB,CAAA;IACnB,oDAA+B,CAAA;IAC/B,sCAAiB,CAAA;IACjB,oCAAe,CAAA;IACf,sCAAiB,CAAA;IACjB,sDAAiC,CAAA;AACnC,CAAC,EAXW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAW5B;AAED;;GAEG;AACH,IAAY,eAQX;AARD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,oCAAiB,CAAA;IACjB,kCAAe,CAAA;IACf,kCAAe,CAAA;IACf,8BAAW,CAAA;IACX,kCAAe,CAAA;AACjB,CAAC,EARW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAQ1B;AAED;;GAEG;AACH,IAAY,gCAIX;AAJD,WAAY,gCAAgC;IAC1C,mEAA+B,CAAA;IAC/B,mEAA+B,CAAA;IAC/B,+CAAW,CAAA;AACb,CAAC,EAJW,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAI3C;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,yCAAe,CAAA;IACf,yCAAe,CAAA;AACjB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC"} \ No newline at end of file +{"version":3,"file":"enums.js","sourceRoot":"","sources":["../../src/enums.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACH,IAAY,aAIX;AAJD,WAAY,aAAa;IACvB,4BAAW,CAAA;IACX,0BAAS,CAAA;IACT,8CAA6B,CAAA;AAC/B,CAAC,EAJW,aAAa,GAAb,qBAAa,KAAb,qBAAa,QAIxB;AAED,IAAY,iBAWX;AAXD,WAAY,iBAAiB;IAC3B,oCAAe,CAAA;IACf,oCAAe,CAAA;IACf,gCAAW,CAAA;IACX,kCAAa,CAAA;IACb,wCAAmB,CAAA;IACnB,oDAA+B,CAAA;IAC/B,sCAAiB,CAAA;IACjB,oCAAe,CAAA;IACf,sCAAiB,CAAA;IACjB,sDAAiC,CAAA;AACnC,CAAC,EAXW,iBAAiB,GAAjB,yBAAiB,KAAjB,yBAAiB,QAW5B;AAED;;GAEG;AACH,IAAY,eAQX;AARD,WAAY,eAAe;IACzB,gCAAa,CAAA;IACb,gCAAa,CAAA;IACb,oCAAiB,CAAA;IACjB,kCAAe,CAAA;IACf,kCAAe,CAAA;IACf,8BAAW,CAAA;IACX,kCAAe,CAAA;AACjB,CAAC,EARW,eAAe,GAAf,uBAAe,KAAf,uBAAe,QAQ1B;AAED;;GAEG;AACH,IAAY,gCAKX;AALD,WAAY,gCAAgC;IAC1C,mEAA+B,CAAA;IAC/B,mEAA+B,CAAA;IAC/B,+CAAW,CAAA;IACX,mDAAe,CAAA;AACjB,CAAC,EALW,gCAAgC,GAAhC,wCAAgC,KAAhC,wCAAgC,QAK3C;AAED,IAAY,sBAGX;AAHD,WAAY,sBAAsB;IAChC,yCAAe,CAAA;IACf,yCAAe,CAAA;AACjB,CAAC,EAHW,sBAAsB,GAAtB,8BAAsB,KAAtB,8BAAsB,QAGjC"} \ No newline at end of file diff --git a/src/enums.ts b/src/enums.ts index c291d17..cf5553c 100644 --- a/src/enums.ts +++ b/src/enums.ts @@ -39,7 +39,8 @@ export enum InputFormatEnum { export enum CredentialVerificationMethodEnum { SELF_ATTESTED = 'self_attested', PHONE_CARRIER = 'phone_carrier', - OTP = 'otp' + OTP = 'otp', + MIXED = 'mixed' } export enum UserIdentifierTypeEnum {