Spaces:
Paused
Paused
Upload folder using huggingface_hub (part 5)
Browse filesThis view is limited to 50 files because it contains too many changes. See raw diff
- node_modules/@huggingface/hub/dist/src/lib/repo-exists.spec.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/lib/snapshot-download.d.ts +23 -0
- node_modules/@huggingface/hub/dist/src/lib/snapshot-download.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/lib/snapshot-download.spec.d.ts +2 -0
- node_modules/@huggingface/hub/dist/src/lib/snapshot-download.spec.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/lib/space-info.d.ts +18 -0
- node_modules/@huggingface/hub/dist/src/lib/space-info.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/lib/space-info.spec.d.ts +2 -0
- node_modules/@huggingface/hub/dist/src/lib/space-info.spec.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/lib/upload-file.d.ts +20 -0
- node_modules/@huggingface/hub/dist/src/lib/upload-file.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/lib/upload-file.spec.d.ts +2 -0
- node_modules/@huggingface/hub/dist/src/lib/upload-file.spec.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/lib/upload-files-with-progress.d.ts +29 -0
- node_modules/@huggingface/hub/dist/src/lib/upload-files-with-progress.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/lib/upload-files-with-progress.spec.d.ts +2 -0
- node_modules/@huggingface/hub/dist/src/lib/upload-files-with-progress.spec.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/lib/upload-files.d.ts +21 -0
- node_modules/@huggingface/hub/dist/src/lib/upload-files.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/lib/upload-files.fs.spec.d.ts +2 -0
- node_modules/@huggingface/hub/dist/src/lib/upload-files.fs.spec.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/lib/upload-files.spec.d.ts +2 -0
- node_modules/@huggingface/hub/dist/src/lib/upload-files.spec.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/lib/who-am-i.d.ts +62 -0
- node_modules/@huggingface/hub/dist/src/lib/who-am-i.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/lib/who-am-i.spec.d.ts +2 -0
- node_modules/@huggingface/hub/dist/src/lib/who-am-i.spec.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/test/consts.d.ts +5 -0
- node_modules/@huggingface/hub/dist/src/test/consts.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-author.d.ts +25 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-author.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-collection.d.ts +169 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-collection.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-commit.d.ts +198 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-commit.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-create-collection.d.ts +20 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-create-collection.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-create-repo.d.ts +23 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-create-repo.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-dataset.d.ts +95 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-dataset.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-index-tree.d.ts +43 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-index-tree.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-jobs.d.ts +139 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-jobs.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-model.d.ts +276 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-model.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-space.d.ts +92 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-space.d.ts.map +1 -0
- node_modules/@huggingface/hub/dist/src/types/api/api-who-am-i.d.ts +47 -0
node_modules/@huggingface/hub/dist/src/lib/repo-exists.spec.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"repo-exists.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/repo-exists.spec.ts"],"names":[],"mappings":""}
|
node_modules/@huggingface/hub/dist/src/lib/snapshot-download.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { CredentialsParams, RepoDesignation } from "../types/public";
|
| 2 |
+
export declare const DEFAULT_REVISION = "main";
|
| 3 |
+
/**
|
| 4 |
+
* Downloads an entire repository at a given revision in the cache directory {@link getHFHubCachePath}.
|
| 5 |
+
* You can list all cached repositories using {@link scanCachedRepo}
|
| 6 |
+
* @remarks It uses internally {@link downloadFileToCacheDir}.
|
| 7 |
+
*/
|
| 8 |
+
export declare function snapshotDownload(params: {
|
| 9 |
+
repo: RepoDesignation;
|
| 10 |
+
cacheDir?: string;
|
| 11 |
+
/**
|
| 12 |
+
* An optional Git revision id which can be a branch name, a tag, or a commit hash.
|
| 13 |
+
*
|
| 14 |
+
* @default "main"
|
| 15 |
+
*/
|
| 16 |
+
revision?: string;
|
| 17 |
+
hubUrl?: string;
|
| 18 |
+
/**
|
| 19 |
+
* Custom fetch function to use instead of the default one, for example to use a proxy or edit headers.
|
| 20 |
+
*/
|
| 21 |
+
fetch?: typeof fetch;
|
| 22 |
+
} & Partial<CredentialsParams>): Promise<string>;
|
| 23 |
+
//# sourceMappingURL=snapshot-download.d.ts.map
|
node_modules/@huggingface/hub/dist/src/lib/snapshot-download.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"snapshot-download.d.ts","sourceRoot":"","sources":["../../../src/lib/snapshot-download.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,eAAe,EAAE,MAAM,iBAAiB,CAAC;AAW1E,eAAO,MAAM,gBAAgB,SAAS,CAAC;AAEvC;;;;GAIG;AACH,wBAAsB,gBAAgB,CACrC,MAAM,EAAE;IACP,IAAI,EAAE,eAAe,CAAC;IACtB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;;;OAIG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACrB,GAAG,OAAO,CAAC,iBAAiB,CAAC,GAC5B,OAAO,CAAC,MAAM,CAAC,CAyFjB"}
|
node_modules/@huggingface/hub/dist/src/lib/snapshot-download.spec.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export {};
|
| 2 |
+
//# sourceMappingURL=snapshot-download.spec.d.ts.map
|
node_modules/@huggingface/hub/dist/src/lib/snapshot-download.spec.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"snapshot-download.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/snapshot-download.spec.ts"],"names":[],"mappings":""}
|
node_modules/@huggingface/hub/dist/src/lib/space-info.d.ts
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { ApiSpaceInfo } from "../types/api/api-space";
|
| 2 |
+
import type { CredentialsParams } from "../types/public";
|
| 3 |
+
import type { SPACE_EXPANDABLE_KEYS, SpaceEntry } from "./list-spaces";
|
| 4 |
+
import { SPACE_EXPAND_KEYS } from "./list-spaces";
|
| 5 |
+
export declare function spaceInfo<const T extends Exclude<(typeof SPACE_EXPANDABLE_KEYS)[number], (typeof SPACE_EXPAND_KEYS)[number]> = never>(params: {
|
| 6 |
+
name: string;
|
| 7 |
+
hubUrl?: string;
|
| 8 |
+
additionalFields?: T[];
|
| 9 |
+
/**
|
| 10 |
+
* An optional Git revision id which can be a branch name, a tag, or a commit hash.
|
| 11 |
+
*/
|
| 12 |
+
revision?: string;
|
| 13 |
+
/**
|
| 14 |
+
* Custom fetch function to use instead of the default one, for example to use a proxy or edit headers.
|
| 15 |
+
*/
|
| 16 |
+
fetch?: typeof fetch;
|
| 17 |
+
} & Partial<CredentialsParams>): Promise<SpaceEntry & Pick<ApiSpaceInfo, T>>;
|
| 18 |
+
//# sourceMappingURL=space-info.d.ts.map
|
node_modules/@huggingface/hub/dist/src/lib/space-info.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"space-info.d.ts","sourceRoot":"","sources":["../../../src/lib/space-info.ts"],"names":[],"mappings":"AAEA,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,wBAAwB,CAAC;AAC3D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGzD,OAAO,KAAK,EAAE,qBAAqB,EAAE,UAAU,EAAE,MAAM,eAAe,CAAC;AACvE,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAElD,wBAAsB,SAAS,CAC9B,KAAK,CAAC,CAAC,SAAS,OAAO,CAAC,CAAC,OAAO,qBAAqB,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,OAAO,iBAAiB,CAAC,CAAC,MAAM,CAAC,CAAC,GAAG,KAAK,EAE3G,MAAM,EAAE;IACP,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,gBAAgB,CAAC,EAAE,CAAC,EAAE,CAAC;IACvB;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACrB,GAAG,OAAO,CAAC,iBAAiB,CAAC,GAC5B,OAAO,CAAC,UAAU,GAAG,IAAI,CAAC,YAAY,EAAE,CAAC,CAAC,CAAC,CAkC7C"}
|
node_modules/@huggingface/hub/dist/src/lib/space-info.spec.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export {};
|
| 2 |
+
//# sourceMappingURL=space-info.spec.d.ts.map
|
node_modules/@huggingface/hub/dist/src/lib/space-info.spec.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"space-info.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/space-info.spec.ts"],"names":[],"mappings":""}
|
node_modules/@huggingface/hub/dist/src/lib/upload-file.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { CredentialsParams } from "../types/public";
|
| 2 |
+
import type { CommitOutput, CommitParams, ContentSource } from "./commit";
|
| 3 |
+
export declare function uploadFile(params: {
|
| 4 |
+
repo: CommitParams["repo"];
|
| 5 |
+
file: URL | File | {
|
| 6 |
+
path: string;
|
| 7 |
+
content: ContentSource;
|
| 8 |
+
};
|
| 9 |
+
commitTitle?: CommitParams["title"];
|
| 10 |
+
commitDescription?: CommitParams["description"];
|
| 11 |
+
hubUrl?: CommitParams["hubUrl"];
|
| 12 |
+
branch?: CommitParams["branch"];
|
| 13 |
+
isPullRequest?: CommitParams["isPullRequest"];
|
| 14 |
+
parentCommit?: CommitParams["parentCommit"];
|
| 15 |
+
fetch?: CommitParams["fetch"];
|
| 16 |
+
useWebWorkers?: CommitParams["useWebWorkers"];
|
| 17 |
+
abortSignal?: CommitParams["abortSignal"];
|
| 18 |
+
useXet?: CommitParams["useXet"];
|
| 19 |
+
} & Partial<CredentialsParams>): Promise<CommitOutput | undefined>;
|
| 20 |
+
//# sourceMappingURL=upload-file.d.ts.map
|
node_modules/@huggingface/hub/dist/src/lib/upload-file.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"upload-file.d.ts","sourceRoot":"","sources":["../../../src/lib/upload-file.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG1E,wBAAgB,UAAU,CACzB,MAAM,EAAE;IACP,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC3B,IAAI,EAAE,GAAG,GAAG,IAAI,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,aAAa,CAAA;KAAE,CAAC;IAC5D,WAAW,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACpC,iBAAiB,CAAC,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IAChD,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChC,aAAa,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAC9B,aAAa,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAC9C,WAAW,CAAC,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;CAChC,GAAG,OAAO,CAAC,iBAAiB,CAAC,GAC5B,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CA6BnC"}
|
node_modules/@huggingface/hub/dist/src/lib/upload-file.spec.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export {};
|
| 2 |
+
//# sourceMappingURL=upload-file.spec.d.ts.map
|
node_modules/@huggingface/hub/dist/src/lib/upload-file.spec.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"upload-file.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/upload-file.spec.ts"],"names":[],"mappings":""}
|
node_modules/@huggingface/hub/dist/src/lib/upload-files-with-progress.d.ts
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { CredentialsParams } from "../types/public";
|
| 2 |
+
import type { CommitOutput, CommitParams, CommitProgressEvent, ContentSource } from "./commit";
|
| 3 |
+
/**
|
| 4 |
+
* Uploads with progress
|
| 5 |
+
*
|
| 6 |
+
* Needs XMLHttpRequest to be available for progress events for uploads on models, datasets and spaces.
|
| 7 |
+
* Set useWebWorkers to true in order to have progress events for hashing for models, datasets and spaces.
|
| 8 |
+
*/
|
| 9 |
+
export declare function uploadFilesWithProgress(params: {
|
| 10 |
+
repo: CommitParams["repo"];
|
| 11 |
+
files: Array<URL | File | {
|
| 12 |
+
path: string;
|
| 13 |
+
content: ContentSource;
|
| 14 |
+
}>;
|
| 15 |
+
commitTitle?: CommitParams["title"];
|
| 16 |
+
commitDescription?: CommitParams["description"];
|
| 17 |
+
hubUrl?: CommitParams["hubUrl"];
|
| 18 |
+
branch?: CommitParams["branch"];
|
| 19 |
+
isPullRequest?: CommitParams["isPullRequest"];
|
| 20 |
+
parentCommit?: CommitParams["parentCommit"];
|
| 21 |
+
abortSignal?: CommitParams["abortSignal"];
|
| 22 |
+
maxFolderDepth?: CommitParams["maxFolderDepth"];
|
| 23 |
+
useXet?: CommitParams["useXet"];
|
| 24 |
+
/**
|
| 25 |
+
* Set this to true in order to have progress events for hashing
|
| 26 |
+
*/
|
| 27 |
+
useWebWorkers?: CommitParams["useWebWorkers"];
|
| 28 |
+
} & Partial<CredentialsParams>): AsyncGenerator<CommitProgressEvent, CommitOutput | undefined>;
|
| 29 |
+
//# sourceMappingURL=upload-files-with-progress.d.ts.map
|
node_modules/@huggingface/hub/dist/src/lib/upload-files-with-progress.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"upload-files-with-progress.d.ts","sourceRoot":"","sources":["../../../src/lib/upload-files-with-progress.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAEzD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,mBAAmB,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAW/F;;;;;GAKG;AACH,wBAAuB,uBAAuB,CAC7C,MAAM,EAAE;IACP,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC3B,KAAK,EAAE,KAAK,CAAC,GAAG,GAAG,IAAI,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,aAAa,CAAA;KAAE,CAAC,CAAC;IACpE,WAAW,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACpC,iBAAiB,CAAC,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IAChD,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChC,aAAa,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;IAC5C,WAAW,CAAC,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IAC1C,cAAc,CAAC,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;IAChD,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChC;;OAEG;IACH,aAAa,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;CAC9C,GAAG,OAAO,CAAC,iBAAiB,CAAC,GAC5B,cAAc,CAAC,mBAAmB,EAAE,YAAY,GAAG,SAAS,CAAC,CAyH/D"}
|
node_modules/@huggingface/hub/dist/src/lib/upload-files-with-progress.spec.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export {};
|
| 2 |
+
//# sourceMappingURL=upload-files-with-progress.spec.d.ts.map
|
node_modules/@huggingface/hub/dist/src/lib/upload-files-with-progress.spec.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"upload-files-with-progress.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/upload-files-with-progress.spec.ts"],"names":[],"mappings":""}
|
node_modules/@huggingface/hub/dist/src/lib/upload-files.d.ts
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { CredentialsParams } from "../types/public";
|
| 2 |
+
import type { CommitOutput, CommitParams, ContentSource } from "./commit";
|
| 3 |
+
export declare function uploadFiles(params: {
|
| 4 |
+
repo: CommitParams["repo"];
|
| 5 |
+
files: Array<URL | File | {
|
| 6 |
+
path: string;
|
| 7 |
+
content: ContentSource;
|
| 8 |
+
}>;
|
| 9 |
+
commitTitle?: CommitParams["title"];
|
| 10 |
+
commitDescription?: CommitParams["description"];
|
| 11 |
+
hubUrl?: CommitParams["hubUrl"];
|
| 12 |
+
branch?: CommitParams["branch"];
|
| 13 |
+
isPullRequest?: CommitParams["isPullRequest"];
|
| 14 |
+
parentCommit?: CommitParams["parentCommit"];
|
| 15 |
+
fetch?: CommitParams["fetch"];
|
| 16 |
+
useWebWorkers?: CommitParams["useWebWorkers"];
|
| 17 |
+
maxFolderDepth?: CommitParams["maxFolderDepth"];
|
| 18 |
+
abortSignal?: CommitParams["abortSignal"];
|
| 19 |
+
useXet?: CommitParams["useXet"];
|
| 20 |
+
} & Partial<CredentialsParams>): Promise<CommitOutput | undefined>;
|
| 21 |
+
//# sourceMappingURL=upload-files.d.ts.map
|
node_modules/@huggingface/hub/dist/src/lib/upload-files.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"upload-files.d.ts","sourceRoot":"","sources":["../../../src/lib/upload-files.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AACzD,OAAO,KAAK,EAAE,YAAY,EAAE,YAAY,EAAE,aAAa,EAAE,MAAM,UAAU,CAAC;AAG1E,wBAAgB,WAAW,CAC1B,MAAM,EAAE;IACP,IAAI,EAAE,YAAY,CAAC,MAAM,CAAC,CAAC;IAC3B,KAAK,EAAE,KAAK,CAAC,GAAG,GAAG,IAAI,GAAG;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,aAAa,CAAA;KAAE,CAAC,CAAC;IACpE,WAAW,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IACpC,iBAAiB,CAAC,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IAChD,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChC,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;IAChC,aAAa,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAC9C,YAAY,CAAC,EAAE,YAAY,CAAC,cAAc,CAAC,CAAC;IAC5C,KAAK,CAAC,EAAE,YAAY,CAAC,OAAO,CAAC,CAAC;IAC9B,aAAa,CAAC,EAAE,YAAY,CAAC,eAAe,CAAC,CAAC;IAC9C,cAAc,CAAC,EAAE,YAAY,CAAC,gBAAgB,CAAC,CAAC;IAChD,WAAW,CAAC,EAAE,YAAY,CAAC,aAAa,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,YAAY,CAAC,QAAQ,CAAC,CAAC;CAChC,GAAG,OAAO,CAAC,iBAAiB,CAAC,GAC5B,OAAO,CAAC,YAAY,GAAG,SAAS,CAAC,CAoBnC"}
|
node_modules/@huggingface/hub/dist/src/lib/upload-files.fs.spec.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export {};
|
| 2 |
+
//# sourceMappingURL=upload-files.fs.spec.d.ts.map
|
node_modules/@huggingface/hub/dist/src/lib/upload-files.fs.spec.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"upload-files.fs.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/upload-files.fs.spec.ts"],"names":[],"mappings":""}
|
node_modules/@huggingface/hub/dist/src/lib/upload-files.spec.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export {};
|
| 2 |
+
//# sourceMappingURL=upload-files.spec.d.ts.map
|
node_modules/@huggingface/hub/dist/src/lib/upload-files.spec.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"upload-files.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/upload-files.spec.ts"],"names":[],"mappings":""}
|
node_modules/@huggingface/hub/dist/src/lib/who-am-i.d.ts
ADDED
|
@@ -0,0 +1,62 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { AccessTokenRole, AuthType, CredentialsParams } from "../types/public";
|
| 2 |
+
export interface WhoAmIUser {
|
| 3 |
+
/** Unique ID persistent across renames */
|
| 4 |
+
id: string;
|
| 5 |
+
type: "user";
|
| 6 |
+
email: string;
|
| 7 |
+
emailVerified: boolean;
|
| 8 |
+
isPro: boolean;
|
| 9 |
+
orgs: WhoAmIOrg[];
|
| 10 |
+
name: string;
|
| 11 |
+
fullname: string;
|
| 12 |
+
canPay: boolean;
|
| 13 |
+
avatarUrl: string;
|
| 14 |
+
/**
|
| 15 |
+
* Unix timestamp in seconds
|
| 16 |
+
*/
|
| 17 |
+
periodEnd: number | null;
|
| 18 |
+
billingMode: "postpaid" | "prepaid";
|
| 19 |
+
}
|
| 20 |
+
export interface WhoAmIOrg {
|
| 21 |
+
/** Unique ID persistent across renames */
|
| 22 |
+
id: string;
|
| 23 |
+
type: "org";
|
| 24 |
+
name: string;
|
| 25 |
+
fullname: string;
|
| 26 |
+
email: string | null;
|
| 27 |
+
canPay: boolean;
|
| 28 |
+
avatarUrl: string;
|
| 29 |
+
/**
|
| 30 |
+
* Unix timestamp in seconds
|
| 31 |
+
*/
|
| 32 |
+
periodEnd: number | null;
|
| 33 |
+
}
|
| 34 |
+
export interface WhoAmIApp {
|
| 35 |
+
id: string;
|
| 36 |
+
type: "app";
|
| 37 |
+
name: string;
|
| 38 |
+
scope?: {
|
| 39 |
+
entities: string[];
|
| 40 |
+
role: "admin" | "write" | "contributor" | "read";
|
| 41 |
+
};
|
| 42 |
+
}
|
| 43 |
+
export type WhoAmI = WhoAmIApp | WhoAmIOrg | WhoAmIUser;
|
| 44 |
+
export interface AuthInfo {
|
| 45 |
+
type: AuthType;
|
| 46 |
+
accessToken?: {
|
| 47 |
+
displayName: string;
|
| 48 |
+
role: AccessTokenRole;
|
| 49 |
+
createdAt: Date;
|
| 50 |
+
};
|
| 51 |
+
expiresAt?: Date;
|
| 52 |
+
}
|
| 53 |
+
export declare function whoAmI(params: {
|
| 54 |
+
hubUrl?: string;
|
| 55 |
+
/**
|
| 56 |
+
* Custom fetch function to use instead of the default one, for example to use a proxy or edit headers.
|
| 57 |
+
*/
|
| 58 |
+
fetch?: typeof fetch;
|
| 59 |
+
} & CredentialsParams): Promise<WhoAmI & {
|
| 60 |
+
auth: AuthInfo;
|
| 61 |
+
}>;
|
| 62 |
+
//# sourceMappingURL=who-am-i.d.ts.map
|
node_modules/@huggingface/hub/dist/src/lib/who-am-i.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"who-am-i.d.ts","sourceRoot":"","sources":["../../../src/lib/who-am-i.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,eAAe,EAAE,QAAQ,EAAE,iBAAiB,EAAE,MAAM,iBAAiB,CAAC;AAGpF,MAAM,WAAW,UAAU;IAC1B,0CAA0C;IAC1C,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,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AAM,CAC3B,MAAM,EAAE;IACP,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB;;OAEG;IACH,KAAK,CAAC,EAAE,OAAO,KAAK,CAAC;CACrB,GAAG,iBAAiB,GACnB,OAAO,CAAC,MAAM,GAAG;IAAE,IAAI,EAAE,QAAQ,CAAA;CAAE,CAAC,CAsBtC"}
|
node_modules/@huggingface/hub/dist/src/lib/who-am-i.spec.d.ts
ADDED
|
@@ -0,0 +1,2 @@
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export {};
|
| 2 |
+
//# sourceMappingURL=who-am-i.spec.d.ts.map
|
node_modules/@huggingface/hub/dist/src/lib/who-am-i.spec.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"who-am-i.spec.d.ts","sourceRoot":"","sources":["../../../src/lib/who-am-i.spec.ts"],"names":[],"mappings":""}
|
node_modules/@huggingface/hub/dist/src/test/consts.d.ts
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export declare const TEST_HUB_URL = "https://hub-ci.huggingface.co";
|
| 2 |
+
export declare const TEST_USER = "hub.js";
|
| 3 |
+
export declare const TEST_ACCESS_TOKEN = "hf_hub.js";
|
| 4 |
+
export declare const TEST_COOKIE = "huggingface-hub.js-cookie";
|
| 5 |
+
//# sourceMappingURL=consts.d.ts.map
|
node_modules/@huggingface/hub/dist/src/test/consts.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"consts.d.ts","sourceRoot":"","sources":["../../../src/test/consts.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY,kCAAkC,CAAC;AAC5D,eAAO,MAAM,SAAS,WAAW,CAAC;AAClC,eAAO,MAAM,iBAAiB,cAAc,CAAC;AAC7C,eAAO,MAAM,WAAW,8BAA8B,CAAC"}
|
node_modules/@huggingface/hub/dist/src/types/api/api-author.d.ts
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export type ApiAuthor = {
|
| 2 |
+
avatarUrl: string;
|
| 3 |
+
fullname: string;
|
| 4 |
+
name: string;
|
| 5 |
+
isHf: boolean;
|
| 6 |
+
isHfAdmin: boolean;
|
| 7 |
+
isMod: boolean;
|
| 8 |
+
followerCount?: number;
|
| 9 |
+
type: "org";
|
| 10 |
+
plan?: string;
|
| 11 |
+
isUserFollowing?: boolean;
|
| 12 |
+
} | {
|
| 13 |
+
avatarUrl: string;
|
| 14 |
+
fullname: string;
|
| 15 |
+
name: string;
|
| 16 |
+
isHf: boolean;
|
| 17 |
+
isHfAdmin: boolean;
|
| 18 |
+
isMod: boolean;
|
| 19 |
+
followerCount?: number;
|
| 20 |
+
type: "user";
|
| 21 |
+
isPro: boolean;
|
| 22 |
+
_id: string;
|
| 23 |
+
isUserFollowing?: boolean;
|
| 24 |
+
};
|
| 25 |
+
//# sourceMappingURL=api-author.d.ts.map
|
node_modules/@huggingface/hub/dist/src/types/api/api-author.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"api-author.d.ts","sourceRoot":"","sources":["../../../../src/types/api/api-author.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAClB;IACA,SAAS,EAAE,MAAM,CAAC;IAClB,QAAQ,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,OAAO,CAAC;IACd,SAAS,EAAE,OAAO,CAAC;IACnB,KAAK,EAAE,OAAO,CAAC;IACf,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,IAAI,EAAE,KAAK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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { ApiAuthor } from "./api-author";
|
| 2 |
+
export interface ApiCollectionInfo {
|
| 3 |
+
slug: string;
|
| 4 |
+
title: string;
|
| 5 |
+
description?: string;
|
| 6 |
+
lastUpdated: string;
|
| 7 |
+
gating: true | (false | {
|
| 8 |
+
mode: "auto";
|
| 9 |
+
} | {
|
| 10 |
+
mode: "manual";
|
| 11 |
+
notifications: {
|
| 12 |
+
mode: "bulk" | "real-time";
|
| 13 |
+
email?: string;
|
| 14 |
+
};
|
| 15 |
+
});
|
| 16 |
+
owner: ApiAuthor;
|
| 17 |
+
/**
|
| 18 |
+
* Note that it's limited to 4 items when the listing endpoint is used.
|
| 19 |
+
*/
|
| 20 |
+
items: ApiCollectionItem[];
|
| 21 |
+
theme: "orange" | "blue" | "green" | "purple" | "pink" | "indigo";
|
| 22 |
+
private: boolean;
|
| 23 |
+
upvotes: number;
|
| 24 |
+
isUpvotedByUser: boolean;
|
| 25 |
+
}
|
| 26 |
+
interface ApiCollectionItemBase {
|
| 27 |
+
_id: string;
|
| 28 |
+
position: number;
|
| 29 |
+
note?: {
|
| 30 |
+
html: string;
|
| 31 |
+
text: string;
|
| 32 |
+
};
|
| 33 |
+
gallery?: string[];
|
| 34 |
+
}
|
| 35 |
+
interface ApiCollectionItemModel extends ApiCollectionItemBase {
|
| 36 |
+
type: "model";
|
| 37 |
+
author: string;
|
| 38 |
+
downloads: number;
|
| 39 |
+
id: string;
|
| 40 |
+
availableInferenceProviders: {
|
| 41 |
+
provider: "black-forest-labs" | "cerebras" | "cohere" | "fal-ai" | "featherless-ai" | "fireworks-ai" | "groq" | "hf-inference" | "hyperbolic" | "nebius" | "novita" | "nscale" | "openai" | "ovhcloud" | "replicate" | "sambanova" | "together";
|
| 42 |
+
providerStatus: "live" | "staging" | "error";
|
| 43 |
+
modelStatus: "live" | "staging" | "error";
|
| 44 |
+
providerId: string;
|
| 45 |
+
task: "text-classification" | "token-classification" | "table-question-answering" | "question-answering" | "zero-shot-classification" | "translation" | "summarization" | "feature-extraction" | "text-generation" | "text2text-generation" | "fill-mask" | "sentence-similarity" | "text-to-speech" | "text-to-audio" | "automatic-speech-recognition" | "audio-to-audio" | "audio-classification" | "audio-text-to-text" | "voice-activity-detection" | "depth-estimation" | "image-classification" | "object-detection" | "image-segmentation" | "text-to-image" | "image-to-text" | "image-to-image" | "image-to-video" | "unconditional-image-generation" | "video-classification" | "reinforcement-learning" | "robotics" | "tabular-classification" | "tabular-regression" | "tabular-to-text" | "table-to-text" | "multiple-choice" | "text-ranking" | "text-retrieval" | "time-series-forecasting" | "text-to-video" | "image-text-to-text" | "visual-question-answering" | "document-question-answering" | "zero-shot-image-classification" | "graph-ml" | "mask-generation" | "zero-shot-object-detection" | "text-to-3d" | "image-to-3d" | "image-feature-extraction" | "video-text-to-text" | "keypoint-detection" | "visual-document-retrieval" | "any-to-any" | "video-to-video" | "other" | "conversational";
|
| 46 |
+
adapterType?: "lora";
|
| 47 |
+
adapterWeightsPath?: string;
|
| 48 |
+
}[];
|
| 49 |
+
isLikedByUser: boolean;
|
| 50 |
+
lastModified: string;
|
| 51 |
+
likes: number;
|
| 52 |
+
pipeline_tag?: string;
|
| 53 |
+
private: boolean;
|
| 54 |
+
repoType: "model";
|
| 55 |
+
gated: false | ("auto" | "manual");
|
| 56 |
+
resourceGroup?: {
|
| 57 |
+
id: string;
|
| 58 |
+
name: string;
|
| 59 |
+
numUsers: number;
|
| 60 |
+
};
|
| 61 |
+
numParameters?: number;
|
| 62 |
+
authorData?: ApiAuthor;
|
| 63 |
+
widgetOutputUrls?: string[];
|
| 64 |
+
}
|
| 65 |
+
interface ApiCollectionItemDataset extends ApiCollectionItemBase {
|
| 66 |
+
type: "dataset";
|
| 67 |
+
author: string;
|
| 68 |
+
id: string;
|
| 69 |
+
isLikedByUser: boolean;
|
| 70 |
+
likes: number;
|
| 71 |
+
datasetsServerInfo?: {
|
| 72 |
+
viewer: "preview" | "viewer-partial" | "viewer";
|
| 73 |
+
numRows: number | null;
|
| 74 |
+
libraries: ("mlcroissant" | "webdataset" | "datasets" | "pandas" | "dask" | "distilabel" | "fiftyone" | "argilla" | "polars" | "duckdb")[];
|
| 75 |
+
formats: ("json" | "csv" | "parquet" | "imagefolder" | "audiofolder" | "webdataset" | "text" | "arrow")[];
|
| 76 |
+
modalities: ("3d" | "audio" | "document" | "geospatial" | "image" | "tabular" | "text" | "timeseries" | "video")[];
|
| 77 |
+
};
|
| 78 |
+
private: boolean;
|
| 79 |
+
repoType: "dataset";
|
| 80 |
+
downloads: number;
|
| 81 |
+
gated: false | ("auto" | "manual");
|
| 82 |
+
lastModified: string;
|
| 83 |
+
resourceGroup?: {
|
| 84 |
+
id: string;
|
| 85 |
+
name: string;
|
| 86 |
+
numUsers: number;
|
| 87 |
+
};
|
| 88 |
+
}
|
| 89 |
+
interface ApiCollectionItemSpace extends ApiCollectionItemBase {
|
| 90 |
+
type: "space";
|
| 91 |
+
author: string;
|
| 92 |
+
colorFrom: string;
|
| 93 |
+
colorTo: string;
|
| 94 |
+
createdAt: string;
|
| 95 |
+
emoji: string;
|
| 96 |
+
id: string;
|
| 97 |
+
isLikedByUser: boolean;
|
| 98 |
+
lastModified: string;
|
| 99 |
+
likes: number;
|
| 100 |
+
pinned: boolean;
|
| 101 |
+
private: boolean;
|
| 102 |
+
featured: boolean;
|
| 103 |
+
repoType: "space";
|
| 104 |
+
title: string;
|
| 105 |
+
sdk?: "gradio" | "docker" | "static" | "streamlit";
|
| 106 |
+
runtime: {
|
| 107 |
+
stage: "NO_APP_FILE" | "CONFIG_ERROR" | "BUILDING" | "BUILD_ERROR" | "APP_STARTING" | "RUNNING" | "RUNNING_BUILDING" | "RUNNING_APP_STARTING" | "RUNTIME_ERROR" | "DELETING" | "STOPPED" | "PAUSED" | "SLEEPING";
|
| 108 |
+
hardware: {
|
| 109 |
+
current: ("cpu-basic" | "cpu-upgrade" | "cpu-performance" | "cpu-xl" | "zero-a10g" | "t4-small" | "t4-medium" | "l4x1" | "l4x4" | "l40sx1" | "l40sx4" | "l40sx8" | "a10g-small" | "a10g-large" | "a10g-largex2" | "a10g-largex4" | "a100-large" | "h100" | "h100x8") | null;
|
| 110 |
+
requested: ("cpu-basic" | "cpu-upgrade" | "cpu-performance" | "cpu-xl" | "zero-a10g" | "t4-small" | "t4-medium" | "l4x1" | "l4x4" | "l40sx1" | "l40sx4" | "l40sx8" | "a10g-small" | "a10g-large" | "a10g-largex2" | "a10g-largex4" | "a100-large" | "h100" | "h100x8") | null;
|
| 111 |
+
};
|
| 112 |
+
storage: ("small" | "medium" | "large") | null;
|
| 113 |
+
errorMessage?: string;
|
| 114 |
+
gcTimeout?: number | null;
|
| 115 |
+
replicas: {
|
| 116 |
+
current?: number | null;
|
| 117 |
+
requested: number | "auto";
|
| 118 |
+
};
|
| 119 |
+
devMode?: boolean;
|
| 120 |
+
domains?: {
|
| 121 |
+
domain: string;
|
| 122 |
+
isCustom?: boolean | null;
|
| 123 |
+
stage: "READY" | "PENDING";
|
| 124 |
+
}[];
|
| 125 |
+
sha?: string;
|
| 126 |
+
};
|
| 127 |
+
originSpace?: {
|
| 128 |
+
author: ApiAuthor;
|
| 129 |
+
name: string;
|
| 130 |
+
};
|
| 131 |
+
ai_short_description?: string;
|
| 132 |
+
ai_category?: string;
|
| 133 |
+
trendingScore?: number;
|
| 134 |
+
resourceGroup?: {
|
| 135 |
+
id: string;
|
| 136 |
+
name: string;
|
| 137 |
+
numUsers: number;
|
| 138 |
+
};
|
| 139 |
+
tags: string[];
|
| 140 |
+
authorData?: ApiAuthor;
|
| 141 |
+
shortDescription?: string;
|
| 142 |
+
semanticRelevancyScore?: number;
|
| 143 |
+
}
|
| 144 |
+
interface ApiCollectionItemPaper extends ApiCollectionItemBase {
|
| 145 |
+
type: "paper";
|
| 146 |
+
id: string;
|
| 147 |
+
title: string;
|
| 148 |
+
upvotes: number;
|
| 149 |
+
publishedAt: string;
|
| 150 |
+
thumbnailUrl?: string;
|
| 151 |
+
isUpvotedByUser?: boolean;
|
| 152 |
+
}
|
| 153 |
+
interface ApiCollectionItemCollection extends ApiCollectionItemBase {
|
| 154 |
+
type: "collection";
|
| 155 |
+
slug: string;
|
| 156 |
+
lastUpdated: string;
|
| 157 |
+
description?: string;
|
| 158 |
+
owner: ApiAuthor;
|
| 159 |
+
title: string;
|
| 160 |
+
theme: "orange" | "blue" | "green" | "purple" | "pink" | "indigo";
|
| 161 |
+
upvotes: number;
|
| 162 |
+
isUpvotedByUser: boolean;
|
| 163 |
+
id: string;
|
| 164 |
+
numberItems: number;
|
| 165 |
+
shareUrl: string;
|
| 166 |
+
}
|
| 167 |
+
type ApiCollectionItem = ApiCollectionItemModel | ApiCollectionItemDataset | ApiCollectionItemSpace | ApiCollectionItemPaper | ApiCollectionItemCollection;
|
| 168 |
+
export {};
|
| 169 |
+
//# sourceMappingURL=api-collection.d.ts.map
|
node_modules/@huggingface/hub/dist/src/types/api/api-collection.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"api-collection.d.ts","sourceRoot":"","sources":["../../../../src/types/api/api-collection.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAA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Transfer>;
|
| 4 |
+
/**
|
| 5 |
+
* Optional object describing the server ref that the objects belong to. Note: Added in v2.4.
|
| 6 |
+
*
|
| 7 |
+
* We use this object for QOL and to fail early for users when they're trying to push to the wrong reference.
|
| 8 |
+
* But it does nothing for security.
|
| 9 |
+
*/
|
| 10 |
+
ref?: {
|
| 11 |
+
name: string;
|
| 12 |
+
} | null;
|
| 13 |
+
objects: {
|
| 14 |
+
oid: string;
|
| 15 |
+
/**
|
| 16 |
+
* Integer byte size of the LFS object. Must be at least zero.
|
| 17 |
+
*/
|
| 18 |
+
size: number;
|
| 19 |
+
}[];
|
| 20 |
+
/**
|
| 21 |
+
* The hash algorithm used to name Git LFS objects. Optional; defaults to sha256 if not specified.
|
| 22 |
+
* */
|
| 23 |
+
hash_algo?: string;
|
| 24 |
+
}
|
| 25 |
+
export interface ApiLfsBatchResponse {
|
| 26 |
+
transfer?: ApiLfsResponseTransfer;
|
| 27 |
+
objects: ApiLfsResponseObject[];
|
| 28 |
+
}
|
| 29 |
+
export type ApiLfsResponseTransfer = "basic" | "multipart" | "xet";
|
| 30 |
+
export interface ApiLfsCompleteMultipartRequest {
|
| 31 |
+
oid: string;
|
| 32 |
+
parts: {
|
| 33 |
+
etag: string;
|
| 34 |
+
partNumber: number;
|
| 35 |
+
}[];
|
| 36 |
+
}
|
| 37 |
+
export interface ApiLfsResponseObject {
|
| 38 |
+
/**
|
| 39 |
+
* Optional boolean specifying whether the request
|
| 40 |
+
* for this specific object is authenticated.
|
| 41 |
+
* If omitted or false, Git LFS will attempt to find credentials for this URL.
|
| 42 |
+
*/
|
| 43 |
+
authenticated?: boolean;
|
| 44 |
+
oid: string;
|
| 45 |
+
/**
|
| 46 |
+
* Integer byte size of the LFS object. Must be at least zero.
|
| 47 |
+
*/
|
| 48 |
+
size: number;
|
| 49 |
+
/**
|
| 50 |
+
* Applicable actions depend on which `operation` is specified in the request.
|
| 51 |
+
* How these properties are interpreted depends on which transfer adapter
|
| 52 |
+
* the client will be using.
|
| 53 |
+
*/
|
| 54 |
+
actions?: {
|
| 55 |
+
/**
|
| 56 |
+
* Download operations MUST specify a download action,
|
| 57 |
+
* or an object error if the object cannot be downloaded for some reason
|
| 58 |
+
*/
|
| 59 |
+
download?: ApiLfsAction;
|
| 60 |
+
/**
|
| 61 |
+
* Upload operations can specify an upload and a verify action.
|
| 62 |
+
* The upload action describes how to upload the object.
|
| 63 |
+
*/
|
| 64 |
+
upload?: ApiLfsAction;
|
| 65 |
+
/**
|
| 66 |
+
* The LFS client will hit this URL after a successful upload.
|
| 67 |
+
* Servers can use this for extra verification, if needed.
|
| 68 |
+
*/
|
| 69 |
+
verify?: ApiLfsAction;
|
| 70 |
+
};
|
| 71 |
+
/**
|
| 72 |
+
* If there are problems accessing individual objects, servers should continue
|
| 73 |
+
* to return a 200 status code, and provide per-object errors
|
| 74 |
+
*/
|
| 75 |
+
error?: {
|
| 76 |
+
code: number;
|
| 77 |
+
message: string;
|
| 78 |
+
};
|
| 79 |
+
}
|
| 80 |
+
export interface ApiLfsAction {
|
| 81 |
+
href: string;
|
| 82 |
+
/**
|
| 83 |
+
* Optional hash of String HTTP header key/value pairs to apply to the request
|
| 84 |
+
*/
|
| 85 |
+
header?: {
|
| 86 |
+
[key: string]: string;
|
| 87 |
+
} & {
|
| 88 |
+
chunk_size?: string;
|
| 89 |
+
};
|
| 90 |
+
/**
|
| 91 |
+
* Whole number of seconds after local client time when transfer will expire.
|
| 92 |
+
* Preferred over `expires_at` if both are provided.
|
| 93 |
+
* Maximum of 2147483647, minimum of -2147483647.
|
| 94 |
+
*/
|
| 95 |
+
expires_in?: number;
|
| 96 |
+
/**
|
| 97 |
+
* String uppercase RFC 3339-formatted timestamp with second precision
|
| 98 |
+
* for when the given action expires (usually due to a temporary token).
|
| 99 |
+
*/
|
| 100 |
+
expires_at?: string;
|
| 101 |
+
}
|
| 102 |
+
export interface ApiPreuploadRequest {
|
| 103 |
+
/**
|
| 104 |
+
* Optional, otherwise takes the existing content of `.gitattributes` for the revision.
|
| 105 |
+
*
|
| 106 |
+
* Provide this parameter if you plan to modify `.gitattributes` yourself at the same
|
| 107 |
+
* time as uploading LFS files.
|
| 108 |
+
*
|
| 109 |
+
* Note that this is not needed if you solely rely on automatic LFS detection from HF: the commit endpoint
|
| 110 |
+
* will automatically edit the `.gitattributes` file to track the files passed to its `lfsFiles` param.
|
| 111 |
+
*/
|
| 112 |
+
gitAttributes?: string;
|
| 113 |
+
files: Array<{
|
| 114 |
+
/**
|
| 115 |
+
* Path of the LFS file
|
| 116 |
+
*/
|
| 117 |
+
path: string;
|
| 118 |
+
/**
|
| 119 |
+
* Full size of the LFS file
|
| 120 |
+
*/
|
| 121 |
+
size: number;
|
| 122 |
+
/**
|
| 123 |
+
* Base64-encoded sample of the first 512 bytes of the file
|
| 124 |
+
*/
|
| 125 |
+
sample: string;
|
| 126 |
+
}>;
|
| 127 |
+
}
|
| 128 |
+
export interface ApiBucketBatchResponse {
|
| 129 |
+
/** True if all files were successfully added */
|
| 130 |
+
success: boolean;
|
| 131 |
+
/** Total number of operations attempted */
|
| 132 |
+
processed: number;
|
| 133 |
+
/** Number of successful operations */
|
| 134 |
+
succeeded: number;
|
| 135 |
+
/** List of failed operations */
|
| 136 |
+
failed: Array<{
|
| 137 |
+
path: string;
|
| 138 |
+
error: string;
|
| 139 |
+
}>;
|
| 140 |
+
}
|
| 141 |
+
export interface ApiPreuploadResponse {
|
| 142 |
+
files: Array<{
|
| 143 |
+
path: string;
|
| 144 |
+
uploadMode: "lfs" | "regular";
|
| 145 |
+
}>;
|
| 146 |
+
}
|
| 147 |
+
export interface ApiCommitHeader {
|
| 148 |
+
summary: string;
|
| 149 |
+
description?: string;
|
| 150 |
+
/**
|
| 151 |
+
* Parent commit. Optional
|
| 152 |
+
*
|
| 153 |
+
* - When opening a PR: will use parentCommit as the parent commit
|
| 154 |
+
* - When committing on a branch: Will make sure that there were no intermediate commits
|
| 155 |
+
*/
|
| 156 |
+
parentCommit?: string;
|
| 157 |
+
}
|
| 158 |
+
export interface ApiCommitDeletedEntry {
|
| 159 |
+
path: string;
|
| 160 |
+
}
|
| 161 |
+
export interface ApiCommitLfsFile {
|
| 162 |
+
path: string;
|
| 163 |
+
oldPath?: string;
|
| 164 |
+
/** Required if {@link oldPath} is not set */
|
| 165 |
+
algo?: "sha256";
|
| 166 |
+
/** Required if {@link oldPath} is not set */
|
| 167 |
+
oid?: string;
|
| 168 |
+
size?: number;
|
| 169 |
+
}
|
| 170 |
+
export interface ApiCommitFile {
|
| 171 |
+
/** Required if {@link oldPath} is not set */
|
| 172 |
+
content?: string;
|
| 173 |
+
path: string;
|
| 174 |
+
oldPath?: string;
|
| 175 |
+
encoding?: "utf-8" | "base64";
|
| 176 |
+
}
|
| 177 |
+
export type ApiCommitOperation = {
|
| 178 |
+
key: "file";
|
| 179 |
+
value: ApiCommitFile;
|
| 180 |
+
} | {
|
| 181 |
+
key: "lfsFile";
|
| 182 |
+
value: ApiCommitLfsFile;
|
| 183 |
+
} | {
|
| 184 |
+
key: "deletedFile";
|
| 185 |
+
value: ApiCommitDeletedEntry;
|
| 186 |
+
};
|
| 187 |
+
export interface ApiCommitData {
|
| 188 |
+
id: string;
|
| 189 |
+
title: string;
|
| 190 |
+
message: string;
|
| 191 |
+
authors: Array<{
|
| 192 |
+
user: string;
|
| 193 |
+
avatar: string;
|
| 194 |
+
}>;
|
| 195 |
+
date: string;
|
| 196 |
+
formatted?: string;
|
| 197 |
+
}
|
| 198 |
+
//# sourceMappingURL=api-commit.d.ts.map
|
node_modules/@huggingface/hub/dist/src/types/api/api-commit.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"api-commit.d.ts","sourceRoot":"","sources":["../../../../src/types/api/api-commit.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,kBAAkB;IAElC,SAAS,EAAE,UAAU,GAAG,QAAQ,CAAC;IACjC,SAAS,CAAC,EAAE,KAAK,CAAC,sBAAsB,CAAC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AAC,EAAE,MAAM,CAAC;CACd;AAED,MAAM,WAAW,aAAa;IAC7B,6CAA6C;IAC7C,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC9B;AAED,MAAM,MAAM,kBAAkB,GAC3B;IACA,GAAG,EAAE,MAAM,CAAC;IACZ,KAAK,EAAE,aAAa,CAAC;CACpB,GACD;IACA,GAAG,EAAE,SAAS,CAAC;IACf,KAAK,EAAE,gBAAgB,CAAC;CACvB,GACD;IACA,GAAG,EAAE,aAAa,CAAC;IACnB,KAAK,EAAE,qBAAqB,CAAC;CAC5B,CAAC;AAEL,MAAM,WAAW,aAAa;IAC7B,EAAE,EAAE,MAAM,CAAC;IACX,KAAK,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACjD,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB"}
|
node_modules/@huggingface/hub/dist/src/types/api/api-create-collection.d.ts
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export interface ApiCreateCollectionPayload {
|
| 2 |
+
/**
|
| 3 |
+
* Title of the collection to create.
|
| 4 |
+
*/
|
| 5 |
+
title: string;
|
| 6 |
+
/**
|
| 7 |
+
* Namespace of the collection to create (username or org).
|
| 8 |
+
*/
|
| 9 |
+
namespace: string;
|
| 10 |
+
/**
|
| 11 |
+
* Description of the collection to create.
|
| 12 |
+
*/
|
| 13 |
+
description?: string;
|
| 14 |
+
/**
|
| 15 |
+
* Whether the collection should be private or not. Defaults to False (i.e. public collection).
|
| 16 |
+
* @default false
|
| 17 |
+
*/
|
| 18 |
+
private?: boolean;
|
| 19 |
+
}
|
| 20 |
+
//# sourceMappingURL=api-create-collection.d.ts.map
|
node_modules/@huggingface/hub/dist/src/types/api/api-create-collection.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"api-create-collection.d.ts","sourceRoot":"","sources":["../../../../src/types/api/api-create-collection.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,0BAA0B;IAC1C;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,EAAE,MAAM,CAAC;IAClB;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB;;;OAGG;IACH,OAAO,CAAC,EAAE,OAAO,CAAC;CAClB"}
|
node_modules/@huggingface/hub/dist/src/types/api/api-create-repo.d.ts
ADDED
|
@@ -0,0 +1,23 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { SetRequired } from "../../vendor/type-fest/set-required";
|
| 2 |
+
import type { RepoType, SpaceHardwareFlavor, SpaceSdk } from "../public";
|
| 3 |
+
import type { ApiCommitFile } from "./api-commit";
|
| 4 |
+
export type ApiCreateRepoPayload = {
|
| 5 |
+
name: string;
|
| 6 |
+
canonical?: boolean;
|
| 7 |
+
license?: string;
|
| 8 |
+
resourceGroupId?: string;
|
| 9 |
+
template?: string;
|
| 10 |
+
organization?: string;
|
| 11 |
+
/** @default false */
|
| 12 |
+
private?: boolean;
|
| 13 |
+
lfsmultipartthresh?: number;
|
| 14 |
+
files?: SetRequired<ApiCommitFile, "content">[];
|
| 15 |
+
} & ({
|
| 16 |
+
type: Exclude<RepoType, "space">;
|
| 17 |
+
} | {
|
| 18 |
+
type: "space";
|
| 19 |
+
hardware?: SpaceHardwareFlavor;
|
| 20 |
+
sdk: SpaceSdk;
|
| 21 |
+
sdkVersion?: string;
|
| 22 |
+
});
|
| 23 |
+
//# sourceMappingURL=api-create-repo.d.ts.map
|
node_modules/@huggingface/hub/dist/src/types/api/api-create-repo.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"api-create-repo.d.ts","sourceRoot":"","sources":["../../../../src/types/api/api-create-repo.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,qCAAqC,CAAC;AACvE,OAAO,KAAK,EAAE,QAAQ,EAAE,mBAAmB,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AACzE,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,cAAc,CAAC;AAElD,MAAM,MAAM,oBAAoB,GAAG;IAClC,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,qBAAqB;IACrB,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B,KAAK,CAAC,EAAE,WAAW,CAAC,aAAa,EAAE,SAAS,CAAC,EAAE,CAAC;CAChD,GAAG,CACD;IACA,IAAI,EAAE,OAAO,CAAC,QAAQ,EAAE,OAAO,CAAC,CAAC;CAChC,GACD;IACA,IAAI,EAAE,OAAO,CAAC;IACd,QAAQ,CAAC,EAAE,mBAAmB,CAAC;IAC/B,GAAG,EAAE,QAAQ,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,CAAC;CACnB,CACH,CAAC"}
|
node_modules/@huggingface/hub/dist/src/types/api/api-dataset.d.ts
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { License } from "../public";
|
| 2 |
+
export interface ApiDatasetInfo {
|
| 3 |
+
_id: string;
|
| 4 |
+
id: string;
|
| 5 |
+
arxivIds?: string[];
|
| 6 |
+
author?: string;
|
| 7 |
+
cardExists?: true;
|
| 8 |
+
cardError?: unknown;
|
| 9 |
+
cardData?: ApiDatasetMetadata;
|
| 10 |
+
contributors?: Array<{
|
| 11 |
+
user: string;
|
| 12 |
+
_id: string;
|
| 13 |
+
}>;
|
| 14 |
+
disabled: boolean;
|
| 15 |
+
discussionsDisabled: boolean;
|
| 16 |
+
gated: false | "auto" | "manual";
|
| 17 |
+
gitalyUid: string;
|
| 18 |
+
lastAuthor: {
|
| 19 |
+
email: string;
|
| 20 |
+
user?: string;
|
| 21 |
+
};
|
| 22 |
+
lastModified: string;
|
| 23 |
+
likes: number;
|
| 24 |
+
likesRecent: number;
|
| 25 |
+
private: boolean;
|
| 26 |
+
updatedAt: string;
|
| 27 |
+
createdAt: string;
|
| 28 |
+
tags: string[];
|
| 29 |
+
paperswithcode_id?: string;
|
| 30 |
+
sha: string;
|
| 31 |
+
files?: string[];
|
| 32 |
+
citation?: string;
|
| 33 |
+
description?: string;
|
| 34 |
+
downloads: number;
|
| 35 |
+
downloadsAllTime: number;
|
| 36 |
+
previewable?: boolean;
|
| 37 |
+
doi?: {
|
| 38 |
+
id: string;
|
| 39 |
+
commit: string;
|
| 40 |
+
};
|
| 41 |
+
}
|
| 42 |
+
export interface ApiDatasetMetadata {
|
| 43 |
+
licenses?: undefined;
|
| 44 |
+
license?: License | License[];
|
| 45 |
+
license_name?: string;
|
| 46 |
+
license_link?: "LICENSE" | "LICENSE.md" | string;
|
| 47 |
+
license_details?: string;
|
| 48 |
+
languages?: undefined;
|
| 49 |
+
language?: string | string[];
|
| 50 |
+
language_bcp47?: string[];
|
| 51 |
+
language_details?: string;
|
| 52 |
+
tags?: string[];
|
| 53 |
+
task_categories?: string[];
|
| 54 |
+
task_ids?: string[];
|
| 55 |
+
config_names?: string[];
|
| 56 |
+
configs?: {
|
| 57 |
+
config_name: string;
|
| 58 |
+
data_files?: string | string[] | {
|
| 59 |
+
split: string;
|
| 60 |
+
path: string | string[];
|
| 61 |
+
}[];
|
| 62 |
+
data_dir?: string;
|
| 63 |
+
}[];
|
| 64 |
+
benchmark?: string;
|
| 65 |
+
paperswithcode_id?: string | null;
|
| 66 |
+
pretty_name?: string;
|
| 67 |
+
viewer?: boolean;
|
| 68 |
+
viewer_display_urls?: boolean;
|
| 69 |
+
thumbnail?: string | null;
|
| 70 |
+
description?: string | null;
|
| 71 |
+
annotations_creators?: string[];
|
| 72 |
+
language_creators?: string[];
|
| 73 |
+
multilinguality?: string[];
|
| 74 |
+
size_categories?: string[];
|
| 75 |
+
source_datasets?: string[];
|
| 76 |
+
extra_gated_prompt?: string;
|
| 77 |
+
extra_gated_fields?: {
|
| 78 |
+
/**
|
| 79 |
+
* "text" | "checkbox" | "date_picker" | "country" | "ip_location" | { type: "text" | "checkbox" | "date_picker" | "country" | "ip_location" } | { type: "select", options: Array<string | { label: string; value: string; }> } Property
|
| 80 |
+
*/
|
| 81 |
+
[x: string]: "text" | "checkbox" | "date_picker" | "country" | "ip_location" | {
|
| 82 |
+
type: "text" | "checkbox" | "date_picker" | "country" | "ip_location";
|
| 83 |
+
} | {
|
| 84 |
+
type: "select";
|
| 85 |
+
options: Array<string | {
|
| 86 |
+
label: string;
|
| 87 |
+
value: string;
|
| 88 |
+
}>;
|
| 89 |
+
};
|
| 90 |
+
};
|
| 91 |
+
extra_gated_heading?: string;
|
| 92 |
+
extra_gated_description?: string;
|
| 93 |
+
extra_gated_button_content?: string;
|
| 94 |
+
}
|
| 95 |
+
//# sourceMappingURL=api-dataset.d.ts.map
|
node_modules/@huggingface/hub/dist/src/types/api/api-dataset.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"api-dataset.d.ts","sourceRoot":"","sources":["../../../../src/types/api/api-dataset.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AAEzC,MAAM,WAAW,cAAc;IAC9B,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,kBAAkB,CAAC;IAC9B,YAAY,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAA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AG,SAAS,GAAG,aAAa,CAAA;SAAE,GACzE;YAAE,IAAI,EAAE,QAAQ,CAAC;YAAC,OAAO,EAAE,KAAK,CAAC,MAAM,GAAG;gBAAE,KAAK,EAAE,MAAM,CAAC;gBAAC,KAAK,EAAE,MAAM,CAAA;aAAE,CAAC,CAAA;SAAE,CAAC;KACjF,CAAC;IACF,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B,uBAAuB,CAAC,EAAE,MAAM,CAAC;IACjC,0BAA0B,CAAC,EAAE,MAAM,CAAC;CACpC"}
|
node_modules/@huggingface/hub/dist/src/types/api/api-index-tree.d.ts
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
export interface ApiIndexTreeEntry {
|
| 2 |
+
type: "file" | "directory" | "unknown";
|
| 3 |
+
size: number;
|
| 4 |
+
path: string;
|
| 5 |
+
oid: string;
|
| 6 |
+
lfs?: {
|
| 7 |
+
oid: string;
|
| 8 |
+
size: number;
|
| 9 |
+
/** Size of the raw pointer file, 100~200 bytes */
|
| 10 |
+
pointerSize: number;
|
| 11 |
+
};
|
| 12 |
+
lastCommit?: {
|
| 13 |
+
date: string;
|
| 14 |
+
id: string;
|
| 15 |
+
title: string;
|
| 16 |
+
};
|
| 17 |
+
security?: ApiFileScanResult;
|
| 18 |
+
}
|
| 19 |
+
export interface ApiFileScanResult {
|
| 20 |
+
/** namespaced by repo type (models/, datasets/, spaces/) */
|
| 21 |
+
repositoryId: string;
|
| 22 |
+
blobId: string;
|
| 23 |
+
name: string;
|
| 24 |
+
safe: boolean;
|
| 25 |
+
avScan?: ApiAVScan;
|
| 26 |
+
pickleImportScan?: ApiPickleImportScan;
|
| 27 |
+
}
|
| 28 |
+
interface ApiAVScan {
|
| 29 |
+
virusFound: boolean;
|
| 30 |
+
virusNames?: string[];
|
| 31 |
+
}
|
| 32 |
+
type ApiSafetyLevel = "innocuous" | "suspicious" | "dangerous";
|
| 33 |
+
interface ApiPickleImport {
|
| 34 |
+
module: string;
|
| 35 |
+
name: string;
|
| 36 |
+
safety: ApiSafetyLevel;
|
| 37 |
+
}
|
| 38 |
+
interface ApiPickleImportScan {
|
| 39 |
+
highestSafetyLevel: ApiSafetyLevel;
|
| 40 |
+
imports: ApiPickleImport[];
|
| 41 |
+
}
|
| 42 |
+
export {};
|
| 43 |
+
//# sourceMappingURL=api-index-tree.d.ts.map
|
node_modules/@huggingface/hub/dist/src/types/api/api-index-tree.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"api-index-tree.d.ts","sourceRoot":"","sources":["../../../../src/types/api/api-index-tree.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,iBAAiB;IACjC,IAAI,EAAE,MAAM,GAAG,WAAW,GAAG,SAAS,CAAC;IACvC,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,CAAC,EAAE;QACL,GAAG,EAAE,MAAM,CAAC;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,kDAAkD;QAClD,WAAW,EAAE,MAAM,CAAC;KACpB,CAAC;IACF,UAAU,CAAC,EAAE;QACZ,IAAI,EAAE,MAAM,CAAC;QACb,EAAE,EAAE,MAAM,CAAC;QACX,KAAK,EAAE,MAAM,CAAC;KACd,CAAC;IACF,QAAQ,CAAC,EAAE,iBAAiB,CAAC;CAC7B;AAED,MAAM,WAAW,iBAAiB;IACjC,4DAA4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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { SpaceHardwareFlavor } from "../public";
|
| 2 |
+
export interface ApiJobHardware {
|
| 3 |
+
name: string;
|
| 4 |
+
prettyName: string;
|
| 5 |
+
cpu: string;
|
| 6 |
+
ram: string;
|
| 7 |
+
accelerator: {
|
| 8 |
+
type: "gpu" | "neuron";
|
| 9 |
+
model: string;
|
| 10 |
+
quantity: string;
|
| 11 |
+
vram: string;
|
| 12 |
+
manufacturer: "Nvidia" | "AWS";
|
| 13 |
+
} | null;
|
| 14 |
+
unitCostMicroUSD: number;
|
| 15 |
+
unitCostUSD: number;
|
| 16 |
+
unitLabel: string;
|
| 17 |
+
}
|
| 18 |
+
export type JobStatusStage = "DELETING" | "RUNNING" | "PAUSED" | "STOPPED" | "UPDATING" | "ERROR";
|
| 19 |
+
export interface ApiJobStatus {
|
| 20 |
+
stage: JobStatusStage;
|
| 21 |
+
message?: string | null;
|
| 22 |
+
failureCount: number;
|
| 23 |
+
}
|
| 24 |
+
export interface ApiJobUser {
|
| 25 |
+
id: string;
|
| 26 |
+
name: string;
|
| 27 |
+
type?: "user" | "org";
|
| 28 |
+
avatarUrl?: string;
|
| 29 |
+
}
|
| 30 |
+
export interface ApiJob {
|
| 31 |
+
type: "job";
|
| 32 |
+
id: string;
|
| 33 |
+
status: ApiJobStatus;
|
| 34 |
+
createdAt: string;
|
| 35 |
+
updatedAt?: string;
|
| 36 |
+
startedAt?: string | null;
|
| 37 |
+
finishedAt?: string | null;
|
| 38 |
+
createdBy?: {
|
| 39 |
+
id: string;
|
| 40 |
+
name: string;
|
| 41 |
+
};
|
| 42 |
+
dockerImage?: string | null;
|
| 43 |
+
spaceId?: string | null;
|
| 44 |
+
command?: string[] | null;
|
| 45 |
+
arguments?: string[] | null;
|
| 46 |
+
environment?: Record<string, string> | null;
|
| 47 |
+
flavor: SpaceHardwareFlavor;
|
| 48 |
+
arch?: "amd64" | "arm64" | null;
|
| 49 |
+
timeoutSeconds?: number | null;
|
| 50 |
+
attempts?: number;
|
| 51 |
+
owner?: ApiJobUser;
|
| 52 |
+
initiator?: ApiJobUser;
|
| 53 |
+
secrets?: string[];
|
| 54 |
+
labels?: Record<string, string> | null;
|
| 55 |
+
}
|
| 56 |
+
export interface ApiScheduledJob {
|
| 57 |
+
id: string;
|
| 58 |
+
schedule: string;
|
| 59 |
+
suspend: boolean;
|
| 60 |
+
concurrency: boolean;
|
| 61 |
+
createdAt: string;
|
| 62 |
+
updatedAt: string;
|
| 63 |
+
jobSpec: {
|
| 64 |
+
dockerImage?: string | null;
|
| 65 |
+
spaceId?: string | null;
|
| 66 |
+
command?: string[] | null;
|
| 67 |
+
environment?: Record<string, string> | null;
|
| 68 |
+
flavor: SpaceHardwareFlavor;
|
| 69 |
+
arch?: "amd64" | "arm64" | null;
|
| 70 |
+
timeoutSeconds?: number | null;
|
| 71 |
+
attempts?: number;
|
| 72 |
+
labels?: Record<string, string> | null;
|
| 73 |
+
};
|
| 74 |
+
}
|
| 75 |
+
export interface CreateJobOptions {
|
| 76 |
+
/**
|
| 77 |
+
* The Docker image to run (e.g., "python:3.12" or "pytorch/pytorch:2.6.0-cuda12.4-cudnn9-devel")
|
| 78 |
+
*/
|
| 79 |
+
dockerImage?: string;
|
| 80 |
+
/**
|
| 81 |
+
* The Space ID to run (e.g., "username/space-name")
|
| 82 |
+
*/
|
| 83 |
+
spaceId?: string;
|
| 84 |
+
/**
|
| 85 |
+
* The command to run (array of strings)
|
| 86 |
+
*/
|
| 87 |
+
command?: string[];
|
| 88 |
+
/**
|
| 89 |
+
* Additional arguments to pass to the command
|
| 90 |
+
*/
|
| 91 |
+
arguments?: string[];
|
| 92 |
+
/**
|
| 93 |
+
* Environment variables to set
|
| 94 |
+
*/
|
| 95 |
+
environment?: Record<string, string>;
|
| 96 |
+
/**
|
| 97 |
+
* Secrets to pass (will be encrypted server-side)
|
| 98 |
+
*/
|
| 99 |
+
secrets?: Record<string, string>;
|
| 100 |
+
/**
|
| 101 |
+
* Hardware flavor to use
|
| 102 |
+
*/
|
| 103 |
+
flavor: SpaceHardwareFlavor;
|
| 104 |
+
/**
|
| 105 |
+
* Architecture (defaults to "amd64")
|
| 106 |
+
*/
|
| 107 |
+
arch?: "amd64" | "arm64";
|
| 108 |
+
/**
|
| 109 |
+
* Timeout in seconds
|
| 110 |
+
*/
|
| 111 |
+
timeoutSeconds?: number | null;
|
| 112 |
+
/**
|
| 113 |
+
* Maximum number of attempts (defaults to 1)
|
| 114 |
+
*/
|
| 115 |
+
attempts?: number;
|
| 116 |
+
/**
|
| 117 |
+
* Labels to attach to the job (key-value pairs)
|
| 118 |
+
*/
|
| 119 |
+
labels?: Record<string, string>;
|
| 120 |
+
}
|
| 121 |
+
export interface CreateScheduledJobOptions {
|
| 122 |
+
/**
|
| 123 |
+
* The job specification
|
| 124 |
+
*/
|
| 125 |
+
jobSpec: Omit<CreateJobOptions, "arguments">;
|
| 126 |
+
/**
|
| 127 |
+
* CRON schedule expression (e.g., "0 9 * * 1" for 9 AM every Monday) or shortcuts like "@hourly", "@daily"
|
| 128 |
+
*/
|
| 129 |
+
schedule: string;
|
| 130 |
+
/**
|
| 131 |
+
* Whether the scheduled job is suspended (paused)
|
| 132 |
+
*/
|
| 133 |
+
suspend?: boolean;
|
| 134 |
+
/**
|
| 135 |
+
* Whether multiple instances of this job can run concurrently
|
| 136 |
+
*/
|
| 137 |
+
concurrency?: boolean;
|
| 138 |
+
}
|
| 139 |
+
//# sourceMappingURL=api-jobs.d.ts.map
|
node_modules/@huggingface/hub/dist/src/types/api/api-jobs.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"api-jobs.d.ts","sourceRoot":"","sources":["../../../../src/types/api/api-jobs.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,WAAW,CAAC;AAErD,MAAM,WAAW,cAAc;IAC9B,IAAI,EAAE,MAAM,CAAC;IACb,UAAU,EAAE,MAAM,CAAC;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,WAAW,EAAE;QACZ,IAAI,EAAE,KAAK,GAAG,QAAQ,CAAC;QACvB,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,YAAY,EAAE,QAAQ,GAAG,KAAK,CAAC;KAC/B,GAAG,IAAI,CAAC;IACT,gBAAgB,EAAE,MAAM,CAAC;IACzB,WAAW,EAAE,MAAM,CAAC;IACpB,SAAS,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,MAAM,cAAc,GAAG,UAAU,GAAG,SAAS,GAAG,QAAQ,GAAG,SAAS,GAAG,UAAU,GAAG,OAAO,CAAC;AAElG,MAAM,WAAW,YAAY;IAC5B,KAAK,EAAE,cAAc,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,YAAY,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,UAAU;IAC1B,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,CAAC,EAAE,MAAM,GAAG,KAAK,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,MAAM;IACtB,IAAI,E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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { ModelLibraryKey, TransformersInfo, WidgetType } from "@huggingface/tasks";
|
| 2 |
+
import type { License, PipelineType } from "../public";
|
| 3 |
+
export interface ApiModelInfo {
|
| 4 |
+
_id: string;
|
| 5 |
+
id: string;
|
| 6 |
+
arxivIds: string[];
|
| 7 |
+
author?: string;
|
| 8 |
+
cardData?: ApiModelMetadata;
|
| 9 |
+
cardError: unknown;
|
| 10 |
+
cardExists?: true;
|
| 11 |
+
config: unknown;
|
| 12 |
+
contributors: Array<{
|
| 13 |
+
user: string;
|
| 14 |
+
_id: string;
|
| 15 |
+
}>;
|
| 16 |
+
disabled: boolean;
|
| 17 |
+
discussionsDisabled: boolean;
|
| 18 |
+
doi?: {
|
| 19 |
+
id: string;
|
| 20 |
+
commit: string;
|
| 21 |
+
};
|
| 22 |
+
downloads: number;
|
| 23 |
+
downloadsAllTime: number;
|
| 24 |
+
files: string[];
|
| 25 |
+
gitalyUid: string;
|
| 26 |
+
inferenceProviderMapping?: ApiModelInferenceProviderMappingEntry[];
|
| 27 |
+
lastAuthor: {
|
| 28 |
+
email: string;
|
| 29 |
+
user?: string;
|
| 30 |
+
};
|
| 31 |
+
lastModified: string;
|
| 32 |
+
library_name?: ModelLibraryKey;
|
| 33 |
+
likes: number;
|
| 34 |
+
likesRecent: number;
|
| 35 |
+
private: boolean;
|
| 36 |
+
gated: false | "auto" | "manual";
|
| 37 |
+
sha: string;
|
| 38 |
+
spaces: string[];
|
| 39 |
+
updatedAt: string;
|
| 40 |
+
createdAt: string;
|
| 41 |
+
pipeline_tag: PipelineType;
|
| 42 |
+
tags: string[];
|
| 43 |
+
"model-index": unknown;
|
| 44 |
+
safetensors?: {
|
| 45 |
+
parameters: Record<string, number>;
|
| 46 |
+
total: number;
|
| 47 |
+
};
|
| 48 |
+
transformersInfo?: TransformersInfo;
|
| 49 |
+
}
|
| 50 |
+
export interface ApiModelIndex {
|
| 51 |
+
name: string;
|
| 52 |
+
results: {
|
| 53 |
+
task: {
|
| 54 |
+
/**
|
| 55 |
+
* Example: automatic-speech-recognition
|
| 56 |
+
Use task id from https://github.com/huggingface/huggingface.js/blob/main/packages/tasks/src/tasksData.ts
|
| 57 |
+
*/
|
| 58 |
+
type: string;
|
| 59 |
+
/**
|
| 60 |
+
* Example: Speech Recognition
|
| 61 |
+
*/
|
| 62 |
+
name?: string;
|
| 63 |
+
};
|
| 64 |
+
/**
|
| 65 |
+
* This will switch to required at some point.
|
| 66 |
+
in any case, we need them to link to PWC
|
| 67 |
+
*/
|
| 68 |
+
dataset?: {
|
| 69 |
+
/**
|
| 70 |
+
* Example: common_voice. Use dataset id from https://hf.co/datasets
|
| 71 |
+
*/
|
| 72 |
+
type: string;
|
| 73 |
+
/**
|
| 74 |
+
* A pretty name for the dataset. Example: Common Voice zh-CN
|
| 75 |
+
Also encode config params into the name if relevant.
|
| 76 |
+
*/
|
| 77 |
+
name: string;
|
| 78 |
+
/**
|
| 79 |
+
* Optional. The name of the dataset configuration used in `load_dataset()`
|
| 80 |
+
*/
|
| 81 |
+
config?: string;
|
| 82 |
+
/**
|
| 83 |
+
* Optional. Example: test
|
| 84 |
+
*/
|
| 85 |
+
split?: string;
|
| 86 |
+
/**
|
| 87 |
+
* Optional. Example: 5503434ddd753f426f4b38109466949a1217c2bb
|
| 88 |
+
*/
|
| 89 |
+
revision?: string;
|
| 90 |
+
args?: string | {
|
| 91 |
+
/**
|
| 92 |
+
* String Property
|
| 93 |
+
*/
|
| 94 |
+
[x: string]: string;
|
| 95 |
+
};
|
| 96 |
+
};
|
| 97 |
+
metrics: {
|
| 98 |
+
/**
|
| 99 |
+
* Example: wer. Use metric id from https://hf.co/metrics
|
| 100 |
+
*/
|
| 101 |
+
type: string;
|
| 102 |
+
/**
|
| 103 |
+
* Required. Example: 20.0 or "20.0 ± 1.2"
|
| 104 |
+
*/
|
| 105 |
+
value: unknown;
|
| 106 |
+
/**
|
| 107 |
+
* Example: Test WER
|
| 108 |
+
*/
|
| 109 |
+
name?: string;
|
| 110 |
+
/**
|
| 111 |
+
* Optional. The name of the metric configuration used in `load_metric()`.
|
| 112 |
+
*/
|
| 113 |
+
config?: string;
|
| 114 |
+
args?: string | {
|
| 115 |
+
/**
|
| 116 |
+
* String Property
|
| 117 |
+
*/
|
| 118 |
+
[x: string]: string;
|
| 119 |
+
};
|
| 120 |
+
/**
|
| 121 |
+
* [Automatically computed, do not set] Dynamically overridden by huggingface in API calls to indicate if it was verified by Hugging Face.
|
| 122 |
+
*/
|
| 123 |
+
verified?: boolean;
|
| 124 |
+
/**
|
| 125 |
+
* Generated by Hugging Face to prove the results are valid. <add doc link>
|
| 126 |
+
*/
|
| 127 |
+
verifyToken?: string;
|
| 128 |
+
}[];
|
| 129 |
+
/**
|
| 130 |
+
* The source for this evaluation result.
|
| 131 |
+
*/
|
| 132 |
+
source?: {
|
| 133 |
+
/**
|
| 134 |
+
* Example: Open LLM Leaderboard
|
| 135 |
+
*/
|
| 136 |
+
name?: string;
|
| 137 |
+
/**
|
| 138 |
+
* Example: https://huggingface.co/spaces/HuggingFaceH4/open_llm_leaderboard
|
| 139 |
+
*/
|
| 140 |
+
url: string;
|
| 141 |
+
};
|
| 142 |
+
}[];
|
| 143 |
+
}
|
| 144 |
+
export interface ApiWidgetExampleFromModelcard {
|
| 145 |
+
example_title?: string;
|
| 146 |
+
group?: string;
|
| 147 |
+
text?: string;
|
| 148 |
+
src?: string;
|
| 149 |
+
table?: {
|
| 150 |
+
/**
|
| 151 |
+
* (string | number)[] Property
|
| 152 |
+
*/
|
| 153 |
+
[x: string]: (string | number)[];
|
| 154 |
+
};
|
| 155 |
+
structured_data?: {
|
| 156 |
+
/**
|
| 157 |
+
* (string | number)[] Property
|
| 158 |
+
*/
|
| 159 |
+
[x: string]: (string | number)[];
|
| 160 |
+
};
|
| 161 |
+
candidate_labels?: string;
|
| 162 |
+
messages?: {
|
| 163 |
+
role: "system" | "user" | "assistant";
|
| 164 |
+
content: string;
|
| 165 |
+
}[];
|
| 166 |
+
multi_class?: boolean;
|
| 167 |
+
source_sentence?: string;
|
| 168 |
+
sentences?: string[];
|
| 169 |
+
parameters?: {
|
| 170 |
+
aggregation_strategy?: string;
|
| 171 |
+
top_k?: number;
|
| 172 |
+
top_p?: number;
|
| 173 |
+
temperature?: number;
|
| 174 |
+
max_new_tokens?: number;
|
| 175 |
+
do_sample?: boolean;
|
| 176 |
+
negative_prompt?: string;
|
| 177 |
+
guidance_scale?: number;
|
| 178 |
+
num_inference_steps?: number;
|
| 179 |
+
};
|
| 180 |
+
output?: {
|
| 181 |
+
label: string;
|
| 182 |
+
score: number;
|
| 183 |
+
}[] | {
|
| 184 |
+
answer: string;
|
| 185 |
+
score: number;
|
| 186 |
+
} | {
|
| 187 |
+
text: string;
|
| 188 |
+
} | {
|
| 189 |
+
url: string;
|
| 190 |
+
};
|
| 191 |
+
}
|
| 192 |
+
export interface ApiModelMetadata {
|
| 193 |
+
datasets?: string | string[];
|
| 194 |
+
license?: License | License[];
|
| 195 |
+
license_name?: string;
|
| 196 |
+
license_link?: "LICENSE" | "LICENSE.md" | string;
|
| 197 |
+
license_details?: string;
|
| 198 |
+
inference?: boolean | {
|
| 199 |
+
parameters?: {
|
| 200 |
+
aggregation_strategy?: string;
|
| 201 |
+
top_k?: number;
|
| 202 |
+
top_p?: number;
|
| 203 |
+
temperature?: number;
|
| 204 |
+
max_new_tokens?: number;
|
| 205 |
+
do_sample?: boolean;
|
| 206 |
+
negative_prompt?: string;
|
| 207 |
+
guidance_scale?: number;
|
| 208 |
+
num_inference_steps?: number;
|
| 209 |
+
};
|
| 210 |
+
};
|
| 211 |
+
language?: string | string[];
|
| 212 |
+
language_bcp47?: string[];
|
| 213 |
+
language_details?: string;
|
| 214 |
+
tags?: string[];
|
| 215 |
+
pipeline_tag?: string;
|
| 216 |
+
co2_eq_emissions?: number | {
|
| 217 |
+
/**
|
| 218 |
+
* Emissions in grams of CO2
|
| 219 |
+
*/
|
| 220 |
+
emissions: number;
|
| 221 |
+
/**
|
| 222 |
+
* source of the information, either directly from AutoTrain, code carbon or from a scientific article documenting the model
|
| 223 |
+
*/
|
| 224 |
+
source?: string;
|
| 225 |
+
/**
|
| 226 |
+
* pre-training or fine-tuning
|
| 227 |
+
*/
|
| 228 |
+
training_type?: string;
|
| 229 |
+
/**
|
| 230 |
+
* as granular as possible, for instance Quebec, Canada or Brooklyn, NY, USA
|
| 231 |
+
*/
|
| 232 |
+
geographical_location?: string;
|
| 233 |
+
/**
|
| 234 |
+
* how much compute and what kind, e.g. 8 v100 GPUs
|
| 235 |
+
*/
|
| 236 |
+
hardware_used?: string;
|
| 237 |
+
};
|
| 238 |
+
library_name?: string;
|
| 239 |
+
thumbnail?: string | null;
|
| 240 |
+
description?: string | null;
|
| 241 |
+
mask_token?: string;
|
| 242 |
+
widget?: ApiWidgetExampleFromModelcard[];
|
| 243 |
+
"model-index"?: ApiModelIndex[];
|
| 244 |
+
finetuned_from?: string;
|
| 245 |
+
base_model?: string | string[];
|
| 246 |
+
instance_prompt?: string | null;
|
| 247 |
+
extra_gated_prompt?: string;
|
| 248 |
+
extra_gated_fields?: {
|
| 249 |
+
/**
|
| 250 |
+
* "text" | "checkbox" | "date_picker" | "country" | "ip_location" | { type: "text" | "checkbox" | "date_picker" | "country" | "ip_location" } | { type: "select", options: Array<string | { label: string; value: string; }> } Property
|
| 251 |
+
*/
|
| 252 |
+
[x: string]: "text" | "checkbox" | "date_picker" | "country" | "ip_location" | {
|
| 253 |
+
type: "text" | "checkbox" | "date_picker" | "country" | "ip_location";
|
| 254 |
+
} | {
|
| 255 |
+
type: "select";
|
| 256 |
+
options: Array<string | {
|
| 257 |
+
label: string;
|
| 258 |
+
value: string;
|
| 259 |
+
}>;
|
| 260 |
+
};
|
| 261 |
+
};
|
| 262 |
+
extra_gated_heading?: string;
|
| 263 |
+
extra_gated_description?: string;
|
| 264 |
+
extra_gated_button_content?: string;
|
| 265 |
+
}
|
| 266 |
+
export interface ApiModelInferenceProviderMappingEntry {
|
| 267 |
+
provider: string;
|
| 268 |
+
hfModelId: string;
|
| 269 |
+
providerId: string;
|
| 270 |
+
status: "live" | "staging";
|
| 271 |
+
task: WidgetType;
|
| 272 |
+
adapter?: string;
|
| 273 |
+
adapterWeightsPath?: string;
|
| 274 |
+
type?: "single-file" | "tag-filter";
|
| 275 |
+
}
|
| 276 |
+
//# sourceMappingURL=api-model.d.ts.map
|
node_modules/@huggingface/hub/dist/src/types/api/api-model.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"api-model.d.ts","sourceRoot":"","sources":["../../../../src/types/api/api-model.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,oBAAoB,CAAC;AACxF,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,WAAW,CAAC;AAEvD,MAAM,WAAW,YAAY;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,EAAE,MAAM,EAAE,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE,gBAAgB,CAAC;IAC5B,SAAS,EAAE,OAAO,CAAC;IACnB,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,MAAM,EAAE,OAAO,CAAC;IAChB,YAAY,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACnD,QAAQ,EAAE,OAAO,CAAC;IAClB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,GAAG,CAAC,EAAE;QAAE,EAAE,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC;IACrC,SAAS,EAAE,MAAM,CAAC;IAClB,gBAAgB,EAAE,MAAM,CAAC;IACzB,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,SAAS,EAAE,MAAM,CAAC;IAClB,wBAAwB,CAAC,EAAE,qCAAqC,EAAE,CAAC;IACnE,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IAC7C,YAAY,EAAE,MAAM,CAAC;IACrB,YAAY,C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|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { License, SpaceRuntime, SpaceSdk } from "../public";
|
| 2 |
+
type Color = "red" | "yellow" | "green" | "blue" | "indigo" | "purple" | "pink" | "gray";
|
| 3 |
+
export interface ApiSpaceInfo {
|
| 4 |
+
_id: string;
|
| 5 |
+
id: string;
|
| 6 |
+
arxivIds?: string[];
|
| 7 |
+
author: string;
|
| 8 |
+
cardExists?: true;
|
| 9 |
+
cardError?: unknown;
|
| 10 |
+
cardData?: unknown;
|
| 11 |
+
contributors?: Array<{
|
| 12 |
+
user: string;
|
| 13 |
+
_id: string;
|
| 14 |
+
}>;
|
| 15 |
+
disabled: boolean;
|
| 16 |
+
discussionsDisabled: boolean;
|
| 17 |
+
duplicationDisabled: boolean;
|
| 18 |
+
gated: false | "auto" | "manual";
|
| 19 |
+
gitalyUid: string;
|
| 20 |
+
lastAuthor: {
|
| 21 |
+
email: string;
|
| 22 |
+
user?: string;
|
| 23 |
+
};
|
| 24 |
+
lastModified: string;
|
| 25 |
+
likes: number;
|
| 26 |
+
likesRecent: number;
|
| 27 |
+
private: boolean;
|
| 28 |
+
updatedAt: string;
|
| 29 |
+
createdAt: string;
|
| 30 |
+
tags: string[];
|
| 31 |
+
sha: string;
|
| 32 |
+
subdomain: string;
|
| 33 |
+
title: string;
|
| 34 |
+
emoji: string;
|
| 35 |
+
colorFrom: Color;
|
| 36 |
+
colorTo: Color;
|
| 37 |
+
pinned: boolean;
|
| 38 |
+
siblings: Array<{
|
| 39 |
+
rfilename: string;
|
| 40 |
+
}>;
|
| 41 |
+
sdk?: SpaceSdk;
|
| 42 |
+
runtime?: SpaceRuntime;
|
| 43 |
+
models?: string[];
|
| 44 |
+
datasets?: string[];
|
| 45 |
+
originSpace?: {
|
| 46 |
+
_id: string;
|
| 47 |
+
authorId: string;
|
| 48 |
+
};
|
| 49 |
+
}
|
| 50 |
+
export interface ApiSpaceMetadata {
|
| 51 |
+
license?: License | License[];
|
| 52 |
+
tags?: string[];
|
| 53 |
+
title?: string;
|
| 54 |
+
colorFrom?: "red" | "yellow" | "green" | "blue" | "indigo" | "purple" | "pink" | "gray";
|
| 55 |
+
colorTo?: "red" | "yellow" | "green" | "blue" | "indigo" | "purple" | "pink" | "gray";
|
| 56 |
+
emoji?: string;
|
| 57 |
+
sdk?: "streamlit" | "gradio" | "docker" | "static";
|
| 58 |
+
sdk_version?: string | string;
|
| 59 |
+
python_version?: string | string;
|
| 60 |
+
fullWidth?: boolean;
|
| 61 |
+
header?: "mini" | "default";
|
| 62 |
+
app_file?: string;
|
| 63 |
+
app_port?: number;
|
| 64 |
+
base_path?: string;
|
| 65 |
+
models?: string[];
|
| 66 |
+
datasets?: string[];
|
| 67 |
+
pinned?: boolean;
|
| 68 |
+
metaTitle?: string;
|
| 69 |
+
description?: string;
|
| 70 |
+
thumbnail?: string;
|
| 71 |
+
/**
|
| 72 |
+
* If enabled, will associate an oauth app to the Space, adding variables and secrets to the Space's environment
|
| 73 |
+
*/
|
| 74 |
+
hf_oauth?: boolean;
|
| 75 |
+
/**
|
| 76 |
+
* The expiration of access tokens for your oauth app in minutes. max 30 days (43,200 minutes). Defaults to 8 hours (480 minutes)
|
| 77 |
+
*/
|
| 78 |
+
hf_oauth_expiration_minutes?: number;
|
| 79 |
+
/**
|
| 80 |
+
* OAuth scopes to request. By default you have access to the user's profile, you can request access to their repos or inference-api.
|
| 81 |
+
*/
|
| 82 |
+
hf_oauth_scopes?: ("email" | "read-repos" | "write-repos" | "manage-repos" | "inference-api")[];
|
| 83 |
+
suggested_hardware?: "cpu-basic" | "zero-a10g" | "cpu-upgrade" | "cpu-xl" | "t4-small" | "t4-medium" | "a10g-small" | "a10g-large" | "a10g-largex2" | "a10g-largex4" | "a100-large";
|
| 84 |
+
suggested_storage?: "small" | "medium" | "large";
|
| 85 |
+
custom_headers?: {
|
| 86 |
+
"cross-origin-embedder-policy"?: "unsafe-none" | "require-corp" | "credentialless";
|
| 87 |
+
"cross-origin-opener-policy"?: "same-origin" | "same-origin-allow-popups" | "unsafe-none";
|
| 88 |
+
"cross-origin-resource-policy"?: "same-site" | "same-origin" | "cross-origin";
|
| 89 |
+
};
|
| 90 |
+
}
|
| 91 |
+
export {};
|
| 92 |
+
//# sourceMappingURL=api-space.d.ts.map
|
node_modules/@huggingface/hub/dist/src/types/api/api-space.d.ts.map
ADDED
|
@@ -0,0 +1 @@
|
|
|
|
|
|
|
| 1 |
+
{"version":3,"file":"api-space.d.ts","sourceRoot":"","sources":["../../../../src/types/api/api-space.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,OAAO,EAAE,YAAY,EAAE,QAAQ,EAAE,MAAM,WAAW,CAAC;AAEjE,KAAK,KAAK,GAAG,KAAK,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,GAAG,QAAQ,GAAG,MAAM,GAAG,MAAM,CAAC;AAEzF,MAAM,WAAW,YAAY;IAC5B,GAAG,EAAE,MAAM,CAAC;IACZ,EAAE,EAAE,MAAM,CAAC;IACX,QAAQ,CAAC,EAAE,MAAM,EAAE,CAAC;IACpB,MAAM,EAAE,MAAM,CAAC;IACf,UAAU,CAAC,EAAE,IAAI,CAAC;IAClB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,YAAY,CAAC,EAAE,KAAK,CAAC;QAAE,IAAI,EAAE,MAAM,CAAC;QAAC,GAAG,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IACpD,QAAQ,EAAE,OAAO,CAAC;IAClB,mBAAmB,EAAE,OAAO,CAAC;IAC7B,mBAAmB,EAAE,OAAO,CAAC;IAC7B,KAAK,EAAE,KAAK,GAAG,MAAM,GAAG,QAAQ,CAAC;IACjC,SAAS,EAAE,MAAM,CAAC;IAClB,UAAU,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,IAAI,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC;IA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}
|
node_modules/@huggingface/hub/dist/src/types/api/api-who-am-i.d.ts
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
import type { AccessTokenRole, AuthType } from "../public";
|
| 2 |
+
interface ApiWhoAmIBase {
|
| 3 |
+
/** Unique ID persistent across renames */
|
| 4 |
+
id: string;
|
| 5 |
+
type: "user" | "org" | "app";
|
| 6 |
+
name: string;
|
| 7 |
+
}
|
| 8 |
+
interface ApiWhoAmIEntityBase extends ApiWhoAmIBase {
|
| 9 |
+
fullname: string;
|
| 10 |
+
email: string | null;
|
| 11 |
+
canPay: boolean;
|
| 12 |
+
avatarUrl: string;
|
| 13 |
+
/**
|
| 14 |
+
* Unix timestamp in seconds
|
| 15 |
+
*/
|
| 16 |
+
periodEnd: number | null;
|
| 17 |
+
}
|
| 18 |
+
interface ApiWhoAmIOrg extends ApiWhoAmIEntityBase {
|
| 19 |
+
type: "org";
|
| 20 |
+
}
|
| 21 |
+
interface ApiWhoAmIUser extends ApiWhoAmIEntityBase {
|
| 22 |
+
type: "user";
|
| 23 |
+
email: string;
|
| 24 |
+
emailVerified: boolean;
|
| 25 |
+
isPro: boolean;
|
| 26 |
+
orgs: ApiWhoAmIOrg[];
|
| 27 |
+
billingMode: "postpaid" | "prepaid";
|
| 28 |
+
}
|
| 29 |
+
interface ApiWhoAmIApp extends ApiWhoAmIBase {
|
| 30 |
+
type: "app";
|
| 31 |
+
name: string;
|
| 32 |
+
scope?: {
|
| 33 |
+
entities: string[];
|
| 34 |
+
role: AccessTokenRole;
|
| 35 |
+
};
|
| 36 |
+
}
|
| 37 |
+
export type ApiWhoAmIReponse = ApiWhoAmIUser | ApiWhoAmIOrg | ApiWhoAmIApp;
|
| 38 |
+
export interface ApiWhoAmIAuthInfo {
|
| 39 |
+
type: AuthType;
|
| 40 |
+
accessToken?: {
|
| 41 |
+
displayName: string;
|
| 42 |
+
expiration?: string;
|
| 43 |
+
role: AccessTokenRole;
|
| 44 |
+
};
|
| 45 |
+
}
|
| 46 |
+
export {};
|
| 47 |
+
//# sourceMappingURL=api-who-am-i.d.ts.map
|