@wildix/wilma-copilot-sessions-client 1.0.12 → 1.0.13

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.
@@ -11,7 +11,7 @@ const endpointResolver_1 = require("./endpoint/endpointResolver");
11
11
  const schemas_0_1 = require("./schemas/schemas_0");
12
12
  const getRuntimeConfig = (config) => {
13
13
  return {
14
- apiVersion: "v1",
14
+ apiVersion: "v2",
15
15
  base64Decoder: config?.base64Decoder ?? serde_1.fromBase64,
16
16
  base64Encoder: config?.base64Encoder ?? serde_1.toBase64,
17
17
  disableHostPrefix: config?.disableHostPrefix ?? false,
@@ -50,7 +50,7 @@ const getRuntimeConfig = (config) => {
50
50
  protocolSettings: config?.protocolSettings ?? {
51
51
  defaultNamespace: "wildix.wilma.copilot.sessions",
52
52
  errorTypeRegistries: schemas_0_1.errorTypeRegistries,
53
- version: "v1",
53
+ version: "v2",
54
54
  serviceTarget: "WilmaCopilotSessions",
55
55
  },
56
56
  sdkStreamMixin: config?.sdkStreamMixin ?? serde_1.sdkStreamMixin,
@@ -8,7 +8,7 @@ import { defaultEndpointResolver } from "./endpoint/endpointResolver";
8
8
  import { errorTypeRegistries } from "./schemas/schemas_0";
9
9
  export const getRuntimeConfig = (config) => {
10
10
  return {
11
- apiVersion: "v1",
11
+ apiVersion: "v2",
12
12
  base64Decoder: config?.base64Decoder ?? fromBase64,
13
13
  base64Encoder: config?.base64Encoder ?? toBase64,
14
14
  disableHostPrefix: config?.disableHostPrefix ?? false,
@@ -47,7 +47,7 @@ export const getRuntimeConfig = (config) => {
47
47
  protocolSettings: config?.protocolSettings ?? {
48
48
  defaultNamespace: "wildix.wilma.copilot.sessions",
49
49
  errorTypeRegistries,
50
- version: "v1",
50
+ version: "v2",
51
51
  serviceTarget: "WilmaCopilotSessions",
52
52
  },
53
53
  sdkStreamMixin: config?.sdkStreamMixin ?? sdkStreamMixin,
@@ -27,12 +27,11 @@ declare const ListRelationshipSessionsCommand_base: {
27
27
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
28
  };
29
29
  /**
30
- * Lists the copilot sessions associated with a relationship, most recent first — the paginated,
31
- * id-keyed form of the `related` / `sessions` lists Open, Enrich and Resolve return inline. Use it
32
- * to render and page a customer's cross-channel history (calls, chats, conferences and the `app`
33
- * session) in the copilot header, and to refresh after a `relationship` stream event announces a
34
- * new session on the relationship. Sessions are company-owned and shared within the tenant; an
35
- * unknown relationship in scope returns an empty list rather than an error.
30
+ * Lists the copilot sessions associated with a relationship, most recent first — the paginated
31
+ * form of the `related` / `sessions` lists Open, Enrich and Resolve return inline. Use it to page
32
+ * a customer's cross-channel history, and to refresh after a `relationship` stream event announces
33
+ * a new session. Sessions are company-owned and shared within the tenant; an unknown relationship
34
+ * in scope returns an empty list rather than an error.
36
35
  * @example
37
36
  * Use a bare-bones client and the command you need to make an API call.
38
37
  * ```javascript
@@ -30,7 +30,7 @@ declare const OpenCommand_base: {
30
30
  * Opens copilot for a client surface. `lookup` (when present) is treated as hints: emails,
31
31
  * phones and entity references are resolved authoritatively server-side and merged into a
32
32
  * relationship. Routing picks the session — clients never pass conversation ids: the
33
- * relationship's live conversation session (calls and chats are created by the WDA stream)
33
+ * relationship's live conversation session (created automatically when a call or chat starts)
34
34
  * when one exists, otherwise the relationship's `app` session (server-minted, reused while
35
35
  * idle). The response returns the sessions already associated with the relationship, so the client
36
36
  * can render cross-channel history without a second call.
@@ -28,7 +28,7 @@ declare const StreamSessionEventsCommand_base: {
28
28
  getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
29
29
  };
30
30
  /**
31
- * Replays and tails copilot session events as Server-Sent Events (`text/event-stream`). Each frame carries one CopilotSessionEvent: `id:` is the event index, `event:` is the union member name, and `data:` is the JSON document of the union value. Reconnect by passing the last seen index + 1 as `startIndex`. The stream closes after a `lifecycle` event that leaves the session dormant (`idle`, `archived`) or `failed`. Dormant sessions can revive on a later event — reconnect with the last seen index + 1 to continue; for dormant sessions the recorded events are replayed and the stream closes.
31
+ * Replays and tails copilot session events as Server-Sent Events (`text/event-stream`). Each frame carries one CopilotSessionEvent: `id:` is the event index, `event:` is the union member name, and `data:` is the JSON document of the union value. The stream closes after a `lifecycle` event that leaves the session dormant (`idle`, `archived`) or `failed`; reconnect with the last seen index + 1 as `startIndex` to resume, including after a dormant session revives.
32
32
  * @example
33
33
  * Use a bare-bones client and the command you need to make an API call.
34
34
  * ```javascript
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@wildix/wilma-copilot-sessions-client",
3
3
  "description": "@wildix/wilma-copilot-sessions-client client",
4
- "version": "1.0.12",
4
+ "version": "1.0.13",
5
5
  "scripts": {
6
6
  "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'",
7
7
  "build:cjs": "tsc -p tsconfig.cjs.json",