@activepieces/piece-assemblyai 1.1.6 → 1.1.7
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/package.json +7 -23
- package/src/index.js +51 -35
- package/src/index.d.ts +0 -2
- package/src/index.d.ts.map +0 -1
- package/src/index.js.map +0 -1
- package/src/lib/actions/custom-api-call.d.ts +0 -13
- package/src/lib/actions/custom-api-call.d.ts.map +0 -1
- package/src/lib/actions/custom-api-call.js +0 -16
- package/src/lib/actions/custom-api-call.js.map +0 -1
- package/src/lib/actions/files/index.d.ts +0 -2
- package/src/lib/actions/files/index.d.ts.map +0 -1
- package/src/lib/actions/files/index.js +0 -6
- package/src/lib/actions/files/index.js.map +0 -1
- package/src/lib/actions/files/upload.d.ts +0 -4
- package/src/lib/actions/files/upload.d.ts.map +0 -1
- package/src/lib/actions/files/upload.js +0 -34
- package/src/lib/actions/files/upload.js.map +0 -1
- package/src/lib/actions/index.d.ts +0 -5
- package/src/lib/actions/index.d.ts.map +0 -1
- package/src/lib/actions/index.js +0 -22
- package/src/lib/actions/index.js.map +0 -1
- package/src/lib/actions/lemur/get-lemur-response.d.ts +0 -4
- package/src/lib/actions/lemur/get-lemur-response.d.ts.map +0 -1
- package/src/lib/actions/lemur/get-lemur-response.js +0 -31
- package/src/lib/actions/lemur/get-lemur-response.js.map +0 -1
- package/src/lib/actions/lemur/index.d.ts +0 -4
- package/src/lib/actions/lemur/index.d.ts.map +0 -1
- package/src/lib/actions/lemur/index.js +0 -10
- package/src/lib/actions/lemur/index.js.map +0 -1
- package/src/lib/actions/lemur/lemur-task.d.ts +0 -10
- package/src/lib/actions/lemur/lemur-task.d.ts.map +0 -1
- package/src/lib/actions/lemur/lemur-task.js +0 -32
- package/src/lib/actions/lemur/lemur-task.js.map +0 -1
- package/src/lib/actions/lemur/purge-lemur-request-data.d.ts +0 -4
- package/src/lib/actions/lemur/purge-lemur-request-data.d.ts.map +0 -1
- package/src/lib/actions/lemur/purge-lemur-request-data.js +0 -32
- package/src/lib/actions/lemur/purge-lemur-request-data.js.map +0 -1
- package/src/lib/actions/lemur/shared-props.d.ts +0 -2
- package/src/lib/actions/lemur/shared-props.d.ts.map +0 -1
- package/src/lib/actions/lemur/shared-props.js +0 -10
- package/src/lib/actions/lemur/shared-props.js.map +0 -1
- package/src/lib/actions/transcripts/delete-transcript.d.ts +0 -4
- package/src/lib/actions/transcripts/delete-transcript.d.ts.map +0 -1
- package/src/lib/actions/transcripts/delete-transcript.js +0 -31
- package/src/lib/actions/transcripts/delete-transcript.js.map +0 -1
- package/src/lib/actions/transcripts/get-paragraphs.d.ts +0 -4
- package/src/lib/actions/transcripts/get-paragraphs.d.ts.map +0 -1
- package/src/lib/actions/transcripts/get-paragraphs.js +0 -31
- package/src/lib/actions/transcripts/get-paragraphs.js.map +0 -1
- package/src/lib/actions/transcripts/get-redacted-audio.d.ts +0 -6
- package/src/lib/actions/transcripts/get-redacted-audio.d.ts.map +0 -1
- package/src/lib/actions/transcripts/get-redacted-audio.js +0 -53
- package/src/lib/actions/transcripts/get-redacted-audio.js.map +0 -1
- package/src/lib/actions/transcripts/get-sentences.d.ts +0 -4
- package/src/lib/actions/transcripts/get-sentences.d.ts.map +0 -1
- package/src/lib/actions/transcripts/get-sentences.js +0 -31
- package/src/lib/actions/transcripts/get-sentences.js.map +0 -1
- package/src/lib/actions/transcripts/get-subtitles.d.ts +0 -6
- package/src/lib/actions/transcripts/get-subtitles.d.ts.map +0 -1
- package/src/lib/actions/transcripts/get-subtitles.js +0 -55
- package/src/lib/actions/transcripts/get-subtitles.js.map +0 -1
- package/src/lib/actions/transcripts/get-transcript.d.ts +0 -4
- package/src/lib/actions/transcripts/get-transcript.d.ts.map +0 -1
- package/src/lib/actions/transcripts/get-transcript.js +0 -31
- package/src/lib/actions/transcripts/get-transcript.js.map +0 -1
- package/src/lib/actions/transcripts/index.d.ts +0 -10
- package/src/lib/actions/transcripts/index.d.ts.map +0 -1
- package/src/lib/actions/transcripts/index.js +0 -22
- package/src/lib/actions/transcripts/index.js.map +0 -1
- package/src/lib/actions/transcripts/list-transcripts.d.ts +0 -9
- package/src/lib/actions/transcripts/list-transcripts.d.ts.map +0 -1
- package/src/lib/actions/transcripts/list-transcripts.js +0 -30
- package/src/lib/actions/transcripts/list-transcripts.js.map +0 -1
- package/src/lib/actions/transcripts/shared-props.d.ts +0 -2
- package/src/lib/actions/transcripts/shared-props.d.ts.map +0 -1
- package/src/lib/actions/transcripts/shared-props.js +0 -9
- package/src/lib/actions/transcripts/shared-props.js.map +0 -1
- package/src/lib/actions/transcripts/transcribe.d.ts +0 -43
- package/src/lib/actions/transcripts/transcribe.d.ts.map +0 -1
- package/src/lib/actions/transcripts/transcribe.js +0 -105
- package/src/lib/actions/transcripts/transcribe.js.map +0 -1
- package/src/lib/actions/transcripts/word-search.d.ts +0 -5
- package/src/lib/actions/transcripts/word-search.d.ts.map +0 -1
- package/src/lib/actions/transcripts/word-search.js +0 -37
- package/src/lib/actions/transcripts/word-search.js.map +0 -1
- package/src/lib/auth.d.ts +0 -2
- package/src/lib/auth.d.ts.map +0 -1
- package/src/lib/auth.js +0 -43
- package/src/lib/auth.js.map +0 -1
- package/src/lib/client.d.ts +0 -5
- package/src/lib/client.d.ts.map +0 -1
- package/src/lib/client.js +0 -25
- package/src/lib/client.js.map +0 -1
- package/src/lib/generated/lemur-task/props.d.ts +0 -10
- package/src/lib/generated/lemur-task/props.d.ts.map +0 -1
- package/src/lib/generated/lemur-task/props.js +0 -86
- package/src/lib/generated/lemur-task/props.js.map +0 -1
- package/src/lib/generated/list-transcript/props.d.ts +0 -9
- package/src/lib/generated/list-transcript/props.d.ts.map +0 -1
- package/src/lib/generated/list-transcript/props.js +0 -58
- package/src/lib/generated/list-transcript/props.js.map +0 -1
- package/src/lib/generated/transcribe/props.d.ts +0 -41
- package/src/lib/generated/transcribe/props.d.ts.map +0 -1
- package/src/lib/generated/transcribe/props.js +0 -898
- package/src/lib/generated/transcribe/props.js.map +0 -1
package/src/index.d.ts
DELETED
package/src/index.d.ts.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,UAAU,mHA0BrB,CAAC"}
|
package/src/index.js.map
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";;;;AAAA,qEAA6D;AAC7D,+DAAyC;AACzC,qCAA4C;AAC5C,iDAAqD;AAExC,QAAA,UAAU,GAAG,IAAA,8BAAW,EAAC;IACpC,WAAW,EAAE,YAAY;IACzB,IAAI,EAAE,qBAAc;IACpB,UAAU,EAAE,CAAC,sBAAa,CAAC,uBAAuB,CAAC;IACnD,WAAW,EACT,sEAAsE;IACxE,uBAAuB,EAAE,QAAQ;IACjC,OAAO,EAAE,oDAAoD;IAC7D,OAAO,EAAE,CAAC,YAAY,CAAC;IACvB,OAAO,EAAE;QACP,OAAO,CAAC,UAAU;QAClB,OAAO,CAAC,UAAU;QAClB,OAAO,CAAC,aAAa;QACrB,OAAO,CAAC,YAAY;QACpB,OAAO,CAAC,aAAa;QACrB,OAAO,CAAC,YAAY;QACpB,OAAO,CAAC,gBAAgB;QACxB,OAAO,CAAC,UAAU;QAClB,OAAO,CAAC,eAAe;QACvB,OAAO,CAAC,gBAAgB;QACxB,OAAO,CAAC,SAAS;QACjB,OAAO,CAAC,gBAAgB;QACxB,OAAO,CAAC,qBAAqB;QAC7B,OAAO,CAAC,aAAa;KACtB;IACD,QAAQ,EAAE,EAAE;CACb,CAAC,CAAC"}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export declare const customApiCall: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
url: import("@activepieces/pieces-framework").DynamicProperties<true, import("@activepieces/pieces-framework").SecretTextProperty<true> | undefined>;
|
|
3
|
-
method: import("@activepieces/pieces-framework").StaticDropdownProperty<import("@activepieces/pieces-common").HttpMethod, false> | import("@activepieces/pieces-framework").StaticDropdownProperty<import("@activepieces/pieces-common").HttpMethod, true>;
|
|
4
|
-
headers: import("@activepieces/pieces-framework").ObjectProperty<false> | import("@activepieces/pieces-framework").ObjectProperty<true>;
|
|
5
|
-
queryParams: import("@activepieces/pieces-framework").ObjectProperty<false> | import("@activepieces/pieces-framework").ObjectProperty<true>;
|
|
6
|
-
body_type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
7
|
-
body: import("@activepieces/pieces-framework").DynamicProperties<false, import("@activepieces/pieces-framework").SecretTextProperty<true> | undefined>;
|
|
8
|
-
response_is_binary: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
9
|
-
failsafe: import("@activepieces/pieces-framework").CheckboxProperty<false> | import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
10
|
-
timeout: import("@activepieces/pieces-framework").NumberProperty<false> | import("@activepieces/pieces-framework").NumberProperty<true>;
|
|
11
|
-
followRedirects: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
12
|
-
}>;
|
|
13
|
-
//# sourceMappingURL=custom-api-call.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-api-call.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/custom-api-call.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,aAAa;;;;;;;;;;;EAQxB,CAAC"}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.customApiCall = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_common_1 = require("@activepieces/pieces-common");
|
|
6
|
-
const auth_1 = require("../auth");
|
|
7
|
-
exports.customApiCall = (0, pieces_common_1.createCustomApiCallAction)({
|
|
8
|
-
auth: auth_1.assemblyaiAuth,
|
|
9
|
-
baseUrl: () => 'https://api.assemblyai.com',
|
|
10
|
-
authMapping: (auth) => tslib_1.__awaiter(void 0, void 0, void 0, function* () {
|
|
11
|
-
return {
|
|
12
|
-
Authorization: `${auth.secret_text}`,
|
|
13
|
-
};
|
|
14
|
-
}),
|
|
15
|
-
});
|
|
16
|
-
//# sourceMappingURL=custom-api-call.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom-api-call.js","sourceRoot":"","sources":["../../../../src/lib/actions/custom-api-call.ts"],"names":[],"mappings":";;;;AAAA,+DAAwE;AACxE,kCAAyC;AAE5B,QAAA,aAAa,GAAG,IAAA,yCAAyB,EAAC;IACrD,IAAI,EAAE,qBAAc;IACpB,OAAO,EAAE,GAAG,EAAE,CAAC,4BAA4B;IAC3C,WAAW,EAAE,CAAO,IAAI,EAAE,EAAE;QAC1B,OAAO;YACL,aAAa,EAAE,GAAG,IAAI,CAAC,WAAW,EAAE;SACrC,CAAC;IACJ,CAAC,CAAA;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/actions/files/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.uploadFile = void 0;
|
|
4
|
-
var upload_1 = require("./upload");
|
|
5
|
-
Object.defineProperty(exports, "uploadFile", { enumerable: true, get: function () { return upload_1.uploadFile; } });
|
|
6
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/actions/files/index.ts"],"names":[],"mappings":";;;AAAA,mCAAsC;AAA7B,oGAAA,UAAU,OAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload.d.ts","sourceRoot":"","sources":["../../../../../src/lib/actions/files/upload.ts"],"names":[],"mappings":"AAIA,eAAO,MAAM,UAAU;;EA0BrB,CAAC"}
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.uploadFile = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../../auth");
|
|
7
|
-
const client_1 = require("../../client");
|
|
8
|
-
exports.uploadFile = (0, pieces_framework_1.createAction)({
|
|
9
|
-
name: 'uploadFile',
|
|
10
|
-
auth: auth_1.assemblyaiAuth,
|
|
11
|
-
requireAuth: true,
|
|
12
|
-
displayName: 'Upload File',
|
|
13
|
-
description: "Upload a media file to AssemblyAI's servers.",
|
|
14
|
-
audience: 'both',
|
|
15
|
-
aiMetadata: {
|
|
16
|
-
description: "Uploads a local audio or video file to AssemblyAI and returns an upload URL that can be passed to the Transcribe action. Use this when the media is a file (not already a publicly reachable URL) that AssemblyAI must access. Each call uploads a new copy, so it is not idempotent.",
|
|
17
|
-
idempotent: false,
|
|
18
|
-
},
|
|
19
|
-
props: {
|
|
20
|
-
file: pieces_framework_1.Property.File({
|
|
21
|
-
displayName: 'Audio File',
|
|
22
|
-
description: 'The File or URL of the audio or video file.',
|
|
23
|
-
required: true,
|
|
24
|
-
}),
|
|
25
|
-
},
|
|
26
|
-
run(context) {
|
|
27
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
28
|
-
const client = (0, client_1.getAssemblyAIClient)(context);
|
|
29
|
-
const uploadedFile = yield client.files.upload(context.propsValue.file.data);
|
|
30
|
-
return uploadedFile;
|
|
31
|
-
});
|
|
32
|
-
},
|
|
33
|
-
});
|
|
34
|
-
//# sourceMappingURL=upload.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"upload.js","sourceRoot":"","sources":["../../../../../src/lib/actions/files/upload.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,qCAA4C;AAC5C,yCAAmD;AAEtC,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,qBAAc;IACpB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,aAAa;IAC1B,WAAW,EAAE,8CAA8C;IAC3D,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,uRAAuR;QACzR,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,IAAI,EAAE,2BAAQ,CAAC,IAAI,CAAC;YAClB,WAAW,EAAE,YAAY;YACzB,WAAW,EAAE,6CAA6C;YAC1D,QAAQ,EAAE,IAAI;SACf,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAA,4BAAmB,EAAC,OAAO,CAAC,CAAC;YAC5C,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,MAAM,CAC5C,OAAO,CAAC,UAAU,CAAC,IAAI,CAAC,IAAI,CAC7B,CAAC;YACF,OAAO,YAAY,CAAC;QACtB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
export { uploadFile } from './files';
|
|
2
|
-
export { transcribe, getTranscript, getSentences, getParagraphs, getSubtitles, getRedactedAudio, wordSearch, listTranscripts, deleteTranscript, } from './transcripts';
|
|
3
|
-
export { lemurTask, getLemurResponse, purgeLemurRequestData } from './lemur';
|
|
4
|
-
export { customApiCall } from './custom-api-call';
|
|
5
|
-
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/lib/actions/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,SAAS,CAAC;AACrC,OAAO,EACL,UAAU,EACV,aAAa,EACb,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,gBAAgB,EAChB,UAAU,EACV,eAAe,EACf,gBAAgB,GACjB,MAAM,eAAe,CAAC;AACvB,OAAO,EAAE,SAAS,EAAE,gBAAgB,EAAE,qBAAqB,EAAE,MAAM,SAAS,CAAC;AAC7E,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC"}
|
package/src/lib/actions/index.js
DELETED
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.customApiCall = exports.purgeLemurRequestData = exports.getLemurResponse = exports.lemurTask = exports.deleteTranscript = exports.listTranscripts = exports.wordSearch = exports.getRedactedAudio = exports.getSubtitles = exports.getParagraphs = exports.getSentences = exports.getTranscript = exports.transcribe = exports.uploadFile = void 0;
|
|
4
|
-
var files_1 = require("./files");
|
|
5
|
-
Object.defineProperty(exports, "uploadFile", { enumerable: true, get: function () { return files_1.uploadFile; } });
|
|
6
|
-
var transcripts_1 = require("./transcripts");
|
|
7
|
-
Object.defineProperty(exports, "transcribe", { enumerable: true, get: function () { return transcripts_1.transcribe; } });
|
|
8
|
-
Object.defineProperty(exports, "getTranscript", { enumerable: true, get: function () { return transcripts_1.getTranscript; } });
|
|
9
|
-
Object.defineProperty(exports, "getSentences", { enumerable: true, get: function () { return transcripts_1.getSentences; } });
|
|
10
|
-
Object.defineProperty(exports, "getParagraphs", { enumerable: true, get: function () { return transcripts_1.getParagraphs; } });
|
|
11
|
-
Object.defineProperty(exports, "getSubtitles", { enumerable: true, get: function () { return transcripts_1.getSubtitles; } });
|
|
12
|
-
Object.defineProperty(exports, "getRedactedAudio", { enumerable: true, get: function () { return transcripts_1.getRedactedAudio; } });
|
|
13
|
-
Object.defineProperty(exports, "wordSearch", { enumerable: true, get: function () { return transcripts_1.wordSearch; } });
|
|
14
|
-
Object.defineProperty(exports, "listTranscripts", { enumerable: true, get: function () { return transcripts_1.listTranscripts; } });
|
|
15
|
-
Object.defineProperty(exports, "deleteTranscript", { enumerable: true, get: function () { return transcripts_1.deleteTranscript; } });
|
|
16
|
-
var lemur_1 = require("./lemur");
|
|
17
|
-
Object.defineProperty(exports, "lemurTask", { enumerable: true, get: function () { return lemur_1.lemurTask; } });
|
|
18
|
-
Object.defineProperty(exports, "getLemurResponse", { enumerable: true, get: function () { return lemur_1.getLemurResponse; } });
|
|
19
|
-
Object.defineProperty(exports, "purgeLemurRequestData", { enumerable: true, get: function () { return lemur_1.purgeLemurRequestData; } });
|
|
20
|
-
var custom_api_call_1 = require("./custom-api-call");
|
|
21
|
-
Object.defineProperty(exports, "customApiCall", { enumerable: true, get: function () { return custom_api_call_1.customApiCall; } });
|
|
22
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/lib/actions/index.ts"],"names":[],"mappings":";;;AAAA,iCAAqC;AAA5B,mGAAA,UAAU,OAAA;AACnB,6CAUuB;AATrB,yGAAA,UAAU,OAAA;AACV,4GAAA,aAAa,OAAA;AACb,2GAAA,YAAY,OAAA;AACZ,4GAAA,aAAa,OAAA;AACb,2GAAA,YAAY,OAAA;AACZ,+GAAA,gBAAgB,OAAA;AAChB,yGAAA,UAAU,OAAA;AACV,8GAAA,eAAe,OAAA;AACf,+GAAA,gBAAgB,OAAA;AAElB,iCAA6E;AAApE,kGAAA,SAAS,OAAA;AAAE,yGAAA,gBAAgB,OAAA;AAAE,8GAAA,qBAAqB,OAAA;AAC3D,qDAAkD;AAAzC,gHAAA,aAAa,OAAA"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const getLemurResponse: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
request_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=get-lemur-response.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-lemur-response.d.ts","sourceRoot":"","sources":["../../../../../src/lib/actions/lemur/get-lemur-response.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;EAsB3B,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getLemurResponse = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../../auth");
|
|
7
|
-
const client_1 = require("../../client");
|
|
8
|
-
const shared_props_1 = require("./shared-props");
|
|
9
|
-
exports.getLemurResponse = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'getLemurResponse',
|
|
11
|
-
auth: auth_1.assemblyaiAuth,
|
|
12
|
-
requireAuth: true,
|
|
13
|
-
displayName: 'Retrieve LeMUR response',
|
|
14
|
-
description: 'Retrieve a LeMUR response that was previously generated.',
|
|
15
|
-
audience: 'both',
|
|
16
|
-
aiMetadata: {
|
|
17
|
-
description: 'Fetches a previously generated LeMUR response by its request ID. Use this to read back the result of an earlier LeMUR task without re-running the LLM. Requires a valid LeMUR request ID; read-only and idempotent.',
|
|
18
|
-
idempotent: true,
|
|
19
|
-
},
|
|
20
|
-
props: {
|
|
21
|
-
request_id: shared_props_1.lemurRequestIdProp,
|
|
22
|
-
},
|
|
23
|
-
run(context) {
|
|
24
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
const client = (0, client_1.getAssemblyAIClient)(context);
|
|
26
|
-
const lemurResponse = yield client.lemur.getResponse(context.propsValue.request_id);
|
|
27
|
-
return lemurResponse;
|
|
28
|
-
});
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
//# sourceMappingURL=get-lemur-response.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-lemur-response.js","sourceRoot":"","sources":["../../../../../src/lib/actions/lemur/get-lemur-response.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qCAA4C;AAC5C,yCAAmD;AACnD,iDAAoD;AAEvC,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,qBAAc;IACpB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,yBAAyB;IACtC,WAAW,EAAE,0DAA0D;IACvE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,qNAAqN;QACvN,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,iCAAkB;KAC/B;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAA,4BAAmB,EAAC,OAAO,CAAC,CAAC;YAC5C,MAAM,aAAa,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,WAAW,CAClD,OAAO,CAAC,UAAU,CAAC,UAAU,CAC9B,CAAC;YACF,OAAO,aAAa,CAAC;QACvB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/lib/actions/lemur/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,MAAM,cAAc,CAAC;AACzC,OAAO,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AACxD,OAAO,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.purgeLemurRequestData = exports.getLemurResponse = exports.lemurTask = void 0;
|
|
4
|
-
var lemur_task_1 = require("./lemur-task");
|
|
5
|
-
Object.defineProperty(exports, "lemurTask", { enumerable: true, get: function () { return lemur_task_1.lemurTask; } });
|
|
6
|
-
var get_lemur_response_1 = require("./get-lemur-response");
|
|
7
|
-
Object.defineProperty(exports, "getLemurResponse", { enumerable: true, get: function () { return get_lemur_response_1.getLemurResponse; } });
|
|
8
|
-
var purge_lemur_request_data_1 = require("./purge-lemur-request-data");
|
|
9
|
-
Object.defineProperty(exports, "purgeLemurRequestData", { enumerable: true, get: function () { return purge_lemur_request_data_1.purgeLemurRequestData; } });
|
|
10
|
-
//# sourceMappingURL=index.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/actions/lemur/index.ts"],"names":[],"mappings":";;;AAAA,2CAAyC;AAAhC,uGAAA,SAAS,OAAA;AAClB,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AACzB,uEAAmE;AAA1D,iIAAA,qBAAqB,OAAA"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export declare const lemurTask: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
prompt: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
transcript_ids: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
4
|
-
input_text: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
5
|
-
context: import("@activepieces/pieces-framework").LongTextProperty<false>;
|
|
6
|
-
final_model: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
7
|
-
max_output_size: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
8
|
-
temperature: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
9
|
-
}>;
|
|
10
|
-
//# sourceMappingURL=lemur-task.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lemur-task.d.ts","sourceRoot":"","sources":["../../../../../src/lib/actions/lemur/lemur-task.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,SAAS;;;;;;;;EAqBpB,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.lemurTask = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../../auth");
|
|
7
|
-
const client_1 = require("../../client");
|
|
8
|
-
const props_1 = require("../../generated/lemur-task/props");
|
|
9
|
-
exports.lemurTask = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'lemurTask',
|
|
11
|
-
auth: auth_1.assemblyaiAuth,
|
|
12
|
-
requireAuth: true,
|
|
13
|
-
displayName: 'Run a Task using LeMUR',
|
|
14
|
-
description: 'Use the LeMUR task endpoint to input your own LLM prompt.',
|
|
15
|
-
audience: 'both',
|
|
16
|
-
aiMetadata: {
|
|
17
|
-
description: 'Runs a custom LLM prompt over one or more existing transcripts using AssemblyAI LeMUR, returning the model-generated response. Use this to summarize, answer questions about, or otherwise reason over transcript content with your own prompt. Requires transcript IDs and a prompt; each call invokes the LLM and produces a new request, so it is not idempotent.',
|
|
18
|
-
idempotent: false,
|
|
19
|
-
},
|
|
20
|
-
props: props_1.props,
|
|
21
|
-
run(context) {
|
|
22
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
23
|
-
const client = (0, client_1.getAssemblyAIClient)(context);
|
|
24
|
-
const taskResponse = yield client.lemur.task({
|
|
25
|
-
transcript_ids: context.propsValue.transcript_ids,
|
|
26
|
-
prompt: context.propsValue.prompt,
|
|
27
|
-
});
|
|
28
|
-
return taskResponse;
|
|
29
|
-
});
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=lemur-task.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"lemur-task.js","sourceRoot":"","sources":["../../../../../src/lib/actions/lemur/lemur-task.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qCAA4C;AAC5C,yCAAmD;AACnD,4DAAyD;AAE5C,QAAA,SAAS,GAAG,IAAA,+BAAY,EAAC;IACpC,IAAI,EAAE,WAAW;IACjB,IAAI,EAAE,qBAAc;IACpB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,wBAAwB;IACrC,WAAW,EAAE,2DAA2D;IACxE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,sWAAsW;QACxW,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAL,aAAK;IACC,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAA,4BAAmB,EAAC,OAAO,CAAC,CAAC;YAC5C,MAAM,YAAY,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,IAAI,CAAC;gBAC3C,cAAc,EAAE,OAAO,CAAC,UAAU,CAAC,cAA0B;gBAC7D,MAAM,EAAE,OAAO,CAAC,UAAU,CAAC,MAAM;aAClC,CAAC,CAAC;YACH,OAAO,YAAY,CAAC;QACtB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const purgeLemurRequestData: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
request_id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=purge-lemur-request-data.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"purge-lemur-request-data.d.ts","sourceRoot":"","sources":["../../../../../src/lib/actions/lemur/purge-lemur-request-data.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,qBAAqB;;EAuBhC,CAAC"}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.purgeLemurRequestData = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../../auth");
|
|
7
|
-
const client_1 = require("../../client");
|
|
8
|
-
const shared_props_1 = require("./shared-props");
|
|
9
|
-
exports.purgeLemurRequestData = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'purgeLemurRequestData',
|
|
11
|
-
auth: auth_1.assemblyaiAuth,
|
|
12
|
-
requireAuth: true,
|
|
13
|
-
displayName: 'Purge LeMUR request data',
|
|
14
|
-
description: `Delete the data for a previously submitted LeMUR request.
|
|
15
|
-
The LLM response data, as well as any context provided in the original request will be removed.`,
|
|
16
|
-
audience: 'both',
|
|
17
|
-
aiMetadata: {
|
|
18
|
-
description: 'Permanently deletes the data of a previously submitted LeMUR request, identified by its request ID, including the LLM response and any context from the original request. Use this to purge LeMUR data for privacy or compliance; this is a destructive mutation. Requires a valid LeMUR request ID and is not idempotent.',
|
|
19
|
-
idempotent: false,
|
|
20
|
-
},
|
|
21
|
-
props: {
|
|
22
|
-
request_id: shared_props_1.lemurRequestIdProp,
|
|
23
|
-
},
|
|
24
|
-
run(context) {
|
|
25
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
26
|
-
const client = (0, client_1.getAssemblyAIClient)(context);
|
|
27
|
-
const purgeRequestDataResponse = yield client.lemur.purgeRequestData(context.propsValue.request_id);
|
|
28
|
-
return purgeRequestDataResponse;
|
|
29
|
-
});
|
|
30
|
-
},
|
|
31
|
-
});
|
|
32
|
-
//# sourceMappingURL=purge-lemur-request-data.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"purge-lemur-request-data.js","sourceRoot":"","sources":["../../../../../src/lib/actions/lemur/purge-lemur-request-data.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qCAA4C;AAC5C,yCAAmD;AACnD,iDAAoD;AAEvC,QAAA,qBAAqB,GAAG,IAAA,+BAAY,EAAC;IAChD,IAAI,EAAE,uBAAuB;IAC7B,IAAI,EAAE,qBAAc;IACpB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,0BAA0B;IACvC,WAAW,EAAE;gGACiF;IAC9F,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,4TAA4T;QAC9T,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,UAAU,EAAE,iCAAkB;KAC/B;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAA,4BAAmB,EAAC,OAAO,CAAC,CAAC;YAC5C,MAAM,wBAAwB,GAAG,MAAM,MAAM,CAAC,KAAK,CAAC,gBAAgB,CAClE,OAAO,CAAC,UAAU,CAAC,UAAU,CAC9B,CAAC;YACF,OAAO,wBAAwB,CAAC;QAClC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared-props.d.ts","sourceRoot":"","sources":["../../../../../src/lib/actions/lemur/shared-props.ts"],"names":[],"mappings":"AAEA,eAAO,MAAM,kBAAkB,kEAK7B,CAAC"}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.lemurRequestIdProp = void 0;
|
|
4
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
|
-
exports.lemurRequestIdProp = pieces_framework_1.Property.ShortText({
|
|
6
|
-
displayName: 'LeMUR request ID',
|
|
7
|
-
description: 'The ID of the LeMUR request whose data you want to delete. This would be found in the response of the original request.',
|
|
8
|
-
required: true,
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=shared-props.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"shared-props.js","sourceRoot":"","sources":["../../../../../src/lib/actions/lemur/shared-props.ts"],"names":[],"mappings":";;;AAAA,qEAA0D;AAE7C,QAAA,kBAAkB,GAAG,2BAAQ,CAAC,SAAS,CAAC;IACnD,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EACT,yHAAyH;IAC3H,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const deleteTranscript: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=delete-transcript.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-transcript.d.ts","sourceRoot":"","sources":["../../../../../src/lib/actions/transcripts/delete-transcript.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;EAsB3B,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.deleteTranscript = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../../auth");
|
|
7
|
-
const client_1 = require("../../client");
|
|
8
|
-
const shared_props_1 = require("./shared-props");
|
|
9
|
-
exports.deleteTranscript = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'deleteTranscript',
|
|
11
|
-
auth: auth_1.assemblyaiAuth,
|
|
12
|
-
requireAuth: true,
|
|
13
|
-
displayName: 'Delete transcript',
|
|
14
|
-
description: 'Remove the data from the transcript and mark it as deleted.',
|
|
15
|
-
audience: 'both',
|
|
16
|
-
aiMetadata: {
|
|
17
|
-
description: "Permanently removes the data of an existing transcript, identified by its ID, and marks it deleted. Use this to purge a transcript's contents; this is a destructive mutation. Requires a valid transcript ID. Repeating the call after deletion does not restore data, but it changes server state on the first successful call, so it is not idempotent.",
|
|
18
|
-
idempotent: false,
|
|
19
|
-
},
|
|
20
|
-
props: {
|
|
21
|
-
id: shared_props_1.transcriptIdProp,
|
|
22
|
-
},
|
|
23
|
-
run(context) {
|
|
24
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
const client = (0, client_1.getAssemblyAIClient)(context);
|
|
26
|
-
const deleteResponse = yield client.transcripts.delete(context.propsValue.id);
|
|
27
|
-
return deleteResponse;
|
|
28
|
-
});
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
//# sourceMappingURL=delete-transcript.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"delete-transcript.js","sourceRoot":"","sources":["../../../../../src/lib/actions/transcripts/delete-transcript.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qCAA4C;AAC5C,yCAAmD;AACnD,iDAAkD;AAErC,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,qBAAc;IACpB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,mBAAmB;IAChC,WAAW,EAAE,6DAA6D;IAC1E,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,4VAA4V;QAC9V,UAAU,EAAE,KAAK;KAClB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,+BAAgB;KACrB;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAA,4BAAmB,EAAC,OAAO,CAAC,CAAC;YAC5C,MAAM,cAAc,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,MAAM,CACpD,OAAO,CAAC,UAAU,CAAC,EAAE,CACtB,CAAC;YACF,OAAO,cAAc,CAAC;QACxB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const getParagraphs: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=get-paragraphs.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-paragraphs.d.ts","sourceRoot":"","sources":["../../../../../src/lib/actions/transcripts/get-paragraphs.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,aAAa;;EAsBxB,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getParagraphs = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../../auth");
|
|
7
|
-
const client_1 = require("../../client");
|
|
8
|
-
const shared_props_1 = require("./shared-props");
|
|
9
|
-
exports.getParagraphs = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'getTranscriptParagraphs',
|
|
11
|
-
auth: auth_1.assemblyaiAuth,
|
|
12
|
-
requireAuth: true,
|
|
13
|
-
displayName: 'Get Transcript Paragraphs',
|
|
14
|
-
description: 'Retrieve the paragraphs of the transcript by its ID.',
|
|
15
|
-
audience: 'both',
|
|
16
|
-
aiMetadata: {
|
|
17
|
-
description: 'Returns the paragraph-level segmentation of an existing transcript, identified by its ID, with per-paragraph text and timestamps. Use this when you need the transcript grouped into paragraphs rather than the raw text or individual sentences. Requires a valid transcript ID; read-only and idempotent.',
|
|
18
|
-
idempotent: true,
|
|
19
|
-
},
|
|
20
|
-
props: {
|
|
21
|
-
id: shared_props_1.transcriptIdProp,
|
|
22
|
-
},
|
|
23
|
-
run(context) {
|
|
24
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
const client = (0, client_1.getAssemblyAIClient)(context);
|
|
26
|
-
const paragraphsResponse = yield client.transcripts.paragraphs(context.propsValue.id);
|
|
27
|
-
return paragraphsResponse;
|
|
28
|
-
});
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
//# sourceMappingURL=get-paragraphs.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-paragraphs.js","sourceRoot":"","sources":["../../../../../src/lib/actions/transcripts/get-paragraphs.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qCAA4C;AAC5C,yCAAmD;AACnD,iDAAkD;AAErC,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACxC,IAAI,EAAE,yBAAyB;IAC/B,IAAI,EAAE,qBAAc;IACpB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,2BAA2B;IACxC,WAAW,EAAE,sDAAsD;IACnE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,6SAA6S;QAC/S,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,+BAAgB;KACrB;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAA,4BAAmB,EAAC,OAAO,CAAC,CAAC;YAC5C,MAAM,kBAAkB,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,UAAU,CAC5D,OAAO,CAAC,UAAU,CAAC,EAAE,CACtB,CAAC;YACF,OAAO,kBAAkB,CAAC;QAC5B,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const getRedactedAudio: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
download_file: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
4
|
-
download_file_name: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
-
}>;
|
|
6
|
-
//# sourceMappingURL=get-redacted-audio.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-redacted-audio.d.ts","sourceRoot":"","sources":["../../../../../src/lib/actions/transcripts/get-redacted-audio.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,gBAAgB;;;;EAkD3B,CAAC"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getRedactedAudio = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../../auth");
|
|
7
|
-
const client_1 = require("../../client");
|
|
8
|
-
const shared_props_1 = require("./shared-props");
|
|
9
|
-
exports.getRedactedAudio = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'getRedactedAudio',
|
|
11
|
-
auth: auth_1.assemblyaiAuth,
|
|
12
|
-
requireAuth: true,
|
|
13
|
-
displayName: 'Get Transcript Redacted Audio',
|
|
14
|
-
description: 'Get the result of the redacted audio model.',
|
|
15
|
-
audience: 'both',
|
|
16
|
-
aiMetadata: {
|
|
17
|
-
description: 'Retrieves the PII-redacted audio result for an existing transcript by its ID; if redaction is ready it returns the redacted audio URL and can optionally download the file into Activepieces storage. Use this only for transcripts created with PII audio redaction enabled. Requires a valid transcript ID; read-only and idempotent.',
|
|
18
|
-
idempotent: true,
|
|
19
|
-
},
|
|
20
|
-
props: {
|
|
21
|
-
id: shared_props_1.transcriptIdProp,
|
|
22
|
-
download_file: pieces_framework_1.Property.Checkbox({
|
|
23
|
-
displayName: 'Download file?',
|
|
24
|
-
required: true,
|
|
25
|
-
defaultValue: false,
|
|
26
|
-
}),
|
|
27
|
-
download_file_name: pieces_framework_1.Property.ShortText({
|
|
28
|
-
displayName: 'Download File Name',
|
|
29
|
-
description: 'The desired file name for storing in ActivePieces. Make sure the file extension is correct.',
|
|
30
|
-
required: true,
|
|
31
|
-
defaultValue: 'redacted-audio.mp3',
|
|
32
|
-
}),
|
|
33
|
-
},
|
|
34
|
-
run(context) {
|
|
35
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
36
|
-
const client = (0, client_1.getAssemblyAIClient)(context);
|
|
37
|
-
const redactedAudioResponse = yield client.transcripts.redactedAudio(context.propsValue.id);
|
|
38
|
-
if (redactedAudioResponse.status !== 'redacted_audio_ready') {
|
|
39
|
-
return redactedAudioResponse;
|
|
40
|
-
}
|
|
41
|
-
if (context.propsValue.download_file) {
|
|
42
|
-
const file = yield client.transcripts.redactedAudioFile(context.propsValue.id);
|
|
43
|
-
const fileReference = yield context.files.write({
|
|
44
|
-
fileName: context.propsValue.download_file_name,
|
|
45
|
-
data: Buffer.from(yield file.arrayBuffer()),
|
|
46
|
-
});
|
|
47
|
-
return Object.assign(Object.assign({}, redactedAudioResponse), { file: fileReference });
|
|
48
|
-
}
|
|
49
|
-
return redactedAudioResponse;
|
|
50
|
-
});
|
|
51
|
-
},
|
|
52
|
-
});
|
|
53
|
-
//# sourceMappingURL=get-redacted-audio.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-redacted-audio.js","sourceRoot":"","sources":["../../../../../src/lib/actions/transcripts/get-redacted-audio.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,qCAA4C;AAC5C,yCAAmD;AACnD,iDAAkD;AAErC,QAAA,gBAAgB,GAAG,IAAA,+BAAY,EAAC;IAC3C,IAAI,EAAE,kBAAkB;IACxB,IAAI,EAAE,qBAAc;IACpB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,+BAA+B;IAC5C,WAAW,EAAE,6CAA6C;IAC1D,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,yUAAyU;QAC3U,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,+BAAgB;QACpB,aAAa,EAAE,2BAAQ,CAAC,QAAQ,CAAC;YAC/B,WAAW,EAAE,gBAAgB;YAC7B,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,KAAK;SACpB,CAAC;QACF,kBAAkB,EAAE,2BAAQ,CAAC,SAAS,CAAC;YACrC,WAAW,EAAE,oBAAoB;YACjC,WAAW,EACT,6FAA6F;YAC/F,QAAQ,EAAE,IAAI;YACd,YAAY,EAAE,oBAAoB;SACnC,CAAC;KACH;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAA,4BAAmB,EAAC,OAAO,CAAC,CAAC;YAC5C,MAAM,qBAAqB,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,aAAa,CAClE,OAAO,CAAC,UAAU,CAAC,EAAE,CACtB,CAAC;YACF,IAAI,qBAAqB,CAAC,MAAM,KAAK,sBAAsB,EAAE,CAAC;gBAC5D,OAAO,qBAAqB,CAAC;YAC/B,CAAC;YACD,IAAI,OAAO,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;gBACrC,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,iBAAiB,CACrD,OAAO,CAAC,UAAU,CAAC,EAAE,CACtB,CAAC;gBACF,MAAM,aAAa,GAAG,MAAM,OAAO,CAAC,KAAK,CAAC,KAAK,CAAC;oBAC9C,QAAQ,EAAE,OAAO,CAAC,UAAU,CAAC,kBAAkB;oBAC/C,IAAI,EAAE,MAAM,CAAC,IAAI,CAAC,MAAM,IAAI,CAAC,WAAW,EAAE,CAAC;iBAC5C,CAAC,CAAC;gBACH,uCACK,qBAAqB,KACxB,IAAI,EAAE,aAAa,IACnB;YACJ,CAAC;YACD,OAAO,qBAAqB,CAAC;QAC/B,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
export declare const getSentences: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
}>;
|
|
4
|
-
//# sourceMappingURL=get-sentences.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-sentences.d.ts","sourceRoot":"","sources":["../../../../../src/lib/actions/transcripts/get-sentences.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;EAsBvB,CAAC"}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.getSentences = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
-
const auth_1 = require("../../auth");
|
|
7
|
-
const client_1 = require("../../client");
|
|
8
|
-
const shared_props_1 = require("./shared-props");
|
|
9
|
-
exports.getSentences = (0, pieces_framework_1.createAction)({
|
|
10
|
-
name: 'getTranscriptSentences',
|
|
11
|
-
auth: auth_1.assemblyaiAuth,
|
|
12
|
-
requireAuth: true,
|
|
13
|
-
displayName: 'Get Transcript Sentences',
|
|
14
|
-
description: 'Retrieve the sentences of the transcript by its ID.',
|
|
15
|
-
audience: 'both',
|
|
16
|
-
aiMetadata: {
|
|
17
|
-
description: 'Returns the sentence-level segmentation of an existing transcript, identified by its ID, with per-sentence text and timestamps. Use this when you need the transcript broken into sentences rather than the raw text. Requires a valid transcript ID; read-only and idempotent.',
|
|
18
|
-
idempotent: true,
|
|
19
|
-
},
|
|
20
|
-
props: {
|
|
21
|
-
id: shared_props_1.transcriptIdProp,
|
|
22
|
-
},
|
|
23
|
-
run(context) {
|
|
24
|
-
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
const client = (0, client_1.getAssemblyAIClient)(context);
|
|
26
|
-
const sentencesResponse = yield client.transcripts.sentences(context.propsValue.id);
|
|
27
|
-
return sentencesResponse;
|
|
28
|
-
});
|
|
29
|
-
},
|
|
30
|
-
});
|
|
31
|
-
//# sourceMappingURL=get-sentences.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-sentences.js","sourceRoot":"","sources":["../../../../../src/lib/actions/transcripts/get-sentences.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qCAA4C;AAC5C,yCAAmD;AACnD,iDAAkD;AAErC,QAAA,YAAY,GAAG,IAAA,+BAAY,EAAC;IACvC,IAAI,EAAE,wBAAwB;IAC9B,IAAI,EAAE,qBAAc;IACpB,WAAW,EAAE,IAAI;IACjB,WAAW,EAAE,0BAA0B;IACvC,WAAW,EAAE,qDAAqD;IAClE,QAAQ,EAAE,MAAM;IAChB,UAAU,EAAE;QACV,WAAW,EACT,iRAAiR;QACnR,UAAU,EAAE,IAAI;KACjB;IACD,KAAK,EAAE;QACL,EAAE,EAAE,+BAAgB;KACrB;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAA,4BAAmB,EAAC,OAAO,CAAC,CAAC;YAC5C,MAAM,iBAAiB,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,SAAS,CAC1D,OAAO,CAAC,UAAU,CAAC,EAAE,CACtB,CAAC;YACF,OAAO,iBAAiB,CAAC;QAC3B,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export declare const getSubtitles: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
-
id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
-
format: import("@activepieces/pieces-framework").StaticDropdownProperty<string, true>;
|
|
4
|
-
chars_per_caption: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
5
|
-
}>;
|
|
6
|
-
//# sourceMappingURL=get-subtitles.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"get-subtitles.d.ts","sourceRoot":"","sources":["../../../../../src/lib/actions/transcripts/get-subtitles.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,YAAY;;;;EAiDvB,CAAC"}
|