@nexeraid/identity-schemas 2.130.0 → 2.132.0-dev
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/dist/{CoinMarketCap.schema-3fa2dbfe.cjs.dev.cjs → CoinMarketCap.schema-3aac6153.cjs.dev.cjs} +2 -2
- package/dist/{CoinMarketCap.schema-d51e69ae.esm.mjs → CoinMarketCap.schema-9d73712c.esm.mjs} +2 -2
- package/dist/{CoinMarketCap.schema-52c35587.cjs.prod.cjs → CoinMarketCap.schema-fad706d9.cjs.prod.cjs} +2 -2
- package/dist/declarations/src/identity/app-requests.schema.d.ts +94 -94
- package/dist/declarations/src/identity/host-requests.schema.d.ts +16 -16
- package/dist/declarations/src/identity/identity-v2.schema.d.ts +76 -76
- package/dist/declarations/src/identity/kyc.schema.d.ts +74 -74
- package/dist/declarations/src/identity/query.schema.d.ts +84 -84
- package/dist/declarations/src/identity/query.schema.d.ts.map +1 -1
- package/dist/declarations/src/identity/scenario.schema.d.ts +156 -156
- package/dist/declarations/src/identity/txAuthData.schema.d.ts +28 -28
- package/dist/declarations/src/identity/zkps.schema.d.ts +46 -46
- package/dist/declarations/src/identity-ids.schema.d.ts +6 -2
- package/dist/declarations/src/identity-ids.schema.d.ts.map +1 -1
- package/dist/declarations/src/index.d.ts +1 -0
- package/dist/declarations/src/index.d.ts.map +1 -1
- package/dist/declarations/src/vault/data-links/data-links.schema.d.ts +4 -3
- package/dist/declarations/src/vault/data-links/data-links.schema.d.ts.map +1 -1
- package/dist/declarations/src/vault/data-links/metadata-links.schema.d.ts.map +1 -1
- package/dist/declarations/src/vault/data-links/object-path.d.ts +5 -2
- package/dist/declarations/src/vault/data-links/object-path.d.ts.map +1 -1
- package/dist/declarations/src/vault/data-links/type-util.d.ts +2 -2
- package/dist/declarations/src/vault/data-links/type-util.d.ts.map +1 -1
- package/dist/declarations/src/vault/data-links/zod-utils.d.ts.map +1 -1
- package/dist/declarations/src/vault/schemas/generated/Web3Transaction.schema.json.d.ts +31 -0
- package/dist/declarations/src/vault/schemas/generated/Web3Transaction.type.d.ts +13 -0
- package/dist/declarations/src/vault/schemas/generated/Web3Transaction.type.d.ts.map +1 -0
- package/dist/declarations/src/vault/vault.schema.d.ts +74 -23
- package/dist/declarations/src/vault/vault.schema.d.ts.map +1 -1
- package/dist/declarations/src/web3-transaction.schema.d.ts +24 -0
- package/dist/declarations/src/web3-transaction.schema.d.ts.map +1 -0
- package/dist/{identity-api.schema-b2947339.cjs.dev.cjs → identity-api.schema-34dc18f9.cjs.dev.cjs} +1 -1
- package/dist/{identity-api.schema-ba16c8c3.cjs.prod.cjs → identity-api.schema-6fae0c5e.cjs.prod.cjs} +1 -1
- package/dist/{identity-api.schema-3f7334e3.esm.mjs → identity-api.schema-8d890442.esm.mjs} +1 -1
- package/dist/nexeraid-identity-schemas.cjs.dev.cjs +13 -7
- package/dist/nexeraid-identity-schemas.cjs.prod.cjs +13 -7
- package/dist/nexeraid-identity-schemas.esm.mjs +6 -4
- package/dist/package.json +1 -1
- package/dist/{tfhe-utilities-aa85d5c3.cjs.dev.cjs → tfhe-utilities-27940c87.cjs.dev.cjs} +2 -2
- package/dist/{tfhe-utilities-7c18a426.cjs.prod.cjs → tfhe-utilities-5a8dd592.cjs.prod.cjs} +2 -2
- package/dist/{tfhe-utilities-e3085d72.esm.mjs → tfhe-utilities-c40b161b.esm.mjs} +2 -2
- package/dist/toArray-37b1fb19.cjs.dev.cjs +9 -0
- package/dist/toArray-3c87317a.cjs.prod.cjs +9 -0
- package/dist/toArray-4d4dc74b.esm.mjs +7 -0
- package/dist/{vault.schema-c797be4e.cjs.dev.cjs → vault.schema-519df11c.cjs.dev.cjs} +89 -229
- package/dist/{vault.schema-d8294208.cjs.prod.cjs → vault.schema-780fe133.cjs.prod.cjs} +89 -229
- package/dist/{vault.schema-e1eca1dd.esm.mjs → vault.schema-b56c5882.esm.mjs} +82 -225
- package/dist/zod-utils-c91cd04c.cjs.prod.cjs +222 -0
- package/dist/zod-utils-c9be4fe1.esm.mjs +217 -0
- package/dist/zod-utils-ce615cbb.cjs.dev.cjs +222 -0
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.dev.cjs +2 -2
- package/identity/dist/nexeraid-identity-schemas-identity.cjs.prod.cjs +2 -2
- package/identity/dist/nexeraid-identity-schemas-identity.esm.mjs +2 -2
- package/package.json +2 -2
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.cjs +3 -3
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.cjs +3 -3
- package/providers/dist/nexeraid-identity-schemas-providers.esm.mjs +3 -3
- package/vault/dist/nexeraid-identity-schemas-vault.cjs.dev.cjs +7 -5
- package/vault/dist/nexeraid-identity-schemas-vault.cjs.prod.cjs +7 -5
- package/vault/dist/nexeraid-identity-schemas-vault.esm.mjs +3 -1
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.dev.cjs +3 -3
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.cjs.prod.cjs +3 -3
- package/verifiable-credentials/dist/nexeraid-identity-schemas-verifiable-credentials.esm.mjs +3 -3
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.cjs +5 -4
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.cjs +5 -4
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.mjs +4 -3
|
@@ -2607,9 +2607,8 @@ var DatasetColumnTypePrefix = "datasetct";
|
|
|
2607
2607
|
var DatasetColumnTypeOptionPrefix = "datasetcto";
|
|
2608
2608
|
var DatasetRowPrefix = "datasetr";
|
|
2609
2609
|
var DatasetRowValuePrefix = "datasetrv";
|
|
2610
|
-
|
|
2611
|
-
// Dataset views
|
|
2612
2610
|
var DatasetViewPrefix = "datasetv";
|
|
2611
|
+
var DatasetFolderPrefix = "datasetf";
|
|
2613
2612
|
|
|
2614
2613
|
// Alert
|
|
2615
2614
|
var MetaAlertPrefix = "alrt";
|
|
@@ -2676,8 +2675,6 @@ var AiMessagePrefix = "aimsg";
|
|
|
2676
2675
|
|
|
2677
2676
|
// Dataset
|
|
2678
2677
|
|
|
2679
|
-
// Dataset views
|
|
2680
|
-
|
|
2681
2678
|
// Alerts
|
|
2682
2679
|
|
|
2683
2680
|
// TMS
|
|
@@ -2694,8 +2691,6 @@ var AiMessagePrefix = "aimsg";
|
|
|
2694
2691
|
|
|
2695
2692
|
// Dataset
|
|
2696
2693
|
|
|
2697
|
-
// Dataset views
|
|
2698
|
-
|
|
2699
2694
|
// Alerts
|
|
2700
2695
|
|
|
2701
2696
|
// TMS
|
|
@@ -2747,9 +2742,8 @@ var DatasetColumnTypeId = createBrandedSchemaId("".concat(DatasetColumnTypePrefi
|
|
|
2747
2742
|
var DatasetColumnTypeOptionId = createBrandedSchemaId("".concat(DatasetColumnTypeOptionPrefix, "_"));
|
|
2748
2743
|
var DatasetRowId = createBrandedSchemaId("".concat(DatasetRowPrefix, "_"));
|
|
2749
2744
|
var DatasetRowValueId = createBrandedSchemaId("".concat(DatasetRowValuePrefix, "_"));
|
|
2750
|
-
|
|
2751
|
-
// Dataset views
|
|
2752
2745
|
var DatasetViewId = createBrandedSchemaId("".concat(DatasetViewPrefix, "_"));
|
|
2746
|
+
var DatasetFolderId = createBrandedSchemaId("".concat(DatasetFolderPrefix, "_"));
|
|
2753
2747
|
|
|
2754
2748
|
// Alert
|
|
2755
2749
|
var MetaAlertId = createBrandedSchemaId("".concat(MetaAlertPrefix, "_"));
|
|
@@ -2816,6 +2810,10 @@ z["enum"](allDataLinkTypes$1);
|
|
|
2816
2810
|
* A link to a specific property in the schema
|
|
2817
2811
|
*/
|
|
2818
2812
|
|
|
2813
|
+
// set to unknown to avoid type errors
|
|
2814
|
+
// because now path is string because we have dynamic path
|
|
2815
|
+
// due to Web3TransactionData/functionArgs
|
|
2816
|
+
|
|
2819
2817
|
/**
|
|
2820
2818
|
* SearchLink
|
|
2821
2819
|
*
|
|
@@ -2828,218 +2826,14 @@ z["enum"](allDataLinkTypes$1);
|
|
|
2828
2826
|
* A link that contains a specific object
|
|
2829
2827
|
*/
|
|
2830
2828
|
|
|
2831
|
-
|
|
2832
|
-
|
|
2833
|
-
|
|
2834
|
-
|
|
2835
|
-
|
|
2836
|
-
|
|
2837
|
-
|
|
2838
|
-
|
|
2839
|
-
return _arrayWithHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableRest();
|
|
2840
|
-
}
|
|
2841
|
-
|
|
2842
|
-
function _createForOfIteratorHelper(r, e) {
|
|
2843
|
-
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
2844
|
-
if (!t) {
|
|
2845
|
-
if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
2846
|
-
t && (r = t);
|
|
2847
|
-
var n = 0,
|
|
2848
|
-
F = function () {};
|
|
2849
|
-
return {
|
|
2850
|
-
s: F,
|
|
2851
|
-
n: function () {
|
|
2852
|
-
return n >= r.length ? {
|
|
2853
|
-
done: !0
|
|
2854
|
-
} : {
|
|
2855
|
-
done: !1,
|
|
2856
|
-
value: r[n++]
|
|
2857
|
-
};
|
|
2858
|
-
},
|
|
2859
|
-
e: function (r) {
|
|
2860
|
-
throw r;
|
|
2861
|
-
},
|
|
2862
|
-
f: F
|
|
2863
|
-
};
|
|
2864
|
-
}
|
|
2865
|
-
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
2866
|
-
}
|
|
2867
|
-
var o,
|
|
2868
|
-
a = !0,
|
|
2869
|
-
u = !1;
|
|
2870
|
-
return {
|
|
2871
|
-
s: function () {
|
|
2872
|
-
t = t.call(r);
|
|
2873
|
-
},
|
|
2874
|
-
n: function () {
|
|
2875
|
-
var r = t.next();
|
|
2876
|
-
return a = r.done, r;
|
|
2877
|
-
},
|
|
2878
|
-
e: function (r) {
|
|
2879
|
-
u = !0, o = r;
|
|
2880
|
-
},
|
|
2881
|
-
f: function () {
|
|
2882
|
-
try {
|
|
2883
|
-
a || null == t.return || t.return();
|
|
2884
|
-
} finally {
|
|
2885
|
-
if (u) throw o;
|
|
2886
|
-
}
|
|
2887
|
-
}
|
|
2888
|
-
};
|
|
2889
|
-
}
|
|
2890
|
-
|
|
2891
|
-
// this lib is too generic to follow the linting rules, a lot of types end up resolved to any
|
|
2892
|
-
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
2893
|
-
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
2894
|
-
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
2895
|
-
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
2896
|
-
|
|
2897
|
-
var generateZodObjectPaths = function generateZodObjectPaths(schema) {
|
|
2898
|
-
function traverse(schema, pathToHere) {
|
|
2899
|
-
var paths = [];
|
|
2900
|
-
if (schema.shape) {
|
|
2901
|
-
for (var _i = 0, _Object$entries = Object.entries(schema.shape); _i < _Object$entries.length; _i++) {
|
|
2902
|
-
var _Object$entries$_i = _slicedToArray(_Object$entries[_i], 2),
|
|
2903
|
-
key = _Object$entries$_i[0],
|
|
2904
|
-
value = _Object$entries$_i[1];
|
|
2905
|
-
var newPath = [].concat(_toConsumableArray(pathToHere), [key]);
|
|
2906
|
-
var deep = traverse(value, newPath);
|
|
2907
|
-
paths = [].concat(_toConsumableArray(paths), [newPath.join(Separator)], _toConsumableArray(deep));
|
|
2908
|
-
}
|
|
2909
|
-
} else if (schema instanceof z.ZodOptional) {
|
|
2910
|
-
var _deep = traverse(schema.unwrap(), pathToHere);
|
|
2911
|
-
paths = [].concat(_toConsumableArray(paths), _toConsumableArray(_deep));
|
|
2912
|
-
} else if (schema instanceof z.ZodArray) {
|
|
2913
|
-
var _deep2 = traverse(schema.element, pathToHere);
|
|
2914
|
-
paths = [].concat(_toConsumableArray(paths), _toConsumableArray(_deep2));
|
|
2915
|
-
} else if (schema instanceof z.ZodIntersection) {
|
|
2916
|
-
// @ts-expect-error -- TODO: fix this
|
|
2917
|
-
var deepLeft = traverse(schema._def.left, pathToHere);
|
|
2918
|
-
paths = [].concat(_toConsumableArray(paths), _toConsumableArray(deepLeft));
|
|
2919
|
-
// @ts-expect-error -- TODO: fix this
|
|
2920
|
-
var deepRight = traverse(schema._def.right, pathToHere);
|
|
2921
|
-
paths = [].concat(_toConsumableArray(paths), _toConsumableArray(deepRight));
|
|
2922
|
-
} else if (schema instanceof z.ZodUnion) {
|
|
2923
|
-
var _iterator = _createForOfIteratorHelper(schema.options),
|
|
2924
|
-
_step;
|
|
2925
|
-
try {
|
|
2926
|
-
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
2927
|
-
var option = _step.value;
|
|
2928
|
-
var _deep3 = traverse(option, pathToHere);
|
|
2929
|
-
paths = [].concat(_toConsumableArray(paths), _toConsumableArray(_deep3));
|
|
2930
|
-
}
|
|
2931
|
-
} catch (err) {
|
|
2932
|
-
_iterator.e(err);
|
|
2933
|
-
} finally {
|
|
2934
|
-
_iterator.f();
|
|
2935
|
-
}
|
|
2936
|
-
} else if (schema instanceof z.ZodType) {
|
|
2937
|
-
paths.push(pathToHere.join(Separator));
|
|
2938
|
-
}
|
|
2939
|
-
return Array.from(new Set(paths));
|
|
2940
|
-
}
|
|
2941
|
-
return traverse(schema, []);
|
|
2942
|
-
};
|
|
2943
|
-
|
|
2944
|
-
// avoid circular dependency with logger
|
|
2945
|
-
|
|
2946
|
-
var resolvePathOnDataSchema = function resolvePathOnDataSchema(_ref) {
|
|
2947
|
-
var logger = _ref.logger,
|
|
2948
|
-
dataSchema = _ref.dataSchema,
|
|
2949
|
-
path = _ref.path;
|
|
2950
|
-
function traverse(schema, path) {
|
|
2951
|
-
if (path.length === 0) {
|
|
2952
|
-
return schema;
|
|
2953
|
-
}
|
|
2954
|
-
var _path = _toArray(path),
|
|
2955
|
-
part = _path[0],
|
|
2956
|
-
rest = _path.slice(1);
|
|
2957
|
-
if (!part) {
|
|
2958
|
-
return null; // unreachable due to previous check
|
|
2959
|
-
}
|
|
2960
|
-
if (schema.shape) {
|
|
2961
|
-
if (!(part in schema.shape)) {
|
|
2962
|
-
logger.error({
|
|
2963
|
-
msg: "part not found in schema.shape",
|
|
2964
|
-
data: {
|
|
2965
|
-
path: path,
|
|
2966
|
-
dataSchema: dataSchema
|
|
2967
|
-
}
|
|
2968
|
-
});
|
|
2969
|
-
return null;
|
|
2970
|
-
}
|
|
2971
|
-
return traverse(schema.shape[part], rest);
|
|
2972
|
-
} else if (schema instanceof z.ZodOptional) {
|
|
2973
|
-
return traverse(schema.unwrap(), path);
|
|
2974
|
-
} else if (schema instanceof z.ZodArray) {
|
|
2975
|
-
return traverse(schema.element, path);
|
|
2976
|
-
} else if (schema instanceof z.ZodIntersection) {
|
|
2977
|
-
// @ts-expect-error -- TODO: fix this
|
|
2978
|
-
var right = schema._def.right;
|
|
2979
|
-
if (!right) {
|
|
2980
|
-
logger.error({
|
|
2981
|
-
msg: "Intersection has no .right field",
|
|
2982
|
-
data: {
|
|
2983
|
-
path: path,
|
|
2984
|
-
dataSchema: dataSchema
|
|
2985
|
-
}
|
|
2986
|
-
});
|
|
2987
|
-
return null;
|
|
2988
|
-
}
|
|
2989
|
-
return traverse(right, path);
|
|
2990
|
-
} else if (schema instanceof z.ZodUnion) {
|
|
2991
|
-
var options = schema.options;
|
|
2992
|
-
var _iterator2 = _createForOfIteratorHelper(options),
|
|
2993
|
-
_step2;
|
|
2994
|
-
try {
|
|
2995
|
-
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
2996
|
-
var option = _step2.value;
|
|
2997
|
-
var _result = traverse(option, path);
|
|
2998
|
-
if (_result) {
|
|
2999
|
-
return _result;
|
|
3000
|
-
}
|
|
3001
|
-
}
|
|
3002
|
-
} catch (err) {
|
|
3003
|
-
_iterator2.e(err);
|
|
3004
|
-
} finally {
|
|
3005
|
-
_iterator2.f();
|
|
3006
|
-
}
|
|
3007
|
-
}
|
|
3008
|
-
return null;
|
|
3009
|
-
}
|
|
3010
|
-
var parts = path.split(Separator);
|
|
3011
|
-
var result = traverse(dataSchema, parts);
|
|
3012
|
-
if (!result) {
|
|
3013
|
-
logger.error({
|
|
3014
|
-
msg: "path not found",
|
|
3015
|
-
data: {
|
|
3016
|
-
path: path,
|
|
3017
|
-
dataSchema: dataSchema
|
|
3018
|
-
}
|
|
3019
|
-
});
|
|
3020
|
-
return null;
|
|
3021
|
-
}
|
|
3022
|
-
return result;
|
|
3023
|
-
};
|
|
3024
|
-
var resolvePathOnMapSchema = function resolvePathOnMapSchema(_ref2) {
|
|
3025
|
-
var logger = _ref2.logger,
|
|
3026
|
-
mapSchema = _ref2.mapSchema,
|
|
3027
|
-
path = _ref2.path;
|
|
3028
|
-
var rest = path;
|
|
3029
|
-
while (rest.length > 0) {
|
|
3030
|
-
if (rest in mapSchema.shape) {
|
|
3031
|
-
return mapSchema.shape[rest];
|
|
3032
|
-
}
|
|
3033
|
-
rest = rest.slice(0, rest.lastIndexOf(Separator));
|
|
3034
|
-
}
|
|
3035
|
-
logger.error({
|
|
3036
|
-
msg: "path not found",
|
|
3037
|
-
data: {
|
|
3038
|
-
path: path
|
|
3039
|
-
}
|
|
3040
|
-
});
|
|
3041
|
-
return null;
|
|
3042
|
-
};
|
|
2829
|
+
var Web3ArgsType = z.union([z.string(), z.number(), z["boolean"]()]);
|
|
2830
|
+
var Web3TransactionData = z.object({
|
|
2831
|
+
senderAddress: EvmAddress,
|
|
2832
|
+
contractAddress: EvmAddress,
|
|
2833
|
+
functionName: z.string().optional(),
|
|
2834
|
+
functionArgs: z.record(z.string(), Web3ArgsType).optional(),
|
|
2835
|
+
transactionRequestDate: z.coerce.date().optional()
|
|
2836
|
+
});
|
|
3043
2837
|
|
|
3044
2838
|
var allDataLinkVersions = ["v1"];
|
|
3045
2839
|
var DataLinkVersionZodSchema = z["enum"](allDataLinkVersions);
|
|
@@ -10885,6 +10679,48 @@ var TransactionJsonSchema = {
|
|
|
10885
10679
|
$schema: "http://json-schema.org/draft-07/schema#"
|
|
10886
10680
|
};
|
|
10887
10681
|
|
|
10682
|
+
var Web3TransactionJsonSchema = {
|
|
10683
|
+
$ref: "#/definitions/Web3Transaction",
|
|
10684
|
+
definitions: {
|
|
10685
|
+
Web3Transaction: {
|
|
10686
|
+
type: "object",
|
|
10687
|
+
properties: {
|
|
10688
|
+
senderAddress: {
|
|
10689
|
+
type: "string",
|
|
10690
|
+
description: "String value that identifies the address of a specific user. Normally tied to an EOA that includes the Smart Wallet."
|
|
10691
|
+
},
|
|
10692
|
+
contractAddress: {
|
|
10693
|
+
type: "string",
|
|
10694
|
+
description: "String value that identifies the address of a specific user. Normally tied to an EOA that includes the Smart Wallet."
|
|
10695
|
+
},
|
|
10696
|
+
functionName: {
|
|
10697
|
+
type: "string"
|
|
10698
|
+
},
|
|
10699
|
+
functionArgs: {
|
|
10700
|
+
type: "object",
|
|
10701
|
+
additionalProperties: {
|
|
10702
|
+
type: [
|
|
10703
|
+
"string",
|
|
10704
|
+
"number",
|
|
10705
|
+
"boolean"
|
|
10706
|
+
]
|
|
10707
|
+
}
|
|
10708
|
+
},
|
|
10709
|
+
transactionRequestDate: {
|
|
10710
|
+
type: "string",
|
|
10711
|
+
format: "date-time"
|
|
10712
|
+
}
|
|
10713
|
+
},
|
|
10714
|
+
required: [
|
|
10715
|
+
"senderAddress",
|
|
10716
|
+
"contractAddress"
|
|
10717
|
+
],
|
|
10718
|
+
additionalProperties: false
|
|
10719
|
+
}
|
|
10720
|
+
},
|
|
10721
|
+
$schema: "http://json-schema.org/draft-07/schema#"
|
|
10722
|
+
};
|
|
10723
|
+
|
|
10888
10724
|
var KycSessionZodSchema = z.object({
|
|
10889
10725
|
vcs: z.object({
|
|
10890
10726
|
// "v1" here refers the version of the credential schema
|
|
@@ -11467,22 +11303,40 @@ var TransactionZodSchema = z.object({
|
|
|
11467
11303
|
}).optional()
|
|
11468
11304
|
});
|
|
11469
11305
|
|
|
11306
|
+
var Web3TransactionZodSchema = z.object({
|
|
11307
|
+
senderAddress: EvmAddress,
|
|
11308
|
+
contractAddress: EvmAddress,
|
|
11309
|
+
functionName: z.string().optional(),
|
|
11310
|
+
functionArgs: z.record(z.string(), Web3ArgsType).optional(),
|
|
11311
|
+
transactionRequestDate: z.coerce.date().optional()
|
|
11312
|
+
});
|
|
11313
|
+
|
|
11470
11314
|
var VaultJsonSchemas = {
|
|
11471
11315
|
Customer: CustomerJsonSchema,
|
|
11472
11316
|
KycSession: KycSessionJsonSchema,
|
|
11473
11317
|
Transaction: TransactionJsonSchema,
|
|
11474
11318
|
TfheKycSession: TfheKycSessionJsonSchema,
|
|
11475
|
-
Tfhe: TfheJsonSchema
|
|
11319
|
+
Tfhe: TfheJsonSchema,
|
|
11320
|
+
Web3Transaction: Web3TransactionJsonSchema
|
|
11476
11321
|
};
|
|
11477
11322
|
var VaultZodSchema = z.object({
|
|
11478
11323
|
Customer: CustomerZodSchema,
|
|
11479
11324
|
KycSession: KycSessionZodSchema,
|
|
11480
11325
|
Transaction: TransactionZodSchema,
|
|
11481
11326
|
TfheKycSession: TfheKycSessionZodSchema,
|
|
11482
|
-
Tfhe: TfheZodSchema
|
|
11327
|
+
Tfhe: TfheZodSchema,
|
|
11328
|
+
Web3Transaction: Web3TransactionZodSchema
|
|
11483
11329
|
});
|
|
11484
11330
|
var VaultSchemaIdZodSchema = z["enum"](Object.keys(VaultZodSchema.shape));
|
|
11485
|
-
|
|
11331
|
+
// Paths<VaultSchema>;
|
|
11332
|
+
var VaultSchemaPathsZodSchema = z.string();
|
|
11333
|
+
// z.enum(
|
|
11334
|
+
// generateZodObjectPaths(VaultZodSchema) as [
|
|
11335
|
+
// VaultSchemaPaths,
|
|
11336
|
+
// ...VaultSchemaPaths[],
|
|
11337
|
+
// ],
|
|
11338
|
+
// );
|
|
11339
|
+
|
|
11486
11340
|
var VaultPointerKeyMapZodSchema = z.object({
|
|
11487
11341
|
Customer: z.object({
|
|
11488
11342
|
customerId: CustomerId,
|
|
@@ -11509,7 +11363,10 @@ var VaultPointerKeyMapZodSchema = z.object({
|
|
|
11509
11363
|
workflowId: WorkflowId,
|
|
11510
11364
|
identityId: IdentityId,
|
|
11511
11365
|
workflowSessionId: WorkflowSessionId
|
|
11512
|
-
}).strict()
|
|
11366
|
+
}).strict(),
|
|
11367
|
+
Web3Transaction: z.object({
|
|
11368
|
+
workflowSessionId: WorkflowSessionId
|
|
11369
|
+
})
|
|
11513
11370
|
});
|
|
11514
11371
|
var VaultQueryMapZodSchema = z.object({
|
|
11515
11372
|
KycSession: z.object({
|
|
@@ -11554,4 +11411,4 @@ var GenericVaultDataLinkZodSchema = z.union([GenericVaultPointerLinkZodSchema, G
|
|
|
11554
11411
|
// that a generic vault data link is indeed a valid vault data link
|
|
11555
11412
|
// ================================
|
|
11556
11413
|
|
|
11557
|
-
export { POLKADOT_CHAIN_IDS as $, ACTIVE_EVM_CHAIN_VALUES as A, BlockchainId as B, COSMOS_CHAIN_NAMES as C, DashboardChainId as D, EVM_BLOCK_TIME as E, SOLANA_CHAIN_IDS as F, ACTIVE_SOLANA_CHAIN_IDS as G, SolanaChainId as H, NEXERA_BITCOIN_CHAINS as I, BITCOIN_CHAIN_NAMES as J, BITCOIN_CHAIN_NAMES_LIST as K, BITCOIN_CHAIN_IDS as L, ACTIVE_BITCOIN_CHAIN_IDS as M, NonTestnetBlockchainId as N, BitcoinChainId as O, POLYGON_NETWORK_NAMES as P, NEXERA_APTOS_CHAINS as Q, APTOS_CHAIN_NAMES as R, StarknetChainId as S, TezosChainId as T, APTOS_CHAIN_NAMES_LIST as U, APTOS_CHAIN_IDS as V, ACTIVE_APTOS_CHAIN_IDS as W, AptosChainId as X, NEXERA_POLKADOT_CHAINS as Y, POLKADOT_CHAIN_NAMES as Z, POLKADOT_CHAIN_NAMES_LIST as _, DashboardChainIdList as a, CurrencyCode as a$, ACTIVE_POLKADOT_CHAIN_IDS as a0, PolkadotChainId as a1, NEXERA_CARDANO_CHAINS as a2, CARDANO_CHAIN_NAMES as a3, CARDANO_CHAIN_NAMES_LIST as a4, CARDANO_CHAIN_IDS as a5, ACTIVE_CARDANO_CHAIN_IDS as a6, CardanoChainId as a7, isValidAddress as a8, PrivateKey as a9, SupportedBlockchainNamespaceForSignatureAuth as aA, DISPLAYED_BLOCKCHAIN_NAMESPACES as aB, DisplayedBlockchainNamespace as aC, BLOCKCHAIN_NAME_TO_NAMESPACE as aD, BLOCKCHAIN_NAMESPACE_TO_NAME as aE, BLOCKCHAIN_NAMESPACE_TO_ADDRESS_URL as aF, EIP155Signature as aG, AptosSignature as aH, StarknetSignature as aI, PolkadotSignature as aJ, CosmosSignature as aK, EdSignature as aL, SpSignature as aM, P2Signature as aN, TezosSignature as aO, CardanoSignature as aP, BlockchainSignature as aQ, FunctionCallData as aR, TezosEntrypointName as aS, AbiItem as aT, ENVS as aU, EnvironmentSchema as aV, UuidString as aW, OtpCode as aX, PUBLIC_SERVICES_SCHEMA_MAP as aY, IpAddress as aZ, CurrencyCodes as a_, PublicKey as aa, EvmAddress as ab, TxHash as ac, shortBlockchainAddress as ad, AptosAddress as ae, StarknetAddress as af, PolkadotAddress as ag, CosmosAddress as ah, TezosImplicitAddress as ai, TezosContractAddress as aj, TezosAddress as ak, CardanoAddress as al, BitcoinP2PKHAddress as am, BitcoinP2SHAddress as an, BitcoinBech32Address as ao, BitcoinTestnetP2PKHAddress as ap, BitcoinTestnetP2SHAddress as aq, BitcoinTestnetBech32Address as ar, BitcoinAddress as as, BlockchainAddress as at, DashboardAddress as au, String0x as av, HexadecimalSchema as aw, BLOCKCHAIN_NAMESPACES as ax, BlockchainNamespace as ay, SUPPORTED_BLOCKCHAIN_NAMESPACES_FOR_SIGNATURE_AUTH as az, NEXERA_EVM_CHAINS as b, InstitutionExtractedInfosPrefix as b$, CryptoCodes as b0, CryptoCode as b1, ISO3CountryCode as b2, ALPHA_2_COUNTRIES as b3, Alpha2Country as b4, countryISO3toISO2Mapping as b5, countryISO2toISO3Mapping as b6, CountryName as b7, isoCountriesNameFromISO2 as b8, isoCountriesNameFromISO3 as b9, AppPrefix as bA, ChallengePrefix as bB, TestPrefix as bC, IndividualScreeningPrefix as bD, SigGatingPrefix as bE, TagPrefix as bF, ScorechainAnalysisPrefix as bG, DatasetPrefix as bH, DatasetColumnPrefix as bI, DatasetColumnTypePrefix as bJ, DatasetColumnTypeOptionPrefix as bK, DatasetRowPrefix as bL, DatasetRowValuePrefix as bM, DatasetViewPrefix as bN, MetaAlertPrefix as bO, TagsToEntityPrefix as bP, TransactionAddressesPrefix as bQ, TransactionPrefix as bR, TransactionActivityPrefix as bS, TransactionFeesPrefix as bT, TransactionReviewPrefix as bU, TransactionPartiesPrefix as bV, TransactionInfosPrefix as bW, TransactionExtractedInfosPrefix as bX, TransactionMethodsPrefix as bY, TransactionMethodExtractedInfosPrefix as bZ, InstitutionPrefix as b_, parseISO3CountryCode as ba, ScorechainCountry as bb, scorechainCountriesNameFromISO2 as bc, RiskScoreTypes as bd, RiskScoreType as be, CustomerTypes as bf, CustomerType as bg, KycOnboardingLevels as bh, KycOnboardingLevel as bi, KybOnboardingLevels as bj, KybOnboardingLevel as bk, CustomerOnboardingLevels as bl, CustomerOnboardingLevel as bm, CustomerStatuses as bn, CustomerStatus as bo, BasicCustomerContactInformation as bp, CUSTOMERS_CHARTS as bq, CustomersChartType as br, CUSTOMER_TABLE_COLUMNS as bs, CustomerTableColumn as bt, CUSTOMER_AUTOMATION_REASONS as bu, CustomerPersonalInformation as bv, StoragePrefix as bw, IdentityPrefix as bx, EmailPrefix as by, WalletPrefix as bz, NEXERA_EVM_CHAIN_NAMES as c, SsssChunkId as c$, TransactionAmountPrefix as c0, ScenarioPrefix as c1, QueryPrefix as c2, QueryGroupPrefix as c3, EvaluationMethodPrefix as c4, ActionPrefix as c5, WorkflowSessionAttributePrefix as c6, ComplyAdvantageSearchUpdatePrefix as c7, SsssSharePrefix as c8, SsssChunkPrefix as c9, DatasetColumnTypeOptionId as cA, DatasetRowId as cB, DatasetRowValueId as cC, DatasetViewId as cD, MetaAlertId as cE, TagsToEntityId as cF, TransactionAddressesId as cG, TransactionId as cH, TransactionActivityId as cI, TransactionFeesId as cJ, TransactionReviewId as cK, TransactionPartiesId as cL, TransactionInfosId as cM, TransactionExtractedInfosId as cN, TransactionMethodsId as cO, TransactionMethodExtractedInfosId as cP, InstitutionId as cQ, InstitutionExtractedInfosId as cR, TransactionAmountId as cS, ComplyAdvantageSearchUpdateId as cT, ScenarioId as cU, QueryId as cV, QueryGroupId as cW, EvaluationMethodId as cX, ScorechainAnalysisId as cY, WorkflowSessionAttributeId as cZ, SsssShareId as c_, AiExecutionPrefix as ca, AiExecutionStepPrefix as cb, AiDocumentPrefix as cc, AiAgentPrefix as cd, AiStepPrefix as ce, ChatPrefix as cf, MessagePrefix as cg, ChatItemPrefix as ch, AiMessagePrefix as ci, WorkflowSessionId as cj, createBrandedSchemaId as ck, createBrandedSchemaIdWithParams as cl, StorageId as cm, IdentityId as cn, EmailId as co, WalletId as cp, AppId as cq, ChallengeId as cr, TestId as cs, CustomerScreeningId as ct, SigGatingId as cu, TagId as cv, ActionId as cw, DatasetId as cx, DatasetColumnId as cy, DatasetColumnTypeId as cz, NEXERA_EVM_CHAIN_NAMES_LIST as d, TRANSACTION_CHARTS as d$, ChatItemId as d0, generateId as d1, MemberId as d2, ChatId as d3, MessageId as d4, FLOW_TYPES as d5, FlowType as d6, VerificationModes as d7, VerificationMode as d8, IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS as d9, OLD_AMLScreeningsResultsCredentialSubjectSchema as dA, IDInformationTfheCredentialSubjectSchema as dB, IDInformationCredentialSubjectSchema as dC, IDImageCredentialSubjectSchema as dD, SelfieImageCredentialSubjectSchema as dE, ProofOfResidenceCredentialSubjectSchema as dF, GenericVerifiableCredentialSchema as dG, IDInformationTfheCredentialSchema as dH, IDInformationCredentialSchema as dI, IDImageCredentialSchema as dJ, SelfieImageCredentialSchema as dK, ProofOfResidenceCredentialSchema as dL, ID3CredentialSchema as dM, IDScanCredentialSchema as dN, IDScanPassportCredentialSchema as dO, IDScanSelfieCredentialSchema as dP, OLD_IDImageCredentialSchema as dQ, OLD_IDInformationCredentialSchema as dR, OLD_ProofOfResidenceCredentialSchema as dS, OLD_SelfieImageCredentialSchema as dT, OLD_AMLScreeningsResultsCredentialSchema as dU, TypeTags as dV, TypeTag as dW, Tag as dX, TagTitle as dY, getTagTypeFromEntityType as dZ, WORKFLOW_TYPE_TO_TAG_TYPE as d_, IdentityDocumentCountryListOption as da, IDENTITY_DOCUMENT_OPTIONS as db, IdentityDocumentOptionsType as dc, PERSONAL_INFORMATION_FIELDS as dd, PersonalInformationFieldsIdentityDocuments as de, Identifier as df, AdditionalCustomerInformationParams as dg, OrganizationId as dh, WorkspaceId as di, WorkflowId as dj, CustomerId as dk, ExternalCustomerId as dl, IdentityAppV2Web3JWT as dm, IdentityAppV2Web2JWT as dn, IdentityWidgetAccessToken_NEW as dp, IdentityWidgetSessionToken as dq, Web2CreateSessionParams as dr, ID3CredentialSubjectSchema as ds, IDScanCredentialSubjectSchema as dt, IDScanPassportCredentialSubjectSchema as du, IDScanSelfieCredentialSubjectSchema as dv, OLD_IDImageCredentialSubjectSchema as dw, OLD_IDInformationCredentialSubjectSchema as dx, OLD_ProofOfResidenceCredentialSubjectSchema as dy, OLD_SelfieImageCredentialSubjectSchema as dz, NEXERA_EVM_CHAINS_ID as e, GetTransactionHistoricalAveragesParams as e$, TransactionsChartType as e0, TRANSACTION_TABLE_COLUMNS as e1, TransactionTableColumn as e2, TransactionTypes as e3, TransactionType as e4, TransactionTypesWithAll as e5, TransactionTypeWithAll as e6, TransactionRiskLevels as e7, TransactionRiskLevel as e8, TransactionReviewStatuses as e9, CreateTransactionInfosOutput as eA, CreateTransactionMethodOutput as eB, CreateInsitutionOutput as eC, CreateTransactionPartiesOutput as eD, CreateTransactionReviewOutput as eE, UpdateTransactionReviewParams as eF, UpdateTransactionsReviewParams as eG, UpdateTransactionReviewOutput as eH, GetTransactionsForAlertParams as eI, GetTransactionsForAlertOutput as eJ, GetTransactionParams as eK, CreateTransactionOutput as eL, CreateTransactionExtractedInfosOutput as eM, CreateTransactionMethodExtractedInfoOutput as eN, CreateInsitutionExtractedInfosOutput as eO, GetTransactionStatsParams as eP, GetTransactionStatsOutput as eQ, initializeStatistics as eR, GetTransactionsParams as eS, GetOneTransactionOutput as eT, GetTransactionsOutputData as eU, GetTransactionsOutput as eV, TransactionAmountsToConvert as eW, GetAverageHistoricalAmountParams as eX, GetAverageHistoricalAmountOutput as eY, GetMedianHistoricalAmountParams as eZ, GetMedianHistoricalAmountOutput as e_, TransactionReviewStatus as ea, HumanReadableTransactionReviewStatuses as eb, HumanReadableTransactionReviewStatus as ec, TransactionStatusMapping as ed, HumanReadableTransactionStatusMapping as ee, TransactionDirections as ef, TransactionDirection as eg, TransactionCurrencyCodes as eh, TransactionCurrencyCode as ei, TransactionProviders as ej, TransactionProvider as ek, PaymentTypes as el, PaymentType as em, TransactionPartiesTypes as en, TransactionPartiesType as eo, TransactionAmountsFieldNames as ep, TransactionAmountsFieldName as eq, DEFAULT_FIAT_CURRENCY as er, TRANSACTIONS_STATS_CURRENCIES as es, TransactionStatsCurrency as et, TransactionDataEventObject as eu, AuditAction as ev, GetTransactionAuditsParams as ew, CreateTransactionFeesParams as ex, GetTransactionFeesOutput as ey, PostValidatedCurrencyCode as ez, NexeraEvmChains as f, ScorechainRiskToRiskLevel as f$, GetTransactionReviewParams as f0, GetTransactionReviewOutput as f1, GetTransactionReviewsParams as f2, GetTransactionReviewsOutput as f3, AmlResults$1 as f4, DetectedDuplicates as f5, allDataLinkVersions as f6, DataLinkVersionZodSchema as f7, allDataLinkTypes as f8, DataLinkTypeZodSchema as f9, AnalysisType as fA, OBJECT_TYPES as fB, ObjectType as fC, ScorechainBlockchain as fD, NonMinimalScorechainBlockchain as fE, ScorechainBlockchainToNamespace as fF, getRiskLevelByRiskScore as fG, compareRiskLevels as fH, Coin as fI, RiskSeverity as fJ, ScorechainEntityType as fK, RiskExplanation as fL, EntityRiskDefaultsValues as fM, EntityRiskDefaultsMap as fN, ScorechainErrorResponse as fO, ScorechainError as fP, ScorechainAnalysis as fQ, ScoringAnalysisResponse as fR, GetActiveBlockchainsRequest as fS, GetActiveBlockchains as fT, GetActiveBlockchainsResponse as fU, GetAddressAnalysisRequest as fV, ScorechainEntity as fW, GetAddressAnalysis as fX, GetAddressAnalysisResponse as fY, ScoringAnalysisApiRequest as fZ, RawScorechainResult as f_, Separator as fa, generateZodObjectPaths as fb, resolvePathOnDataSchema as fc, resolvePathOnMapSchema as fd, VaultJsonSchemas as fe, VaultZodSchema as ff, VaultSchemaIdZodSchema as fg, VaultSchemaPathsZodSchema as fh, VaultPointerKeyMapZodSchema as fi, VaultQueryMapZodSchema as fj, VaultMetadataLinkZodSchema as fk, GenericVaultPointerLinkZodSchema as fl, GenericVaultSearchLinkZodSchema as fm, GenericVaultEmbeddedLinkZodSchema as fn, GenericVaultDataLinkZodSchema as fo, ScorechainEntityRecord as fp, WalletScreeningData as fq, WalletScreeningProviders as fr, WalletScreeningProvider as fs, _defineProperty as ft, _toConsumableArray as fu, _toArray as fv, ScoringAnalysisRequest as fw, WorkflowsScoringAnalysisRequest as fx, _slicedToArray as fy, ANALYSIS_TYPES as fz, EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC as g, ScorechainWalletRiskLevels as g0, ScorechainWalletRiskLevel as g1, EvmChainId as h, NEXERA_COSMOS_CHAINS as i, COSMOS_CHAIN_NAMES_LIST as j, COSMOS_CHAIN_IDS as k, ACTIVE_COSMOS_CHAIN_IDS as l, CosmosChainId as m, NEXERA_TEZOS_CHAINS as n, NEXERA_TEZOS_CHAIN_NAMES as o, NEXERA_TEZOS_CHAIN_NAMES_LIST as p, NEXERA_TEZOS_CHAIN_IDS as q, ACTIVE_TEZOS_CHAIN_IDS as r, PolygonNetworkNames as s, NEXERA_STARKNET_CHAINS as t, NEXERA_STARKNET_CHAIN_NAMES as u, NEXERA_STARKNET_CHAIN_IDS as v, NEXERA_ACTIVE_STARKNET_CHAIN_IDS as w, NEXERA_SOLANA_CHAINS as x, SOLANA_CHAIN_NAMES as y, SOLANA_CHAIN_NAMES_LIST as z };
|
|
11414
|
+
export { POLKADOT_CHAIN_IDS as $, ACTIVE_EVM_CHAIN_VALUES as A, BlockchainId as B, COSMOS_CHAIN_NAMES as C, DashboardChainId as D, EVM_BLOCK_TIME as E, SOLANA_CHAIN_IDS as F, ACTIVE_SOLANA_CHAIN_IDS as G, SolanaChainId as H, NEXERA_BITCOIN_CHAINS as I, BITCOIN_CHAIN_NAMES as J, BITCOIN_CHAIN_NAMES_LIST as K, BITCOIN_CHAIN_IDS as L, ACTIVE_BITCOIN_CHAIN_IDS as M, NonTestnetBlockchainId as N, BitcoinChainId as O, POLYGON_NETWORK_NAMES as P, NEXERA_APTOS_CHAINS as Q, APTOS_CHAIN_NAMES as R, StarknetChainId as S, TezosChainId as T, APTOS_CHAIN_NAMES_LIST as U, APTOS_CHAIN_IDS as V, ACTIVE_APTOS_CHAIN_IDS as W, AptosChainId as X, NEXERA_POLKADOT_CHAINS as Y, POLKADOT_CHAIN_NAMES as Z, POLKADOT_CHAIN_NAMES_LIST as _, DashboardChainIdList as a, CurrencyCode as a$, ACTIVE_POLKADOT_CHAIN_IDS as a0, PolkadotChainId as a1, NEXERA_CARDANO_CHAINS as a2, CARDANO_CHAIN_NAMES as a3, CARDANO_CHAIN_NAMES_LIST as a4, CARDANO_CHAIN_IDS as a5, ACTIVE_CARDANO_CHAIN_IDS as a6, CardanoChainId as a7, isValidAddress as a8, PrivateKey as a9, SupportedBlockchainNamespaceForSignatureAuth as aA, DISPLAYED_BLOCKCHAIN_NAMESPACES as aB, DisplayedBlockchainNamespace as aC, BLOCKCHAIN_NAME_TO_NAMESPACE as aD, BLOCKCHAIN_NAMESPACE_TO_NAME as aE, BLOCKCHAIN_NAMESPACE_TO_ADDRESS_URL as aF, EIP155Signature as aG, AptosSignature as aH, StarknetSignature as aI, PolkadotSignature as aJ, CosmosSignature as aK, EdSignature as aL, SpSignature as aM, P2Signature as aN, TezosSignature as aO, CardanoSignature as aP, BlockchainSignature as aQ, FunctionCallData as aR, TezosEntrypointName as aS, AbiItem as aT, ENVS as aU, EnvironmentSchema as aV, UuidString as aW, OtpCode as aX, PUBLIC_SERVICES_SCHEMA_MAP as aY, IpAddress as aZ, CurrencyCodes as a_, PublicKey as aa, EvmAddress as ab, TxHash as ac, shortBlockchainAddress as ad, AptosAddress as ae, StarknetAddress as af, PolkadotAddress as ag, CosmosAddress as ah, TezosImplicitAddress as ai, TezosContractAddress as aj, TezosAddress as ak, CardanoAddress as al, BitcoinP2PKHAddress as am, BitcoinP2SHAddress as an, BitcoinBech32Address as ao, BitcoinTestnetP2PKHAddress as ap, BitcoinTestnetP2SHAddress as aq, BitcoinTestnetBech32Address as ar, BitcoinAddress as as, BlockchainAddress as at, DashboardAddress as au, String0x as av, HexadecimalSchema as aw, BLOCKCHAIN_NAMESPACES as ax, BlockchainNamespace as ay, SUPPORTED_BLOCKCHAIN_NAMESPACES_FOR_SIGNATURE_AUTH as az, NEXERA_EVM_CHAINS as b, InstitutionPrefix as b$, CryptoCodes as b0, CryptoCode as b1, ISO3CountryCode as b2, ALPHA_2_COUNTRIES as b3, Alpha2Country as b4, countryISO3toISO2Mapping as b5, countryISO2toISO3Mapping as b6, CountryName as b7, isoCountriesNameFromISO2 as b8, isoCountriesNameFromISO3 as b9, AppPrefix as bA, ChallengePrefix as bB, TestPrefix as bC, IndividualScreeningPrefix as bD, SigGatingPrefix as bE, TagPrefix as bF, ScorechainAnalysisPrefix as bG, DatasetPrefix as bH, DatasetColumnPrefix as bI, DatasetColumnTypePrefix as bJ, DatasetColumnTypeOptionPrefix as bK, DatasetRowPrefix as bL, DatasetRowValuePrefix as bM, DatasetViewPrefix as bN, DatasetFolderPrefix as bO, MetaAlertPrefix as bP, TagsToEntityPrefix as bQ, TransactionAddressesPrefix as bR, TransactionPrefix as bS, TransactionActivityPrefix as bT, TransactionFeesPrefix as bU, TransactionReviewPrefix as bV, TransactionPartiesPrefix as bW, TransactionInfosPrefix as bX, TransactionExtractedInfosPrefix as bY, TransactionMethodsPrefix as bZ, TransactionMethodExtractedInfosPrefix as b_, parseISO3CountryCode as ba, ScorechainCountry as bb, scorechainCountriesNameFromISO2 as bc, RiskScoreTypes as bd, RiskScoreType as be, CustomerTypes as bf, CustomerType as bg, KycOnboardingLevels as bh, KycOnboardingLevel as bi, KybOnboardingLevels as bj, KybOnboardingLevel as bk, CustomerOnboardingLevels as bl, CustomerOnboardingLevel as bm, CustomerStatuses as bn, CustomerStatus as bo, BasicCustomerContactInformation as bp, CUSTOMERS_CHARTS as bq, CustomersChartType as br, CUSTOMER_TABLE_COLUMNS as bs, CustomerTableColumn as bt, CUSTOMER_AUTOMATION_REASONS as bu, CustomerPersonalInformation as bv, StoragePrefix as bw, IdentityPrefix as bx, EmailPrefix as by, WalletPrefix as bz, NEXERA_EVM_CHAIN_NAMES as c, WorkflowSessionAttributeId as c$, InstitutionExtractedInfosPrefix as c0, TransactionAmountPrefix as c1, ScenarioPrefix as c2, QueryPrefix as c3, QueryGroupPrefix as c4, EvaluationMethodPrefix as c5, ActionPrefix as c6, WorkflowSessionAttributePrefix as c7, ComplyAdvantageSearchUpdatePrefix as c8, SsssSharePrefix as c9, DatasetColumnTypeId as cA, DatasetColumnTypeOptionId as cB, DatasetRowId as cC, DatasetRowValueId as cD, DatasetViewId as cE, DatasetFolderId as cF, MetaAlertId as cG, TagsToEntityId as cH, TransactionAddressesId as cI, TransactionId as cJ, TransactionActivityId as cK, TransactionFeesId as cL, TransactionReviewId as cM, TransactionPartiesId as cN, TransactionInfosId as cO, TransactionExtractedInfosId as cP, TransactionMethodsId as cQ, TransactionMethodExtractedInfosId as cR, InstitutionId as cS, InstitutionExtractedInfosId as cT, TransactionAmountId as cU, ComplyAdvantageSearchUpdateId as cV, ScenarioId as cW, QueryId as cX, QueryGroupId as cY, EvaluationMethodId as cZ, ScorechainAnalysisId as c_, SsssChunkPrefix as ca, AiExecutionPrefix as cb, AiExecutionStepPrefix as cc, AiDocumentPrefix as cd, AiAgentPrefix as ce, AiStepPrefix as cf, ChatPrefix as cg, MessagePrefix as ch, ChatItemPrefix as ci, AiMessagePrefix as cj, WorkflowSessionId as ck, createBrandedSchemaId as cl, createBrandedSchemaIdWithParams as cm, StorageId as cn, IdentityId as co, EmailId as cp, WalletId as cq, AppId as cr, ChallengeId as cs, TestId as ct, CustomerScreeningId as cu, SigGatingId as cv, TagId as cw, ActionId as cx, DatasetId as cy, DatasetColumnId as cz, NEXERA_EVM_CHAIN_NAMES_LIST as d, getTagTypeFromEntityType as d$, SsssShareId as d0, SsssChunkId as d1, ChatItemId as d2, generateId as d3, MemberId as d4, ChatId as d5, MessageId as d6, FLOW_TYPES as d7, FlowType as d8, VerificationModes as d9, OLD_ProofOfResidenceCredentialSubjectSchema as dA, OLD_SelfieImageCredentialSubjectSchema as dB, OLD_AMLScreeningsResultsCredentialSubjectSchema as dC, IDInformationTfheCredentialSubjectSchema as dD, IDInformationCredentialSubjectSchema as dE, IDImageCredentialSubjectSchema as dF, SelfieImageCredentialSubjectSchema as dG, ProofOfResidenceCredentialSubjectSchema as dH, GenericVerifiableCredentialSchema as dI, IDInformationTfheCredentialSchema as dJ, IDInformationCredentialSchema as dK, IDImageCredentialSchema as dL, SelfieImageCredentialSchema as dM, ProofOfResidenceCredentialSchema as dN, ID3CredentialSchema as dO, IDScanCredentialSchema as dP, IDScanPassportCredentialSchema as dQ, IDScanSelfieCredentialSchema as dR, OLD_IDImageCredentialSchema as dS, OLD_IDInformationCredentialSchema as dT, OLD_ProofOfResidenceCredentialSchema as dU, OLD_SelfieImageCredentialSchema as dV, OLD_AMLScreeningsResultsCredentialSchema as dW, TypeTags as dX, TypeTag as dY, Tag as dZ, TagTitle as d_, VerificationMode as da, IDENTITY_DOCUMENT_COUNTRY_LIST_OPTIONS as db, IdentityDocumentCountryListOption as dc, IDENTITY_DOCUMENT_OPTIONS as dd, IdentityDocumentOptionsType as de, PERSONAL_INFORMATION_FIELDS as df, PersonalInformationFieldsIdentityDocuments as dg, Identifier as dh, AdditionalCustomerInformationParams as di, OrganizationId as dj, WorkspaceId as dk, WorkflowId as dl, CustomerId as dm, ExternalCustomerId as dn, IdentityAppV2Web3JWT as dp, IdentityAppV2Web2JWT as dq, IdentityWidgetAccessToken_NEW as dr, IdentityWidgetSessionToken as ds, Web2CreateSessionParams as dt, ID3CredentialSubjectSchema as du, IDScanCredentialSubjectSchema as dv, IDScanPassportCredentialSubjectSchema as dw, IDScanSelfieCredentialSubjectSchema as dx, OLD_IDImageCredentialSubjectSchema as dy, OLD_IDInformationCredentialSubjectSchema as dz, NEXERA_EVM_CHAINS_ID as e, GetMedianHistoricalAmountParams as e$, WORKFLOW_TYPE_TO_TAG_TYPE as e0, TRANSACTION_CHARTS as e1, TransactionsChartType as e2, TRANSACTION_TABLE_COLUMNS as e3, TransactionTableColumn as e4, TransactionTypes as e5, TransactionType as e6, TransactionTypesWithAll as e7, TransactionTypeWithAll as e8, TransactionRiskLevels as e9, GetTransactionFeesOutput as eA, PostValidatedCurrencyCode as eB, CreateTransactionInfosOutput as eC, CreateTransactionMethodOutput as eD, CreateInsitutionOutput as eE, CreateTransactionPartiesOutput as eF, CreateTransactionReviewOutput as eG, UpdateTransactionReviewParams as eH, UpdateTransactionsReviewParams as eI, UpdateTransactionReviewOutput as eJ, GetTransactionsForAlertParams as eK, GetTransactionsForAlertOutput as eL, GetTransactionParams as eM, CreateTransactionOutput as eN, CreateTransactionExtractedInfosOutput as eO, CreateTransactionMethodExtractedInfoOutput as eP, CreateInsitutionExtractedInfosOutput as eQ, GetTransactionStatsParams as eR, GetTransactionStatsOutput as eS, initializeStatistics as eT, GetTransactionsParams as eU, GetOneTransactionOutput as eV, GetTransactionsOutputData as eW, GetTransactionsOutput as eX, TransactionAmountsToConvert as eY, GetAverageHistoricalAmountParams as eZ, GetAverageHistoricalAmountOutput as e_, TransactionRiskLevel as ea, TransactionReviewStatuses as eb, TransactionReviewStatus as ec, HumanReadableTransactionReviewStatuses as ed, HumanReadableTransactionReviewStatus as ee, TransactionStatusMapping as ef, HumanReadableTransactionStatusMapping as eg, TransactionDirections as eh, TransactionDirection as ei, TransactionCurrencyCodes as ej, TransactionCurrencyCode as ek, TransactionProviders as el, TransactionProvider as em, PaymentTypes as en, PaymentType as eo, TransactionPartiesTypes as ep, TransactionPartiesType as eq, TransactionAmountsFieldNames as er, TransactionAmountsFieldName as es, DEFAULT_FIAT_CURRENCY as et, TRANSACTIONS_STATS_CURRENCIES as eu, TransactionStatsCurrency as ev, TransactionDataEventObject as ew, AuditAction as ex, GetTransactionAuditsParams as ey, CreateTransactionFeesParams as ez, NexeraEvmChains as f, GetAddressAnalysisResponse as f$, GetMedianHistoricalAmountOutput as f0, GetTransactionHistoricalAveragesParams as f1, GetTransactionReviewParams as f2, GetTransactionReviewOutput as f3, GetTransactionReviewsParams as f4, GetTransactionReviewsOutput as f5, AmlResults$1 as f6, DetectedDuplicates as f7, allDataLinkVersions as f8, DataLinkVersionZodSchema as f9, ScoringAnalysisRequest as fA, WorkflowsScoringAnalysisRequest as fB, ANALYSIS_TYPES as fC, AnalysisType as fD, OBJECT_TYPES as fE, ObjectType as fF, ScorechainBlockchain as fG, NonMinimalScorechainBlockchain as fH, ScorechainBlockchainToNamespace as fI, getRiskLevelByRiskScore as fJ, compareRiskLevels as fK, Coin as fL, RiskSeverity as fM, ScorechainEntityType as fN, RiskExplanation as fO, EntityRiskDefaultsValues as fP, EntityRiskDefaultsMap as fQ, ScorechainErrorResponse as fR, ScorechainError as fS, ScorechainAnalysis as fT, ScoringAnalysisResponse as fU, GetActiveBlockchainsRequest as fV, GetActiveBlockchains as fW, GetActiveBlockchainsResponse as fX, GetAddressAnalysisRequest as fY, ScorechainEntity as fZ, GetAddressAnalysis as f_, allDataLinkTypes as fa, DataLinkTypeZodSchema as fb, VaultJsonSchemas as fc, VaultZodSchema as fd, VaultSchemaIdZodSchema as fe, VaultSchemaPathsZodSchema as ff, VaultPointerKeyMapZodSchema as fg, VaultQueryMapZodSchema as fh, VaultMetadataLinkZodSchema as fi, GenericVaultPointerLinkZodSchema as fj, GenericVaultSearchLinkZodSchema as fk, GenericVaultEmbeddedLinkZodSchema as fl, GenericVaultDataLinkZodSchema as fm, ScorechainEntityRecord as fn, WalletScreeningData as fo, WalletScreeningProviders as fp, WalletScreeningProvider as fq, Web3ArgsType as fr, Web3TransactionData as fs, _defineProperty as ft, _toConsumableArray as fu, _unsupportedIterableToArray as fv, _slicedToArray as fw, _arrayWithHoles as fx, _iterableToArray as fy, _nonIterableRest as fz, EVM_CHAINS_WITHOUT_DEDICATED_NODE_RPC as g, ScoringAnalysisApiRequest as g0, RawScorechainResult as g1, ScorechainRiskToRiskLevel as g2, ScorechainWalletRiskLevels as g3, ScorechainWalletRiskLevel as g4, EvmChainId as h, NEXERA_COSMOS_CHAINS as i, COSMOS_CHAIN_NAMES_LIST as j, COSMOS_CHAIN_IDS as k, ACTIVE_COSMOS_CHAIN_IDS as l, CosmosChainId as m, NEXERA_TEZOS_CHAINS as n, NEXERA_TEZOS_CHAIN_NAMES as o, NEXERA_TEZOS_CHAIN_NAMES_LIST as p, NEXERA_TEZOS_CHAIN_IDS as q, ACTIVE_TEZOS_CHAIN_IDS as r, PolygonNetworkNames as s, NEXERA_STARKNET_CHAINS as t, NEXERA_STARKNET_CHAIN_NAMES as u, NEXERA_STARKNET_CHAIN_IDS as v, NEXERA_ACTIVE_STARKNET_CHAIN_IDS as w, NEXERA_SOLANA_CHAINS as x, SOLANA_CHAIN_NAMES as y, SOLANA_CHAIN_NAMES_LIST as z };
|
|
@@ -0,0 +1,222 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var toArray = require('./toArray-3c87317a.cjs.prod.cjs');
|
|
4
|
+
var vault_schema = require('./vault.schema-780fe133.cjs.prod.cjs');
|
|
5
|
+
var zod = require('zod');
|
|
6
|
+
|
|
7
|
+
// tools to work with object paths in TypeScript
|
|
8
|
+
|
|
9
|
+
var Separator = "/";
|
|
10
|
+
|
|
11
|
+
// recursively get the type of a nested object property
|
|
12
|
+
// TODO: support unions: {a: {b: string } | {c: number}} + "a/b" -> string | undefined
|
|
13
|
+
|
|
14
|
+
function _createForOfIteratorHelper(r, e) {
|
|
15
|
+
var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"];
|
|
16
|
+
if (!t) {
|
|
17
|
+
if (Array.isArray(r) || (t = vault_schema._unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) {
|
|
18
|
+
t && (r = t);
|
|
19
|
+
var n = 0,
|
|
20
|
+
F = function () {};
|
|
21
|
+
return {
|
|
22
|
+
s: F,
|
|
23
|
+
n: function () {
|
|
24
|
+
return n >= r.length ? {
|
|
25
|
+
done: !0
|
|
26
|
+
} : {
|
|
27
|
+
done: !1,
|
|
28
|
+
value: r[n++]
|
|
29
|
+
};
|
|
30
|
+
},
|
|
31
|
+
e: function (r) {
|
|
32
|
+
throw r;
|
|
33
|
+
},
|
|
34
|
+
f: F
|
|
35
|
+
};
|
|
36
|
+
}
|
|
37
|
+
throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.");
|
|
38
|
+
}
|
|
39
|
+
var o,
|
|
40
|
+
a = !0,
|
|
41
|
+
u = !1;
|
|
42
|
+
return {
|
|
43
|
+
s: function () {
|
|
44
|
+
t = t.call(r);
|
|
45
|
+
},
|
|
46
|
+
n: function () {
|
|
47
|
+
var r = t.next();
|
|
48
|
+
return a = r.done, r;
|
|
49
|
+
},
|
|
50
|
+
e: function (r) {
|
|
51
|
+
u = !0, o = r;
|
|
52
|
+
},
|
|
53
|
+
f: function () {
|
|
54
|
+
try {
|
|
55
|
+
a || null == t.return || t.return();
|
|
56
|
+
} finally {
|
|
57
|
+
if (u) throw o;
|
|
58
|
+
}
|
|
59
|
+
}
|
|
60
|
+
};
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
// this lib is too generic to follow the linting rules, a lot of types end up resolved to any
|
|
64
|
+
/* eslint-disable @typescript-eslint/no-explicit-any */
|
|
65
|
+
/* eslint-disable @typescript-eslint/no-unsafe-return */
|
|
66
|
+
/* eslint-disable @typescript-eslint/no-unsafe-argument */
|
|
67
|
+
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
|
|
68
|
+
|
|
69
|
+
var generateZodObjectPaths = function generateZodObjectPaths(schema) {
|
|
70
|
+
function traverse(schema, pathToHere) {
|
|
71
|
+
var paths = [];
|
|
72
|
+
if (schema.shape) {
|
|
73
|
+
for (var _i = 0, _Object$entries = Object.entries(schema.shape); _i < _Object$entries.length; _i++) {
|
|
74
|
+
var _Object$entries$_i = vault_schema._slicedToArray(_Object$entries[_i], 2),
|
|
75
|
+
key = _Object$entries$_i[0],
|
|
76
|
+
value = _Object$entries$_i[1];
|
|
77
|
+
var newPath = [].concat(vault_schema._toConsumableArray(pathToHere), [key]);
|
|
78
|
+
var deep = traverse(value, newPath);
|
|
79
|
+
paths = [].concat(vault_schema._toConsumableArray(paths), [newPath.join(Separator)], vault_schema._toConsumableArray(deep));
|
|
80
|
+
}
|
|
81
|
+
} else if (schema instanceof zod.z.ZodOptional) {
|
|
82
|
+
var _deep = traverse(schema.unwrap(), pathToHere);
|
|
83
|
+
paths = [].concat(vault_schema._toConsumableArray(paths), vault_schema._toConsumableArray(_deep));
|
|
84
|
+
} else if (schema instanceof zod.z.ZodArray) {
|
|
85
|
+
var _deep2 = traverse(schema.element, pathToHere);
|
|
86
|
+
paths = [].concat(vault_schema._toConsumableArray(paths), vault_schema._toConsumableArray(_deep2));
|
|
87
|
+
} else if (schema instanceof zod.z.ZodIntersection) {
|
|
88
|
+
// @ts-expect-error -- TODO: fix this
|
|
89
|
+
var deepLeft = traverse(schema._def.left, pathToHere);
|
|
90
|
+
paths = [].concat(vault_schema._toConsumableArray(paths), vault_schema._toConsumableArray(deepLeft));
|
|
91
|
+
// @ts-expect-error -- TODO: fix this
|
|
92
|
+
var deepRight = traverse(schema._def.right, pathToHere);
|
|
93
|
+
paths = [].concat(vault_schema._toConsumableArray(paths), vault_schema._toConsumableArray(deepRight));
|
|
94
|
+
} else if (schema instanceof zod.z.ZodUnion) {
|
|
95
|
+
var _iterator = _createForOfIteratorHelper(schema.options),
|
|
96
|
+
_step;
|
|
97
|
+
try {
|
|
98
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
99
|
+
var option = _step.value;
|
|
100
|
+
var _deep3 = traverse(option, pathToHere);
|
|
101
|
+
paths = [].concat(vault_schema._toConsumableArray(paths), vault_schema._toConsumableArray(_deep3));
|
|
102
|
+
}
|
|
103
|
+
} catch (err) {
|
|
104
|
+
_iterator.e(err);
|
|
105
|
+
} finally {
|
|
106
|
+
_iterator.f();
|
|
107
|
+
}
|
|
108
|
+
} else if (schema instanceof zod.z.ZodType) {
|
|
109
|
+
paths.push(pathToHere.join(Separator));
|
|
110
|
+
}
|
|
111
|
+
return Array.from(new Set(paths));
|
|
112
|
+
}
|
|
113
|
+
return traverse(schema, []);
|
|
114
|
+
};
|
|
115
|
+
|
|
116
|
+
// avoid circular dependency with logger
|
|
117
|
+
|
|
118
|
+
var resolvePathOnDataSchema = function resolvePathOnDataSchema(_ref) {
|
|
119
|
+
var logger = _ref.logger,
|
|
120
|
+
dataSchema = _ref.dataSchema,
|
|
121
|
+
path = _ref.path;
|
|
122
|
+
if (path.startsWith("Web3Transaction/functionArgs/")) {
|
|
123
|
+
return vault_schema.Web3ArgsType;
|
|
124
|
+
}
|
|
125
|
+
function traverse(schema, path) {
|
|
126
|
+
if (path.length === 0) {
|
|
127
|
+
return schema;
|
|
128
|
+
}
|
|
129
|
+
var _path = toArray._toArray(path),
|
|
130
|
+
part = _path[0],
|
|
131
|
+
rest = _path.slice(1);
|
|
132
|
+
if (!part) {
|
|
133
|
+
return null; // unreachable due to previous check
|
|
134
|
+
}
|
|
135
|
+
if (schema.shape) {
|
|
136
|
+
if (!(part in schema.shape)) {
|
|
137
|
+
logger.error({
|
|
138
|
+
msg: "part not found in schema.shape",
|
|
139
|
+
data: {
|
|
140
|
+
path: path,
|
|
141
|
+
dataSchema: dataSchema
|
|
142
|
+
}
|
|
143
|
+
});
|
|
144
|
+
return null;
|
|
145
|
+
}
|
|
146
|
+
return traverse(schema.shape[part], rest);
|
|
147
|
+
} else if (schema instanceof zod.z.ZodOptional) {
|
|
148
|
+
return traverse(schema.unwrap(), path);
|
|
149
|
+
} else if (schema instanceof zod.z.ZodArray) {
|
|
150
|
+
return traverse(schema.element, path);
|
|
151
|
+
} else if (schema instanceof zod.z.ZodIntersection) {
|
|
152
|
+
// @ts-expect-error -- TODO: fix this
|
|
153
|
+
var right = schema._def.right;
|
|
154
|
+
if (!right) {
|
|
155
|
+
logger.error({
|
|
156
|
+
msg: "Intersection has no .right field",
|
|
157
|
+
data: {
|
|
158
|
+
path: path,
|
|
159
|
+
dataSchema: dataSchema
|
|
160
|
+
}
|
|
161
|
+
});
|
|
162
|
+
return null;
|
|
163
|
+
}
|
|
164
|
+
return traverse(right, path);
|
|
165
|
+
} else if (schema instanceof zod.z.ZodUnion) {
|
|
166
|
+
var options = schema.options;
|
|
167
|
+
var _iterator2 = _createForOfIteratorHelper(options),
|
|
168
|
+
_step2;
|
|
169
|
+
try {
|
|
170
|
+
for (_iterator2.s(); !(_step2 = _iterator2.n()).done;) {
|
|
171
|
+
var option = _step2.value;
|
|
172
|
+
var _result = traverse(option, path);
|
|
173
|
+
if (_result) {
|
|
174
|
+
return _result;
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
} catch (err) {
|
|
178
|
+
_iterator2.e(err);
|
|
179
|
+
} finally {
|
|
180
|
+
_iterator2.f();
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
return null;
|
|
184
|
+
}
|
|
185
|
+
var parts = path.split(Separator);
|
|
186
|
+
var result = traverse(dataSchema, parts);
|
|
187
|
+
if (!result) {
|
|
188
|
+
logger.error({
|
|
189
|
+
msg: "path not found",
|
|
190
|
+
data: {
|
|
191
|
+
path: path,
|
|
192
|
+
dataSchema: dataSchema
|
|
193
|
+
}
|
|
194
|
+
});
|
|
195
|
+
return null;
|
|
196
|
+
}
|
|
197
|
+
return result;
|
|
198
|
+
};
|
|
199
|
+
var resolvePathOnMapSchema = function resolvePathOnMapSchema(_ref2) {
|
|
200
|
+
var logger = _ref2.logger,
|
|
201
|
+
mapSchema = _ref2.mapSchema,
|
|
202
|
+
path = _ref2.path;
|
|
203
|
+
var rest = path;
|
|
204
|
+
while (rest.length > 0) {
|
|
205
|
+
if (rest in mapSchema.shape) {
|
|
206
|
+
return mapSchema.shape[rest];
|
|
207
|
+
}
|
|
208
|
+
rest = rest.slice(0, rest.lastIndexOf(Separator));
|
|
209
|
+
}
|
|
210
|
+
logger.error({
|
|
211
|
+
msg: "path not found",
|
|
212
|
+
data: {
|
|
213
|
+
path: path
|
|
214
|
+
}
|
|
215
|
+
});
|
|
216
|
+
return null;
|
|
217
|
+
};
|
|
218
|
+
|
|
219
|
+
exports.Separator = Separator;
|
|
220
|
+
exports.generateZodObjectPaths = generateZodObjectPaths;
|
|
221
|
+
exports.resolvePathOnDataSchema = resolvePathOnDataSchema;
|
|
222
|
+
exports.resolvePathOnMapSchema = resolvePathOnMapSchema;
|