@kya-os/contracts 1.6.2 → 1.6.3-canary.0
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/admin-schemas.d.ts +2 -2
- package/dist/agentshield-api/schemas.d.ts +100 -74
- package/dist/audit/index.d.ts +24 -24
- package/dist/config/identity.d.ts +6 -6
- package/dist/consent/schemas.d.ts +78 -78
- package/dist/dashboard-config/index.d.ts +2 -2
- package/dist/dashboard-config/index.js +4 -1
- package/dist/dashboard-config/schemas.d.ts +6595 -3160
- package/dist/dashboard-config/schemas.js +23 -1
- package/dist/dashboard-config/types.d.ts +28 -1
- package/dist/handshake.d.ts +14 -14
- package/dist/tool-protection/index.d.ts +6 -6
- package/dist/well-known/index.d.ts +2 -2
- package/package.json +5 -1
|
@@ -29,8 +29,8 @@ export declare const clearCacheResponseSchema: z.ZodObject<{
|
|
|
29
29
|
had_old_value: z.ZodBoolean;
|
|
30
30
|
cleared: z.ZodBoolean;
|
|
31
31
|
}, "strip", z.ZodTypeAny, {
|
|
32
|
-
message: string;
|
|
33
32
|
agent_did: string;
|
|
33
|
+
message: string;
|
|
34
34
|
project_id: string | null;
|
|
35
35
|
cache_key: string;
|
|
36
36
|
old_cache_key: string | null;
|
|
@@ -38,8 +38,8 @@ export declare const clearCacheResponseSchema: z.ZodObject<{
|
|
|
38
38
|
had_old_value: boolean;
|
|
39
39
|
cleared: boolean;
|
|
40
40
|
}, {
|
|
41
|
-
message: string;
|
|
42
41
|
agent_did: string;
|
|
42
|
+
message: string;
|
|
43
43
|
project_id: string | null;
|
|
44
44
|
cache_key: string;
|
|
45
45
|
old_cache_key: string | null;
|
|
@@ -33,11 +33,11 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
|
|
|
33
33
|
requestId: z.ZodString;
|
|
34
34
|
timestamp: z.ZodString;
|
|
35
35
|
}, "strip", z.ZodTypeAny, {
|
|
36
|
-
requestId: string;
|
|
37
36
|
timestamp: string;
|
|
38
|
-
}, {
|
|
39
37
|
requestId: string;
|
|
38
|
+
}, {
|
|
40
39
|
timestamp: string;
|
|
40
|
+
requestId: string;
|
|
41
41
|
}>>;
|
|
42
42
|
}, "strip", z.ZodTypeAny, z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
43
43
|
success: z.ZodBoolean;
|
|
@@ -46,26 +46,52 @@ export declare const agentShieldAPIResponseSchema: <T extends z.ZodTypeAny>(data
|
|
|
46
46
|
requestId: z.ZodString;
|
|
47
47
|
timestamp: z.ZodString;
|
|
48
48
|
}, "strip", z.ZodTypeAny, {
|
|
49
|
-
requestId: string;
|
|
50
49
|
timestamp: string;
|
|
51
|
-
}, {
|
|
52
50
|
requestId: string;
|
|
51
|
+
}, {
|
|
53
52
|
timestamp: string;
|
|
53
|
+
requestId: string;
|
|
54
54
|
}>>;
|
|
55
|
-
}>, any> extends infer T_1 ? { [k in keyof T_1]:
|
|
55
|
+
}>, any> extends infer T_1 ? { [k in keyof T_1]: z.objectUtil.addQuestionMarks<z.baseObjectOutputType<{
|
|
56
56
|
success: z.ZodBoolean;
|
|
57
57
|
data: T;
|
|
58
58
|
metadata: z.ZodOptional<z.ZodObject<{
|
|
59
59
|
requestId: z.ZodString;
|
|
60
60
|
timestamp: z.ZodString;
|
|
61
61
|
}, "strip", z.ZodTypeAny, {
|
|
62
|
+
timestamp: string;
|
|
63
|
+
requestId: string;
|
|
64
|
+
}, {
|
|
65
|
+
timestamp: string;
|
|
62
66
|
requestId: string;
|
|
67
|
+
}>>;
|
|
68
|
+
}>, any>[k]; } : never, z.baseObjectInputType<{
|
|
69
|
+
success: z.ZodBoolean;
|
|
70
|
+
data: T;
|
|
71
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
72
|
+
requestId: z.ZodString;
|
|
73
|
+
timestamp: z.ZodString;
|
|
74
|
+
}, "strip", z.ZodTypeAny, {
|
|
63
75
|
timestamp: string;
|
|
76
|
+
requestId: string;
|
|
64
77
|
}, {
|
|
78
|
+
timestamp: string;
|
|
65
79
|
requestId: string;
|
|
80
|
+
}>>;
|
|
81
|
+
}> extends infer T_2 ? { [k_1 in keyof T_2]: z.baseObjectInputType<{
|
|
82
|
+
success: z.ZodBoolean;
|
|
83
|
+
data: T;
|
|
84
|
+
metadata: z.ZodOptional<z.ZodObject<{
|
|
85
|
+
requestId: z.ZodString;
|
|
86
|
+
timestamp: z.ZodString;
|
|
87
|
+
}, "strip", z.ZodTypeAny, {
|
|
66
88
|
timestamp: string;
|
|
89
|
+
requestId: string;
|
|
90
|
+
}, {
|
|
91
|
+
timestamp: string;
|
|
92
|
+
requestId: string;
|
|
67
93
|
}>>;
|
|
68
|
-
}>
|
|
94
|
+
}>[k_1]; } : never>;
|
|
69
95
|
/**
|
|
70
96
|
* Proof submission request schema
|
|
71
97
|
*/
|
|
@@ -89,57 +115,57 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
89
115
|
}, "strip", z.ZodTypeAny, {
|
|
90
116
|
did: string;
|
|
91
117
|
kid: string;
|
|
92
|
-
ts: number;
|
|
93
|
-
nonce: string;
|
|
94
|
-
audience: string;
|
|
95
118
|
sessionId: string;
|
|
119
|
+
audience: string;
|
|
96
120
|
requestHash: string;
|
|
97
121
|
responseHash: string;
|
|
122
|
+
nonce: string;
|
|
123
|
+
ts: number;
|
|
98
124
|
scopeId?: string | undefined;
|
|
99
|
-
delegationRef?: string | undefined;
|
|
100
125
|
clientDid?: string | undefined;
|
|
126
|
+
delegationRef?: string | undefined;
|
|
101
127
|
}, {
|
|
102
128
|
did: string;
|
|
103
129
|
kid: string;
|
|
104
|
-
ts: number;
|
|
105
|
-
nonce: string;
|
|
106
|
-
audience: string;
|
|
107
130
|
sessionId: string;
|
|
131
|
+
audience: string;
|
|
108
132
|
requestHash: string;
|
|
109
133
|
responseHash: string;
|
|
134
|
+
nonce: string;
|
|
135
|
+
ts: number;
|
|
110
136
|
scopeId?: string | undefined;
|
|
111
|
-
delegationRef?: string | undefined;
|
|
112
137
|
clientDid?: string | undefined;
|
|
138
|
+
delegationRef?: string | undefined;
|
|
113
139
|
}>;
|
|
114
140
|
}, "strip", z.ZodTypeAny, {
|
|
115
141
|
jws: string;
|
|
116
142
|
meta: {
|
|
117
143
|
did: string;
|
|
118
144
|
kid: string;
|
|
119
|
-
ts: number;
|
|
120
|
-
nonce: string;
|
|
121
|
-
audience: string;
|
|
122
145
|
sessionId: string;
|
|
146
|
+
audience: string;
|
|
123
147
|
requestHash: string;
|
|
124
148
|
responseHash: string;
|
|
149
|
+
nonce: string;
|
|
150
|
+
ts: number;
|
|
125
151
|
scopeId?: string | undefined;
|
|
126
|
-
delegationRef?: string | undefined;
|
|
127
152
|
clientDid?: string | undefined;
|
|
153
|
+
delegationRef?: string | undefined;
|
|
128
154
|
};
|
|
129
155
|
}, {
|
|
130
156
|
jws: string;
|
|
131
157
|
meta: {
|
|
132
158
|
did: string;
|
|
133
159
|
kid: string;
|
|
134
|
-
ts: number;
|
|
135
|
-
nonce: string;
|
|
136
|
-
audience: string;
|
|
137
160
|
sessionId: string;
|
|
161
|
+
audience: string;
|
|
138
162
|
requestHash: string;
|
|
139
163
|
responseHash: string;
|
|
164
|
+
nonce: string;
|
|
165
|
+
ts: number;
|
|
140
166
|
scopeId?: string | undefined;
|
|
141
|
-
delegationRef?: string | undefined;
|
|
142
167
|
clientDid?: string | undefined;
|
|
168
|
+
delegationRef?: string | undefined;
|
|
143
169
|
};
|
|
144
170
|
}>, "many">;
|
|
145
171
|
context: z.ZodOptional<z.ZodObject<{
|
|
@@ -185,33 +211,33 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
185
211
|
identifier: string;
|
|
186
212
|
}>>;
|
|
187
213
|
}, "strip", z.ZodTypeAny, {
|
|
188
|
-
sessionId: string;
|
|
189
214
|
scopes: string[];
|
|
190
|
-
|
|
215
|
+
sessionId: string;
|
|
191
216
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
217
|
+
timestamp: number;
|
|
192
218
|
agentDid: string;
|
|
193
219
|
targetTools: string[];
|
|
194
220
|
projectId: string;
|
|
195
221
|
userDid?: string | undefined;
|
|
196
222
|
delegationId?: string | undefined;
|
|
197
223
|
termsAccepted?: boolean | undefined;
|
|
198
|
-
credentialStatus?: "
|
|
224
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
199
225
|
oauthIdentity?: {
|
|
200
226
|
provider: string;
|
|
201
227
|
identifier: string;
|
|
202
228
|
} | undefined;
|
|
203
229
|
}, {
|
|
204
|
-
sessionId: string;
|
|
205
230
|
scopes: string[];
|
|
206
|
-
|
|
231
|
+
sessionId: string;
|
|
207
232
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
233
|
+
timestamp: number;
|
|
208
234
|
agentDid: string;
|
|
209
235
|
targetTools: string[];
|
|
210
236
|
projectId: string;
|
|
211
237
|
userDid?: string | undefined;
|
|
212
238
|
delegationId?: string | undefined;
|
|
213
239
|
termsAccepted?: boolean | undefined;
|
|
214
|
-
credentialStatus?: "
|
|
240
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
215
241
|
oauthIdentity?: {
|
|
216
242
|
provider: string;
|
|
217
243
|
identifier: string;
|
|
@@ -227,17 +253,17 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
227
253
|
userIdentifier?: string | undefined;
|
|
228
254
|
}[] | undefined;
|
|
229
255
|
consentEvents?: {
|
|
230
|
-
sessionId: string;
|
|
231
256
|
scopes: string[];
|
|
232
|
-
|
|
257
|
+
sessionId: string;
|
|
233
258
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
259
|
+
timestamp: number;
|
|
234
260
|
agentDid: string;
|
|
235
261
|
targetTools: string[];
|
|
236
262
|
projectId: string;
|
|
237
263
|
userDid?: string | undefined;
|
|
238
264
|
delegationId?: string | undefined;
|
|
239
265
|
termsAccepted?: boolean | undefined;
|
|
240
|
-
credentialStatus?: "
|
|
266
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
241
267
|
oauthIdentity?: {
|
|
242
268
|
provider: string;
|
|
243
269
|
identifier: string;
|
|
@@ -253,17 +279,17 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
253
279
|
userIdentifier?: string | undefined;
|
|
254
280
|
}[] | undefined;
|
|
255
281
|
consentEvents?: {
|
|
256
|
-
sessionId: string;
|
|
257
282
|
scopes: string[];
|
|
258
|
-
|
|
283
|
+
sessionId: string;
|
|
259
284
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
285
|
+
timestamp: number;
|
|
260
286
|
agentDid: string;
|
|
261
287
|
targetTools: string[];
|
|
262
288
|
projectId: string;
|
|
263
289
|
userDid?: string | undefined;
|
|
264
290
|
delegationId?: string | undefined;
|
|
265
291
|
termsAccepted?: boolean | undefined;
|
|
266
|
-
credentialStatus?: "
|
|
292
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
267
293
|
oauthIdentity?: {
|
|
268
294
|
provider: string;
|
|
269
295
|
identifier: string;
|
|
@@ -278,15 +304,15 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
278
304
|
meta: {
|
|
279
305
|
did: string;
|
|
280
306
|
kid: string;
|
|
281
|
-
ts: number;
|
|
282
|
-
nonce: string;
|
|
283
|
-
audience: string;
|
|
284
307
|
sessionId: string;
|
|
308
|
+
audience: string;
|
|
285
309
|
requestHash: string;
|
|
286
310
|
responseHash: string;
|
|
311
|
+
nonce: string;
|
|
312
|
+
ts: number;
|
|
287
313
|
scopeId?: string | undefined;
|
|
288
|
-
delegationRef?: string | undefined;
|
|
289
314
|
clientDid?: string | undefined;
|
|
315
|
+
delegationRef?: string | undefined;
|
|
290
316
|
};
|
|
291
317
|
}[];
|
|
292
318
|
delegation_id?: string | null | undefined;
|
|
@@ -299,17 +325,17 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
299
325
|
userIdentifier?: string | undefined;
|
|
300
326
|
}[] | undefined;
|
|
301
327
|
consentEvents?: {
|
|
302
|
-
sessionId: string;
|
|
303
328
|
scopes: string[];
|
|
304
|
-
|
|
329
|
+
sessionId: string;
|
|
305
330
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
331
|
+
timestamp: number;
|
|
306
332
|
agentDid: string;
|
|
307
333
|
targetTools: string[];
|
|
308
334
|
projectId: string;
|
|
309
335
|
userDid?: string | undefined;
|
|
310
336
|
delegationId?: string | undefined;
|
|
311
337
|
termsAccepted?: boolean | undefined;
|
|
312
|
-
credentialStatus?: "
|
|
338
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
313
339
|
oauthIdentity?: {
|
|
314
340
|
provider: string;
|
|
315
341
|
identifier: string;
|
|
@@ -324,15 +350,15 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
324
350
|
meta: {
|
|
325
351
|
did: string;
|
|
326
352
|
kid: string;
|
|
327
|
-
ts: number;
|
|
328
|
-
nonce: string;
|
|
329
|
-
audience: string;
|
|
330
353
|
sessionId: string;
|
|
354
|
+
audience: string;
|
|
331
355
|
requestHash: string;
|
|
332
356
|
responseHash: string;
|
|
357
|
+
nonce: string;
|
|
358
|
+
ts: number;
|
|
333
359
|
scopeId?: string | undefined;
|
|
334
|
-
delegationRef?: string | undefined;
|
|
335
360
|
clientDid?: string | undefined;
|
|
361
|
+
delegationRef?: string | undefined;
|
|
336
362
|
};
|
|
337
363
|
}[];
|
|
338
364
|
delegation_id?: string | null | undefined;
|
|
@@ -345,17 +371,17 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
|
|
|
345
371
|
userIdentifier?: string | undefined;
|
|
346
372
|
}[] | undefined;
|
|
347
373
|
consentEvents?: {
|
|
348
|
-
sessionId: string;
|
|
349
374
|
scopes: string[];
|
|
350
|
-
|
|
375
|
+
sessionId: string;
|
|
351
376
|
eventType: "consent:page_viewed" | "consent:approved" | "consent:delegation_created" | "consent:credential_required";
|
|
377
|
+
timestamp: number;
|
|
352
378
|
agentDid: string;
|
|
353
379
|
targetTools: string[];
|
|
354
380
|
projectId: string;
|
|
355
381
|
userDid?: string | undefined;
|
|
356
382
|
delegationId?: string | undefined;
|
|
357
383
|
termsAccepted?: boolean | undefined;
|
|
358
|
-
credentialStatus?: "
|
|
384
|
+
credentialStatus?: "required" | "present" | "obtained" | undefined;
|
|
359
385
|
oauthIdentity?: {
|
|
360
386
|
provider: string;
|
|
361
387
|
identifier: string;
|
|
@@ -4778,11 +4804,11 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
4778
4804
|
requestId: z.ZodString;
|
|
4779
4805
|
timestamp: z.ZodString;
|
|
4780
4806
|
}, "strip", z.ZodTypeAny, {
|
|
4781
|
-
requestId: string;
|
|
4782
4807
|
timestamp: string;
|
|
4783
|
-
}, {
|
|
4784
4808
|
requestId: string;
|
|
4809
|
+
}, {
|
|
4785
4810
|
timestamp: string;
|
|
4811
|
+
requestId: string;
|
|
4786
4812
|
}>>;
|
|
4787
4813
|
}, "strip", z.ZodTypeAny, {
|
|
4788
4814
|
success: boolean;
|
|
@@ -5217,8 +5243,8 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5217
5243
|
reason?: string | undefined;
|
|
5218
5244
|
};
|
|
5219
5245
|
metadata?: {
|
|
5220
|
-
requestId: string;
|
|
5221
5246
|
timestamp: string;
|
|
5247
|
+
requestId: string;
|
|
5222
5248
|
} | undefined;
|
|
5223
5249
|
}, {
|
|
5224
5250
|
success: boolean;
|
|
@@ -5653,8 +5679,8 @@ export declare const verifyDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
5653
5679
|
reason?: string | undefined;
|
|
5654
5680
|
};
|
|
5655
5681
|
metadata?: {
|
|
5656
|
-
requestId: string;
|
|
5657
5682
|
timestamp: string;
|
|
5683
|
+
requestId: string;
|
|
5658
5684
|
} | undefined;
|
|
5659
5685
|
}>;
|
|
5660
5686
|
/**
|
|
@@ -5827,11 +5853,11 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5827
5853
|
requestId: z.ZodString;
|
|
5828
5854
|
timestamp: z.ZodString;
|
|
5829
5855
|
}, "strip", z.ZodTypeAny, {
|
|
5830
|
-
requestId: string;
|
|
5831
5856
|
timestamp: string;
|
|
5832
|
-
}, {
|
|
5833
5857
|
requestId: string;
|
|
5858
|
+
}, {
|
|
5834
5859
|
timestamp: string;
|
|
5860
|
+
requestId: string;
|
|
5835
5861
|
}>>;
|
|
5836
5862
|
}, "strip", z.ZodTypeAny, {
|
|
5837
5863
|
success: boolean;
|
|
@@ -5853,8 +5879,8 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5853
5879
|
} | undefined;
|
|
5854
5880
|
};
|
|
5855
5881
|
metadata?: {
|
|
5856
|
-
requestId: string;
|
|
5857
5882
|
timestamp: string;
|
|
5883
|
+
requestId: string;
|
|
5858
5884
|
} | undefined;
|
|
5859
5885
|
}, {
|
|
5860
5886
|
success: boolean;
|
|
@@ -5876,8 +5902,8 @@ export declare const toolProtectionConfigAPIResponseSchema: z.ZodObject<{
|
|
|
5876
5902
|
} | undefined;
|
|
5877
5903
|
};
|
|
5878
5904
|
metadata?: {
|
|
5879
|
-
requestId: string;
|
|
5880
5905
|
timestamp: string;
|
|
5906
|
+
requestId: string;
|
|
5881
5907
|
} | undefined;
|
|
5882
5908
|
}>;
|
|
5883
5909
|
/**
|
|
@@ -6014,11 +6040,11 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6014
6040
|
requestId: z.ZodString;
|
|
6015
6041
|
timestamp: z.ZodString;
|
|
6016
6042
|
}, "strip", z.ZodTypeAny, {
|
|
6017
|
-
requestId: string;
|
|
6018
6043
|
timestamp: string;
|
|
6019
|
-
}, {
|
|
6020
6044
|
requestId: string;
|
|
6045
|
+
}, {
|
|
6021
6046
|
timestamp: string;
|
|
6047
|
+
requestId: string;
|
|
6022
6048
|
}>>;
|
|
6023
6049
|
}, "strip", z.ZodTypeAny, {
|
|
6024
6050
|
success: boolean;
|
|
@@ -6034,8 +6060,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6034
6060
|
expires_at?: string | null | undefined;
|
|
6035
6061
|
};
|
|
6036
6062
|
metadata?: {
|
|
6037
|
-
requestId: string;
|
|
6038
6063
|
timestamp: string;
|
|
6064
|
+
requestId: string;
|
|
6039
6065
|
} | undefined;
|
|
6040
6066
|
}, {
|
|
6041
6067
|
success: boolean;
|
|
@@ -6051,8 +6077,8 @@ export declare const createDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6051
6077
|
expires_at?: string | null | undefined;
|
|
6052
6078
|
};
|
|
6053
6079
|
metadata?: {
|
|
6054
|
-
requestId: string;
|
|
6055
6080
|
timestamp: string;
|
|
6081
|
+
requestId: string;
|
|
6056
6082
|
} | undefined;
|
|
6057
6083
|
}>;
|
|
6058
6084
|
/**
|
|
@@ -6103,11 +6129,11 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6103
6129
|
requestId: z.ZodString;
|
|
6104
6130
|
timestamp: z.ZodString;
|
|
6105
6131
|
}, "strip", z.ZodTypeAny, {
|
|
6106
|
-
requestId: string;
|
|
6107
6132
|
timestamp: string;
|
|
6108
|
-
}, {
|
|
6109
6133
|
requestId: string;
|
|
6134
|
+
}, {
|
|
6110
6135
|
timestamp: string;
|
|
6136
|
+
requestId: string;
|
|
6111
6137
|
}>>;
|
|
6112
6138
|
}, "strip", z.ZodTypeAny, {
|
|
6113
6139
|
success: boolean;
|
|
@@ -6117,8 +6143,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6117
6143
|
revoked_at: number;
|
|
6118
6144
|
};
|
|
6119
6145
|
metadata?: {
|
|
6120
|
-
requestId: string;
|
|
6121
6146
|
timestamp: string;
|
|
6147
|
+
requestId: string;
|
|
6122
6148
|
} | undefined;
|
|
6123
6149
|
}, {
|
|
6124
6150
|
success: boolean;
|
|
@@ -6128,8 +6154,8 @@ export declare const revokeDelegationAPIResponseSchema: z.ZodObject<{
|
|
|
6128
6154
|
revoked_at: number;
|
|
6129
6155
|
};
|
|
6130
6156
|
metadata?: {
|
|
6131
|
-
requestId: string;
|
|
6132
6157
|
timestamp: string;
|
|
6158
|
+
requestId: string;
|
|
6133
6159
|
} | undefined;
|
|
6134
6160
|
}>;
|
|
6135
6161
|
/**
|
|
@@ -6144,15 +6170,15 @@ export declare const sessionClientInfoSchema: z.ZodObject<{
|
|
|
6144
6170
|
}, "strip", z.ZodTypeAny, {
|
|
6145
6171
|
name: string;
|
|
6146
6172
|
version?: string | undefined;
|
|
6147
|
-
protocol_version?: string | undefined;
|
|
6148
6173
|
platform?: string | undefined;
|
|
6149
6174
|
vendor?: string | undefined;
|
|
6175
|
+
protocol_version?: string | undefined;
|
|
6150
6176
|
}, {
|
|
6151
6177
|
name: string;
|
|
6152
6178
|
version?: string | undefined;
|
|
6153
|
-
protocol_version?: string | undefined;
|
|
6154
6179
|
platform?: string | undefined;
|
|
6155
6180
|
vendor?: string | undefined;
|
|
6181
|
+
protocol_version?: string | undefined;
|
|
6156
6182
|
}>;
|
|
6157
6183
|
/**
|
|
6158
6184
|
* Session client identity schema
|
|
@@ -6187,15 +6213,15 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6187
6213
|
}, "strip", z.ZodTypeAny, {
|
|
6188
6214
|
name: string;
|
|
6189
6215
|
version?: string | undefined;
|
|
6190
|
-
protocol_version?: string | undefined;
|
|
6191
6216
|
platform?: string | undefined;
|
|
6192
6217
|
vendor?: string | undefined;
|
|
6218
|
+
protocol_version?: string | undefined;
|
|
6193
6219
|
}, {
|
|
6194
6220
|
name: string;
|
|
6195
6221
|
version?: string | undefined;
|
|
6196
|
-
protocol_version?: string | undefined;
|
|
6197
6222
|
platform?: string | undefined;
|
|
6198
6223
|
vendor?: string | undefined;
|
|
6224
|
+
protocol_version?: string | undefined;
|
|
6199
6225
|
}>;
|
|
6200
6226
|
client_identity: z.ZodOptional<z.ZodObject<{
|
|
6201
6227
|
did: z.ZodString;
|
|
@@ -6219,9 +6245,9 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6219
6245
|
client_info: {
|
|
6220
6246
|
name: string;
|
|
6221
6247
|
version?: string | undefined;
|
|
6222
|
-
protocol_version?: string | undefined;
|
|
6223
6248
|
platform?: string | undefined;
|
|
6224
6249
|
vendor?: string | undefined;
|
|
6250
|
+
protocol_version?: string | undefined;
|
|
6225
6251
|
};
|
|
6226
6252
|
project_id: string;
|
|
6227
6253
|
client_identity?: {
|
|
@@ -6238,9 +6264,9 @@ export declare const registerSessionRequestSchema: z.ZodObject<{
|
|
|
6238
6264
|
client_info: {
|
|
6239
6265
|
name: string;
|
|
6240
6266
|
version?: string | undefined;
|
|
6241
|
-
protocol_version?: string | undefined;
|
|
6242
6267
|
platform?: string | undefined;
|
|
6243
6268
|
vendor?: string | undefined;
|
|
6269
|
+
protocol_version?: string | undefined;
|
|
6244
6270
|
};
|
|
6245
6271
|
project_id: string;
|
|
6246
6272
|
client_identity?: {
|
|
@@ -6289,11 +6315,11 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
|
|
|
6289
6315
|
requestId: z.ZodString;
|
|
6290
6316
|
timestamp: z.ZodString;
|
|
6291
6317
|
}, "strip", z.ZodTypeAny, {
|
|
6292
|
-
requestId: string;
|
|
6293
6318
|
timestamp: string;
|
|
6294
|
-
}, {
|
|
6295
6319
|
requestId: string;
|
|
6320
|
+
}, {
|
|
6296
6321
|
timestamp: string;
|
|
6322
|
+
requestId: string;
|
|
6297
6323
|
}>>;
|
|
6298
6324
|
}, "strip", z.ZodTypeAny, {
|
|
6299
6325
|
success: boolean;
|
|
@@ -6303,8 +6329,8 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
|
|
|
6303
6329
|
registered: boolean;
|
|
6304
6330
|
};
|
|
6305
6331
|
metadata?: {
|
|
6306
|
-
requestId: string;
|
|
6307
6332
|
timestamp: string;
|
|
6333
|
+
requestId: string;
|
|
6308
6334
|
} | undefined;
|
|
6309
6335
|
}, {
|
|
6310
6336
|
success: boolean;
|
|
@@ -6314,7 +6340,7 @@ export declare const registerSessionAPIResponseSchema: z.ZodObject<{
|
|
|
6314
6340
|
registered: boolean;
|
|
6315
6341
|
};
|
|
6316
6342
|
metadata?: {
|
|
6317
|
-
requestId: string;
|
|
6318
6343
|
timestamp: string;
|
|
6344
|
+
requestId: string;
|
|
6319
6345
|
} | undefined;
|
|
6320
6346
|
}>;
|
package/dist/audit/index.d.ts
CHANGED
|
@@ -65,38 +65,38 @@ export declare const AuditContextSchema: z.ZodObject<{
|
|
|
65
65
|
*/
|
|
66
66
|
scopeId: z.ZodOptional<z.ZodString>;
|
|
67
67
|
}, "strip", z.ZodTypeAny, {
|
|
68
|
-
requestHash: string;
|
|
69
|
-
responseHash: string;
|
|
70
|
-
session: {
|
|
71
|
-
audience: string;
|
|
72
|
-
sessionId: string;
|
|
73
|
-
} & {
|
|
74
|
-
[k: string]: unknown;
|
|
75
|
-
};
|
|
76
|
-
verified: "yes" | "no";
|
|
77
68
|
identity: {
|
|
78
69
|
did: string;
|
|
79
70
|
kid: string;
|
|
80
71
|
} & {
|
|
81
72
|
[k: string]: unknown;
|
|
82
73
|
};
|
|
83
|
-
scopeId?: string | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
requestHash: string;
|
|
86
|
-
responseHash: string;
|
|
87
74
|
session: {
|
|
88
|
-
audience: string;
|
|
89
75
|
sessionId: string;
|
|
76
|
+
audience: string;
|
|
90
77
|
} & {
|
|
91
78
|
[k: string]: unknown;
|
|
92
79
|
};
|
|
80
|
+
requestHash: string;
|
|
81
|
+
responseHash: string;
|
|
93
82
|
verified: "yes" | "no";
|
|
83
|
+
scopeId?: string | undefined;
|
|
84
|
+
}, {
|
|
94
85
|
identity: {
|
|
95
86
|
did: string;
|
|
96
87
|
kid: string;
|
|
97
88
|
} & {
|
|
98
89
|
[k: string]: unknown;
|
|
99
90
|
};
|
|
91
|
+
session: {
|
|
92
|
+
sessionId: string;
|
|
93
|
+
audience: string;
|
|
94
|
+
} & {
|
|
95
|
+
[k: string]: unknown;
|
|
96
|
+
};
|
|
97
|
+
requestHash: string;
|
|
98
|
+
responseHash: string;
|
|
99
|
+
verified: "yes" | "no";
|
|
100
100
|
scopeId?: string | undefined;
|
|
101
101
|
}>;
|
|
102
102
|
export type AuditContext = {
|
|
@@ -153,33 +153,33 @@ export declare const AuditEventContextSchema: z.ZodObject<{
|
|
|
153
153
|
*/
|
|
154
154
|
eventData: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
155
155
|
}, "strip", z.ZodTypeAny, {
|
|
156
|
-
session: {
|
|
157
|
-
audience: string;
|
|
158
|
-
sessionId: string;
|
|
159
|
-
} & {
|
|
160
|
-
[k: string]: unknown;
|
|
161
|
-
};
|
|
162
156
|
identity: {
|
|
163
157
|
did: string;
|
|
164
158
|
kid: string;
|
|
165
159
|
} & {
|
|
166
160
|
[k: string]: unknown;
|
|
167
161
|
};
|
|
168
|
-
eventType: string;
|
|
169
|
-
eventData?: Record<string, unknown> | undefined;
|
|
170
|
-
}, {
|
|
171
162
|
session: {
|
|
172
|
-
audience: string;
|
|
173
163
|
sessionId: string;
|
|
164
|
+
audience: string;
|
|
174
165
|
} & {
|
|
175
166
|
[k: string]: unknown;
|
|
176
167
|
};
|
|
168
|
+
eventType: string;
|
|
169
|
+
eventData?: Record<string, unknown> | undefined;
|
|
170
|
+
}, {
|
|
177
171
|
identity: {
|
|
178
172
|
did: string;
|
|
179
173
|
kid: string;
|
|
180
174
|
} & {
|
|
181
175
|
[k: string]: unknown;
|
|
182
176
|
};
|
|
177
|
+
session: {
|
|
178
|
+
sessionId: string;
|
|
179
|
+
audience: string;
|
|
180
|
+
} & {
|
|
181
|
+
[k: string]: unknown;
|
|
182
|
+
};
|
|
183
183
|
eventType: string;
|
|
184
184
|
eventData?: Record<string, unknown> | undefined;
|
|
185
185
|
}>;
|