@activepieces/piece-assemblyai 0.0.1
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/README.md +7 -0
- package/package.json +23 -0
- package/src/index.d.ts +1 -0
- package/src/index.js +35 -0
- package/src/index.js.map +1 -0
- package/src/lib/actions/custom-api-call.d.ts +9 -0
- package/src/lib/actions/custom-api-call.js +16 -0
- package/src/lib/actions/custom-api-call.js.map +1 -0
- package/src/lib/actions/files/index.d.ts +1 -0
- package/src/lib/actions/files/index.js +6 -0
- package/src/lib/actions/files/index.js.map +1 -0
- package/src/lib/actions/files/upload.d.ts +3 -0
- package/src/lib/actions/files/upload.js +28 -0
- package/src/lib/actions/files/upload.js.map +1 -0
- package/src/lib/actions/index.d.ts +4 -0
- package/src/lib/actions/index.js +22 -0
- package/src/lib/actions/index.js.map +1 -0
- package/src/lib/actions/lemur/get-lemur-response.d.ts +3 -0
- package/src/lib/actions/lemur/get-lemur-response.js +25 -0
- package/src/lib/actions/lemur/get-lemur-response.js.map +1 -0
- package/src/lib/actions/lemur/index.d.ts +3 -0
- package/src/lib/actions/lemur/index.js +10 -0
- package/src/lib/actions/lemur/index.js.map +1 -0
- package/src/lib/actions/lemur/lemur-task.d.ts +9 -0
- package/src/lib/actions/lemur/lemur-task.js +26 -0
- package/src/lib/actions/lemur/lemur-task.js.map +1 -0
- package/src/lib/actions/lemur/purge-lemur-request-data.d.ts +3 -0
- package/src/lib/actions/lemur/purge-lemur-request-data.js +26 -0
- package/src/lib/actions/lemur/purge-lemur-request-data.js.map +1 -0
- package/src/lib/actions/lemur/shared-props.d.ts +1 -0
- package/src/lib/actions/lemur/shared-props.js +10 -0
- package/src/lib/actions/lemur/shared-props.js.map +1 -0
- package/src/lib/actions/transcripts/delete-transcript.d.ts +3 -0
- package/src/lib/actions/transcripts/delete-transcript.js +25 -0
- package/src/lib/actions/transcripts/delete-transcript.js.map +1 -0
- package/src/lib/actions/transcripts/get-paragraphs.d.ts +3 -0
- package/src/lib/actions/transcripts/get-paragraphs.js +25 -0
- package/src/lib/actions/transcripts/get-paragraphs.js.map +1 -0
- package/src/lib/actions/transcripts/get-redacted-audio.d.ts +5 -0
- package/src/lib/actions/transcripts/get-redacted-audio.js +47 -0
- package/src/lib/actions/transcripts/get-redacted-audio.js.map +1 -0
- package/src/lib/actions/transcripts/get-sentences.d.ts +3 -0
- package/src/lib/actions/transcripts/get-sentences.js +25 -0
- package/src/lib/actions/transcripts/get-sentences.js.map +1 -0
- package/src/lib/actions/transcripts/get-subtitles.d.ts +5 -0
- package/src/lib/actions/transcripts/get-subtitles.js +49 -0
- package/src/lib/actions/transcripts/get-subtitles.js.map +1 -0
- package/src/lib/actions/transcripts/get-transcript.d.ts +3 -0
- package/src/lib/actions/transcripts/get-transcript.js +25 -0
- package/src/lib/actions/transcripts/get-transcript.js.map +1 -0
- package/src/lib/actions/transcripts/index.d.ts +9 -0
- package/src/lib/actions/transcripts/index.js +22 -0
- package/src/lib/actions/transcripts/index.js.map +1 -0
- package/src/lib/actions/transcripts/list-transcripts.d.ts +8 -0
- package/src/lib/actions/transcripts/list-transcripts.js +24 -0
- package/src/lib/actions/transcripts/list-transcripts.js.map +1 -0
- package/src/lib/actions/transcripts/shared-props.d.ts +1 -0
- package/src/lib/actions/transcripts/shared-props.js +9 -0
- package/src/lib/actions/transcripts/shared-props.js.map +1 -0
- package/src/lib/actions/transcripts/transcribe.d.ts +42 -0
- package/src/lib/actions/transcripts/transcribe.js +97 -0
- package/src/lib/actions/transcripts/transcribe.js.map +1 -0
- package/src/lib/actions/transcripts/word-search.d.ts +4 -0
- package/src/lib/actions/transcripts/word-search.js +31 -0
- package/src/lib/actions/transcripts/word-search.js.map +1 -0
- package/src/lib/auth.d.ts +1 -0
- package/src/lib/auth.js +10 -0
- package/src/lib/auth.js.map +1 -0
- package/src/lib/client.d.ts +3 -0
- package/src/lib/client.js +13 -0
- package/src/lib/client.js.map +1 -0
- package/src/lib/generated/lemur-task/props.d.ts +9 -0
- package/src/lib/generated/lemur-task/props.js +86 -0
- package/src/lib/generated/lemur-task/props.js.map +1 -0
- package/src/lib/generated/list-transcript/props.d.ts +8 -0
- package/src/lib/generated/list-transcript/props.js +58 -0
- package/src/lib/generated/list-transcript/props.js.map +1 -0
- package/src/lib/generated/transcribe/props.d.ts +40 -0
- package/src/lib/generated/transcribe/props.js +898 -0
- package/src/lib/generated/transcribe/props.js.map +1 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"get-transcript.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/assemblyai/src/lib/actions/transcripts/get-transcript.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAC9D,qCAA4C;AAC5C,yCAAmD;AACnD,iDAAkD;AAErC,QAAA,aAAa,GAAG,IAAA,+BAAY,EAAC;IACxC,IAAI,EAAE,eAAe;IACrB,IAAI,EAAE,qBAAc;IACpB,WAAW,EAAE,gBAAgB;IAC7B,WAAW,EAAE,mCAAmC;IAChD,KAAK,EAAE;QACL,EAAE,EAAE,+BAAgB;KACrB;IACK,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAA,4BAAmB,EAAC,OAAO,CAAC,CAAC;YAC5C,MAAM,UAAU,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,GAAG,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;YACvE,OAAO,UAAU,CAAC;QACpB,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export { transcribe } from './transcribe';
|
|
2
|
+
export { getTranscript } from './get-transcript';
|
|
3
|
+
export { getSentences } from './get-sentences';
|
|
4
|
+
export { getParagraphs } from './get-paragraphs';
|
|
5
|
+
export { getSubtitles } from './get-subtitles';
|
|
6
|
+
export { getRedactedAudio } from './get-redacted-audio';
|
|
7
|
+
export { wordSearch } from './word-search';
|
|
8
|
+
export { listTranscripts } from './list-transcripts';
|
|
9
|
+
export { deleteTranscript } from './delete-transcript';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.deleteTranscript = exports.listTranscripts = exports.wordSearch = exports.getRedactedAudio = exports.getSubtitles = exports.getParagraphs = exports.getSentences = exports.getTranscript = exports.transcribe = void 0;
|
|
4
|
+
var transcribe_1 = require("./transcribe");
|
|
5
|
+
Object.defineProperty(exports, "transcribe", { enumerable: true, get: function () { return transcribe_1.transcribe; } });
|
|
6
|
+
var get_transcript_1 = require("./get-transcript");
|
|
7
|
+
Object.defineProperty(exports, "getTranscript", { enumerable: true, get: function () { return get_transcript_1.getTranscript; } });
|
|
8
|
+
var get_sentences_1 = require("./get-sentences");
|
|
9
|
+
Object.defineProperty(exports, "getSentences", { enumerable: true, get: function () { return get_sentences_1.getSentences; } });
|
|
10
|
+
var get_paragraphs_1 = require("./get-paragraphs");
|
|
11
|
+
Object.defineProperty(exports, "getParagraphs", { enumerable: true, get: function () { return get_paragraphs_1.getParagraphs; } });
|
|
12
|
+
var get_subtitles_1 = require("./get-subtitles");
|
|
13
|
+
Object.defineProperty(exports, "getSubtitles", { enumerable: true, get: function () { return get_subtitles_1.getSubtitles; } });
|
|
14
|
+
var get_redacted_audio_1 = require("./get-redacted-audio");
|
|
15
|
+
Object.defineProperty(exports, "getRedactedAudio", { enumerable: true, get: function () { return get_redacted_audio_1.getRedactedAudio; } });
|
|
16
|
+
var word_search_1 = require("./word-search");
|
|
17
|
+
Object.defineProperty(exports, "wordSearch", { enumerable: true, get: function () { return word_search_1.wordSearch; } });
|
|
18
|
+
var list_transcripts_1 = require("./list-transcripts");
|
|
19
|
+
Object.defineProperty(exports, "listTranscripts", { enumerable: true, get: function () { return list_transcripts_1.listTranscripts; } });
|
|
20
|
+
var delete_transcript_1 = require("./delete-transcript");
|
|
21
|
+
Object.defineProperty(exports, "deleteTranscript", { enumerable: true, get: function () { return delete_transcript_1.deleteTranscript; } });
|
|
22
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/assemblyai/src/lib/actions/transcripts/index.ts"],"names":[],"mappings":";;;AAAA,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,mDAAiD;AAAxC,+GAAA,aAAa,OAAA;AACtB,iDAA+C;AAAtC,6GAAA,YAAY,OAAA;AACrB,2DAAwD;AAA/C,sHAAA,gBAAgB,OAAA;AACzB,6CAA2C;AAAlC,yGAAA,UAAU,OAAA;AACnB,uDAAqD;AAA5C,mHAAA,eAAe,OAAA;AACxB,yDAAuD;AAA9C,qHAAA,gBAAgB,OAAA"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const listTranscripts: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
+
limit: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
3
|
+
status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
4
|
+
created_on: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
5
|
+
before_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
|
+
after_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
+
throttled_only: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
8
|
+
}>;
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listTranscripts = 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/list-transcript/props");
|
|
9
|
+
exports.listTranscripts = (0, pieces_framework_1.createAction)({
|
|
10
|
+
name: 'listTranscripts',
|
|
11
|
+
auth: auth_1.assemblyaiAuth,
|
|
12
|
+
displayName: 'List transcripts',
|
|
13
|
+
description: `Retrieve a list of transcripts you created.
|
|
14
|
+
Transcripts are sorted from newest to oldest. The previous URL always points to a page with older transcripts.`,
|
|
15
|
+
props: props_1.props,
|
|
16
|
+
run(context) {
|
|
17
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
18
|
+
const client = (0, client_1.getAssemblyAIClient)(context);
|
|
19
|
+
const transcriptListResponse = yield client.transcripts.list(context.propsValue);
|
|
20
|
+
return transcriptListResponse;
|
|
21
|
+
});
|
|
22
|
+
},
|
|
23
|
+
});
|
|
24
|
+
//# sourceMappingURL=list-transcripts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"list-transcripts.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/assemblyai/src/lib/actions/transcripts/list-transcripts.ts"],"names":[],"mappings":";;;;AAAA,qEAA8D;AAE9D,qCAA4C;AAC5C,yCAAmD;AACnD,iEAA8D;AAEjD,QAAA,eAAe,GAAG,IAAA,+BAAY,EAAC;IAC1C,IAAI,EAAE,iBAAiB;IACvB,IAAI,EAAE,qBAAc;IACpB,WAAW,EAAE,kBAAkB;IAC/B,WAAW,EAAE;+GACgG;IAC7G,KAAK,EAAL,aAAK;IACC,GAAG,CAAC,OAAO;;YACf,MAAM,MAAM,GAAG,IAAA,4BAAmB,EAAC,OAAO,CAAC,CAAC;YAC5C,MAAM,sBAAsB,GAAG,MAAM,MAAM,CAAC,WAAW,CAAC,IAAI,CAC1D,OAAO,CAAC,UAAkC,CAC3C,CAAC;YACF,OAAO,sBAAsB,CAAC;QAChC,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const transcriptIdProp: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transcriptIdProp = void 0;
|
|
4
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
|
+
exports.transcriptIdProp = pieces_framework_1.Property.ShortText({
|
|
6
|
+
displayName: 'Transcript ID',
|
|
7
|
+
required: true,
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=shared-props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"shared-props.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/assemblyai/src/lib/actions/transcripts/shared-props.ts"],"names":[],"mappings":";;;AAAA,qEAA0D;AAE7C,QAAA,gBAAgB,GAAG,2BAAQ,CAAC,SAAS,CAAC;IACjD,WAAW,EAAE,eAAe;IAC5B,QAAQ,EAAE,IAAI;CACf,CAAC,CAAC"}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
export declare const transcribe: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
+
readonly wait_until_ready: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
3
|
+
readonly throw_on_error: import("@activepieces/pieces-framework").CheckboxProperty<true>;
|
|
4
|
+
readonly audio_url: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
5
|
+
readonly language_code: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
6
|
+
readonly language_detection: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
7
|
+
readonly language_confidence_threshold: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
8
|
+
readonly speech_model: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
9
|
+
readonly punctuate: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
10
|
+
readonly format_text: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
11
|
+
readonly disfluencies: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
12
|
+
readonly dual_channel: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
13
|
+
readonly webhook_url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
|
+
readonly webhook_auth_header_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
15
|
+
readonly webhook_auth_header_value: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
16
|
+
readonly auto_highlights: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
17
|
+
readonly audio_start_from: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
18
|
+
readonly audio_end_at: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
19
|
+
readonly word_boost: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
20
|
+
readonly boost_param: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
21
|
+
readonly filter_profanity: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
22
|
+
readonly redact_pii: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
23
|
+
readonly redact_pii_audio: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
24
|
+
readonly redact_pii_audio_quality: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
25
|
+
readonly redact_pii_policies: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
|
|
26
|
+
readonly redact_pii_sub: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
27
|
+
readonly speaker_labels: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
28
|
+
readonly speakers_expected: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
29
|
+
readonly content_safety: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
30
|
+
readonly content_safety_confidence: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
31
|
+
readonly iab_categories: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
32
|
+
readonly custom_spelling: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
33
|
+
readonly sentiment_analysis: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
34
|
+
readonly auto_chapters: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
35
|
+
readonly entity_detection: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
36
|
+
readonly speech_threshold: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
37
|
+
readonly summarization: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
38
|
+
readonly summary_model: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
39
|
+
readonly summary_type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
40
|
+
readonly custom_topics: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
41
|
+
readonly topics: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
42
|
+
}>;
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transcribe = void 0;
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
6
|
+
const shared_1 = require("@activepieces/shared");
|
|
7
|
+
const auth_1 = require("../../auth");
|
|
8
|
+
const client_1 = require("../../client");
|
|
9
|
+
const props_1 = require("../../generated/transcribe/props");
|
|
10
|
+
const transcribeProps = Object.assign(Object.assign({}, props_1.props), { wait_until_ready: pieces_framework_1.Property.Checkbox({
|
|
11
|
+
displayName: 'Wait until transcript is ready',
|
|
12
|
+
description: `Wait until the transcript status is "completed" or "error" before moving on to the next step.`,
|
|
13
|
+
required: true,
|
|
14
|
+
defaultValue: true,
|
|
15
|
+
}), throw_on_error: pieces_framework_1.Property.Checkbox({
|
|
16
|
+
displayName: 'Throw if transcript status is error',
|
|
17
|
+
description: `If the transcript status is "error", throw an error.`,
|
|
18
|
+
required: true,
|
|
19
|
+
defaultValue: true,
|
|
20
|
+
}) });
|
|
21
|
+
exports.transcribe = (0, pieces_framework_1.createAction)({
|
|
22
|
+
name: 'transcribe',
|
|
23
|
+
auth: auth_1.assemblyaiAuth,
|
|
24
|
+
displayName: 'Transcribe',
|
|
25
|
+
description: 'Transcribe an audio or video file using AssemblyAI.',
|
|
26
|
+
props: transcribeProps,
|
|
27
|
+
run(context) {
|
|
28
|
+
return tslib_1.__awaiter(this, void 0, void 0, function* () {
|
|
29
|
+
const client = (0, client_1.getAssemblyAIClient)(context);
|
|
30
|
+
if (context.executionType === shared_1.ExecutionType.BEGIN) {
|
|
31
|
+
const transcriptParams = createTranscriptParams(context);
|
|
32
|
+
handleWebhookUrl(context, transcriptParams);
|
|
33
|
+
handlePiiAudio(context);
|
|
34
|
+
handleEmptyArrays(transcriptParams);
|
|
35
|
+
const transcript = yield client.transcripts.submit(transcriptParams);
|
|
36
|
+
if (context.propsValue.wait_until_ready) {
|
|
37
|
+
context.run.pause({
|
|
38
|
+
pauseMetadata: {
|
|
39
|
+
type: shared_1.PauseType.WEBHOOK,
|
|
40
|
+
response: transcript,
|
|
41
|
+
},
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
return transcript;
|
|
45
|
+
}
|
|
46
|
+
else if (context.executionType === shared_1.ExecutionType.RESUME) {
|
|
47
|
+
const webhookBody = context.resumePayload.body;
|
|
48
|
+
const transcript = yield client.transcripts.get(webhookBody.transcript_id);
|
|
49
|
+
if (context.propsValue.throw_on_error && transcript.status === 'error') {
|
|
50
|
+
throw new Error(transcript.error);
|
|
51
|
+
}
|
|
52
|
+
return transcript;
|
|
53
|
+
}
|
|
54
|
+
else {
|
|
55
|
+
throw new Error('Invalid Execution Type');
|
|
56
|
+
}
|
|
57
|
+
});
|
|
58
|
+
},
|
|
59
|
+
});
|
|
60
|
+
function createTranscriptParams(context) {
|
|
61
|
+
const transcriptParams = Object.assign({}, context.propsValue);
|
|
62
|
+
if ('wait_until_ready' in transcriptParams)
|
|
63
|
+
delete transcriptParams['wait_until_ready'];
|
|
64
|
+
if ('throw_on_error' in transcriptParams)
|
|
65
|
+
delete transcriptParams['throw_on_error'];
|
|
66
|
+
if ('auth' in transcriptParams)
|
|
67
|
+
delete transcriptParams['auth'];
|
|
68
|
+
return transcriptParams;
|
|
69
|
+
}
|
|
70
|
+
function handleWebhookUrl(context, transcriptParams) {
|
|
71
|
+
var _a;
|
|
72
|
+
if (context.propsValue.wait_until_ready) {
|
|
73
|
+
const isWebhookUrlConfigured = (_a = transcriptParams.webhook_url) === null || _a === void 0 ? void 0 : _a.trim();
|
|
74
|
+
if (isWebhookUrlConfigured) {
|
|
75
|
+
throw new Error(`The "Wait until transcript is ready" and "Webhook URL" fields are mutually exclusive. Please remove the "Webhook URL" field to use the "Wait until transcript is ready" field.`);
|
|
76
|
+
}
|
|
77
|
+
transcriptParams.webhook_url = context.generateResumeUrl({
|
|
78
|
+
queryParams: {},
|
|
79
|
+
});
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function handlePiiAudio(context) {
|
|
83
|
+
if (context.propsValue.wait_until_ready === true &&
|
|
84
|
+
context.propsValue.redact_pii_audio === true) {
|
|
85
|
+
throw new Error(`The "Wait until transcript is ready" and "Redact PII audio" fields are mutually exclusive. Set the "Wait until transcript is ready" or "Redact PII audio" to false.`);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
function handleEmptyArrays(transcriptParams) {
|
|
89
|
+
const obj = transcriptParams;
|
|
90
|
+
for (const key in obj) {
|
|
91
|
+
const value = obj[key];
|
|
92
|
+
if (Array.isArray(value) && value.length === 0) {
|
|
93
|
+
delete obj[key];
|
|
94
|
+
}
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=transcribe.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transcribe.js","sourceRoot":"","sources":["../../../../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I,EAAE,CAAC;QACpE,IAAI,sBAAsB,EAAE,CAAC;YAC3B,MAAM,IAAI,KAAK,CACb,gLAAgL,CACjL,CAAC;QACJ,CAAC;QACD,gBAAgB,CAAC,WAAW,GAAG,OAAO,CAAC,iBAAiB,CAAC;YACvD,WAAW,EAAE,EAAE;SAChB,CAAC,CAAC;IACL,CAAC;AACH,CAAC;AAED,SAAS,cAAc,CAAC,OAA0B;IAChD,IACE,OAAO,CAAC,UAAU,CAAC,gBAAgB,KAAK,IAAI;QAC5C,OAAO,CAAC,UAAU,CAAC,gBAAgB,KAAK,IAAI,EAC5C,CAAC;QACD,MAAM,IAAI,KAAK,CACb,qKAAqK,CACtK,CAAC;IACJ,CAAC;AACH,CAAC;AAED,SAAS,iBAAiB,CAAC,gBAAkC;IAC3D,MAAM,GAAG,GAAG,gBAA2C,CAAC;IACxD,KAAK,MAAM,GAAG,IAAI,GAAG,EAAE,CAAC;QACtB,MAAM,KAAK,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;QACvB,IAAI,KAAK,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,EAAE,CAAC;YAC/C,OAAO,GAAG,CAAC,GAAG,CAAC,CAAC;QAClB,CAAC;IACH,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
export declare const wordSearch: import("@activepieces/pieces-framework").IAction<import("@activepieces/pieces-framework").SecretTextProperty<true>, {
|
|
2
|
+
id: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
words: import("@activepieces/pieces-framework").ArrayProperty<true>;
|
|
4
|
+
}>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.wordSearch = 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.wordSearch = (0, pieces_framework_1.createAction)({
|
|
10
|
+
name: 'wordSearch',
|
|
11
|
+
auth: auth_1.assemblyaiAuth,
|
|
12
|
+
displayName: 'Search words in transcript',
|
|
13
|
+
description: 'Search through the transcript for keywords. ' +
|
|
14
|
+
'You can search for individual words, numbers, or phrases containing up to five words or numbers.',
|
|
15
|
+
props: {
|
|
16
|
+
id: shared_props_1.transcriptIdProp,
|
|
17
|
+
words: pieces_framework_1.Property.Array({
|
|
18
|
+
displayName: 'Words',
|
|
19
|
+
required: true,
|
|
20
|
+
description: 'Keywords to search for',
|
|
21
|
+
}),
|
|
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 wordSearchResponse = yield client.transcripts.wordSearch(context.propsValue.id, context.propsValue.words);
|
|
27
|
+
return wordSearchResponse;
|
|
28
|
+
});
|
|
29
|
+
},
|
|
30
|
+
});
|
|
31
|
+
//# sourceMappingURL=word-search.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"word-search.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/assemblyai/src/lib/actions/transcripts/word-search.ts"],"names":[],"mappings":";;;;AAAA,qEAAwE;AACxE,qCAA4C;AAC5C,yCAAmD;AACnD,iDAAkD;AAErC,QAAA,UAAU,GAAG,IAAA,+BAAY,EAAC;IACrC,IAAI,EAAE,YAAY;IAClB,IAAI,EAAE,qBAAc;IACpB,WAAW,EAAE,4BAA4B;IACzC,WAAW,EACT,8CAA8C;QAC9C,kGAAkG;IACpG,KAAK,EAAE;QACL,EAAE,EAAE,+BAAgB;QACpB,KAAK,EAAE,2BAAQ,CAAC,KAAK,CAAC;YACpB,WAAW,EAAE,OAAO;YACpB,QAAQ,EAAE,IAAI;YACd,WAAW,EAAE,wBAAwB;SACtC,CAAC;KACH;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,EACrB,OAAO,CAAC,UAAU,CAAC,KAAiB,CACrC,CAAC;YACF,OAAO,kBAAkB,CAAC;QAC5B,CAAC;KAAA;CACF,CAAC,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const assemblyaiAuth: import("@activepieces/pieces-framework").SecretTextProperty<true>;
|
package/src/lib/auth.js
ADDED
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.assemblyaiAuth = void 0;
|
|
4
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
|
+
exports.assemblyaiAuth = pieces_framework_1.PieceAuth.SecretText({
|
|
6
|
+
displayName: 'API Key',
|
|
7
|
+
required: true,
|
|
8
|
+
description: 'You can retrieve your API Key within your AssemblyAI [Account Settings](https://www.assemblyai.com/app/account?utm_source=activepieces).',
|
|
9
|
+
});
|
|
10
|
+
//# sourceMappingURL=auth.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"auth.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/assemblyai/src/lib/auth.ts"],"names":[],"mappings":";;;AAAA,qEAA2D;AAE9C,QAAA,cAAc,GAAG,4BAAS,CAAC,UAAU,CAAC;IACjD,WAAW,EAAE,SAAS;IACtB,QAAQ,EAAE,IAAI;IACd,WAAW,EACT,0IAA0I;CAC7I,CAAC,CAAC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.getAssemblyAIClient = void 0;
|
|
4
|
+
const assemblyai_1 = require("assemblyai");
|
|
5
|
+
const getAssemblyAIClient = (context) => {
|
|
6
|
+
return new assemblyai_1.AssemblyAI({
|
|
7
|
+
apiKey: context.auth,
|
|
8
|
+
// Proxyman proxy
|
|
9
|
+
// baseUrl: 'http://localhost:10000',
|
|
10
|
+
});
|
|
11
|
+
};
|
|
12
|
+
exports.getAssemblyAIClient = getAssemblyAIClient;
|
|
13
|
+
//# sourceMappingURL=client.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../../../../packages/pieces/community/assemblyai/src/lib/client.ts"],"names":[],"mappings":";;;AAIA,2CAAwC;AAEjC,MAAM,mBAAmB,GAAG,CACjC,OAAgD,EACpC,EAAE;IACd,OAAO,IAAI,uBAAU,CAAC;QACpB,MAAM,EAAE,OAAO,CAAC,IAAI;QACpB,iBAAiB;QACjB,qCAAqC;KACtC,CAAC,CAAC;AACL,CAAC,CAAC;AARW,QAAA,mBAAmB,uBAQ9B"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
export declare const props: {
|
|
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
|
+
};
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = void 0;
|
|
4
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
|
+
exports.props = {
|
|
6
|
+
prompt: pieces_framework_1.Property.ShortText({
|
|
7
|
+
displayName: 'Prompt',
|
|
8
|
+
required: true,
|
|
9
|
+
description: 'Your text to prompt the model to produce a desired output, including any context you want to pass into the model.',
|
|
10
|
+
}),
|
|
11
|
+
transcript_ids: pieces_framework_1.Property.Array({
|
|
12
|
+
displayName: 'Transcript IDs',
|
|
13
|
+
required: false,
|
|
14
|
+
description: 'A list of completed transcripts with text. Up to a maximum of 100 files or 100 hours, whichever is lower.\nUse either transcript_ids or input_text as input into LeMUR.\n',
|
|
15
|
+
}),
|
|
16
|
+
input_text: pieces_framework_1.Property.ShortText({
|
|
17
|
+
displayName: 'Input Text',
|
|
18
|
+
required: false,
|
|
19
|
+
description: 'Custom formatted transcript data. Maximum size is the context limit of the selected model, which defaults to 100000.\nUse either transcript_ids or input_text as input into LeMUR.\n',
|
|
20
|
+
}),
|
|
21
|
+
context: pieces_framework_1.Property.LongText({
|
|
22
|
+
displayName: 'Context',
|
|
23
|
+
required: false,
|
|
24
|
+
description: 'Context to provide the model. This can be a string or a free-form JSON value.',
|
|
25
|
+
}),
|
|
26
|
+
final_model: pieces_framework_1.Property.StaticDropdown({
|
|
27
|
+
displayName: 'Final Model',
|
|
28
|
+
required: false,
|
|
29
|
+
description: 'The model that is used for the final prompt after compression is performed.\n',
|
|
30
|
+
options: {
|
|
31
|
+
options: [
|
|
32
|
+
{
|
|
33
|
+
label: 'Claude 3.5 Sonnet (on Anthropic)',
|
|
34
|
+
value: 'anthropic/claude-3-5-sonnet',
|
|
35
|
+
},
|
|
36
|
+
{
|
|
37
|
+
label: 'Claude 3 Opus (on Anthropic)',
|
|
38
|
+
value: 'anthropic/claude-3-opus',
|
|
39
|
+
},
|
|
40
|
+
{
|
|
41
|
+
label: 'Claude 3 Haiku (on Anthropic)',
|
|
42
|
+
value: 'anthropic/claude-3-haiku',
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
label: 'Claude 3 Sonnet (on Anthropic)',
|
|
46
|
+
value: 'anthropic/claude-3-sonnet',
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
label: 'Claude 2.1 (on Anthropic)',
|
|
50
|
+
value: 'anthropic/claude-2-1',
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
label: 'Claude 2 (on Anthropic)',
|
|
54
|
+
value: 'anthropic/claude-2',
|
|
55
|
+
},
|
|
56
|
+
{
|
|
57
|
+
label: 'Default',
|
|
58
|
+
value: 'default',
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
label: 'Claude Instant 1.2 (on Anthropic)',
|
|
62
|
+
value: 'anthropic/claude-instant-1-2',
|
|
63
|
+
},
|
|
64
|
+
{
|
|
65
|
+
label: 'Basic',
|
|
66
|
+
value: 'basic',
|
|
67
|
+
},
|
|
68
|
+
{
|
|
69
|
+
label: 'Mistral 7B (Hosted by AssemblyAI)',
|
|
70
|
+
value: 'assemblyai/mistral-7b',
|
|
71
|
+
},
|
|
72
|
+
],
|
|
73
|
+
},
|
|
74
|
+
}),
|
|
75
|
+
max_output_size: pieces_framework_1.Property.Number({
|
|
76
|
+
displayName: 'Maximum Output Size',
|
|
77
|
+
required: false,
|
|
78
|
+
description: 'Max output size in tokens, up to 4000',
|
|
79
|
+
}),
|
|
80
|
+
temperature: pieces_framework_1.Property.Number({
|
|
81
|
+
displayName: 'Temperature',
|
|
82
|
+
required: false,
|
|
83
|
+
description: 'The temperature to use for the model.\nHigher values result in answers that are more creative, lower values are more conservative.\nCan be any value between 0.0 and 1.0 inclusive.\n',
|
|
84
|
+
}),
|
|
85
|
+
};
|
|
86
|
+
//# sourceMappingURL=props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/assemblyai/src/lib/generated/lemur-task/props.ts"],"names":[],"mappings":";;;AAAA,qEAA0D;AAC7C,QAAA,KAAK,GAA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AAK,EAAE,OAAO;oBACd,KAAK,EAAE,OAAO;iBACf;gBACD;oBACE,KAAK,EAAE,mCAAmC;oBAC1C,KAAK,EAAE,uBAAuB;iBAC/B;aACF;SACF;KACF,CAAC;IACF,eAAe,EAAE,2BAAQ,CAAC,MAAM,CAAC;QAC/B,WAAW,EAAE,qBAAqB;QAClC,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,uCAAuC;KACrD,CAAC;IACF,WAAW,EAAE,2BAAQ,CAAC,MAAM,CAAC;QAC3B,WAAW,EAAE,aAAa;QAC1B,QAAQ,EAAE,KAAK;QACf,WAAW,EACT,uLAAuL;KAC1L,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export declare const props: {
|
|
2
|
+
limit: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
3
|
+
status: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
4
|
+
created_on: import("@activepieces/pieces-framework").DateTimeProperty<false>;
|
|
5
|
+
before_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
6
|
+
after_id: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
7
|
+
throttled_only: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
8
|
+
};
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.props = void 0;
|
|
4
|
+
const pieces_framework_1 = require("@activepieces/pieces-framework");
|
|
5
|
+
exports.props = {
|
|
6
|
+
limit: pieces_framework_1.Property.Number({
|
|
7
|
+
displayName: 'Limit',
|
|
8
|
+
required: false,
|
|
9
|
+
description: 'Maximum amount of transcripts to retrieve',
|
|
10
|
+
}),
|
|
11
|
+
status: pieces_framework_1.Property.StaticDropdown({
|
|
12
|
+
displayName: 'Status',
|
|
13
|
+
required: false,
|
|
14
|
+
description: 'Filter by transcript status',
|
|
15
|
+
options: {
|
|
16
|
+
options: [
|
|
17
|
+
{
|
|
18
|
+
label: 'Queued',
|
|
19
|
+
value: 'queued',
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
label: 'Processing',
|
|
23
|
+
value: 'processing',
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
label: 'Completed',
|
|
27
|
+
value: 'completed',
|
|
28
|
+
},
|
|
29
|
+
{
|
|
30
|
+
label: 'Error',
|
|
31
|
+
value: 'error',
|
|
32
|
+
},
|
|
33
|
+
],
|
|
34
|
+
},
|
|
35
|
+
}),
|
|
36
|
+
created_on: pieces_framework_1.Property.DateTime({
|
|
37
|
+
displayName: 'Created On',
|
|
38
|
+
required: false,
|
|
39
|
+
description: 'Only get transcripts created on this date',
|
|
40
|
+
}),
|
|
41
|
+
before_id: pieces_framework_1.Property.ShortText({
|
|
42
|
+
displayName: 'Before ID',
|
|
43
|
+
required: false,
|
|
44
|
+
description: 'Get transcripts that were created before this transcript ID',
|
|
45
|
+
}),
|
|
46
|
+
after_id: pieces_framework_1.Property.ShortText({
|
|
47
|
+
displayName: 'After ID',
|
|
48
|
+
required: false,
|
|
49
|
+
description: 'Get transcripts that were created after this transcript ID',
|
|
50
|
+
}),
|
|
51
|
+
throttled_only: pieces_framework_1.Property.Checkbox({
|
|
52
|
+
displayName: 'Throttled Only',
|
|
53
|
+
required: false,
|
|
54
|
+
description: 'Only get throttled transcripts, overrides the status filter',
|
|
55
|
+
defaultValue: false,
|
|
56
|
+
}),
|
|
57
|
+
};
|
|
58
|
+
//# sourceMappingURL=props.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"props.js","sourceRoot":"","sources":["../../../../../../../../../packages/pieces/community/assemblyai/src/lib/generated/list-transcript/props.ts"],"names":[],"mappings":";;;AAAA,qEAA0D;AAC7C,QAAA,KAAK,GAAG;IACnB,KAAK,EAAE,2BAAQ,CAAC,MAAM,CAAC;QACrB,WAAW,EAAE,OAAO;QACpB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,2CAA2C;KACzD,CAAC;IACF,MAAM,EAAE,2BAAQ,CAAC,cAAc,CAAC;QAC9B,WAAW,EAAE,QAAQ;QACrB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6BAA6B;QAC1C,OAAO,EAAE;YACP,OAAO,EAAE;gBACP;oBACE,KAAK,EAAE,QAAQ;oBACf,KAAK,EAAE,QAAQ;iBAChB;gBACD;oBACE,KAAK,EAAE,YAAY;oBACnB,KAAK,EAAE,YAAY;iBACpB;gBACD;oBACE,KAAK,EAAE,WAAW;oBAClB,KAAK,EAAE,WAAW;iBACnB;gBACD;oBACE,KAAK,EAAE,OAAO;oBACd,KAAK,EAAE,OAAO;iBACf;aACF;SACF;KACF,CAAC;IACF,UAAU,EAAE,2BAAQ,CAAC,QAAQ,CAAC;QAC5B,WAAW,EAAE,YAAY;QACzB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,2CAA2C;KACzD,CAAC;IACF,SAAS,EAAE,2BAAQ,CAAC,SAAS,CAAC;QAC5B,WAAW,EAAE,WAAW;QACxB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6DAA6D;KAC3E,CAAC;IACF,QAAQ,EAAE,2BAAQ,CAAC,SAAS,CAAC;QAC3B,WAAW,EAAE,UAAU;QACvB,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,4DAA4D;KAC1E,CAAC;IACF,cAAc,EAAE,2BAAQ,CAAC,QAAQ,CAAC;QAChC,WAAW,EAAE,gBAAgB;QAC7B,QAAQ,EAAE,KAAK;QACf,WAAW,EAAE,6DAA6D;QAC1E,YAAY,EAAE,KAAK;KACpB,CAAC;CACH,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
export declare const props: {
|
|
2
|
+
audio_url: import("@activepieces/pieces-framework").ShortTextProperty<true>;
|
|
3
|
+
language_code: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
4
|
+
language_detection: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
5
|
+
language_confidence_threshold: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
6
|
+
speech_model: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
7
|
+
punctuate: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
8
|
+
format_text: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
9
|
+
disfluencies: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
10
|
+
dual_channel: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
11
|
+
webhook_url: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
12
|
+
webhook_auth_header_name: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
13
|
+
webhook_auth_header_value: import("@activepieces/pieces-framework").ShortTextProperty<false>;
|
|
14
|
+
auto_highlights: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
15
|
+
audio_start_from: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
16
|
+
audio_end_at: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
17
|
+
word_boost: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
18
|
+
boost_param: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
19
|
+
filter_profanity: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
20
|
+
redact_pii: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
21
|
+
redact_pii_audio: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
22
|
+
redact_pii_audio_quality: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
23
|
+
redact_pii_policies: import("@activepieces/pieces-framework").StaticMultiSelectDropdownProperty<string, false>;
|
|
24
|
+
redact_pii_sub: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
25
|
+
speaker_labels: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
26
|
+
speakers_expected: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
27
|
+
content_safety: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
28
|
+
content_safety_confidence: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
29
|
+
iab_categories: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
30
|
+
custom_spelling: import("@activepieces/pieces-framework").JsonProperty<false>;
|
|
31
|
+
sentiment_analysis: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
32
|
+
auto_chapters: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
33
|
+
entity_detection: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
34
|
+
speech_threshold: import("@activepieces/pieces-framework").NumberProperty<false>;
|
|
35
|
+
summarization: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
36
|
+
summary_model: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
37
|
+
summary_type: import("@activepieces/pieces-framework").StaticDropdownProperty<string, false>;
|
|
38
|
+
custom_topics: import("@activepieces/pieces-framework").CheckboxProperty<false>;
|
|
39
|
+
topics: import("@activepieces/pieces-framework").ArrayProperty<false>;
|
|
40
|
+
};
|