@sealkeeper/schema 0.4.6 → 0.4.8
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/README.md +2 -2
- package/dist/api.d.ts +787 -35
- package/dist/api.js +357 -44
- package/dist/conformance.d.ts +4 -0
- package/dist/conformance.js +7 -0
- package/dist/credential.d.ts +196 -27
- package/dist/credential.js +128 -80
- package/dist/dimensions.d.ts +16 -3
- package/dist/dimensions.js +48 -2
- package/dist/events.d.ts +1 -0
- package/dist/events.js +13 -1
- package/dist/fingerprint-conformance.d.ts +17 -0
- package/dist/fingerprint-conformance.js +83 -0
- package/dist/fingerprint.d.ts +132 -0
- package/dist/fingerprint.js +166 -0
- package/dist/goal.d.ts +16 -1
- package/dist/goal.js +29 -6
- 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 +187 -0
- package/dist/hidden.d.ts +1 -0
- package/dist/hidden.js +5 -0
- package/dist/index.d.ts +4 -1
- package/dist/index.js +4 -1
- package/dist/moderation.js +1 -4
- package/dist/policy.d.ts +1 -1
- package/dist/policy.js +1 -1
- package/dist/seal-conformance.js +148 -4
- package/dist/seal-verify.d.ts +21 -0
- package/dist/seal-verify.js +63 -0
- package/dist/standing.d.ts +61 -0
- package/dist/standing.js +132 -4
- package/dist/task-templates.d.ts +46 -0
- package/dist/task-templates.js +501 -0
- package/dist/tasks.d.ts +43 -0
- package/dist/tasks.js +103 -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 +12 -6
- package/package.json +4 -8
- package/dist/db/agent-milestones.d.ts +0 -75
- package/dist/db/agent-milestones.js +0 -16
- package/dist/db/agent-renames.d.ts +0 -126
- package/dist/db/agent-renames.js +0 -20
- package/dist/db/agents.d.ts +0 -351
- package/dist/db/agents.js +0 -99
- package/dist/db/client.d.ts +0 -2561
- package/dist/db/client.js +0 -61
- package/dist/db/credentials.d.ts +0 -143
- package/dist/db/credentials.js +0 -16
- package/dist/db/deleted-operators.d.ts +0 -75
- package/dist/db/deleted-operators.js +0 -13
- package/dist/db/events.d.ts +0 -160
- package/dist/db/events.js +0 -41
- package/dist/db/feed-items.d.ts +0 -109
- package/dist/db/feed-items.js +0 -21
- package/dist/db/index.d.ts +0 -76
- package/dist/db/index.js +0 -28
- package/dist/db/migrate.d.ts +0 -1
- package/dist/db/migrate.js +0 -34
- package/dist/db/migrator.d.ts +0 -6
- package/dist/db/migrator.js +0 -36
- package/dist/db/operator-identities.d.ts +0 -211
- package/dist/db/operator-identities.js +0 -49
- package/dist/db/operator-level-grants.d.ts +0 -109
- package/dist/db/operator-level-grants.js +0 -30
- package/dist/db/operator-slugs.d.ts +0 -92
- package/dist/db/operator-slugs.js +0 -25
- package/dist/db/operators.d.ts +0 -228
- package/dist/db/operators.js +0 -39
- package/dist/db/quota-counters.d.ts +0 -109
- package/dist/db/quota-counters.js +0 -17
- package/dist/db/ratings.d.ts +0 -160
- package/dist/db/ratings.js +0 -27
- package/dist/db/scores.d.ts +0 -160
- package/dist/db/scores.js +0 -15
- package/dist/db/standing.d.ts +0 -264
- package/dist/db/standing.js +0 -34
- package/dist/db/task-claim-failures.d.ts +0 -143
- package/dist/db/task-claim-failures.js +0 -37
- package/dist/db/task-outcomes.d.ts +0 -145
- package/dist/db/task-outcomes.js +0 -25
- package/dist/db/tasks.d.ts +0 -381
- package/dist/db/tasks.js +0 -106
- package/dist/db/timestamps.d.ts +0 -4
- package/dist/db/timestamps.js +0 -24
- package/dist/db/url.d.ts +0 -12
- package/dist/db/url.js +0 -25
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
// The ./conformance entry. Fixtures other verifiers and solvers are held
|
|
2
|
+
// to, kept out of the root entry so the CLI bundle and the public API stay
|
|
3
|
+
// free of them.
|
|
4
|
+
export * from './fingerprint-conformance.js';
|
|
5
|
+
export * from './handshake-conformance.js';
|
|
6
|
+
export * from './seal-conformance.js';
|
|
7
|
+
export * from './template-conformance.js';
|
package/dist/credential.d.ts
CHANGED
|
@@ -7,15 +7,13 @@ export declare function acceptedIssuer(iss: unknown, nowSeconds: number): boolea
|
|
|
7
7
|
export declare const WELL_KNOWN_PATH = "/.well-known/seal.json";
|
|
8
8
|
export declare const LEGACY_WELL_KNOWN_PATH = "/.well-known/vouched.json";
|
|
9
9
|
export declare const WELL_KNOWN_URL = "https://sealkeeper.run/.well-known/seal.json";
|
|
10
|
-
export declare const LEGACY_WELL_KNOWN_URL = "https://vouched.run/.well-known/vouched.json";
|
|
11
10
|
export declare const SEAL_EXTENSION_URI = "https://sealkeeper.run/ext/seal/v1";
|
|
12
11
|
export declare const LEGACY_SEAL_EXTENSION_URI = "https://vouched.run/ext/seal/v1";
|
|
13
12
|
export declare const CREDENTIAL_EXTENSION_URI = "https://vouched.run/ext/credential/v1";
|
|
14
13
|
export declare const LEGACY_SEAL_EXTENSION_URIS: readonly string[];
|
|
15
14
|
export declare const SEAL_EXTENSION_URIS: readonly string[];
|
|
16
15
|
export declare const SEAL_VERSION = 1;
|
|
17
|
-
export declare const SEAL_VERSIONS: readonly [1, 2];
|
|
18
|
-
export declare const LEGACY_UNTIL: number;
|
|
16
|
+
export declare const SEAL_VERSIONS: readonly [1, 2, 3];
|
|
19
17
|
export declare const IdentityKind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
20
18
|
kya: "kya";
|
|
21
19
|
oidc: "oidc";
|
|
@@ -43,6 +41,17 @@ export type IdentityReference = z.infer<typeof IdentityReference>;
|
|
|
43
41
|
export declare const operatorVerified: (identity: readonly IdentityReference[]) => boolean;
|
|
44
42
|
export declare const SEAL_MAX_TTL_SECONDS: number;
|
|
45
43
|
export declare const SEAL_CLOCK_SKEW_SECONDS = 300;
|
|
44
|
+
export declare const SealState: z.ZodEnum<{
|
|
45
|
+
changed: "changed";
|
|
46
|
+
matches: "matches";
|
|
47
|
+
provisional: "provisional";
|
|
48
|
+
}>;
|
|
49
|
+
export type SealState = z.infer<typeof SealState>;
|
|
50
|
+
export declare const SealFingerprint: z.ZodNullable<z.ZodObject<{
|
|
51
|
+
hash: z.ZodString;
|
|
52
|
+
at: z.ZodInt;
|
|
53
|
+
}, z.core.$strict>>;
|
|
54
|
+
export type SealFingerprint = z.infer<typeof SealFingerprint>;
|
|
46
55
|
export declare const CredentialPayload: z.ZodObject<{
|
|
47
56
|
iss: z.ZodLiteral<"sealkeeper.run">;
|
|
48
57
|
sub: z.ZodString;
|
|
@@ -62,7 +71,7 @@ export declare const CredentialPayload: z.ZodObject<{
|
|
|
62
71
|
provenance: "provenance";
|
|
63
72
|
reliability: "reliability";
|
|
64
73
|
safety: "safety";
|
|
65
|
-
}>, z.ZodTemplateLiteral
|
|
74
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
66
75
|
counts: z.ZodObject<{
|
|
67
76
|
events: z.ZodInt;
|
|
68
77
|
history_days: z.ZodInt;
|
|
@@ -115,7 +124,7 @@ export declare const CredentialPayloadV2: z.ZodObject<{
|
|
|
115
124
|
provenance: "provenance";
|
|
116
125
|
reliability: "reliability";
|
|
117
126
|
safety: "safety";
|
|
118
|
-
}>, z.ZodTemplateLiteral
|
|
127
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
119
128
|
counts: z.ZodObject<{
|
|
120
129
|
events: z.ZodInt;
|
|
121
130
|
history_days: z.ZodInt;
|
|
@@ -155,25 +164,78 @@ export declare const CredentialPayloadV2: z.ZodObject<{
|
|
|
155
164
|
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
156
165
|
}, z.core.$strict>;
|
|
157
166
|
export type CredentialPayloadV2 = z.infer<typeof CredentialPayloadV2>;
|
|
158
|
-
export declare const
|
|
167
|
+
export declare const CredentialPayloadV3: z.ZodObject<{
|
|
159
168
|
iss: z.ZodLiteral<"sealkeeper.run">;
|
|
160
169
|
sub: z.ZodString;
|
|
170
|
+
ver: z.ZodLiteral<3>;
|
|
161
171
|
iat: z.ZodInt;
|
|
162
172
|
exp: z.ZodInt;
|
|
163
|
-
|
|
173
|
+
agent_version: z.ZodString;
|
|
174
|
+
level: z.ZodEnum<{
|
|
175
|
+
bronze: "bronze";
|
|
176
|
+
gold: "gold";
|
|
177
|
+
none: "none";
|
|
178
|
+
silver: "silver";
|
|
179
|
+
}>;
|
|
164
180
|
scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
|
|
165
181
|
cost_latency: "cost_latency";
|
|
166
182
|
provenance: "provenance";
|
|
167
183
|
reliability: "reliability";
|
|
168
184
|
safety: "safety";
|
|
169
|
-
}>, z.ZodTemplateLiteral
|
|
185
|
+
}>, z.ZodTemplateLiteral<"competence:code" | "competence:conversation" | "competence:data" | "competence:operations" | "competence:other" | "competence:research" | "competence:writing">]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
170
186
|
counts: z.ZodObject<{
|
|
171
187
|
events: z.ZodInt;
|
|
188
|
+
history_days: z.ZodInt;
|
|
172
189
|
verified_tasks: z.ZodInt;
|
|
173
|
-
seed_tasks: z.
|
|
190
|
+
seed_tasks: z.ZodInt;
|
|
191
|
+
server_checked_tasks: z.ZodInt;
|
|
192
|
+
confirmed_tasks: z.ZodInt;
|
|
193
|
+
distinct_operators: z.ZodInt;
|
|
194
|
+
safety_incidents_90d: z.ZodInt;
|
|
195
|
+
posted_tasks: z.ZodInt;
|
|
196
|
+
posted_distinct_operators: z.ZodInt;
|
|
197
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
174
198
|
}, z.core.$strict>;
|
|
199
|
+
counted: z.ZodObject<{
|
|
200
|
+
verified_tasks: z.ZodInt;
|
|
201
|
+
seed_tasks: z.ZodInt;
|
|
202
|
+
server_checked_tasks: z.ZodInt;
|
|
203
|
+
confirmed_tasks: z.ZodInt;
|
|
204
|
+
posted_tasks: z.ZodInt;
|
|
205
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
206
|
+
}, z.core.$strict>;
|
|
207
|
+
fingerprint: z.ZodNullable<z.ZodObject<{
|
|
208
|
+
hash: z.ZodString;
|
|
209
|
+
at: z.ZodInt;
|
|
210
|
+
}, z.core.$strict>>;
|
|
211
|
+
state: z.ZodEnum<{
|
|
212
|
+
changed: "changed";
|
|
213
|
+
matches: "matches";
|
|
214
|
+
provisional: "provisional";
|
|
215
|
+
}>;
|
|
216
|
+
operator: z.ZodObject<{
|
|
217
|
+
verified: z.ZodBoolean;
|
|
218
|
+
}, z.core.$strict>;
|
|
219
|
+
identity: z.ZodArray<z.ZodObject<{
|
|
220
|
+
provider: z.ZodURL;
|
|
221
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
222
|
+
kya: "kya";
|
|
223
|
+
oidc: "oidc";
|
|
224
|
+
saml: "saml";
|
|
225
|
+
verifiable_credential: "verifiable_credential";
|
|
226
|
+
}>, z.ZodURL]>;
|
|
227
|
+
ref: z.ZodString;
|
|
228
|
+
subject_hash: z.ZodString;
|
|
229
|
+
attested_at: z.ZodInt;
|
|
230
|
+
scope: z.ZodEnum<{
|
|
231
|
+
agent: "agent";
|
|
232
|
+
operator: "operator";
|
|
233
|
+
}>;
|
|
234
|
+
}, z.core.$strict>>;
|
|
235
|
+
last_active: z.ZodNullable<z.ZodInt>;
|
|
236
|
+
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
175
237
|
}, z.core.$strict>;
|
|
176
|
-
export type
|
|
238
|
+
export type CredentialPayloadV3 = z.infer<typeof CredentialPayloadV3>;
|
|
177
239
|
export declare const VerifiedCredentialPayload: z.ZodObject<{
|
|
178
240
|
iss: z.ZodEnum<{
|
|
179
241
|
"sealkeeper.run": "sealkeeper.run";
|
|
@@ -196,7 +258,7 @@ export declare const VerifiedCredentialPayload: z.ZodObject<{
|
|
|
196
258
|
provenance: "provenance";
|
|
197
259
|
reliability: "reliability";
|
|
198
260
|
safety: "safety";
|
|
199
|
-
}>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
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>>;
|
|
200
262
|
counts: z.ZodObject<{
|
|
201
263
|
events: z.ZodInt;
|
|
202
264
|
history_days: z.ZodInt;
|
|
@@ -252,7 +314,7 @@ export declare const VerifiedCredentialPayloadV2: z.ZodObject<{
|
|
|
252
314
|
provenance: "provenance";
|
|
253
315
|
reliability: "reliability";
|
|
254
316
|
safety: "safety";
|
|
255
|
-
}>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
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>>;
|
|
256
318
|
counts: z.ZodObject<{
|
|
257
319
|
events: z.ZodInt;
|
|
258
320
|
history_days: z.ZodInt;
|
|
@@ -292,28 +354,81 @@ export declare const VerifiedCredentialPayloadV2: z.ZodObject<{
|
|
|
292
354
|
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
293
355
|
}, z.core.$strict>;
|
|
294
356
|
export type VerifiedCredentialPayloadV2 = z.infer<typeof VerifiedCredentialPayloadV2>;
|
|
295
|
-
export declare const
|
|
357
|
+
export declare const VerifiedCredentialPayloadV3: z.ZodObject<{
|
|
296
358
|
iss: z.ZodEnum<{
|
|
297
359
|
"sealkeeper.run": "sealkeeper.run";
|
|
298
360
|
"vouched.run": "vouched.run";
|
|
299
361
|
}>;
|
|
300
362
|
sub: z.ZodString;
|
|
363
|
+
ver: z.ZodLiteral<3>;
|
|
301
364
|
iat: z.ZodInt;
|
|
302
365
|
exp: z.ZodInt;
|
|
303
|
-
|
|
366
|
+
agent_version: z.ZodString;
|
|
367
|
+
level: z.ZodEnum<{
|
|
368
|
+
bronze: "bronze";
|
|
369
|
+
gold: "gold";
|
|
370
|
+
none: "none";
|
|
371
|
+
silver: "silver";
|
|
372
|
+
}>;
|
|
304
373
|
scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
|
|
305
374
|
cost_latency: "cost_latency";
|
|
306
375
|
provenance: "provenance";
|
|
307
376
|
reliability: "reliability";
|
|
308
377
|
safety: "safety";
|
|
309
|
-
}>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
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>>;
|
|
310
379
|
counts: z.ZodObject<{
|
|
311
380
|
events: z.ZodInt;
|
|
381
|
+
history_days: z.ZodInt;
|
|
382
|
+
verified_tasks: z.ZodInt;
|
|
383
|
+
seed_tasks: z.ZodInt;
|
|
384
|
+
server_checked_tasks: z.ZodInt;
|
|
385
|
+
confirmed_tasks: z.ZodInt;
|
|
386
|
+
distinct_operators: z.ZodInt;
|
|
387
|
+
safety_incidents_90d: z.ZodInt;
|
|
388
|
+
posted_tasks: z.ZodInt;
|
|
389
|
+
posted_distinct_operators: z.ZodInt;
|
|
390
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
391
|
+
}, z.core.$strict>;
|
|
392
|
+
counted: z.ZodObject<{
|
|
312
393
|
verified_tasks: z.ZodInt;
|
|
313
|
-
seed_tasks: z.
|
|
394
|
+
seed_tasks: z.ZodInt;
|
|
395
|
+
server_checked_tasks: z.ZodInt;
|
|
396
|
+
confirmed_tasks: z.ZodInt;
|
|
397
|
+
posted_tasks: z.ZodInt;
|
|
398
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
314
399
|
}, z.core.$strict>;
|
|
400
|
+
fingerprint: z.ZodNullable<z.ZodObject<{
|
|
401
|
+
hash: z.ZodString;
|
|
402
|
+
at: z.ZodInt;
|
|
403
|
+
}, z.core.$strict>>;
|
|
404
|
+
state: z.ZodEnum<{
|
|
405
|
+
changed: "changed";
|
|
406
|
+
matches: "matches";
|
|
407
|
+
provisional: "provisional";
|
|
408
|
+
}>;
|
|
409
|
+
operator: z.ZodObject<{
|
|
410
|
+
verified: z.ZodBoolean;
|
|
411
|
+
}, z.core.$strict>;
|
|
412
|
+
identity: z.ZodArray<z.ZodObject<{
|
|
413
|
+
provider: z.ZodURL;
|
|
414
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
415
|
+
kya: "kya";
|
|
416
|
+
oidc: "oidc";
|
|
417
|
+
saml: "saml";
|
|
418
|
+
verifiable_credential: "verifiable_credential";
|
|
419
|
+
}>, z.ZodURL]>;
|
|
420
|
+
ref: z.ZodString;
|
|
421
|
+
subject_hash: z.ZodString;
|
|
422
|
+
attested_at: z.ZodInt;
|
|
423
|
+
scope: z.ZodEnum<{
|
|
424
|
+
agent: "agent";
|
|
425
|
+
operator: "operator";
|
|
426
|
+
}>;
|
|
427
|
+
}, z.core.$strict>>;
|
|
428
|
+
last_active: z.ZodNullable<z.ZodInt>;
|
|
429
|
+
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
315
430
|
}, z.core.$strict>;
|
|
316
|
-
export type
|
|
431
|
+
export type VerifiedCredentialPayloadV3 = z.infer<typeof VerifiedCredentialPayloadV3>;
|
|
317
432
|
export declare const SealPayload: z.ZodUnion<readonly [z.ZodObject<{
|
|
318
433
|
iss: z.ZodEnum<{
|
|
319
434
|
"sealkeeper.run": "sealkeeper.run";
|
|
@@ -336,7 +451,7 @@ export declare const SealPayload: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
336
451
|
provenance: "provenance";
|
|
337
452
|
reliability: "reliability";
|
|
338
453
|
safety: "safety";
|
|
339
|
-
}>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
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>>;
|
|
340
455
|
counts: z.ZodObject<{
|
|
341
456
|
events: z.ZodInt;
|
|
342
457
|
history_days: z.ZodInt;
|
|
@@ -390,7 +505,7 @@ export declare const SealPayload: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
390
505
|
provenance: "provenance";
|
|
391
506
|
reliability: "reliability";
|
|
392
507
|
safety: "safety";
|
|
393
|
-
}>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
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>>;
|
|
394
509
|
counts: z.ZodObject<{
|
|
395
510
|
events: z.ZodInt;
|
|
396
511
|
history_days: z.ZodInt;
|
|
@@ -434,26 +549,77 @@ export declare const SealPayload: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
434
549
|
"vouched.run": "vouched.run";
|
|
435
550
|
}>;
|
|
436
551
|
sub: z.ZodString;
|
|
552
|
+
ver: z.ZodLiteral<3>;
|
|
437
553
|
iat: z.ZodInt;
|
|
438
554
|
exp: z.ZodInt;
|
|
439
|
-
|
|
555
|
+
agent_version: z.ZodString;
|
|
556
|
+
level: z.ZodEnum<{
|
|
557
|
+
bronze: "bronze";
|
|
558
|
+
gold: "gold";
|
|
559
|
+
none: "none";
|
|
560
|
+
silver: "silver";
|
|
561
|
+
}>;
|
|
440
562
|
scores: z.ZodRecord<z.ZodUnion<readonly [z.ZodEnum<{
|
|
441
563
|
cost_latency: "cost_latency";
|
|
442
564
|
provenance: "provenance";
|
|
443
565
|
reliability: "reliability";
|
|
444
566
|
safety: "safety";
|
|
445
|
-
}>, z.ZodTemplateLiteral<`competence:${string}`>]> & z.core.$partial, z.ZodNullable<z.ZodNumber>>;
|
|
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>>;
|
|
446
568
|
counts: z.ZodObject<{
|
|
447
569
|
events: z.ZodInt;
|
|
570
|
+
history_days: z.ZodInt;
|
|
571
|
+
verified_tasks: z.ZodInt;
|
|
572
|
+
seed_tasks: z.ZodInt;
|
|
573
|
+
server_checked_tasks: z.ZodInt;
|
|
574
|
+
confirmed_tasks: z.ZodInt;
|
|
575
|
+
distinct_operators: z.ZodInt;
|
|
576
|
+
safety_incidents_90d: z.ZodInt;
|
|
577
|
+
posted_tasks: z.ZodInt;
|
|
578
|
+
posted_distinct_operators: z.ZodInt;
|
|
579
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
580
|
+
}, z.core.$strict>;
|
|
581
|
+
counted: z.ZodObject<{
|
|
448
582
|
verified_tasks: z.ZodInt;
|
|
449
|
-
seed_tasks: z.
|
|
583
|
+
seed_tasks: z.ZodInt;
|
|
584
|
+
server_checked_tasks: z.ZodInt;
|
|
585
|
+
confirmed_tasks: z.ZodInt;
|
|
586
|
+
posted_tasks: z.ZodInt;
|
|
587
|
+
posted_confirmed_tasks: z.ZodInt;
|
|
588
|
+
}, z.core.$strict>;
|
|
589
|
+
fingerprint: z.ZodNullable<z.ZodObject<{
|
|
590
|
+
hash: z.ZodString;
|
|
591
|
+
at: z.ZodInt;
|
|
592
|
+
}, z.core.$strict>>;
|
|
593
|
+
state: z.ZodEnum<{
|
|
594
|
+
changed: "changed";
|
|
595
|
+
matches: "matches";
|
|
596
|
+
provisional: "provisional";
|
|
597
|
+
}>;
|
|
598
|
+
operator: z.ZodObject<{
|
|
599
|
+
verified: z.ZodBoolean;
|
|
450
600
|
}, z.core.$strict>;
|
|
601
|
+
identity: z.ZodArray<z.ZodObject<{
|
|
602
|
+
provider: z.ZodURL;
|
|
603
|
+
kind: z.ZodUnion<readonly [z.ZodEnum<{
|
|
604
|
+
kya: "kya";
|
|
605
|
+
oidc: "oidc";
|
|
606
|
+
saml: "saml";
|
|
607
|
+
verifiable_credential: "verifiable_credential";
|
|
608
|
+
}>, z.ZodURL]>;
|
|
609
|
+
ref: z.ZodString;
|
|
610
|
+
subject_hash: z.ZodString;
|
|
611
|
+
attested_at: z.ZodInt;
|
|
612
|
+
scope: z.ZodEnum<{
|
|
613
|
+
agent: "agent";
|
|
614
|
+
operator: "operator";
|
|
615
|
+
}>;
|
|
616
|
+
}, z.core.$strict>>;
|
|
617
|
+
last_active: z.ZodNullable<z.ZodInt>;
|
|
618
|
+
dormant_days: z.ZodNullable<z.ZodInt>;
|
|
451
619
|
}, z.core.$strict>]>;
|
|
452
620
|
export type SealPayload = z.infer<typeof SealPayload>;
|
|
453
|
-
export type VersionedSealPayload = VerifiedCredentialPayload | VerifiedCredentialPayloadV2;
|
|
454
|
-
export declare const isSealV1: (p: SealPayload) => p is VersionedSealPayload;
|
|
455
621
|
export declare const sealCounted: (p: SealPayload) => CountedCounts | null;
|
|
456
|
-
export declare function sealVersionProblem(raw: unknown
|
|
622
|
+
export declare function sealVersionProblem(raw: unknown): 'unsupported_version' | null;
|
|
457
623
|
export declare function sealIatProblem(iat: number, nowSeconds: number): 'not_yet_valid' | null;
|
|
458
624
|
export type SealPayloadResult = {
|
|
459
625
|
ok: true;
|
|
@@ -502,13 +668,14 @@ export declare const SealExtension: z.ZodObject<{
|
|
|
502
668
|
description: z.ZodString;
|
|
503
669
|
params: z.ZodObject<{
|
|
504
670
|
credential: z.ZodString;
|
|
671
|
+
handshake: z.ZodOptional<z.ZodString>;
|
|
505
672
|
}, z.core.$strict>;
|
|
506
673
|
}, z.core.$strict>;
|
|
507
674
|
export type SealExtension = z.infer<typeof SealExtension>;
|
|
508
675
|
export declare const credentialExtension: (jws: string) => CredentialExtension;
|
|
509
676
|
export declare const legacySealExtension: (jws: string) => LegacySealExtension;
|
|
510
|
-
export declare const sealExtension: (jws: string) => SealExtension;
|
|
511
|
-
export declare const sealExtensions: (jws: string) => ({
|
|
677
|
+
export declare const sealExtension: (jws: string, handshake?: string) => SealExtension;
|
|
678
|
+
export declare const sealExtensions: (jws: string, handshake?: string) => ({
|
|
512
679
|
uri: "https://vouched.run/ext/credential/v1";
|
|
513
680
|
description: string;
|
|
514
681
|
params: {
|
|
@@ -525,6 +692,7 @@ export declare const sealExtensions: (jws: string) => ({
|
|
|
525
692
|
description: string;
|
|
526
693
|
params: {
|
|
527
694
|
credential: string;
|
|
695
|
+
handshake?: string | undefined;
|
|
528
696
|
};
|
|
529
697
|
})[];
|
|
530
698
|
export declare const A2A_PROTOCOL_VERSION = "0.3.0";
|
|
@@ -548,6 +716,7 @@ export declare const AgentCard: z.ZodObject<{
|
|
|
548
716
|
description: z.ZodString;
|
|
549
717
|
params: z.ZodObject<{
|
|
550
718
|
credential: z.ZodString;
|
|
719
|
+
handshake: z.ZodOptional<z.ZodString>;
|
|
551
720
|
}, z.core.$strict>;
|
|
552
721
|
}, z.core.$strict>, z.ZodObject<{
|
|
553
722
|
uri: z.ZodLiteral<"https://vouched.run/ext/seal/v1">;
|