@nexeraid/identity-schemas 2.164.0-dev → 2.166.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/declarations/src/providers/index.d.ts +1 -0
- package/dist/declarations/src/providers/index.d.ts.map +1 -1
- package/dist/declarations/src/providers/trm-labs/trm.schema.d.ts +358 -0
- package/dist/declarations/src/providers/trm-labs/trm.schema.d.ts.map +1 -0
- package/dist/{identity-api.schema-073b77e8.cjs.dev.cjs → identity-api.schema-9a1b028a.cjs.dev.cjs} +446 -446
- package/dist/{identity-api.schema-b0cdf833.cjs.prod.cjs → identity-api.schema-a6843fb9.cjs.prod.cjs} +446 -446
- package/dist/nexeraid-identity-schemas.cjs.dev.cjs +59 -59
- package/dist/nexeraid-identity-schemas.cjs.prod.cjs +59 -59
- package/dist/package.json +3 -3
- package/dist/{tfhe-utilities-f68d3b85.cjs.prod.cjs → tfhe-utilities-2ff3b3c1.cjs.prod.cjs} +2 -2
- package/dist/{tfhe-utilities-7506bbe3.cjs.dev.cjs → tfhe-utilities-5af6eb2a.cjs.dev.cjs} +2 -2
- package/dist/{toArray-d4a6f7df.cjs.dev.cjs → toArray-96f8cc3a.cjs.dev.cjs} +1 -1
- package/dist/{toArray-19bbf25f.cjs.prod.cjs → toArray-f5e38cce.cjs.prod.cjs} +1 -1
- package/dist/{CoinMarketCap.schema-ab71ee5f.cjs.prod.cjs → trm.schema-2ae40855.cjs.prod.cjs} +1276 -1207
- package/dist/{CoinMarketCap.schema-0c52a356.cjs.dev.cjs → trm.schema-4556df89.cjs.dev.cjs} +1276 -1207
- package/dist/{CoinMarketCap.schema-71fcc409.esm.mjs → trm.schema-d593fe86.esm.mjs} +62 -2
- package/dist/{vault.schema-68148c82.cjs.dev.cjs → vault.schema-6368506b.cjs.dev.cjs} +1268 -1268
- package/dist/{vault.schema-83220a2a.cjs.prod.cjs → vault.schema-b41992ec.cjs.prod.cjs} +1268 -1268
- package/dist/{zod-utils-22ad76a6.cjs.prod.cjs → zod-utils-46b101c1.cjs.prod.cjs} +12 -12
- package/dist/{zod-utils-373653ad.cjs.dev.cjs → zod-utils-4e3fa4df.cjs.dev.cjs} +12 -12
- 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/package.json +3 -3
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.dev.cjs +294 -289
- package/providers/dist/nexeraid-identity-schemas-providers.cjs.prod.cjs +294 -289
- package/providers/dist/nexeraid-identity-schemas-providers.esm.mjs +1 -1
- package/vault/dist/nexeraid-identity-schemas-vault.cjs.dev.cjs +3 -3
- package/vault/dist/nexeraid-identity-schemas-vault.cjs.prod.cjs +3 -3
- 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/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.dev.cjs +484 -484
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.cjs.prod.cjs +484 -484
- package/webhooks/dist/nexeraid-identity-schemas-webhooks.esm.mjs +1 -1
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vault_schema = require('./vault.schema-
|
|
6
|
-
var
|
|
7
|
-
var identityApi_schema = require('./identity-api.schema-
|
|
8
|
-
var tfheUtilities = require('./tfhe-utilities-
|
|
9
|
-
var zodUtils = require('./zod-utils-
|
|
5
|
+
var vault_schema = require('./vault.schema-6368506b.cjs.dev.cjs');
|
|
6
|
+
var z = require('zod');
|
|
7
|
+
var identityApi_schema = require('./identity-api.schema-9a1b028a.cjs.dev.cjs');
|
|
8
|
+
var tfheUtilities = require('./tfhe-utilities-5af6eb2a.cjs.dev.cjs');
|
|
9
|
+
var zodUtils = require('./zod-utils-4e3fa4df.cjs.dev.cjs');
|
|
10
10
|
require('nanoid');
|
|
11
11
|
require('decimal.js');
|
|
12
|
-
require('./toArray-
|
|
12
|
+
require('./toArray-96f8cc3a.cjs.dev.cjs');
|
|
13
13
|
|
|
14
14
|
var decodeUint8Array = function decodeUint8Array(data) {
|
|
15
15
|
var salt = data;
|
|
@@ -17,78 +17,78 @@ var decodeUint8Array = function decodeUint8Array(data) {
|
|
|
17
17
|
return salt[key];
|
|
18
18
|
}));
|
|
19
19
|
};
|
|
20
|
-
var EncryptedKycKey =
|
|
21
|
-
address:
|
|
22
|
-
encryptedPrivateKey:
|
|
23
|
-
signingMessage:
|
|
20
|
+
var EncryptedKycKey = z.z.object({
|
|
21
|
+
address: z.z.string(),
|
|
22
|
+
encryptedPrivateKey: z.z.string(),
|
|
23
|
+
signingMessage: z.z.string(),
|
|
24
24
|
// Why use unknown here if it's going to be used as EncodedUint8Array in the decodeUint8Array func?
|
|
25
|
-
salt:
|
|
26
|
-
iv:
|
|
27
|
-
did:
|
|
25
|
+
salt: z.z.preprocess(decodeUint8Array, z.z.unknown()),
|
|
26
|
+
iv: z.z.preprocess(decodeUint8Array, z.z.unknown()),
|
|
27
|
+
did: z.z.string().optional()
|
|
28
28
|
});
|
|
29
|
-
var EncryptedVerifiableCredentialDataSchema =
|
|
30
|
-
iv:
|
|
31
|
-
ephemPublicKey:
|
|
32
|
-
ciphertext:
|
|
33
|
-
mac:
|
|
29
|
+
var EncryptedVerifiableCredentialDataSchema = z.z.object({
|
|
30
|
+
iv: z.z.preprocess(decodeUint8Array, z.z.unknown()),
|
|
31
|
+
ephemPublicKey: z.z.preprocess(decodeUint8Array, z.z.unknown()),
|
|
32
|
+
ciphertext: z.z.preprocess(decodeUint8Array, z.z.unknown()),
|
|
33
|
+
mac: z.z.preprocess(decodeUint8Array, z.z.unknown())
|
|
34
34
|
});
|
|
35
|
-
var EncryptedVerifiableCredentialSchema =
|
|
36
|
-
id:
|
|
37
|
-
did:
|
|
38
|
-
journeyId:
|
|
39
|
-
type:
|
|
40
|
-
datetime:
|
|
35
|
+
var EncryptedVerifiableCredentialSchema = z.z.object({
|
|
36
|
+
id: z.z.number().optional(),
|
|
37
|
+
did: z.z.string(),
|
|
38
|
+
journeyId: z.z.string().optional(),
|
|
39
|
+
type: z.z["enum"](identityApi_schema.CredentialTypes),
|
|
40
|
+
datetime: z.z.coerce.date(),
|
|
41
41
|
credential: EncryptedVerifiableCredentialDataSchema,
|
|
42
|
-
identifier:
|
|
42
|
+
identifier: z.z.string().optional()
|
|
43
43
|
});
|
|
44
|
-
var DownloadableKycSchema =
|
|
45
|
-
vcs:
|
|
44
|
+
var DownloadableKycSchema = z.z.object({
|
|
45
|
+
vcs: z.z.array(z.z.any()),
|
|
46
46
|
key: EncryptedKycKey
|
|
47
47
|
});
|
|
48
48
|
|
|
49
49
|
var MAX_MEDIA_FILE_SIZE = 5 * 1024 * 1024;
|
|
50
|
-
var MediaDataSchema =
|
|
51
|
-
width:
|
|
52
|
-
height:
|
|
53
|
-
mimeType:
|
|
54
|
-
filesize:
|
|
55
|
-
filename:
|
|
56
|
-
url:
|
|
50
|
+
var MediaDataSchema = z.z.object({
|
|
51
|
+
width: z.z.number().nullish(),
|
|
52
|
+
height: z.z.number().nullish(),
|
|
53
|
+
mimeType: z.z.string().nullish(),
|
|
54
|
+
filesize: z.z.number().nullish(),
|
|
55
|
+
filename: z.z.string().nullish(),
|
|
56
|
+
url: z.z.string().nullish()
|
|
57
57
|
});
|
|
58
|
-
var ImageUploadResponseSchema =
|
|
59
|
-
message:
|
|
60
|
-
doc:
|
|
61
|
-
id:
|
|
62
|
-
filename:
|
|
63
|
-
mimeType:
|
|
64
|
-
filesize:
|
|
65
|
-
width:
|
|
66
|
-
height:
|
|
67
|
-
sizes:
|
|
58
|
+
var ImageUploadResponseSchema = z.z.object({
|
|
59
|
+
message: z.z.string(),
|
|
60
|
+
doc: z.z.object({
|
|
61
|
+
id: z.z.string(),
|
|
62
|
+
filename: z.z.string(),
|
|
63
|
+
mimeType: z.z.string(),
|
|
64
|
+
filesize: z.z.number(),
|
|
65
|
+
width: z.z.number(),
|
|
66
|
+
height: z.z.number(),
|
|
67
|
+
sizes: z.z.object({
|
|
68
68
|
thumbnail: MediaDataSchema,
|
|
69
69
|
card: MediaDataSchema,
|
|
70
70
|
tablet: MediaDataSchema
|
|
71
71
|
}),
|
|
72
|
-
createdAt:
|
|
73
|
-
updatedAt:
|
|
74
|
-
url:
|
|
72
|
+
createdAt: z.z.string(),
|
|
73
|
+
updatedAt: z.z.string(),
|
|
74
|
+
url: z.z.string()
|
|
75
75
|
})
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
var AWS_WEBHOOK_TYPES = ["SubscriptionConfirmation", "Notification"];
|
|
79
|
-
var AwsWebhookTypes =
|
|
80
|
-
var AwsWebhookInput =
|
|
79
|
+
var AwsWebhookTypes = z.z["enum"](AWS_WEBHOOK_TYPES);
|
|
80
|
+
var AwsWebhookInput = z.z.object({
|
|
81
81
|
Type: AwsWebhookTypes,
|
|
82
|
-
MessageId:
|
|
83
|
-
TopicArn:
|
|
84
|
-
Subject:
|
|
85
|
-
Message:
|
|
86
|
-
Timestamp:
|
|
87
|
-
SignatureVersion:
|
|
88
|
-
Signature:
|
|
89
|
-
SigningCertURL:
|
|
90
|
-
UnsubscribeURL:
|
|
91
|
-
SubscribeURL:
|
|
82
|
+
MessageId: z.z.string(),
|
|
83
|
+
TopicArn: z.z.string(),
|
|
84
|
+
Subject: z.z.string().nullish(),
|
|
85
|
+
Message: z.z.string(),
|
|
86
|
+
Timestamp: z.z.string(),
|
|
87
|
+
SignatureVersion: z.z.string(),
|
|
88
|
+
Signature: z.z.string(),
|
|
89
|
+
SigningCertURL: z.z.string(),
|
|
90
|
+
UnsubscribeURL: z.z.string().nullish(),
|
|
91
|
+
SubscribeURL: z.z.string().nullish()
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
var STATIC_DATASET_COLUMNS = {
|
|
@@ -2,14 +2,14 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
4
4
|
|
|
5
|
-
var vault_schema = require('./vault.schema-
|
|
6
|
-
var
|
|
7
|
-
var identityApi_schema = require('./identity-api.schema-
|
|
8
|
-
var tfheUtilities = require('./tfhe-utilities-
|
|
9
|
-
var zodUtils = require('./zod-utils-
|
|
5
|
+
var vault_schema = require('./vault.schema-b41992ec.cjs.prod.cjs');
|
|
6
|
+
var z = require('zod');
|
|
7
|
+
var identityApi_schema = require('./identity-api.schema-a6843fb9.cjs.prod.cjs');
|
|
8
|
+
var tfheUtilities = require('./tfhe-utilities-2ff3b3c1.cjs.prod.cjs');
|
|
9
|
+
var zodUtils = require('./zod-utils-46b101c1.cjs.prod.cjs');
|
|
10
10
|
require('nanoid');
|
|
11
11
|
require('decimal.js');
|
|
12
|
-
require('./toArray-
|
|
12
|
+
require('./toArray-f5e38cce.cjs.prod.cjs');
|
|
13
13
|
|
|
14
14
|
var decodeUint8Array = function decodeUint8Array(data) {
|
|
15
15
|
var salt = data;
|
|
@@ -17,78 +17,78 @@ var decodeUint8Array = function decodeUint8Array(data) {
|
|
|
17
17
|
return salt[key];
|
|
18
18
|
}));
|
|
19
19
|
};
|
|
20
|
-
var EncryptedKycKey =
|
|
21
|
-
address:
|
|
22
|
-
encryptedPrivateKey:
|
|
23
|
-
signingMessage:
|
|
20
|
+
var EncryptedKycKey = z.z.object({
|
|
21
|
+
address: z.z.string(),
|
|
22
|
+
encryptedPrivateKey: z.z.string(),
|
|
23
|
+
signingMessage: z.z.string(),
|
|
24
24
|
// Why use unknown here if it's going to be used as EncodedUint8Array in the decodeUint8Array func?
|
|
25
|
-
salt:
|
|
26
|
-
iv:
|
|
27
|
-
did:
|
|
25
|
+
salt: z.z.preprocess(decodeUint8Array, z.z.unknown()),
|
|
26
|
+
iv: z.z.preprocess(decodeUint8Array, z.z.unknown()),
|
|
27
|
+
did: z.z.string().optional()
|
|
28
28
|
});
|
|
29
|
-
var EncryptedVerifiableCredentialDataSchema =
|
|
30
|
-
iv:
|
|
31
|
-
ephemPublicKey:
|
|
32
|
-
ciphertext:
|
|
33
|
-
mac:
|
|
29
|
+
var EncryptedVerifiableCredentialDataSchema = z.z.object({
|
|
30
|
+
iv: z.z.preprocess(decodeUint8Array, z.z.unknown()),
|
|
31
|
+
ephemPublicKey: z.z.preprocess(decodeUint8Array, z.z.unknown()),
|
|
32
|
+
ciphertext: z.z.preprocess(decodeUint8Array, z.z.unknown()),
|
|
33
|
+
mac: z.z.preprocess(decodeUint8Array, z.z.unknown())
|
|
34
34
|
});
|
|
35
|
-
var EncryptedVerifiableCredentialSchema =
|
|
36
|
-
id:
|
|
37
|
-
did:
|
|
38
|
-
journeyId:
|
|
39
|
-
type:
|
|
40
|
-
datetime:
|
|
35
|
+
var EncryptedVerifiableCredentialSchema = z.z.object({
|
|
36
|
+
id: z.z.number().optional(),
|
|
37
|
+
did: z.z.string(),
|
|
38
|
+
journeyId: z.z.string().optional(),
|
|
39
|
+
type: z.z["enum"](identityApi_schema.CredentialTypes),
|
|
40
|
+
datetime: z.z.coerce.date(),
|
|
41
41
|
credential: EncryptedVerifiableCredentialDataSchema,
|
|
42
|
-
identifier:
|
|
42
|
+
identifier: z.z.string().optional()
|
|
43
43
|
});
|
|
44
|
-
var DownloadableKycSchema =
|
|
45
|
-
vcs:
|
|
44
|
+
var DownloadableKycSchema = z.z.object({
|
|
45
|
+
vcs: z.z.array(z.z.any()),
|
|
46
46
|
key: EncryptedKycKey
|
|
47
47
|
});
|
|
48
48
|
|
|
49
49
|
var MAX_MEDIA_FILE_SIZE = 5 * 1024 * 1024;
|
|
50
|
-
var MediaDataSchema =
|
|
51
|
-
width:
|
|
52
|
-
height:
|
|
53
|
-
mimeType:
|
|
54
|
-
filesize:
|
|
55
|
-
filename:
|
|
56
|
-
url:
|
|
50
|
+
var MediaDataSchema = z.z.object({
|
|
51
|
+
width: z.z.number().nullish(),
|
|
52
|
+
height: z.z.number().nullish(),
|
|
53
|
+
mimeType: z.z.string().nullish(),
|
|
54
|
+
filesize: z.z.number().nullish(),
|
|
55
|
+
filename: z.z.string().nullish(),
|
|
56
|
+
url: z.z.string().nullish()
|
|
57
57
|
});
|
|
58
|
-
var ImageUploadResponseSchema =
|
|
59
|
-
message:
|
|
60
|
-
doc:
|
|
61
|
-
id:
|
|
62
|
-
filename:
|
|
63
|
-
mimeType:
|
|
64
|
-
filesize:
|
|
65
|
-
width:
|
|
66
|
-
height:
|
|
67
|
-
sizes:
|
|
58
|
+
var ImageUploadResponseSchema = z.z.object({
|
|
59
|
+
message: z.z.string(),
|
|
60
|
+
doc: z.z.object({
|
|
61
|
+
id: z.z.string(),
|
|
62
|
+
filename: z.z.string(),
|
|
63
|
+
mimeType: z.z.string(),
|
|
64
|
+
filesize: z.z.number(),
|
|
65
|
+
width: z.z.number(),
|
|
66
|
+
height: z.z.number(),
|
|
67
|
+
sizes: z.z.object({
|
|
68
68
|
thumbnail: MediaDataSchema,
|
|
69
69
|
card: MediaDataSchema,
|
|
70
70
|
tablet: MediaDataSchema
|
|
71
71
|
}),
|
|
72
|
-
createdAt:
|
|
73
|
-
updatedAt:
|
|
74
|
-
url:
|
|
72
|
+
createdAt: z.z.string(),
|
|
73
|
+
updatedAt: z.z.string(),
|
|
74
|
+
url: z.z.string()
|
|
75
75
|
})
|
|
76
76
|
});
|
|
77
77
|
|
|
78
78
|
var AWS_WEBHOOK_TYPES = ["SubscriptionConfirmation", "Notification"];
|
|
79
|
-
var AwsWebhookTypes =
|
|
80
|
-
var AwsWebhookInput =
|
|
79
|
+
var AwsWebhookTypes = z.z["enum"](AWS_WEBHOOK_TYPES);
|
|
80
|
+
var AwsWebhookInput = z.z.object({
|
|
81
81
|
Type: AwsWebhookTypes,
|
|
82
|
-
MessageId:
|
|
83
|
-
TopicArn:
|
|
84
|
-
Subject:
|
|
85
|
-
Message:
|
|
86
|
-
Timestamp:
|
|
87
|
-
SignatureVersion:
|
|
88
|
-
Signature:
|
|
89
|
-
SigningCertURL:
|
|
90
|
-
UnsubscribeURL:
|
|
91
|
-
SubscribeURL:
|
|
82
|
+
MessageId: z.z.string(),
|
|
83
|
+
TopicArn: z.z.string(),
|
|
84
|
+
Subject: z.z.string().nullish(),
|
|
85
|
+
Message: z.z.string(),
|
|
86
|
+
Timestamp: z.z.string(),
|
|
87
|
+
SignatureVersion: z.z.string(),
|
|
88
|
+
Signature: z.z.string(),
|
|
89
|
+
SigningCertURL: z.z.string(),
|
|
90
|
+
UnsubscribeURL: z.z.string().nullish(),
|
|
91
|
+
SubscribeURL: z.z.string().nullish()
|
|
92
92
|
});
|
|
93
93
|
|
|
94
94
|
var STATIC_DATASET_COLUMNS = {
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@nexeraid/identity-schemas",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.166.0",
|
|
4
4
|
"description": "",
|
|
5
5
|
"keywords": [],
|
|
6
6
|
"license": "ISC",
|
|
@@ -90,8 +90,8 @@
|
|
|
90
90
|
"@nexeraid/logger": "workspace:*",
|
|
91
91
|
"decimal.js": "^10.5.0",
|
|
92
92
|
"nanoid": "3.3.4",
|
|
93
|
-
"remeda": "^2.22.
|
|
94
|
-
"zod": "^3.25.
|
|
93
|
+
"remeda": "^2.22.6",
|
|
94
|
+
"zod": "^3.25.55",
|
|
95
95
|
"zod-to-json-schema": "^3.24.5"
|
|
96
96
|
},
|
|
97
97
|
"devDependencies": {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var vault_schema = require('./vault.schema-
|
|
4
|
-
var identityApi_schema = require('./identity-api.schema-
|
|
3
|
+
var vault_schema = require('./vault.schema-b41992ec.cjs.prod.cjs');
|
|
4
|
+
var identityApi_schema = require('./identity-api.schema-a6843fb9.cjs.prod.cjs');
|
|
5
5
|
|
|
6
6
|
var VC_JSON_SCHEMA_MAP = {
|
|
7
7
|
ProofOfResidence: {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var vault_schema = require('./vault.schema-
|
|
4
|
-
var identityApi_schema = require('./identity-api.schema-
|
|
3
|
+
var vault_schema = require('./vault.schema-6368506b.cjs.dev.cjs');
|
|
4
|
+
var identityApi_schema = require('./identity-api.schema-9a1b028a.cjs.dev.cjs');
|
|
5
5
|
|
|
6
6
|
var VC_JSON_SCHEMA_MAP = {
|
|
7
7
|
ProofOfResidence: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var vault_schema = require('./vault.schema-
|
|
3
|
+
var vault_schema = require('./vault.schema-6368506b.cjs.dev.cjs');
|
|
4
4
|
|
|
5
5
|
function _toArray(r) {
|
|
6
6
|
return vault_schema._arrayWithHoles(r) || vault_schema._iterableToArray(r) || vault_schema._unsupportedIterableToArray(r) || vault_schema._nonIterableRest();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use strict';
|
|
2
2
|
|
|
3
|
-
var vault_schema = require('./vault.schema-
|
|
3
|
+
var vault_schema = require('./vault.schema-b41992ec.cjs.prod.cjs');
|
|
4
4
|
|
|
5
5
|
function _toArray(r) {
|
|
6
6
|
return vault_schema._arrayWithHoles(r) || vault_schema._iterableToArray(r) || vault_schema._unsupportedIterableToArray(r) || vault_schema._nonIterableRest();
|