@wildix/wilma-copilot-sessions-client 1.0.5 → 1.0.6
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/dist-cjs/WilmaCopilotSessions.js +14 -4
- package/dist-cjs/commands/{GetCopilotSessionEventsCommand.js → AskCommand.js} +6 -6
- package/dist-cjs/commands/EnrichCommand.js +20 -0
- package/dist-cjs/commands/GetSessionEventsCommand.js +20 -0
- package/dist-cjs/commands/ListSessionsCommand.js +20 -0
- package/dist-cjs/commands/OpenCommand.js +20 -0
- package/dist-cjs/commands/ResolveCommand.js +20 -0
- package/dist-cjs/commands/{StreamCopilotSessionEventsCommand.js → StreamSessionEventsCommand.js} +6 -6
- package/dist-cjs/commands/index.js +7 -2
- package/dist-cjs/models/enums.js +22 -3
- package/dist-cjs/schemas/schemas_0.js +187 -33
- package/dist-es/WilmaCopilotSessions.js +14 -4
- package/dist-es/commands/{GetCopilotSessionEventsCommand.js → AskCommand.js} +5 -5
- package/dist-es/commands/{StreamCopilotSessionEventsCommand.js → EnrichCommand.js} +5 -5
- package/dist-es/commands/GetSessionEventsCommand.js +16 -0
- package/dist-es/commands/ListSessionsCommand.js +16 -0
- package/dist-es/commands/OpenCommand.js +16 -0
- package/dist-es/commands/ResolveCommand.js +16 -0
- package/dist-es/commands/StreamSessionEventsCommand.js +16 -0
- package/dist-es/commands/index.js +7 -2
- package/dist-es/models/enums.js +21 -2
- package/dist-es/schemas/schemas_0.js +185 -32
- package/dist-types/WilmaCopilotSessions.d.ts +53 -10
- package/dist-types/WilmaCopilotSessionsClient.d.ts +15 -4
- package/dist-types/commands/AskCommand.d.ts +87 -0
- package/dist-types/commands/EnrichCommand.d.ts +116 -0
- package/dist-types/commands/{GetCopilotSessionEventsCommand.d.ts → GetSessionEventsCommand.d.ts} +38 -24
- package/dist-types/commands/ListSessionsCommand.d.ts +93 -0
- package/dist-types/commands/OpenCommand.d.ts +117 -0
- package/dist-types/commands/ResolveCommand.d.ts +110 -0
- package/dist-types/commands/{StreamCopilotSessionEventsCommand.d.ts → StreamSessionEventsCommand.d.ts} +23 -23
- package/dist-types/commands/index.d.ts +7 -2
- package/dist-types/index.d.ts +6 -0
- package/dist-types/models/enums.d.ts +79 -6
- package/dist-types/models/models_0.d.ts +369 -9
- package/dist-types/schemas/schemas_0.d.ts +28 -6
- package/package.json +1 -1
|
@@ -2,12 +2,22 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.WilmaCopilotSessions = void 0;
|
|
4
4
|
const client_1 = require("@smithy/core/client");
|
|
5
|
-
const
|
|
6
|
-
const
|
|
5
|
+
const AskCommand_1 = require("./commands/AskCommand");
|
|
6
|
+
const EnrichCommand_1 = require("./commands/EnrichCommand");
|
|
7
|
+
const GetSessionEventsCommand_1 = require("./commands/GetSessionEventsCommand");
|
|
8
|
+
const ListSessionsCommand_1 = require("./commands/ListSessionsCommand");
|
|
9
|
+
const OpenCommand_1 = require("./commands/OpenCommand");
|
|
10
|
+
const ResolveCommand_1 = require("./commands/ResolveCommand");
|
|
11
|
+
const StreamSessionEventsCommand_1 = require("./commands/StreamSessionEventsCommand");
|
|
7
12
|
const WilmaCopilotSessionsClient_1 = require("./WilmaCopilotSessionsClient");
|
|
8
13
|
const commands = {
|
|
9
|
-
|
|
10
|
-
|
|
14
|
+
AskCommand: AskCommand_1.AskCommand,
|
|
15
|
+
EnrichCommand: EnrichCommand_1.EnrichCommand,
|
|
16
|
+
GetSessionEventsCommand: GetSessionEventsCommand_1.GetSessionEventsCommand,
|
|
17
|
+
ListSessionsCommand: ListSessionsCommand_1.ListSessionsCommand,
|
|
18
|
+
OpenCommand: OpenCommand_1.OpenCommand,
|
|
19
|
+
ResolveCommand: ResolveCommand_1.ResolveCommand,
|
|
20
|
+
StreamSessionEventsCommand: StreamSessionEventsCommand_1.StreamSessionEventsCommand,
|
|
11
21
|
};
|
|
12
22
|
class WilmaCopilotSessions extends WilmaCopilotSessionsClient_1.WilmaCopilotSessionsClient {
|
|
13
23
|
}
|
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.AskCommand = exports.$Command = void 0;
|
|
4
4
|
const client_1 = require("@smithy/core/client");
|
|
5
5
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
6
|
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
7
|
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
8
|
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
-
class
|
|
9
|
+
class AskCommand extends client_1.Command
|
|
10
10
|
.classBuilder()
|
|
11
11
|
.ep(EndpointParameters_1.commonParams)
|
|
12
12
|
.m(function (Command, cs, config, o) {
|
|
13
13
|
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
14
|
})
|
|
15
|
-
.s("WilmaCopilotSessions", "
|
|
16
|
-
.n("WilmaCopilotSessionsClient", "
|
|
17
|
-
.sc(schemas_0_1.
|
|
15
|
+
.s("WilmaCopilotSessions", "Ask", {})
|
|
16
|
+
.n("WilmaCopilotSessionsClient", "AskCommand")
|
|
17
|
+
.sc(schemas_0_1.Ask$)
|
|
18
18
|
.build() {
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
20
|
+
exports.AskCommand = AskCommand;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.EnrichCommand = 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 EnrichCommand 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", "Enrich", {})
|
|
16
|
+
.n("WilmaCopilotSessionsClient", "EnrichCommand")
|
|
17
|
+
.sc(schemas_0_1.Enrich$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.EnrichCommand = EnrichCommand;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.GetSessionEventsCommand = 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 GetSessionEventsCommand 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", "GetSessionEvents", {})
|
|
16
|
+
.n("WilmaCopilotSessionsClient", "GetSessionEventsCommand")
|
|
17
|
+
.sc(schemas_0_1.GetSessionEvents$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.GetSessionEventsCommand = GetSessionEventsCommand;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ListSessionsCommand = 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 ListSessionsCommand 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", "ListSessions", {})
|
|
16
|
+
.n("WilmaCopilotSessionsClient", "ListSessionsCommand")
|
|
17
|
+
.sc(schemas_0_1.ListSessions$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.ListSessionsCommand = ListSessionsCommand;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.OpenCommand = 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 OpenCommand 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", "Open", {})
|
|
16
|
+
.n("WilmaCopilotSessionsClient", "OpenCommand")
|
|
17
|
+
.sc(schemas_0_1.Open$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.OpenCommand = OpenCommand;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.ResolveCommand = 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 ResolveCommand 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", "Resolve", {})
|
|
16
|
+
.n("WilmaCopilotSessionsClient", "ResolveCommand")
|
|
17
|
+
.sc(schemas_0_1.Resolve$)
|
|
18
|
+
.build() {
|
|
19
|
+
}
|
|
20
|
+
exports.ResolveCommand = ResolveCommand;
|
package/dist-cjs/commands/{StreamCopilotSessionEventsCommand.js → StreamSessionEventsCommand.js}
RENAMED
|
@@ -1,20 +1,20 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.StreamSessionEventsCommand = exports.$Command = void 0;
|
|
4
4
|
const client_1 = require("@smithy/core/client");
|
|
5
5
|
Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return client_1.Command; } });
|
|
6
6
|
const endpoints_1 = require("@smithy/core/endpoints");
|
|
7
7
|
const EndpointParameters_1 = require("../endpoint/EndpointParameters");
|
|
8
8
|
const schemas_0_1 = require("../schemas/schemas_0");
|
|
9
|
-
class
|
|
9
|
+
class StreamSessionEventsCommand extends client_1.Command
|
|
10
10
|
.classBuilder()
|
|
11
11
|
.ep(EndpointParameters_1.commonParams)
|
|
12
12
|
.m(function (Command, cs, config, o) {
|
|
13
13
|
return [(0, endpoints_1.getEndpointPlugin)(config, Command.getEndpointParameterInstructions())];
|
|
14
14
|
})
|
|
15
|
-
.s("WilmaCopilotSessions", "
|
|
16
|
-
.n("WilmaCopilotSessionsClient", "
|
|
17
|
-
.sc(schemas_0_1.
|
|
15
|
+
.s("WilmaCopilotSessions", "StreamSessionEvents", {})
|
|
16
|
+
.n("WilmaCopilotSessionsClient", "StreamSessionEventsCommand")
|
|
17
|
+
.sc(schemas_0_1.StreamSessionEvents$)
|
|
18
18
|
.build() {
|
|
19
19
|
}
|
|
20
|
-
exports.
|
|
20
|
+
exports.StreamSessionEventsCommand = StreamSessionEventsCommand;
|
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
const tslib_1 = require("tslib");
|
|
4
|
-
tslib_1.__exportStar(require("./
|
|
5
|
-
tslib_1.__exportStar(require("./
|
|
4
|
+
tslib_1.__exportStar(require("./AskCommand"), exports);
|
|
5
|
+
tslib_1.__exportStar(require("./EnrichCommand"), exports);
|
|
6
|
+
tslib_1.__exportStar(require("./GetSessionEventsCommand"), exports);
|
|
7
|
+
tslib_1.__exportStar(require("./ListSessionsCommand"), exports);
|
|
8
|
+
tslib_1.__exportStar(require("./OpenCommand"), exports);
|
|
9
|
+
tslib_1.__exportStar(require("./ResolveCommand"), exports);
|
|
10
|
+
tslib_1.__exportStar(require("./StreamSessionEventsCommand"), exports);
|
package/dist-cjs/models/enums.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.CopilotSessionStatus = exports.AssetSeverity = exports.AssetIcon = exports.LiveEventType = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.ButtonVariant = exports.TranscriptionSentiment = exports.CallTranscriptionSpeaker = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.License = void 0;
|
|
3
|
+
exports.CopilotSessionStatus = exports.CopilotLifecycleReason = exports.CopilotIngestedSessionState = exports.CopilotConversationKind = exports.AssetSeverity = exports.AssetIcon = exports.LiveEventType = exports.ConferenceParticipantType = exports.ConferenceParticipantRole = exports.PbxLicenseType = exports.MessageWhatsAppStatus = exports.MessageType = exports.MessageSmsStatus = exports.ButtonVariant = exports.TranscriptionSentiment = exports.CallTranscriptionSpeaker = exports.CallDevice = exports.CallParticipantType = exports.CallParticipantRole = exports.License = void 0;
|
|
4
4
|
exports.License = {
|
|
5
5
|
UC: "uc",
|
|
6
6
|
XBEES: "x-bees",
|
|
@@ -122,9 +122,28 @@ exports.AssetSeverity = {
|
|
|
122
122
|
SUCCESS: "success",
|
|
123
123
|
WARNING: "warning",
|
|
124
124
|
};
|
|
125
|
+
exports.CopilotConversationKind = {
|
|
126
|
+
APP: "app",
|
|
127
|
+
CALL: "call",
|
|
128
|
+
CHAT: "chat",
|
|
129
|
+
CONFERENCE: "conference",
|
|
130
|
+
};
|
|
131
|
+
exports.CopilotIngestedSessionState = {
|
|
132
|
+
CREATED: "created",
|
|
133
|
+
REUSED: "reused",
|
|
134
|
+
};
|
|
135
|
+
exports.CopilotLifecycleReason = {
|
|
136
|
+
ARCHIVE_TIMER: "archive_timer",
|
|
137
|
+
CREATED: "created",
|
|
138
|
+
ENDED: "ended",
|
|
139
|
+
ERROR: "error",
|
|
140
|
+
INACTIVITY: "inactivity",
|
|
141
|
+
REVIVED: "revived",
|
|
142
|
+
STOPPED: "stopped",
|
|
143
|
+
};
|
|
125
144
|
exports.CopilotSessionStatus = {
|
|
126
145
|
ACTIVE: "active",
|
|
127
|
-
|
|
146
|
+
ARCHIVED: "archived",
|
|
128
147
|
FAILED: "failed",
|
|
129
|
-
|
|
148
|
+
IDLE: "idle",
|
|
130
149
|
};
|