@redseat/api 0.2.6 → 0.2.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.
- package/{agents.md → AGENTS.md} +275 -275
- package/CLAUDE.md +2 -0
- package/README.md +132 -132
- package/client.md +318 -318
- package/dist/interfaces.d.ts +9 -31
- package/dist/library.d.ts +3 -9
- package/dist/library.js +1 -10
- package/encryption.md +533 -533
- package/firebase.md +602 -602
- package/libraries.md +84 -0
- package/package.json +49 -49
- package/server.md +196 -196
- package/test.md +291 -291
package/dist/interfaces.d.ts
CHANGED
|
@@ -519,40 +519,18 @@ export interface RsRequest {
|
|
|
519
519
|
audio?: string[];
|
|
520
520
|
quality?: number;
|
|
521
521
|
ignoreOriginDuplicate: boolean;
|
|
522
|
-
}
|
|
523
|
-
export interface MediaDownloadUrl {
|
|
524
|
-
url: string;
|
|
525
|
-
parse: boolean;
|
|
526
|
-
uploadId?: string;
|
|
527
|
-
ignoreOriginDuplicate?: boolean;
|
|
528
|
-
kind?: FileTypes;
|
|
529
|
-
filename?: string;
|
|
530
|
-
mime?: string;
|
|
531
|
-
description?: string;
|
|
532
|
-
length?: number;
|
|
533
|
-
thumbnailUrl?: string;
|
|
534
|
-
peopleLookup?: string[];
|
|
535
|
-
seriesLookup?: string[];
|
|
536
522
|
tagsLookup?: string[];
|
|
537
|
-
|
|
538
|
-
|
|
523
|
+
peopleLookup?: string[];
|
|
524
|
+
albumsLookup?: string[];
|
|
525
|
+
thumbnailUrl?: string;
|
|
526
|
+
originUrl?: string;
|
|
527
|
+
title?: string;
|
|
528
|
+
kind?: FileTypes;
|
|
539
529
|
}
|
|
540
|
-
export interface
|
|
541
|
-
group
|
|
530
|
+
export interface RsGroupDownload {
|
|
531
|
+
group: boolean;
|
|
542
532
|
groupThumbnailUrl?: string;
|
|
543
533
|
groupFilename?: string;
|
|
544
534
|
groupMime?: string;
|
|
545
|
-
|
|
546
|
-
referer?: string;
|
|
547
|
-
headers?: string[];
|
|
548
|
-
cookies?: string[];
|
|
549
|
-
originUrl?: string;
|
|
550
|
-
title?: string;
|
|
551
|
-
ignoreOriginDuplicate?: boolean;
|
|
552
|
-
description?: string;
|
|
553
|
-
peopleLookup?: string[];
|
|
554
|
-
seriesLookup?: string[];
|
|
555
|
-
tagsLookup?: string[];
|
|
556
|
-
season?: number;
|
|
557
|
-
episode?: number;
|
|
535
|
+
requests: RsRequest[];
|
|
558
536
|
}
|
package/dist/library.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { IFile, ITag, IPerson, ISerie, IMovie, MediaRequest, IEpisode, ExternalImage, IBackupFile, ILibrary, SerieInMedia, DeletedQuery, RsDeleted, MovieSort, RsSort, SqlOrder, RsRequest, DetectedFaceResult, UnassignFaceResponse,
|
|
1
|
+
import { IFile, ITag, IPerson, ISerie, IMovie, MediaRequest, IEpisode, ExternalImage, IBackupFile, ILibrary, SerieInMedia, DeletedQuery, RsDeleted, MovieSort, RsSort, SqlOrder, RsRequest, DetectedFaceResult, UnassignFaceResponse, RsGroupDownload } from './interfaces.js';
|
|
2
2
|
import { EncryptFileOptions, EncryptedFile } from './encryption.js';
|
|
3
3
|
export interface MediaForUpdate {
|
|
4
4
|
name?: string;
|
|
@@ -331,19 +331,13 @@ export declare class LibraryApi {
|
|
|
331
331
|
thumbMime?: string;
|
|
332
332
|
progressCallback?: (loaded: number, total: number) => void;
|
|
333
333
|
}): Promise<IFile>;
|
|
334
|
-
/**
|
|
335
|
-
* Upload a media from a request (URL-based download)
|
|
336
|
-
* @param request - The request containing URL and metadata for the media to download
|
|
337
|
-
* @returns The created media file entry
|
|
338
|
-
*/
|
|
339
|
-
uploadRequest(request: RsRequest): Promise<IFile>;
|
|
340
334
|
/**
|
|
341
335
|
* Upload a group of media files from URLs
|
|
342
|
-
* @param download - The group download request containing
|
|
336
|
+
* @param download - The group download request containing requests array
|
|
343
337
|
* @param options - Optional settings (spawn: true to run in background)
|
|
344
338
|
* @returns Array of created media files when spawn=false, or { downloading: true } when spawn=true
|
|
345
339
|
*/
|
|
346
|
-
uploadGroup(download:
|
|
340
|
+
uploadGroup(download: RsGroupDownload, options?: {
|
|
347
341
|
spawn?: boolean;
|
|
348
342
|
}): Promise<IFile[] | {
|
|
349
343
|
downloading: boolean;
|
package/dist/library.js
CHANGED
|
@@ -824,18 +824,9 @@ export class LibraryApi {
|
|
|
824
824
|
const res = await this.client.postForm(this.getUrl('/medias'), formData, config);
|
|
825
825
|
return res.data;
|
|
826
826
|
}
|
|
827
|
-
/**
|
|
828
|
-
* Upload a media from a request (URL-based download)
|
|
829
|
-
* @param request - The request containing URL and metadata for the media to download
|
|
830
|
-
* @returns The created media file entry
|
|
831
|
-
*/
|
|
832
|
-
async uploadRequest(request) {
|
|
833
|
-
const res = await this.client.post(this.getUrl('/medias/request'), request);
|
|
834
|
-
return res.data;
|
|
835
|
-
}
|
|
836
827
|
/**
|
|
837
828
|
* Upload a group of media files from URLs
|
|
838
|
-
* @param download - The group download request containing
|
|
829
|
+
* @param download - The group download request containing requests array
|
|
839
830
|
* @param options - Optional settings (spawn: true to run in background)
|
|
840
831
|
* @returns Array of created media files when spawn=false, or { downloading: true } when spawn=true
|
|
841
832
|
*/
|