@wildix/wilma-copilot-sessions-client 1.0.8 → 1.0.9

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.
@@ -6,6 +6,7 @@ const ActCommand_1 = require("./commands/ActCommand");
6
6
  const AskCommand_1 = require("./commands/AskCommand");
7
7
  const EnrichCommand_1 = require("./commands/EnrichCommand");
8
8
  const GetSessionEventsCommand_1 = require("./commands/GetSessionEventsCommand");
9
+ const ListRelationshipSessionsCommand_1 = require("./commands/ListRelationshipSessionsCommand");
9
10
  const ListSessionsCommand_1 = require("./commands/ListSessionsCommand");
10
11
  const OpenCommand_1 = require("./commands/OpenCommand");
11
12
  const ResolveCommand_1 = require("./commands/ResolveCommand");
@@ -17,6 +18,7 @@ const commands = {
17
18
  AskCommand: AskCommand_1.AskCommand,
18
19
  EnrichCommand: EnrichCommand_1.EnrichCommand,
19
20
  GetSessionEventsCommand: GetSessionEventsCommand_1.GetSessionEventsCommand,
21
+ ListRelationshipSessionsCommand: ListRelationshipSessionsCommand_1.ListRelationshipSessionsCommand,
20
22
  ListSessionsCommand: ListSessionsCommand_1.ListSessionsCommand,
21
23
  OpenCommand: OpenCommand_1.OpenCommand,
22
24
  ResolveCommand: ResolveCommand_1.ResolveCommand,
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.ListRelationshipSessionsCommand = exports.$Command = void 0;
4
+ const client_1 = require("@smithy/core/client");
5
+ Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
6
+ const endpoints_1 = require("@smithy/core/endpoints");
7
+ const EndpointParameters_1 = require("../endpoint/EndpointParameters");
8
+ const schemas_0_1 = require("../schemas/schemas_0");
9
+ class ListRelationshipSessionsCommand extends client_1.Command
10
+ .classBuilder()
11
+ .ep(EndpointParameters_1.commonParams)
12
+ .m(function (Command, cs, config, o) {
13
+ return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
14
+ })
15
+ .s("WilmaCopilotSessions", "ListRelationshipSessions", {})
16
+ .n("WilmaCopilotSessionsClient", "ListRelationshipSessionsCommand")
17
+ .sc(schemas_0_1.ListRelationshipSessions$)
18
+ .build() {
19
+ }
20
+ exports.ListRelationshipSessionsCommand = ListRelationshipSessionsCommand;
@@ -5,6 +5,7 @@ tslib_1.__exportStar(require("./ActCommand"), exports);
5
5
  tslib_1.__exportStar(require("./AskCommand"), exports);
6
6
  tslib_1.__exportStar(require("./EnrichCommand"), exports);
7
7
  tslib_1.__exportStar(require("./GetSessionEventsCommand"), exports);
8
+ tslib_1.__exportStar(require("./ListRelationshipSessionsCommand"), exports);
8
9
  tslib_1.__exportStar(require("./ListSessionsCommand"), exports);
9
10
  tslib_1.__exportStar(require("./OpenCommand"), exports);
10
11
  tslib_1.__exportStar(require("./ResolveCommand"), exports);
@@ -1,7 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ButtonActionHandler$ = exports.TrackOutput$ = exports.TrackInput$ = exports.StreamSessionEventsOutput$ = exports.StreamSessionEventsInput$ = exports.SmartActionClientAction$ = exports.ResolveOutput$ = exports.ResolveInput$ = exports.OpenOutput$ = exports.OpenInput$ = exports.ListSessionsOutput$ = exports.ListSessionsInput$ = exports.KnowledgeSearchClientAction$ = exports.GetSessionEventsOutput$ = exports.GetSessionEventsInput$ = exports.EnrichOutput$ = exports.EnrichInput$ = exports.CopilotTranscriptionEvent$ = exports.CopilotSessionSummary$ = exports.CopilotRelationshipEvent$ = exports.CopilotLifecycleEvent$ = exports.CopilotIntentEvent$ = exports.CopilotIngestedSession$ = exports.CopilotEvaluationEvent$ = exports.CopilotContextLookup$ = exports.CopilotContextEntity$ = exports.CopilotContextConversation$ = exports.CopilotAssistantEvent$ = exports.CopilotAssetView$ = exports.CopilotAssetEvent$ = exports.CopilotAskEvent$ = exports.CopilotActionEvent$ = exports.AskOutput$ = exports.AskInput$ = exports.ActOutput$ = exports.ActInput$ = exports.ConferenceTranscriptionChunk$ = exports.ConferenceParticipant$ = exports.ConferenceAnalyticsLiveTranscriptionEvent$ = exports.ChatAnalyticsLiveTranscriptionEvent$ = exports.CallTranscriptionChunk$ = exports.CallParticipant$ = exports.CallAnalyticsLiveTranscriptionEvent$ = exports.TemplateWithParameters$ = exports.TemplateParameter$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.NotFoundException$ = exports.ForbiddenException$ = exports.WilmaCopilotSessionsServiceException$ = void 0;
4
- exports.Track$ = exports.StreamSessionEvents$ = exports.Resolve$ = exports.Open$ = exports.ListSessions$ = exports.GetSessionEvents$ = exports.Enrich$ = exports.Ask$ = exports.Act$ = exports.Element$ = exports.ButtonHandler$ = exports.ActionElement$ = exports.CopilotTranscriptionData$ = exports.CopilotSessionEvent$ = exports.CopilotClientAction$ = exports.User$ = exports.Reaction$ = exports.MessageTemplateConfig$ = exports.MessageQuote$ = exports.MessageGiphy$ = exports.MessageForward$ = exports.MessageAttachment$ = exports.Message$ = exports.ButtonReplyHandler$ = exports.ButtonLinkHandler$ = exports.ButtonElement$ = void 0;
3
+ exports.TrackInput$ = exports.StreamSessionEventsOutput$ = exports.StreamSessionEventsInput$ = exports.SmartActionClientAction$ = exports.ResolveOutput$ = exports.ResolveInput$ = exports.OpenOutput$ = exports.OpenInput$ = exports.ListSessionsOutput$ = exports.ListSessionsInput$ = exports.ListRelationshipSessionsOutput$ = exports.ListRelationshipSessionsInput$ = exports.KnowledgeSearchClientAction$ = exports.GetSessionEventsOutput$ = exports.GetSessionEventsInput$ = exports.EnrichOutput$ = exports.EnrichInput$ = exports.CopilotTranscriptionEvent$ = exports.CopilotSessionSummary$ = exports.CopilotRelationshipEvent$ = exports.CopilotLifecycleEvent$ = exports.CopilotIntentEvent$ = exports.CopilotIngestedSession$ = exports.CopilotEvaluationEvent$ = exports.CopilotContextLookup$ = exports.CopilotContextEntity$ = exports.CopilotContextConversation$ = exports.CopilotAssistantEvent$ = exports.CopilotAssetView$ = exports.CopilotAssetEvent$ = exports.CopilotAskEvent$ = exports.CopilotActionEvent$ = exports.AskOutput$ = exports.AskInput$ = exports.ActOutput$ = exports.ActInput$ = exports.ConferenceTranscriptionChunk$ = exports.ConferenceParticipant$ = exports.ConferenceAnalyticsLiveTranscriptionEvent$ = exports.ChatAnalyticsLiveTranscriptionEvent$ = exports.CallTranscriptionChunk$ = exports.CallParticipant$ = exports.CallAnalyticsLiveTranscriptionEvent$ = exports.TemplateWithParameters$ = exports.TemplateParameter$ = exports.errorTypeRegistries = exports.ValidationException$ = exports.NotFoundException$ = exports.ForbiddenException$ = exports.WilmaCopilotSessionsServiceException$ = void 0;
4
+ exports.Track$ = exports.StreamSessionEvents$ = exports.Resolve$ = exports.Open$ = exports.ListSessions$ = exports.ListRelationshipSessions$ = exports.GetSessionEvents$ = exports.Enrich$ = exports.Ask$ = exports.Act$ = exports.Element$ = exports.ButtonHandler$ = exports.ActionElement$ = exports.CopilotTranscriptionData$ = exports.CopilotSessionEvent$ = exports.CopilotClientAction$ = exports.User$ = exports.Reaction$ = exports.MessageTemplateConfig$ = exports.MessageQuote$ = exports.MessageGiphy$ = exports.MessageForward$ = exports.MessageAttachment$ = exports.Message$ = exports.ButtonReplyHandler$ = exports.ButtonLinkHandler$ = exports.ButtonElement$ = exports.ButtonActionHandler$ = exports.TrackOutput$ = void 0;
5
5
  const _A = "Act";
6
6
  const _AE = "ActionElement";
7
7
  const _AEL = "ActionsElementsList";
@@ -56,6 +56,9 @@ const _GSE = "GetSessionEvents";
56
56
  const _GSEI = "GetSessionEventsInput";
57
57
  const _GSEO = "GetSessionEventsOutput";
58
58
  const _KSCA = "KnowledgeSearchClientAction";
59
+ const _LRS = "ListRelationshipSessions";
60
+ const _LRSI = "ListRelationshipSessionsInput";
61
+ const _LRSO = "ListRelationshipSessionsOutput";
59
62
  const _LS = "ListSessions";
60
63
  const _LSI = "ListSessionsInput";
61
64
  const _LSO = "ListSessionsOutput";
@@ -446,6 +449,16 @@ exports.KnowledgeSearchClientAction$ = [3, n1, _KSCA,
446
449
  [_qI, _q],
447
450
  [0, 0], 1
448
451
  ];
452
+ exports.ListRelationshipSessionsInput$ = [3, n1, _LRSI,
453
+ 0,
454
+ [_rI, _co, _lim, _cu],
455
+ [[0, 1], [0, { [_hQ]: _co }], [1, { [_hQ]: _lim }], [0, { [_hQ]: _cu }]], 1
456
+ ];
457
+ exports.ListRelationshipSessionsOutput$ = [3, n1, _LRSO,
458
+ 0,
459
+ [_ses, _nC],
460
+ [() => CopilotSessionSummaryList, 0], 1
461
+ ];
449
462
  exports.ListSessionsInput$ = [3, n1, _LSI,
450
463
  0,
451
464
  [_co, _u, _lim, _cu],
@@ -638,6 +651,9 @@ exports.Enrich$ = [9, n1, _En,
638
651
  exports.GetSessionEvents$ = [9, n1, _GSE,
639
652
  { [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events", 200] }, () => exports.GetSessionEventsInput$, () => exports.GetSessionEventsOutput$
640
653
  ];
654
+ exports.ListRelationshipSessions$ = [9, n1, _LRS,
655
+ { [_ht]: ["GET", "/v2/copilot/relationships/{relationshipId}/sessions", 200] }, () => exports.ListRelationshipSessionsInput$, () => exports.ListRelationshipSessionsOutput$
656
+ ];
641
657
  exports.ListSessions$ = [9, n1, _LS,
642
658
  { [_ht]: ["GET", "/v2/copilot/sessions", 200] }, () => exports.ListSessionsInput$, () => exports.ListSessionsOutput$
643
659
  ];
@@ -3,6 +3,7 @@ import { ActCommand } from "./commands/ActCommand";
3
3
  import { AskCommand } from "./commands/AskCommand";
4
4
  import { EnrichCommand } from "./commands/EnrichCommand";
5
5
  import { GetSessionEventsCommand, } from "./commands/GetSessionEventsCommand";
6
+ import { ListRelationshipSessionsCommand, } from "./commands/ListRelationshipSessionsCommand";
6
7
  import { ListSessionsCommand, } from "./commands/ListSessionsCommand";
7
8
  import { OpenCommand } from "./commands/OpenCommand";
8
9
  import { ResolveCommand } from "./commands/ResolveCommand";
@@ -14,6 +15,7 @@ const commands = {
14
15
  AskCommand,
15
16
  EnrichCommand,
16
17
  GetSessionEventsCommand,
18
+ ListRelationshipSessionsCommand,
17
19
  ListSessionsCommand,
18
20
  OpenCommand,
19
21
  ResolveCommand,
@@ -0,0 +1,16 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import { getEndpointPlugin } from "@smithy/core/endpoints";
3
+ import { commonParams } from "../endpoint/EndpointParameters";
4
+ import { ListRelationshipSessions$ } from "../schemas/schemas_0";
5
+ export { $Command };
6
+ export class ListRelationshipSessionsCommand extends $Command
7
+ .classBuilder()
8
+ .ep(commonParams)
9
+ .m(function (Command, cs, config, o) {
10
+ return [getEndpointPlugin(config, Command.getEndpointParameterInstructions())];
11
+ })
12
+ .s("WilmaCopilotSessions", "ListRelationshipSessions", {})
13
+ .n("WilmaCopilotSessionsClient", "ListRelationshipSessionsCommand")
14
+ .sc(ListRelationshipSessions$)
15
+ .build() {
16
+ }
@@ -2,6 +2,7 @@ export * from "./ActCommand";
2
2
  export * from "./AskCommand";
3
3
  export * from "./EnrichCommand";
4
4
  export * from "./GetSessionEventsCommand";
5
+ export * from "./ListRelationshipSessionsCommand";
5
6
  export * from "./ListSessionsCommand";
6
7
  export * from "./OpenCommand";
7
8
  export * from "./ResolveCommand";
@@ -52,6 +52,9 @@ const _GSE = "GetSessionEvents";
52
52
  const _GSEI = "GetSessionEventsInput";
53
53
  const _GSEO = "GetSessionEventsOutput";
54
54
  const _KSCA = "KnowledgeSearchClientAction";
55
+ const _LRS = "ListRelationshipSessions";
56
+ const _LRSI = "ListRelationshipSessionsInput";
57
+ const _LRSO = "ListRelationshipSessionsOutput";
55
58
  const _LS = "ListSessions";
56
59
  const _LSI = "ListSessionsInput";
57
60
  const _LSO = "ListSessionsOutput";
@@ -442,6 +445,16 @@ export var KnowledgeSearchClientAction$ = [3, n1, _KSCA,
442
445
  [_qI, _q],
443
446
  [0, 0], 1
444
447
  ];
448
+ export var ListRelationshipSessionsInput$ = [3, n1, _LRSI,
449
+ 0,
450
+ [_rI, _co, _lim, _cu],
451
+ [[0, 1], [0, { [_hQ]: _co }], [1, { [_hQ]: _lim }], [0, { [_hQ]: _cu }]], 1
452
+ ];
453
+ export var ListRelationshipSessionsOutput$ = [3, n1, _LRSO,
454
+ 0,
455
+ [_ses, _nC],
456
+ [() => CopilotSessionSummaryList, 0], 1
457
+ ];
445
458
  export var ListSessionsInput$ = [3, n1, _LSI,
446
459
  0,
447
460
  [_co, _u, _lim, _cu],
@@ -634,6 +647,9 @@ export var Enrich$ = [9, n1, _En,
634
647
  export var GetSessionEvents$ = [9, n1, _GSE,
635
648
  { [_ht]: ["GET", "/v2/copilot/sessions/{sessionId}/events", 200] }, () => GetSessionEventsInput$, () => GetSessionEventsOutput$
636
649
  ];
650
+ export var ListRelationshipSessions$ = [9, n1, _LRS,
651
+ { [_ht]: ["GET", "/v2/copilot/relationships/{relationshipId}/sessions", 200] }, () => ListRelationshipSessionsInput$, () => ListRelationshipSessionsOutput$
652
+ ];
637
653
  export var ListSessions$ = [9, n1, _LS,
638
654
  { [_ht]: ["GET", "/v2/copilot/sessions", 200] }, () => ListSessionsInput$, () => ListSessionsOutput$
639
655
  ];
@@ -3,6 +3,7 @@ import { type ActCommandInput, type ActCommandOutput } from "./commands/ActComma
3
3
  import { type AskCommandInput, type AskCommandOutput } from "./commands/AskCommand";
4
4
  import { type EnrichCommandInput, type EnrichCommandOutput } from "./commands/EnrichCommand";
5
5
  import { type GetSessionEventsCommandInput, type GetSessionEventsCommandOutput } from "./commands/GetSessionEventsCommand";
6
+ import { type ListRelationshipSessionsCommandInput, type ListRelationshipSessionsCommandOutput } from "./commands/ListRelationshipSessionsCommand";
6
7
  import { type ListSessionsCommandInput, type ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
7
8
  import { type OpenCommandInput, type OpenCommandOutput } from "./commands/OpenCommand";
8
9
  import { type ResolveCommandInput, type ResolveCommandOutput } from "./commands/ResolveCommand";
@@ -34,6 +35,12 @@ export interface WilmaCopilotSessions {
34
35
  getSessionEvents(args: GetSessionEventsCommandInput, options?: __HttpHandlerOptions): Promise<GetSessionEventsCommandOutput>;
35
36
  getSessionEvents(args: GetSessionEventsCommandInput, cb: (err: any, data?: GetSessionEventsCommandOutput) => void): void;
36
37
  getSessionEvents(args: GetSessionEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSessionEventsCommandOutput) => void): void;
38
+ /**
39
+ * @see {@link ListRelationshipSessionsCommand}
40
+ */
41
+ listRelationshipSessions(args: ListRelationshipSessionsCommandInput, options?: __HttpHandlerOptions): Promise<ListRelationshipSessionsCommandOutput>;
42
+ listRelationshipSessions(args: ListRelationshipSessionsCommandInput, cb: (err: any, data?: ListRelationshipSessionsCommandOutput) => void): void;
43
+ listRelationshipSessions(args: ListRelationshipSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListRelationshipSessionsCommandOutput) => void): void;
37
44
  /**
38
45
  * @see {@link ListSessionsCommand}
39
46
  */
@@ -9,6 +9,7 @@ import type { ActCommandInput, ActCommandOutput } from "./commands/ActCommand";
9
9
  import type { AskCommandInput, AskCommandOutput } from "./commands/AskCommand";
10
10
  import type { EnrichCommandInput, EnrichCommandOutput } from "./commands/EnrichCommand";
11
11
  import type { GetSessionEventsCommandInput, GetSessionEventsCommandOutput } from "./commands/GetSessionEventsCommand";
12
+ import type { ListRelationshipSessionsCommandInput, ListRelationshipSessionsCommandOutput } from "./commands/ListRelationshipSessionsCommand";
12
13
  import type { ListSessionsCommandInput, ListSessionsCommandOutput } from "./commands/ListSessionsCommand";
13
14
  import type { OpenCommandInput, OpenCommandOutput } from "./commands/OpenCommand";
14
15
  import type { ResolveCommandInput, ResolveCommandOutput } from "./commands/ResolveCommand";
@@ -20,11 +21,11 @@ export { __Client };
20
21
  /**
21
22
  * @public
22
23
  */
23
- export type ServiceInputTypes = ActCommandInput | AskCommandInput | EnrichCommandInput | GetSessionEventsCommandInput | ListSessionsCommandInput | OpenCommandInput | ResolveCommandInput | StreamSessionEventsCommandInput | TrackCommandInput;
24
+ export type ServiceInputTypes = ActCommandInput | AskCommandInput | EnrichCommandInput | GetSessionEventsCommandInput | ListRelationshipSessionsCommandInput | ListSessionsCommandInput | OpenCommandInput | ResolveCommandInput | StreamSessionEventsCommandInput | TrackCommandInput;
24
25
  /**
25
26
  * @public
26
27
  */
27
- export type ServiceOutputTypes = ActCommandOutput | AskCommandOutput | EnrichCommandOutput | GetSessionEventsCommandOutput | ListSessionsCommandOutput | OpenCommandOutput | ResolveCommandOutput | StreamSessionEventsCommandOutput | TrackCommandOutput;
28
+ export type ServiceOutputTypes = ActCommandOutput | AskCommandOutput | EnrichCommandOutput | GetSessionEventsCommandOutput | ListRelationshipSessionsCommandOutput | ListSessionsCommandOutput | OpenCommandOutput | ResolveCommandOutput | StreamSessionEventsCommandOutput | TrackCommandOutput;
28
29
  /**
29
30
  * @public
30
31
  */
@@ -0,0 +1,98 @@
1
+ import { Command as $Command } from "@smithy/core/client";
2
+ import type { MetadataBearer as __MetadataBearer } from "@smithy/types";
3
+ import type { ListRelationshipSessionsInput, ListRelationshipSessionsOutput } from "../models/models_0";
4
+ import type { ServiceInputTypes, ServiceOutputTypes, WilmaCopilotSessionsClientResolvedConfig } from "../WilmaCopilotSessionsClient";
5
+ /**
6
+ * @public
7
+ */
8
+ export type { __MetadataBearer };
9
+ export { $Command };
10
+ /**
11
+ * @public
12
+ *
13
+ * The input for {@link ListRelationshipSessionsCommand}.
14
+ */
15
+ export interface ListRelationshipSessionsCommandInput extends ListRelationshipSessionsInput {
16
+ }
17
+ /**
18
+ * @public
19
+ *
20
+ * The output of {@link ListRelationshipSessionsCommand}.
21
+ */
22
+ export interface ListRelationshipSessionsCommandOutput extends ListRelationshipSessionsOutput, __MetadataBearer {
23
+ }
24
+ declare const ListRelationshipSessionsCommand_base: {
25
+ new (input: ListRelationshipSessionsCommandInput): import("@smithy/core/client").CommandImpl<ListRelationshipSessionsCommandInput, ListRelationshipSessionsCommandOutput, WilmaCopilotSessionsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
26
+ new (input: ListRelationshipSessionsCommandInput): import("@smithy/core/client").CommandImpl<ListRelationshipSessionsCommandInput, ListRelationshipSessionsCommandOutput, WilmaCopilotSessionsClientResolvedConfig, ServiceInputTypes, ServiceOutputTypes>;
27
+ getEndpointParameterInstructions(): import("@smithy/types").EndpointParameterInstructions;
28
+ };
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.
36
+ * @example
37
+ * Use a bare-bones client and the command you need to make an API call.
38
+ * ```javascript
39
+ * import { WilmaCopilotSessionsClient, ListRelationshipSessionsCommand } from "@wildix/wilma-copilot-sessions-client"; // ES Modules import
40
+ * // const { WilmaCopilotSessionsClient, ListRelationshipSessionsCommand } = require("@wildix/wilma-copilot-sessions-client"); // CommonJS import
41
+ * // import type { WilmaCopilotSessionsClientConfig } from "@wildix/wilma-copilot-sessions-client";
42
+ * const config = {}; // type is WilmaCopilotSessionsClientConfig
43
+ * const client = new WilmaCopilotSessionsClient(config);
44
+ * const input = { // ListRelationshipSessionsInput
45
+ * relationshipId: "STRING_VALUE", // required
46
+ * company: "STRING_VALUE",
47
+ * limit: Number("int"),
48
+ * cursor: "STRING_VALUE",
49
+ * };
50
+ * const command = new ListRelationshipSessionsCommand(input);
51
+ * const response = await client.send(command);
52
+ * // { // ListRelationshipSessionsOutput
53
+ * // sessions: [ // CopilotSessionSummaryList // required
54
+ * // { // CopilotSessionSummary
55
+ * // id: "STRING_VALUE", // required
56
+ * // status: "active" || "idle" || "archived" || "failed", // required
57
+ * // conversation: { // CopilotContextConversation
58
+ * // id: "STRING_VALUE", // required
59
+ * // kind: "call" || "chat" || "conference" || "app", // required
60
+ * // },
61
+ * // startedAt: "STRING_VALUE",
62
+ * // lastActivityAt: "STRING_VALUE",
63
+ * // },
64
+ * // ],
65
+ * // nextCursor: "STRING_VALUE",
66
+ * // };
67
+ *
68
+ * ```
69
+ *
70
+ * @param ListRelationshipSessionsCommandInput - {@link ListRelationshipSessionsCommandInput}
71
+ * @returns {@link ListRelationshipSessionsCommandOutput}
72
+ * @see {@link ListRelationshipSessionsCommandInput} for command's `input` shape.
73
+ * @see {@link ListRelationshipSessionsCommandOutput} for command's `response` shape.
74
+ * @see {@link WilmaCopilotSessionsClientResolvedConfig | config} for WilmaCopilotSessionsClient's `config` shape.
75
+ *
76
+ * @throws {@link ValidationException} (client fault)
77
+ *
78
+ * @throws {@link ForbiddenException} (client fault)
79
+ *
80
+ * @throws {@link WilmaCopilotSessionsServiceException}
81
+ * <p>Base exception class for all service exceptions from WilmaCopilotSessions service.</p>
82
+ *
83
+ *
84
+ * @public
85
+ */
86
+ export declare class ListRelationshipSessionsCommand extends ListRelationshipSessionsCommand_base {
87
+ /** @internal type navigation helper, not in runtime. */
88
+ protected static __types: {
89
+ api: {
90
+ input: ListRelationshipSessionsInput;
91
+ output: ListRelationshipSessionsOutput;
92
+ };
93
+ sdk: {
94
+ input: ListRelationshipSessionsCommandInput;
95
+ output: ListRelationshipSessionsCommandOutput;
96
+ };
97
+ };
98
+ }
@@ -2,6 +2,7 @@ export * from "./ActCommand";
2
2
  export * from "./AskCommand";
3
3
  export * from "./EnrichCommand";
4
4
  export * from "./GetSessionEventsCommand";
5
+ export * from "./ListRelationshipSessionsCommand";
5
6
  export * from "./ListSessionsCommand";
6
7
  export * from "./OpenCommand";
7
8
  export * from "./ResolveCommand";
@@ -1189,6 +1189,38 @@ export interface GetSessionEventsOutput {
1189
1189
  */
1190
1190
  nextStartIndex?: number | undefined;
1191
1191
  }
1192
+ /**
1193
+ * @public
1194
+ */
1195
+ export interface ListRelationshipSessionsInput {
1196
+ /**
1197
+ * The relationship whose sessions to list, as returned by Open, Enrich or Resolve.
1198
+ * @public
1199
+ */
1200
+ relationshipId: string;
1201
+ /**
1202
+ * Company that owns the relationship. Required when calling with a service (s2s) token, which is not scoped to a single company.
1203
+ * @public
1204
+ */
1205
+ company?: string | undefined;
1206
+ limit?: number | undefined;
1207
+ /**
1208
+ * Opaque cursor returned by a previous page; pass it back to fetch the next page.
1209
+ * @public
1210
+ */
1211
+ cursor?: string | undefined;
1212
+ }
1213
+ /**
1214
+ * @public
1215
+ */
1216
+ export interface ListRelationshipSessionsOutput {
1217
+ sessions: CopilotSessionSummary[];
1218
+ /**
1219
+ * Present when more sessions exist; pass it as `cursor` of the next call.
1220
+ * @public
1221
+ */
1222
+ nextCursor?: string | undefined;
1223
+ }
1192
1224
  /**
1193
1225
  * @public
1194
1226
  */
@@ -43,6 +43,8 @@ export declare var EnrichOutput$: StaticStructureSchema;
43
43
  export declare var GetSessionEventsInput$: StaticStructureSchema;
44
44
  export declare var GetSessionEventsOutput$: StaticStructureSchema;
45
45
  export declare var KnowledgeSearchClientAction$: StaticStructureSchema;
46
+ export declare var ListRelationshipSessionsInput$: StaticStructureSchema;
47
+ export declare var ListRelationshipSessionsOutput$: StaticStructureSchema;
46
48
  export declare var ListSessionsInput$: StaticStructureSchema;
47
49
  export declare var ListSessionsOutput$: StaticStructureSchema;
48
50
  export declare var OpenInput$: StaticStructureSchema;
@@ -76,6 +78,7 @@ export declare var Act$: StaticOperationSchema;
76
78
  export declare var Ask$: StaticOperationSchema;
77
79
  export declare var Enrich$: StaticOperationSchema;
78
80
  export declare var GetSessionEvents$: StaticOperationSchema;
81
+ export declare var ListRelationshipSessions$: StaticOperationSchema;
79
82
  export declare var ListSessions$: StaticOperationSchema;
80
83
  export declare var Open$: StaticOperationSchema;
81
84
  export declare var Resolve$: StaticOperationSchema;
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.8",
4
+ "version": "1.0.9",
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",