@felspar/sdk 0.3.0 → 0.4.1
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 +25 -22
- package/dist/chunks/{chunk-3YVYBD4H.js → chunk-PYLLH47S.js} +1771 -743
- package/dist/chunks/{chunk-2RV7RPXW.js → chunk-SQ62T4AA.js} +3 -2
- package/dist/chunks/{chunk-7HN5KUTJ.js → chunk-WAMWMJYP.js} +1 -1
- package/dist/draft-action-gate-claude.js +2 -2
- package/dist/draft-action-gate-eve.js +3 -3
- package/dist/draft-action-gate-openai.js +2 -2
- package/dist/draft-action-gate.js +2 -2
- package/dist/draft-hosted-client.js +1 -1
- package/dist/eve.js +3 -3
- package/dist/types/draft-hosted-client.d.ts +630 -7
- package/package.json +1 -6
- package/bin/felspar-sdk.mjs +0 -10
- package/bin/skill.mjs +0 -33
- package/skills/felspar/SKILL.md +0 -134
|
@@ -147,6 +147,7 @@ declare const refusalSchema: z.ZodPipe<z.ZodObject<{
|
|
|
147
147
|
code: string;
|
|
148
148
|
path: string[];
|
|
149
149
|
}[] | undefined;
|
|
150
|
+
recovery?: "escalate" | "fix_input" | "retry";
|
|
150
151
|
fix?: string;
|
|
151
152
|
escalation?: {
|
|
152
153
|
id: string;
|
|
@@ -191,6 +192,544 @@ export declare function createHostedFelsparClient(configuration: {
|
|
|
191
192
|
id: string;
|
|
192
193
|
}[];
|
|
193
194
|
}>;
|
|
195
|
+
describeCurrentJob: (job: string) => Promise<{
|
|
196
|
+
schema: "felspar.hosted-job-description.draft/v0";
|
|
197
|
+
job: string;
|
|
198
|
+
trustDomain: string;
|
|
199
|
+
release: {
|
|
200
|
+
releaseId: string;
|
|
201
|
+
releaseDigest: string;
|
|
202
|
+
materialDigest: string;
|
|
203
|
+
expectedAuthorityDigest: string;
|
|
204
|
+
};
|
|
205
|
+
resolutionPolicy: "relative-date-required-types/direct-overrides/v5" | "relational-required-types/direct-overrides/v4" | "scored-required-types/mandatory-gates/v6" | "windowed-required-types/mandatory-gates/v7" | "conditional-required-types/direct-overrides/v3" | "strict-required-types/direct-overrides/v2" | "strict-required-values/direct-overrides/v1";
|
|
206
|
+
questions: {
|
|
207
|
+
definition: {
|
|
208
|
+
key: string;
|
|
209
|
+
contentDigest: string;
|
|
210
|
+
sourceLocator: string;
|
|
211
|
+
allowedValues: string[];
|
|
212
|
+
} | {
|
|
213
|
+
key: string;
|
|
214
|
+
contentDigest: string;
|
|
215
|
+
sourceLocator: string;
|
|
216
|
+
valueRule: {
|
|
217
|
+
type: "boolean";
|
|
218
|
+
};
|
|
219
|
+
} | {
|
|
220
|
+
key: string;
|
|
221
|
+
contentDigest: string;
|
|
222
|
+
sourceLocator: string;
|
|
223
|
+
valueRule: {
|
|
224
|
+
type: "number";
|
|
225
|
+
integer: boolean;
|
|
226
|
+
minimum: number;
|
|
227
|
+
maximum: number;
|
|
228
|
+
};
|
|
229
|
+
unit: string;
|
|
230
|
+
} | {
|
|
231
|
+
key: string;
|
|
232
|
+
contentDigest: string;
|
|
233
|
+
sourceLocator: string;
|
|
234
|
+
valueRule: {
|
|
235
|
+
type: "date";
|
|
236
|
+
};
|
|
237
|
+
};
|
|
238
|
+
evidencePolicy: {
|
|
239
|
+
maxAgeMs: number;
|
|
240
|
+
allowedSourceClasses: string[];
|
|
241
|
+
trustDomain: string;
|
|
242
|
+
};
|
|
243
|
+
key: string;
|
|
244
|
+
type: "number" | "boolean" | "date" | "enum";
|
|
245
|
+
meaning: {
|
|
246
|
+
text: string;
|
|
247
|
+
source: {
|
|
248
|
+
sourceId: string;
|
|
249
|
+
revision: string;
|
|
250
|
+
locator: string;
|
|
251
|
+
contentDigest: string;
|
|
252
|
+
};
|
|
253
|
+
parts: {
|
|
254
|
+
locator: string;
|
|
255
|
+
text: string;
|
|
256
|
+
}[];
|
|
257
|
+
};
|
|
258
|
+
answer: {
|
|
259
|
+
send: "text" | "text_or_value";
|
|
260
|
+
valueFormat: "number" | "calendar-date" | null;
|
|
261
|
+
interpretation: "unsupported" | "classified" | "exact_read";
|
|
262
|
+
threshold: number | null;
|
|
263
|
+
applies: "always" | "conditional";
|
|
264
|
+
dependsOn: string[];
|
|
265
|
+
appliesWhen: string | null;
|
|
266
|
+
reading?: {
|
|
267
|
+
version: "felspar.exact-number/v2";
|
|
268
|
+
unit: {
|
|
269
|
+
kind: "currency";
|
|
270
|
+
code: string;
|
|
271
|
+
} | {
|
|
272
|
+
kind: "percent";
|
|
273
|
+
} | {
|
|
274
|
+
kind: "count";
|
|
275
|
+
words: string[];
|
|
276
|
+
};
|
|
277
|
+
numberStyle: "1,234.56" | "1.234,56" | "1 234,56" | "1'234.56";
|
|
278
|
+
} | {
|
|
279
|
+
version: "felspar.exact-date/v2";
|
|
280
|
+
dateOrder: "unstated" | "month-first" | "day-first";
|
|
281
|
+
} | undefined;
|
|
282
|
+
};
|
|
283
|
+
requiredWhen?: ({
|
|
284
|
+
key: string;
|
|
285
|
+
relativeDate: {
|
|
286
|
+
operator: "eq" | "lt" | "lte" | "gt" | "gte";
|
|
287
|
+
anchorKey: string;
|
|
288
|
+
offsetDays: number;
|
|
289
|
+
calendar: {
|
|
290
|
+
kind: "business_days";
|
|
291
|
+
id: string;
|
|
292
|
+
version: string;
|
|
293
|
+
validFrom: string;
|
|
294
|
+
validThrough: string;
|
|
295
|
+
workingWeekdays: number[];
|
|
296
|
+
holidays: string[];
|
|
297
|
+
} | {
|
|
298
|
+
kind: "calendar_days";
|
|
299
|
+
};
|
|
300
|
+
};
|
|
301
|
+
} | {
|
|
302
|
+
key: string;
|
|
303
|
+
relativeToDecision: {
|
|
304
|
+
operator: "eq" | "lt" | "lte" | "gt" | "gte";
|
|
305
|
+
offsetDays: number;
|
|
306
|
+
timeZone: string;
|
|
307
|
+
};
|
|
308
|
+
} | {
|
|
309
|
+
key: string;
|
|
310
|
+
equals: string | boolean;
|
|
311
|
+
} | {
|
|
312
|
+
key: string;
|
|
313
|
+
oneOf: string[];
|
|
314
|
+
} | {
|
|
315
|
+
key: string;
|
|
316
|
+
compare: {
|
|
317
|
+
operator: "eq" | "lt" | "lte" | "gt" | "gte";
|
|
318
|
+
value: number;
|
|
319
|
+
};
|
|
320
|
+
} | {
|
|
321
|
+
key: string;
|
|
322
|
+
compareFact: {
|
|
323
|
+
operator: "eq" | "lt" | "lte" | "gt" | "gte";
|
|
324
|
+
key: string;
|
|
325
|
+
};
|
|
326
|
+
} | {
|
|
327
|
+
key: string;
|
|
328
|
+
compareDate: {
|
|
329
|
+
operator: "eq" | "lt" | "lte" | "gt" | "gte";
|
|
330
|
+
value: string;
|
|
331
|
+
};
|
|
332
|
+
})[] | undefined;
|
|
333
|
+
answers?: {
|
|
334
|
+
value: string;
|
|
335
|
+
meaning: string | null;
|
|
336
|
+
inclusions: string[];
|
|
337
|
+
exclusions: string[];
|
|
338
|
+
examples: string[];
|
|
339
|
+
edgeCases: string[];
|
|
340
|
+
}[] | undefined;
|
|
341
|
+
whereToLook?: {
|
|
342
|
+
text: string;
|
|
343
|
+
source: {
|
|
344
|
+
sourceId: string;
|
|
345
|
+
revision: string;
|
|
346
|
+
locator: string;
|
|
347
|
+
contentDigest: string;
|
|
348
|
+
};
|
|
349
|
+
parts: {
|
|
350
|
+
locator: string;
|
|
351
|
+
text: string;
|
|
352
|
+
}[];
|
|
353
|
+
}[] | undefined;
|
|
354
|
+
about?: {
|
|
355
|
+
relationship: string;
|
|
356
|
+
subject: string;
|
|
357
|
+
} | undefined;
|
|
358
|
+
}[];
|
|
359
|
+
rules: {
|
|
360
|
+
id: string;
|
|
361
|
+
sourceLocator: string;
|
|
362
|
+
contentDigest: string;
|
|
363
|
+
when: ({
|
|
364
|
+
key: string;
|
|
365
|
+
relativeDate: {
|
|
366
|
+
operator: "eq" | "lt" | "lte" | "gt" | "gte";
|
|
367
|
+
anchorKey: string;
|
|
368
|
+
offsetDays: number;
|
|
369
|
+
calendar: {
|
|
370
|
+
kind: "business_days";
|
|
371
|
+
id: string;
|
|
372
|
+
version: string;
|
|
373
|
+
validFrom: string;
|
|
374
|
+
validThrough: string;
|
|
375
|
+
workingWeekdays: number[];
|
|
376
|
+
holidays: string[];
|
|
377
|
+
} | {
|
|
378
|
+
kind: "calendar_days";
|
|
379
|
+
};
|
|
380
|
+
};
|
|
381
|
+
} | {
|
|
382
|
+
key: string;
|
|
383
|
+
relativeToDecision: {
|
|
384
|
+
operator: "eq" | "lt" | "lte" | "gt" | "gte";
|
|
385
|
+
offsetDays: number;
|
|
386
|
+
timeZone: string;
|
|
387
|
+
};
|
|
388
|
+
} | {
|
|
389
|
+
key: string;
|
|
390
|
+
equals: string | boolean;
|
|
391
|
+
} | {
|
|
392
|
+
key: string;
|
|
393
|
+
oneOf: string[];
|
|
394
|
+
} | {
|
|
395
|
+
key: string;
|
|
396
|
+
compare: {
|
|
397
|
+
operator: "eq" | "lt" | "lte" | "gt" | "gte";
|
|
398
|
+
value: number;
|
|
399
|
+
};
|
|
400
|
+
} | {
|
|
401
|
+
key: string;
|
|
402
|
+
compareFact: {
|
|
403
|
+
operator: "eq" | "lt" | "lte" | "gt" | "gte";
|
|
404
|
+
key: string;
|
|
405
|
+
};
|
|
406
|
+
} | {
|
|
407
|
+
key: string;
|
|
408
|
+
compareDate: {
|
|
409
|
+
operator: "eq" | "lt" | "lte" | "gt" | "gte";
|
|
410
|
+
value: string;
|
|
411
|
+
};
|
|
412
|
+
})[];
|
|
413
|
+
outcome: string;
|
|
414
|
+
overrides: string[];
|
|
415
|
+
text: {
|
|
416
|
+
text: string;
|
|
417
|
+
source: {
|
|
418
|
+
sourceId: string;
|
|
419
|
+
revision: string;
|
|
420
|
+
locator: string;
|
|
421
|
+
contentDigest: string;
|
|
422
|
+
};
|
|
423
|
+
parts: {
|
|
424
|
+
locator: string;
|
|
425
|
+
text: string;
|
|
426
|
+
}[];
|
|
427
|
+
};
|
|
428
|
+
scoreRange?: {
|
|
429
|
+
minimumUnits: number;
|
|
430
|
+
maximumUnits: number;
|
|
431
|
+
} | undefined;
|
|
432
|
+
priority?: number | undefined;
|
|
433
|
+
}[];
|
|
434
|
+
outcomes: {
|
|
435
|
+
id: string;
|
|
436
|
+
meaning: {
|
|
437
|
+
text: string;
|
|
438
|
+
source: {
|
|
439
|
+
sourceId: string;
|
|
440
|
+
revision: string;
|
|
441
|
+
locator: string;
|
|
442
|
+
contentDigest: string;
|
|
443
|
+
};
|
|
444
|
+
parts: {
|
|
445
|
+
locator: string;
|
|
446
|
+
text: string;
|
|
447
|
+
}[];
|
|
448
|
+
} | null;
|
|
449
|
+
nextStep?: {
|
|
450
|
+
text: string;
|
|
451
|
+
source: {
|
|
452
|
+
sourceId: string;
|
|
453
|
+
revision: string;
|
|
454
|
+
locator: string;
|
|
455
|
+
contentDigest: string;
|
|
456
|
+
};
|
|
457
|
+
parts: {
|
|
458
|
+
locator: string;
|
|
459
|
+
text: string;
|
|
460
|
+
}[];
|
|
461
|
+
} | null | undefined;
|
|
462
|
+
outputs?: {
|
|
463
|
+
id: string;
|
|
464
|
+
what: {
|
|
465
|
+
text: string;
|
|
466
|
+
locator: string;
|
|
467
|
+
};
|
|
468
|
+
maxCharacters: number;
|
|
469
|
+
checks: {
|
|
470
|
+
check: string;
|
|
471
|
+
rule: string | null;
|
|
472
|
+
must: string;
|
|
473
|
+
}[];
|
|
474
|
+
context?: {
|
|
475
|
+
text: string;
|
|
476
|
+
locator: string;
|
|
477
|
+
id: string;
|
|
478
|
+
}[] | undefined;
|
|
479
|
+
}[] | undefined;
|
|
480
|
+
escalate?: string | undefined;
|
|
481
|
+
}[];
|
|
482
|
+
guidance: {
|
|
483
|
+
gather: string;
|
|
484
|
+
};
|
|
485
|
+
input: {
|
|
486
|
+
jsonSchema: Record<string, unknown>;
|
|
487
|
+
example: {
|
|
488
|
+
mode: "facts";
|
|
489
|
+
executionId: string;
|
|
490
|
+
expectedReleaseDigest: string;
|
|
491
|
+
jobId: string;
|
|
492
|
+
entityId: string;
|
|
493
|
+
facts: Record<string, {
|
|
494
|
+
text: string;
|
|
495
|
+
source: {
|
|
496
|
+
class: string;
|
|
497
|
+
observedAt: string;
|
|
498
|
+
id?: string | undefined;
|
|
499
|
+
manual?: true | undefined;
|
|
500
|
+
suppliedBy?: string | undefined;
|
|
501
|
+
by?: string | undefined;
|
|
502
|
+
stamped?: true | undefined;
|
|
503
|
+
revision?: string | undefined;
|
|
504
|
+
locator?: string | undefined;
|
|
505
|
+
sensitivity?: string | undefined;
|
|
506
|
+
};
|
|
507
|
+
about?: string | undefined;
|
|
508
|
+
} | {
|
|
509
|
+
value: string | number | boolean;
|
|
510
|
+
source: {
|
|
511
|
+
class: string;
|
|
512
|
+
observedAt: string;
|
|
513
|
+
excerpt?: string | undefined;
|
|
514
|
+
id?: string | undefined;
|
|
515
|
+
manual?: true | undefined;
|
|
516
|
+
suppliedBy?: string | undefined;
|
|
517
|
+
by?: string | undefined;
|
|
518
|
+
stamped?: true | undefined;
|
|
519
|
+
revision?: string | undefined;
|
|
520
|
+
locator?: string | undefined;
|
|
521
|
+
sensitivity?: string | undefined;
|
|
522
|
+
};
|
|
523
|
+
about?: string | undefined;
|
|
524
|
+
} | ({
|
|
525
|
+
text: string;
|
|
526
|
+
source: {
|
|
527
|
+
class: string;
|
|
528
|
+
observedAt: string;
|
|
529
|
+
id?: string | undefined;
|
|
530
|
+
manual?: true | undefined;
|
|
531
|
+
suppliedBy?: string | undefined;
|
|
532
|
+
by?: string | undefined;
|
|
533
|
+
stamped?: true | undefined;
|
|
534
|
+
revision?: string | undefined;
|
|
535
|
+
locator?: string | undefined;
|
|
536
|
+
sensitivity?: string | undefined;
|
|
537
|
+
};
|
|
538
|
+
about?: string | undefined;
|
|
539
|
+
} | {
|
|
540
|
+
value: string | number | boolean;
|
|
541
|
+
source: {
|
|
542
|
+
class: string;
|
|
543
|
+
observedAt: string;
|
|
544
|
+
excerpt?: string | undefined;
|
|
545
|
+
id?: string | undefined;
|
|
546
|
+
manual?: true | undefined;
|
|
547
|
+
suppliedBy?: string | undefined;
|
|
548
|
+
by?: string | undefined;
|
|
549
|
+
stamped?: true | undefined;
|
|
550
|
+
revision?: string | undefined;
|
|
551
|
+
locator?: string | undefined;
|
|
552
|
+
sensitivity?: string | undefined;
|
|
553
|
+
};
|
|
554
|
+
about?: string | undefined;
|
|
555
|
+
})[]>;
|
|
556
|
+
related?: Record<string, string | string[]> | undefined;
|
|
557
|
+
identity?: Record<string, string> | undefined;
|
|
558
|
+
} | null;
|
|
559
|
+
exampleNote: string;
|
|
560
|
+
};
|
|
561
|
+
limits: {
|
|
562
|
+
maxEvidenceItems: number;
|
|
563
|
+
maxPassages: number;
|
|
564
|
+
facts: {
|
|
565
|
+
maxExcerptCharacters: 2000;
|
|
566
|
+
maxExcerptsPerQuestion: 3;
|
|
567
|
+
maxFactsBytes: 524288;
|
|
568
|
+
maxQuestions: 64;
|
|
569
|
+
};
|
|
570
|
+
};
|
|
571
|
+
purpose?: {
|
|
572
|
+
text: string;
|
|
573
|
+
source: {
|
|
574
|
+
sourceId: string;
|
|
575
|
+
revision: string;
|
|
576
|
+
locator: string;
|
|
577
|
+
contentDigest: string;
|
|
578
|
+
};
|
|
579
|
+
parts: {
|
|
580
|
+
locator: string;
|
|
581
|
+
text: string;
|
|
582
|
+
}[];
|
|
583
|
+
} | undefined;
|
|
584
|
+
useWhen?: {
|
|
585
|
+
text: string;
|
|
586
|
+
source: {
|
|
587
|
+
sourceId: string;
|
|
588
|
+
revision: string;
|
|
589
|
+
locator: string;
|
|
590
|
+
contentDigest: string;
|
|
591
|
+
};
|
|
592
|
+
parts: {
|
|
593
|
+
locator: string;
|
|
594
|
+
text: string;
|
|
595
|
+
}[];
|
|
596
|
+
}[] | undefined;
|
|
597
|
+
notFor?: {
|
|
598
|
+
text: string;
|
|
599
|
+
source: {
|
|
600
|
+
sourceId: string;
|
|
601
|
+
revision: string;
|
|
602
|
+
locator: string;
|
|
603
|
+
contentDigest: string;
|
|
604
|
+
};
|
|
605
|
+
parts: {
|
|
606
|
+
locator: string;
|
|
607
|
+
text: string;
|
|
608
|
+
}[];
|
|
609
|
+
}[] | undefined;
|
|
610
|
+
owner?: {
|
|
611
|
+
text: string;
|
|
612
|
+
source: {
|
|
613
|
+
sourceId: string;
|
|
614
|
+
revision: string;
|
|
615
|
+
locator: string;
|
|
616
|
+
contentDigest: string;
|
|
617
|
+
};
|
|
618
|
+
parts: {
|
|
619
|
+
locator: string;
|
|
620
|
+
text: string;
|
|
621
|
+
}[];
|
|
622
|
+
} | undefined;
|
|
623
|
+
subject?: {
|
|
624
|
+
type: string;
|
|
625
|
+
definition: {
|
|
626
|
+
text: string;
|
|
627
|
+
source: {
|
|
628
|
+
sourceId: string;
|
|
629
|
+
revision: string;
|
|
630
|
+
locator: string;
|
|
631
|
+
contentDigest: string;
|
|
632
|
+
};
|
|
633
|
+
parts: {
|
|
634
|
+
locator: string;
|
|
635
|
+
text: string;
|
|
636
|
+
}[];
|
|
637
|
+
};
|
|
638
|
+
match: "exact" | "case-insensitive";
|
|
639
|
+
related: {
|
|
640
|
+
identifier: string;
|
|
641
|
+
example: string;
|
|
642
|
+
match: "exact" | "case-insensitive";
|
|
643
|
+
relationship: string;
|
|
644
|
+
meaning: {
|
|
645
|
+
text: string;
|
|
646
|
+
source: {
|
|
647
|
+
sourceId: string;
|
|
648
|
+
revision: string;
|
|
649
|
+
locator: string;
|
|
650
|
+
contentDigest: string;
|
|
651
|
+
};
|
|
652
|
+
parts: {
|
|
653
|
+
locator: string;
|
|
654
|
+
text: string;
|
|
655
|
+
}[];
|
|
656
|
+
};
|
|
657
|
+
cardinality: "one" | "many";
|
|
658
|
+
required: boolean;
|
|
659
|
+
subject: string;
|
|
660
|
+
definition: {
|
|
661
|
+
text: string;
|
|
662
|
+
source: {
|
|
663
|
+
sourceId: string;
|
|
664
|
+
revision: string;
|
|
665
|
+
locator: string;
|
|
666
|
+
contentDigest: string;
|
|
667
|
+
};
|
|
668
|
+
parts: {
|
|
669
|
+
locator: string;
|
|
670
|
+
text: string;
|
|
671
|
+
}[];
|
|
672
|
+
};
|
|
673
|
+
}[];
|
|
674
|
+
send: string;
|
|
675
|
+
identifier?: string | undefined;
|
|
676
|
+
example?: string | undefined;
|
|
677
|
+
} | undefined;
|
|
678
|
+
identity?: {
|
|
679
|
+
mode: "provided" | "fields" | "content" | "issued";
|
|
680
|
+
send: string;
|
|
681
|
+
fields?: {
|
|
682
|
+
identifier: string;
|
|
683
|
+
example: string;
|
|
684
|
+
match: "exact" | "case-insensitive";
|
|
685
|
+
name: string;
|
|
686
|
+
}[] | undefined;
|
|
687
|
+
question?: string | undefined;
|
|
688
|
+
} | undefined;
|
|
689
|
+
manualFacts?: {
|
|
690
|
+
allowed: false;
|
|
691
|
+
quote: string;
|
|
692
|
+
} | undefined;
|
|
693
|
+
escalations?: {
|
|
694
|
+
routes: {
|
|
695
|
+
id: string;
|
|
696
|
+
quote: {
|
|
697
|
+
text: string;
|
|
698
|
+
source: {
|
|
699
|
+
sourceId: string;
|
|
700
|
+
revision: string;
|
|
701
|
+
locator: string;
|
|
702
|
+
contentDigest: string;
|
|
703
|
+
};
|
|
704
|
+
parts: {
|
|
705
|
+
locator: string;
|
|
706
|
+
text: string;
|
|
707
|
+
}[];
|
|
708
|
+
};
|
|
709
|
+
}[];
|
|
710
|
+
unresolved: string | null;
|
|
711
|
+
attemptLimit: string | null;
|
|
712
|
+
rule: string;
|
|
713
|
+
} | undefined;
|
|
714
|
+
whenUnresolved?: {
|
|
715
|
+
text: string;
|
|
716
|
+
source: {
|
|
717
|
+
sourceId: string;
|
|
718
|
+
revision: string;
|
|
719
|
+
locator: string;
|
|
720
|
+
contentDigest: string;
|
|
721
|
+
};
|
|
722
|
+
parts: {
|
|
723
|
+
locator: string;
|
|
724
|
+
text: string;
|
|
725
|
+
}[];
|
|
726
|
+
} | null | undefined;
|
|
727
|
+
attempts?: {
|
|
728
|
+
max: number;
|
|
729
|
+
withProgress: number;
|
|
730
|
+
rule: string;
|
|
731
|
+
} | undefined;
|
|
732
|
+
}>;
|
|
194
733
|
resolveJob: (id: string, value: unknown) => Promise<FelsparJobResult>;
|
|
195
734
|
executeJob: (id: string, value: unknown) => Promise<{
|
|
196
735
|
status: string;
|
|
@@ -1126,6 +1665,7 @@ export declare function createHostedFelsparClient(configuration: {
|
|
|
1126
1665
|
scope: {
|
|
1127
1666
|
entityId: string;
|
|
1128
1667
|
evaluationTime: string;
|
|
1668
|
+
valueAgreement?: "outcome-regions" | undefined;
|
|
1129
1669
|
};
|
|
1130
1670
|
expected: {
|
|
1131
1671
|
status: "review_required" | "blocked" | "ready" | "gap" | "conflict" | "stale";
|
|
@@ -1148,11 +1688,14 @@ export declare function createHostedFelsparClient(configuration: {
|
|
|
1148
1688
|
facts: {
|
|
1149
1689
|
key: string;
|
|
1150
1690
|
value: string | number | boolean;
|
|
1691
|
+
held?: "stale" | "review" | undefined;
|
|
1692
|
+
conflictsWith?: string | number | boolean | undefined;
|
|
1151
1693
|
}[];
|
|
1152
1694
|
id: string;
|
|
1153
1695
|
scope: {
|
|
1154
1696
|
entityId: string;
|
|
1155
1697
|
evaluationTime: string;
|
|
1698
|
+
valueAgreement?: "outcome-regions" | undefined;
|
|
1156
1699
|
};
|
|
1157
1700
|
expected: {
|
|
1158
1701
|
status: "review_required" | "blocked" | "ready" | "gap" | "conflict" | "stale";
|
|
@@ -1500,6 +2043,7 @@ export declare function createHostedFelsparClient(configuration: {
|
|
|
1500
2043
|
scope: {
|
|
1501
2044
|
entityId: string;
|
|
1502
2045
|
evaluationTime: string;
|
|
2046
|
+
valueAgreement?: "outcome-regions" | undefined;
|
|
1503
2047
|
};
|
|
1504
2048
|
trustDomain: string;
|
|
1505
2049
|
expectedArtifactDigest: string;
|
|
@@ -1604,6 +2148,7 @@ export declare function createHostedFelsparClient(configuration: {
|
|
|
1604
2148
|
scope: {
|
|
1605
2149
|
entityId: string;
|
|
1606
2150
|
evaluationTime: string;
|
|
2151
|
+
valueAgreement?: "outcome-regions" | undefined;
|
|
1607
2152
|
};
|
|
1608
2153
|
expected: {
|
|
1609
2154
|
status: "review_required" | "blocked" | "ready" | "gap" | "conflict" | "stale";
|
|
@@ -1626,11 +2171,14 @@ export declare function createHostedFelsparClient(configuration: {
|
|
|
1626
2171
|
facts: {
|
|
1627
2172
|
key: string;
|
|
1628
2173
|
value: string | number | boolean;
|
|
2174
|
+
held?: "stale" | "review" | undefined;
|
|
2175
|
+
conflictsWith?: string | number | boolean | undefined;
|
|
1629
2176
|
}[];
|
|
1630
2177
|
id: string;
|
|
1631
2178
|
scope: {
|
|
1632
2179
|
entityId: string;
|
|
1633
2180
|
evaluationTime: string;
|
|
2181
|
+
valueAgreement?: "outcome-regions" | undefined;
|
|
1634
2182
|
};
|
|
1635
2183
|
expected: {
|
|
1636
2184
|
status: "review_required" | "blocked" | "ready" | "gap" | "conflict" | "stale";
|
|
@@ -2533,6 +3081,7 @@ export declare function createHostedFelsparClient(configuration: {
|
|
|
2533
3081
|
scope: {
|
|
2534
3082
|
entityId: string;
|
|
2535
3083
|
evaluationTime: string;
|
|
3084
|
+
valueAgreement?: "outcome-regions" | undefined;
|
|
2536
3085
|
};
|
|
2537
3086
|
trustDomain: string;
|
|
2538
3087
|
expectedArtifactDigest: string;
|
|
@@ -2637,6 +3186,7 @@ export declare function createHostedFelsparClient(configuration: {
|
|
|
2637
3186
|
scope: {
|
|
2638
3187
|
entityId: string;
|
|
2639
3188
|
evaluationTime: string;
|
|
3189
|
+
valueAgreement?: "outcome-regions" | undefined;
|
|
2640
3190
|
};
|
|
2641
3191
|
expected: {
|
|
2642
3192
|
status: "review_required" | "blocked" | "ready" | "gap" | "conflict" | "stale";
|
|
@@ -2659,11 +3209,14 @@ export declare function createHostedFelsparClient(configuration: {
|
|
|
2659
3209
|
facts: {
|
|
2660
3210
|
key: string;
|
|
2661
3211
|
value: string | number | boolean;
|
|
3212
|
+
held?: "stale" | "review" | undefined;
|
|
3213
|
+
conflictsWith?: string | number | boolean | undefined;
|
|
2662
3214
|
}[];
|
|
2663
3215
|
id: string;
|
|
2664
3216
|
scope: {
|
|
2665
3217
|
entityId: string;
|
|
2666
3218
|
evaluationTime: string;
|
|
3219
|
+
valueAgreement?: "outcome-regions" | undefined;
|
|
2667
3220
|
};
|
|
2668
3221
|
expected: {
|
|
2669
3222
|
status: "review_required" | "blocked" | "ready" | "gap" | "conflict" | "stale";
|
|
@@ -3242,6 +3795,18 @@ export declare function createHostedFelsparClient(configuration: {
|
|
|
3242
3795
|
policyDigest: string;
|
|
3243
3796
|
fixtureSuiteDigest: string;
|
|
3244
3797
|
} | undefined;
|
|
3798
|
+
calibration?: {
|
|
3799
|
+
savedResultId: string;
|
|
3800
|
+
calibrationDigest: string;
|
|
3801
|
+
questions: string[];
|
|
3802
|
+
acceptedBy: string;
|
|
3803
|
+
approvedMaterialDigest: string;
|
|
3804
|
+
bars: {
|
|
3805
|
+
question: string;
|
|
3806
|
+
bar: number;
|
|
3807
|
+
calibrationDigest: string;
|
|
3808
|
+
}[];
|
|
3809
|
+
} | undefined;
|
|
3245
3810
|
}>;
|
|
3246
3811
|
describeJob: (id: string, job: string) => Promise<{
|
|
3247
3812
|
schema: "felspar.hosted-job-description.draft/v0";
|
|
@@ -3309,7 +3874,7 @@ export declare function createHostedFelsparClient(configuration: {
|
|
|
3309
3874
|
answer: {
|
|
3310
3875
|
send: "text" | "text_or_value";
|
|
3311
3876
|
valueFormat: "number" | "calendar-date" | null;
|
|
3312
|
-
interpretation: "
|
|
3877
|
+
interpretation: "unsupported" | "classified" | "exact_read";
|
|
3313
3878
|
threshold: number | null;
|
|
3314
3879
|
applies: "always" | "conditional";
|
|
3315
3880
|
dependsOn: string[];
|
|
@@ -3545,37 +4110,65 @@ export declare function createHostedFelsparClient(configuration: {
|
|
|
3545
4110
|
text: string;
|
|
3546
4111
|
source: {
|
|
3547
4112
|
class: string;
|
|
3548
|
-
id: string;
|
|
3549
4113
|
observedAt: string;
|
|
4114
|
+
id?: string | undefined;
|
|
4115
|
+
manual?: true | undefined;
|
|
4116
|
+
suppliedBy?: string | undefined;
|
|
4117
|
+
by?: string | undefined;
|
|
4118
|
+
stamped?: true | undefined;
|
|
3550
4119
|
revision?: string | undefined;
|
|
3551
4120
|
locator?: string | undefined;
|
|
3552
4121
|
sensitivity?: string | undefined;
|
|
3553
4122
|
};
|
|
3554
4123
|
about?: string | undefined;
|
|
3555
4124
|
} | {
|
|
4125
|
+
value: string | number | boolean;
|
|
4126
|
+
source: {
|
|
4127
|
+
class: string;
|
|
4128
|
+
observedAt: string;
|
|
4129
|
+
excerpt?: string | undefined;
|
|
4130
|
+
id?: string | undefined;
|
|
4131
|
+
manual?: true | undefined;
|
|
4132
|
+
suppliedBy?: string | undefined;
|
|
4133
|
+
by?: string | undefined;
|
|
4134
|
+
stamped?: true | undefined;
|
|
4135
|
+
revision?: string | undefined;
|
|
4136
|
+
locator?: string | undefined;
|
|
4137
|
+
sensitivity?: string | undefined;
|
|
4138
|
+
};
|
|
4139
|
+
about?: string | undefined;
|
|
4140
|
+
} | ({
|
|
3556
4141
|
text: string;
|
|
3557
4142
|
source: {
|
|
3558
4143
|
class: string;
|
|
3559
|
-
id: string;
|
|
3560
4144
|
observedAt: string;
|
|
4145
|
+
id?: string | undefined;
|
|
4146
|
+
manual?: true | undefined;
|
|
4147
|
+
suppliedBy?: string | undefined;
|
|
4148
|
+
by?: string | undefined;
|
|
4149
|
+
stamped?: true | undefined;
|
|
3561
4150
|
revision?: string | undefined;
|
|
3562
4151
|
locator?: string | undefined;
|
|
3563
4152
|
sensitivity?: string | undefined;
|
|
3564
4153
|
};
|
|
3565
4154
|
about?: string | undefined;
|
|
3566
|
-
}
|
|
4155
|
+
} | {
|
|
3567
4156
|
value: string | number | boolean;
|
|
3568
4157
|
source: {
|
|
3569
4158
|
class: string;
|
|
3570
|
-
id: string;
|
|
3571
4159
|
observedAt: string;
|
|
4160
|
+
excerpt?: string | undefined;
|
|
4161
|
+
id?: string | undefined;
|
|
4162
|
+
manual?: true | undefined;
|
|
4163
|
+
suppliedBy?: string | undefined;
|
|
4164
|
+
by?: string | undefined;
|
|
4165
|
+
stamped?: true | undefined;
|
|
3572
4166
|
revision?: string | undefined;
|
|
3573
4167
|
locator?: string | undefined;
|
|
3574
4168
|
sensitivity?: string | undefined;
|
|
3575
|
-
excerpt?: string | undefined;
|
|
3576
4169
|
};
|
|
3577
4170
|
about?: string | undefined;
|
|
3578
|
-
}>;
|
|
4171
|
+
})[]>;
|
|
3579
4172
|
related?: Record<string, string | string[]> | undefined;
|
|
3580
4173
|
identity?: Record<string, string> | undefined;
|
|
3581
4174
|
} | null;
|
|
@@ -3709,6 +4302,10 @@ export declare function createHostedFelsparClient(configuration: {
|
|
|
3709
4302
|
}[] | undefined;
|
|
3710
4303
|
question?: string | undefined;
|
|
3711
4304
|
} | undefined;
|
|
4305
|
+
manualFacts?: {
|
|
4306
|
+
allowed: false;
|
|
4307
|
+
quote: string;
|
|
4308
|
+
} | undefined;
|
|
3712
4309
|
escalations?: {
|
|
3713
4310
|
routes: {
|
|
3714
4311
|
id: string;
|
|
@@ -3775,6 +4372,32 @@ export declare function createHostedFelsparClient(configuration: {
|
|
|
3775
4372
|
id: string;
|
|
3776
4373
|
trigger: "outcome" | "unresolved" | "attempt_limit";
|
|
3777
4374
|
} | undefined;
|
|
4375
|
+
manualFacts?: {
|
|
4376
|
+
question: string;
|
|
4377
|
+
excerpt: number;
|
|
4378
|
+
via: {
|
|
4379
|
+
principal: string;
|
|
4380
|
+
agent: {
|
|
4381
|
+
name: string;
|
|
4382
|
+
accountable: string;
|
|
4383
|
+
} | null;
|
|
4384
|
+
};
|
|
4385
|
+
observedAt: string;
|
|
4386
|
+
stampedByFelspar: boolean;
|
|
4387
|
+
suppliedBy?: {
|
|
4388
|
+
text: string;
|
|
4389
|
+
verified: false;
|
|
4390
|
+
} | undefined;
|
|
4391
|
+
}[] | undefined;
|
|
4392
|
+
caseRecord?: {
|
|
4393
|
+
rule: "whole-case";
|
|
4394
|
+
attempt: number;
|
|
4395
|
+
attempts: {
|
|
4396
|
+
executionId: string;
|
|
4397
|
+
added: string[];
|
|
4398
|
+
considered: boolean;
|
|
4399
|
+
}[];
|
|
4400
|
+
} | undefined;
|
|
3778
4401
|
} | undefined;
|
|
3779
4402
|
}>;
|
|
3780
4403
|
};
|