@activepieces/piece-assemblyai 1.1.5 → 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.
Files changed (105) hide show
  1. package/package.json +7 -24
  2. package/src/index.js +51 -35
  3. package/src/index.d.ts +0 -2
  4. package/src/index.d.ts.map +0 -1
  5. package/src/index.js.map +0 -1
  6. package/src/lib/actions/custom-api-call.d.ts +0 -13
  7. package/src/lib/actions/custom-api-call.d.ts.map +0 -1
  8. package/src/lib/actions/custom-api-call.js +0 -16
  9. package/src/lib/actions/custom-api-call.js.map +0 -1
  10. package/src/lib/actions/files/index.d.ts +0 -2
  11. package/src/lib/actions/files/index.d.ts.map +0 -1
  12. package/src/lib/actions/files/index.js +0 -6
  13. package/src/lib/actions/files/index.js.map +0 -1
  14. package/src/lib/actions/files/upload.d.ts +0 -4
  15. package/src/lib/actions/files/upload.d.ts.map +0 -1
  16. package/src/lib/actions/files/upload.js +0 -29
  17. package/src/lib/actions/files/upload.js.map +0 -1
  18. package/src/lib/actions/index.d.ts +0 -5
  19. package/src/lib/actions/index.d.ts.map +0 -1
  20. package/src/lib/actions/index.js +0 -22
  21. package/src/lib/actions/index.js.map +0 -1
  22. package/src/lib/actions/lemur/get-lemur-response.d.ts +0 -4
  23. package/src/lib/actions/lemur/get-lemur-response.d.ts.map +0 -1
  24. package/src/lib/actions/lemur/get-lemur-response.js +0 -26
  25. package/src/lib/actions/lemur/get-lemur-response.js.map +0 -1
  26. package/src/lib/actions/lemur/index.d.ts +0 -4
  27. package/src/lib/actions/lemur/index.d.ts.map +0 -1
  28. package/src/lib/actions/lemur/index.js +0 -10
  29. package/src/lib/actions/lemur/index.js.map +0 -1
  30. package/src/lib/actions/lemur/lemur-task.d.ts +0 -10
  31. package/src/lib/actions/lemur/lemur-task.d.ts.map +0 -1
  32. package/src/lib/actions/lemur/lemur-task.js +0 -27
  33. package/src/lib/actions/lemur/lemur-task.js.map +0 -1
  34. package/src/lib/actions/lemur/purge-lemur-request-data.d.ts +0 -4
  35. package/src/lib/actions/lemur/purge-lemur-request-data.d.ts.map +0 -1
  36. package/src/lib/actions/lemur/purge-lemur-request-data.js +0 -27
  37. package/src/lib/actions/lemur/purge-lemur-request-data.js.map +0 -1
  38. package/src/lib/actions/lemur/shared-props.d.ts +0 -2
  39. package/src/lib/actions/lemur/shared-props.d.ts.map +0 -1
  40. package/src/lib/actions/lemur/shared-props.js +0 -10
  41. package/src/lib/actions/lemur/shared-props.js.map +0 -1
  42. package/src/lib/actions/transcripts/delete-transcript.d.ts +0 -4
  43. package/src/lib/actions/transcripts/delete-transcript.d.ts.map +0 -1
  44. package/src/lib/actions/transcripts/delete-transcript.js +0 -26
  45. package/src/lib/actions/transcripts/delete-transcript.js.map +0 -1
  46. package/src/lib/actions/transcripts/get-paragraphs.d.ts +0 -4
  47. package/src/lib/actions/transcripts/get-paragraphs.d.ts.map +0 -1
  48. package/src/lib/actions/transcripts/get-paragraphs.js +0 -26
  49. package/src/lib/actions/transcripts/get-paragraphs.js.map +0 -1
  50. package/src/lib/actions/transcripts/get-redacted-audio.d.ts +0 -6
  51. package/src/lib/actions/transcripts/get-redacted-audio.d.ts.map +0 -1
  52. package/src/lib/actions/transcripts/get-redacted-audio.js +0 -48
  53. package/src/lib/actions/transcripts/get-redacted-audio.js.map +0 -1
  54. package/src/lib/actions/transcripts/get-sentences.d.ts +0 -4
  55. package/src/lib/actions/transcripts/get-sentences.d.ts.map +0 -1
  56. package/src/lib/actions/transcripts/get-sentences.js +0 -26
  57. package/src/lib/actions/transcripts/get-sentences.js.map +0 -1
  58. package/src/lib/actions/transcripts/get-subtitles.d.ts +0 -6
  59. package/src/lib/actions/transcripts/get-subtitles.d.ts.map +0 -1
  60. package/src/lib/actions/transcripts/get-subtitles.js +0 -50
  61. package/src/lib/actions/transcripts/get-subtitles.js.map +0 -1
  62. package/src/lib/actions/transcripts/get-transcript.d.ts +0 -4
  63. package/src/lib/actions/transcripts/get-transcript.d.ts.map +0 -1
  64. package/src/lib/actions/transcripts/get-transcript.js +0 -26
  65. package/src/lib/actions/transcripts/get-transcript.js.map +0 -1
  66. package/src/lib/actions/transcripts/index.d.ts +0 -10
  67. package/src/lib/actions/transcripts/index.d.ts.map +0 -1
  68. package/src/lib/actions/transcripts/index.js +0 -22
  69. package/src/lib/actions/transcripts/index.js.map +0 -1
  70. package/src/lib/actions/transcripts/list-transcripts.d.ts +0 -9
  71. package/src/lib/actions/transcripts/list-transcripts.d.ts.map +0 -1
  72. package/src/lib/actions/transcripts/list-transcripts.js +0 -25
  73. package/src/lib/actions/transcripts/list-transcripts.js.map +0 -1
  74. package/src/lib/actions/transcripts/shared-props.d.ts +0 -2
  75. package/src/lib/actions/transcripts/shared-props.d.ts.map +0 -1
  76. package/src/lib/actions/transcripts/shared-props.js +0 -9
  77. package/src/lib/actions/transcripts/shared-props.js.map +0 -1
  78. package/src/lib/actions/transcripts/transcribe.d.ts +0 -43
  79. package/src/lib/actions/transcripts/transcribe.d.ts.map +0 -1
  80. package/src/lib/actions/transcripts/transcribe.js +0 -100
  81. package/src/lib/actions/transcripts/transcribe.js.map +0 -1
  82. package/src/lib/actions/transcripts/word-search.d.ts +0 -5
  83. package/src/lib/actions/transcripts/word-search.d.ts.map +0 -1
  84. package/src/lib/actions/transcripts/word-search.js +0 -32
  85. package/src/lib/actions/transcripts/word-search.js.map +0 -1
  86. package/src/lib/auth.d.ts +0 -2
  87. package/src/lib/auth.d.ts.map +0 -1
  88. package/src/lib/auth.js +0 -43
  89. package/src/lib/auth.js.map +0 -1
  90. package/src/lib/client.d.ts +0 -5
  91. package/src/lib/client.d.ts.map +0 -1
  92. package/src/lib/client.js +0 -25
  93. package/src/lib/client.js.map +0 -1
  94. package/src/lib/generated/lemur-task/props.d.ts +0 -10
  95. package/src/lib/generated/lemur-task/props.d.ts.map +0 -1
  96. package/src/lib/generated/lemur-task/props.js +0 -86
  97. package/src/lib/generated/lemur-task/props.js.map +0 -1
  98. package/src/lib/generated/list-transcript/props.d.ts +0 -9
  99. package/src/lib/generated/list-transcript/props.d.ts.map +0 -1
  100. package/src/lib/generated/list-transcript/props.js +0 -58
  101. package/src/lib/generated/list-transcript/props.js.map +0 -1
  102. package/src/lib/generated/transcribe/props.d.ts +0 -41
  103. package/src/lib/generated/transcribe/props.d.ts.map +0 -1
  104. package/src/lib/generated/transcribe/props.js +0 -898
  105. package/src/lib/generated/transcribe/props.js.map +0 -1
