@cheqd/studio 3.2.1-develop.2 → 3.3.0-develop.2
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/services/api/credentials.d.ts.map +1 -1
- package/dist/services/api/credentials.js +15 -13
- package/dist/services/api/credentials.js.map +1 -1
- package/dist/static/swagger-api.json +51 -0
- package/dist/types/credential.d.ts +9 -0
- package/dist/types/credential.d.ts.map +1 -1
- package/dist/types/swagger-api-types.d.ts +39 -0
- package/dist/types/swagger-api-types.d.ts.map +1 -1
- package/dist/types/swagger-api-types.js +39 -0
- package/dist/types/swagger-api-types.js.map +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../src/services/api/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAG5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAInE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAMjF,qBAAa,WAAW;IACvB,OAAc,QAAQ,cAAqB;IAErC,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,oBAAoB,CAAC;
|
|
1
|
+
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../src/services/api/credentials.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAqB,oBAAoB,EAAE,MAAM,cAAc,CAAC;AAG5E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAInE,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,4CAA4C,CAAC;AAMjF,qBAAa,WAAW;IACvB,OAAc,QAAQ,cAAqB;IAErC,gBAAgB,CAAC,OAAO,EAAE,iBAAiB,EAAE,QAAQ,EAAE,cAAc,GAAG,OAAO,CAAC,oBAAoB,CAAC;CA0D3G"}
|
|
@@ -8,29 +8,31 @@ const { ENABLE_VERIDA_CONNECTOR } = process.env;
|
|
|
8
8
|
export class Credentials {
|
|
9
9
|
static instance = new Credentials();
|
|
10
10
|
async issue_credential(request, customer) {
|
|
11
|
+
const { attributes, credentialName, credentialSummary, credentialSchema, issuerDid, subjectDid, type, expirationDate, credentialStatus, '@context': context, format, ...additionalData } = request;
|
|
11
12
|
const credential = {
|
|
12
|
-
'@context': [...(
|
|
13
|
-
type: [...(
|
|
14
|
-
issuer: { id:
|
|
15
|
-
credentialSchema
|
|
13
|
+
'@context': [...(context || []), ...VC_CONTEXT],
|
|
14
|
+
type: [...(type || []), VC_TYPE],
|
|
15
|
+
issuer: { id: issuerDid },
|
|
16
|
+
credentialSchema,
|
|
16
17
|
credentialSubject: {
|
|
17
|
-
id:
|
|
18
|
-
...
|
|
18
|
+
id: subjectDid,
|
|
19
|
+
...attributes,
|
|
19
20
|
},
|
|
20
21
|
issuanceDate: new Date().toISOString(),
|
|
22
|
+
...additionalData,
|
|
21
23
|
};
|
|
22
|
-
if (
|
|
23
|
-
credential.expirationDate =
|
|
24
|
+
if (expirationDate) {
|
|
25
|
+
credential.expirationDate = expirationDate;
|
|
24
26
|
}
|
|
25
|
-
const statusOptions =
|
|
26
|
-
const verifiable_credential = await new IdentityServiceStrategySetup(customer.customerId).agent.createCredential(credential,
|
|
27
|
-
const isVeridaDid = new VeridaDIDValidator().validate(
|
|
27
|
+
const statusOptions = credentialStatus || null;
|
|
28
|
+
const verifiable_credential = await new IdentityServiceStrategySetup(customer.customerId).agent.createCredential(credential, format, statusOptions, customer);
|
|
29
|
+
const isVeridaDid = new VeridaDIDValidator().validate(subjectDid);
|
|
28
30
|
if (ENABLE_VERIDA_CONNECTOR === 'true' && isVeridaDid.valid && isVeridaDid.namespace) {
|
|
29
|
-
if (!
|
|
31
|
+
if (!credentialSchema)
|
|
30
32
|
throw new Error('Credential schema is required');
|
|
31
33
|
// dynamic import to avoid circular dependency
|
|
32
34
|
const { VeridaService } = await import('../connectors/verida.js');
|
|
33
|
-
await VeridaService.instance.sendCredential(isVeridaDid.namespace,
|
|
35
|
+
await VeridaService.instance.sendCredential(isVeridaDid.namespace, subjectDid, 'New Verifiable Credential', verifiable_credential, credentialName || v4(), credentialSchema, credentialSummary);
|
|
34
36
|
}
|
|
35
37
|
return verifiable_credential;
|
|
36
38
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../src/services/api/credentials.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,MAAM,CAAC,MAAM,EAAE,CAAC;AAEhB,MAAM,EAAE,uBAAuB,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC;AAEhD,MAAM,OAAO,WAAW;IAChB,MAAM,CAAC,QAAQ,GAAG,IAAI,WAAW,EAAE,CAAC;IAE3C,KAAK,CAAC,gBAAgB,CAAC,OAA0B,EAAE,QAAwB;QAC1E,MAAM,UAAU,
|
|
1
|
+
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../src/services/api/credentials.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,0BAA0B,CAAC;AAE/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,sBAAsB,CAAC;AACpE,OAAO,EAAE,EAAE,EAAE,MAAM,MAAM,CAAC;AAC1B,OAAO,KAAK,MAAM,MAAM,QAAQ,CAAC;AAEjC,OAAO,EAAE,kBAAkB,EAAE,MAAM,oCAAoC,CAAC;AACxE,MA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B,KAAK,MAAM,IAAI,WAAW,CAAC,KAAK,IAAI,WAAW,CAAC,SAAS,EAAE,CAAC;YACtF,IAAI,CAAC,gBAAgB;gBAAE,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;YAExE,8CAA8C;YAC9C,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,MAAM,CAAC,yBAAyB,CAAC,CAAC;YAElE,MAAM,aAAa,CAAC,QAAQ,CAAC,cAAc,CAC1C,WAAW,CAAC,SAAS,EACrB,UAAU,EACV,2BAA2B,EAC3B,qBAAqB,EACrB,cAAc,IAAI,EAAE,EAAE,EACtB,gBAAgB,EAChB,iBAAiB,CACjB,CAAC;QACH,CAAC;QACD,OAAO,qBAAqB,CAAC;IAC9B,CAAC"}
|
|
@@ -171,6 +171,57 @@
|
|
|
171
171
|
"statusPurpose": "revocation",
|
|
172
172
|
"statusListName": "employee-credentials"
|
|
173
173
|
}
|
|
174
|
+
},
|
|
175
|
+
"termsOfUse": {
|
|
176
|
+
"description": "Terms of use can be utilized by an issuer or a holder to communicate the terms under which a verifiable credential was issued.",
|
|
177
|
+
"type": "array",
|
|
178
|
+
"items": {
|
|
179
|
+
"type": "object",
|
|
180
|
+
"example": {
|
|
181
|
+
"type": "IssuerPolicy",
|
|
182
|
+
"id": "http://example.com/policies/credential/4",
|
|
183
|
+
"profile": "http://example.com/profiles/credential",
|
|
184
|
+
"prohibition": [
|
|
185
|
+
{
|
|
186
|
+
"assigner": "https://example.edu/issuers/14",
|
|
187
|
+
"assignee": "AllVerifiers",
|
|
188
|
+
"target": "http://example.edu/credentials/3732",
|
|
189
|
+
"action": [
|
|
190
|
+
"Archival"
|
|
191
|
+
]
|
|
192
|
+
}
|
|
193
|
+
]
|
|
194
|
+
}
|
|
195
|
+
}
|
|
196
|
+
},
|
|
197
|
+
"refreshService": {
|
|
198
|
+
"description": "RefreshService property MUST be one or more refresh services that provides enough information to the recipient's software such that the recipient can refresh the verifiable credential.",
|
|
199
|
+
"type": "array",
|
|
200
|
+
"items": {
|
|
201
|
+
"type": "object",
|
|
202
|
+
"example": {
|
|
203
|
+
"type": "ManualRefreshService2018",
|
|
204
|
+
"id": "https://example.edu/refresh/3732"
|
|
205
|
+
}
|
|
206
|
+
}
|
|
207
|
+
},
|
|
208
|
+
"evidence": {
|
|
209
|
+
"description": "Evidence property MUST be one or more evidence schemes providing enough information for a verifier to determine whether the evidence gathered by the issuer meets its confidence requirements for relying on the credential.",
|
|
210
|
+
"type": "array",
|
|
211
|
+
"items": {
|
|
212
|
+
"type": "object",
|
|
213
|
+
"example": {
|
|
214
|
+
"type": [
|
|
215
|
+
"DocumentVerification"
|
|
216
|
+
],
|
|
217
|
+
"id": "https://example.edu/evidence/f2aeec97-fc0d-42bf-8ca7-0548192d4231",
|
|
218
|
+
"verifier": "https://example.edu/issuers/14",
|
|
219
|
+
"evidenceDocument": "DriversLicense",
|
|
220
|
+
"subjectPresence": "Physical",
|
|
221
|
+
"documentPresence": "Physical",
|
|
222
|
+
"licenseNumber": "123AB4567"
|
|
223
|
+
}
|
|
224
|
+
}
|
|
174
225
|
}
|
|
175
226
|
},
|
|
176
227
|
"required": [
|
|
@@ -15,7 +15,16 @@ export interface CredentialRequest {
|
|
|
15
15
|
credentialSchema?: string;
|
|
16
16
|
credentialName?: string;
|
|
17
17
|
credentialSummary?: string;
|
|
18
|
+
termsOfUse?: AdditionalData | AdditionalData[];
|
|
19
|
+
refreshService?: AdditionalData | AdditionalData[];
|
|
20
|
+
evidence?: AdditionalData | AdditionalData[];
|
|
21
|
+
[x: string]: any;
|
|
18
22
|
}
|
|
23
|
+
export type AdditionalData = {
|
|
24
|
+
type: string | string[];
|
|
25
|
+
id?: string;
|
|
26
|
+
[x: string]: any;
|
|
27
|
+
};
|
|
19
28
|
export type VerificationPoliciesRequest = {
|
|
20
29
|
policies: VerificationPolicies;
|
|
21
30
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"credential.d.ts","sourceRoot":"","sources":["../../src/types/credential.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EACX,oBAAoB,EACpB,oBAAoB,EACpB,sBAAsB,EACtB,gBAAgB,EAChB,gBAAgB,EAChB,kBAAkB,EAClB,MAAM,2BAA2B,CAAC;AACnC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,aAAa,CAAC;AAEvD,MAAM,WAAW,iBAAiB;IACjC,UAAU,EAAE,MAAM,CAAC;IACnB,UAAU,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACpC,UAAU,CAAC,EAAE,MAAM,EAAE,CAAC;IACtB,IAAI,CAAC,EAAE,MAAM,EAAE,CAAC;IAChB,cAAc,CAAC,EAAE,QAAQ,CAAC;IAC1B,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,QAAQ,GAAG,KAAK,CAAC;IACzB,gBAAgB,CAAC,EAAE,aAAa,CAAC;IACjC,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;
|
|
1
|
+
{"version":3,"file":"credential.d.ts","sourceRoot":"","sources":["../../src/types/credential.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,cAAc,CAAC;AACvH,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,wBAAwB,CAAC;AAC5D,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,aAAa,CAAC;AAC5D,OAAO,KAAK,EACX,oBAAoB,EACpB,oBAAo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CAAwC,GAAG,IAAI,CAAC,gBAAgB,EAAE,WAAW,CAAC,GAAG,wBAAwB,CAAC;AAEtH,MAAM,MAAM,0CAA0C,GACnD,IAAI,CAAC,kBAAkB,EAAE,aAAa,CAAC,GACvC,wBAAwB,CAAC"}
|
|
@@ -91,6 +91,45 @@
|
|
|
91
91
|
* example:
|
|
92
92
|
* statusPurpose: revocation
|
|
93
93
|
* statusListName: employee-credentials
|
|
94
|
+
* termsOfUse:
|
|
95
|
+
* description: Terms of use can be utilized by an issuer or a holder to communicate the terms under which a verifiable credential was issued.
|
|
96
|
+
* type: array
|
|
97
|
+
* items:
|
|
98
|
+
* type: object
|
|
99
|
+
* example: {
|
|
100
|
+
* type: IssuerPolicy,
|
|
101
|
+
* id: http://example.com/policies/credential/4,
|
|
102
|
+
* profile: http://example.com/profiles/credential,
|
|
103
|
+
* prohibition: [{
|
|
104
|
+
* assigner: https://example.edu/issuers/14,
|
|
105
|
+
* assignee: AllVerifiers,
|
|
106
|
+
* target: http://example.edu/credentials/3732,
|
|
107
|
+
* action: [ "Archival" ]
|
|
108
|
+
* }]
|
|
109
|
+
* }
|
|
110
|
+
* refreshService:
|
|
111
|
+
* description: RefreshService property MUST be one or more refresh services that provides enough information to the recipient's software such that the recipient can refresh the verifiable credential.
|
|
112
|
+
* type: array
|
|
113
|
+
* items:
|
|
114
|
+
* type: object
|
|
115
|
+
* example: {
|
|
116
|
+
* type: ManualRefreshService2018,
|
|
117
|
+
* id: https://example.edu/refresh/3732
|
|
118
|
+
* }
|
|
119
|
+
* evidence:
|
|
120
|
+
* description: Evidence property MUST be one or more evidence schemes providing enough information for a verifier to determine whether the evidence gathered by the issuer meets its confidence requirements for relying on the credential.
|
|
121
|
+
* type: array
|
|
122
|
+
* items:
|
|
123
|
+
* type: object
|
|
124
|
+
* example: {
|
|
125
|
+
* type: ["DocumentVerification"],
|
|
126
|
+
* id: https://example.edu/evidence/f2aeec97-fc0d-42bf-8ca7-0548192d4231,
|
|
127
|
+
* verifier: "https://example.edu/issuers/14",
|
|
128
|
+
* evidenceDocument: DriversLicense,
|
|
129
|
+
* subjectPresence: Physical,
|
|
130
|
+
* documentPresence: Physical,
|
|
131
|
+
* licenseNumber: 123AB4567
|
|
132
|
+
* }
|
|
94
133
|
* required:
|
|
95
134
|
* - issuerDid
|
|
96
135
|
* - subjectDid
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swagger-api-types.d.ts","sourceRoot":"","sources":["../../src/types/swagger-api-types.ts"],"names":[],"mappings":"AAAA
|
|
1
|
+
{"version":3,"file":"swagger-api-types.d.ts","sourceRoot":"","sources":["../../src/types/swagger-api-types.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAo1CG"}
|
|
@@ -92,6 +92,45 @@
|
|
|
92
92
|
* example:
|
|
93
93
|
* statusPurpose: revocation
|
|
94
94
|
* statusListName: employee-credentials
|
|
95
|
+
* termsOfUse:
|
|
96
|
+
* description: Terms of use can be utilized by an issuer or a holder to communicate the terms under which a verifiable credential was issued.
|
|
97
|
+
* type: array
|
|
98
|
+
* items:
|
|
99
|
+
* type: object
|
|
100
|
+
* example: {
|
|
101
|
+
* type: IssuerPolicy,
|
|
102
|
+
* id: http://example.com/policies/credential/4,
|
|
103
|
+
* profile: http://example.com/profiles/credential,
|
|
104
|
+
* prohibition: [{
|
|
105
|
+
* assigner: https://example.edu/issuers/14,
|
|
106
|
+
* assignee: AllVerifiers,
|
|
107
|
+
* target: http://example.edu/credentials/3732,
|
|
108
|
+
* action: [ "Archival" ]
|
|
109
|
+
* }]
|
|
110
|
+
* }
|
|
111
|
+
* refreshService:
|
|
112
|
+
* description: RefreshService property MUST be one or more refresh services that provides enough information to the recipient's software such that the recipient can refresh the verifiable credential.
|
|
113
|
+
* type: array
|
|
114
|
+
* items:
|
|
115
|
+
* type: object
|
|
116
|
+
* example: {
|
|
117
|
+
* type: ManualRefreshService2018,
|
|
118
|
+
* id: https://example.edu/refresh/3732
|
|
119
|
+
* }
|
|
120
|
+
* evidence:
|
|
121
|
+
* description: Evidence property MUST be one or more evidence schemes providing enough information for a verifier to determine whether the evidence gathered by the issuer meets its confidence requirements for relying on the credential.
|
|
122
|
+
* type: array
|
|
123
|
+
* items:
|
|
124
|
+
* type: object
|
|
125
|
+
* example: {
|
|
126
|
+
* type: ["DocumentVerification"],
|
|
127
|
+
* id: https://example.edu/evidence/f2aeec97-fc0d-42bf-8ca7-0548192d4231,
|
|
128
|
+
* verifier: "https://example.edu/issuers/14",
|
|
129
|
+
* evidenceDocument: DriversLicense,
|
|
130
|
+
* subjectPresence: Physical,
|
|
131
|
+
* documentPresence: Physical,
|
|
132
|
+
* licenseNumber: 123AB4567
|
|
133
|
+
* }
|
|
95
134
|
* required:
|
|
96
135
|
* - issuerDid
|
|
97
136
|
* - subjectDid
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"swagger-api-types.js","sourceRoot":"","sources":["../../src/types/swagger-api-types.ts"],"names":[],"mappings":";AAAA
|
|
1
|
+
{"version":3,"file":"swagger-api-types.js","sourceRoot":"","sources":["../../src/types/swagger-api-types.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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