@kya-os/contracts 1.3.2 → 1.3.3
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/README.md +1 -1
- package/dist/agentshield-api/endpoints.d.ts +21 -0
- package/dist/agentshield-api/endpoints.js +20 -0
- package/dist/agentshield-api/index.d.ts +5 -0
- package/dist/agentshield-api/index.js +27 -0
- package/dist/agentshield-api/schemas.d.ts +9846 -0
- package/dist/agentshield-api/schemas.js +92 -0
- package/dist/agentshield-api/types.d.ts +92 -0
- package/dist/agentshield-api/types.js +12 -0
- package/dist/cli.d.ts +3 -6
- package/dist/cli.js +3 -10
- package/dist/config/base.d.ts +19 -0
- package/dist/config/base.js +2 -0
- package/dist/config/delegation.d.ts +46 -0
- package/dist/config/delegation.js +2 -0
- package/dist/config/identity.d.ts +22 -0
- package/dist/config/identity.js +2 -0
- package/dist/config/index.d.ts +17 -0
- package/dist/config/index.js +2 -0
- package/dist/config/proofing.d.ts +26 -0
- package/dist/config/proofing.js +2 -0
- package/dist/config/tool-protection.d.ts +36 -0
- package/dist/config/tool-protection.js +2 -0
- package/dist/delegation/constraints.d.ts +0 -266
- package/dist/delegation/constraints.js +3 -110
- package/dist/delegation/index.d.ts +0 -6
- package/dist/delegation/index.js +0 -6
- package/dist/delegation/schemas.d.ts +174 -514
- package/dist/delegation/schemas.js +3 -247
- package/dist/did/index.d.ts +0 -6
- package/dist/did/index.js +0 -6
- package/dist/did/resolve-contract.d.ts +0 -167
- package/dist/did/resolve-contract.js +0 -20
- package/dist/did/schemas.d.ts +0 -80
- package/dist/did/schemas.js +4 -97
- package/dist/did/types.d.ts +0 -126
- package/dist/did/types.js +0 -34
- package/dist/env/constants.d.ts +0 -45
- package/dist/env/constants.js +0 -45
- package/dist/env/index.d.ts +0 -4
- package/dist/env/index.js +0 -4
- package/dist/handshake.d.ts +0 -21
- package/dist/handshake.js +3 -11
- package/dist/index.d.ts +0 -15
- package/dist/index.js +0 -25
- package/dist/proof/index.d.ts +0 -7
- package/dist/proof/index.js +0 -7
- package/dist/proof/proof-record.d.ts +62 -172
- package/dist/proof/proof-record.js +0 -74
- package/dist/proof/signing-spec.d.ts +12 -86
- package/dist/proof/signing-spec.js +0 -71
- package/dist/proof.d.ts +16 -38
- package/dist/proof.js +3 -26
- package/dist/registry.d.ts +10 -27
- package/dist/registry.js +9 -30
- package/dist/runtime/errors.d.ts +0 -169
- package/dist/runtime/errors.js +0 -69
- package/dist/runtime/headers.d.ts +0 -50
- package/dist/runtime/headers.js +0 -30
- package/dist/runtime/index.d.ts +0 -4
- package/dist/runtime/index.js +0 -4
- package/dist/test.d.ts +0 -37
- package/dist/test.js +0 -37
- package/dist/tlkrc/index.d.ts +0 -4
- package/dist/tlkrc/index.js +0 -4
- package/dist/tlkrc/rotation.d.ts +12 -90
- package/dist/tlkrc/rotation.js +0 -72
- package/dist/tool-protection/index.d.ts +129 -0
- package/dist/tool-protection/index.js +80 -0
- package/dist/utils/validation.d.ts +0 -17
- package/dist/utils/validation.js +0 -14
- package/dist/vc/index.d.ts +0 -6
- package/dist/vc/index.js +0 -6
- package/dist/vc/schemas.d.ts +0 -596
- package/dist/vc/schemas.js +2 -111
- package/dist/vc/statuslist.d.ts +0 -202
- package/dist/vc/statuslist.js +1 -73
- package/dist/verifier.d.ts +9 -13
- package/dist/verifier.js +0 -8
- package/dist/well-known/index.d.ts +248 -0
- package/dist/well-known/index.js +104 -0
- package/package.json +27 -5
package/dist/vc/schemas.d.ts
CHANGED
|
@@ -1,39 +1,8 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Verifiable Credentials (W3C 1.1) Schemas
|
|
3
|
-
*
|
|
4
|
-
* Zod schemas and TypeScript types for W3C Verifiable Credentials Data Model 1.1.
|
|
5
|
-
* These schemas provide runtime validation and can emit JSON Schemas for interoperability.
|
|
6
|
-
*
|
|
7
|
-
* Related Spec: MCP-I §3, W3C VC Data Model 1.1
|
|
8
|
-
* Python Reference: Credential-Documentation.md, Credential-Service.md
|
|
9
|
-
*/
|
|
10
1
|
import { z } from 'zod';
|
|
11
|
-
/**
|
|
12
|
-
* Standard W3C Verifiable Credentials context
|
|
13
|
-
*/
|
|
14
2
|
export declare const VC_CONTEXT: readonly ["https://www.w3.org/2018/credentials/v1"];
|
|
15
|
-
/**
|
|
16
|
-
* Additional context for StatusList2021
|
|
17
|
-
*/
|
|
18
3
|
export declare const STATUS_LIST_CONTEXT: "https://w3id.org/vc/status-list/2021/v1";
|
|
19
|
-
/**
|
|
20
|
-
* Context Entry Schema
|
|
21
|
-
*
|
|
22
|
-
* Supports both string URLs and context objects
|
|
23
|
-
*/
|
|
24
4
|
export declare const ContextEntrySchema: z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>;
|
|
25
|
-
/**
|
|
26
|
-
* @context Schema
|
|
27
|
-
*
|
|
28
|
-
* The @context property establishes the semantic context of the credential.
|
|
29
|
-
* MUST include the base VC context and MAY include additional contexts.
|
|
30
|
-
*/
|
|
31
5
|
export declare const ContextSchema: z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
32
|
-
/**
|
|
33
|
-
* Issuer Schema
|
|
34
|
-
*
|
|
35
|
-
* The issuer can be a DID string or an object with an id field
|
|
36
|
-
*/
|
|
37
6
|
export declare const IssuerSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
38
7
|
id: z.ZodString;
|
|
39
8
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -41,28 +10,12 @@ export declare const IssuerSchema: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
|
41
10
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
42
11
|
id: z.ZodString;
|
|
43
12
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
44
|
-
/**
|
|
45
|
-
* Credential Subject Schema
|
|
46
|
-
*
|
|
47
|
-
* The subject of the credential. Can be a single object or array of objects.
|
|
48
|
-
* MUST have an id property that is a DID or URI.
|
|
49
|
-
*/
|
|
50
13
|
export declare const CredentialSubjectSchema: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
51
|
-
/**
|
|
52
|
-
* Credential Status Schema (StatusList2021Entry)
|
|
53
|
-
*
|
|
54
|
-
* References a position in a StatusList2021 credential for revocation/suspension checking.
|
|
55
|
-
*/
|
|
56
14
|
export declare const CredentialStatusSchema: z.ZodObject<{
|
|
57
|
-
/** URI of this status entry */
|
|
58
15
|
id: z.ZodString;
|
|
59
|
-
/** Type MUST be StatusList2021Entry */
|
|
60
16
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
61
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
62
17
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
63
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
64
18
|
statusListIndex: z.ZodString;
|
|
65
|
-
/** URL of the StatusList2021Credential */
|
|
66
19
|
statusListCredential: z.ZodString;
|
|
67
20
|
}, "strip", z.ZodTypeAny, {
|
|
68
21
|
type: "StatusList2021Entry";
|
|
@@ -77,12 +30,6 @@ export declare const CredentialStatusSchema: z.ZodObject<{
|
|
|
77
30
|
statusListIndex: string;
|
|
78
31
|
statusListCredential: string;
|
|
79
32
|
}>;
|
|
80
|
-
/**
|
|
81
|
-
* Proof Schema
|
|
82
|
-
*
|
|
83
|
-
* Cryptographic proof for the credential.
|
|
84
|
-
* This is a flexible schema as proof formats vary.
|
|
85
|
-
*/
|
|
86
33
|
export declare const ProofSchema: z.ZodObject<{
|
|
87
34
|
type: z.ZodString;
|
|
88
35
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -99,20 +46,10 @@ export declare const ProofSchema: z.ZodObject<{
|
|
|
99
46
|
verificationMethod: z.ZodOptional<z.ZodString>;
|
|
100
47
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
101
48
|
}, z.ZodTypeAny, "passthrough">>;
|
|
102
|
-
/**
|
|
103
|
-
* Verifiable Credential Schema (W3C 1.1)
|
|
104
|
-
*
|
|
105
|
-
* Core schema for W3C Verifiable Credentials.
|
|
106
|
-
* Supports all required and common optional fields.
|
|
107
|
-
*/
|
|
108
49
|
export declare const VerifiableCredentialSchema: z.ZodObject<{
|
|
109
|
-
/** JSON-LD context */
|
|
110
50
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
111
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
112
51
|
id: z.ZodOptional<z.ZodString>;
|
|
113
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
114
52
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
115
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
116
53
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
117
54
|
id: z.ZodString;
|
|
118
55
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -120,23 +57,14 @@ export declare const VerifiableCredentialSchema: z.ZodObject<{
|
|
|
120
57
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
121
58
|
id: z.ZodString;
|
|
122
59
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
123
|
-
/** Issuance date in ISO 8601 format */
|
|
124
60
|
issuanceDate: z.ZodString;
|
|
125
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
126
61
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
127
|
-
/** The subject(s) of the credential */
|
|
128
62
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
129
|
-
/** Status information for revocation/suspension (optional) */
|
|
130
63
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
131
|
-
/** URI of this status entry */
|
|
132
64
|
id: z.ZodString;
|
|
133
|
-
/** Type MUST be StatusList2021Entry */
|
|
134
65
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
135
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
136
66
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
137
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
138
67
|
statusListIndex: z.ZodString;
|
|
139
|
-
/** URL of the StatusList2021Credential */
|
|
140
68
|
statusListCredential: z.ZodString;
|
|
141
69
|
}, "strip", z.ZodTypeAny, {
|
|
142
70
|
type: "StatusList2021Entry";
|
|
@@ -151,7 +79,6 @@ export declare const VerifiableCredentialSchema: z.ZodObject<{
|
|
|
151
79
|
statusListIndex: string;
|
|
152
80
|
statusListCredential: string;
|
|
153
81
|
}>>;
|
|
154
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
155
82
|
proof: z.ZodOptional<z.ZodObject<{
|
|
156
83
|
type: z.ZodString;
|
|
157
84
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -169,13 +96,9 @@ export declare const VerifiableCredentialSchema: z.ZodObject<{
|
|
|
169
96
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
170
97
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
171
98
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
172
|
-
/** JSON-LD context */
|
|
173
99
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
174
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
175
100
|
id: z.ZodOptional<z.ZodString>;
|
|
176
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
177
101
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
178
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
179
102
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
180
103
|
id: z.ZodString;
|
|
181
104
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -183,23 +106,14 @@ export declare const VerifiableCredentialSchema: z.ZodObject<{
|
|
|
183
106
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
184
107
|
id: z.ZodString;
|
|
185
108
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
186
|
-
/** Issuance date in ISO 8601 format */
|
|
187
109
|
issuanceDate: z.ZodString;
|
|
188
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
189
110
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
190
|
-
/** The subject(s) of the credential */
|
|
191
111
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
192
|
-
/** Status information for revocation/suspension (optional) */
|
|
193
112
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
194
|
-
/** URI of this status entry */
|
|
195
113
|
id: z.ZodString;
|
|
196
|
-
/** Type MUST be StatusList2021Entry */
|
|
197
114
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
198
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
199
115
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
200
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
201
116
|
statusListIndex: z.ZodString;
|
|
202
|
-
/** URL of the StatusList2021Credential */
|
|
203
117
|
statusListCredential: z.ZodString;
|
|
204
118
|
}, "strip", z.ZodTypeAny, {
|
|
205
119
|
type: "StatusList2021Entry";
|
|
@@ -214,7 +128,6 @@ export declare const VerifiableCredentialSchema: z.ZodObject<{
|
|
|
214
128
|
statusListIndex: string;
|
|
215
129
|
statusListCredential: string;
|
|
216
130
|
}>>;
|
|
217
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
218
131
|
proof: z.ZodOptional<z.ZodObject<{
|
|
219
132
|
type: z.ZodString;
|
|
220
133
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -232,13 +145,9 @@ export declare const VerifiableCredentialSchema: z.ZodObject<{
|
|
|
232
145
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
233
146
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
234
147
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
235
|
-
/** JSON-LD context */
|
|
236
148
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
237
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
238
149
|
id: z.ZodOptional<z.ZodString>;
|
|
239
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
240
150
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
241
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
242
151
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
243
152
|
id: z.ZodString;
|
|
244
153
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -246,23 +155,14 @@ export declare const VerifiableCredentialSchema: z.ZodObject<{
|
|
|
246
155
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
247
156
|
id: z.ZodString;
|
|
248
157
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
249
|
-
/** Issuance date in ISO 8601 format */
|
|
250
158
|
issuanceDate: z.ZodString;
|
|
251
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
252
159
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
253
|
-
/** The subject(s) of the credential */
|
|
254
160
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
255
|
-
/** Status information for revocation/suspension (optional) */
|
|
256
161
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
257
|
-
/** URI of this status entry */
|
|
258
162
|
id: z.ZodString;
|
|
259
|
-
/** Type MUST be StatusList2021Entry */
|
|
260
163
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
261
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
262
164
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
263
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
264
165
|
statusListIndex: z.ZodString;
|
|
265
|
-
/** URL of the StatusList2021Credential */
|
|
266
166
|
statusListCredential: z.ZodString;
|
|
267
167
|
}, "strip", z.ZodTypeAny, {
|
|
268
168
|
type: "StatusList2021Entry";
|
|
@@ -277,7 +177,6 @@ export declare const VerifiableCredentialSchema: z.ZodObject<{
|
|
|
277
177
|
statusListIndex: string;
|
|
278
178
|
statusListCredential: string;
|
|
279
179
|
}>>;
|
|
280
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
281
180
|
proof: z.ZodOptional<z.ZodObject<{
|
|
282
181
|
type: z.ZodString;
|
|
283
182
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -295,39 +194,22 @@ export declare const VerifiableCredentialSchema: z.ZodObject<{
|
|
|
295
194
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
296
195
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
297
196
|
}, z.ZodTypeAny, "passthrough">>;
|
|
298
|
-
/**
|
|
299
|
-
* Type exports
|
|
300
|
-
*/
|
|
301
197
|
export type ContextEntry = z.infer<typeof ContextEntrySchema>;
|
|
302
198
|
export type Context = z.infer<typeof ContextSchema>;
|
|
303
199
|
export type Issuer = z.infer<typeof IssuerSchema>;
|
|
304
200
|
export type CredentialSubject = z.infer<typeof CredentialSubjectSchema>;
|
|
305
201
|
export type CredentialStatus = z.infer<typeof CredentialStatusSchema>;
|
|
306
202
|
export type Proof = z.infer<typeof ProofSchema>;
|
|
307
|
-
/**
|
|
308
|
-
* Verifiable Credential Type
|
|
309
|
-
*
|
|
310
|
-
* Use this type for type-safe credential handling.
|
|
311
|
-
*/
|
|
312
203
|
export type VerifiableCredential = z.infer<typeof VerifiableCredentialSchema>;
|
|
313
|
-
/**
|
|
314
|
-
* Verifiable Presentation Schema
|
|
315
|
-
*
|
|
316
|
-
* Schema for presenting one or more credentials.
|
|
317
|
-
*/
|
|
318
204
|
export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
319
205
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
320
206
|
id: z.ZodOptional<z.ZodString>;
|
|
321
207
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
322
208
|
holder: z.ZodOptional<z.ZodString>;
|
|
323
209
|
verifiableCredential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
324
|
-
/** JSON-LD context */
|
|
325
210
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
326
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
327
211
|
id: z.ZodOptional<z.ZodString>;
|
|
328
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
329
212
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
330
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
331
213
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
332
214
|
id: z.ZodString;
|
|
333
215
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -335,23 +217,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
335
217
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
336
218
|
id: z.ZodString;
|
|
337
219
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
338
|
-
/** Issuance date in ISO 8601 format */
|
|
339
220
|
issuanceDate: z.ZodString;
|
|
340
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
341
221
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
342
|
-
/** The subject(s) of the credential */
|
|
343
222
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
344
|
-
/** Status information for revocation/suspension (optional) */
|
|
345
223
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
346
|
-
/** URI of this status entry */
|
|
347
224
|
id: z.ZodString;
|
|
348
|
-
/** Type MUST be StatusList2021Entry */
|
|
349
225
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
350
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
351
226
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
352
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
353
227
|
statusListIndex: z.ZodString;
|
|
354
|
-
/** URL of the StatusList2021Credential */
|
|
355
228
|
statusListCredential: z.ZodString;
|
|
356
229
|
}, "strip", z.ZodTypeAny, {
|
|
357
230
|
type: "StatusList2021Entry";
|
|
@@ -366,7 +239,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
366
239
|
statusListIndex: string;
|
|
367
240
|
statusListCredential: string;
|
|
368
241
|
}>>;
|
|
369
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
370
242
|
proof: z.ZodOptional<z.ZodObject<{
|
|
371
243
|
type: z.ZodString;
|
|
372
244
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -384,13 +256,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
384
256
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
385
257
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
386
258
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
387
|
-
/** JSON-LD context */
|
|
388
259
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
389
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
390
260
|
id: z.ZodOptional<z.ZodString>;
|
|
391
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
392
261
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
393
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
394
262
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
395
263
|
id: z.ZodString;
|
|
396
264
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -398,23 +266,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
398
266
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
399
267
|
id: z.ZodString;
|
|
400
268
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
401
|
-
/** Issuance date in ISO 8601 format */
|
|
402
269
|
issuanceDate: z.ZodString;
|
|
403
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
404
270
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
405
|
-
/** The subject(s) of the credential */
|
|
406
271
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
407
|
-
/** Status information for revocation/suspension (optional) */
|
|
408
272
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
409
|
-
/** URI of this status entry */
|
|
410
273
|
id: z.ZodString;
|
|
411
|
-
/** Type MUST be StatusList2021Entry */
|
|
412
274
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
413
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
414
275
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
415
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
416
276
|
statusListIndex: z.ZodString;
|
|
417
|
-
/** URL of the StatusList2021Credential */
|
|
418
277
|
statusListCredential: z.ZodString;
|
|
419
278
|
}, "strip", z.ZodTypeAny, {
|
|
420
279
|
type: "StatusList2021Entry";
|
|
@@ -429,7 +288,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
429
288
|
statusListIndex: string;
|
|
430
289
|
statusListCredential: string;
|
|
431
290
|
}>>;
|
|
432
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
433
291
|
proof: z.ZodOptional<z.ZodObject<{
|
|
434
292
|
type: z.ZodString;
|
|
435
293
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -447,13 +305,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
447
305
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
448
306
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
449
307
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
450
|
-
/** JSON-LD context */
|
|
451
308
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
452
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
453
309
|
id: z.ZodOptional<z.ZodString>;
|
|
454
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
455
310
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
456
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
457
311
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
458
312
|
id: z.ZodString;
|
|
459
313
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -461,23 +315,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
461
315
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
462
316
|
id: z.ZodString;
|
|
463
317
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
464
|
-
/** Issuance date in ISO 8601 format */
|
|
465
318
|
issuanceDate: z.ZodString;
|
|
466
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
467
319
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
468
|
-
/** The subject(s) of the credential */
|
|
469
320
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
470
|
-
/** Status information for revocation/suspension (optional) */
|
|
471
321
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
472
|
-
/** URI of this status entry */
|
|
473
322
|
id: z.ZodString;
|
|
474
|
-
/** Type MUST be StatusList2021Entry */
|
|
475
323
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
476
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
477
324
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
478
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
479
325
|
statusListIndex: z.ZodString;
|
|
480
|
-
/** URL of the StatusList2021Credential */
|
|
481
326
|
statusListCredential: z.ZodString;
|
|
482
327
|
}, "strip", z.ZodTypeAny, {
|
|
483
328
|
type: "StatusList2021Entry";
|
|
@@ -492,7 +337,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
492
337
|
statusListIndex: string;
|
|
493
338
|
statusListCredential: string;
|
|
494
339
|
}>>;
|
|
495
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
496
340
|
proof: z.ZodOptional<z.ZodObject<{
|
|
497
341
|
type: z.ZodString;
|
|
498
342
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -510,13 +354,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
510
354
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
511
355
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
512
356
|
}, z.ZodTypeAny, "passthrough">>, z.ZodArray<z.ZodObject<{
|
|
513
|
-
/** JSON-LD context */
|
|
514
357
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
515
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
516
358
|
id: z.ZodOptional<z.ZodString>;
|
|
517
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
518
359
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
519
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
520
360
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
521
361
|
id: z.ZodString;
|
|
522
362
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -524,23 +364,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
524
364
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
525
365
|
id: z.ZodString;
|
|
526
366
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
527
|
-
/** Issuance date in ISO 8601 format */
|
|
528
367
|
issuanceDate: z.ZodString;
|
|
529
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
530
368
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
531
|
-
/** The subject(s) of the credential */
|
|
532
369
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
533
|
-
/** Status information for revocation/suspension (optional) */
|
|
534
370
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
535
|
-
/** URI of this status entry */
|
|
536
371
|
id: z.ZodString;
|
|
537
|
-
/** Type MUST be StatusList2021Entry */
|
|
538
372
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
539
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
540
373
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
541
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
542
374
|
statusListIndex: z.ZodString;
|
|
543
|
-
/** URL of the StatusList2021Credential */
|
|
544
375
|
statusListCredential: z.ZodString;
|
|
545
376
|
}, "strip", z.ZodTypeAny, {
|
|
546
377
|
type: "StatusList2021Entry";
|
|
@@ -555,7 +386,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
555
386
|
statusListIndex: string;
|
|
556
387
|
statusListCredential: string;
|
|
557
388
|
}>>;
|
|
558
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
559
389
|
proof: z.ZodOptional<z.ZodObject<{
|
|
560
390
|
type: z.ZodString;
|
|
561
391
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -573,13 +403,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
573
403
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
574
404
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
575
405
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
576
|
-
/** JSON-LD context */
|
|
577
406
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
578
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
579
407
|
id: z.ZodOptional<z.ZodString>;
|
|
580
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
581
408
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
582
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
583
409
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
584
410
|
id: z.ZodString;
|
|
585
411
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -587,23 +413,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
587
413
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
588
414
|
id: z.ZodString;
|
|
589
415
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
590
|
-
/** Issuance date in ISO 8601 format */
|
|
591
416
|
issuanceDate: z.ZodString;
|
|
592
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
593
417
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
594
|
-
/** The subject(s) of the credential */
|
|
595
418
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
596
|
-
/** Status information for revocation/suspension (optional) */
|
|
597
419
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
598
|
-
/** URI of this status entry */
|
|
599
420
|
id: z.ZodString;
|
|
600
|
-
/** Type MUST be StatusList2021Entry */
|
|
601
421
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
602
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
603
422
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
604
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
605
423
|
statusListIndex: z.ZodString;
|
|
606
|
-
/** URL of the StatusList2021Credential */
|
|
607
424
|
statusListCredential: z.ZodString;
|
|
608
425
|
}, "strip", z.ZodTypeAny, {
|
|
609
426
|
type: "StatusList2021Entry";
|
|
@@ -618,7 +435,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
618
435
|
statusListIndex: string;
|
|
619
436
|
statusListCredential: string;
|
|
620
437
|
}>>;
|
|
621
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
622
438
|
proof: z.ZodOptional<z.ZodObject<{
|
|
623
439
|
type: z.ZodString;
|
|
624
440
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -636,13 +452,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
636
452
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
637
453
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
638
454
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
639
|
-
/** JSON-LD context */
|
|
640
455
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
641
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
642
456
|
id: z.ZodOptional<z.ZodString>;
|
|
643
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
644
457
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
645
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
646
458
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
647
459
|
id: z.ZodString;
|
|
648
460
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -650,23 +462,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
650
462
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
651
463
|
id: z.ZodString;
|
|
652
464
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
653
|
-
/** Issuance date in ISO 8601 format */
|
|
654
465
|
issuanceDate: z.ZodString;
|
|
655
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
656
466
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
657
|
-
/** The subject(s) of the credential */
|
|
658
467
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
659
|
-
/** Status information for revocation/suspension (optional) */
|
|
660
468
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
661
|
-
/** URI of this status entry */
|
|
662
469
|
id: z.ZodString;
|
|
663
|
-
/** Type MUST be StatusList2021Entry */
|
|
664
470
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
665
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
666
471
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
667
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
668
472
|
statusListIndex: z.ZodString;
|
|
669
|
-
/** URL of the StatusList2021Credential */
|
|
670
473
|
statusListCredential: z.ZodString;
|
|
671
474
|
}, "strip", z.ZodTypeAny, {
|
|
672
475
|
type: "StatusList2021Entry";
|
|
@@ -681,7 +484,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
681
484
|
statusListIndex: string;
|
|
682
485
|
statusListCredential: string;
|
|
683
486
|
}>>;
|
|
684
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
685
487
|
proof: z.ZodOptional<z.ZodObject<{
|
|
686
488
|
type: z.ZodString;
|
|
687
489
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -721,13 +523,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
721
523
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
722
524
|
holder: z.ZodOptional<z.ZodString>;
|
|
723
525
|
verifiableCredential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
724
|
-
/** JSON-LD context */
|
|
725
526
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
726
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
727
527
|
id: z.ZodOptional<z.ZodString>;
|
|
728
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
729
528
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
730
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
731
529
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
732
530
|
id: z.ZodString;
|
|
733
531
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -735,23 +533,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
735
533
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
736
534
|
id: z.ZodString;
|
|
737
535
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
738
|
-
/** Issuance date in ISO 8601 format */
|
|
739
536
|
issuanceDate: z.ZodString;
|
|
740
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
741
537
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
742
|
-
/** The subject(s) of the credential */
|
|
743
538
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
744
|
-
/** Status information for revocation/suspension (optional) */
|
|
745
539
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
746
|
-
/** URI of this status entry */
|
|
747
540
|
id: z.ZodString;
|
|
748
|
-
/** Type MUST be StatusList2021Entry */
|
|
749
541
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
750
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
751
542
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
752
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
753
543
|
statusListIndex: z.ZodString;
|
|
754
|
-
/** URL of the StatusList2021Credential */
|
|
755
544
|
statusListCredential: z.ZodString;
|
|
756
545
|
}, "strip", z.ZodTypeAny, {
|
|
757
546
|
type: "StatusList2021Entry";
|
|
@@ -766,7 +555,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
766
555
|
statusListIndex: string;
|
|
767
556
|
statusListCredential: string;
|
|
768
557
|
}>>;
|
|
769
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
770
558
|
proof: z.ZodOptional<z.ZodObject<{
|
|
771
559
|
type: z.ZodString;
|
|
772
560
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -784,13 +572,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
784
572
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
785
573
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
786
574
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
787
|
-
/** JSON-LD context */
|
|
788
575
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
789
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
790
576
|
id: z.ZodOptional<z.ZodString>;
|
|
791
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
792
577
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
793
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
794
578
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
795
579
|
id: z.ZodString;
|
|
796
580
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -798,23 +582,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
798
582
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
799
583
|
id: z.ZodString;
|
|
800
584
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
801
|
-
/** Issuance date in ISO 8601 format */
|
|
802
585
|
issuanceDate: z.ZodString;
|
|
803
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
804
586
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
805
|
-
/** The subject(s) of the credential */
|
|
806
587
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
807
|
-
/** Status information for revocation/suspension (optional) */
|
|
808
588
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
809
|
-
/** URI of this status entry */
|
|
810
589
|
id: z.ZodString;
|
|
811
|
-
/** Type MUST be StatusList2021Entry */
|
|
812
590
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
813
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
814
591
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
815
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
816
592
|
statusListIndex: z.ZodString;
|
|
817
|
-
/** URL of the StatusList2021Credential */
|
|
818
593
|
statusListCredential: z.ZodString;
|
|
819
594
|
}, "strip", z.ZodTypeAny, {
|
|
820
595
|
type: "StatusList2021Entry";
|
|
@@ -829,7 +604,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
829
604
|
statusListIndex: string;
|
|
830
605
|
statusListCredential: string;
|
|
831
606
|
}>>;
|
|
832
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
833
607
|
proof: z.ZodOptional<z.ZodObject<{
|
|
834
608
|
type: z.ZodString;
|
|
835
609
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -847,13 +621,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
847
621
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
848
622
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
849
623
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
850
|
-
/** JSON-LD context */
|
|
851
624
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
852
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
853
625
|
id: z.ZodOptional<z.ZodString>;
|
|
854
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
855
626
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
856
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
857
627
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
858
628
|
id: z.ZodString;
|
|
859
629
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -861,23 +631,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
861
631
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
862
632
|
id: z.ZodString;
|
|
863
633
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
864
|
-
/** Issuance date in ISO 8601 format */
|
|
865
634
|
issuanceDate: z.ZodString;
|
|
866
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
867
635
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
868
|
-
/** The subject(s) of the credential */
|
|
869
636
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
870
|
-
/** Status information for revocation/suspension (optional) */
|
|
871
637
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
872
|
-
/** URI of this status entry */
|
|
873
638
|
id: z.ZodString;
|
|
874
|
-
/** Type MUST be StatusList2021Entry */
|
|
875
639
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
876
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
877
640
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
878
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
879
641
|
statusListIndex: z.ZodString;
|
|
880
|
-
/** URL of the StatusList2021Credential */
|
|
881
642
|
statusListCredential: z.ZodString;
|
|
882
643
|
}, "strip", z.ZodTypeAny, {
|
|
883
644
|
type: "StatusList2021Entry";
|
|
@@ -892,7 +653,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
892
653
|
statusListIndex: string;
|
|
893
654
|
statusListCredential: string;
|
|
894
655
|
}>>;
|
|
895
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
896
656
|
proof: z.ZodOptional<z.ZodObject<{
|
|
897
657
|
type: z.ZodString;
|
|
898
658
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -910,13 +670,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
910
670
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
911
671
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
912
672
|
}, z.ZodTypeAny, "passthrough">>, z.ZodArray<z.ZodObject<{
|
|
913
|
-
/** JSON-LD context */
|
|
914
673
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
915
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
916
674
|
id: z.ZodOptional<z.ZodString>;
|
|
917
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
918
675
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
919
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
920
676
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
921
677
|
id: z.ZodString;
|
|
922
678
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -924,23 +680,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
924
680
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
925
681
|
id: z.ZodString;
|
|
926
682
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
927
|
-
/** Issuance date in ISO 8601 format */
|
|
928
683
|
issuanceDate: z.ZodString;
|
|
929
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
930
684
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
931
|
-
/** The subject(s) of the credential */
|
|
932
685
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
933
|
-
/** Status information for revocation/suspension (optional) */
|
|
934
686
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
935
|
-
/** URI of this status entry */
|
|
936
687
|
id: z.ZodString;
|
|
937
|
-
/** Type MUST be StatusList2021Entry */
|
|
938
688
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
939
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
940
689
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
941
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
942
690
|
statusListIndex: z.ZodString;
|
|
943
|
-
/** URL of the StatusList2021Credential */
|
|
944
691
|
statusListCredential: z.ZodString;
|
|
945
692
|
}, "strip", z.ZodTypeAny, {
|
|
946
693
|
type: "StatusList2021Entry";
|
|
@@ -955,7 +702,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
955
702
|
statusListIndex: string;
|
|
956
703
|
statusListCredential: string;
|
|
957
704
|
}>>;
|
|
958
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
959
705
|
proof: z.ZodOptional<z.ZodObject<{
|
|
960
706
|
type: z.ZodString;
|
|
961
707
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -973,13 +719,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
973
719
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
974
720
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
975
721
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
976
|
-
/** JSON-LD context */
|
|
977
722
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
978
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
979
723
|
id: z.ZodOptional<z.ZodString>;
|
|
980
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
981
724
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
982
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
983
725
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
984
726
|
id: z.ZodString;
|
|
985
727
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -987,23 +729,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
987
729
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
988
730
|
id: z.ZodString;
|
|
989
731
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
990
|
-
/** Issuance date in ISO 8601 format */
|
|
991
732
|
issuanceDate: z.ZodString;
|
|
992
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
993
733
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
994
|
-
/** The subject(s) of the credential */
|
|
995
734
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
996
|
-
/** Status information for revocation/suspension (optional) */
|
|
997
735
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
998
|
-
/** URI of this status entry */
|
|
999
736
|
id: z.ZodString;
|
|
1000
|
-
/** Type MUST be StatusList2021Entry */
|
|
1001
737
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1002
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1003
738
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1004
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1005
739
|
statusListIndex: z.ZodString;
|
|
1006
|
-
/** URL of the StatusList2021Credential */
|
|
1007
740
|
statusListCredential: z.ZodString;
|
|
1008
741
|
}, "strip", z.ZodTypeAny, {
|
|
1009
742
|
type: "StatusList2021Entry";
|
|
@@ -1018,7 +751,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1018
751
|
statusListIndex: string;
|
|
1019
752
|
statusListCredential: string;
|
|
1020
753
|
}>>;
|
|
1021
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1022
754
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1023
755
|
type: z.ZodString;
|
|
1024
756
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1036,13 +768,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1036
768
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
1037
769
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1038
770
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1039
|
-
/** JSON-LD context */
|
|
1040
771
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1041
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1042
772
|
id: z.ZodOptional<z.ZodString>;
|
|
1043
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1044
773
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1045
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1046
774
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1047
775
|
id: z.ZodString;
|
|
1048
776
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1050,23 +778,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1050
778
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1051
779
|
id: z.ZodString;
|
|
1052
780
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1053
|
-
/** Issuance date in ISO 8601 format */
|
|
1054
781
|
issuanceDate: z.ZodString;
|
|
1055
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
1056
782
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1057
|
-
/** The subject(s) of the credential */
|
|
1058
783
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
1059
|
-
/** Status information for revocation/suspension (optional) */
|
|
1060
784
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
1061
|
-
/** URI of this status entry */
|
|
1062
785
|
id: z.ZodString;
|
|
1063
|
-
/** Type MUST be StatusList2021Entry */
|
|
1064
786
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1065
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1066
787
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1067
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1068
788
|
statusListIndex: z.ZodString;
|
|
1069
|
-
/** URL of the StatusList2021Credential */
|
|
1070
789
|
statusListCredential: z.ZodString;
|
|
1071
790
|
}, "strip", z.ZodTypeAny, {
|
|
1072
791
|
type: "StatusList2021Entry";
|
|
@@ -1081,7 +800,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1081
800
|
statusListIndex: string;
|
|
1082
801
|
statusListCredential: string;
|
|
1083
802
|
}>>;
|
|
1084
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1085
803
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1086
804
|
type: z.ZodString;
|
|
1087
805
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1121,13 +839,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1121
839
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1122
840
|
holder: z.ZodOptional<z.ZodString>;
|
|
1123
841
|
verifiableCredential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1124
|
-
/** JSON-LD context */
|
|
1125
842
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1126
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1127
843
|
id: z.ZodOptional<z.ZodString>;
|
|
1128
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1129
844
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1130
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1131
845
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1132
846
|
id: z.ZodString;
|
|
1133
847
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1135,23 +849,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1135
849
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1136
850
|
id: z.ZodString;
|
|
1137
851
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1138
|
-
/** Issuance date in ISO 8601 format */
|
|
1139
852
|
issuanceDate: z.ZodString;
|
|
1140
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
1141
853
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1142
|
-
/** The subject(s) of the credential */
|
|
1143
854
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
1144
|
-
/** Status information for revocation/suspension (optional) */
|
|
1145
855
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
1146
|
-
/** URI of this status entry */
|
|
1147
856
|
id: z.ZodString;
|
|
1148
|
-
/** Type MUST be StatusList2021Entry */
|
|
1149
857
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1150
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1151
858
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1152
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1153
859
|
statusListIndex: z.ZodString;
|
|
1154
|
-
/** URL of the StatusList2021Credential */
|
|
1155
860
|
statusListCredential: z.ZodString;
|
|
1156
861
|
}, "strip", z.ZodTypeAny, {
|
|
1157
862
|
type: "StatusList2021Entry";
|
|
@@ -1166,7 +871,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1166
871
|
statusListIndex: string;
|
|
1167
872
|
statusListCredential: string;
|
|
1168
873
|
}>>;
|
|
1169
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1170
874
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1171
875
|
type: z.ZodString;
|
|
1172
876
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1184,13 +888,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1184
888
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
1185
889
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1186
890
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1187
|
-
/** JSON-LD context */
|
|
1188
891
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1189
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1190
892
|
id: z.ZodOptional<z.ZodString>;
|
|
1191
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1192
893
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1193
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1194
894
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1195
895
|
id: z.ZodString;
|
|
1196
896
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1198,23 +898,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1198
898
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1199
899
|
id: z.ZodString;
|
|
1200
900
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1201
|
-
/** Issuance date in ISO 8601 format */
|
|
1202
901
|
issuanceDate: z.ZodString;
|
|
1203
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
1204
902
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1205
|
-
/** The subject(s) of the credential */
|
|
1206
903
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
1207
|
-
/** Status information for revocation/suspension (optional) */
|
|
1208
904
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
1209
|
-
/** URI of this status entry */
|
|
1210
905
|
id: z.ZodString;
|
|
1211
|
-
/** Type MUST be StatusList2021Entry */
|
|
1212
906
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1213
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1214
907
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1215
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1216
908
|
statusListIndex: z.ZodString;
|
|
1217
|
-
/** URL of the StatusList2021Credential */
|
|
1218
909
|
statusListCredential: z.ZodString;
|
|
1219
910
|
}, "strip", z.ZodTypeAny, {
|
|
1220
911
|
type: "StatusList2021Entry";
|
|
@@ -1229,7 +920,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1229
920
|
statusListIndex: string;
|
|
1230
921
|
statusListCredential: string;
|
|
1231
922
|
}>>;
|
|
1232
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1233
923
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1234
924
|
type: z.ZodString;
|
|
1235
925
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1247,13 +937,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1247
937
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
1248
938
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1249
939
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1250
|
-
/** JSON-LD context */
|
|
1251
940
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1252
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1253
941
|
id: z.ZodOptional<z.ZodString>;
|
|
1254
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1255
942
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1256
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1257
943
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1258
944
|
id: z.ZodString;
|
|
1259
945
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1261,23 +947,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1261
947
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1262
948
|
id: z.ZodString;
|
|
1263
949
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1264
|
-
/** Issuance date in ISO 8601 format */
|
|
1265
950
|
issuanceDate: z.ZodString;
|
|
1266
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
1267
951
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1268
|
-
/** The subject(s) of the credential */
|
|
1269
952
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
1270
|
-
/** Status information for revocation/suspension (optional) */
|
|
1271
953
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
1272
|
-
/** URI of this status entry */
|
|
1273
954
|
id: z.ZodString;
|
|
1274
|
-
/** Type MUST be StatusList2021Entry */
|
|
1275
955
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1276
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1277
956
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1278
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1279
957
|
statusListIndex: z.ZodString;
|
|
1280
|
-
/** URL of the StatusList2021Credential */
|
|
1281
958
|
statusListCredential: z.ZodString;
|
|
1282
959
|
}, "strip", z.ZodTypeAny, {
|
|
1283
960
|
type: "StatusList2021Entry";
|
|
@@ -1292,7 +969,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1292
969
|
statusListIndex: string;
|
|
1293
970
|
statusListCredential: string;
|
|
1294
971
|
}>>;
|
|
1295
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1296
972
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1297
973
|
type: z.ZodString;
|
|
1298
974
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1310,13 +986,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1310
986
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
1311
987
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1312
988
|
}, z.ZodTypeAny, "passthrough">>, z.ZodArray<z.ZodObject<{
|
|
1313
|
-
/** JSON-LD context */
|
|
1314
989
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1315
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1316
990
|
id: z.ZodOptional<z.ZodString>;
|
|
1317
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1318
991
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1319
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1320
992
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1321
993
|
id: z.ZodString;
|
|
1322
994
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1324,23 +996,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1324
996
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1325
997
|
id: z.ZodString;
|
|
1326
998
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1327
|
-
/** Issuance date in ISO 8601 format */
|
|
1328
999
|
issuanceDate: z.ZodString;
|
|
1329
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
1330
1000
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1331
|
-
/** The subject(s) of the credential */
|
|
1332
1001
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
1333
|
-
/** Status information for revocation/suspension (optional) */
|
|
1334
1002
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
1335
|
-
/** URI of this status entry */
|
|
1336
1003
|
id: z.ZodString;
|
|
1337
|
-
/** Type MUST be StatusList2021Entry */
|
|
1338
1004
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1339
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1340
1005
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1341
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1342
1006
|
statusListIndex: z.ZodString;
|
|
1343
|
-
/** URL of the StatusList2021Credential */
|
|
1344
1007
|
statusListCredential: z.ZodString;
|
|
1345
1008
|
}, "strip", z.ZodTypeAny, {
|
|
1346
1009
|
type: "StatusList2021Entry";
|
|
@@ -1355,7 +1018,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1355
1018
|
statusListIndex: string;
|
|
1356
1019
|
statusListCredential: string;
|
|
1357
1020
|
}>>;
|
|
1358
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1359
1021
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1360
1022
|
type: z.ZodString;
|
|
1361
1023
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1373,13 +1035,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1373
1035
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
1374
1036
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1375
1037
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1376
|
-
/** JSON-LD context */
|
|
1377
1038
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1378
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1379
1039
|
id: z.ZodOptional<z.ZodString>;
|
|
1380
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1381
1040
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1382
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1383
1041
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1384
1042
|
id: z.ZodString;
|
|
1385
1043
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1387,23 +1045,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1387
1045
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1388
1046
|
id: z.ZodString;
|
|
1389
1047
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1390
|
-
/** Issuance date in ISO 8601 format */
|
|
1391
1048
|
issuanceDate: z.ZodString;
|
|
1392
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
1393
1049
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1394
|
-
/** The subject(s) of the credential */
|
|
1395
1050
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
1396
|
-
/** Status information for revocation/suspension (optional) */
|
|
1397
1051
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
1398
|
-
/** URI of this status entry */
|
|
1399
1052
|
id: z.ZodString;
|
|
1400
|
-
/** Type MUST be StatusList2021Entry */
|
|
1401
1053
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1402
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1403
1054
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1404
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1405
1055
|
statusListIndex: z.ZodString;
|
|
1406
|
-
/** URL of the StatusList2021Credential */
|
|
1407
1056
|
statusListCredential: z.ZodString;
|
|
1408
1057
|
}, "strip", z.ZodTypeAny, {
|
|
1409
1058
|
type: "StatusList2021Entry";
|
|
@@ -1418,7 +1067,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1418
1067
|
statusListIndex: string;
|
|
1419
1068
|
statusListCredential: string;
|
|
1420
1069
|
}>>;
|
|
1421
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1422
1070
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1423
1071
|
type: z.ZodString;
|
|
1424
1072
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1436,13 +1084,9 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1436
1084
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
1437
1085
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1438
1086
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1439
|
-
/** JSON-LD context */
|
|
1440
1087
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1441
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1442
1088
|
id: z.ZodOptional<z.ZodString>;
|
|
1443
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1444
1089
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1445
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1446
1090
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1447
1091
|
id: z.ZodString;
|
|
1448
1092
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1450,23 +1094,14 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1450
1094
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1451
1095
|
id: z.ZodString;
|
|
1452
1096
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1453
|
-
/** Issuance date in ISO 8601 format */
|
|
1454
1097
|
issuanceDate: z.ZodString;
|
|
1455
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
1456
1098
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1457
|
-
/** The subject(s) of the credential */
|
|
1458
1099
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
1459
|
-
/** Status information for revocation/suspension (optional) */
|
|
1460
1100
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
1461
|
-
/** URI of this status entry */
|
|
1462
1101
|
id: z.ZodString;
|
|
1463
|
-
/** Type MUST be StatusList2021Entry */
|
|
1464
1102
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1465
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1466
1103
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1467
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1468
1104
|
statusListIndex: z.ZodString;
|
|
1469
|
-
/** URL of the StatusList2021Credential */
|
|
1470
1105
|
statusListCredential: z.ZodString;
|
|
1471
1106
|
}, "strip", z.ZodTypeAny, {
|
|
1472
1107
|
type: "StatusList2021Entry";
|
|
@@ -1481,7 +1116,6 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1481
1116
|
statusListIndex: string;
|
|
1482
1117
|
statusListCredential: string;
|
|
1483
1118
|
}>>;
|
|
1484
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1485
1119
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1486
1120
|
type: z.ZodString;
|
|
1487
1121
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1517,23 +1151,10 @@ export declare const VerifiablePresentationSchema: z.ZodObject<{
|
|
|
1517
1151
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1518
1152
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1519
1153
|
export type VerifiablePresentation = z.infer<typeof VerifiablePresentationSchema>;
|
|
1520
|
-
/**
|
|
1521
|
-
* Validation Helpers
|
|
1522
|
-
*/
|
|
1523
|
-
/**
|
|
1524
|
-
* Validate a verifiable credential
|
|
1525
|
-
*
|
|
1526
|
-
* @param credential - The credential to validate
|
|
1527
|
-
* @returns Validation result with parsed credential or errors
|
|
1528
|
-
*/
|
|
1529
1154
|
export declare function validateVerifiableCredential(credential: unknown): z.SafeParseReturnType<z.objectInputType<{
|
|
1530
|
-
/** JSON-LD context */
|
|
1531
1155
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1532
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1533
1156
|
id: z.ZodOptional<z.ZodString>;
|
|
1534
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1535
1157
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1536
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1537
1158
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1538
1159
|
id: z.ZodString;
|
|
1539
1160
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1541,23 +1162,14 @@ export declare function validateVerifiableCredential(credential: unknown): z.Saf
|
|
|
1541
1162
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1542
1163
|
id: z.ZodString;
|
|
1543
1164
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1544
|
-
/** Issuance date in ISO 8601 format */
|
|
1545
1165
|
issuanceDate: z.ZodString;
|
|
1546
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
1547
1166
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1548
|
-
/** The subject(s) of the credential */
|
|
1549
1167
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
1550
|
-
/** Status information for revocation/suspension (optional) */
|
|
1551
1168
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
1552
|
-
/** URI of this status entry */
|
|
1553
1169
|
id: z.ZodString;
|
|
1554
|
-
/** Type MUST be StatusList2021Entry */
|
|
1555
1170
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1556
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1557
1171
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1558
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1559
1172
|
statusListIndex: z.ZodString;
|
|
1560
|
-
/** URL of the StatusList2021Credential */
|
|
1561
1173
|
statusListCredential: z.ZodString;
|
|
1562
1174
|
}, "strip", z.ZodTypeAny, {
|
|
1563
1175
|
type: "StatusList2021Entry";
|
|
@@ -1572,7 +1184,6 @@ export declare function validateVerifiableCredential(credential: unknown): z.Saf
|
|
|
1572
1184
|
statusListIndex: string;
|
|
1573
1185
|
statusListCredential: string;
|
|
1574
1186
|
}>>;
|
|
1575
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1576
1187
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1577
1188
|
type: z.ZodString;
|
|
1578
1189
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1590,13 +1201,9 @@ export declare function validateVerifiableCredential(credential: unknown): z.Saf
|
|
|
1590
1201
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
1591
1202
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1592
1203
|
}, z.ZodTypeAny, "passthrough">, z.objectOutputType<{
|
|
1593
|
-
/** JSON-LD context */
|
|
1594
1204
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1595
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1596
1205
|
id: z.ZodOptional<z.ZodString>;
|
|
1597
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1598
1206
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1599
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1600
1207
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1601
1208
|
id: z.ZodString;
|
|
1602
1209
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1604,23 +1211,14 @@ export declare function validateVerifiableCredential(credential: unknown): z.Saf
|
|
|
1604
1211
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1605
1212
|
id: z.ZodString;
|
|
1606
1213
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1607
|
-
/** Issuance date in ISO 8601 format */
|
|
1608
1214
|
issuanceDate: z.ZodString;
|
|
1609
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
1610
1215
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1611
|
-
/** The subject(s) of the credential */
|
|
1612
1216
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
1613
|
-
/** Status information for revocation/suspension (optional) */
|
|
1614
1217
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
1615
|
-
/** URI of this status entry */
|
|
1616
1218
|
id: z.ZodString;
|
|
1617
|
-
/** Type MUST be StatusList2021Entry */
|
|
1618
1219
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1619
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1620
1220
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1621
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1622
1221
|
statusListIndex: z.ZodString;
|
|
1623
|
-
/** URL of the StatusList2021Credential */
|
|
1624
1222
|
statusListCredential: z.ZodString;
|
|
1625
1223
|
}, "strip", z.ZodTypeAny, {
|
|
1626
1224
|
type: "StatusList2021Entry";
|
|
@@ -1635,7 +1233,6 @@ export declare function validateVerifiableCredential(credential: unknown): z.Saf
|
|
|
1635
1233
|
statusListIndex: string;
|
|
1636
1234
|
statusListCredential: string;
|
|
1637
1235
|
}>>;
|
|
1638
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1639
1236
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1640
1237
|
type: z.ZodString;
|
|
1641
1238
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1653,25 +1250,15 @@ export declare function validateVerifiableCredential(credential: unknown): z.Saf
|
|
|
1653
1250
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
1654
1251
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1655
1252
|
}, z.ZodTypeAny, "passthrough">>;
|
|
1656
|
-
/**
|
|
1657
|
-
* Validate a verifiable presentation
|
|
1658
|
-
*
|
|
1659
|
-
* @param presentation - The presentation to validate
|
|
1660
|
-
* @returns Validation result with parsed presentation or errors
|
|
1661
|
-
*/
|
|
1662
1253
|
export declare function validateVerifiablePresentation(presentation: unknown): z.SafeParseReturnType<z.objectInputType<{
|
|
1663
1254
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1664
1255
|
id: z.ZodOptional<z.ZodString>;
|
|
1665
1256
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1666
1257
|
holder: z.ZodOptional<z.ZodString>;
|
|
1667
1258
|
verifiableCredential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
1668
|
-
/** JSON-LD context */
|
|
1669
1259
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1670
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1671
1260
|
id: z.ZodOptional<z.ZodString>;
|
|
1672
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1673
1261
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1674
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1675
1262
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1676
1263
|
id: z.ZodString;
|
|
1677
1264
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1679,23 +1266,14 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1679
1266
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1680
1267
|
id: z.ZodString;
|
|
1681
1268
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1682
|
-
/** Issuance date in ISO 8601 format */
|
|
1683
1269
|
issuanceDate: z.ZodString;
|
|
1684
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
1685
1270
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1686
|
-
/** The subject(s) of the credential */
|
|
1687
1271
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
1688
|
-
/** Status information for revocation/suspension (optional) */
|
|
1689
1272
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
1690
|
-
/** URI of this status entry */
|
|
1691
1273
|
id: z.ZodString;
|
|
1692
|
-
/** Type MUST be StatusList2021Entry */
|
|
1693
1274
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1694
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1695
1275
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1696
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1697
1276
|
statusListIndex: z.ZodString;
|
|
1698
|
-
/** URL of the StatusList2021Credential */
|
|
1699
1277
|
statusListCredential: z.ZodString;
|
|
1700
1278
|
}, "strip", z.ZodTypeAny, {
|
|
1701
1279
|
type: "StatusList2021Entry";
|
|
@@ -1710,7 +1288,6 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1710
1288
|
statusListIndex: string;
|
|
1711
1289
|
statusListCredential: string;
|
|
1712
1290
|
}>>;
|
|
1713
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1714
1291
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1715
1292
|
type: z.ZodString;
|
|
1716
1293
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1728,13 +1305,9 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1728
1305
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
1729
1306
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1730
1307
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1731
|
-
/** JSON-LD context */
|
|
1732
1308
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1733
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1734
1309
|
id: z.ZodOptional<z.ZodString>;
|
|
1735
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1736
1310
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1737
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1738
1311
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1739
1312
|
id: z.ZodString;
|
|
1740
1313
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1742,23 +1315,14 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1742
1315
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1743
1316
|
id: z.ZodString;
|
|
1744
1317
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1745
|
-
/** Issuance date in ISO 8601 format */
|
|
1746
1318
|
issuanceDate: z.ZodString;
|
|
1747
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
1748
1319
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1749
|
-
/** The subject(s) of the credential */
|
|
1750
1320
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
1751
|
-
/** Status information for revocation/suspension (optional) */
|
|
1752
1321
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
1753
|
-
/** URI of this status entry */
|
|
1754
1322
|
id: z.ZodString;
|
|
1755
|
-
/** Type MUST be StatusList2021Entry */
|
|
1756
1323
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1757
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1758
1324
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1759
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1760
1325
|
statusListIndex: z.ZodString;
|
|
1761
|
-
/** URL of the StatusList2021Credential */
|
|
1762
1326
|
statusListCredential: z.ZodString;
|
|
1763
1327
|
}, "strip", z.ZodTypeAny, {
|
|
1764
1328
|
type: "StatusList2021Entry";
|
|
@@ -1773,7 +1337,6 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1773
1337
|
statusListIndex: string;
|
|
1774
1338
|
statusListCredential: string;
|
|
1775
1339
|
}>>;
|
|
1776
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1777
1340
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1778
1341
|
type: z.ZodString;
|
|
1779
1342
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1791,13 +1354,9 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1791
1354
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
1792
1355
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1793
1356
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1794
|
-
/** JSON-LD context */
|
|
1795
1357
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1796
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1797
1358
|
id: z.ZodOptional<z.ZodString>;
|
|
1798
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1799
1359
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1800
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1801
1360
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1802
1361
|
id: z.ZodString;
|
|
1803
1362
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1805,23 +1364,14 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1805
1364
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1806
1365
|
id: z.ZodString;
|
|
1807
1366
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1808
|
-
/** Issuance date in ISO 8601 format */
|
|
1809
1367
|
issuanceDate: z.ZodString;
|
|
1810
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
1811
1368
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1812
|
-
/** The subject(s) of the credential */
|
|
1813
1369
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
1814
|
-
/** Status information for revocation/suspension (optional) */
|
|
1815
1370
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
1816
|
-
/** URI of this status entry */
|
|
1817
1371
|
id: z.ZodString;
|
|
1818
|
-
/** Type MUST be StatusList2021Entry */
|
|
1819
1372
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1820
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1821
1373
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1822
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1823
1374
|
statusListIndex: z.ZodString;
|
|
1824
|
-
/** URL of the StatusList2021Credential */
|
|
1825
1375
|
statusListCredential: z.ZodString;
|
|
1826
1376
|
}, "strip", z.ZodTypeAny, {
|
|
1827
1377
|
type: "StatusList2021Entry";
|
|
@@ -1836,7 +1386,6 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1836
1386
|
statusListIndex: string;
|
|
1837
1387
|
statusListCredential: string;
|
|
1838
1388
|
}>>;
|
|
1839
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1840
1389
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1841
1390
|
type: z.ZodString;
|
|
1842
1391
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1854,13 +1403,9 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1854
1403
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
1855
1404
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1856
1405
|
}, z.ZodTypeAny, "passthrough">>, z.ZodArray<z.ZodObject<{
|
|
1857
|
-
/** JSON-LD context */
|
|
1858
1406
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1859
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1860
1407
|
id: z.ZodOptional<z.ZodString>;
|
|
1861
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1862
1408
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1863
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1864
1409
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1865
1410
|
id: z.ZodString;
|
|
1866
1411
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1868,23 +1413,14 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1868
1413
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1869
1414
|
id: z.ZodString;
|
|
1870
1415
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1871
|
-
/** Issuance date in ISO 8601 format */
|
|
1872
1416
|
issuanceDate: z.ZodString;
|
|
1873
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
1874
1417
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1875
|
-
/** The subject(s) of the credential */
|
|
1876
1418
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
1877
|
-
/** Status information for revocation/suspension (optional) */
|
|
1878
1419
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
1879
|
-
/** URI of this status entry */
|
|
1880
1420
|
id: z.ZodString;
|
|
1881
|
-
/** Type MUST be StatusList2021Entry */
|
|
1882
1421
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1883
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1884
1422
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1885
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1886
1423
|
statusListIndex: z.ZodString;
|
|
1887
|
-
/** URL of the StatusList2021Credential */
|
|
1888
1424
|
statusListCredential: z.ZodString;
|
|
1889
1425
|
}, "strip", z.ZodTypeAny, {
|
|
1890
1426
|
type: "StatusList2021Entry";
|
|
@@ -1899,7 +1435,6 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1899
1435
|
statusListIndex: string;
|
|
1900
1436
|
statusListCredential: string;
|
|
1901
1437
|
}>>;
|
|
1902
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1903
1438
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1904
1439
|
type: z.ZodString;
|
|
1905
1440
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1917,13 +1452,9 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1917
1452
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
1918
1453
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1919
1454
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1920
|
-
/** JSON-LD context */
|
|
1921
1455
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1922
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1923
1456
|
id: z.ZodOptional<z.ZodString>;
|
|
1924
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1925
1457
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1926
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1927
1458
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1928
1459
|
id: z.ZodString;
|
|
1929
1460
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1931,23 +1462,14 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1931
1462
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1932
1463
|
id: z.ZodString;
|
|
1933
1464
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1934
|
-
/** Issuance date in ISO 8601 format */
|
|
1935
1465
|
issuanceDate: z.ZodString;
|
|
1936
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
1937
1466
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
1938
|
-
/** The subject(s) of the credential */
|
|
1939
1467
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
1940
|
-
/** Status information for revocation/suspension (optional) */
|
|
1941
1468
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
1942
|
-
/** URI of this status entry */
|
|
1943
1469
|
id: z.ZodString;
|
|
1944
|
-
/** Type MUST be StatusList2021Entry */
|
|
1945
1470
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
1946
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
1947
1471
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
1948
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
1949
1472
|
statusListIndex: z.ZodString;
|
|
1950
|
-
/** URL of the StatusList2021Credential */
|
|
1951
1473
|
statusListCredential: z.ZodString;
|
|
1952
1474
|
}, "strip", z.ZodTypeAny, {
|
|
1953
1475
|
type: "StatusList2021Entry";
|
|
@@ -1962,7 +1484,6 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1962
1484
|
statusListIndex: string;
|
|
1963
1485
|
statusListCredential: string;
|
|
1964
1486
|
}>>;
|
|
1965
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
1966
1487
|
proof: z.ZodOptional<z.ZodObject<{
|
|
1967
1488
|
type: z.ZodString;
|
|
1968
1489
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -1980,13 +1501,9 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1980
1501
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
1981
1502
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
1982
1503
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1983
|
-
/** JSON-LD context */
|
|
1984
1504
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
1985
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
1986
1505
|
id: z.ZodOptional<z.ZodString>;
|
|
1987
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
1988
1506
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
1989
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
1990
1507
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
1991
1508
|
id: z.ZodString;
|
|
1992
1509
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -1994,23 +1511,14 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
1994
1511
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1995
1512
|
id: z.ZodString;
|
|
1996
1513
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
1997
|
-
/** Issuance date in ISO 8601 format */
|
|
1998
1514
|
issuanceDate: z.ZodString;
|
|
1999
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
2000
1515
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
2001
|
-
/** The subject(s) of the credential */
|
|
2002
1516
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
2003
|
-
/** Status information for revocation/suspension (optional) */
|
|
2004
1517
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
2005
|
-
/** URI of this status entry */
|
|
2006
1518
|
id: z.ZodString;
|
|
2007
|
-
/** Type MUST be StatusList2021Entry */
|
|
2008
1519
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
2009
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
2010
1520
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
2011
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
2012
1521
|
statusListIndex: z.ZodString;
|
|
2013
|
-
/** URL of the StatusList2021Credential */
|
|
2014
1522
|
statusListCredential: z.ZodString;
|
|
2015
1523
|
}, "strip", z.ZodTypeAny, {
|
|
2016
1524
|
type: "StatusList2021Entry";
|
|
@@ -2025,7 +1533,6 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2025
1533
|
statusListIndex: string;
|
|
2026
1534
|
statusListCredential: string;
|
|
2027
1535
|
}>>;
|
|
2028
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
2029
1536
|
proof: z.ZodOptional<z.ZodObject<{
|
|
2030
1537
|
type: z.ZodString;
|
|
2031
1538
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -2065,13 +1572,9 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2065
1572
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
2066
1573
|
holder: z.ZodOptional<z.ZodString>;
|
|
2067
1574
|
verifiableCredential: z.ZodOptional<z.ZodUnion<[z.ZodObject<{
|
|
2068
|
-
/** JSON-LD context */
|
|
2069
1575
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
2070
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
2071
1576
|
id: z.ZodOptional<z.ZodString>;
|
|
2072
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
2073
1577
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
2074
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
2075
1578
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2076
1579
|
id: z.ZodString;
|
|
2077
1580
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -2079,23 +1582,14 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2079
1582
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2080
1583
|
id: z.ZodString;
|
|
2081
1584
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
2082
|
-
/** Issuance date in ISO 8601 format */
|
|
2083
1585
|
issuanceDate: z.ZodString;
|
|
2084
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
2085
1586
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
2086
|
-
/** The subject(s) of the credential */
|
|
2087
1587
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
2088
|
-
/** Status information for revocation/suspension (optional) */
|
|
2089
1588
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
2090
|
-
/** URI of this status entry */
|
|
2091
1589
|
id: z.ZodString;
|
|
2092
|
-
/** Type MUST be StatusList2021Entry */
|
|
2093
1590
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
2094
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
2095
1591
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
2096
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
2097
1592
|
statusListIndex: z.ZodString;
|
|
2098
|
-
/** URL of the StatusList2021Credential */
|
|
2099
1593
|
statusListCredential: z.ZodString;
|
|
2100
1594
|
}, "strip", z.ZodTypeAny, {
|
|
2101
1595
|
type: "StatusList2021Entry";
|
|
@@ -2110,7 +1604,6 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2110
1604
|
statusListIndex: string;
|
|
2111
1605
|
statusListCredential: string;
|
|
2112
1606
|
}>>;
|
|
2113
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
2114
1607
|
proof: z.ZodOptional<z.ZodObject<{
|
|
2115
1608
|
type: z.ZodString;
|
|
2116
1609
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -2128,13 +1621,9 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2128
1621
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
2129
1622
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2130
1623
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2131
|
-
/** JSON-LD context */
|
|
2132
1624
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
2133
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
2134
1625
|
id: z.ZodOptional<z.ZodString>;
|
|
2135
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
2136
1626
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
2137
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
2138
1627
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2139
1628
|
id: z.ZodString;
|
|
2140
1629
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -2142,23 +1631,14 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2142
1631
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2143
1632
|
id: z.ZodString;
|
|
2144
1633
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
2145
|
-
/** Issuance date in ISO 8601 format */
|
|
2146
1634
|
issuanceDate: z.ZodString;
|
|
2147
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
2148
1635
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
2149
|
-
/** The subject(s) of the credential */
|
|
2150
1636
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
2151
|
-
/** Status information for revocation/suspension (optional) */
|
|
2152
1637
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
2153
|
-
/** URI of this status entry */
|
|
2154
1638
|
id: z.ZodString;
|
|
2155
|
-
/** Type MUST be StatusList2021Entry */
|
|
2156
1639
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
2157
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
2158
1640
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
2159
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
2160
1641
|
statusListIndex: z.ZodString;
|
|
2161
|
-
/** URL of the StatusList2021Credential */
|
|
2162
1642
|
statusListCredential: z.ZodString;
|
|
2163
1643
|
}, "strip", z.ZodTypeAny, {
|
|
2164
1644
|
type: "StatusList2021Entry";
|
|
@@ -2173,7 +1653,6 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2173
1653
|
statusListIndex: string;
|
|
2174
1654
|
statusListCredential: string;
|
|
2175
1655
|
}>>;
|
|
2176
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
2177
1656
|
proof: z.ZodOptional<z.ZodObject<{
|
|
2178
1657
|
type: z.ZodString;
|
|
2179
1658
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -2191,13 +1670,9 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2191
1670
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
2192
1671
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2193
1672
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2194
|
-
/** JSON-LD context */
|
|
2195
1673
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
2196
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
2197
1674
|
id: z.ZodOptional<z.ZodString>;
|
|
2198
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
2199
1675
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
2200
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
2201
1676
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2202
1677
|
id: z.ZodString;
|
|
2203
1678
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -2205,23 +1680,14 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2205
1680
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2206
1681
|
id: z.ZodString;
|
|
2207
1682
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
2208
|
-
/** Issuance date in ISO 8601 format */
|
|
2209
1683
|
issuanceDate: z.ZodString;
|
|
2210
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
2211
1684
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
2212
|
-
/** The subject(s) of the credential */
|
|
2213
1685
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
2214
|
-
/** Status information for revocation/suspension (optional) */
|
|
2215
1686
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
2216
|
-
/** URI of this status entry */
|
|
2217
1687
|
id: z.ZodString;
|
|
2218
|
-
/** Type MUST be StatusList2021Entry */
|
|
2219
1688
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
2220
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
2221
1689
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
2222
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
2223
1690
|
statusListIndex: z.ZodString;
|
|
2224
|
-
/** URL of the StatusList2021Credential */
|
|
2225
1691
|
statusListCredential: z.ZodString;
|
|
2226
1692
|
}, "strip", z.ZodTypeAny, {
|
|
2227
1693
|
type: "StatusList2021Entry";
|
|
@@ -2236,7 +1702,6 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2236
1702
|
statusListIndex: string;
|
|
2237
1703
|
statusListCredential: string;
|
|
2238
1704
|
}>>;
|
|
2239
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
2240
1705
|
proof: z.ZodOptional<z.ZodObject<{
|
|
2241
1706
|
type: z.ZodString;
|
|
2242
1707
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -2254,13 +1719,9 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2254
1719
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
2255
1720
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2256
1721
|
}, z.ZodTypeAny, "passthrough">>, z.ZodArray<z.ZodObject<{
|
|
2257
|
-
/** JSON-LD context */
|
|
2258
1722
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
2259
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
2260
1723
|
id: z.ZodOptional<z.ZodString>;
|
|
2261
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
2262
1724
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
2263
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
2264
1725
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2265
1726
|
id: z.ZodString;
|
|
2266
1727
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -2268,23 +1729,14 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2268
1729
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2269
1730
|
id: z.ZodString;
|
|
2270
1731
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
2271
|
-
/** Issuance date in ISO 8601 format */
|
|
2272
1732
|
issuanceDate: z.ZodString;
|
|
2273
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
2274
1733
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
2275
|
-
/** The subject(s) of the credential */
|
|
2276
1734
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
2277
|
-
/** Status information for revocation/suspension (optional) */
|
|
2278
1735
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
2279
|
-
/** URI of this status entry */
|
|
2280
1736
|
id: z.ZodString;
|
|
2281
|
-
/** Type MUST be StatusList2021Entry */
|
|
2282
1737
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
2283
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
2284
1738
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
2285
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
2286
1739
|
statusListIndex: z.ZodString;
|
|
2287
|
-
/** URL of the StatusList2021Credential */
|
|
2288
1740
|
statusListCredential: z.ZodString;
|
|
2289
1741
|
}, "strip", z.ZodTypeAny, {
|
|
2290
1742
|
type: "StatusList2021Entry";
|
|
@@ -2299,7 +1751,6 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2299
1751
|
statusListIndex: string;
|
|
2300
1752
|
statusListCredential: string;
|
|
2301
1753
|
}>>;
|
|
2302
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
2303
1754
|
proof: z.ZodOptional<z.ZodObject<{
|
|
2304
1755
|
type: z.ZodString;
|
|
2305
1756
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -2317,13 +1768,9 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2317
1768
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
2318
1769
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2319
1770
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
2320
|
-
/** JSON-LD context */
|
|
2321
1771
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
2322
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
2323
1772
|
id: z.ZodOptional<z.ZodString>;
|
|
2324
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
2325
1773
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
2326
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
2327
1774
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2328
1775
|
id: z.ZodString;
|
|
2329
1776
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -2331,23 +1778,14 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2331
1778
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2332
1779
|
id: z.ZodString;
|
|
2333
1780
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
2334
|
-
/** Issuance date in ISO 8601 format */
|
|
2335
1781
|
issuanceDate: z.ZodString;
|
|
2336
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
2337
1782
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
2338
|
-
/** The subject(s) of the credential */
|
|
2339
1783
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
2340
|
-
/** Status information for revocation/suspension (optional) */
|
|
2341
1784
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
2342
|
-
/** URI of this status entry */
|
|
2343
1785
|
id: z.ZodString;
|
|
2344
|
-
/** Type MUST be StatusList2021Entry */
|
|
2345
1786
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
2346
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
2347
1787
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
2348
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
2349
1788
|
statusListIndex: z.ZodString;
|
|
2350
|
-
/** URL of the StatusList2021Credential */
|
|
2351
1789
|
statusListCredential: z.ZodString;
|
|
2352
1790
|
}, "strip", z.ZodTypeAny, {
|
|
2353
1791
|
type: "StatusList2021Entry";
|
|
@@ -2362,7 +1800,6 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2362
1800
|
statusListIndex: string;
|
|
2363
1801
|
statusListCredential: string;
|
|
2364
1802
|
}>>;
|
|
2365
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
2366
1803
|
proof: z.ZodOptional<z.ZodObject<{
|
|
2367
1804
|
type: z.ZodString;
|
|
2368
1805
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -2380,13 +1817,9 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2380
1817
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
2381
1818
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2382
1819
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2383
|
-
/** JSON-LD context */
|
|
2384
1820
|
'@context': z.ZodEffects<z.ZodArray<z.ZodUnion<[z.ZodString, z.ZodRecord<z.ZodString, z.ZodAny>]>, "atleastone">, [string | Record<string, any>, ...(string | Record<string, any>)[]], [string | Record<string, any>, ...(string | Record<string, any>)[]]>;
|
|
2385
|
-
/** Unique identifier for the credential (optional per spec) */
|
|
2386
1821
|
id: z.ZodOptional<z.ZodString>;
|
|
2387
|
-
/** Type of the credential, MUST include "VerifiableCredential" */
|
|
2388
1822
|
type: z.ZodEffects<z.ZodArray<z.ZodString, "many">, string[], string[]>;
|
|
2389
|
-
/** Issuer of the credential (DID or issuer object) */
|
|
2390
1823
|
issuer: z.ZodUnion<[z.ZodString, z.ZodObject<{
|
|
2391
1824
|
id: z.ZodString;
|
|
2392
1825
|
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
@@ -2394,23 +1827,14 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2394
1827
|
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
2395
1828
|
id: z.ZodString;
|
|
2396
1829
|
}, z.ZodTypeAny, "passthrough">>]>;
|
|
2397
|
-
/** Issuance date in ISO 8601 format */
|
|
2398
1830
|
issuanceDate: z.ZodString;
|
|
2399
|
-
/** Expiration date in ISO 8601 format (optional) */
|
|
2400
1831
|
expirationDate: z.ZodOptional<z.ZodString>;
|
|
2401
|
-
/** The subject(s) of the credential */
|
|
2402
1832
|
credentialSubject: z.ZodUnion<[z.ZodRecord<z.ZodString, z.ZodAny>, z.ZodArray<z.ZodRecord<z.ZodString, z.ZodAny>, "many">]>;
|
|
2403
|
-
/** Status information for revocation/suspension (optional) */
|
|
2404
1833
|
credentialStatus: z.ZodOptional<z.ZodObject<{
|
|
2405
|
-
/** URI of this status entry */
|
|
2406
1834
|
id: z.ZodString;
|
|
2407
|
-
/** Type MUST be StatusList2021Entry */
|
|
2408
1835
|
type: z.ZodLiteral<"StatusList2021Entry">;
|
|
2409
|
-
/** Purpose of the status list (revocation or suspension) */
|
|
2410
1836
|
statusPurpose: z.ZodEnum<["revocation", "suspension"]>;
|
|
2411
|
-
/** Index of this credential in the status list (as string per spec) */
|
|
2412
1837
|
statusListIndex: z.ZodString;
|
|
2413
|
-
/** URL of the StatusList2021Credential */
|
|
2414
1838
|
statusListCredential: z.ZodString;
|
|
2415
1839
|
}, "strip", z.ZodTypeAny, {
|
|
2416
1840
|
type: "StatusList2021Entry";
|
|
@@ -2425,7 +1849,6 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2425
1849
|
statusListIndex: string;
|
|
2426
1850
|
statusListCredential: string;
|
|
2427
1851
|
}>>;
|
|
2428
|
-
/** Cryptographic proof (optional, may be added as external proof) */
|
|
2429
1852
|
proof: z.ZodOptional<z.ZodObject<{
|
|
2430
1853
|
type: z.ZodString;
|
|
2431
1854
|
created: z.ZodOptional<z.ZodString>;
|
|
@@ -2460,25 +1883,6 @@ export declare function validateVerifiablePresentation(presentation: unknown): z
|
|
|
2460
1883
|
proofPurpose: z.ZodOptional<z.ZodString>;
|
|
2461
1884
|
}, z.ZodTypeAny, "passthrough">>>;
|
|
2462
1885
|
}, z.ZodTypeAny, "passthrough">>;
|
|
2463
|
-
/**
|
|
2464
|
-
* Check if a credential is expired
|
|
2465
|
-
*
|
|
2466
|
-
* @param credential - The credential to check
|
|
2467
|
-
* @returns true if expired, false otherwise
|
|
2468
|
-
*/
|
|
2469
1886
|
export declare function isCredentialExpired(credential: VerifiableCredential): boolean;
|
|
2470
|
-
/**
|
|
2471
|
-
* Extract issuer DID from credential
|
|
2472
|
-
*
|
|
2473
|
-
* @param credential - The credential
|
|
2474
|
-
* @returns The issuer DID string
|
|
2475
|
-
*/
|
|
2476
1887
|
export declare function getIssuerDid(credential: VerifiableCredential): string;
|
|
2477
|
-
/**
|
|
2478
|
-
* Extract credential subject DID (if present)
|
|
2479
|
-
*
|
|
2480
|
-
* @param credential - The credential
|
|
2481
|
-
* @returns The subject DID or null if not present
|
|
2482
|
-
*/
|
|
2483
1888
|
export declare function getSubjectDid(credential: VerifiableCredential): string | null;
|
|
2484
|
-
//# sourceMappingURL=schemas.d.ts.map
|