-
Notifications
You must be signed in to change notification settings - Fork 29
Expand file tree
/
Copy pathriviera.stone
More file actions
197 lines (168 loc) · 7.34 KB
/
Copy pathriviera.stone
File metadata and controls
197 lines (168 loc) · 7.34 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
namespace riviera
import async
import common
union ErrorCode
unknown_error
bad_request
"400"
api_error
"409"
access_error
"403"
ratelimit_error
"429"
unavailable
"503"
union TimestampLevel
unknown
sentence
word
struct MediaDurationError
limit Int32 = 0
union ContentApiV2Error
server_error String = ""
user_error String = ""
media_duration_error MediaDurationError
no_audio_error
link_download_disabled_error
shared_link_password_protected
limit_exceeded_error
struct GetTranscriptAsyncError
error_code ErrorCode = unknown_error
error_details ContentApiV2Error?
union FileIdOrUrl
file_id String = ""
url String = ""
path String = ""
struct GetTranscriptArgs
"Arguments for the asynchronous `get_transcript_async` route.
Exactly one of `file_id`, `path`, or `url` must be supplied via
`file_id_or_url` to identify the audio or video asset to transcribe."
file_id_or_url FileIdOrUrl?
"Identifier of the media asset to transcribe. Callers must set exactly
one of the oneof variants:
- file_id: a Dropbox-issued file id (format: \"id:<id>\") for a file the
authenticated user has access to.
- path: an absolute Dropbox path, e.g. \"/folder/recording.mp4\".
- url: either a Dropbox shared link (www.dropbox.com) or an external
HTTPS URL pointing to a supported audio/video file.
- Dropbox shared links are resolved internally using the caller's
authenticated identity and the link's visibility / download
settings. They therefore require an authenticated user context
(anonymous `url` requests against Dropbox links are rejected with
an `ACCESS_ERROR`). Links protected by a password are rejected
with `shared_link_password_protected`; links with downloads
disabled are rejected with `link_download_disabled_error`.
- External URLs are fetched over HTTPS through the backend's
egress proxy and must point at a supported audio/video file
extension.
The referenced asset must be an audio or video file in a supported
format; requests against files with no audio track return a
`no_audio_error`."
timestamp_level TimestampLevel = unknown
"Granularity of the time offsets returned for each transcript segment.
Defaults to `SENTENCE.
- SENTENCE: one segment per spoken sentence (recommended).
- WORD: one segment per word, useful for fine-grained alignment such
as captioning or highlight-as-you-listen experiences."
included_special_words String = ""
"Comma-delimited list of non-lexical filler words to preserve in the
transcript output, e.g. `\"uh, ah, uhm\"`. By default these fillers are
stripped. Unrecognized tokens are ignored. Leave empty to use the
default filtering behavior."
audio_language String = ""
"Optional BCP-47 language tag hinting the spoken language of the source
audio (e.g. \"en-US\", \"ja-JP\"). When empty, the service auto-detects the
language; supplying a hint improves accuracy and latency for short or
ambiguous clips. Unsupported languages fall back to auto-detection."
struct ApiTranscriptSegment
"Transcript segment for APIv2"
text String = ""
start_time Float64 = 0
end_time Float64 = 0
struct ApiStructuredTranscript
"Structured transcript for APIv2"
segments List(ApiTranscriptSegment)?
transcript_locale String = ""
struct GetTranscriptResult
structured_transcript ApiStructuredTranscript?
"The structured transcript produced for the requested media asset, with
per-segment text, start/end offsets (in seconds from the beginning of
the media), and the detected or caller-supplied locale."
union GetTranscriptAsyncCheckResult
"Result type for EventBus async check - must end in \"CheckResult\""
in_progress
complete GetTranscriptResult
failed GetTranscriptAsyncError
route get_transcript_async (GetTranscriptArgs, async.LaunchResultBase, Void)
"Asynchronous transcript generation for audio and video files."
attrs
auth = "app, user"
is_preview = true
scope = "files.content.read"
route get_transcript_async/check (async.PollArg, GetTranscriptAsyncCheckResult, async.PollError)
"Returns the status or result of specified get_transcript_async task."
attrs
auth = "app, user"
is_preview = true
scope = "files.content.read"
struct GetMarkdownArgs
"Arguments for the asynchronous `get_markdown_async` route.
Exactly one of `file_id`, `path`, or `url` must be supplied via
`file_id_or_url` to identify the document to convert to markdown."
file_id_or_url FileIdOrUrl?
"Identifier of the document to convert. Callers must set exactly one of
the oneof variants:
- file_id: a Dropbox-issued file id (format: \"id:<id>\") for a file the
authenticated user has access to.
- path: an absolute Dropbox path, e.g. \"/folder/report.docx\".
- url: either a Dropbox shared link (www.dropbox.com) or an external
HTTPS URL pointing to a supported document file.
- Dropbox shared links are resolved internally using the caller's
authenticated identity and the link's visibility / download
settings. They therefore require an authenticated user context
(anonymous `url` requests against Dropbox links are rejected with
an `ACCESS_ERROR`). Links protected by a password are rejected
with `shared_link_password_protected`; links with downloads
disabled are rejected with `link_download_disabled_error`.
- External URLs are fetched over HTTPS through the backend's
egress proxy and must point at a supported document file
extension.
The referenced file must be a document in a supported format;
requests against unsupported formats return `unsupported_format_error`."
enable_ocr Boolean = false
"Enable OCR for PDF documents. Processing is slower when enabled."
embed_images Boolean = false
"When true, embed images as base64 data URIs in the markdown output.
This can significantly increase output size."
struct GetMarkdownResult
markdown String = ""
"The converted markdown content"
union MarkdownConversionApiV2Error
server_error String = ""
user_error String = ""
unsupported_format_error
link_download_disabled_error
shared_link_password_protected
limit_exceeded_error
conversion_failure_error
struct GetMarkdownAsyncError
error_code ErrorCode = unknown_error
error_details MarkdownConversionApiV2Error?
union GetMarkdownAsyncCheckResult
"Result type for EventBus async check"
in_progress
complete GetMarkdownResult
failed GetMarkdownAsyncError
route get_markdown_async (GetMarkdownArgs, async.LaunchResultBase, Void)
"Asynchronous document-to-markdown conversion for supported file formats."
attrs
auth = "app, user"
is_preview = true
scope = "files.content.read"
route get_markdown_async/check (async.PollArg, GetMarkdownAsyncCheckResult, async.PollError)
"Returns the status or result of specified get_markdown_async task."
attrs
auth = "app, user"
is_preview = true
scope = "files.content.read"