@aiqa/sdk 3.1.0-develop.1 → 3.1.0-develop.2
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 +20 -0
- package/dist/browser/browser.d.ts +8 -1
- package/dist/browser/browser.js +1 -1
- package/dist/browser/browser.js.map +1 -1
- package/dist/node/node.d.ts +8 -1
- package/dist/node/node.js +1 -1
- package/dist/node/node.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -363,6 +363,13 @@ a timeout, a rejected payload.
|
|
|
363
363
|
answer_format: { type: "STRING" }
|
|
364
364
|
/** Optional (default: `false`). Use `true` when the fact was collected before the conversation started. It is stored, not verified. */
|
|
365
365
|
prefilled?: boolean
|
|
366
|
+
/**
|
|
367
|
+
* Optional. Use `true` for a value you already know is correct, such as data
|
|
368
|
+
* from your own records. Unlike `prefilled`, it is about trusting the value, not
|
|
369
|
+
* when it was collected. It is stored and visible to whoever reviews the call,
|
|
370
|
+
* never verified, and left out of the verification summary counts.
|
|
371
|
+
*/
|
|
372
|
+
reference?: boolean
|
|
366
373
|
/**
|
|
367
374
|
* Optional. Your own identifiers for this fact — a form field ID, a
|
|
368
375
|
* section name, anything that lets your UI map the result back to the
|
|
@@ -579,6 +586,12 @@ Rules:
|
|
|
579
586
|
- **Handle a `verification_status` you don't recognize as `processing`.**
|
|
580
587
|
- **A fact sent with `prefilled: true` is never verified**, so it gets no
|
|
581
588
|
`verification_status` and no `FACT_VERIFIED` event.
|
|
589
|
+
- **A fact sent with `reference: true` is never verified either.** Use it for
|
|
590
|
+
a value you already know is correct, such as the plan name from your own
|
|
591
|
+
records. It is stored, visible to whoever reviews the call, and left out of
|
|
592
|
+
the verification summary counts. `addFact()` still resolves, with
|
|
593
|
+
`is_valid_answer: false` and no `verification_status`, and no `FACT_VERIFIED`
|
|
594
|
+
event is emitted for it.
|
|
582
595
|
- **`pending_confirmation_*` is never final.** The answer can still change,
|
|
583
596
|
so don't show it as a decision.
|
|
584
597
|
- **A fact can be revised after `addFact()` has resolved.** If you keep its
|
|
@@ -829,6 +842,13 @@ type ApplicationFactInput = {
|
|
|
829
842
|
is_skipped?: boolean;
|
|
830
843
|
/** Optional (default: `false`). Use `true` when the fact was collected before the conversation started. It is stored, not verified. */
|
|
831
844
|
prefilled?: boolean;
|
|
845
|
+
/**
|
|
846
|
+
* Optional. Use `true` for a value you already know is correct, such as data
|
|
847
|
+
* from your own records. Unlike `prefilled`, it is about trusting the value, not
|
|
848
|
+
* when it was collected. It is stored and visible to whoever reviews the call,
|
|
849
|
+
* never verified, and left out of the verification summary counts.
|
|
850
|
+
*/
|
|
851
|
+
reference?: boolean;
|
|
832
852
|
/**
|
|
833
853
|
* Optional. Your own identifiers for this fact — a form field ID, a section
|
|
834
854
|
* name, anything that lets your UI map the result back to the right place.
|
|
@@ -208,6 +208,13 @@ type ApplicationFactInput = {
|
|
|
208
208
|
is_skipped?: boolean;
|
|
209
209
|
/** Optional (default: `false`). Use `true` when the fact was collected before the conversation started. It is stored, not verified. */
|
|
210
210
|
prefilled?: boolean;
|
|
211
|
+
/**
|
|
212
|
+
* Optional. Use `true` for a value you already know is correct, such as data
|
|
213
|
+
* from your own records. Unlike `prefilled`, it is about trusting the value, not
|
|
214
|
+
* when it was collected. It is stored and visible to whoever reviews the call,
|
|
215
|
+
* never verified, and left out of the verification summary counts.
|
|
216
|
+
*/
|
|
217
|
+
reference?: boolean;
|
|
211
218
|
/**
|
|
212
219
|
* Your own identifiers for this fact — a form field ID, a section name,
|
|
213
220
|
* anything that lets your UI map the result back to the right place.
|
|
@@ -266,7 +273,7 @@ interface AddFactResult {
|
|
|
266
273
|
answer_type?: string;
|
|
267
274
|
agent_answer?: string;
|
|
268
275
|
ai_answer?: string;
|
|
269
|
-
/** `false` for a fact that was never verified, such as a prefilled one. */
|
|
276
|
+
/** `false` for a fact that was never verified, such as a prefilled or reference one. */
|
|
270
277
|
is_valid_answer: boolean;
|
|
271
278
|
question_asked?: boolean;
|
|
272
279
|
/**
|
package/dist/browser/browser.js
CHANGED
|
@@ -3407,7 +3407,7 @@ var compareVersions = (left, right) => {
|
|
|
3407
3407
|
// package.json
|
|
3408
3408
|
var package_default = {
|
|
3409
3409
|
name: "@aiqa/sdk",
|
|
3410
|
-
version: "3.
|
|
3410
|
+
version: "3.1.0-develop.1",
|
|
3411
3411
|
main: "dist/node/node.js",
|
|
3412
3412
|
module: "dist/node/node.js",
|
|
3413
3413
|
types: "dist/node/node.d.ts",
|