@aiqa/sdk 2.2.0-develop.2 → 2.2.0-develop.3

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 CHANGED
@@ -129,6 +129,7 @@ going so far.
129
129
  agent_id: string;
130
130
  agent_first_name: string;
131
131
  agent_last_name: string;
132
+ external_status?: string;
132
133
  verification?: ApplicationVerificationSummary;
133
134
  }
134
135
  ```
@@ -140,6 +141,12 @@ going so far.
140
141
  [Reading `verification`](#reading-verification) for the exception.
141
142
  `agent_first_name` and `agent_last_name` come back empty; use
142
143
  `updateConversation({ agentName })` if you need to record an agent's name.
144
+ `external_status` is the value you last sent with
145
+ `updateConversation({ externalStatus })`, lowercased — one of
146
+ [`ExternalStatus`](#externalstatus) — and is **missing** until you send one.
147
+ Read it to recover the status after a reconnect instead of keeping your own
148
+ copy. It is the one field here that never comes from the authentication
149
+ snapshot, so on the fallback path it is absent rather than stale.
143
150
 
144
151
  ```typescript
145
152
  const application = await sdk.getApplication();
@@ -531,6 +538,10 @@ type Application = {
531
538
  agent_id: string;
532
539
  agent_first_name: string; // comes back empty
533
540
  agent_last_name: string; // comes back empty
541
+ // The externalStatus you last sent, lowercased. Missing until you send one
542
+ // — not the same as "draft". Never in the authentication snapshot, so on the
543
+ // fallback path below it is absent, not stale.
544
+ external_status?: ExternalStatus | (string & {});
534
545
  // Missing when there is no summary for the call — not the same as zeros.
535
546
  // See "Reading verification" above.
536
547
  verification?: ApplicationVerificationSummary;
@@ -56,6 +56,17 @@ type Application = {
56
56
  agent_first_name: string;
57
57
  /** Comes back empty. Set an agent name with `updateConversation()`. */
58
58
  agent_last_name: string;
59
+ /**
60
+ * The status you last reported with `updateConversation({ externalStatus })`,
61
+ * folded to lowercase by the server. Missing when you never reported one —
62
+ * which is not the same as `"draft"`. Unlike the fields above it is never in
63
+ * the authentication snapshot, so on the fallback path described under
64
+ * `verification` it is absent rather than stale.
65
+ *
66
+ * Same open union as the input side: the members autocomplete, and a status
67
+ * the server learns before this package does still type-checks.
68
+ */
69
+ external_status?: ExternalStatus | (string & {});
59
70
  /**
60
71
  * How the call is going so far. When it is missing there is no summary —
61
72
  * which is not the same as all zeros — and the fields above may then be the
@@ -3406,7 +3406,7 @@ var compareVersions = (left, right) => {
3406
3406
  // package.json
3407
3407
  var package_default = {
3408
3408
  name: "@aiqa/sdk",
3409
- version: "2.2.0-develop.1",
3409
+ version: "2.2.0-develop.2",
3410
3410
  main: "dist/node/node.js",
3411
3411
  module: "dist/node/node.js",
3412
3412
  types: "dist/node/node.d.ts",