@@ -1,898 +0,0 @@
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
- audio_url: pieces_framework_1.Property.ShortText({
7
- displayName: 'Audio URL',
8
- required: true,
9
- description: 'The URL of the audio or video file to transcribe.',
10
- }),
11
- language_code: pieces_framework_1.Property.StaticDropdown({
12
- displayName: 'Language Code',
13
- required: false,
14
- description: `The language of your audio file. Possible values are found in [Supported Languages](https://www.assemblyai.com/docs/concepts/supported-languages).\nThe default value is 'en_us'.\n`,
15
- options: {
16
- options: [
17
- {
18
- label: 'English (Global)',
19
- value: 'en',
20
- },
21
- {
22
- label: 'English (Australian)',
23
- value: 'en_au',
24
- },
25
- {
26
- label: 'English (British)',
27
- value: 'en_uk',
28
- },
29
- {
30
- label: 'English (US)',
31
- value: 'en_us',
32
- },
33
- {
34
- label: 'Spanish',
35
- value: 'es',
36
- },
37
- {
38
- label: 'French',
39
- value: 'fr',
40
- },
41
- {
42
- label: 'German',
43
- value: 'de',
44
- },
45
- {
46
- label: 'Italian',
47
- value: 'it',
48
- },
49
- {
50
- label: 'Portuguese',
51
- value: 'pt',
52
- },
53
- {
54
- label: 'Dutch',
55
- value: 'nl',
56
- },
57
- {
58
- label: 'Afrikaans',
59
- value: 'af',
60
- },
61
- {
62
- label: 'Albanian',
63
- value: 'sq',
64
- },
65
- {
66
- label: 'Amharic',
67
- value: 'am',
68
- },
69
- {
70
- label: 'Arabic',
71
- value: 'ar',
72
- },
73
- {
74
- label: 'Armenian',
75
- value: 'hy',
76
- },
77
- {
78
- label: 'Assamese',
79
- value: 'as',
80
- },
81
- {
82
- label: 'Azerbaijani',
83
- value: 'az',
84
- },
85
- {
86
- label: 'Bashkir',
87
- value: 'ba',
88
- },
89
- {
90
- label: 'Basque',
91
- value: 'eu',
92
- },
93
- {
94
- label: 'Belarusian',
95
- value: 'be',
96
- },
97
- {
98
- label: 'Bengali',
99
- value: 'bn',
100
- },
101
- {
102
- label: 'Bosnian',
103
- value: 'bs',
104
- },
105
- {
106
- label: 'Breton',
107
- value: 'br',
108
- },
109
- {
110
- label: 'Bulgarian',
111
- value: 'bg',
112
- },
113
- {
114
- label: 'Burmese',
115
- value: 'my',
116
- },
117
- {
118
- label: 'Catalan',
119
- value: 'ca',
120
- },
121
- {
122
- label: 'Chinese',
123
- value: 'zh',
124
- },
125
- {
126
- label: 'Croatian',
127
- value: 'hr',
128
- },
129
- {
130
- label: 'Czech',
131
- value: 'cs',
132
- },
133
- {
134
- label: 'Danish',
135
- value: 'da',
136
- },
137
- {
138
- label: 'Estonian',
139
- value: 'et',
140
- },
141
- {
142
- label: 'Faroese',
143
- value: 'fo',
144
- },
145
- {
146
- label: 'Finnish',
147
- value: 'fi',
148
- },
149
- {
150
- label: 'Galician',
151
- value: 'gl',
152
- },
153
- {
154
- label: 'Georgian',
155
- value: 'ka',
156
- },
157
- {
158
- label: 'Greek',
159
- value: 'el',
160
- },
161
- {
162
- label: 'Gujarati',
163
- value: 'gu',
164
- },
165
- {
166
- label: 'Haitian',
167
- value: 'ht',
168
- },
169
- {
170
- label: 'Hausa',
171
- value: 'ha',
172
- },
173
- {
174
- label: 'Hawaiian',
175
- value: 'haw',
176
- },
177
- {
178
- label: 'Hebrew',
179
- value: 'he',
180
- },
181
- {
182
- label: 'Hindi',
183
- value: 'hi',
184
- },
185
- {
186
- label: 'Hungarian',
187
- value: 'hu',
188
- },
189
- {
190
- label: 'Icelandic',
191
- value: 'is',
192
- },
193
- {
194
- label: 'Indonesian',
195
- value: 'id',
196
- },
197
- {
198
- label: 'Japanese',
199
- value: 'ja',
200
- },
201
- {
202
- label: 'Javanese',
203
- value: 'jw',
204
- },
205
- {
206
- label: 'Kannada',
207
- value: 'kn',
208
- },
209
- {
210
- label: 'Kazakh',
211
- value: 'kk',
212
- },
213
- {
214
- label: 'Khmer',
215
- value: 'km',
216
- },
217
- {
218
- label: 'Korean',
219
- value: 'ko',
220
- },
221
- {
222
- label: 'Lao',
223
- value: 'lo',
224
- },
225
- {
226
- label: 'Latin',
227
- value: 'la',
228
- },
229
- {
230
- label: 'Latvian',
231
- value: 'lv',
232
- },
233
- {
234
- label: 'Lingala',
235
- value: 'ln',
236
- },
237
- {
238
- label: 'Lithuanian',
239
- value: 'lt',
240
- },
241
- {
242
- label: 'Luxembourgish',
243
- value: 'lb',
244
- },
245
- {
246
- label: 'Macedonian',
247
- value: 'mk',
248
- },
249
- {
250
- label: 'Malagasy',
251
- value: 'mg',
252
- },
253
- {
254
- label: 'Malay',
255
- value: 'ms',
256
- },
257
- {
258
- label: 'Malayalam',
259
- value: 'ml',
260
- },
261
- {
262
- label: 'Maltese',
263
- value: 'mt',
264
- },
265
- {
266
- label: 'Maori',
267
- value: 'mi',
268
- },
269
- {
270
- label: 'Marathi',
271
- value: 'mr',
272
- },
273
- {
274
- label: 'Mongolian',
275
- value: 'mn',
276
- },
277
- {
278
- label: 'Nepali',
279
- value: 'ne',
280
- },
281
- {
282
- label: 'Norwegian',
283
- value: 'no',
284
- },
285
- {
286
- label: 'Norwegian Nynorsk',
287
- value: 'nn',
288
- },
289
- {
290
- label: 'Occitan',
291
- value: 'oc',
292
- },
293
- {
294
- label: 'Panjabi',
295
- value: 'pa',
296
- },
297
- {
298
- label: 'Pashto',
299
- value: 'ps',
300
- },
301
- {
302
- label: 'Persian',
303
- value: 'fa',
304
- },
305
- {
306
- label: 'Polish',
307
- value: 'pl',
308
- },
309
- {
310
- label: 'Romanian',
311
- value: 'ro',
312
- },
313
- {
314
- label: 'Russian',
315
- value: 'ru',
316
- },
317
- {
318
- label: 'Sanskrit',
319
- value: 'sa',
320
- },
321
- {
322
- label: 'Serbian',
323
- value: 'sr',
324
- },
325
- {
326
- label: 'Shona',
327
- value: 'sn',
328
- },
329
- {
330
- label: 'Sindhi',
331
- value: 'sd',
332
- },
333
- {
334
- label: 'Sinhala',
335
- value: 'si',
336
- },
337
- {
338
- label: 'Slovak',
339
- value: 'sk',
340
- },
341
- {
342
- label: 'Slovenian',
343
- value: 'sl',
344
- },
345
- {
346
- label: 'Somali',
347
- value: 'so',
348
- },
349
- {
350
- label: 'Sundanese',
351
- value: 'su',
352
- },
353
- {
354
- label: 'Swahili',
355
- value: 'sw',
356
- },
357
- {
358
- label: 'Swedish',
359
- value: 'sv',
360
- },
361
- {
362
- label: 'Tagalog',
363
- value: 'tl',
364
- },
365
- {
366
- label: 'Tajik',
367
- value: 'tg',
368
- },
369
- {
370
- label: 'Tamil',
371
- value: 'ta',
372
- },
373
- {
374
- label: 'Tatar',
375
- value: 'tt',
376
- },
377
- {
378
- label: 'Telugu',
379
- value: 'te',
380
- },
381
- {
382
- label: 'Thai',
383
- value: 'th',
384
- },
385
- {
386
- label: 'Tibetan',
387
- value: 'bo',
388
- },
389
- {
390
- label: 'Turkish',
391
- value: 'tr',
392
- },
393
- {
394
- label: 'Turkmen',
395
- value: 'tk',
396
- },
397
- {
398
- label: 'Ukrainian',
399
- value: 'uk',
400
- },
401
- {
402
- label: 'Urdu',
403
- value: 'ur',
404
- },
405
- {
406
- label: 'Uzbek',
407
- value: 'uz',
408
- },
409
- {
410
- label: 'Vietnamese',
411
- value: 'vi',
412
- },
413
- {
414
- label: 'Welsh',
415
- value: 'cy',
416
- },
417
- {
418
- label: 'Yiddish',
419
- value: 'yi',
420
- },
421
- {
422
- label: 'Yoruba',
423
- value: 'yo',
424
- },
425
- ],
426
- },
427
- }),
428
- language_detection: pieces_framework_1.Property.Checkbox({
429
- displayName: 'Language Detection',
430
- required: false,
431
- description: `Enable [Automatic language detection](https://www.assemblyai.com/docs/models/speech-recognition#automatic-language-detection), either true or false.`,
432
- defaultValue: false,
433
- }),
434
- language_confidence_threshold: pieces_framework_1.Property.Number({
435
- displayName: 'Language Confidence Threshold',
436
- required: false,
437
- description: 'The confidence threshold for the automatically detected language.\nAn error will be returned if the language confidence is below this threshold.\nDefaults to 0.\n',
438
- }),
439
- speech_model: pieces_framework_1.Property.StaticDropdown({
440
- displayName: 'Speech Model',
441
- required: false,
442
- description: 'The speech model to use for the transcription. When `null`, the "best" model is used.',
443
- options: {
444
- options: [
445
- {
446
- label: 'Best',
447
- value: 'best',
448
- },
449
- {
450
- label: 'Nano',
451
- value: 'nano',
452
- },
453
- ],
454
- },
455
- }),
456
- punctuate: pieces_framework_1.Property.Checkbox({
457
- displayName: 'Punctuate',
458
- required: false,
459
- description: 'Enable Automatic Punctuation, can be true or false',
460
- defaultValue: true,
461
- }),
462
- format_text: pieces_framework_1.Property.Checkbox({
463
- displayName: 'Format Text',
464
- required: false,
465
- description: 'Enable Text Formatting, can be true or false',
466
- defaultValue: true,
467
- }),
468
- disfluencies: pieces_framework_1.Property.Checkbox({
469
- displayName: 'Disfluencies',
470
- required: false,
471
- description: 'Transcribe Filler Words, like "umm", in your media file; can be true or false',
472
- defaultValue: false,
473
- }),
474
- dual_channel: pieces_framework_1.Property.Checkbox({
475
- displayName: 'Dual Channel',
476
- required: false,
477
- description: `Enable [Dual Channel](https://www.assemblyai.com/docs/models/speech-recognition#dual-channel-transcription) transcription, can be true or false.`,
478
- defaultValue: false,
479
- }),
480
- webhook_url: pieces_framework_1.Property.ShortText({
481
- displayName: 'Webhook URL',
482
- required: false,
483
- description: 'The URL to which we send webhook requests.\nWe sends two different types of webhook requests.\nOne request when a transcript is completed or failed, and one request when the redacted audio is ready if redact_pii_audio is enabled.\n',
484
- }),
485
- webhook_auth_header_name: pieces_framework_1.Property.ShortText({
486
- displayName: 'Webhook Auth Header Name',
487
- required: false,
488
- description: 'The header name to be sent with the transcript completed or failed webhook requests',
489
- }),
490
- webhook_auth_header_value: pieces_framework_1.Property.ShortText({
491
- displayName: 'Webhook Auth Header Value',
492
- required: false,
493
- description: 'The header value to send back with the transcript completed or failed webhook requests for added security',
494
- }),
495
- auto_highlights: pieces_framework_1.Property.Checkbox({
496
- displayName: 'Key Phrases',
497
- required: false,
498
- description: 'Enable Key Phrases, either true or false',
499
- defaultValue: false,
500
- }),
501
- audio_start_from: pieces_framework_1.Property.Number({
502
- displayName: 'Audio Start From',
503
- required: false,
504
- description: 'The point in time, in milliseconds, to begin transcribing in your media file',
505
- }),
506
- audio_end_at: pieces_framework_1.Property.Number({
507
- displayName: 'Audio End At',
508
- required: false,
509
- description: 'The point in time, in milliseconds, to stop transcribing in your media file',
510
- }),
511
- word_boost: pieces_framework_1.Property.Array({
512
- displayName: 'Word Boost',
513
- required: false,
514
- description: 'The list of custom vocabulary to boost transcription probability for',
515
- }),
516
- boost_param: pieces_framework_1.Property.StaticDropdown({
517
- displayName: 'Word Boost Level',
518
- required: false,
519
- description: 'How much to boost specified words',
520
- options: {
521
- options: [
522
- {
523
- label: 'Low',
524
- value: 'low',
525
- },
526
- {
527
- label: 'Default',
528
- value: 'default',
529
- },
530
- {
531
- label: 'High',
532
- value: 'high',
533
- },
534
- ],
535
- },
536
- }),
537
- filter_profanity: pieces_framework_1.Property.Checkbox({
538
- displayName: 'Filter Profanity',
539
- required: false,
540
- description: 'Filter profanity from the transcribed text, can be true or false',
541
- defaultValue: false,
542
- }),
543
- redact_pii: pieces_framework_1.Property.Checkbox({
544
- displayName: 'Redact PII',
545
- required: false,
546
- description: 'Redact PII from the transcribed text using the Redact PII model, can be true or false',
547
- defaultValue: false,
548
- }),
549
- redact_pii_audio: pieces_framework_1.Property.Checkbox({
550
- displayName: 'Redact PII Audio',
551
- required: false,
552
- description: `Generate a copy of the original media file with spoken PII "beeped" out, can be true or false. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.`,
553
- defaultValue: false,
554
- }),
555
- redact_pii_audio_quality: pieces_framework_1.Property.StaticDropdown({
556
- displayName: 'Redact PII Audio Quality',
557
- required: false,
558
- description: `Controls the filetype of the audio created by redact_pii_audio. Currently supports mp3 (default) and wav. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.`,
559
- options: {
560
- options: [
561
- {
562
- label: 'MP3',
563
- value: 'mp3',
564
- },
565
- {
566
- label: 'WAV',
567
- value: 'wav',
568
- },
569
- ],
570
- },
571
- }),
572
- redact_pii_policies: pieces_framework_1.Property.StaticMultiSelectDropdown({
573
- displayName: 'Redact PII Policies',
574
- required: false,
575
- description: `The list of PII Redaction policies to enable. See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.`,
576
- options: {
577
- options: [
578
- {
579
- label: 'Account Number',
580
- value: 'account_number',
581
- },
582
- {
583
- label: 'Banking Information',
584
- value: 'banking_information',
585
- },
586
- {
587
- label: 'Blood Type',
588
- value: 'blood_type',
589
- },
590
- {
591
- label: 'Credit Card CVV',
592
- value: 'credit_card_cvv',
593
- },
594
- {
595
- label: 'Credit Card Expiration',
596
- value: 'credit_card_expiration',
597
- },
598
- {
599
- label: 'Credit Card Number',
600
- value: 'credit_card_number',
601
- },
602
- {
603
- label: 'Date',
604
- value: 'date',
605
- },
606
- {
607
- label: 'Date Interval',
608
- value: 'date_interval',
609
- },
610
- {
611
- label: 'Date of Birth',
612
- value: 'date_of_birth',
613
- },
614
- {
615
- label: "Driver's License",
616
- value: 'drivers_license',
617
- },
618
- {
619
- label: 'Drug',
620
- value: 'drug',
621
- },
622
- {
623
- label: 'Duration',
624
- value: 'duration',
625
- },
626
- {
627
- label: 'Email Address',
628
- value: 'email_address',
629
- },
630
- {
631
- label: 'Event',
632
- value: 'event',
633
- },
634
- {
635
- label: 'Filename',
636
- value: 'filename',
637
- },
638
- {
639
- label: 'Gender Sexuality',
640
- value: 'gender_sexuality',
641
- },
642
- {
643
- label: 'Healthcare Number',
644
- value: 'healthcare_number',
645
- },
646
- {
647
- label: 'Injury',
648
- value: 'injury',
649
- },
650
- {
651
- label: 'IP Address',
652
- value: 'ip_address',
653
- },
654
- {
655
- label: 'Language',
656
- value: 'language',
657
- },
658
- {
659
- label: 'Location',
660
- value: 'location',
661
- },
662
- {
663
- label: 'Marital Status',
664
- value: 'marital_status',
665
- },
666
- {
667
- label: 'Medical Condition',
668
- value: 'medical_condition',
669
- },
670
- {
671
- label: 'Medical Process',
672
- value: 'medical_process',
673
- },
674
- {
675
- label: 'Money Amount',
676
- value: 'money_amount',
677
- },
678
- {
679
- label: 'Nationality',
680
- value: 'nationality',
681
- },
682
- {
683
- label: 'Number Sequence',
684
- value: 'number_sequence',
685
- },
686
- {
687
- label: 'Occupation',
688
- value: 'occupation',
689
- },
690
- {
691
- label: 'Organization',
692
- value: 'organization',
693
- },
694
- {
695
- label: 'Passport Number',
696
- value: 'passport_number',
697
- },
698
- {
699
- label: 'Password',
700
- value: 'password',
701
- },
702
- {
703
- label: 'Person Age',
704
- value: 'person_age',
705
- },
706
- {
707
- label: 'Person Name',
708
- value: 'person_name',
709
- },
710
- {
711
- label: 'Phone Number',
712
- value: 'phone_number',
713
- },
714
- {
715
- label: 'Physical Attribute',
716
- value: 'physical_attribute',
717
- },
718
- {
719
- label: 'Political Affiliation',
720
- value: 'political_affiliation',
721
- },
722
- {
723
- label: 'Religion',
724
- value: 'religion',
725
- },
726
- {
727
- label: 'Statistics',
728
- value: 'statistics',
729
- },
730
- {
731
- label: 'Time',
732
- value: 'time',
733
- },
734
- {
735
- label: 'URL',
736
- value: 'url',
737
- },
738
- {
739
- label: 'US Social Security Number',
740
- value: 'us_social_security_number',
741
- },
742
- {
743
- label: 'Username',
744
- value: 'username',
745
- },
746
- {
747
- label: 'Vehicle ID',
748
- value: 'vehicle_id',
749
- },
750
- {
751
- label: 'Zodiac Sign',
752
- value: 'zodiac_sign',
753
- },
754
- ],
755
- },
756
- }),
757
- redact_pii_sub: pieces_framework_1.Property.StaticDropdown({
758
- displayName: 'Redact PII Substitution',
759
- required: false,
760
- description: `The replacement logic for detected PII, can be "entity_type" or "hash". See [PII redaction](https://www.assemblyai.com/docs/models/pii-redaction) for more details.`,
761
- options: {
762
- options: [
763
- {
764
- label: 'Entity Name',
765
- value: 'entity_name',
766
- },
767
- {
768
- label: 'Hash',
769
- value: 'hash',
770
- },
771
- ],
772
- },
773
- }),
774
- speaker_labels: pieces_framework_1.Property.Checkbox({
775
- displayName: 'Speaker Labels',
776
- required: false,
777
- description: `Enable [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization), can be true or false`,
778
- defaultValue: false,
779
- }),
780
- speakers_expected: pieces_framework_1.Property.Number({
781
- displayName: 'Speakers Expected',
782
- required: false,
783
- description: `Tells the speaker label model how many speakers it should attempt to identify, up to 10. See [Speaker diarization](https://www.assemblyai.com/docs/models/speaker-diarization) for more details.`,
784
- }),
785
- content_safety: pieces_framework_1.Property.Checkbox({
786
- displayName: 'Content Moderation',
787
- required: false,
788
- description: `Enable [Content Moderation](https://www.assemblyai.com/docs/models/content-moderation), can be true or false`,
789
- defaultValue: false,
790
- }),
791
- content_safety_confidence: pieces_framework_1.Property.Number({
792
- displayName: 'Content Moderation Confidence',
793
- required: false,
794
- description: 'The confidence threshold for the Content Moderation model. Values must be between 25 and 100.',
795
- }),
796
- iab_categories: pieces_framework_1.Property.Checkbox({
797
- displayName: 'Topic Detection',
798
- required: false,
799
- description: `Enable [Topic Detection](https://www.assemblyai.com/docs/models/topic-detection), can be true or false`,
800
- defaultValue: false,
801
- }),
802
- custom_spelling: pieces_framework_1.Property.Json({
803
- displayName: 'Custom Spellings',
804
- required: false,
805
- description: 'Customize how words are spelled and formatted using to and from values.\nUse a JSON array of objects of the following format:\n```\n[\n {\n "from": ["original", "spelling"],\n "to": "corrected"\n }\n]\n```\n',
806
- }),
807
- sentiment_analysis: pieces_framework_1.Property.Checkbox({
808
- displayName: 'Sentiment Analysis',
809
- required: false,
810
- description: `Enable [Sentiment Analysis](https://www.assemblyai.com/docs/models/sentiment-analysis), can be true or false`,
811
- defaultValue: false,
812
- }),
813
- auto_chapters: pieces_framework_1.Property.Checkbox({
814
- displayName: 'Auto Chapters',
815
- required: false,
816
- description: `Enable [Auto Chapters](https://www.assemblyai.com/docs/models/auto-chapters), can be true or false`,
817
- defaultValue: false,
818
- }),
819
- entity_detection: pieces_framework_1.Property.Checkbox({
820
- displayName: 'Entity Detection',
821
- required: false,
822
- description: `Enable [Entity Detection](https://www.assemblyai.com/docs/models/entity-detection), can be true or false`,
823
- defaultValue: false,
824
- }),
825
- speech_threshold: pieces_framework_1.Property.Number({
826
- displayName: 'Speech Threshold',
827
- required: false,
828
- description: 'Reject audio files that contain less than this fraction of speech.\nValid values are in the range [0, 1] inclusive.\n',
829
- }),
830
- summarization: pieces_framework_1.Property.Checkbox({
831
- displayName: 'Enable Summarization',
832
- required: false,
833
- description: `Enable [Summarization](https://www.assemblyai.com/docs/models/summarization), can be true or false`,
834
- defaultValue: false,
835
- }),
836
- summary_model: pieces_framework_1.Property.StaticDropdown({
837
- displayName: 'Summary Model',
838
- required: false,
839
- description: 'The model to summarize the transcript',
840
- options: {
841
- options: [
842
- {
843
- label: 'Informative',
844
- value: 'informative',
845
- },
846
- {
847
- label: 'Conversational',
848
- value: 'conversational',
849
- },
850
- {
851
- label: 'Catchy',
852
- value: 'catchy',
853
- },
854
- ],
855
- },
856
- }),
857
- summary_type: pieces_framework_1.Property.StaticDropdown({
858
- displayName: 'Summary Type',
859
- required: false,
860
- description: 'The type of summary',
861
- options: {
862
- options: [
863
- {
864
- label: 'Bullets',
865
- value: 'bullets',
866
- },
867
- {
868
- label: 'Bullets Verbose',
869
- value: 'bullets_verbose',
870
- },
871
- {
872
- label: 'Gist',
873
- value: 'gist',
874
- },
875
- {
876
- label: 'Headline',
877
- value: 'headline',
878
- },
879
- {
880
- label: 'Paragraph',
881
- value: 'paragraph',
882
- },
883
- ],
884
- },
885
- }),
886
- custom_topics: pieces_framework_1.Property.Checkbox({
887
- displayName: 'Enable Custom Topics',
888
- required: false,
889
- description: 'Enable custom topics, either true or false',
890
- defaultValue: false,
891
- }),
892
- topics: pieces_framework_1.Property.Array({
893
- displayName: 'Custom Topics',
894
- required: false,
895
- description: 'The list of custom topics',
896
- }),
897
- };
898
- //# sourceMappingURL=props.js.map