@kya-os/contracts 1.7.16 → 1.7.17

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.
@@ -88,11 +88,11 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
88
88
  clientDid: z.ZodOptional<z.ZodString>;
89
89
  }, "strip", z.ZodTypeAny, {
90
90
  audience: string;
91
+ sessionId: string;
91
92
  did: string;
92
93
  kid: string;
93
94
  ts: number;
94
95
  nonce: string;
95
- sessionId: string;
96
96
  requestHash: string;
97
97
  responseHash: string;
98
98
  scopeId?: string | undefined;
@@ -100,11 +100,11 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
100
100
  clientDid?: string | undefined;
101
101
  }, {
102
102
  audience: string;
103
+ sessionId: string;
103
104
  did: string;
104
105
  kid: string;
105
106
  ts: number;
106
107
  nonce: string;
107
- sessionId: string;
108
108
  requestHash: string;
109
109
  responseHash: string;
110
110
  scopeId?: string | undefined;
@@ -115,11 +115,11 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
115
115
  jws: string;
116
116
  meta: {
117
117
  audience: string;
118
+ sessionId: string;
118
119
  did: string;
119
120
  kid: string;
120
121
  ts: number;
121
122
  nonce: string;
122
- sessionId: string;
123
123
  requestHash: string;
124
124
  responseHash: string;
125
125
  scopeId?: string | undefined;
@@ -130,11 +130,11 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
130
130
  jws: string;
131
131
  meta: {
132
132
  audience: string;
133
+ sessionId: string;
133
134
  did: string;
134
135
  kid: string;
135
136
  ts: number;
136
137
  nonce: string;
137
- sessionId: string;
138
138
  requestHash: string;
139
139
  responseHash: string;
140
140
  scopeId?: string | undefined;
@@ -153,14 +153,14 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
153
153
  scopeId: string;
154
154
  tool: string;
155
155
  args: Record<string, unknown>;
156
- result?: unknown;
157
156
  userIdentifier?: string | undefined;
157
+ result?: unknown;
158
158
  }, {
159
159
  scopeId: string;
160
160
  tool: string;
161
161
  args: Record<string, unknown>;
162
- result?: unknown;
163
162
  userIdentifier?: string | undefined;
163
+ result?: unknown;
164
164
  }>, "many">>;
165
165
  consentEvents: z.ZodOptional<z.ZodArray<z.ZodObject<{
166
166
  eventType: z.ZodEnum<["consent:page_viewed", "consent:approved", "consent:delegation_created", "consent:credential_required", "auth:credential_success", "auth:credential_failed", "auth:oauth_success", "auth:oauth_failed"]>;
@@ -193,8 +193,8 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
193
193
  targetTools: string[];
194
194
  projectId: string;
195
195
  delegationId?: string | undefined;
196
- credentialStatus?: "required" | "present" | "obtained" | undefined;
197
196
  userDid?: string | undefined;
197
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
198
198
  termsAccepted?: boolean | undefined;
199
199
  oauthIdentity?: {
200
200
  provider: string;
@@ -209,8 +209,8 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
209
209
  targetTools: string[];
210
210
  projectId: string;
211
211
  delegationId?: string | undefined;
212
- credentialStatus?: "required" | "present" | "obtained" | undefined;
213
212
  userDid?: string | undefined;
213
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
214
214
  termsAccepted?: boolean | undefined;
215
215
  oauthIdentity?: {
216
216
  provider: string;
@@ -223,8 +223,8 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
223
223
  scopeId: string;
224
224
  tool: string;
225
225
  args: Record<string, unknown>;
226
- result?: unknown;
227
226
  userIdentifier?: string | undefined;
227
+ result?: unknown;
228
228
  }[] | undefined;
229
229
  consentEvents?: {
230
230
  scopes: string[];
@@ -235,8 +235,8 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
235
235
  targetTools: string[];
236
236
  projectId: string;
237
237
  delegationId?: string | undefined;
238
- credentialStatus?: "required" | "present" | "obtained" | undefined;
239
238
  userDid?: string | undefined;
239
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
240
240
  termsAccepted?: boolean | undefined;
241
241
  oauthIdentity?: {
242
242
  provider: string;
@@ -249,8 +249,8 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
249
249
  scopeId: string;
250
250
  tool: string;
251
251
  args: Record<string, unknown>;
252
- result?: unknown;
253
252
  userIdentifier?: string | undefined;
253
+ result?: unknown;
254
254
  }[] | undefined;
255
255
  consentEvents?: {
256
256
  scopes: string[];
@@ -261,8 +261,8 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
261
261
  targetTools: string[];
262
262
  projectId: string;
263
263
  delegationId?: string | undefined;
264
- credentialStatus?: "required" | "present" | "obtained" | undefined;
265
264
  userDid?: string | undefined;
265
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
266
266
  termsAccepted?: boolean | undefined;
267
267
  oauthIdentity?: {
268
268
  provider: string;
@@ -277,11 +277,11 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
277
277
  jws: string;
278
278
  meta: {
279
279
  audience: string;
280
+ sessionId: string;
280
281
  did: string;
281
282
  kid: string;
282
283
  ts: number;
283
284
  nonce: string;
284
- sessionId: string;
285
285
  requestHash: string;
286
286
  responseHash: string;
287
287
  scopeId?: string | undefined;
@@ -295,8 +295,8 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
295
295
  scopeId: string;
296
296
  tool: string;
297
297
  args: Record<string, unknown>;
298
- result?: unknown;
299
298
  userIdentifier?: string | undefined;
299
+ result?: unknown;
300
300
  }[] | undefined;
301
301
  consentEvents?: {
302
302
  scopes: string[];
@@ -307,8 +307,8 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
307
307
  targetTools: string[];
308
308
  projectId: string;
309
309
  delegationId?: string | undefined;
310
- credentialStatus?: "required" | "present" | "obtained" | undefined;
311
310
  userDid?: string | undefined;
311
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
312
312
  termsAccepted?: boolean | undefined;
313
313
  oauthIdentity?: {
314
314
  provider: string;
@@ -323,11 +323,11 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
323
323
  jws: string;
324
324
  meta: {
325
325
  audience: string;
326
+ sessionId: string;
326
327
  did: string;
327
328
  kid: string;
328
329
  ts: number;
329
330
  nonce: string;
330
- sessionId: string;
331
331
  requestHash: string;
332
332
  responseHash: string;
333
333
  scopeId?: string | undefined;
@@ -341,8 +341,8 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
341
341
  scopeId: string;
342
342
  tool: string;
343
343
  args: Record<string, unknown>;
344
- result?: unknown;
345
344
  userIdentifier?: string | undefined;
345
+ result?: unknown;
346
346
  }[] | undefined;
347
347
  consentEvents?: {
348
348
  scopes: string[];
@@ -353,8 +353,8 @@ export declare const proofSubmissionRequestSchema: z.ZodObject<{
353
353
  targetTools: string[];
354
354
  projectId: string;
355
355
  delegationId?: string | undefined;
356
- credentialStatus?: "required" | "present" | "obtained" | undefined;
357
356
  userDid?: string | undefined;
357
+ credentialStatus?: "required" | "present" | "obtained" | undefined;
358
358
  termsAccepted?: boolean | undefined;
359
359
  oauthIdentity?: {
360
360
  provider: string;
@@ -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;
68
+ identity: {
69
+ did: string;
70
+ kid: string;
71
+ } & {
72
+ [k: string]: unknown;
73
+ };
70
74
  session: {
71
75
  audience: string;
72
76
  sessionId: string;
73
77
  } & {
74
78
  [k: string]: unknown;
75
79
  };
80
+ requestHash: string;
81
+ responseHash: string;
76
82
  verified: "yes" | "no";
83
+ scopeId?: string | undefined;
84
+ }, {
77
85
  identity: {
78
86
  did: string;
79
87
  kid: string;
80
88
  } & {
81
89
  [k: string]: unknown;
82
90
  };
83
- scopeId?: string | undefined;
84
- }, {
85
- requestHash: string;
86
- responseHash: string;
87
91
  session: {
88
92
  audience: string;
89
93
  sessionId: string;
90
94
  } & {
91
95
  [k: string]: unknown;
92
96
  };
97
+ requestHash: string;
98
+ responseHash: string;
93
99
  verified: "yes" | "no";
94
- identity: {
95
- did: string;
96
- kid: string;
97
- } & {
98
- [k: string]: unknown;
99
- };
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
163
  audience: string;
173
164
  sessionId: 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
+ audience: string;
179
+ sessionId: string;
180
+ } & {
181
+ [k: string]: unknown;
182
+ };
183
183
  eventType: string;
184
184
  eventData?: Record<string, unknown> | undefined;
185
185
  }>;