@kya-os/contracts 1.5.1 → 1.5.2-canary.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/agentshield-api/endpoints.d.ts +3 -2
- package/dist/agentshield-api/endpoints.js +3 -2
- package/dist/agentshield-api/index.js +0 -1
- package/dist/agentshield-api/schemas.d.ts +195 -124
- package/dist/agentshield-api/schemas.js +0 -1
- package/dist/agentshield-api/types.d.ts +2 -1
- package/dist/agentshield-api/types.js +0 -1
- package/dist/config/builder.d.ts +34 -0
- package/dist/config/builder.js +75 -0
- package/dist/config/index.d.ts +12 -10
- package/dist/config/index.js +4 -0
- package/dist/consent/index.d.ts +6 -0
- package/dist/consent/index.js +22 -0
- package/dist/consent/schemas.d.ts +738 -0
- package/dist/consent/schemas.js +186 -0
- package/dist/consent/types.d.ts +155 -0
- package/dist/consent/types.js +10 -0
- package/dist/dashboard-config/default-config.d.ts +1 -0
- package/dist/dashboard-config/default-config.js +25 -9
- package/dist/dashboard-config/index.d.ts +1 -0
- package/dist/dashboard-config/index.js +1 -0
- package/dist/dashboard-config/schemas.d.ts +382 -324
- package/dist/dashboard-config/schemas.js +5 -1
- package/dist/dashboard-config/types.d.ts +12 -5
- package/dist/delegation/constraints.d.ts +31 -0
- package/dist/delegation/constraints.js +10 -0
- package/dist/delegation/index.js +1 -0
- package/dist/delegation/schemas.d.ts +175 -98
- package/dist/delegation/schemas.js +1 -0
- package/dist/handshake.d.ts +11 -2
- package/dist/handshake.js +4 -1
- package/dist/index.js +0 -1
- package/package.json +6 -1
|
@@ -113,59 +113,59 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
113
113
|
delegationRef: z.ZodOptional<z.ZodString>;
|
|
114
114
|
clientDid: z.ZodOptional<z.ZodString>;
|
|
115
115
|
}, "strip", z.ZodTypeAny, {
|
|
116
|
-
did: string;
|
|
117
|
-
kid: string;
|
|
118
|
-
ts: number;
|
|
119
116
|
nonce: string;
|
|
120
117
|
audience: string;
|
|
121
118
|
sessionId: string;
|
|
119
|
+
did: string;
|
|
120
|
+
kid: string;
|
|
121
|
+
ts: number;
|
|
122
122
|
requestHash: string;
|
|
123
123
|
responseHash: string;
|
|
124
|
+
clientDid?: string | undefined;
|
|
124
125
|
scopeId?: string | undefined;
|
|
125
126
|
delegationRef?: string | undefined;
|
|
126
|
-
clientDid?: string | undefined;
|
|
127
127
|
}, {
|
|
128
|
-
did: string;
|
|
129
|
-
kid: string;
|
|
130
|
-
ts: number;
|
|
131
128
|
nonce: string;
|
|
132
129
|
audience: string;
|
|
133
130
|
sessionId: string;
|
|
131
|
+
did: string;
|
|
132
|
+
kid: string;
|
|
133
|
+
ts: number;
|
|
134
134
|
requestHash: string;
|
|
135
135
|
responseHash: string;
|
|
136
|
+
clientDid?: string | undefined;
|
|
136
137
|
scopeId?: string | undefined;
|
|
137
138
|
delegationRef?: string | undefined;
|
|
138
|
-
clientDid?: string | undefined;
|
|
139
139
|
}>;
|
|
140
140
|
}, "strip", z.ZodTypeAny, {
|
|
141
141
|
jws: string;
|
|
142
142
|
meta: {
|
|
143
|
-
did: string;
|
|
144
|
-
kid: string;
|
|
145
|
-
ts: number;
|
|
146
143
|
nonce: string;
|
|
147
144
|
audience: string;
|
|
148
145
|
sessionId: string;
|
|
146
|
+
did: string;
|
|
147
|
+
kid: string;
|
|
148
|
+
ts: number;
|
|
149
149
|
requestHash: string;
|
|
150
150
|
responseHash: string;
|
|
151
|
+
clientDid?: string | undefined;
|
|
151
152
|
scopeId?: string | undefined;
|
|
152
153
|
delegationRef?: string | undefined;
|
|
153
|
-
clientDid?: string | undefined;
|
|
154
154
|
};
|
|
155
155
|
}, {
|
|
156
156
|
jws: string;
|
|
157
157
|
meta: {
|
|
158
|
-
did: string;
|
|
159
|
-
kid: string;
|
|
160
|
-
ts: number;
|
|
161
158
|
nonce: string;
|
|
162
159
|
audience: string;
|
|
163
160
|
sessionId: string;
|
|
161
|
+
did: string;
|
|
162
|
+
kid: string;
|
|
163
|
+
ts: number;
|
|
164
164
|
requestHash: string;
|
|
165
165
|
responseHash: string;
|
|
166
|
+
clientDid?: string | undefined;
|
|
166
167
|
scopeId?: string | undefined;
|
|
167
168
|
delegationRef?: string | undefined;
|
|
168
|
-
clientDid?: string | undefined;
|
|
169
169
|
};
|
|
170
170
|
}>, "many">;
|
|
171
171
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -174,17 +174,17 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
174
174
|
proofs: {
|
|
175
175
|
jws: string;
|
|
176
176
|
meta: {
|
|
177
|
-
did: string;
|
|
178
|
-
kid: string;
|
|
179
|
-
ts: number;
|
|
180
177
|
nonce: string;
|
|
181
178
|
audience: string;
|
|
182
179
|
sessionId: string;
|
|
180
|
+
did: string;
|
|
181
|
+
kid: string;
|
|
182
|
+
ts: number;
|
|
183
183
|
requestHash: string;
|
|
184
184
|
responseHash: string;
|
|
185
|
+
clientDid?: string | undefined;
|
|
185
186
|
scopeId?: string | undefined;
|
|
186
187
|
delegationRef?: string | undefined;
|
|
187
|
-
clientDid?: string | undefined;
|
|
188
188
|
};
|
|
189
189
|
}[];
|
|
190
190
|
}, {
|
|
@@ -193,17 +193,17 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
193
193
|
proofs: {
|
|
194
194
|
jws: string;
|
|
195
195
|
meta: {
|
|
196
|
-
did: string;
|
|
197
|
-
kid: string;
|
|
198
|
-
ts: number;
|
|
199
196
|
nonce: string;
|
|
200
197
|
audience: string;
|
|
201
198
|
sessionId: string;
|
|
199
|
+
did: string;
|
|
200
|
+
kid: string;
|
|
201
|
+
ts: number;
|
|
202
202
|
requestHash: string;
|
|
203
203
|
responseHash: string;
|
|
204
|
+
clientDid?: string | undefined;
|
|
204
205
|
scopeId?: string | undefined;
|
|
205
206
|
delegationRef?: string | undefined;
|
|
206
|
-
clientDid?: string | undefined;
|
|
207
207
|
};
|
|
208
208
|
}[];
|
|
209
209
|
}>;
|
|
@@ -218,27 +218,27 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
218
218
|
proofId: z.ZodString;
|
|
219
219
|
error: z.ZodString;
|
|
220
220
|
}, "strip", z.ZodTypeAny, {
|
|
221
|
-
proofId: string;
|
|
222
221
|
error: string;
|
|
223
|
-
}, {
|
|
224
222
|
proofId: string;
|
|
223
|
+
}, {
|
|
225
224
|
error: string;
|
|
225
|
+
proofId: string;
|
|
226
226
|
}>, "many">>;
|
|
227
227
|
}, "strip", z.ZodTypeAny, {
|
|
228
228
|
received: number;
|
|
229
229
|
success: boolean;
|
|
230
230
|
processed: number;
|
|
231
231
|
errors?: {
|
|
232
|
-
proofId: string;
|
|
233
232
|
error: string;
|
|
233
|
+
proofId: string;
|
|
234
234
|
}[] | undefined;
|
|
235
235
|
}, {
|
|
236
236
|
received: number;
|
|
237
237
|
success: boolean;
|
|
238
238
|
processed: number;
|
|
239
239
|
errors?: {
|
|
240
|
-
proofId: string;
|
|
241
240
|
error: string;
|
|
241
|
+
proofId: string;
|
|
242
242
|
}[] | undefined;
|
|
243
243
|
}>;
|
|
244
244
|
/**
|
|
@@ -253,21 +253,21 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
253
253
|
issued_at: z.ZodNumber;
|
|
254
254
|
created_at: z.ZodNumber;
|
|
255
255
|
}, "strip", z.ZodTypeAny, {
|
|
256
|
-
agent_did: string;
|
|
257
256
|
scopes: string[];
|
|
257
|
+
agent_did: string;
|
|
258
258
|
issued_at: number;
|
|
259
259
|
created_at: number;
|
|
260
|
+
constraints?: Record<string, unknown> | undefined;
|
|
260
261
|
user_id?: string | undefined;
|
|
261
262
|
user_identifier?: string | undefined;
|
|
262
|
-
constraints?: Record<string, unknown> | undefined;
|
|
263
263
|
}, {
|
|
264
|
-
agent_did: string;
|
|
265
264
|
scopes: string[];
|
|
265
|
+
agent_did: string;
|
|
266
266
|
issued_at: number;
|
|
267
267
|
created_at: number;
|
|
268
|
+
constraints?: Record<string, unknown> | undefined;
|
|
268
269
|
user_id?: string | undefined;
|
|
269
270
|
user_identifier?: string | undefined;
|
|
270
|
-
constraints?: Record<string, unknown> | undefined;
|
|
271
271
|
}>;
|
|
272
272
|
/**
|
|
273
273
|
* Delegation verification request schema
|
|
@@ -290,8 +290,8 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
290
290
|
user_agent?: string | undefined;
|
|
291
291
|
}>>;
|
|
292
292
|
}, "strip", z.ZodTypeAny, {
|
|
293
|
-
agent_did: string;
|
|
294
293
|
scopes: string[];
|
|
294
|
+
agent_did: string;
|
|
295
295
|
timestamp?: number | undefined;
|
|
296
296
|
client_info?: {
|
|
297
297
|
ip_address?: string | undefined;
|
|
@@ -299,8 +299,8 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
299
299
|
user_agent?: string | undefined;
|
|
300
300
|
} | undefined;
|
|
301
301
|
}, {
|
|
302
|
-
agent_did: string;
|
|
303
302
|
scopes: string[];
|
|
303
|
+
agent_did: string;
|
|
304
304
|
timestamp?: number | undefined;
|
|
305
305
|
client_info?: {
|
|
306
306
|
ip_address?: string | undefined;
|
|
@@ -324,6 +324,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
324
324
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
325
325
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
326
326
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
327
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
327
328
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
328
329
|
budget: z.ZodOptional<z.ZodObject<{
|
|
329
330
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -455,6 +456,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
455
456
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
456
457
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
457
458
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
459
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
458
460
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
459
461
|
budget: z.ZodOptional<z.ZodObject<{
|
|
460
462
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -586,6 +588,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
586
588
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
587
589
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
588
590
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
591
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
589
592
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
590
593
|
budget: z.ZodOptional<z.ZodObject<{
|
|
591
594
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -731,6 +734,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
731
734
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
732
735
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
733
736
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
737
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
734
738
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
735
739
|
budget: z.ZodOptional<z.ZodObject<{
|
|
736
740
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -862,6 +866,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
862
866
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
863
867
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
864
868
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
869
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
865
870
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
866
871
|
budget: z.ZodOptional<z.ZodObject<{
|
|
867
872
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -993,6 +998,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
993
998
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
994
999
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
995
1000
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1001
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
996
1002
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
997
1003
|
budget: z.ZodOptional<z.ZodObject<{
|
|
998
1004
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -1138,6 +1144,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1138
1144
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
1139
1145
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
1140
1146
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1147
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1141
1148
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
1142
1149
|
budget: z.ZodOptional<z.ZodObject<{
|
|
1143
1150
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -1269,6 +1276,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1269
1276
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
1270
1277
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
1271
1278
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1279
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1272
1280
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
1273
1281
|
budget: z.ZodOptional<z.ZodObject<{
|
|
1274
1282
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -1400,6 +1408,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1400
1408
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
1401
1409
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
1402
1410
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1411
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1403
1412
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
1404
1413
|
budget: z.ZodOptional<z.ZodObject<{
|
|
1405
1414
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -1545,21 +1554,21 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1545
1554
|
issued_at: z.ZodNumber;
|
|
1546
1555
|
created_at: z.ZodNumber;
|
|
1547
1556
|
}, "strip", z.ZodTypeAny, {
|
|
1548
|
-
agent_did: string;
|
|
1549
1557
|
scopes: string[];
|
|
1558
|
+
agent_did: string;
|
|
1550
1559
|
issued_at: number;
|
|
1551
1560
|
created_at: number;
|
|
1561
|
+
constraints?: Record<string, unknown> | undefined;
|
|
1552
1562
|
user_id?: string | undefined;
|
|
1553
1563
|
user_identifier?: string | undefined;
|
|
1554
|
-
constraints?: Record<string, unknown> | undefined;
|
|
1555
1564
|
}, {
|
|
1556
|
-
agent_did: string;
|
|
1557
1565
|
scopes: string[];
|
|
1566
|
+
agent_did: string;
|
|
1558
1567
|
issued_at: number;
|
|
1559
1568
|
created_at: number;
|
|
1569
|
+
constraints?: Record<string, unknown> | undefined;
|
|
1560
1570
|
user_id?: string | undefined;
|
|
1561
1571
|
user_identifier?: string | undefined;
|
|
1562
|
-
constraints?: Record<string, unknown> | undefined;
|
|
1563
1572
|
}>>;
|
|
1564
1573
|
error: z.ZodOptional<z.ZodObject<{
|
|
1565
1574
|
code: z.ZodString;
|
|
@@ -1577,12 +1586,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1577
1586
|
reason: z.ZodOptional<z.ZodString>;
|
|
1578
1587
|
}, "strip", z.ZodTypeAny, {
|
|
1579
1588
|
valid: boolean;
|
|
1580
|
-
|
|
1581
|
-
error?: {
|
|
1582
|
-
code: string;
|
|
1583
|
-
message: string;
|
|
1584
|
-
details?: Record<string, unknown> | undefined;
|
|
1585
|
-
} | undefined;
|
|
1589
|
+
reason?: string | undefined;
|
|
1586
1590
|
delegation?: z.objectOutputType<{
|
|
1587
1591
|
id: z.ZodString;
|
|
1588
1592
|
issuerDid: z.ZodString;
|
|
@@ -1594,6 +1598,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1594
1598
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
1595
1599
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
1596
1600
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1601
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1597
1602
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
1598
1603
|
budget: z.ZodOptional<z.ZodObject<{
|
|
1599
1604
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -1725,6 +1730,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1725
1730
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
1726
1731
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
1727
1732
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1733
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1728
1734
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
1729
1735
|
budget: z.ZodOptional<z.ZodObject<{
|
|
1730
1736
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -1856,6 +1862,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1856
1862
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
1857
1863
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
1858
1864
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
1865
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
1859
1866
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
1860
1867
|
budget: z.ZodOptional<z.ZodObject<{
|
|
1861
1868
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -1991,24 +1998,24 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1991
1998
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
1992
1999
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
1993
2000
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2001
|
+
error?: {
|
|
2002
|
+
code: string;
|
|
2003
|
+
message: string;
|
|
2004
|
+
details?: Record<string, unknown> | undefined;
|
|
2005
|
+
} | undefined;
|
|
2006
|
+
delegation_id?: string | undefined;
|
|
1994
2007
|
credential?: {
|
|
1995
|
-
agent_did: string;
|
|
1996
2008
|
scopes: string[];
|
|
2009
|
+
agent_did: string;
|
|
1997
2010
|
issued_at: number;
|
|
1998
2011
|
created_at: number;
|
|
2012
|
+
constraints?: Record<string, unknown> | undefined;
|
|
1999
2013
|
user_id?: string | undefined;
|
|
2000
2014
|
user_identifier?: string | undefined;
|
|
2001
|
-
constraints?: Record<string, unknown> | undefined;
|
|
2002
2015
|
} | undefined;
|
|
2003
|
-
reason?: string | undefined;
|
|
2004
2016
|
}, {
|
|
2005
2017
|
valid: boolean;
|
|
2006
|
-
|
|
2007
|
-
error?: {
|
|
2008
|
-
code: string;
|
|
2009
|
-
message: string;
|
|
2010
|
-
details?: Record<string, unknown> | undefined;
|
|
2011
|
-
} | undefined;
|
|
2018
|
+
reason?: string | undefined;
|
|
2012
2019
|
delegation?: z.objectInputType<{
|
|
2013
2020
|
id: z.ZodString;
|
|
2014
2021
|
issuerDid: z.ZodString;
|
|
@@ -2020,6 +2027,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2020
2027
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
2021
2028
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
2022
2029
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2030
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2023
2031
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
2024
2032
|
budget: z.ZodOptional<z.ZodObject<{
|
|
2025
2033
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -2151,6 +2159,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2151
2159
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
2152
2160
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
2153
2161
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2162
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2154
2163
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
2155
2164
|
budget: z.ZodOptional<z.ZodObject<{
|
|
2156
2165
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -2282,6 +2291,7 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2282
2291
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
2283
2292
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
2284
2293
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2294
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2285
2295
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
2286
2296
|
budget: z.ZodOptional<z.ZodObject<{
|
|
2287
2297
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -2417,16 +2427,21 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2417
2427
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
2418
2428
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
2419
2429
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
2430
|
+
error?: {
|
|
2431
|
+
code: string;
|
|
2432
|
+
message: string;
|
|
2433
|
+
details?: Record<string, unknown> | undefined;
|
|
2434
|
+
} | undefined;
|
|
2435
|
+
delegation_id?: string | undefined;
|
|
2420
2436
|
credential?: {
|
|
2421
|
-
agent_did: string;
|
|
2422
2437
|
scopes: string[];
|
|
2438
|
+
agent_did: string;
|
|
2423
2439
|
issued_at: number;
|
|
2424
2440
|
created_at: number;
|
|
2441
|
+
constraints?: Record<string, unknown> | undefined;
|
|
2425
2442
|
user_id?: string | undefined;
|
|
2426
2443
|
user_identifier?: string | undefined;
|
|
2427
|
-
constraints?: Record<string, unknown> | undefined;
|
|
2428
2444
|
} | undefined;
|
|
2429
|
-
reason?: string | undefined;
|
|
2430
2445
|
}>;
|
|
2431
2446
|
/**
|
|
2432
2447
|
* Wrapped verification response schema
|
|
@@ -2446,6 +2461,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
2446
2461
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
2447
2462
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
2448
2463
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2464
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2449
2465
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
2450
2466
|
budget: z.ZodOptional<z.ZodObject<{
|
|
2451
2467
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -2577,6 +2593,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
2577
2593
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
2578
2594
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
2579
2595
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2596
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2580
2597
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
2581
2598
|
budget: z.ZodOptional<z.ZodObject<{
|
|
2582
2599
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -2708,6 +2725,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
2708
2725
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
2709
2726
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
2710
2727
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2728
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2711
2729
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
2712
2730
|
budget: z.ZodOptional<z.ZodObject<{
|
|
2713
2731
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -2853,6 +2871,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
2853
2871
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
2854
2872
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
2855
2873
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
2874
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2856
2875
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
2857
2876
|
budget: z.ZodOptional<z.ZodObject<{
|
|
2858
2877
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -2984,6 +3003,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
2984
3003
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
2985
3004
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
2986
3005
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3006
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
2987
3007
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
2988
3008
|
budget: z.ZodOptional<z.ZodObject<{
|
|
2989
3009
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -3115,6 +3135,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3115
3135
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
3116
3136
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
3117
3137
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3138
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
3118
3139
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
3119
3140
|
budget: z.ZodOptional<z.ZodObject<{
|
|
3120
3141
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -3260,6 +3281,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3260
3281
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
3261
3282
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
3262
3283
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3284
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
3263
3285
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
3264
3286
|
budget: z.ZodOptional<z.ZodObject<{
|
|
3265
3287
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -3391,6 +3413,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3391
3413
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
3392
3414
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
3393
3415
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3416
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
3394
3417
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
3395
3418
|
budget: z.ZodOptional<z.ZodObject<{
|
|
3396
3419
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -3522,6 +3545,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3522
3545
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
3523
3546
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
3524
3547
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3548
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
3525
3549
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
3526
3550
|
budget: z.ZodOptional<z.ZodObject<{
|
|
3527
3551
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -3667,21 +3691,21 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3667
3691
|
issued_at: z.ZodNumber;
|
|
3668
3692
|
created_at: z.ZodNumber;
|
|
3669
3693
|
}, "strip", z.ZodTypeAny, {
|
|
3670
|
-
agent_did: string;
|
|
3671
3694
|
scopes: string[];
|
|
3695
|
+
agent_did: string;
|
|
3672
3696
|
issued_at: number;
|
|
3673
3697
|
created_at: number;
|
|
3698
|
+
constraints?: Record<string, unknown> | undefined;
|
|
3674
3699
|
user_id?: string | undefined;
|
|
3675
3700
|
user_identifier?: string | undefined;
|
|
3676
|
-
constraints?: Record<string, unknown> | undefined;
|
|
3677
3701
|
}, {
|
|
3678
|
-
agent_did: string;
|
|
3679
3702
|
scopes: string[];
|
|
3703
|
+
agent_did: string;
|
|
3680
3704
|
issued_at: number;
|
|
3681
3705
|
created_at: number;
|
|
3706
|
+
constraints?: Record<string, unknown> | undefined;
|
|
3682
3707
|
user_id?: string | undefined;
|
|
3683
3708
|
user_identifier?: string | undefined;
|
|
3684
|
-
constraints?: Record<string, unknown> | undefined;
|
|
3685
3709
|
}>>;
|
|
3686
3710
|
error: z.ZodOptional<z.ZodObject<{
|
|
3687
3711
|
code: z.ZodString;
|
|
@@ -3699,12 +3723,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3699
3723
|
reason: z.ZodOptional<z.ZodString>;
|
|
3700
3724
|
}, "strip", z.ZodTypeAny, {
|
|
3701
3725
|
valid: boolean;
|
|
3702
|
-
|
|
3703
|
-
error?: {
|
|
3704
|
-
code: string;
|
|
3705
|
-
message: string;
|
|
3706
|
-
details?: Record<string, unknown> | undefined;
|
|
3707
|
-
} | undefined;
|
|
3726
|
+
reason?: string | undefined;
|
|
3708
3727
|
delegation?: z.objectOutputType<{
|
|
3709
3728
|
id: z.ZodString;
|
|
3710
3729
|
issuerDid: z.ZodString;
|
|
@@ -3716,6 +3735,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3716
3735
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
3717
3736
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
3718
3737
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3738
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
3719
3739
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
3720
3740
|
budget: z.ZodOptional<z.ZodObject<{
|
|
3721
3741
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -3847,6 +3867,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3847
3867
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
3848
3868
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
3849
3869
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
3870
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
3850
3871
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
3851
3872
|
budget: z.ZodOptional<z.ZodObject<{
|
|
3852
3873
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -3978,6 +3999,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3978
3999
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
3979
4000
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
3980
4001
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4002
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
3981
4003
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
3982
4004
|
budget: z.ZodOptional<z.ZodObject<{
|
|
3983
4005
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -4113,24 +4135,24 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4113
4135
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
4114
4136
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4115
4137
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4138
|
+
error?: {
|
|
4139
|
+
code: string;
|
|
4140
|
+
message: string;
|
|
4141
|
+
details?: Record<string, unknown> | undefined;
|
|
4142
|
+
} | undefined;
|
|
4143
|
+
delegation_id?: string | undefined;
|
|
4116
4144
|
credential?: {
|
|
4117
|
-
agent_did: string;
|
|
4118
4145
|
scopes: string[];
|
|
4146
|
+
agent_did: string;
|
|
4119
4147
|
issued_at: number;
|
|
4120
4148
|
created_at: number;
|
|
4149
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4121
4150
|
user_id?: string | undefined;
|
|
4122
4151
|
user_identifier?: string | undefined;
|
|
4123
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4124
4152
|
} | undefined;
|
|
4125
|
-
reason?: string | undefined;
|
|
4126
4153
|
}, {
|
|
4127
4154
|
valid: boolean;
|
|
4128
|
-
|
|
4129
|
-
error?: {
|
|
4130
|
-
code: string;
|
|
4131
|
-
message: string;
|
|
4132
|
-
details?: Record<string, unknown> | undefined;
|
|
4133
|
-
} | undefined;
|
|
4155
|
+
reason?: string | undefined;
|
|
4134
4156
|
delegation?: z.objectInputType<{
|
|
4135
4157
|
id: z.ZodString;
|
|
4136
4158
|
issuerDid: z.ZodString;
|
|
@@ -4142,6 +4164,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4142
4164
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
4143
4165
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
4144
4166
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4167
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
4145
4168
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
4146
4169
|
budget: z.ZodOptional<z.ZodObject<{
|
|
4147
4170
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -4273,6 +4296,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4273
4296
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
4274
4297
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
4275
4298
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4299
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
4276
4300
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
4277
4301
|
budget: z.ZodOptional<z.ZodObject<{
|
|
4278
4302
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -4404,6 +4428,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4404
4428
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
4405
4429
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
4406
4430
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4431
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
4407
4432
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
4408
4433
|
budget: z.ZodOptional<z.ZodObject<{
|
|
4409
4434
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -4539,16 +4564,21 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4539
4564
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
4540
4565
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4541
4566
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
4567
|
+
error?: {
|
|
4568
|
+
code: string;
|
|
4569
|
+
message: string;
|
|
4570
|
+
details?: Record<string, unknown> | undefined;
|
|
4571
|
+
} | undefined;
|
|
4572
|
+
delegation_id?: string | undefined;
|
|
4542
4573
|
credential?: {
|
|
4543
|
-
agent_did: string;
|
|
4544
4574
|
scopes: string[];
|
|
4575
|
+
agent_did: string;
|
|
4545
4576
|
issued_at: number;
|
|
4546
4577
|
created_at: number;
|
|
4578
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4547
4579
|
user_id?: string | undefined;
|
|
4548
4580
|
user_identifier?: string | undefined;
|
|
4549
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4550
4581
|
} | undefined;
|
|
4551
|
-
reason?: string | undefined;
|
|
4552
4582
|
}>;
|
|
4553
4583
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
4554
4584
|
requestId: z.ZodString;
|
|
@@ -4564,12 +4594,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4564
4594
|
success: boolean;
|
|
4565
4595
|
data: {
|
|
4566
4596
|
valid: boolean;
|
|
4567
|
-
|
|
4568
|
-
error?: {
|
|
4569
|
-
code: string;
|
|
4570
|
-
message: string;
|
|
4571
|
-
details?: Record<string, unknown> | undefined;
|
|
4572
|
-
} | undefined;
|
|
4597
|
+
reason?: string | undefined;
|
|
4573
4598
|
delegation?: z.objectOutputType<{
|
|
4574
4599
|
id: z.ZodString;
|
|
4575
4600
|
issuerDid: z.ZodString;
|
|
@@ -4581,6 +4606,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4581
4606
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
4582
4607
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
4583
4608
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4609
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
4584
4610
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
4585
4611
|
budget: z.ZodOptional<z.ZodObject<{
|
|
4586
4612
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -4712,6 +4738,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4712
4738
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
4713
4739
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
4714
4740
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4741
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
4715
4742
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
4716
4743
|
budget: z.ZodOptional<z.ZodObject<{
|
|
4717
4744
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -4843,6 +4870,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4843
4870
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
4844
4871
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
4845
4872
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
4873
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
4846
4874
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
4847
4875
|
budget: z.ZodOptional<z.ZodObject<{
|
|
4848
4876
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -4978,16 +5006,21 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4978
5006
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
4979
5007
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
4980
5008
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
5009
|
+
error?: {
|
|
5010
|
+
code: string;
|
|
5011
|
+
message: string;
|
|
5012
|
+
details?: Record<string, unknown> | undefined;
|
|
5013
|
+
} | undefined;
|
|
5014
|
+
delegation_id?: string | undefined;
|
|
4981
5015
|
credential?: {
|
|
4982
|
-
agent_did: string;
|
|
4983
5016
|
scopes: string[];
|
|
5017
|
+
agent_did: string;
|
|
4984
5018
|
issued_at: number;
|
|
4985
5019
|
created_at: number;
|
|
5020
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4986
5021
|
user_id?: string | undefined;
|
|
4987
5022
|
user_identifier?: string | undefined;
|
|
4988
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4989
5023
|
} | undefined;
|
|
4990
|
-
reason?: string | undefined;
|
|
4991
5024
|
};
|
|
4992
5025
|
metadata?: {
|
|
4993
5026
|
timestamp: string;
|
|
@@ -4997,12 +5030,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4997
5030
|
success: boolean;
|
|
4998
5031
|
data: {
|
|
4999
5032
|
valid: boolean;
|
|
5000
|
-
|
|
5001
|
-
error?: {
|
|
5002
|
-
code: string;
|
|
5003
|
-
message: string;
|
|
5004
|
-
details?: Record<string, unknown> | undefined;
|
|
5005
|
-
} | undefined;
|
|
5033
|
+
reason?: string | undefined;
|
|
5006
5034
|
delegation?: z.objectInputType<{
|
|
5007
5035
|
id: z.ZodString;
|
|
5008
5036
|
issuerDid: z.ZodString;
|
|
@@ -5014,6 +5042,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5014
5042
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
5015
5043
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
5016
5044
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5045
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
5017
5046
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
5018
5047
|
budget: z.ZodOptional<z.ZodObject<{
|
|
5019
5048
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -5145,6 +5174,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5145
5174
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
5146
5175
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
5147
5176
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5177
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
5148
5178
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
5149
5179
|
budget: z.ZodOptional<z.ZodObject<{
|
|
5150
5180
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -5276,6 +5306,7 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5276
5306
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
5277
5307
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
5278
5308
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5309
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
5279
5310
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
5280
5311
|
budget: z.ZodOptional<z.ZodObject<{
|
|
5281
5312
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -5411,16 +5442,21 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5411
5442
|
revokedReason: z.ZodOptional<z.ZodString>;
|
|
5412
5443
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
5413
5444
|
}, z.ZodTypeAny, "passthrough"> | undefined;
|
|
5445
|
+
error?: {
|
|
5446
|
+
code: string;
|
|
5447
|
+
message: string;
|
|
5448
|
+
details?: Record<string, unknown> | undefined;
|
|
5449
|
+
} | undefined;
|
|
5450
|
+
delegation_id?: string | undefined;
|
|
5414
5451
|
credential?: {
|
|
5415
|
-
agent_did: string;
|
|
5416
5452
|
scopes: string[];
|
|
5453
|
+
agent_did: string;
|
|
5417
5454
|
issued_at: number;
|
|
5418
5455
|
created_at: number;
|
|
5456
|
+
constraints?: Record<string, unknown> | undefined;
|
|
5419
5457
|
user_id?: string | undefined;
|
|
5420
5458
|
user_identifier?: string | undefined;
|
|
5421
|
-
constraints?: Record<string, unknown> | undefined;
|
|
5422
5459
|
} | undefined;
|
|
5423
|
-
reason?: string | undefined;
|
|
5424
5460
|
};
|
|
5425
5461
|
metadata?: {
|
|
5426
5462
|
timestamp: string;
|
|
@@ -5597,6 +5633,7 @@ export declare const createDelegationRequestSchema: z.ZodObject<{
|
|
|
5597
5633
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
5598
5634
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
5599
5635
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5636
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
5600
5637
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
5601
5638
|
budget: z.ZodOptional<z.ZodObject<{
|
|
5602
5639
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -5728,6 +5765,7 @@ export declare const createDelegationRequestSchema: z.ZodObject<{
|
|
|
5728
5765
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
5729
5766
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
5730
5767
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5768
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
5731
5769
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
5732
5770
|
budget: z.ZodOptional<z.ZodObject<{
|
|
5733
5771
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -5859,6 +5897,7 @@ export declare const createDelegationRequestSchema: z.ZodObject<{
|
|
|
5859
5897
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
5860
5898
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
5861
5899
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
5900
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
5862
5901
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
5863
5902
|
budget: z.ZodOptional<z.ZodObject<{
|
|
5864
5903
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6004,6 +6043,7 @@ export declare const createDelegationRequestSchema: z.ZodObject<{
|
|
|
6004
6043
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
6005
6044
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
6006
6045
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6046
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
6007
6047
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
6008
6048
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6009
6049
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6135,6 +6175,7 @@ export declare const createDelegationRequestSchema: z.ZodObject<{
|
|
|
6135
6175
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
6136
6176
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
6137
6177
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6178
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
6138
6179
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
6139
6180
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6140
6181
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6266,6 +6307,7 @@ export declare const createDelegationRequestSchema: z.ZodObject<{
|
|
|
6266
6307
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
6267
6308
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
6268
6309
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6310
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
6269
6311
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
6270
6312
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6271
6313
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6411,6 +6453,7 @@ export declare const createDelegationRequestSchema: z.ZodObject<{
|
|
|
6411
6453
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
6412
6454
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
6413
6455
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6456
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
6414
6457
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
6415
6458
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6416
6459
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6542,6 +6585,7 @@ export declare const createDelegationRequestSchema: z.ZodObject<{
|
|
|
6542
6585
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
6543
6586
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
6544
6587
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6588
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
6545
6589
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
6546
6590
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6547
6591
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6673,6 +6717,7 @@ export declare const createDelegationRequestSchema: z.ZodObject<{
|
|
|
6673
6717
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
6674
6718
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
6675
6719
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
6720
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
6676
6721
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
6677
6722
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6678
6723
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6812,9 +6857,10 @@ export declare const createDelegationRequestSchema: z.ZodObject<{
|
|
|
6812
6857
|
delegation: {
|
|
6813
6858
|
status: "active" | "revoked" | "expired";
|
|
6814
6859
|
constraints: {
|
|
6815
|
-
|
|
6860
|
+
audience?: string | string[] | undefined;
|
|
6816
6861
|
notBefore?: number | undefined;
|
|
6817
6862
|
notAfter?: number | undefined;
|
|
6863
|
+
scopes?: string[] | undefined;
|
|
6818
6864
|
crisp?: z.objectOutputType<{
|
|
6819
6865
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6820
6866
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6866,9 +6912,9 @@ export declare const createDelegationRequestSchema: z.ZodObject<{
|
|
|
6866
6912
|
subjectDid: string;
|
|
6867
6913
|
vcId: string;
|
|
6868
6914
|
signature: string;
|
|
6915
|
+
createdAt?: number | undefined;
|
|
6869
6916
|
controller?: string | undefined;
|
|
6870
6917
|
parentId?: string | undefined;
|
|
6871
|
-
createdAt?: number | undefined;
|
|
6872
6918
|
revokedAt?: number | undefined;
|
|
6873
6919
|
revokedReason?: string | undefined;
|
|
6874
6920
|
metadata?: Record<string, any> | undefined;
|
|
@@ -6879,9 +6925,10 @@ export declare const createDelegationRequestSchema: z.ZodObject<{
|
|
|
6879
6925
|
delegation: {
|
|
6880
6926
|
status: "active" | "revoked" | "expired";
|
|
6881
6927
|
constraints: {
|
|
6882
|
-
|
|
6928
|
+
audience?: string | string[] | undefined;
|
|
6883
6929
|
notBefore?: number | undefined;
|
|
6884
6930
|
notAfter?: number | undefined;
|
|
6931
|
+
scopes?: string[] | undefined;
|
|
6885
6932
|
crisp?: z.objectInputType<{
|
|
6886
6933
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6887
6934
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -6933,9 +6980,9 @@ export declare const createDelegationRequestSchema: z.ZodObject<{
|
|
|
6933
6980
|
subjectDid: string;
|
|
6934
6981
|
vcId: string;
|
|
6935
6982
|
signature: string;
|
|
6983
|
+
createdAt?: number | undefined;
|
|
6936
6984
|
controller?: string | undefined;
|
|
6937
6985
|
parentId?: string | undefined;
|
|
6938
|
-
createdAt?: number | undefined;
|
|
6939
6986
|
revokedAt?: number | undefined;
|
|
6940
6987
|
revokedReason?: string | undefined;
|
|
6941
6988
|
metadata?: Record<string, any> | undefined;
|
|
@@ -6959,6 +7006,7 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
6959
7006
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
6960
7007
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
6961
7008
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7009
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
6962
7010
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
6963
7011
|
budget: z.ZodOptional<z.ZodObject<{
|
|
6964
7012
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -7090,6 +7138,7 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
7090
7138
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
7091
7139
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
7092
7140
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7141
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7093
7142
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
7094
7143
|
budget: z.ZodOptional<z.ZodObject<{
|
|
7095
7144
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -7221,6 +7270,7 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
7221
7270
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
7222
7271
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
7223
7272
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7273
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7224
7274
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
7225
7275
|
budget: z.ZodOptional<z.ZodObject<{
|
|
7226
7276
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -7366,6 +7416,7 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
7366
7416
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
7367
7417
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
7368
7418
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7419
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7369
7420
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
7370
7421
|
budget: z.ZodOptional<z.ZodObject<{
|
|
7371
7422
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -7497,6 +7548,7 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
7497
7548
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
7498
7549
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
7499
7550
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7551
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7500
7552
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
7501
7553
|
budget: z.ZodOptional<z.ZodObject<{
|
|
7502
7554
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -7628,6 +7680,7 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
7628
7680
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
7629
7681
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
7630
7682
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7683
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7631
7684
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
7632
7685
|
budget: z.ZodOptional<z.ZodObject<{
|
|
7633
7686
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -7773,6 +7826,7 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
7773
7826
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
7774
7827
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
7775
7828
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7829
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7776
7830
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
7777
7831
|
budget: z.ZodOptional<z.ZodObject<{
|
|
7778
7832
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -7904,6 +7958,7 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
7904
7958
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
7905
7959
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
7906
7960
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
7961
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
7907
7962
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
7908
7963
|
budget: z.ZodOptional<z.ZodObject<{
|
|
7909
7964
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -8035,6 +8090,7 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
8035
8090
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
8036
8091
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
8037
8092
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8093
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
8038
8094
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
8039
8095
|
budget: z.ZodOptional<z.ZodObject<{
|
|
8040
8096
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -8171,13 +8227,13 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
8171
8227
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
8172
8228
|
}, z.ZodTypeAny, "passthrough">>;
|
|
8173
8229
|
}, "strip", z.ZodTypeAny, {
|
|
8174
|
-
delegation_id: string;
|
|
8175
8230
|
delegation: {
|
|
8176
8231
|
status: "active" | "revoked" | "expired";
|
|
8177
8232
|
constraints: {
|
|
8178
|
-
|
|
8233
|
+
audience?: string | string[] | undefined;
|
|
8179
8234
|
notBefore?: number | undefined;
|
|
8180
8235
|
notAfter?: number | undefined;
|
|
8236
|
+
scopes?: string[] | undefined;
|
|
8181
8237
|
crisp?: z.objectOutputType<{
|
|
8182
8238
|
budget: z.ZodOptional<z.ZodObject<{
|
|
8183
8239
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -8229,23 +8285,24 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
8229
8285
|
subjectDid: string;
|
|
8230
8286
|
vcId: string;
|
|
8231
8287
|
signature: string;
|
|
8288
|
+
createdAt?: number | undefined;
|
|
8232
8289
|
controller?: string | undefined;
|
|
8233
8290
|
parentId?: string | undefined;
|
|
8234
|
-
createdAt?: number | undefined;
|
|
8235
8291
|
revokedAt?: number | undefined;
|
|
8236
8292
|
revokedReason?: string | undefined;
|
|
8237
8293
|
metadata?: Record<string, any> | undefined;
|
|
8238
8294
|
} & {
|
|
8239
8295
|
[k: string]: unknown;
|
|
8240
8296
|
};
|
|
8241
|
-
}, {
|
|
8242
8297
|
delegation_id: string;
|
|
8298
|
+
}, {
|
|
8243
8299
|
delegation: {
|
|
8244
8300
|
status: "active" | "revoked" | "expired";
|
|
8245
8301
|
constraints: {
|
|
8246
|
-
|
|
8302
|
+
audience?: string | string[] | undefined;
|
|
8247
8303
|
notBefore?: number | undefined;
|
|
8248
8304
|
notAfter?: number | undefined;
|
|
8305
|
+
scopes?: string[] | undefined;
|
|
8249
8306
|
crisp?: z.objectInputType<{
|
|
8250
8307
|
budget: z.ZodOptional<z.ZodObject<{
|
|
8251
8308
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -8297,15 +8354,16 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
8297
8354
|
subjectDid: string;
|
|
8298
8355
|
vcId: string;
|
|
8299
8356
|
signature: string;
|
|
8357
|
+
createdAt?: number | undefined;
|
|
8300
8358
|
controller?: string | undefined;
|
|
8301
8359
|
parentId?: string | undefined;
|
|
8302
|
-
createdAt?: number | undefined;
|
|
8303
8360
|
revokedAt?: number | undefined;
|
|
8304
8361
|
revokedReason?: string | undefined;
|
|
8305
8362
|
metadata?: Record<string, any> | undefined;
|
|
8306
8363
|
} & {
|
|
8307
8364
|
[k: string]: unknown;
|
|
8308
8365
|
};
|
|
8366
|
+
delegation_id: string;
|
|
8309
8367
|
}>;
|
|
8310
8368
|
/**
|
|
8311
8369
|
* Wrapped creation response schema
|
|
@@ -8325,6 +8383,7 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
8325
8383
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
8326
8384
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
8327
8385
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8386
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
8328
8387
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
8329
8388
|
budget: z.ZodOptional<z.ZodObject<{
|
|
8330
8389
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -8456,6 +8515,7 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
8456
8515
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
8457
8516
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
8458
8517
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8518
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
8459
8519
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
8460
8520
|
budget: z.ZodOptional<z.ZodObject<{
|
|
8461
8521
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -8587,6 +8647,7 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
8587
8647
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
8588
8648
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
8589
8649
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8650
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
8590
8651
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
8591
8652
|
budget: z.ZodOptional<z.ZodObject<{
|
|
8592
8653
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -8732,6 +8793,7 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
8732
8793
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
8733
8794
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
8734
8795
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8796
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
8735
8797
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
8736
8798
|
budget: z.ZodOptional<z.ZodObject<{
|
|
8737
8799
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -8863,6 +8925,7 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
8863
8925
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
8864
8926
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
8865
8927
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
8928
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
8866
8929
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
8867
8930
|
budget: z.ZodOptional<z.ZodObject<{
|
|
8868
8931
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -8994,6 +9057,7 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
8994
9057
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
8995
9058
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
8996
9059
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9060
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
8997
9061
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
8998
9062
|
budget: z.ZodOptional<z.ZodObject<{
|
|
8999
9063
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -9139,6 +9203,7 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
9139
9203
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
9140
9204
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
9141
9205
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9206
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
9142
9207
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
9143
9208
|
budget: z.ZodOptional<z.ZodObject<{
|
|
9144
9209
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -9270,6 +9335,7 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
9270
9335
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
9271
9336
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
9272
9337
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9338
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
9273
9339
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
9274
9340
|
budget: z.ZodOptional<z.ZodObject<{
|
|
9275
9341
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -9401,6 +9467,7 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
9401
9467
|
notBefore: z.ZodOptional<z.ZodNumber>;
|
|
9402
9468
|
notAfter: z.ZodOptional<z.ZodNumber>;
|
|
9403
9469
|
scopes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
9470
|
+
audience: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>>;
|
|
9404
9471
|
crisp: z.ZodOptional<z.ZodObject<{
|
|
9405
9472
|
budget: z.ZodOptional<z.ZodObject<{
|
|
9406
9473
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -9537,13 +9604,13 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
9537
9604
|
metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
9538
9605
|
}, z.ZodTypeAny, "passthrough">>;
|
|
9539
9606
|
}, "strip", z.ZodTypeAny, {
|
|
9540
|
-
delegation_id: string;
|
|
9541
9607
|
delegation: {
|
|
9542
9608
|
status: "active" | "revoked" | "expired";
|
|
9543
9609
|
constraints: {
|
|
9544
|
-
|
|
9610
|
+
audience?: string | string[] | undefined;
|
|
9545
9611
|
notBefore?: number | undefined;
|
|
9546
9612
|
notAfter?: number | undefined;
|
|
9613
|
+
scopes?: string[] | undefined;
|
|
9547
9614
|
crisp?: z.objectOutputType<{
|
|
9548
9615
|
budget: z.ZodOptional<z.ZodObject<{
|
|
9549
9616
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -9595,23 +9662,24 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
9595
9662
|
subjectDid: string;
|
|
9596
9663
|
vcId: string;
|
|
9597
9664
|
signature: string;
|
|
9665
|
+
createdAt?: number | undefined;
|
|
9598
9666
|
controller?: string | undefined;
|
|
9599
9667
|
parentId?: string | undefined;
|
|
9600
|
-
createdAt?: number | undefined;
|
|
9601
9668
|
revokedAt?: number | undefined;
|
|
9602
9669
|
revokedReason?: string | undefined;
|
|
9603
9670
|
metadata?: Record<string, any> | undefined;
|
|
9604
9671
|
} & {
|
|
9605
9672
|
[k: string]: unknown;
|
|
9606
9673
|
};
|
|
9607
|
-
}, {
|
|
9608
9674
|
delegation_id: string;
|
|
9675
|
+
}, {
|
|
9609
9676
|
delegation: {
|
|
9610
9677
|
status: "active" | "revoked" | "expired";
|
|
9611
9678
|
constraints: {
|
|
9612
|
-
|
|
9679
|
+
audience?: string | string[] | undefined;
|
|
9613
9680
|
notBefore?: number | undefined;
|
|
9614
9681
|
notAfter?: number | undefined;
|
|
9682
|
+
scopes?: string[] | undefined;
|
|
9615
9683
|
crisp?: z.objectInputType<{
|
|
9616
9684
|
budget: z.ZodOptional<z.ZodObject<{
|
|
9617
9685
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -9663,15 +9731,16 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
9663
9731
|
subjectDid: string;
|
|
9664
9732
|
vcId: string;
|
|
9665
9733
|
signature: string;
|
|
9734
|
+
createdAt?: number | undefined;
|
|
9666
9735
|
controller?: string | undefined;
|
|
9667
9736
|
parentId?: string | undefined;
|
|
9668
|
-
createdAt?: number | undefined;
|
|
9669
9737
|
revokedAt?: number | undefined;
|
|
9670
9738
|
revokedReason?: string | undefined;
|
|
9671
9739
|
metadata?: Record<string, any> | undefined;
|
|
9672
9740
|
} & {
|
|
9673
9741
|
[k: string]: unknown;
|
|
9674
9742
|
};
|
|
9743
|
+
delegation_id: string;
|
|
9675
9744
|
}>;
|
|
9676
9745
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
9677
9746
|
requestId: z.ZodString;
|
|
@@ -9686,13 +9755,13 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
9686
9755
|
}, "strip", z.ZodTypeAny, {
|
|
9687
9756
|
success: boolean;
|
|
9688
9757
|
data: {
|
|
9689
|
-
delegation_id: string;
|
|
9690
9758
|
delegation: {
|
|
9691
9759
|
status: "active" | "revoked" | "expired";
|
|
9692
9760
|
constraints: {
|
|
9693
|
-
|
|
9761
|
+
audience?: string | string[] | undefined;
|
|
9694
9762
|
notBefore?: number | undefined;
|
|
9695
9763
|
notAfter?: number | undefined;
|
|
9764
|
+
scopes?: string[] | undefined;
|
|
9696
9765
|
crisp?: z.objectOutputType<{
|
|
9697
9766
|
budget: z.ZodOptional<z.ZodObject<{
|
|
9698
9767
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -9744,15 +9813,16 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
9744
9813
|
subjectDid: string;
|
|
9745
9814
|
vcId: string;
|
|
9746
9815
|
signature: string;
|
|
9816
|
+
createdAt?: number | undefined;
|
|
9747
9817
|
controller?: string | undefined;
|
|
9748
9818
|
parentId?: string | undefined;
|
|
9749
|
-
createdAt?: number | undefined;
|
|
9750
9819
|
revokedAt?: number | undefined;
|
|
9751
9820
|
revokedReason?: string | undefined;
|
|
9752
9821
|
metadata?: Record<string, any> | undefined;
|
|
9753
9822
|
} & {
|
|
9754
9823
|
[k: string]: unknown;
|
|
9755
9824
|
};
|
|
9825
|
+
delegation_id: string;
|
|
9756
9826
|
};
|
|
9757
9827
|
metadata?: {
|
|
9758
9828
|
timestamp: string;
|
|
@@ -9761,13 +9831,13 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
9761
9831
|
}, {
|
|
9762
9832
|
success: boolean;
|
|
9763
9833
|
data: {
|
|
9764
|
-
delegation_id: string;
|
|
9765
9834
|
delegation: {
|
|
9766
9835
|
status: "active" | "revoked" | "expired";
|
|
9767
9836
|
constraints: {
|
|
9768
|
-
|
|
9837
|
+
audience?: string | string[] | undefined;
|
|
9769
9838
|
notBefore?: number | undefined;
|
|
9770
9839
|
notAfter?: number | undefined;
|
|
9840
|
+
scopes?: string[] | undefined;
|
|
9771
9841
|
crisp?: z.objectInputType<{
|
|
9772
9842
|
budget: z.ZodOptional<z.ZodObject<{
|
|
9773
9843
|
unit: z.ZodEnum<["USD", "ops", "points"]>;
|
|
@@ -9819,15 +9889,16 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
9819
9889
|
subjectDid: string;
|
|
9820
9890
|
vcId: string;
|
|
9821
9891
|
signature: string;
|
|
9892
|
+
createdAt?: number | undefined;
|
|
9822
9893
|
controller?: string | undefined;
|
|
9823
9894
|
parentId?: string | undefined;
|
|
9824
|
-
createdAt?: number | undefined;
|
|
9825
9895
|
revokedAt?: number | undefined;
|
|
9826
9896
|
revokedReason?: string | undefined;
|
|
9827
9897
|
metadata?: Record<string, any> | undefined;
|
|
9828
9898
|
} & {
|
|
9829
9899
|
[k: string]: unknown;
|
|
9830
9900
|
};
|
|
9901
|
+
delegation_id: string;
|
|
9831
9902
|
};
|
|
9832
9903
|
metadata?: {
|
|
9833
9904
|
timestamp: string;
|
|
@@ -9852,12 +9923,12 @@ export declare const revokeDelegationResponseSchema: z.ZodObject<{
|
|
|
9852
9923
|
revoked: z.ZodBoolean;
|
|
9853
9924
|
revoked_at: z.ZodNumber;
|
|
9854
9925
|
}, "strip", z.ZodTypeAny, {
|
|
9855
|
-
delegation_id: string;
|
|
9856
9926
|
revoked: boolean;
|
|
9927
|
+
delegation_id: string;
|
|
9857
9928
|
revoked_at: number;
|
|
9858
9929
|
}, {
|
|
9859
|
-
delegation_id: string;
|
|
9860
9930
|
revoked: boolean;
|
|
9931
|
+
delegation_id: string;
|
|
9861
9932
|
revoked_at: number;
|
|
9862
9933
|
}>;
|
|
9863
9934
|
/**
|
|
@@ -9870,12 +9941,12 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
9870
9941
|
revoked: z.ZodBoolean;
|
|
9871
9942
|
revoked_at: z.ZodNumber;
|
|
9872
9943
|
}, "strip", z.ZodTypeAny, {
|
|
9873
|
-
delegation_id: string;
|
|
9874
9944
|
revoked: boolean;
|
|
9945
|
+
delegation_id: string;
|
|
9875
9946
|
revoked_at: number;
|
|
9876
9947
|
}, {
|
|
9877
|
-
delegation_id: string;
|
|
9878
9948
|
revoked: boolean;
|
|
9949
|
+
delegation_id: string;
|
|
9879
9950
|
revoked_at: number;
|
|
9880
9951
|
}>;
|
|
9881
9952
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -9891,8 +9962,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
9891
9962
|
}, "strip", z.ZodTypeAny, {
|
|
9892
9963
|
success: boolean;
|
|
9893
9964
|
data: {
|
|
9894
|
-
delegation_id: string;
|
|
9895
9965
|
revoked: boolean;
|
|
9966
|
+
delegation_id: string;
|
|
9896
9967
|
revoked_at: number;
|
|
9897
9968
|
};
|
|
9898
9969
|
metadata?: {
|
|
@@ -9902,8 +9973,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
9902
9973
|
}, {
|
|
9903
9974
|
success: boolean;
|
|
9904
9975
|
data: {
|
|
9905
|
-
delegation_id: string;
|
|
9906
9976
|
revoked: boolean;
|
|
9977
|
+
delegation_id: string;
|
|
9907
9978
|
revoked_at: number;
|
|
9908
9979
|
};
|
|
9909
9980
|
metadata?: {
|