feat #14740: admin backend client and transcript upload text
recorder-core side of linking the app to the euvino admin backend: - backend: BackendClient (create a key with the admin's session cookie, check a key, upload a transcript; redirects never followed), German error messages, the login-window decision (LoginStep) and the upload flow with login, one retry after a refused key and no loop - call_view: the upload text (header + merged, renamed lines) and the upload fields on the call - store: schema v3 with crm_transcript_id and uploaded_at - settings: backend_url (validated https), the app-managed login fields, kept on edit and cleared when the backend URL changes - secrets: Service::Backend; http: per-request follow_redirects; FakeTransport can script transport errors Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -86,6 +86,7 @@ impl DeepScript {
|
||||
url: format!("{}/transcriptions/{remote_id}/status", self.base_url),
|
||||
headers: vec![self.auth_header()],
|
||||
body: HttpBody::Empty,
|
||||
follow_redirects: true,
|
||||
};
|
||||
let resp = match self.transport.send(req).await {
|
||||
Ok(resp) => resp,
|
||||
@@ -115,6 +116,7 @@ impl DeepScript {
|
||||
url: format!("{}/transcriptions/{remote_id}", self.base_url),
|
||||
headers: vec![self.auth_header()],
|
||||
body: HttpBody::Empty,
|
||||
follow_redirects: true,
|
||||
};
|
||||
let resp = self.send(req).await?;
|
||||
match resp.status {
|
||||
@@ -205,6 +207,7 @@ impl Transcriber for DeepScript {
|
||||
url: format!("{}/transcriptions", self.base_url),
|
||||
headers: vec![self.auth_header()],
|
||||
body: HttpBody::Multipart(parts),
|
||||
follow_redirects: true,
|
||||
};
|
||||
|
||||
let resp = self.send(req).await?;
|
||||
@@ -265,6 +268,7 @@ impl Transcriber for DeepScript {
|
||||
url: format!("{}/transcriptions/{remote_id}", self.base_url),
|
||||
headers: vec![self.auth_header()],
|
||||
body: HttpBody::Empty,
|
||||
follow_redirects: true,
|
||||
};
|
||||
let resp = self.send(req).await?;
|
||||
match resp.status {
|
||||
|
||||
Reference in New Issue
Block a user