@lobehub/market-types
Version:
[](https://npmjs.org/package/@lobehub/market-types) [](https://npmjs.org/package/@lobehub/mark
178 lines (171 loc) • 5.99 kB
JavaScript
// src/creds/standardKeys.ts
var StandardCredKeys = {
// AI Providers
ANTHROPIC: "anthropic",
COHERE: "cohere",
DEEPSEEK: "deepseek",
GOOGLE_AI: "google-ai",
GROQ: "groq",
HUGGINGFACE: "huggingface",
MISTRAL: "mistral",
OPENAI: "openai",
PERPLEXITY: "perplexity",
REPLICATE: "replicate",
// Cloud Providers
AWS: "aws",
AZURE: "azure",
CLOUDFLARE: "cloudflare",
FIREBASE_SA: "firebase-sa",
GCP_SA: "gcp-sa",
SUPABASE: "supabase",
VERCEL: "vercel",
// Code & DevOps
BITBUCKET_PAT: "bitbucket-pat",
GITHUB_OAUTH: "github-oauth",
GITHUB_PAT: "github-pat",
GITLAB_PAT: "gitlab-pat",
// Communication
DISCORD_BOT: "discord-bot",
DISCORD_WEBHOOK: "discord-webhook",
SENDGRID: "sendgrid",
SLACK_OAUTH: "slack-oauth",
SLACK_WEBHOOK: "slack-webhook",
TWILIO: "twilio",
// Databases
AIRTABLE: "airtable",
MONGODB: "mongodb",
PLANETSCALE: "planetscale",
REDIS: "redis",
// Payments
STRIPE: "stripe",
// Productivity
JIRA_PAT: "jira-pat",
LINEAR_OAUTH: "linear-oauth",
NOTION_OAUTH: "notion-oauth",
NOTION_PAT: "notion-pat"
};
// src/plugin/admin.ts
import { z as z3 } from "zod";
// src/plugin/plugin.ts
import { z as z2 } from "zod";
// src/plugin/capabilities.ts
import { z } from "zod";
var PluginCapabilitiesSchema = z.object({
/** Whether the plugin provides custom prompts */
prompts: z.boolean().default(false),
/** Whether the plugin provides resources (assets) */
resources: z.boolean().default(false),
/** Whether the plugin provides tools (functions) */
tools: z.boolean().default(false)
});
// src/plugin/plugin.ts
var BasePluginItemSchema = z2.object({
author: z2.string().optional(),
capabilities: PluginCapabilitiesSchema,
category: z2.string().optional(),
commentCount: z2.number().default(0),
connectionType: z2.enum(["local", "remote", "hybrid"]).optional(),
createdAt: z2.string(),
description: z2.string(),
github: z2.object({
language: z2.string().optional(),
license: z2.string().optional(),
stars: z2.number().optional(),
url: z2.string()
}).optional(),
haveCloudEndpoint: z2.boolean().optional(),
homepage: z2.string().optional(),
icon: z2.string().optional(),
identifier: z2.string(),
installCount: z2.number().default(0),
isClaimed: z2.boolean().default(false),
isFeatured: z2.boolean().default(false),
isOfficial: z2.boolean().default(false),
isValidated: z2.boolean().default(false),
manifestUrl: z2.string(),
name: z2.string(),
promptsCount: z2.number().optional(),
ratingAverage: z2.number().optional(),
ratingCount: z2.number().default(0),
resourcesCount: z2.number().optional(),
toolsCount: z2.number().optional(),
updatedAt: z2.string()
});
// src/plugin/admin.ts
var AdminPluginItemSchema = BasePluginItemSchema.extend({
/** Publication status of the plugin */
status: z3.enum(["published", "unpublished", "archived", "deprecated"]),
/** Visibility level of the plugin */
visibility: z3.enum(["public", "private", "internal"])
});
// src/plugin/deploymentOption.ts
import { z as z4 } from "zod";
var ConnectionTypeEnum = z4.enum(["http", "stdio", "sse"]);
var PluginConnectionTypeEnum = z4.enum(["local", "remote", "hybrid"]);
var InstallationMethodEnum = z4.enum([
"npm",
// Node.js package manager
"go",
// Go language
"python",
// Python language
"docker",
// Docker container
"git",
// Git repository
"binaryUrl",
// Direct binary download URL
"manual",
// Manual installation with instructions
"none"
// No installation required
]);
// src/skill/skill.ts
var SkillCategoryEnum = /* @__PURE__ */ ((SkillCategoryEnum2) => {
SkillCategoryEnum2["AILLMs"] = "ai-llms";
SkillCategoryEnum2["AgentToAgentProtocols"] = "agent-to-agent-protocols";
SkillCategoryEnum2["AppleAppsServices"] = "apple-apps-services";
SkillCategoryEnum2["BrowserAutomation"] = "browser-automation";
SkillCategoryEnum2["CLIUtilities"] = "cli-utilities";
SkillCategoryEnum2["CalendarScheduling"] = "calendar-scheduling";
SkillCategoryEnum2["ClawdbotTools"] = "clawdbot-tools";
SkillCategoryEnum2["CodingAgentsIDEs"] = "coding-agents-ides";
SkillCategoryEnum2["Communication"] = "communication";
SkillCategoryEnum2["DataAnalytics"] = "data-analytics";
SkillCategoryEnum2["DevOpsCloud"] = "devops-cloud";
SkillCategoryEnum2["Finance"] = "finance";
SkillCategoryEnum2["Gaming"] = "gaming";
SkillCategoryEnum2["GitGitHub"] = "git-github";
SkillCategoryEnum2["HealthFitness"] = "health-fitness";
SkillCategoryEnum2["IOSMacOSDevelopment"] = "ios-macos-development";
SkillCategoryEnum2["ImageVideoGeneration"] = "image-video-generation";
SkillCategoryEnum2["MarketingSales"] = "marketing-sales";
SkillCategoryEnum2["MediaStreaming"] = "media-streaming";
SkillCategoryEnum2["Moltbook"] = "moltbook";
SkillCategoryEnum2["NotesPKM"] = "notes-pkm";
SkillCategoryEnum2["PDFDocuments"] = "pdf-documents";
SkillCategoryEnum2["PersonalDevelopment"] = "personal-development";
SkillCategoryEnum2["ProductivityTasks"] = "productivity-tasks";
SkillCategoryEnum2["SearchResearch"] = "search-research";
SkillCategoryEnum2["SecurityPasswords"] = "security-passwords";
SkillCategoryEnum2["SelfHostedAutomation"] = "self-hosted-automation";
SkillCategoryEnum2["ShoppingEcommerce"] = "shopping-ecommerce";
SkillCategoryEnum2["SmartHomeIoT"] = "smart-home-iot";
SkillCategoryEnum2["SpeechTranscription"] = "speech-transcription";
SkillCategoryEnum2["Transportation"] = "transportation";
SkillCategoryEnum2["WebFrontendDevelopment"] = "web-frontend-development";
return SkillCategoryEnum2;
})(SkillCategoryEnum || {});
var SKILL_CATEGORY_VALUES = Object.values(SkillCategoryEnum);
export {
AdminPluginItemSchema,
BasePluginItemSchema,
ConnectionTypeEnum,
InstallationMethodEnum,
PluginCapabilitiesSchema,
PluginConnectionTypeEnum,
SKILL_CATEGORY_VALUES,
SkillCategoryEnum,
StandardCredKeys
};
//# sourceMappingURL=index.mjs.map