@sealkeeper/schema 0.4.8 → 0.5.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/api.d.ts +4214 -899
- package/dist/api.js +1485 -48
- package/dist/blocks.d.ts +21 -0
- package/dist/blocks.js +43 -0
- package/dist/challenge-next.d.ts +130 -0
- package/dist/challenge-next.js +52 -0
- package/dist/cli-version.d.ts +7 -0
- package/dist/cli-version.js +89 -0
- package/dist/core.d.ts +163 -0
- package/dist/core.js +161 -0
- package/dist/credential.d.ts +518 -10
- package/dist/credential.js +163 -30
- package/dist/dimensions.d.ts +6 -6
- package/dist/dimensions.js +11 -7
- package/dist/duel-next.d.ts +232 -0
- package/dist/duel-next.js +111 -0
- package/dist/fingerprint.d.ts +1 -0
- package/dist/fingerprint.js +12 -0
- package/dist/game.d.ts +102 -0
- package/dist/game.js +205 -0
- package/dist/goal.d.ts +7 -1
- package/dist/goal.js +26 -6
- package/dist/handshake.js +5 -4
- package/dist/index.d.ts +10 -0
- package/dist/index.js +10 -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/routine.d.ts +186 -0
- package/dist/routine.js +227 -0
- package/dist/seal-conformance.js +120 -3
- package/dist/standing.d.ts +29 -0
- package/dist/standing.js +131 -17
- package/dist/status.d.ts +382 -0
- package/dist/status.js +98 -0
- package/dist/task-templates.d.ts +3 -1
- package/dist/task-templates.js +14 -1
- package/dist/tasks.d.ts +57 -3
- package/dist/tasks.js +135 -8
- package/dist/top-dimensions.js +7 -3
- package/package.json +2 -2
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, 3];
|
|
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";
|
|
@@ -52,6 +56,40 @@ export declare const SealFingerprint: z.ZodNullable<z.ZodObject<{
|
|
|
52
56
|
at: z.ZodInt;
|
|
53
57
|
}, z.core.$strict>>;
|
|
54
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
|
+
};
|
|
55
93
|
export declare const CredentialPayload: z.ZodObject<{
|
|
56
94
|
iss: z.ZodLiteral<"sealkeeper.run">;
|
|
57
95
|
sub: z.ZodString;
|
|
@@ -71,7 +109,7 @@ export declare const CredentialPayload: z.ZodObject<{
|
|
|
71
109
|
provenance: "provenance";
|
|
72
110
|
reliability: "reliability";
|
|
73
111
|
safety: "safety";
|
|
74
|
-
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
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>>;
|
|
75
113
|
counts: z.ZodObject<{
|
|
76
114
|
events: z.ZodInt;
|
|
77
115
|
history_days: z.ZodInt;
|
|
@@ -124,7 +162,7 @@ export declare const CredentialPayloadV2: z.ZodObject<{
|
|
|
124
162
|
provenance: "provenance";
|
|
125
163
|
reliability: "reliability";
|
|
126
164
|
safety: "safety";
|
|
127
|
-
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
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>>;
|
|
128
166
|
counts: z.ZodObject<{
|
|
129
167
|
events: z.ZodInt;
|
|
130
168
|
history_days: z.ZodInt;
|
|
@@ -182,7 +220,7 @@ export declare const CredentialPayloadV3: z.ZodObject<{
|
|
|
182
220
|
provenance: "provenance";
|
|
183
221
|
reliability: "reliability";
|
|
184
222
|
safety: "safety";
|
|
185
|
-
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
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>>;
|
|
186
224
|
counts: z.ZodObject<{
|
|
187
225
|
events: z.ZodInt;
|
|
188
226
|
history_days: z.ZodInt;
|
|
@@ -236,6 +274,300 @@ export declare const CredentialPayloadV3: z.ZodObject<{
|
|
|
236
274
|
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
237
275
|
}, z.core.$strict>;
|
|
238
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'];
|
|
239
571
|
export declare const VerifiedCredentialPayload: z.ZodObject<{
|
|
240
572
|
iss: z.ZodEnum<{
|
|
241
573
|
"sealkeeper.run": "sealkeeper.run";
|
|
@@ -258,7 +590,7 @@ export declare const VerifiedCredentialPayload: z.ZodObject<{
|
|
|
258
590
|
provenance: "provenance";
|
|
259
591
|
reliability: "reliability";
|
|
260
592
|
safety: "safety";
|
|
261
|
-
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
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>>;
|
|
262
594
|
counts: z.ZodObject<{
|
|
263
595
|
events: z.ZodInt;
|
|
264
596
|
history_days: z.ZodInt;
|
|
@@ -314,7 +646,7 @@ export declare const VerifiedCredentialPayloadV2: z.ZodObject<{
|
|
|
314
646
|
provenance: "provenance";
|
|
315
647
|
reliability: "reliability";
|
|
316
648
|
safety: "safety";
|
|
317
|
-
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">, 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>>;
|
|
318
650
|
counts: z.ZodObject<{
|
|
319
651
|
events: z.ZodInt;
|
|
320
652
|
history_days: z.ZodInt;
|
|
@@ -375,7 +707,7 @@ export declare const VerifiedCredentialPayloadV3: z.ZodObject<{
|
|
|
375
707
|
provenance: "provenance";
|
|
376
708
|
reliability: "reliability";
|
|
377
709
|
safety: "safety";
|
|
378
|
-
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">, 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>>;
|
|
379
711
|
counts: z.ZodObject<{
|
|
380
712
|
events: z.ZodInt;
|
|
381
713
|
history_days: z.ZodInt;
|
|
@@ -429,6 +761,95 @@ export declare const VerifiedCredentialPayloadV3: z.ZodObject<{
|
|
|
429
761
|
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
430
762
|
}, z.core.$strict>;
|
|
431
763
|
export type VerifiedCredentialPayloadV3 = z.infer<typeof VerifiedCredentialPayloadV3>;
|
|
764
|
+
export declare const VerifiedCredentialPayloadV4: z.ZodObject<{
|
|
765
|
+
iss: z.ZodEnum<{
|
|
766
|
+
"sealkeeper.run": "sealkeeper.run";
|
|
767
|
+
"vouched.run": "vouched.run";
|
|
768
|
+
}>;
|
|
769
|
+
sub: z.ZodString;
|
|
770
|
+
ver: z.ZodLiteral<4>;
|
|
771
|
+
iat: z.ZodInt;
|
|
772
|
+
exp: z.ZodInt;
|
|
773
|
+
agent_version: z.ZodString;
|
|
774
|
+
level: z.ZodEnum<{
|
|
775
|
+
bronze: "bronze";
|
|
776
|
+
gold: "gold";
|
|
777
|
+
none: "none";
|
|
778
|
+
silver: "silver";
|
|
779
|
+
}>;
|
|
780
|
+
scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
|
|
781
|
+
cost_latency: "cost_latency";
|
|
782
|
+
provenance: "provenance";
|
|
783
|
+
reliability: "reliability";
|
|
784
|
+
safety: "safety";
|
|
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>>;
|
|
786
|
+
counts: z.ZodObject<{
|
|
787
|
+
events: z.ZodInt;
|
|
788
|
+
history_days: z.ZodInt;
|
|
789
|
+
verified_tasks: z.ZodInt;
|
|
790
|
+
seed_tasks: z.ZodInt;
|
|
791
|
+
server_checked_tasks: z.ZodInt;
|
|
792
|
+
confirmed_tasks: z.ZodInt;
|
|
793
|
+
distinct_operators: z.ZodInt;
|
|
794
|
+
safety_incidents_90d: z.ZodInt;
|
|
795
|
+
posted_tasks: z.ZodInt;
|
|
796
|
+
posted_distinct_operators: z.ZodInt;
|
|
797
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
798
|
+
}, z.core.$strict>;
|
|
799
|
+
counted: z.ZodObject<{
|
|
800
|
+
verified_tasks: z.ZodInt;
|
|
801
|
+
seed_tasks: z.ZodInt;
|
|
802
|
+
server_checked_tasks: z.ZodInt;
|
|
803
|
+
confirmed_tasks: z.ZodInt;
|
|
804
|
+
posted_tasks: z.ZodInt;
|
|
805
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
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>>;
|
|
830
|
+
operator: z.ZodObject<{
|
|
831
|
+
verified: z.ZodBoolean;
|
|
832
|
+
}, z.core.$strict>;
|
|
833
|
+
identity: z.ZodArray<z.ZodObject<{
|
|
834
|
+
provider: z.ZodURL;
|
|
835
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
836
|
+
kya: "kya";
|
|
837
|
+
oidc: "oidc";
|
|
838
|
+
saml: "saml";
|
|
839
|
+
verifiable_credential: "verifiable_credential";
|
|
840
|
+
}>, z.ZodURL]>;
|
|
841
|
+
ref: z.ZodString;
|
|
842
|
+
subject_hash: z.ZodString;
|
|
843
|
+
attested_at: z.ZodInt;
|
|
844
|
+
scope: z.ZodEnum<{
|
|
845
|
+
agent: "agent";
|
|
846
|
+
operator: "operator";
|
|
847
|
+
}>;
|
|
848
|
+
}, z.core.$strict>>;
|
|
849
|
+
last_active: z.ZodNullable<z.ZodInt>;
|
|
850
|
+
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
851
|
+
}, z.core.$strict>;
|
|
852
|
+
export type VerifiedCredentialPayloadV4 = z.infer<typeof VerifiedCredentialPayloadV4>;
|
|
432
853
|
export declare const SealPayload: z.ZodUnion<readonly [z.ZodObject<{
|
|
433
854
|
iss: z.ZodEnum<{
|
|
434
855
|
"sealkeeper.run": "sealkeeper.run";
|
|
@@ -451,7 +872,7 @@ export declare const SealPayload: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
451
872
|
provenance: "provenance";
|
|
452
873
|
reliability: "reliability";
|
|
453
874
|
safety: "safety";
|
|
454
|
-
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">, 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>>;
|
|
455
876
|
counts: z.ZodObject<{
|
|
456
877
|
events: z.ZodInt;
|
|
457
878
|
history_days: z.ZodInt;
|
|
@@ -505,7 +926,7 @@ export declare const SealPayload: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
505
926
|
provenance: "provenance";
|
|
506
927
|
reliability: "reliability";
|
|
507
928
|
safety: "safety";
|
|
508
|
-
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">, 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>>;
|
|
509
930
|
counts: z.ZodObject<{
|
|
510
931
|
events: z.ZodInt;
|
|
511
932
|
history_days: z.ZodInt;
|
|
@@ -564,7 +985,80 @@ export declare const SealPayload: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
564
985
|
provenance: "provenance";
|
|
565
986
|
reliability: "reliability";
|
|
566
987
|
safety: "safety";
|
|
567
|
-
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
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>>;
|
|
568
1062
|
counts: z.ZodObject<{
|
|
569
1063
|
events: z.ZodInt;
|
|
570
1064
|
history_days: z.ZodInt;
|
|
@@ -595,6 +1089,20 @@ export declare const SealPayload: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
595
1089
|
matches: "matches";
|
|
596
1090
|
provisional: "provisional";
|
|
597
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>>;
|
|
598
1106
|
operator: z.ZodObject<{
|
|
599
1107
|
verified: z.ZodBoolean;
|
|
600
1108
|
}, z.core.$strict>;
|