@sealkeeper/schema 0.4.7 → 0.4.9
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/api.d.ts +4411 -364
- package/dist/api.js +1753 -46
- package/dist/blocks.d.ts +21 -0
- package/dist/blocks.js +43 -0
- package/dist/cli-version.d.ts +7 -0
- package/dist/cli-version.js +89 -0
- package/dist/conformance.d.ts +4 -0
- package/dist/conformance.js +7 -0
- package/dist/credential.d.ts +763 -21
- package/dist/credential.js +253 -35
- package/dist/dimensions.d.ts +16 -3
- package/dist/dimensions.js +52 -2
- package/dist/fingerprint-conformance.d.ts +17 -0
- package/dist/fingerprint-conformance.js +83 -0
- package/dist/fingerprint.d.ts +133 -0
- package/dist/fingerprint.js +178 -0
- package/dist/game.d.ts +100 -0
- package/dist/game.js +190 -0
- package/dist/goal.d.ts +22 -1
- package/dist/goal.js +50 -7
- package/dist/handshake-conformance.d.ts +18 -0
- package/dist/handshake-conformance.js +276 -0
- package/dist/handshake.d.ts +66 -0
- package/dist/handshake.js +188 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +8 -0
- package/dist/model-comparison.d.ts +70 -0
- package/dist/model-comparison.js +208 -0
- package/dist/model-name.d.ts +3 -0
- package/dist/model-name.js +48 -0
- package/dist/moderation.d.ts +2 -0
- package/dist/moderation.js +14 -8
- package/dist/policy.d.ts +1 -1
- package/dist/policy.js +1 -1
- package/dist/seal-conformance.js +263 -2
- package/dist/standing.d.ts +90 -0
- package/dist/standing.js +253 -13
- package/dist/task-templates.d.ts +47 -0
- package/dist/task-templates.js +506 -0
- package/dist/tasks.d.ts +97 -0
- package/dist/tasks.js +230 -0
- package/dist/template-conformance.d.ts +10 -0
- package/dist/template-conformance.js +298 -0
- package/dist/top-dimensions.d.ts +3 -3
- package/dist/top-dimensions.js +16 -6
- package/package.json +3 -3
package/dist/credential.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { CountedCounts } from './standing.js';
|
|
3
|
+
import { StoredTaskCategory } from './tasks.js';
|
|
3
4
|
export declare const CREDENTIAL_ISSUER = "sealkeeper.run";
|
|
4
5
|
export declare const LEGACY_ISSUERS: readonly ['vouched.run'];
|
|
5
6
|
export declare const LEGACY_ISSUER_UNTIL: number;
|
|
@@ -13,7 +14,10 @@ export declare const CREDENTIAL_EXTENSION_URI = "https://vouched.run/ext/credent
|
|
|
13
14
|
export declare const LEGACY_SEAL_EXTENSION_URIS: readonly string[];
|
|
14
15
|
export declare const SEAL_EXTENSION_URIS: readonly string[];
|
|
15
16
|
export declare const SEAL_VERSION = 1;
|
|
16
|
-
export declare const SEAL_VERSIONS: readonly [1, 2];
|
|
17
|
+
export declare const SEAL_VERSIONS: readonly [1, 2, 3, 4];
|
|
18
|
+
export declare const SEAL_V3_FIRST_CLI = "0.4.11";
|
|
19
|
+
export declare const SEAL_V3_QUIET_DAYS = 14;
|
|
20
|
+
export declare const SEAL_V4_FIRST_CLI = "0.4.14";
|
|
17
21
|
export declare const IdentityKind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
18
22
|
kya: "kya";
|
|
19
23
|
oidc: "oidc";
|
|
@@ -41,6 +45,51 @@ export type IdentityReference = z.infer<typeof IdentityReference>;
|
|
|
41
45
|
export declare const operatorVerified: (identity: readonly IdentityReference[]) => boolean;
|
|
42
46
|
export declare const SEAL_MAX_TTL_SECONDS: number;
|
|
43
47
|
export declare const SEAL_CLOCK_SKEW_SECONDS = 300;
|
|
48
|
+
export declare const SealState: z.ZodEnum<{
|
|
49
|
+
changed: "changed";
|
|
50
|
+
matches: "matches";
|
|
51
|
+
provisional: "provisional";
|
|
52
|
+
}>;
|
|
53
|
+
export type SealState = z.infer<typeof SealState>;
|
|
54
|
+
export declare const SealFingerprint: z.ZodNullable<z.ZodObject<{
|
|
55
|
+
hash: z.ZodString;
|
|
56
|
+
at: z.ZodInt;
|
|
57
|
+
}, z.core.$strict>>;
|
|
58
|
+
export type SealFingerprint = z.infer<typeof SealFingerprint>;
|
|
59
|
+
export declare const SEAL_TOP_CATEGORIES_MAX = 3;
|
|
60
|
+
export declare const SealTopCategory: z.ZodObject<{
|
|
61
|
+
category: z.ZodEnum<{
|
|
62
|
+
code: "code";
|
|
63
|
+
conversation: "conversation";
|
|
64
|
+
data: "data";
|
|
65
|
+
math: "math";
|
|
66
|
+
operations: "operations";
|
|
67
|
+
other: "other";
|
|
68
|
+
research: "research";
|
|
69
|
+
writing: "writing";
|
|
70
|
+
}>;
|
|
71
|
+
score: z.ZodInt;
|
|
72
|
+
}, z.core.$strict>;
|
|
73
|
+
export type SealTopCategory = z.infer<typeof SealTopCategory>;
|
|
74
|
+
export declare const SealTopCategories: z.ZodArray<z.ZodObject<{
|
|
75
|
+
category: z.ZodEnum<{
|
|
76
|
+
code: "code";
|
|
77
|
+
conversation: "conversation";
|
|
78
|
+
data: "data";
|
|
79
|
+
math: "math";
|
|
80
|
+
operations: "operations";
|
|
81
|
+
other: "other";
|
|
82
|
+
research: "research";
|
|
83
|
+
writing: "writing";
|
|
84
|
+
}>;
|
|
85
|
+
score: z.ZodInt;
|
|
86
|
+
}, z.core.$strict>>;
|
|
87
|
+
export declare function sealTrust(score: number | null, categories: Partial<Record<StoredTaskCategory, {
|
|
88
|
+
score: number;
|
|
89
|
+
} | undefined>> | null): {
|
|
90
|
+
trust: number;
|
|
91
|
+
top_categories: SealTopCategory[];
|
|
92
|
+
};
|
|
44
93
|
export declare const CredentialPayload: z.ZodObject<{
|
|
45
94
|
iss: z.ZodLiteral<"sealkeeper.run">;
|
|
46
95
|
sub: z.ZodString;
|
|
@@ -60,7 +109,488 @@ export declare const CredentialPayload: z.ZodObject<{
|
|
|
60
109
|
provenance: "provenance";
|
|
61
110
|
reliability: "reliability";
|
|
62
111
|
safety: "safety";
|
|
63
|
-
}>, z.ZodTemplateLiteral
|
|
112
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
113
|
+
counts: z.ZodObject<{
|
|
114
|
+
events: z.ZodInt;
|
|
115
|
+
history_days: z.ZodInt;
|
|
116
|
+
verified_tasks: z.ZodInt;
|
|
117
|
+
seed_tasks: z.ZodInt;
|
|
118
|
+
server_checked_tasks: z.ZodInt;
|
|
119
|
+
confirmed_tasks: z.ZodInt;
|
|
120
|
+
distinct_operators: z.ZodInt;
|
|
121
|
+
safety_incidents_90d: z.ZodInt;
|
|
122
|
+
}, z.core.$strict>;
|
|
123
|
+
operator: z.ZodObject<{
|
|
124
|
+
verified: z.ZodBoolean;
|
|
125
|
+
}, z.core.$strict>;
|
|
126
|
+
identity: z.ZodArray<z.ZodObject<{
|
|
127
|
+
provider: z.ZodURL;
|
|
128
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
129
|
+
kya: "kya";
|
|
130
|
+
oidc: "oidc";
|
|
131
|
+
saml: "saml";
|
|
132
|
+
verifiable_credential: "verifiable_credential";
|
|
133
|
+
}>, z.ZodURL]>;
|
|
134
|
+
ref: z.ZodString;
|
|
135
|
+
subject_hash: z.ZodString;
|
|
136
|
+
attested_at: z.ZodInt;
|
|
137
|
+
scope: z.ZodEnum<{
|
|
138
|
+
agent: "agent";
|
|
139
|
+
operator: "operator";
|
|
140
|
+
}>;
|
|
141
|
+
}, z.core.$strict>>;
|
|
142
|
+
last_active: z.ZodNullable<z.ZodInt>;
|
|
143
|
+
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
144
|
+
}, z.core.$strict>;
|
|
145
|
+
export type CredentialPayload = z.infer<typeof CredentialPayload>;
|
|
146
|
+
export declare const CredentialPayloadV2: z.ZodObject<{
|
|
147
|
+
iss: z.ZodLiteral<"sealkeeper.run">;
|
|
148
|
+
sub: z.ZodString;
|
|
149
|
+
ver: z.ZodLiteral<2>;
|
|
150
|
+
iat: z.ZodInt;
|
|
151
|
+
exp: z.ZodInt;
|
|
152
|
+
agent_version: z.ZodString;
|
|
153
|
+
version: z.ZodString;
|
|
154
|
+
level: z.ZodEnum<{
|
|
155
|
+
bronze: "bronze";
|
|
156
|
+
gold: "gold";
|
|
157
|
+
none: "none";
|
|
158
|
+
silver: "silver";
|
|
159
|
+
}>;
|
|
160
|
+
scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
|
|
161
|
+
cost_latency: "cost_latency";
|
|
162
|
+
provenance: "provenance";
|
|
163
|
+
reliability: "reliability";
|
|
164
|
+
safety: "safety";
|
|
165
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
166
|
+
counts: z.ZodObject<{
|
|
167
|
+
events: z.ZodInt;
|
|
168
|
+
history_days: z.ZodInt;
|
|
169
|
+
verified_tasks: z.ZodInt;
|
|
170
|
+
seed_tasks: z.ZodInt;
|
|
171
|
+
server_checked_tasks: z.ZodInt;
|
|
172
|
+
confirmed_tasks: z.ZodInt;
|
|
173
|
+
distinct_operators: z.ZodInt;
|
|
174
|
+
safety_incidents_90d: z.ZodInt;
|
|
175
|
+
}, z.core.$strict>;
|
|
176
|
+
counted: z.ZodObject<{
|
|
177
|
+
verified_tasks: z.ZodInt;
|
|
178
|
+
seed_tasks: z.ZodInt;
|
|
179
|
+
server_checked_tasks: z.ZodInt;
|
|
180
|
+
confirmed_tasks: z.ZodInt;
|
|
181
|
+
}, z.core.$strict>;
|
|
182
|
+
operator: z.ZodObject<{
|
|
183
|
+
verified: z.ZodBoolean;
|
|
184
|
+
}, z.core.$strict>;
|
|
185
|
+
identity: z.ZodArray<z.ZodObject<{
|
|
186
|
+
provider: z.ZodURL;
|
|
187
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
188
|
+
kya: "kya";
|
|
189
|
+
oidc: "oidc";
|
|
190
|
+
saml: "saml";
|
|
191
|
+
verifiable_credential: "verifiable_credential";
|
|
192
|
+
}>, z.ZodURL]>;
|
|
193
|
+
ref: z.ZodString;
|
|
194
|
+
subject_hash: z.ZodString;
|
|
195
|
+
attested_at: z.ZodInt;
|
|
196
|
+
scope: z.ZodEnum<{
|
|
197
|
+
agent: "agent";
|
|
198
|
+
operator: "operator";
|
|
199
|
+
}>;
|
|
200
|
+
}, z.core.$strict>>;
|
|
201
|
+
last_active: z.ZodNullable<z.ZodInt>;
|
|
202
|
+
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
203
|
+
}, z.core.$strict>;
|
|
204
|
+
export type CredentialPayloadV2 = z.infer<typeof CredentialPayloadV2>;
|
|
205
|
+
export declare const CredentialPayloadV3: z.ZodObject<{
|
|
206
|
+
iss: z.ZodLiteral<"sealkeeper.run">;
|
|
207
|
+
sub: z.ZodString;
|
|
208
|
+
ver: z.ZodLiteral<3>;
|
|
209
|
+
iat: z.ZodInt;
|
|
210
|
+
exp: z.ZodInt;
|
|
211
|
+
agent_version: z.ZodString;
|
|
212
|
+
level: z.ZodEnum<{
|
|
213
|
+
bronze: "bronze";
|
|
214
|
+
gold: "gold";
|
|
215
|
+
none: "none";
|
|
216
|
+
silver: "silver";
|
|
217
|
+
}>;
|
|
218
|
+
scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
|
|
219
|
+
cost_latency: "cost_latency";
|
|
220
|
+
provenance: "provenance";
|
|
221
|
+
reliability: "reliability";
|
|
222
|
+
safety: "safety";
|
|
223
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
224
|
+
counts: z.ZodObject<{
|
|
225
|
+
events: z.ZodInt;
|
|
226
|
+
history_days: z.ZodInt;
|
|
227
|
+
verified_tasks: z.ZodInt;
|
|
228
|
+
seed_tasks: z.ZodInt;
|
|
229
|
+
server_checked_tasks: z.ZodInt;
|
|
230
|
+
confirmed_tasks: z.ZodInt;
|
|
231
|
+
distinct_operators: z.ZodInt;
|
|
232
|
+
safety_incidents_90d: z.ZodInt;
|
|
233
|
+
posted_tasks: z.ZodInt;
|
|
234
|
+
posted_distinct_operators: z.ZodInt;
|
|
235
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
236
|
+
}, z.core.$strict>;
|
|
237
|
+
counted: z.ZodObject<{
|
|
238
|
+
verified_tasks: z.ZodInt;
|
|
239
|
+
seed_tasks: z.ZodInt;
|
|
240
|
+
server_checked_tasks: z.ZodInt;
|
|
241
|
+
confirmed_tasks: z.ZodInt;
|
|
242
|
+
posted_tasks: z.ZodInt;
|
|
243
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
244
|
+
}, z.core.$strict>;
|
|
245
|
+
fingerprint: z.ZodNullable<z.ZodObject<{
|
|
246
|
+
hash: z.ZodString;
|
|
247
|
+
at: z.ZodInt;
|
|
248
|
+
}, z.core.$strict>>;
|
|
249
|
+
state: z.ZodEnum<{
|
|
250
|
+
changed: "changed";
|
|
251
|
+
matches: "matches";
|
|
252
|
+
provisional: "provisional";
|
|
253
|
+
}>;
|
|
254
|
+
operator: z.ZodObject<{
|
|
255
|
+
verified: z.ZodBoolean;
|
|
256
|
+
}, z.core.$strict>;
|
|
257
|
+
identity: z.ZodArray<z.ZodObject<{
|
|
258
|
+
provider: z.ZodURL;
|
|
259
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
260
|
+
kya: "kya";
|
|
261
|
+
oidc: "oidc";
|
|
262
|
+
saml: "saml";
|
|
263
|
+
verifiable_credential: "verifiable_credential";
|
|
264
|
+
}>, z.ZodURL]>;
|
|
265
|
+
ref: z.ZodString;
|
|
266
|
+
subject_hash: z.ZodString;
|
|
267
|
+
attested_at: z.ZodInt;
|
|
268
|
+
scope: z.ZodEnum<{
|
|
269
|
+
agent: "agent";
|
|
270
|
+
operator: "operator";
|
|
271
|
+
}>;
|
|
272
|
+
}, z.core.$strict>>;
|
|
273
|
+
last_active: z.ZodNullable<z.ZodInt>;
|
|
274
|
+
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
275
|
+
}, z.core.$strict>;
|
|
276
|
+
export type CredentialPayloadV3 = z.infer<typeof CredentialPayloadV3>;
|
|
277
|
+
export declare const CredentialPayloadV4: z.ZodObject<{
|
|
278
|
+
iss: z.ZodLiteral<"sealkeeper.run">;
|
|
279
|
+
sub: z.ZodString;
|
|
280
|
+
ver: z.ZodLiteral<4>;
|
|
281
|
+
iat: z.ZodInt;
|
|
282
|
+
exp: z.ZodInt;
|
|
283
|
+
agent_version: z.ZodString;
|
|
284
|
+
level: z.ZodEnum<{
|
|
285
|
+
bronze: "bronze";
|
|
286
|
+
gold: "gold";
|
|
287
|
+
none: "none";
|
|
288
|
+
silver: "silver";
|
|
289
|
+
}>;
|
|
290
|
+
scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
|
|
291
|
+
cost_latency: "cost_latency";
|
|
292
|
+
provenance: "provenance";
|
|
293
|
+
reliability: "reliability";
|
|
294
|
+
safety: "safety";
|
|
295
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
296
|
+
counts: z.ZodObject<{
|
|
297
|
+
events: z.ZodInt;
|
|
298
|
+
history_days: z.ZodInt;
|
|
299
|
+
verified_tasks: z.ZodInt;
|
|
300
|
+
seed_tasks: z.ZodInt;
|
|
301
|
+
server_checked_tasks: z.ZodInt;
|
|
302
|
+
confirmed_tasks: z.ZodInt;
|
|
303
|
+
distinct_operators: z.ZodInt;
|
|
304
|
+
safety_incidents_90d: z.ZodInt;
|
|
305
|
+
posted_tasks: z.ZodInt;
|
|
306
|
+
posted_distinct_operators: z.ZodInt;
|
|
307
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
308
|
+
}, z.core.$strict>;
|
|
309
|
+
counted: z.ZodObject<{
|
|
310
|
+
verified_tasks: z.ZodInt;
|
|
311
|
+
seed_tasks: z.ZodInt;
|
|
312
|
+
server_checked_tasks: z.ZodInt;
|
|
313
|
+
confirmed_tasks: z.ZodInt;
|
|
314
|
+
posted_tasks: z.ZodInt;
|
|
315
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
316
|
+
}, z.core.$strict>;
|
|
317
|
+
fingerprint: z.ZodNullable<z.ZodObject<{
|
|
318
|
+
hash: z.ZodString;
|
|
319
|
+
at: z.ZodInt;
|
|
320
|
+
}, z.core.$strict>>;
|
|
321
|
+
state: z.ZodEnum<{
|
|
322
|
+
changed: "changed";
|
|
323
|
+
matches: "matches";
|
|
324
|
+
provisional: "provisional";
|
|
325
|
+
}>;
|
|
326
|
+
trust: z.ZodInt;
|
|
327
|
+
top_categories: z.ZodArray<z.ZodObject<{
|
|
328
|
+
category: z.ZodEnum<{
|
|
329
|
+
code: "code";
|
|
330
|
+
conversation: "conversation";
|
|
331
|
+
data: "data";
|
|
332
|
+
math: "math";
|
|
333
|
+
operations: "operations";
|
|
334
|
+
other: "other";
|
|
335
|
+
research: "research";
|
|
336
|
+
writing: "writing";
|
|
337
|
+
}>;
|
|
338
|
+
score: z.ZodInt;
|
|
339
|
+
}, z.core.$strict>>;
|
|
340
|
+
operator: z.ZodObject<{
|
|
341
|
+
verified: z.ZodBoolean;
|
|
342
|
+
}, z.core.$strict>;
|
|
343
|
+
identity: z.ZodArray<z.ZodObject<{
|
|
344
|
+
provider: z.ZodURL;
|
|
345
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
346
|
+
kya: "kya";
|
|
347
|
+
oidc: "oidc";
|
|
348
|
+
saml: "saml";
|
|
349
|
+
verifiable_credential: "verifiable_credential";
|
|
350
|
+
}>, z.ZodURL]>;
|
|
351
|
+
ref: z.ZodString;
|
|
352
|
+
subject_hash: z.ZodString;
|
|
353
|
+
attested_at: z.ZodInt;
|
|
354
|
+
scope: z.ZodEnum<{
|
|
355
|
+
agent: "agent";
|
|
356
|
+
operator: "operator";
|
|
357
|
+
}>;
|
|
358
|
+
}, z.core.$strict>>;
|
|
359
|
+
last_active: z.ZodNullable<z.ZodInt>;
|
|
360
|
+
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
361
|
+
}, z.core.$strict>;
|
|
362
|
+
export type CredentialPayloadV4 = z.infer<typeof CredentialPayloadV4>;
|
|
363
|
+
export declare const IssuedSealPayload: z.ZodUnion<readonly [z.ZodObject<{
|
|
364
|
+
iss: z.ZodLiteral<"sealkeeper.run">;
|
|
365
|
+
sub: z.ZodString;
|
|
366
|
+
ver: z.ZodLiteral<1>;
|
|
367
|
+
iat: z.ZodInt;
|
|
368
|
+
exp: z.ZodInt;
|
|
369
|
+
agent_version: z.ZodString;
|
|
370
|
+
version: z.ZodString;
|
|
371
|
+
level: z.ZodEnum<{
|
|
372
|
+
bronze: "bronze";
|
|
373
|
+
gold: "gold";
|
|
374
|
+
none: "none";
|
|
375
|
+
silver: "silver";
|
|
376
|
+
}>;
|
|
377
|
+
scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
|
|
378
|
+
cost_latency: "cost_latency";
|
|
379
|
+
provenance: "provenance";
|
|
380
|
+
reliability: "reliability";
|
|
381
|
+
safety: "safety";
|
|
382
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
383
|
+
counts: z.ZodObject<{
|
|
384
|
+
events: z.ZodInt;
|
|
385
|
+
history_days: z.ZodInt;
|
|
386
|
+
verified_tasks: z.ZodInt;
|
|
387
|
+
seed_tasks: z.ZodInt;
|
|
388
|
+
server_checked_tasks: z.ZodInt;
|
|
389
|
+
confirmed_tasks: z.ZodInt;
|
|
390
|
+
distinct_operators: z.ZodInt;
|
|
391
|
+
safety_incidents_90d: z.ZodInt;
|
|
392
|
+
}, z.core.$strict>;
|
|
393
|
+
operator: z.ZodObject<{
|
|
394
|
+
verified: z.ZodBoolean;
|
|
395
|
+
}, z.core.$strict>;
|
|
396
|
+
identity: z.ZodArray<z.ZodObject<{
|
|
397
|
+
provider: z.ZodURL;
|
|
398
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
399
|
+
kya: "kya";
|
|
400
|
+
oidc: "oidc";
|
|
401
|
+
saml: "saml";
|
|
402
|
+
verifiable_credential: "verifiable_credential";
|
|
403
|
+
}>, z.ZodURL]>;
|
|
404
|
+
ref: z.ZodString;
|
|
405
|
+
subject_hash: z.ZodString;
|
|
406
|
+
attested_at: z.ZodInt;
|
|
407
|
+
scope: z.ZodEnum<{
|
|
408
|
+
agent: "agent";
|
|
409
|
+
operator: "operator";
|
|
410
|
+
}>;
|
|
411
|
+
}, z.core.$strict>>;
|
|
412
|
+
last_active: z.ZodNullable<z.ZodInt>;
|
|
413
|
+
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
414
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
415
|
+
iss: z.ZodLiteral<"sealkeeper.run">;
|
|
416
|
+
sub: z.ZodString;
|
|
417
|
+
ver: z.ZodLiteral<3>;
|
|
418
|
+
iat: z.ZodInt;
|
|
419
|
+
exp: z.ZodInt;
|
|
420
|
+
agent_version: z.ZodString;
|
|
421
|
+
level: z.ZodEnum<{
|
|
422
|
+
bronze: "bronze";
|
|
423
|
+
gold: "gold";
|
|
424
|
+
none: "none";
|
|
425
|
+
silver: "silver";
|
|
426
|
+
}>;
|
|
427
|
+
scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
|
|
428
|
+
cost_latency: "cost_latency";
|
|
429
|
+
provenance: "provenance";
|
|
430
|
+
reliability: "reliability";
|
|
431
|
+
safety: "safety";
|
|
432
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
433
|
+
counts: z.ZodObject<{
|
|
434
|
+
events: z.ZodInt;
|
|
435
|
+
history_days: z.ZodInt;
|
|
436
|
+
verified_tasks: z.ZodInt;
|
|
437
|
+
seed_tasks: z.ZodInt;
|
|
438
|
+
server_checked_tasks: z.ZodInt;
|
|
439
|
+
confirmed_tasks: z.ZodInt;
|
|
440
|
+
distinct_operators: z.ZodInt;
|
|
441
|
+
safety_incidents_90d: z.ZodInt;
|
|
442
|
+
posted_tasks: z.ZodInt;
|
|
443
|
+
posted_distinct_operators: z.ZodInt;
|
|
444
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
445
|
+
}, z.core.$strict>;
|
|
446
|
+
counted: z.ZodObject<{
|
|
447
|
+
verified_tasks: z.ZodInt;
|
|
448
|
+
seed_tasks: z.ZodInt;
|
|
449
|
+
server_checked_tasks: z.ZodInt;
|
|
450
|
+
confirmed_tasks: z.ZodInt;
|
|
451
|
+
posted_tasks: z.ZodInt;
|
|
452
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
453
|
+
}, z.core.$strict>;
|
|
454
|
+
fingerprint: z.ZodNullable<z.ZodObject<{
|
|
455
|
+
hash: z.ZodString;
|
|
456
|
+
at: z.ZodInt;
|
|
457
|
+
}, z.core.$strict>>;
|
|
458
|
+
state: z.ZodEnum<{
|
|
459
|
+
changed: "changed";
|
|
460
|
+
matches: "matches";
|
|
461
|
+
provisional: "provisional";
|
|
462
|
+
}>;
|
|
463
|
+
operator: z.ZodObject<{
|
|
464
|
+
verified: z.ZodBoolean;
|
|
465
|
+
}, z.core.$strict>;
|
|
466
|
+
identity: z.ZodArray<z.ZodObject<{
|
|
467
|
+
provider: z.ZodURL;
|
|
468
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
469
|
+
kya: "kya";
|
|
470
|
+
oidc: "oidc";
|
|
471
|
+
saml: "saml";
|
|
472
|
+
verifiable_credential: "verifiable_credential";
|
|
473
|
+
}>, z.ZodURL]>;
|
|
474
|
+
ref: z.ZodString;
|
|
475
|
+
subject_hash: z.ZodString;
|
|
476
|
+
attested_at: z.ZodInt;
|
|
477
|
+
scope: z.ZodEnum<{
|
|
478
|
+
agent: "agent";
|
|
479
|
+
operator: "operator";
|
|
480
|
+
}>;
|
|
481
|
+
}, z.core.$strict>>;
|
|
482
|
+
last_active: z.ZodNullable<z.ZodInt>;
|
|
483
|
+
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
484
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
485
|
+
iss: z.ZodLiteral<"sealkeeper.run">;
|
|
486
|
+
sub: z.ZodString;
|
|
487
|
+
ver: z.ZodLiteral<4>;
|
|
488
|
+
iat: z.ZodInt;
|
|
489
|
+
exp: z.ZodInt;
|
|
490
|
+
agent_version: z.ZodString;
|
|
491
|
+
level: z.ZodEnum<{
|
|
492
|
+
bronze: "bronze";
|
|
493
|
+
gold: "gold";
|
|
494
|
+
none: "none";
|
|
495
|
+
silver: "silver";
|
|
496
|
+
}>;
|
|
497
|
+
scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
|
|
498
|
+
cost_latency: "cost_latency";
|
|
499
|
+
provenance: "provenance";
|
|
500
|
+
reliability: "reliability";
|
|
501
|
+
safety: "safety";
|
|
502
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
503
|
+
counts: z.ZodObject<{
|
|
504
|
+
events: z.ZodInt;
|
|
505
|
+
history_days: z.ZodInt;
|
|
506
|
+
verified_tasks: z.ZodInt;
|
|
507
|
+
seed_tasks: z.ZodInt;
|
|
508
|
+
server_checked_tasks: z.ZodInt;
|
|
509
|
+
confirmed_tasks: z.ZodInt;
|
|
510
|
+
distinct_operators: z.ZodInt;
|
|
511
|
+
safety_incidents_90d: z.ZodInt;
|
|
512
|
+
posted_tasks: z.ZodInt;
|
|
513
|
+
posted_distinct_operators: z.ZodInt;
|
|
514
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
515
|
+
}, z.core.$strict>;
|
|
516
|
+
counted: z.ZodObject<{
|
|
517
|
+
verified_tasks: z.ZodInt;
|
|
518
|
+
seed_tasks: z.ZodInt;
|
|
519
|
+
server_checked_tasks: z.ZodInt;
|
|
520
|
+
confirmed_tasks: z.ZodInt;
|
|
521
|
+
posted_tasks: z.ZodInt;
|
|
522
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
523
|
+
}, z.core.$strict>;
|
|
524
|
+
fingerprint: z.ZodNullable<z.ZodObject<{
|
|
525
|
+
hash: z.ZodString;
|
|
526
|
+
at: z.ZodInt;
|
|
527
|
+
}, z.core.$strict>>;
|
|
528
|
+
state: z.ZodEnum<{
|
|
529
|
+
changed: "changed";
|
|
530
|
+
matches: "matches";
|
|
531
|
+
provisional: "provisional";
|
|
532
|
+
}>;
|
|
533
|
+
trust: z.ZodInt;
|
|
534
|
+
top_categories: z.ZodArray<z.ZodObject<{
|
|
535
|
+
category: z.ZodEnum<{
|
|
536
|
+
code: "code";
|
|
537
|
+
conversation: "conversation";
|
|
538
|
+
data: "data";
|
|
539
|
+
math: "math";
|
|
540
|
+
operations: "operations";
|
|
541
|
+
other: "other";
|
|
542
|
+
research: "research";
|
|
543
|
+
writing: "writing";
|
|
544
|
+
}>;
|
|
545
|
+
score: z.ZodInt;
|
|
546
|
+
}, z.core.$strict>>;
|
|
547
|
+
operator: z.ZodObject<{
|
|
548
|
+
verified: z.ZodBoolean;
|
|
549
|
+
}, z.core.$strict>;
|
|
550
|
+
identity: z.ZodArray<z.ZodObject<{
|
|
551
|
+
provider: z.ZodURL;
|
|
552
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
553
|
+
kya: "kya";
|
|
554
|
+
oidc: "oidc";
|
|
555
|
+
saml: "saml";
|
|
556
|
+
verifiable_credential: "verifiable_credential";
|
|
557
|
+
}>, z.ZodURL]>;
|
|
558
|
+
ref: z.ZodString;
|
|
559
|
+
subject_hash: z.ZodString;
|
|
560
|
+
attested_at: z.ZodInt;
|
|
561
|
+
scope: z.ZodEnum<{
|
|
562
|
+
agent: "agent";
|
|
563
|
+
operator: "operator";
|
|
564
|
+
}>;
|
|
565
|
+
}, z.core.$strict>>;
|
|
566
|
+
last_active: z.ZodNullable<z.ZodInt>;
|
|
567
|
+
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
568
|
+
}, z.core.$strict>]>;
|
|
569
|
+
export type IssuedSealPayload = z.infer<typeof IssuedSealPayload>;
|
|
570
|
+
export type SealIssueVersion = IssuedSealPayload['ver'];
|
|
571
|
+
export declare const VerifiedCredentialPayload: z.ZodObject<{
|
|
572
|
+
iss: z.ZodEnum<{
|
|
573
|
+
"sealkeeper.run": "sealkeeper.run";
|
|
574
|
+
"vouched.run": "vouched.run";
|
|
575
|
+
}>;
|
|
576
|
+
sub: z.ZodString;
|
|
577
|
+
ver: z.ZodLiteral<1>;
|
|
578
|
+
iat: z.ZodInt;
|
|
579
|
+
exp: z.ZodInt;
|
|
580
|
+
agent_version: z.ZodString;
|
|
581
|
+
version: z.ZodString;
|
|
582
|
+
level: z.ZodEnum<{
|
|
583
|
+
bronze: "bronze";
|
|
584
|
+
gold: "gold";
|
|
585
|
+
none: "none";
|
|
586
|
+
silver: "silver";
|
|
587
|
+
}>;
|
|
588
|
+
scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
|
|
589
|
+
cost_latency: "cost_latency";
|
|
590
|
+
provenance: "provenance";
|
|
591
|
+
reliability: "reliability";
|
|
592
|
+
safety: "safety";
|
|
593
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
64
594
|
counts: z.ZodObject<{
|
|
65
595
|
events: z.ZodInt;
|
|
66
596
|
history_days: z.ZodInt;
|
|
@@ -93,9 +623,12 @@ export declare const CredentialPayload: z.ZodObject<{
|
|
|
93
623
|
last_active: z.ZodNullable<z.ZodInt>;
|
|
94
624
|
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
95
625
|
}, z.core.$strict>;
|
|
96
|
-
export type
|
|
97
|
-
export declare const
|
|
98
|
-
iss: z.
|
|
626
|
+
export type VerifiedCredentialPayload = z.infer<typeof VerifiedCredentialPayload>;
|
|
627
|
+
export declare const VerifiedCredentialPayloadV2: z.ZodObject<{
|
|
628
|
+
iss: z.ZodEnum<{
|
|
629
|
+
"sealkeeper.run": "sealkeeper.run";
|
|
630
|
+
"vouched.run": "vouched.run";
|
|
631
|
+
}>;
|
|
99
632
|
sub: z.ZodString;
|
|
100
633
|
ver: z.ZodLiteral<2>;
|
|
101
634
|
iat: z.ZodInt;
|
|
@@ -113,7 +646,7 @@ export declare const CredentialPayloadV2: z.ZodObject<{
|
|
|
113
646
|
provenance: "provenance";
|
|
114
647
|
reliability: "reliability";
|
|
115
648
|
safety: "safety";
|
|
116
|
-
}>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
649
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
117
650
|
counts: z.ZodObject<{
|
|
118
651
|
events: z.ZodInt;
|
|
119
652
|
history_days: z.ZodInt;
|
|
@@ -152,18 +685,17 @@ export declare const CredentialPayloadV2: z.ZodObject<{
|
|
|
152
685
|
last_active: z.ZodNullable<z.ZodInt>;
|
|
153
686
|
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
154
687
|
}, z.core.$strict>;
|
|
155
|
-
export type
|
|
156
|
-
export declare const
|
|
688
|
+
export type VerifiedCredentialPayloadV2 = z.infer<typeof VerifiedCredentialPayloadV2>;
|
|
689
|
+
export declare const VerifiedCredentialPayloadV3: z.ZodObject<{
|
|
157
690
|
iss: z.ZodEnum<{
|
|
158
691
|
"sealkeeper.run": "sealkeeper.run";
|
|
159
692
|
"vouched.run": "vouched.run";
|
|
160
693
|
}>;
|
|
161
694
|
sub: z.ZodString;
|
|
162
|
-
ver: z.ZodLiteral<
|
|
695
|
+
ver: z.ZodLiteral<3>;
|
|
163
696
|
iat: z.ZodInt;
|
|
164
697
|
exp: z.ZodInt;
|
|
165
698
|
agent_version: z.ZodString;
|
|
166
|
-
version: z.ZodString;
|
|
167
699
|
level: z.ZodEnum<{
|
|
168
700
|
bronze: "bronze";
|
|
169
701
|
gold: "gold";
|
|
@@ -175,7 +707,7 @@ export declare const VerifiedCredentialPayload: z.ZodObject<{
|
|
|
175
707
|
provenance: "provenance";
|
|
176
708
|
reliability: "reliability";
|
|
177
709
|
safety: "safety";
|
|
178
|
-
}>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
710
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
179
711
|
counts: z.ZodObject<{
|
|
180
712
|
events: z.ZodInt;
|
|
181
713
|
history_days: z.ZodInt;
|
|
@@ -185,7 +717,27 @@ export declare const VerifiedCredentialPayload: z.ZodObject<{
|
|
|
185
717
|
confirmed_tasks: z.ZodInt;
|
|
186
718
|
distinct_operators: z.ZodInt;
|
|
187
719
|
safety_incidents_90d: z.ZodInt;
|
|
720
|
+
posted_tasks: z.ZodInt;
|
|
721
|
+
posted_distinct_operators: z.ZodInt;
|
|
722
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
723
|
+
}, z.core.$strict>;
|
|
724
|
+
counted: z.ZodObject<{
|
|
725
|
+
verified_tasks: z.ZodInt;
|
|
726
|
+
seed_tasks: z.ZodInt;
|
|
727
|
+
server_checked_tasks: z.ZodInt;
|
|
728
|
+
confirmed_tasks: z.ZodInt;
|
|
729
|
+
posted_tasks: z.ZodInt;
|
|
730
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
188
731
|
}, z.core.$strict>;
|
|
732
|
+
fingerprint: z.ZodNullable<z.ZodObject<{
|
|
733
|
+
hash: z.ZodString;
|
|
734
|
+
at: z.ZodInt;
|
|
735
|
+
}, z.core.$strict>>;
|
|
736
|
+
state: z.ZodEnum<{
|
|
737
|
+
changed: "changed";
|
|
738
|
+
matches: "matches";
|
|
739
|
+
provisional: "provisional";
|
|
740
|
+
}>;
|
|
189
741
|
operator: z.ZodObject<{
|
|
190
742
|
verified: z.ZodBoolean;
|
|
191
743
|
}, z.core.$strict>;
|
|
@@ -208,18 +760,17 @@ export declare const VerifiedCredentialPayload: z.ZodObject<{
|
|
|
208
760
|
last_active: z.ZodNullable<z.ZodInt>;
|
|
209
761
|
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
210
762
|
}, z.core.$strict>;
|
|
211
|
-
export type
|
|
212
|
-
export declare const
|
|
763
|
+
export type VerifiedCredentialPayloadV3 = z.infer<typeof VerifiedCredentialPayloadV3>;
|
|
764
|
+
export declare const VerifiedCredentialPayloadV4: z.ZodObject<{
|
|
213
765
|
iss: z.ZodEnum<{
|
|
214
766
|
"sealkeeper.run": "sealkeeper.run";
|
|
215
767
|
"vouched.run": "vouched.run";
|
|
216
768
|
}>;
|
|
217
769
|
sub: z.ZodString;
|
|
218
|
-
ver: z.ZodLiteral<
|
|
770
|
+
ver: z.ZodLiteral<4>;
|
|
219
771
|
iat: z.ZodInt;
|
|
220
772
|
exp: z.ZodInt;
|
|
221
773
|
agent_version: z.ZodString;
|
|
222
|
-
version: z.ZodString;
|
|
223
774
|
level: z.ZodEnum<{
|
|
224
775
|
bronze: "bronze";
|
|
225
776
|
gold: "gold";
|
|
@@ -231,7 +782,7 @@ export declare const VerifiedCredentialPayloadV2: z.ZodObject<{
|
|
|
231
782
|
provenance: "provenance";
|
|
232
783
|
reliability: "reliability";
|
|
233
784
|
safety: "safety";
|
|
234
|
-
}>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
785
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
235
786
|
counts: z.ZodObject<{
|
|
236
787
|
events: z.ZodInt;
|
|
237
788
|
history_days: z.ZodInt;
|
|
@@ -241,13 +792,41 @@ export declare const VerifiedCredentialPayloadV2: z.ZodObject<{
|
|
|
241
792
|
confirmed_tasks: z.ZodInt;
|
|
242
793
|
distinct_operators: z.ZodInt;
|
|
243
794
|
safety_incidents_90d: z.ZodInt;
|
|
795
|
+
posted_tasks: z.ZodInt;
|
|
796
|
+
posted_distinct_operators: z.ZodInt;
|
|
797
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
244
798
|
}, z.core.$strict>;
|
|
245
799
|
counted: z.ZodObject<{
|
|
246
800
|
verified_tasks: z.ZodInt;
|
|
247
801
|
seed_tasks: z.ZodInt;
|
|
248
802
|
server_checked_tasks: z.ZodInt;
|
|
249
803
|
confirmed_tasks: z.ZodInt;
|
|
804
|
+
posted_tasks: z.ZodInt;
|
|
805
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
250
806
|
}, z.core.$strict>;
|
|
807
|
+
fingerprint: z.ZodNullable<z.ZodObject<{
|
|
808
|
+
hash: z.ZodString;
|
|
809
|
+
at: z.ZodInt;
|
|
810
|
+
}, z.core.$strict>>;
|
|
811
|
+
state: z.ZodEnum<{
|
|
812
|
+
changed: "changed";
|
|
813
|
+
matches: "matches";
|
|
814
|
+
provisional: "provisional";
|
|
815
|
+
}>;
|
|
816
|
+
trust: z.ZodInt;
|
|
817
|
+
top_categories: z.ZodArray<z.ZodObject<{
|
|
818
|
+
category: z.ZodEnum<{
|
|
819
|
+
code: "code";
|
|
820
|
+
conversation: "conversation";
|
|
821
|
+
data: "data";
|
|
822
|
+
math: "math";
|
|
823
|
+
operations: "operations";
|
|
824
|
+
other: "other";
|
|
825
|
+
research: "research";
|
|
826
|
+
writing: "writing";
|
|
827
|
+
}>;
|
|
828
|
+
score: z.ZodInt;
|
|
829
|
+
}, z.core.$strict>>;
|
|
251
830
|
operator: z.ZodObject<{
|
|
252
831
|
verified: z.ZodBoolean;
|
|
253
832
|
}, z.core.$strict>;
|
|
@@ -270,7 +849,7 @@ export declare const VerifiedCredentialPayloadV2: z.ZodObject<{
|
|
|
270
849
|
last_active: z.ZodNullable<z.ZodInt>;
|
|
271
850
|
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
272
851
|
}, z.core.$strict>;
|
|
273
|
-
export type
|
|
852
|
+
export type VerifiedCredentialPayloadV4 = z.infer<typeof VerifiedCredentialPayloadV4>;
|
|
274
853
|
export declare const SealPayload: z.ZodUnion<readonly [z.ZodObject<{
|
|
275
854
|
iss: z.ZodEnum<{
|
|
276
855
|
"sealkeeper.run": "sealkeeper.run";
|
|
@@ -293,7 +872,7 @@ export declare const SealPayload: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
293
872
|
provenance: "provenance";
|
|
294
873
|
reliability: "reliability";
|
|
295
874
|
safety: "safety";
|
|
296
|
-
}>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
875
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
297
876
|
counts: z.ZodObject<{
|
|
298
877
|
events: z.ZodInt;
|
|
299
878
|
history_days: z.ZodInt;
|
|
@@ -347,7 +926,139 @@ export declare const SealPayload: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
347
926
|
provenance: "provenance";
|
|
348
927
|
reliability: "reliability";
|
|
349
928
|
safety: "safety";
|
|
350
|
-
}>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
929
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
930
|
+
counts: z.ZodObject<{
|
|
931
|
+
events: z.ZodInt;
|
|
932
|
+
history_days: z.ZodInt;
|
|
933
|
+
verified_tasks: z.ZodInt;
|
|
934
|
+
seed_tasks: z.ZodInt;
|
|
935
|
+
server_checked_tasks: z.ZodInt;
|
|
936
|
+
confirmed_tasks: z.ZodInt;
|
|
937
|
+
distinct_operators: z.ZodInt;
|
|
938
|
+
safety_incidents_90d: z.ZodInt;
|
|
939
|
+
}, z.core.$strict>;
|
|
940
|
+
counted: z.ZodObject<{
|
|
941
|
+
verified_tasks: z.ZodInt;
|
|
942
|
+
seed_tasks: z.ZodInt;
|
|
943
|
+
server_checked_tasks: z.ZodInt;
|
|
944
|
+
confirmed_tasks: z.ZodInt;
|
|
945
|
+
}, z.core.$strict>;
|
|
946
|
+
operator: z.ZodObject<{
|
|
947
|
+
verified: z.ZodBoolean;
|
|
948
|
+
}, z.core.$strict>;
|
|
949
|
+
identity: z.ZodArray<z.ZodObject<{
|
|
950
|
+
provider: z.ZodURL;
|
|
951
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
952
|
+
kya: "kya";
|
|
953
|
+
oidc: "oidc";
|
|
954
|
+
saml: "saml";
|
|
955
|
+
verifiable_credential: "verifiable_credential";
|
|
956
|
+
}>, z.ZodURL]>;
|
|
957
|
+
ref: z.ZodString;
|
|
958
|
+
subject_hash: z.ZodString;
|
|
959
|
+
attested_at: z.ZodInt;
|
|
960
|
+
scope: z.ZodEnum<{
|
|
961
|
+
agent: "agent";
|
|
962
|
+
operator: "operator";
|
|
963
|
+
}>;
|
|
964
|
+
}, z.core.$strict>>;
|
|
965
|
+
last_active: z.ZodNullable<z.ZodInt>;
|
|
966
|
+
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
967
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
968
|
+
iss: z.ZodEnum<{
|
|
969
|
+
"sealkeeper.run": "sealkeeper.run";
|
|
970
|
+
"vouched.run": "vouched.run";
|
|
971
|
+
}>;
|
|
972
|
+
sub: z.ZodString;
|
|
973
|
+
ver: z.ZodLiteral<3>;
|
|
974
|
+
iat: z.ZodInt;
|
|
975
|
+
exp: z.ZodInt;
|
|
976
|
+
agent_version: z.ZodString;
|
|
977
|
+
level: z.ZodEnum<{
|
|
978
|
+
bronze: "bronze";
|
|
979
|
+
gold: "gold";
|
|
980
|
+
none: "none";
|
|
981
|
+
silver: "silver";
|
|
982
|
+
}>;
|
|
983
|
+
scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
|
|
984
|
+
cost_latency: "cost_latency";
|
|
985
|
+
provenance: "provenance";
|
|
986
|
+
reliability: "reliability";
|
|
987
|
+
safety: "safety";
|
|
988
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
989
|
+
counts: z.ZodObject<{
|
|
990
|
+
events: z.ZodInt;
|
|
991
|
+
history_days: z.ZodInt;
|
|
992
|
+
verified_tasks: z.ZodInt;
|
|
993
|
+
seed_tasks: z.ZodInt;
|
|
994
|
+
server_checked_tasks: z.ZodInt;
|
|
995
|
+
confirmed_tasks: z.ZodInt;
|
|
996
|
+
distinct_operators: z.ZodInt;
|
|
997
|
+
safety_incidents_90d: z.ZodInt;
|
|
998
|
+
posted_tasks: z.ZodInt;
|
|
999
|
+
posted_distinct_operators: z.ZodInt;
|
|
1000
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
1001
|
+
}, z.core.$strict>;
|
|
1002
|
+
counted: z.ZodObject<{
|
|
1003
|
+
verified_tasks: z.ZodInt;
|
|
1004
|
+
seed_tasks: z.ZodInt;
|
|
1005
|
+
server_checked_tasks: z.ZodInt;
|
|
1006
|
+
confirmed_tasks: z.ZodInt;
|
|
1007
|
+
posted_tasks: z.ZodInt;
|
|
1008
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
1009
|
+
}, z.core.$strict>;
|
|
1010
|
+
fingerprint: z.ZodNullable<z.ZodObject<{
|
|
1011
|
+
hash: z.ZodString;
|
|
1012
|
+
at: z.ZodInt;
|
|
1013
|
+
}, z.core.$strict>>;
|
|
1014
|
+
state: z.ZodEnum<{
|
|
1015
|
+
changed: "changed";
|
|
1016
|
+
matches: "matches";
|
|
1017
|
+
provisional: "provisional";
|
|
1018
|
+
}>;
|
|
1019
|
+
operator: z.ZodObject<{
|
|
1020
|
+
verified: z.ZodBoolean;
|
|
1021
|
+
}, z.core.$strict>;
|
|
1022
|
+
identity: z.ZodArray<z.ZodObject<{
|
|
1023
|
+
provider: z.ZodURL;
|
|
1024
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
1025
|
+
kya: "kya";
|
|
1026
|
+
oidc: "oidc";
|
|
1027
|
+
saml: "saml";
|
|
1028
|
+
verifiable_credential: "verifiable_credential";
|
|
1029
|
+
}>, z.ZodURL]>;
|
|
1030
|
+
ref: z.ZodString;
|
|
1031
|
+
subject_hash: z.ZodString;
|
|
1032
|
+
attested_at: z.ZodInt;
|
|
1033
|
+
scope: z.ZodEnum<{
|
|
1034
|
+
agent: "agent";
|
|
1035
|
+
operator: "operator";
|
|
1036
|
+
}>;
|
|
1037
|
+
}, z.core.$strict>>;
|
|
1038
|
+
last_active: z.ZodNullable<z.ZodInt>;
|
|
1039
|
+
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
1040
|
+
}, z.core.$strict>, z.ZodObject<{
|
|
1041
|
+
iss: z.ZodEnum<{
|
|
1042
|
+
"sealkeeper.run": "sealkeeper.run";
|
|
1043
|
+
"vouched.run": "vouched.run";
|
|
1044
|
+
}>;
|
|
1045
|
+
sub: z.ZodString;
|
|
1046
|
+
ver: z.ZodLiteral<4>;
|
|
1047
|
+
iat: z.ZodInt;
|
|
1048
|
+
exp: z.ZodInt;
|
|
1049
|
+
agent_version: z.ZodString;
|
|
1050
|
+
level: z.ZodEnum<{
|
|
1051
|
+
bronze: "bronze";
|
|
1052
|
+
gold: "gold";
|
|
1053
|
+
none: "none";
|
|
1054
|
+
silver: "silver";
|
|
1055
|
+
}>;
|
|
1056
|
+
scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
|
|
1057
|
+
cost_latency: "cost_latency";
|
|
1058
|
+
provenance: "provenance";
|
|
1059
|
+
reliability: "reliability";
|
|
1060
|
+
safety: "safety";
|
|
1061
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:math" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
351
1062
|
counts: z.ZodObject<{
|
|
352
1063
|
events: z.ZodInt;
|
|
353
1064
|
history_days: z.ZodInt;
|
|
@@ -357,13 +1068,41 @@ export declare const SealPayload: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
357
1068
|
confirmed_tasks: z.ZodInt;
|
|
358
1069
|
distinct_operators: z.ZodInt;
|
|
359
1070
|
safety_incidents_90d: z.ZodInt;
|
|
1071
|
+
posted_tasks: z.ZodInt;
|
|
1072
|
+
posted_distinct_operators: z.ZodInt;
|
|
1073
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
360
1074
|
}, z.core.$strict>;
|
|
361
1075
|
counted: z.ZodObject<{
|
|
362
1076
|
verified_tasks: z.ZodInt;
|
|
363
1077
|
seed_tasks: z.ZodInt;
|
|
364
1078
|
server_checked_tasks: z.ZodInt;
|
|
365
1079
|
confirmed_tasks: z.ZodInt;
|
|
1080
|
+
posted_tasks: z.ZodInt;
|
|
1081
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
366
1082
|
}, z.core.$strict>;
|
|
1083
|
+
fingerprint: z.ZodNullable<z.ZodObject<{
|
|
1084
|
+
hash: z.ZodString;
|
|
1085
|
+
at: z.ZodInt;
|
|
1086
|
+
}, z.core.$strict>>;
|
|
1087
|
+
state: z.ZodEnum<{
|
|
1088
|
+
changed: "changed";
|
|
1089
|
+
matches: "matches";
|
|
1090
|
+
provisional: "provisional";
|
|
1091
|
+
}>;
|
|
1092
|
+
trust: z.ZodInt;
|
|
1093
|
+
top_categories: z.ZodArray<z.ZodObject<{
|
|
1094
|
+
category: z.ZodEnum<{
|
|
1095
|
+
code: "code";
|
|
1096
|
+
conversation: "conversation";
|
|
1097
|
+
data: "data";
|
|
1098
|
+
math: "math";
|
|
1099
|
+
operations: "operations";
|
|
1100
|
+
other: "other";
|
|
1101
|
+
research: "research";
|
|
1102
|
+
writing: "writing";
|
|
1103
|
+
}>;
|
|
1104
|
+
score: z.ZodInt;
|
|
1105
|
+
}, z.core.$strict>>;
|
|
367
1106
|
operator: z.ZodObject<{
|
|
368
1107
|
verified: z.ZodBoolean;
|
|
369
1108
|
}, z.core.$strict>;
|
|
@@ -437,13 +1176,14 @@ export declare const SealExtension: z.ZodObject<{
|
|
|
437
1176
|
description: z.ZodString;
|
|
438
1177
|
params: z.ZodObject<{
|
|
439
1178
|
credential: z.ZodString;
|
|
1179
|
+
handshake: z.ZodOptional<z.ZodString>;
|
|
440
1180
|
}, z.core.$strict>;
|
|
441
1181
|
}, z.core.$strict>;
|
|
442
1182
|
export type SealExtension = z.infer<typeof SealExtension>;
|
|
443
1183
|
export declare const credentialExtension: (jws: string) => CredentialExtension;
|
|
444
1184
|
export declare const legacySealExtension: (jws: string) => LegacySealExtension;
|
|
445
|
-
export declare const sealExtension: (jws: string) => SealExtension;
|
|
446
|
-
export declare const sealExtensions: (jws: string) => ({
|
|
1185
|
+
export declare const sealExtension: (jws: string, handshake?: string) => SealExtension;
|
|
1186
|
+
export declare const sealExtensions: (jws: string, handshake?: string) => ({
|
|
447
1187
|
uri: "https://vouched.run/ext/credential/v1";
|
|
448
1188
|
description: string;
|
|
449
1189
|
params: {
|
|
@@ -460,6 +1200,7 @@ export declare const sealExtensions: (jws: string) => ({
|
|
|
460
1200
|
description: string;
|
|
461
1201
|
params: {
|
|
462
1202
|
credential: string;
|
|
1203
|
+
handshake?: string | undefined;
|
|
463
1204
|
};
|
|
464
1205
|
})[];
|
|
465
1206
|
export declare const A2A_PROTOCOL_VERSION = "0.3.0";
|
|
@@ -483,6 +1224,7 @@ export declare const AgentCard: z.ZodObject<{
|
|
|
483
1224
|
description: z.ZodString;
|
|
484
1225
|
params: z.ZodObject<{
|
|
485
1226
|
credential: z.ZodString;
|
|
1227
|
+
handshake: z.ZodOptional<z.ZodString>;
|
|
486
1228
|
}, z.core.$strict>;
|
|
487
1229
|
}, z.core.$strict>, z.ZodObject<{
|
|
488
1230
|
uri: z.ZodLiteral<"https://vouched.run/ext/seal/v1">;
|