api/api-collection.ts

huggingface.js · packages/hub/src/types/api/api-collection.ts · typescript · MIT
voice

api-collection.ts from huggingface/huggingface.js

// Source: https://github.com/huggingface/huggingface.js | License: MIT | Copyright 2023 Hugging Face
// Provided via justclaw.it.com; keep this notice with the code.
import type { SpaceHardwareFlavor } from "../public";
import type { ApiAuthor } from "./api-author";

export interface ApiCollectionInfo {
	slug: string;
	title: string;
	description?: string;
	lastUpdated: string;
	gating:
		| true
		| (
				| false
				| {
						mode: "auto";
				  }
				| {
						mode: "manual";
						notifications: {
							mode: "bulk" | "real-time";
							email?: string;
						};
				  }
		  );
	owner: ApiAuthor;
	/**
	 * Note that it's limited to 4 items when the listing endpoint is used.
	 */
	items: ApiCollectionItem[];
	theme: "orange" | "blue" | "green" | "purple" | "pink" | "indigo";
	private: bo

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key