chatbot-nc 2.0.94 → 2.0.96
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/aws/index.d.ts +5 -0
- package/dist/cjs/aws/services/AWSChimeMeeting.d.ts +7 -1
- package/dist/cjs/aws/services/AWSChimeMeeting.js +98 -1
- package/dist/cjs/aws/services/AWSChimeMeeting.js.map +1 -1
- package/dist/esm/aws/index.d.ts +5 -0
- package/dist/esm/aws/services/AWSChimeMeeting.d.ts +7 -1
- package/dist/esm/aws/services/AWSChimeMeeting.js +99 -2
- package/dist/esm/aws/services/AWSChimeMeeting.js.map +1 -1
- package/package.json +2 -1
package/dist/cjs/aws/index.d.ts
CHANGED
|
@@ -170,6 +170,11 @@ export declare const AWS: {
|
|
|
170
170
|
createAttendee: (param: import("@aws-sdk/client-chime-sdk-meetings").CreateAttendeeCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").CreateAttendeeCommandOutput>;
|
|
171
171
|
getMeeting: (param: import("@aws-sdk/client-chime-sdk-meetings").GetMeetingCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").GetMeetingCommandOutput>;
|
|
172
172
|
createMeetingWithAttendees: (param: import("@aws-sdk/client-chime-sdk-meetings").CreateMeetingWithAttendeesCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").CreateMeetingWithAttendeesCommandOutput>;
|
|
173
|
+
startTranscription: (param: import("@aws-sdk/client-chime-sdk-meetings").StartMeetingTranscriptionCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").StartMeetingTranscriptionCommandOutput>;
|
|
174
|
+
stopTranscription: (param: import("@aws-sdk/client-chime-sdk-meetings").StopMeetingTranscriptionCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").StopMeetingTranscriptionCommandOutput>;
|
|
175
|
+
createMediaCapturePipeline: (param: import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaCapturePipelineCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaCapturePipelineCommandOutput>;
|
|
176
|
+
createMediaConcatenationPipeline: (param: import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaConcatenationPipelineCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaConcatenationPipelineCommandOutput>;
|
|
177
|
+
getMediaPipeline: (param: import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaConcatenationPipelineCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaConcatenationPipelineCommandOutput>;
|
|
173
178
|
};
|
|
174
179
|
STS: {
|
|
175
180
|
assumeRole: (param: import("@aws-sdk/client-sts").AssumeRoleCommandInput) => Promise<import("@aws-sdk/client-sts").AssumeRoleCommandOutput | null>;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateMediaCapturePipelineCommandInput, CreateMediaConcatenationPipelineCommandInput } from "@aws-sdk/client-chime-sdk-media-pipelines";
|
|
2
|
+
import { CreateMeetingCommandInput, CreateAttendeeCommandInput, DeleteMeetingCommandInput, CreateMeetingWithAttendeesCommandInput, GetMeetingCommandInput, StopMeetingTranscriptionCommandInput, StartMeetingTranscriptionCommandInput } from "@aws-sdk/client-chime-sdk-meetings";
|
|
2
3
|
export declare const Chime: {
|
|
3
4
|
createMeeting: (param: CreateMeetingCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").CreateMeetingCommandOutput>;
|
|
4
5
|
deleteMeeting: (param: DeleteMeetingCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").DeleteMeetingCommandOutput>;
|
|
5
6
|
createAttendee: (param: CreateAttendeeCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").CreateAttendeeCommandOutput>;
|
|
6
7
|
getMeeting: (param: GetMeetingCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").GetMeetingCommandOutput>;
|
|
7
8
|
createMeetingWithAttendees: (param: CreateMeetingWithAttendeesCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").CreateMeetingWithAttendeesCommandOutput>;
|
|
9
|
+
startTranscription: (param: StartMeetingTranscriptionCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").StartMeetingTranscriptionCommandOutput>;
|
|
10
|
+
stopTranscription: (param: StopMeetingTranscriptionCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").StopMeetingTranscriptionCommandOutput>;
|
|
11
|
+
createMediaCapturePipeline: (param: CreateMediaCapturePipelineCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaCapturePipelineCommandOutput>;
|
|
12
|
+
createMediaConcatenationPipeline: (param: CreateMediaConcatenationPipelineCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaConcatenationPipelineCommandOutput>;
|
|
13
|
+
getMediaPipeline: (param: CreateMediaConcatenationPipelineCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaConcatenationPipelineCommandOutput>;
|
|
8
14
|
};
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.Chime = void 0;
|
|
4
|
+
const client_chime_sdk_media_pipelines_1 = require("@aws-sdk/client-chime-sdk-media-pipelines");
|
|
4
5
|
const client_chime_sdk_meetings_1 = require("@aws-sdk/client-chime-sdk-meetings");
|
|
5
6
|
const awsRegion = process.env.AWS_DEFAULT_REGION || 'us-east-1';
|
|
6
7
|
const client = new client_chime_sdk_meetings_1.ChimeSDKMeetingsClient({ region: awsRegion });
|
|
8
|
+
const clientMediaPipleine = new client_chime_sdk_media_pipelines_1.ChimeSDKMediaPipelinesClient({ region: awsRegion });
|
|
7
9
|
/**
|
|
8
10
|
* This method is used to create new meeting
|
|
9
11
|
* @param param //This used to create meeting using meeting options
|
|
@@ -89,11 +91,106 @@ const getMeeting = async (param) => {
|
|
|
89
91
|
throw new Error(error.message);
|
|
90
92
|
}
|
|
91
93
|
};
|
|
94
|
+
/**
|
|
95
|
+
* This will start transcription for meeting
|
|
96
|
+
* @param param
|
|
97
|
+
* @returns
|
|
98
|
+
*/
|
|
99
|
+
const startTranscription = async (param) => {
|
|
100
|
+
try {
|
|
101
|
+
const command = new client_chime_sdk_meetings_1.StartMeetingTranscriptionCommand(param);
|
|
102
|
+
const response = await client.send(command);
|
|
103
|
+
console.log("Transcription Started");
|
|
104
|
+
return response;
|
|
105
|
+
}
|
|
106
|
+
catch (error) {
|
|
107
|
+
console.log("Error in node common for starting transcription");
|
|
108
|
+
console.log(error);
|
|
109
|
+
throw error;
|
|
110
|
+
}
|
|
111
|
+
};
|
|
112
|
+
/**
|
|
113
|
+
* This will stop transcription for meeting
|
|
114
|
+
* @param param
|
|
115
|
+
* @returns
|
|
116
|
+
*/
|
|
117
|
+
const stopTranscription = async (param) => {
|
|
118
|
+
try {
|
|
119
|
+
const command = new client_chime_sdk_meetings_1.StopMeetingTranscriptionCommand(param);
|
|
120
|
+
const response = await client.send(command);
|
|
121
|
+
console.log("Transcription Ended");
|
|
122
|
+
return response;
|
|
123
|
+
}
|
|
124
|
+
catch (error) {
|
|
125
|
+
console.log("Error in node common for ending transcription");
|
|
126
|
+
console.log(error);
|
|
127
|
+
throw error;
|
|
128
|
+
}
|
|
129
|
+
};
|
|
130
|
+
/**
|
|
131
|
+
* This is used to start media Capture Pipeline
|
|
132
|
+
* @param param
|
|
133
|
+
* @returns
|
|
134
|
+
*/
|
|
135
|
+
const createMediaCapturePipeline = async (param) => {
|
|
136
|
+
try {
|
|
137
|
+
const command = new client_chime_sdk_media_pipelines_1.CreateMediaCapturePipelineCommand(param);
|
|
138
|
+
const response = await clientMediaPipleine.send(command);
|
|
139
|
+
console.log("Media Capture Ended");
|
|
140
|
+
return response;
|
|
141
|
+
}
|
|
142
|
+
catch (error) {
|
|
143
|
+
console.log("Error in node common for create media capture pipleine");
|
|
144
|
+
console.log(error);
|
|
145
|
+
throw error;
|
|
146
|
+
}
|
|
147
|
+
};
|
|
148
|
+
/**
|
|
149
|
+
* This function is used to create media concatenation pipeline
|
|
150
|
+
* @param param
|
|
151
|
+
* @returns
|
|
152
|
+
*/
|
|
153
|
+
const createMediaConcatenationPipeline = async (param) => {
|
|
154
|
+
try {
|
|
155
|
+
const command = new client_chime_sdk_media_pipelines_1.CreateMediaConcatenationPipelineCommand(param);
|
|
156
|
+
const response = await clientMediaPipleine.send(command);
|
|
157
|
+
console.log("Media Capture Concatenation Ended");
|
|
158
|
+
return response;
|
|
159
|
+
}
|
|
160
|
+
catch (error) {
|
|
161
|
+
console.log("Error in node common for create media concatenation pipleine");
|
|
162
|
+
console.log(error);
|
|
163
|
+
throw error;
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
/**
|
|
167
|
+
* This function is used to create media concatenation pipeline
|
|
168
|
+
* @param param
|
|
169
|
+
* @returns
|
|
170
|
+
*/
|
|
171
|
+
const getMediaPipeline = async (param) => {
|
|
172
|
+
try {
|
|
173
|
+
const command = new client_chime_sdk_media_pipelines_1.CreateMediaConcatenationPipelineCommand(param);
|
|
174
|
+
const response = await clientMediaPipleine.send(command);
|
|
175
|
+
console.log("Media Capture Concatenation Ended");
|
|
176
|
+
return response;
|
|
177
|
+
}
|
|
178
|
+
catch (error) {
|
|
179
|
+
console.log("Error in node common for create media concatenation pipleine");
|
|
180
|
+
console.log(error);
|
|
181
|
+
throw error;
|
|
182
|
+
}
|
|
183
|
+
};
|
|
92
184
|
exports.Chime = {
|
|
93
185
|
createMeeting,
|
|
94
186
|
deleteMeeting,
|
|
95
187
|
createAttendee,
|
|
96
188
|
getMeeting,
|
|
97
|
-
createMeetingWithAttendees
|
|
189
|
+
createMeetingWithAttendees,
|
|
190
|
+
startTranscription,
|
|
191
|
+
stopTranscription,
|
|
192
|
+
createMediaCapturePipeline,
|
|
193
|
+
createMediaConcatenationPipeline,
|
|
194
|
+
getMediaPipeline
|
|
98
195
|
};
|
|
99
196
|
//# sourceMappingURL=AWSChimeMeeting.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AWSChimeMeeting.js","sourceRoot":"","sources":["../../../../aws/services/AWSChimeMeeting.ts"],"names":[],"mappings":";;;AAAA,
|
|
1
|
+
{"version":3,"file":"AWSChimeMeeting.js","sourceRoot":"","sources":["../../../../aws/services/AWSChimeMeeting.ts"],"names":[],"mappings":";;;AAAA,gGAA2P;AAC3P,kFAgB8C;AAE9C,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC;AAChE,MAAM,MAAM,GAAG,IAAI,kDAAsB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AACjE,MAAM,mBAAmB,GAAG,IAAI,+DAA4B,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAEpF;;;;GAIG;AACH,MAAM,aAAa,GAAI,KAAK,EAAC,KAA+B,EAAC,EAAE;IAE5D,IAAI;QACH,MAAM,OAAO,GAAG,IAAI,gDAAoB,CAAC,KAAK,CAAC,CAAC;QAChD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC5C,OAAO,CAAC,GAAG,CAAC,gCAAgC,CAAC,CAAC;QAC9C,OAAO,QAAQ,CAAC;KAEhB;IAAC,OAAO,KAAK,EAAE;QACb,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;QACnB,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;KAChD;AACJ,CAAC,CAAA;AAED;;;;GAIG;AACH,MAAM,aAAa,GAAI,KAAK,EAAC,KAA+B,EAAC,EAAE;IAE5D,IAAI;QACH,MAAM,OAAO,GAAG,IAAI,gDAAoB,CAAC,KAAK,CAAC,CAAC;QAChD,MAAM,QAAQ,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC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zD,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;QACjD,OAAO,QAAQ,CAAC;KAClB;IAAC,OAAO,KAAK,EAAE;QACb,OAAO,CAAC,GAAG,CAAC,8DAA8D,CAAC,CAAA;QAC3E,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QAClB,MAAM,KAAK,CAAC;KACd;AACJ,CAAC,CAAA;AAEY,QAAA,KAAK,GAAG;IACjB,aAAa;IACb,aAAa;IACb,cAAc;IACd,UAAU;IACV,0BAA0B;IAC1B,kBAAkB;IAClB,iBAAiB;IACjB,0BAA0B;IAC1B,gCAAgC;IAChC,gBAAgB;CACnB,CAAA"}
|
package/dist/esm/aws/index.d.ts
CHANGED
|
@@ -170,6 +170,11 @@ export declare const AWS: {
|
|
|
170
170
|
createAttendee: (param: import("@aws-sdk/client-chime-sdk-meetings").CreateAttendeeCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").CreateAttendeeCommandOutput>;
|
|
171
171
|
getMeeting: (param: import("@aws-sdk/client-chime-sdk-meetings").GetMeetingCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").GetMeetingCommandOutput>;
|
|
172
172
|
createMeetingWithAttendees: (param: import("@aws-sdk/client-chime-sdk-meetings").CreateMeetingWithAttendeesCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").CreateMeetingWithAttendeesCommandOutput>;
|
|
173
|
+
startTranscription: (param: import("@aws-sdk/client-chime-sdk-meetings").StartMeetingTranscriptionCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").StartMeetingTranscriptionCommandOutput>;
|
|
174
|
+
stopTranscription: (param: import("@aws-sdk/client-chime-sdk-meetings").StopMeetingTranscriptionCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").StopMeetingTranscriptionCommandOutput>;
|
|
175
|
+
createMediaCapturePipeline: (param: import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaCapturePipelineCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaCapturePipelineCommandOutput>;
|
|
176
|
+
createMediaConcatenationPipeline: (param: import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaConcatenationPipelineCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaConcatenationPipelineCommandOutput>;
|
|
177
|
+
getMediaPipeline: (param: import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaConcatenationPipelineCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaConcatenationPipelineCommandOutput>;
|
|
173
178
|
};
|
|
174
179
|
STS: {
|
|
175
180
|
assumeRole: (param: import("@aws-sdk/client-sts").AssumeRoleCommandInput) => Promise<import("@aws-sdk/client-sts").AssumeRoleCommandOutput | null>;
|
|
@@ -1,8 +1,14 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CreateMediaCapturePipelineCommandInput, CreateMediaConcatenationPipelineCommandInput } from "@aws-sdk/client-chime-sdk-media-pipelines";
|
|
2
|
+
import { CreateMeetingCommandInput, CreateAttendeeCommandInput, DeleteMeetingCommandInput, CreateMeetingWithAttendeesCommandInput, GetMeetingCommandInput, StopMeetingTranscriptionCommandInput, StartMeetingTranscriptionCommandInput } from "@aws-sdk/client-chime-sdk-meetings";
|
|
2
3
|
export declare const Chime: {
|
|
3
4
|
createMeeting: (param: CreateMeetingCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").CreateMeetingCommandOutput>;
|
|
4
5
|
deleteMeeting: (param: DeleteMeetingCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").DeleteMeetingCommandOutput>;
|
|
5
6
|
createAttendee: (param: CreateAttendeeCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").CreateAttendeeCommandOutput>;
|
|
6
7
|
getMeeting: (param: GetMeetingCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").GetMeetingCommandOutput>;
|
|
7
8
|
createMeetingWithAttendees: (param: CreateMeetingWithAttendeesCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").CreateMeetingWithAttendeesCommandOutput>;
|
|
9
|
+
startTranscription: (param: StartMeetingTranscriptionCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").StartMeetingTranscriptionCommandOutput>;
|
|
10
|
+
stopTranscription: (param: StopMeetingTranscriptionCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-meetings").StopMeetingTranscriptionCommandOutput>;
|
|
11
|
+
createMediaCapturePipeline: (param: CreateMediaCapturePipelineCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaCapturePipelineCommandOutput>;
|
|
12
|
+
createMediaConcatenationPipeline: (param: CreateMediaConcatenationPipelineCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaConcatenationPipelineCommandOutput>;
|
|
13
|
+
getMediaPipeline: (param: CreateMediaConcatenationPipelineCommandInput) => Promise<import("@aws-sdk/client-chime-sdk-media-pipelines").CreateMediaConcatenationPipelineCommandOutput>;
|
|
8
14
|
};
|
|
@@ -7,9 +7,11 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import {
|
|
10
|
+
import { ChimeSDKMediaPipelinesClient, CreateMediaCapturePipelineCommand, CreateMediaConcatenationPipelineCommand } from "@aws-sdk/client-chime-sdk-media-pipelines";
|
|
11
|
+
import { ChimeSDKMeetingsClient, CreateMeetingCommand, CreateAttendeeCommand, DeleteMeetingCommand, CreateMeetingWithAttendeesCommand, GetMeetingCommand, StopMeetingTranscriptionCommand, StartMeetingTranscriptionCommand } from "@aws-sdk/client-chime-sdk-meetings";
|
|
11
12
|
const awsRegion = process.env.AWS_DEFAULT_REGION || 'us-east-1';
|
|
12
13
|
const client = new ChimeSDKMeetingsClient({ region: awsRegion });
|
|
14
|
+
const clientMediaPipleine = new ChimeSDKMediaPipelinesClient({ region: awsRegion });
|
|
13
15
|
/**
|
|
14
16
|
* This method is used to create new meeting
|
|
15
17
|
* @param param //This used to create meeting using meeting options
|
|
@@ -95,11 +97,106 @@ const getMeeting = (param) => __awaiter(void 0, void 0, void 0, function* () {
|
|
|
95
97
|
throw new Error(error.message);
|
|
96
98
|
}
|
|
97
99
|
});
|
|
100
|
+
/**
|
|
101
|
+
* This will start transcription for meeting
|
|
102
|
+
* @param param
|
|
103
|
+
* @returns
|
|
104
|
+
*/
|
|
105
|
+
const startTranscription = (param) => __awaiter(void 0, void 0, void 0, function* () {
|
|
106
|
+
try {
|
|
107
|
+
const command = new StartMeetingTranscriptionCommand(param);
|
|
108
|
+
const response = yield client.send(command);
|
|
109
|
+
console.log("Transcription Started");
|
|
110
|
+
return response;
|
|
111
|
+
}
|
|
112
|
+
catch (error) {
|
|
113
|
+
console.log("Error in node common for starting transcription");
|
|
114
|
+
console.log(error);
|
|
115
|
+
throw error;
|
|
116
|
+
}
|
|
117
|
+
});
|
|
118
|
+
/**
|
|
119
|
+
* This will stop transcription for meeting
|
|
120
|
+
* @param param
|
|
121
|
+
* @returns
|
|
122
|
+
*/
|
|
123
|
+
const stopTranscription = (param) => __awaiter(void 0, void 0, void 0, function* () {
|
|
124
|
+
try {
|
|
125
|
+
const command = new StopMeetingTranscriptionCommand(param);
|
|
126
|
+
const response = yield client.send(command);
|
|
127
|
+
console.log("Transcription Ended");
|
|
128
|
+
return response;
|
|
129
|
+
}
|
|
130
|
+
catch (error) {
|
|
131
|
+
console.log("Error in node common for ending transcription");
|
|
132
|
+
console.log(error);
|
|
133
|
+
throw error;
|
|
134
|
+
}
|
|
135
|
+
});
|
|
136
|
+
/**
|
|
137
|
+
* This is used to start media Capture Pipeline
|
|
138
|
+
* @param param
|
|
139
|
+
* @returns
|
|
140
|
+
*/
|
|
141
|
+
const createMediaCapturePipeline = (param) => __awaiter(void 0, void 0, void 0, function* () {
|
|
142
|
+
try {
|
|
143
|
+
const command = new CreateMediaCapturePipelineCommand(param);
|
|
144
|
+
const response = yield clientMediaPipleine.send(command);
|
|
145
|
+
console.log("Media Capture Ended");
|
|
146
|
+
return response;
|
|
147
|
+
}
|
|
148
|
+
catch (error) {
|
|
149
|
+
console.log("Error in node common for create media capture pipleine");
|
|
150
|
+
console.log(error);
|
|
151
|
+
throw error;
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
/**
|
|
155
|
+
* This function is used to create media concatenation pipeline
|
|
156
|
+
* @param param
|
|
157
|
+
* @returns
|
|
158
|
+
*/
|
|
159
|
+
const createMediaConcatenationPipeline = (param) => __awaiter(void 0, void 0, void 0, function* () {
|
|
160
|
+
try {
|
|
161
|
+
const command = new CreateMediaConcatenationPipelineCommand(param);
|
|
162
|
+
const response = yield clientMediaPipleine.send(command);
|
|
163
|
+
console.log("Media Capture Concatenation Ended");
|
|
164
|
+
return response;
|
|
165
|
+
}
|
|
166
|
+
catch (error) {
|
|
167
|
+
console.log("Error in node common for create media concatenation pipleine");
|
|
168
|
+
console.log(error);
|
|
169
|
+
throw error;
|
|
170
|
+
}
|
|
171
|
+
});
|
|
172
|
+
/**
|
|
173
|
+
* This function is used to create media concatenation pipeline
|
|
174
|
+
* @param param
|
|
175
|
+
* @returns
|
|
176
|
+
*/
|
|
177
|
+
const getMediaPipeline = (param) => __awaiter(void 0, void 0, void 0, function* () {
|
|
178
|
+
try {
|
|
179
|
+
const command = new CreateMediaConcatenationPipelineCommand(param);
|
|
180
|
+
const response = yield clientMediaPipleine.send(command);
|
|
181
|
+
console.log("Media Capture Concatenation Ended");
|
|
182
|
+
return response;
|
|
183
|
+
}
|
|
184
|
+
catch (error) {
|
|
185
|
+
console.log("Error in node common for create media concatenation pipleine");
|
|
186
|
+
console.log(error);
|
|
187
|
+
throw error;
|
|
188
|
+
}
|
|
189
|
+
});
|
|
98
190
|
export const Chime = {
|
|
99
191
|
createMeeting,
|
|
100
192
|
deleteMeeting,
|
|
101
193
|
createAttendee,
|
|
102
194
|
getMeeting,
|
|
103
|
-
createMeetingWithAttendees
|
|
195
|
+
createMeetingWithAttendees,
|
|
196
|
+
startTranscription,
|
|
197
|
+
stopTranscription,
|
|
198
|
+
createMediaCapturePipeline,
|
|
199
|
+
createMediaConcatenationPipeline,
|
|
200
|
+
getMediaPipeline
|
|
104
201
|
};
|
|
105
202
|
//# sourceMappingURL=AWSChimeMeeting.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AWSChimeMeeting.js","sourceRoot":"","sources":["../../../../aws/services/AWSChimeMeeting.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EACH,sBAAsB,EACtB,oBAAoB,EAEpB,qBAAqB,EAGrB,oBAAoB,EAEpB,iCAAiC,EAEjC,iBAAiB,
|
|
1
|
+
{"version":3,"file":"AWSChimeMeeting.js","sourceRoot":"","sources":["../../../../aws/services/AWSChimeMeeting.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,4BAA4B,EAAE,iCAAiC,EAA0C,uCAAuC,EAAgD,MAAM,2CAA2C,CAAC;AAC3P,OAAO,EACH,sBAAsB,EACtB,oBAAoB,EAEpB,qBAAqB,EAGrB,oBAAoB,EAEpB,iCAAiC,EAEjC,iBAAiB,EACjB,+BAA+B,EAE/B,gCAAgC,EAEjC,MAAM,oCAAoC,CAAC;AAE9C,MAAM,SAAS,GAAG,OAAO,CAAC,GAAG,CAAC,kBAAkB,IAAI,WAAW,CAAC;AAChE,MAAM,MAAM,GAAG,IAAI,sBAAsB,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AACjE,MAAM,mBAAmB,GAAG,IAAI,4BAA4B,CAAC,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;AAEpF;;;;GAIG;AACH,MAAM,aAAa,GAAI,CAAM,KAA+B,EAAC,EAAE;IAE5D,IAAI;QACH,MAAM,OAAO,GAAG,IAAI,oBAAoB,CAAC,KAAK,CAAC,CAAC;QA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AM,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;QACjD,OAAO,QAAQ,CAAC;KAClB;IAAC,OAAO,KAAK,EAAE;QACb,OAAO,CAAC,GAAG,CAAC,8DAA8D,CAAC,CAAA;QAC3E,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QAClB,MAAM,KAAK,CAAC;KACd;AACJ,CAAC,CAAA,CAAA;AAED;;;;GAIG;AACH,MAAM,gBAAgB,GAAG,CAAO,KAAmD,EAAE,EAAE;IACpF,IAAI;QACD,MAAM,OAAO,GAAG,IAAI,uCAAuC,CAAC,KAAK,CAAC,CAAC;QACnE,MAAM,QAAQ,GAAG,MAAM,mBAAmB,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,OAAO,CAAC,GAAG,CAAC,mCAAmC,CAAC,CAAC;QACjD,OAAO,QAAQ,CAAC;KAClB;IAAC,OAAO,KAAK,EAAE;QACb,OAAO,CAAC,GAAG,CAAC,8DAA8D,CAAC,CAAA;QAC3E,OAAO,CAAC,GAAG,CAAC,KAAK,CAAC,CAAA;QAClB,MAAM,KAAK,CAAC;KACd;AACJ,CAAC,CAAA,CAAA;AAED,MAAM,CAAC,MAAM,KAAK,GAAG;IACjB,aAAa;IACb,aAAa;IACb,cAAc;IACd,UAAU;IACV,0BAA0B;IAC1B,kBAAkB;IAClB,iBAAiB;IACjB,0BAA0B;IAC1B,gCAAgC;IAChC,gBAAgB;CACnB,CAAA"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "chatbot-nc",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.96",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/cjs/index.js",
|
|
6
6
|
"module": "dist/esm/index.js",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"dependencies": {
|
|
20
20
|
"@aws-sdk/client-api-gateway": "^3.315.0",
|
|
21
21
|
"@aws-sdk/client-apigatewaymanagementapi": "^3.294.0",
|
|
22
|
+
"@aws-sdk/client-chime-sdk-media-pipelines": "^3.621.0",
|
|
22
23
|
"@aws-sdk/client-chime-sdk-meetings": "^3.312.0",
|
|
23
24
|
"@aws-sdk/client-codepipeline": "^3.315.0",
|
|
24
25
|
"@aws-sdk/client-comprehend": "^3.296.0",
|