mirror of
https://github.com/danny-avila/LibreChat.git
synced 2026-03-01 05:40:17 +01:00
wip: shared links ttl prototype
This commit is contained in:
parent
8bdc808074
commit
3d05d22e90
12 changed files with 234 additions and 13 deletions
|
|
@ -45,8 +45,12 @@ export function getSharedLink(conversationId: string): Promise<t.TSharedLinkGetR
|
|||
export function createSharedLink(
|
||||
conversationId: string,
|
||||
targetMessageId?: string,
|
||||
expirationHours?: number,
|
||||
): Promise<t.TSharedLinkResponse> {
|
||||
return request.post(endpoints.createSharedLink(conversationId), { targetMessageId });
|
||||
return request.post(endpoints.createSharedLink(conversationId), {
|
||||
targetMessageId,
|
||||
expirationHours,
|
||||
});
|
||||
}
|
||||
|
||||
export function updateSharedLink(shareId: string): Promise<t.TSharedLinkResponse> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue