@kya-os/contracts 1.6.11 → 1.6.12
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.
|
@@ -185,12 +185,12 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
185
185
|
identifier: string;
|
|
186
186
|
}>>;
|
|
187
187
|
}, "strip", z.ZodTypeAny, {
|
|
188
|
-
timestamp: number;
|
|
189
188
|
sessionId: string;
|
|
189
|
+
scopes: string[];
|
|
190
|
+
timestamp: number;
|
|
190
191
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
191
192
|
agentDid: string;
|
|
192
193
|
targetTools: string[];
|
|
193
|
-
scopes: string[];
|
|
194
194
|
projectId: string;
|
|
195
195
|
userDid?: string | undefined;
|
|
196
196
|
delegationId?: string | undefined;
|
|
@@ -201,12 +201,12 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
201
201
|
identifier: string;
|
|
202
202
|
} | undefined;
|
|
203
203
|
}, {
|
|
204
|
-
timestamp: number;
|
|
205
204
|
sessionId: string;
|
|
205
|
+
scopes: string[];
|
|
206
|
+
timestamp: number;
|
|
206
207
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
207
208
|
agentDid: string;
|
|
208
209
|
targetTools: string[];
|
|
209
|
-
scopes: string[];
|
|
210
210
|
projectId: string;
|
|
211
211
|
userDid?: string | undefined;
|
|
212
212
|
delegationId?: string | undefined;
|
|
@@ -227,12 +227,12 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
227
227
|
userIdentifier?: string | undefined;
|
|
228
228
|
}[] | undefined;
|
|
229
229
|
consentEvents?: {
|
|
230
|
-
timestamp: number;
|
|
231
230
|
sessionId: string;
|
|
231
|
+
scopes: string[];
|
|
232
|
+
timestamp: number;
|
|
232
233
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
233
234
|
agentDid: string;
|
|
234
235
|
targetTools: string[];
|
|
235
|
-
scopes: string[];
|
|
236
236
|
projectId: string;
|
|
237
237
|
userDid?: string | undefined;
|
|
238
238
|
delegationId?: string | undefined;
|
|
@@ -253,12 +253,12 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
253
253
|
userIdentifier?: string | undefined;
|
|
254
254
|
}[] | undefined;
|
|
255
255
|
consentEvents?: {
|
|
256
|
-
timestamp: number;
|
|
257
256
|
sessionId: string;
|
|
257
|
+
scopes: string[];
|
|
258
|
+
timestamp: number;
|
|
258
259
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
259
260
|
agentDid: string;
|
|
260
261
|
targetTools: string[];
|
|
261
|
-
scopes: string[];
|
|
262
262
|
projectId: string;
|
|
263
263
|
userDid?: string | undefined;
|
|
264
264
|
delegationId?: string | undefined;
|
|
@@ -299,12 +299,12 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
299
299
|
userIdentifier?: string | undefined;
|
|
300
300
|
}[] | undefined;
|
|
301
301
|
consentEvents?: {
|
|
302
|
-
timestamp: number;
|
|
303
302
|
sessionId: string;
|
|
303
|
+
scopes: string[];
|
|
304
|
+
timestamp: number;
|
|
304
305
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
305
306
|
agentDid: string;
|
|
306
307
|
targetTools: string[];
|
|
307
|
-
scopes: string[];
|
|
308
308
|
projectId: string;
|
|
309
309
|
userDid?: string | undefined;
|
|
310
310
|
delegationId?: string | undefined;
|
|
@@ -345,12 +345,12 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
345
345
|
userIdentifier?: string | undefined;
|
|
346
346
|
}[] | undefined;
|
|
347
347
|
consentEvents?: {
|
|
348
|
-
timestamp: number;
|
|
349
348
|
sessionId: string;
|
|
349
|
+
scopes: string[];
|
|
350
|
+
timestamp: number;
|
|
350
351
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
351
352
|
agentDid: string;
|
|
352
353
|
targetTools: string[];
|
|
353
|
-
scopes: string[];
|
|
354
354
|
projectId: string;
|
|
355
355
|
userDid?: string | undefined;
|
|
356
356
|
delegationId?: string | undefined;
|
|
@@ -388,19 +388,19 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
388
388
|
details?: Record<string, unknown> | undefined;
|
|
389
389
|
}>;
|
|
390
390
|
}, "strip", z.ZodTypeAny, {
|
|
391
|
-
proof_index: number;
|
|
392
391
|
error: {
|
|
393
392
|
code: string;
|
|
394
393
|
message: string;
|
|
395
394
|
details?: Record<string, unknown> | undefined;
|
|
396
395
|
};
|
|
397
|
-
}, {
|
|
398
396
|
proof_index: number;
|
|
397
|
+
}, {
|
|
399
398
|
error: {
|
|
400
399
|
code: string;
|
|
401
400
|
message: string;
|
|
402
401
|
details?: Record<string, unknown> | undefined;
|
|
403
402
|
};
|
|
403
|
+
proof_index: number;
|
|
404
404
|
}>, "many">>;
|
|
405
405
|
}, "strip", z.ZodTypeAny, {
|
|
406
406
|
success: boolean;
|
|
@@ -408,12 +408,12 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
408
408
|
rejected: number;
|
|
409
409
|
outcomes?: Record<string, number> | undefined;
|
|
410
410
|
errors?: {
|
|
411
|
-
proof_index: number;
|
|
412
411
|
error: {
|
|
413
412
|
code: string;
|
|
414
413
|
message: string;
|
|
415
414
|
details?: Record<string, unknown> | undefined;
|
|
416
415
|
};
|
|
416
|
+
proof_index: number;
|
|
417
417
|
}[] | undefined;
|
|
418
418
|
}, {
|
|
419
419
|
success: boolean;
|
|
@@ -421,12 +421,12 @@ export declare const proofSubmissionResponseSchema: z.ZodObject<{
|
|
|
421
421
|
rejected: number;
|
|
422
422
|
outcomes?: Record<string, number> | undefined;
|
|
423
423
|
errors?: {
|
|
424
|
-
proof_index: number;
|
|
425
424
|
error: {
|
|
426
425
|
code: string;
|
|
427
426
|
message: string;
|
|
428
427
|
details?: Record<string, unknown> | undefined;
|
|
429
428
|
};
|
|
429
|
+
proof_index: number;
|
|
430
430
|
}[] | undefined;
|
|
431
431
|
}>;
|
|
432
432
|
/**
|
|
@@ -445,24 +445,24 @@ export declare const delegationCredentialSchema: z.ZodObject<{
|
|
|
445
445
|
agent_did: string;
|
|
446
446
|
issued_at: number;
|
|
447
447
|
created_at: number;
|
|
448
|
+
constraints?: Record<string, unknown> | undefined;
|
|
448
449
|
user_id?: string | undefined;
|
|
449
450
|
user_identifier?: string | undefined;
|
|
450
|
-
constraints?: Record<string, unknown> | undefined;
|
|
451
451
|
}, {
|
|
452
452
|
scopes: string[];
|
|
453
453
|
agent_did: string;
|
|
454
454
|
issued_at: number;
|
|
455
455
|
created_at: number;
|
|
456
|
+
constraints?: Record<string, unknown> | undefined;
|
|
456
457
|
user_id?: string | undefined;
|
|
457
458
|
user_identifier?: string | undefined;
|
|
458
|
-
constraints?: Record<string, unknown> | undefined;
|
|
459
459
|
}>;
|
|
460
460
|
/**
|
|
461
461
|
* Delegation verification request schema
|
|
462
462
|
*/
|
|
463
463
|
export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
464
|
-
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
465
464
|
scopes: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodString, "many">>>;
|
|
465
|
+
timestamp: z.ZodOptional<z.ZodNumber>;
|
|
466
466
|
agent_did: z.ZodString;
|
|
467
467
|
user_did: z.ZodOptional<z.ZodString>;
|
|
468
468
|
credential_jwt: z.ZodOptional<z.ZodString>;
|
|
@@ -482,8 +482,8 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
482
482
|
}>>;
|
|
483
483
|
}, "strip", z.ZodTypeAny, {
|
|
484
484
|
agent_did: string;
|
|
485
|
-
timestamp?: number | undefined;
|
|
486
485
|
scopes?: string[] | undefined;
|
|
486
|
+
timestamp?: number | undefined;
|
|
487
487
|
user_did?: string | undefined;
|
|
488
488
|
credential_jwt?: string | undefined;
|
|
489
489
|
delegation_token?: string | undefined;
|
|
@@ -494,8 +494,8 @@ export declare const verifyDelegationRequestSchema: z.ZodObject<{
|
|
|
494
494
|
} | undefined;
|
|
495
495
|
}, {
|
|
496
496
|
agent_did: string;
|
|
497
|
-
timestamp?: number | undefined;
|
|
498
497
|
scopes?: string[] | undefined;
|
|
498
|
+
timestamp?: number | undefined;
|
|
499
499
|
user_did?: string | undefined;
|
|
500
500
|
credential_jwt?: string | undefined;
|
|
501
501
|
delegation_token?: string | undefined;
|
|
@@ -1755,17 +1755,17 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1755
1755
|
agent_did: string;
|
|
1756
1756
|
issued_at: number;
|
|
1757
1757
|
created_at: number;
|
|
1758
|
+
constraints?: Record<string, unknown> | undefined;
|
|
1758
1759
|
user_id?: string | undefined;
|
|
1759
1760
|
user_identifier?: string | undefined;
|
|
1760
|
-
constraints?: Record<string, unknown> | undefined;
|
|
1761
1761
|
}, {
|
|
1762
1762
|
scopes: string[];
|
|
1763
1763
|
agent_did: string;
|
|
1764
1764
|
issued_at: number;
|
|
1765
1765
|
created_at: number;
|
|
1766
|
+
constraints?: Record<string, unknown> | undefined;
|
|
1766
1767
|
user_id?: string | undefined;
|
|
1767
1768
|
user_identifier?: string | undefined;
|
|
1768
|
-
constraints?: Record<string, unknown> | undefined;
|
|
1769
1769
|
}>>;
|
|
1770
1770
|
error: z.ZodOptional<z.ZodObject<{
|
|
1771
1771
|
code: z.ZodString;
|
|
@@ -1783,12 +1783,12 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
1783
1783
|
reason: z.ZodOptional<z.ZodString>;
|
|
1784
1784
|
}, "strip", z.ZodTypeAny, {
|
|
1785
1785
|
valid: boolean;
|
|
1786
|
-
delegation_id?: string | undefined;
|
|
1787
1786
|
error?: {
|
|
1788
1787
|
code: string;
|
|
1789
1788
|
message: string;
|
|
1790
1789
|
details?: Record<string, unknown> | undefined;
|
|
1791
1790
|
} | undefined;
|
|
1791
|
+
delegation_id?: string | undefined;
|
|
1792
1792
|
delegation?: z.objectOutputType<{
|
|
1793
1793
|
id: z.ZodString;
|
|
1794
1794
|
issuerDid: z.ZodString;
|
|
@@ -2205,19 +2205,19 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2205
2205
|
agent_did: string;
|
|
2206
2206
|
issued_at: number;
|
|
2207
2207
|
created_at: number;
|
|
2208
|
+
constraints?: Record<string, unknown> | undefined;
|
|
2208
2209
|
user_id?: string | undefined;
|
|
2209
2210
|
user_identifier?: string | undefined;
|
|
2210
|
-
constraints?: Record<string, unknown> | undefined;
|
|
2211
2211
|
} | undefined;
|
|
2212
2212
|
reason?: string | undefined;
|
|
2213
2213
|
}, {
|
|
2214
2214
|
valid: boolean;
|
|
2215
|
-
delegation_id?: string | undefined;
|
|
2216
2215
|
error?: {
|
|
2217
2216
|
code: string;
|
|
2218
2217
|
message: string;
|
|
2219
2218
|
details?: Record<string, unknown> | undefined;
|
|
2220
2219
|
} | undefined;
|
|
2220
|
+
delegation_id?: string | undefined;
|
|
2221
2221
|
delegation?: z.objectInputType<{
|
|
2222
2222
|
id: z.ZodString;
|
|
2223
2223
|
issuerDid: z.ZodString;
|
|
@@ -2634,9 +2634,9 @@ export declare const verifyDelegationResponseSchema: z.ZodObject<{
|
|
|
2634
2634
|
agent_did: string;
|
|
2635
2635
|
issued_at: number;
|
|
2636
2636
|
created_at: number;
|
|
2637
|
+
constraints?: Record<string, unknown> | undefined;
|
|
2637
2638
|
user_id?: string | undefined;
|
|
2638
2639
|
user_identifier?: string | undefined;
|
|
2639
|
-
constraints?: Record<string, unknown> | undefined;
|
|
2640
2640
|
} | undefined;
|
|
2641
2641
|
reason?: string | undefined;
|
|
2642
2642
|
}>;
|
|
@@ -3892,17 +3892,17 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3892
3892
|
agent_did: string;
|
|
3893
3893
|
issued_at: number;
|
|
3894
3894
|
created_at: number;
|
|
3895
|
+
constraints?: Record<string, unknown> | undefined;
|
|
3895
3896
|
user_id?: string | undefined;
|
|
3896
3897
|
user_identifier?: string | undefined;
|
|
3897
|
-
constraints?: Record<string, unknown> | undefined;
|
|
3898
3898
|
}, {
|
|
3899
3899
|
scopes: string[];
|
|
3900
3900
|
agent_did: string;
|
|
3901
3901
|
issued_at: number;
|
|
3902
3902
|
created_at: number;
|
|
3903
|
+
constraints?: Record<string, unknown> | undefined;
|
|
3903
3904
|
user_id?: string | undefined;
|
|
3904
3905
|
user_identifier?: string | undefined;
|
|
3905
|
-
constraints?: Record<string, unknown> | undefined;
|
|
3906
3906
|
}>>;
|
|
3907
3907
|
error: z.ZodOptional<z.ZodObject<{
|
|
3908
3908
|
code: z.ZodString;
|
|
@@ -3920,12 +3920,12 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
3920
3920
|
reason: z.ZodOptional<z.ZodString>;
|
|
3921
3921
|
}, "strip", z.ZodTypeAny, {
|
|
3922
3922
|
valid: boolean;
|
|
3923
|
-
delegation_id?: string | undefined;
|
|
3924
3923
|
error?: {
|
|
3925
3924
|
code: string;
|
|
3926
3925
|
message: string;
|
|
3927
3926
|
details?: Record<string, unknown> | undefined;
|
|
3928
3927
|
} | undefined;
|
|
3928
|
+
delegation_id?: string | undefined;
|
|
3929
3929
|
delegation?: z.objectOutputType<{
|
|
3930
3930
|
id: z.ZodString;
|
|
3931
3931
|
issuerDid: z.ZodString;
|
|
@@ -4342,19 +4342,19 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4342
4342
|
agent_did: string;
|
|
4343
4343
|
issued_at: number;
|
|
4344
4344
|
created_at: number;
|
|
4345
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4345
4346
|
user_id?: string | undefined;
|
|
4346
4347
|
user_identifier?: string | undefined;
|
|
4347
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4348
4348
|
} | undefined;
|
|
4349
4349
|
reason?: string | undefined;
|
|
4350
4350
|
}, {
|
|
4351
4351
|
valid: boolean;
|
|
4352
|
-
delegation_id?: string | undefined;
|
|
4353
4352
|
error?: {
|
|
4354
4353
|
code: string;
|
|
4355
4354
|
message: string;
|
|
4356
4355
|
details?: Record<string, unknown> | undefined;
|
|
4357
4356
|
} | undefined;
|
|
4357
|
+
delegation_id?: string | undefined;
|
|
4358
4358
|
delegation?: z.objectInputType<{
|
|
4359
4359
|
id: z.ZodString;
|
|
4360
4360
|
issuerDid: z.ZodString;
|
|
@@ -4771,9 +4771,9 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4771
4771
|
agent_did: string;
|
|
4772
4772
|
issued_at: number;
|
|
4773
4773
|
created_at: number;
|
|
4774
|
+
constraints?: Record<string, unknown> | undefined;
|
|
4774
4775
|
user_id?: string | undefined;
|
|
4775
4776
|
user_identifier?: string | undefined;
|
|
4776
|
-
constraints?: Record<string, unknown> | undefined;
|
|
4777
4777
|
} | undefined;
|
|
4778
4778
|
reason?: string | undefined;
|
|
4779
4779
|
}>;
|
|
@@ -4791,12 +4791,12 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4791
4791
|
success: boolean;
|
|
4792
4792
|
data: {
|
|
4793
4793
|
valid: boolean;
|
|
4794
|
-
delegation_id?: string | undefined;
|
|
4795
4794
|
error?: {
|
|
4796
4795
|
code: string;
|
|
4797
4796
|
message: string;
|
|
4798
4797
|
details?: Record<string, unknown> | undefined;
|
|
4799
4798
|
} | undefined;
|
|
4799
|
+
delegation_id?: string | undefined;
|
|
4800
4800
|
delegation?: z.objectOutputType<{
|
|
4801
4801
|
id: z.ZodString;
|
|
4802
4802
|
issuerDid: z.ZodString;
|
|
@@ -5213,9 +5213,9 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5213
5213
|
agent_did: string;
|
|
5214
5214
|
issued_at: number;
|
|
5215
5215
|
created_at: number;
|
|
5216
|
+
constraints?: Record<string, unknown> | undefined;
|
|
5216
5217
|
user_id?: string | undefined;
|
|
5217
5218
|
user_identifier?: string | undefined;
|
|
5218
|
-
constraints?: Record<string, unknown> | undefined;
|
|
5219
5219
|
} | undefined;
|
|
5220
5220
|
reason?: string | undefined;
|
|
5221
5221
|
};
|
|
@@ -5227,12 +5227,12 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5227
5227
|
success: boolean;
|
|
5228
5228
|
data: {
|
|
5229
5229
|
valid: boolean;
|
|
5230
|
-
delegation_id?: string | undefined;
|
|
5231
5230
|
error?: {
|
|
5232
5231
|
code: string;
|
|
5233
5232
|
message: string;
|
|
5234
5233
|
details?: Record<string, unknown> | undefined;
|
|
5235
5234
|
} | undefined;
|
|
5235
|
+
delegation_id?: string | undefined;
|
|
5236
5236
|
delegation?: z.objectInputType<{
|
|
5237
5237
|
id: z.ZodString;
|
|
5238
5238
|
issuerDid: z.ZodString;
|
|
@@ -5649,9 +5649,9 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5649
5649
|
agent_did: string;
|
|
5650
5650
|
issued_at: number;
|
|
5651
5651
|
created_at: number;
|
|
5652
|
+
constraints?: Record<string, unknown> | undefined;
|
|
5652
5653
|
user_id?: string | undefined;
|
|
5653
5654
|
user_identifier?: string | undefined;
|
|
5654
|
-
constraints?: Record<string, unknown> | undefined;
|
|
5655
5655
|
} | undefined;
|
|
5656
5656
|
reason?: string | undefined;
|
|
5657
5657
|
};
|
|
@@ -5960,8 +5960,8 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
5960
5960
|
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
5961
5961
|
}, "strip", z.ZodTypeAny, {
|
|
5962
5962
|
status: "active" | "revoked" | "expired";
|
|
5963
|
-
delegation_id: string;
|
|
5964
5963
|
scopes: string[];
|
|
5964
|
+
delegation_id: string;
|
|
5965
5965
|
agent_did: string;
|
|
5966
5966
|
issued_at: string;
|
|
5967
5967
|
created_at: string;
|
|
@@ -5973,8 +5973,8 @@ export declare const createDelegationResponseSchema: z.ZodObject<{
|
|
|
5973
5973
|
expires_in?: number | undefined;
|
|
5974
5974
|
}, {
|
|
5975
5975
|
status: "active" | "revoked" | "expired";
|
|
5976
|
-
delegation_id: string;
|
|
5977
5976
|
scopes: string[];
|
|
5977
|
+
delegation_id: string;
|
|
5978
5978
|
agent_did: string;
|
|
5979
5979
|
issued_at: string;
|
|
5980
5980
|
created_at: string;
|
|
@@ -6005,8 +6005,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6005
6005
|
expires_in: z.ZodOptional<z.ZodNumber>;
|
|
6006
6006
|
}, "strip", z.ZodTypeAny, {
|
|
6007
6007
|
status: "active" | "revoked" | "expired";
|
|
6008
|
-
delegation_id: string;
|
|
6009
6008
|
scopes: string[];
|
|
6009
|
+
delegation_id: string;
|
|
6010
6010
|
agent_did: string;
|
|
6011
6011
|
issued_at: string;
|
|
6012
6012
|
created_at: string;
|
|
@@ -6018,8 +6018,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6018
6018
|
expires_in?: number | undefined;
|
|
6019
6019
|
}, {
|
|
6020
6020
|
status: "active" | "revoked" | "expired";
|
|
6021
|
-
delegation_id: string;
|
|
6022
6021
|
scopes: string[];
|
|
6022
|
+
delegation_id: string;
|
|
6023
6023
|
agent_did: string;
|
|
6024
6024
|
issued_at: string;
|
|
6025
6025
|
created_at: string;
|
|
@@ -6044,8 +6044,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6044
6044
|
success: boolean;
|
|
6045
6045
|
data: {
|
|
6046
6046
|
status: "active" | "revoked" | "expired";
|
|
6047
|
-
delegation_id: string;
|
|
6048
6047
|
scopes: string[];
|
|
6048
|
+
delegation_id: string;
|
|
6049
6049
|
agent_did: string;
|
|
6050
6050
|
issued_at: string;
|
|
6051
6051
|
created_at: string;
|
|
@@ -6064,8 +6064,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6064
6064
|
success: boolean;
|
|
6065
6065
|
data: {
|
|
6066
6066
|
status: "active" | "revoked" | "expired";
|
|
6067
|
-
delegation_id: string;
|
|
6068
6067
|
scopes: string[];
|
|
6068
|
+
delegation_id: string;
|
|
6069
6069
|
agent_did: string;
|
|
6070
6070
|
issued_at: string;
|
|
6071
6071
|
created_at: string;
|
|
@@ -6099,12 +6099,12 @@ export declare const revokeDelegationResponseSchema: z.ZodObject<{
|
|
|
6099
6099
|
revoked: z.ZodBoolean;
|
|
6100
6100
|
revoked_at: z.ZodNumber;
|
|
6101
6101
|
}, "strip", z.ZodTypeAny, {
|
|
6102
|
-
delegation_id: string;
|
|
6103
6102
|
revoked: boolean;
|
|
6103
|
+
delegation_id: string;
|
|
6104
6104
|
revoked_at: number;
|
|
6105
6105
|
}, {
|
|
6106
|
-
delegation_id: string;
|
|
6107
6106
|
revoked: boolean;
|
|
6107
|
+
delegation_id: string;
|
|
6108
6108
|
revoked_at: number;
|
|
6109
6109
|
}>;
|
|
6110
6110
|
/**
|
|
@@ -6117,12 +6117,12 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6117
6117
|
revoked: z.ZodBoolean;
|
|
6118
6118
|
revoked_at: z.ZodNumber;
|
|
6119
6119
|
}, "strip", z.ZodTypeAny, {
|
|
6120
|
-
delegation_id: string;
|
|
6121
6120
|
revoked: boolean;
|
|
6121
|
+
delegation_id: string;
|
|
6122
6122
|
revoked_at: number;
|
|
6123
6123
|
}, {
|
|
6124
|
-
delegation_id: string;
|
|
6125
6124
|
revoked: boolean;
|
|
6125
|
+
delegation_id: string;
|
|
6126
6126
|
revoked_at: number;
|
|
6127
6127
|
}>;
|
|
6128
6128
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
@@ -6138,8 +6138,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6138
6138
|
}, "strip", z.ZodTypeAny, {
|
|
6139
6139
|
success: boolean;
|
|
6140
6140
|
data: {
|
|
6141
|
-
delegation_id: string;
|
|
6142
6141
|
revoked: boolean;
|
|
6142
|
+
delegation_id: string;
|
|
6143
6143
|
revoked_at: number;
|
|
6144
6144
|
};
|
|
6145
6145
|
metadata?: {
|
|
@@ -6149,8 +6149,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6149
6149
|
}, {
|
|
6150
6150
|
success: boolean;
|
|
6151
6151
|
data: {
|
|
6152
|
-
delegation_id: string;
|
|
6153
6152
|
revoked: boolean;
|
|
6153
|
+
delegation_id: string;
|
|
6154
6154
|
revoked_at: number;
|
|
6155
6155
|
};
|
|
6156
6156
|
metadata?: {
|
|
@@ -6202,6 +6202,7 @@ export declare const sessionClientIdentitySchema: z.ZodObject<{
|
|
|
6202
6202
|
export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
6203
6203
|
session_id: z.ZodString;
|
|
6204
6204
|
agent_did: z.ZodString;
|
|
6205
|
+
agent_name: z.ZodOptional<z.ZodString>;
|
|
6205
6206
|
project_id: z.ZodString;
|
|
6206
6207
|
created_at: z.ZodNumber;
|
|
6207
6208
|
client_info: z.ZodObject<{
|
|
@@ -6250,6 +6251,7 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6250
6251
|
vendor?: string | undefined;
|
|
6251
6252
|
};
|
|
6252
6253
|
project_id: string;
|
|
6254
|
+
agent_name?: string | undefined;
|
|
6253
6255
|
client_identity?: {
|
|
6254
6256
|
did: string;
|
|
6255
6257
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
@@ -6269,6 +6271,7 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6269
6271
|
vendor?: string | undefined;
|
|
6270
6272
|
};
|
|
6271
6273
|
project_id: string;
|
|
6274
|
+
agent_name?: string | undefined;
|
|
6272
6275
|
client_identity?: {
|
|
6273
6276
|
did: string;
|
|
6274
6277
|
source: "knowthat.ai" | "kta-lookup" | "generated";
|
|
@@ -299,6 +299,7 @@ exports.sessionClientIdentitySchema = zod_1.z.object({
|
|
|
299
299
|
exports.registerSessionRequestSchema = zod_1.z.object({
|
|
300
300
|
session_id: zod_1.z.string().min(1, "Session ID is required"),
|
|
301
301
|
agent_did: zod_1.z.string().min(1, "Agent DID is required"),
|
|
302
|
+
agent_name: zod_1.z.string().optional(), // Human-readable agent name for dashboard display
|
|
302
303
|
project_id: zod_1.z.string().min(1, "Project ID is required"),
|
|
303
304
|
created_at: zod_1.z.number().int().positive("Created at must be a positive timestamp"),
|
|
304
305
|
client_info: exports.sessionClientInfoSchema,
|
|
@@ -293,6 +293,8 @@ export interface RegisterSessionRequest {
|
|
|
293
293
|
session_id: string;
|
|
294
294
|
/** Agent's DID */
|
|
295
295
|
agent_did: string;
|
|
296
|
+
/** Human-readable agent name for dashboard display (optional) */
|
|
297
|
+
agent_name?: string;
|
|
296
298
|
/** AgentShield project ID */
|
|
297
299
|
project_id: string;
|
|
298
300
|
/** Unix timestamp in milliseconds when session was created */
|