@wildix/wilma-copilot-sessions-client 1.0.2 → 1.0.4

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.
@@ -290,8 +290,8 @@ exports.CopilotTranscriptionEvent$ = [3, n1, _CTE,
290
290
  ];
291
291
  exports.GetCopilotSessionEventsInput$ = [3, n1, _GCSEI,
292
292
  0,
293
- [_sI, _sIt, _lim],
294
- [[0, 1], [1, { [_hQ]: _sIt }], [1, { [_hQ]: _lim }]], 1
293
+ [_sI, _co, _sIt, _lim],
294
+ [[0, 1], [0, { [_hQ]: _co }], [1, { [_hQ]: _sIt }], [1, { [_hQ]: _lim }]], 1
295
295
  ];
296
296
  exports.GetCopilotSessionEventsOutput$ = [3, n1, _GCSEO,
297
297
  0,
@@ -300,8 +300,8 @@ exports.GetCopilotSessionEventsOutput$ = [3, n1, _GCSEO,
300
300
  ];
301
301
  exports.StreamCopilotSessionEventsInput$ = [3, n1, _SCSEI,
302
302
  0,
303
- [_sI, _sIt],
304
- [[0, 1], [1, { [_hQ]: _sIt }]], 1
303
+ [_sI, _co, _sIt],
304
+ [[0, 1], [0, { [_hQ]: _co }], [1, { [_hQ]: _sIt }]], 1
305
305
  ];
306
306
  exports.StreamCopilotSessionEventsOutput$ = [3, n1, _SCSEO,
307
307
  0,
@@ -417,8 +417,8 @@ exports.Element$ = [4, n4, _E,
417
417
  [() => exports.MessageTemplateConfig$, () => ActionsElementsList]
418
418
  ];
419
419
  exports.GetCopilotSessionEvents$ = [9, n1, _GCSE,
420
- { [_ht]: ["GET", "/v1/sessions/{sessionId}/events", 200] }, () => exports.GetCopilotSessionEventsInput$, () => exports.GetCopilotSessionEventsOutput$
420
+ { [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events", 200] }, () => exports.GetCopilotSessionEventsInput$, () => exports.GetCopilotSessionEventsOutput$
421
421
  ];
422
422
  exports.StreamCopilotSessionEvents$ = [9, n1, _SCSE,
423
- { [_ht]: ["GET", "/v1/sessions/{sessionId}/events/stream", 200] }, () => exports.StreamCopilotSessionEventsInput$, () => exports.StreamCopilotSessionEventsOutput$
423
+ { [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events/stream", 200] }, () => exports.StreamCopilotSessionEventsInput$, () => exports.StreamCopilotSessionEventsOutput$
424
424
  ];
@@ -287,8 +287,8 @@ export var CopilotTranscriptionEvent$ = [3, n1, _CTE,
287
287
  ];
288
288
  export var GetCopilotSessionEventsInput$ = [3, n1, _GCSEI,
289
289
  0,
290
- [_sI, _sIt, _lim],
291
- [[0, 1], [1, { [_hQ]: _sIt }], [1, { [_hQ]: _lim }]], 1
290
+ [_sI, _co, _sIt, _lim],
291
+ [[0, 1], [0, { [_hQ]: _co }], [1, { [_hQ]: _sIt }], [1, { [_hQ]: _lim }]], 1
292
292
  ];
293
293
  export var GetCopilotSessionEventsOutput$ = [3, n1, _GCSEO,
294
294
  0,
@@ -297,8 +297,8 @@ export var GetCopilotSessionEventsOutput$ = [3, n1, _GCSEO,
297
297
  ];
298
298
  export var StreamCopilotSessionEventsInput$ = [3, n1, _SCSEI,
299
299
  0,
300
- [_sI, _sIt],
301
- [[0, 1], [1, { [_hQ]: _sIt }]], 1
300
+ [_sI, _co, _sIt],
301
+ [[0, 1], [0, { [_hQ]: _co }], [1, { [_hQ]: _sIt }]], 1
302
302
  ];
303
303
  export var StreamCopilotSessionEventsOutput$ = [3, n1, _SCSEO,
304
304
  0,
@@ -414,8 +414,8 @@ export var Element$ = [4, n4, _E,
414
414
  [() => MessageTemplateConfig$, () => ActionsElementsList]
415
415
  ];
416
416
  export var GetCopilotSessionEvents$ = [9, n1, _GCSE,
417
- { [_ht]: ["GET", "/v1/sessions/{sessionId}/events", 200] }, () => GetCopilotSessionEventsInput$, () => GetCopilotSessionEventsOutput$
417
+ { [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events", 200] }, () => GetCopilotSessionEventsInput$, () => GetCopilotSessionEventsOutput$
418
418
  ];
419
419
  export var StreamCopilotSessionEvents$ = [9, n1, _SCSE,
420
- { [_ht]: ["GET", "/v1/sessions/{sessionId}/events/stream", 200] }, () => StreamCopilotSessionEventsInput$, () => StreamCopilotSessionEventsOutput$
420
+ { [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events/stream", 200] }, () => StreamCopilotSessionEventsInput$, () => StreamCopilotSessionEventsOutput$
421
421
  ];
@@ -38,6 +38,7 @@ declare const GetCopilotSessionEventsCommand_base: {
38
38
  * const client = new WilmaCopilotSessionsClient(config);
39
39
  * const input = { // GetCopilotSessionEventsInput
40
40
  * sessionId: "STRING_VALUE", // required
41
+ * company: "STRING_VALUE",
41
42
  * startIndex: Number("int"),
42
43
  * limit: Number("int"),
43
44
  * };
@@ -39,6 +39,7 @@ declare const StreamCopilotSessionEventsCommand_base: {
39
39
  * const client = new WilmaCopilotSessionsClient(config);
40
40
  * const input = { // StreamCopilotSessionEventsInput
41
41
  * sessionId: "STRING_VALUE", // required
42
+ * company: "STRING_VALUE",
42
43
  * startIndex: Number("int"),
43
44
  * };
44
45
  * const command = new StreamCopilotSessionEventsCommand(input);
@@ -711,6 +711,11 @@ export declare namespace CopilotSessionEvent {
711
711
  */
712
712
  export interface GetCopilotSessionEventsInput {
713
713
  sessionId: string;
714
+ /**
715
+ * Company that owns the session. Required when calling with a service (s2s) token, which is not scoped to a single company.
716
+ * @public
717
+ */
718
+ company?: string | undefined;
714
719
  /**
715
720
  * Return events with `index >= startIndex`. Defaults to 0.
716
721
  * @public
@@ -738,6 +743,11 @@ export interface GetCopilotSessionEventsOutput {
738
743
  */
739
744
  export interface StreamCopilotSessionEventsInput {
740
745
  sessionId: string;
746
+ /**
747
+ * Company that owns the session. Required when calling with a service (s2s) token, which is not scoped to a single company.
748
+ * @public
749
+ */
750
+ company?: string | undefined;
741
751
  /**
742
752
  * Replay recorded events with `index >= startIndex` before tailing live ones. Defaults to 0.
743
753
  * @public
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.2",
4
+ "version": "1.0.4",
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",