@composio/auth-config
Advanced tools
| import { z } from 'zod' | ||
| /** | ||
| * All valid toolkit categories (flat list including main categories and subcategories) | ||
| */ | ||
| export const TOOLKIT_CATEGORIES = [ | ||
| // Artificial Intelligence | ||
| 'Artificial Intelligence', | ||
| 'AI Agents', | ||
| 'AI Assistants', | ||
| 'AI Chatbots', | ||
| 'AI Content Generation', | ||
| 'AI Document Extraction', | ||
| 'AI Meeting Assistants', | ||
| 'AI Models', | ||
| 'AI Safety Compliance Detection', | ||
| 'AI Sales Tools', | ||
| 'AI Web Scraping', | ||
| 'Model Context Protocol', | ||
| // Business Intelligence | ||
| 'Business Intelligence', | ||
| 'Analytics', | ||
| 'Dashboards', | ||
| 'Reviews', | ||
| // Commerce | ||
| 'Commerce', | ||
| 'Accounting', | ||
| 'eCommerce', | ||
| 'Fundraising', | ||
| 'Payment Processing', | ||
| 'Proposal & Invoice Management', | ||
| 'Taxes', | ||
| // Communication | ||
| 'Communication', | ||
| 'Call Tracking', | ||
| 'Email', | ||
| 'Fax', | ||
| 'Notifications', | ||
| 'Phone & SMS', | ||
| 'Team Chat', | ||
| 'Team Collaboration', | ||
| 'Video Conferencing', | ||
| // Content & Files | ||
| 'Content & Files', | ||
| 'Documents', | ||
| 'File Management & Storage', | ||
| 'Images & Design', | ||
| 'Notes', | ||
| 'Transcription', | ||
| 'Video & Audio', | ||
| // Human Resources | ||
| 'Human Resources', | ||
| 'Education', | ||
| 'HR Talent & Recruitment', | ||
| // Internet of Things | ||
| 'Internet of Things', | ||
| // IT Operations | ||
| 'IT Operations', | ||
| 'Databases', | ||
| 'Developer Tools', | ||
| 'Online Courses', | ||
| 'Security & Identity Tools', | ||
| 'Server Monitoring', | ||
| // Lifestyle & Entertainment | ||
| 'Lifestyle & Entertainment', | ||
| 'Fitness', | ||
| 'Gaming', | ||
| 'News & Lifestyle', | ||
| // Marketing | ||
| 'Marketing', | ||
| 'Ads & Conversion', | ||
| 'Drip Emails', | ||
| 'Email Newsletters', | ||
| 'Event Management', | ||
| 'Marketing Automation', | ||
| 'Social Media Accounts', | ||
| 'Social Media Marketing', | ||
| 'Transactional Email', | ||
| 'URL Shortener', | ||
| 'Webinars', | ||
| // Productivity | ||
| 'Productivity', | ||
| 'Bookmark Managers', | ||
| 'Calendar', | ||
| 'Product Management', | ||
| 'Project Management', | ||
| 'Spreadsheets', | ||
| 'Task Management', | ||
| 'Time Tracking Software', | ||
| // Sales & CRM | ||
| 'Sales & CRM', | ||
| 'Contact Management', | ||
| 'CRM', | ||
| 'Forms & Surveys', | ||
| 'Scheduling & Booking', | ||
| 'Signatures', | ||
| // Support | ||
| 'Support', | ||
| 'Customer Appreciation', | ||
| 'Customer Support', | ||
| // Website & App Building | ||
| 'Website & App Building', | ||
| 'App Builder', | ||
| 'Website Builders', | ||
| ] as const | ||
| export const ToolkitCategorySchema = z.enum(TOOLKIT_CATEGORIES) | ||
| export type ToolkitCategory = (typeof TOOLKIT_CATEGORIES)[number] |
+4
-5
| { | ||
| "name": "@composio/auth-config", | ||
| "version": "0.1.9", | ||
| "version": "0.1.11", | ||
| "type": "module", | ||
@@ -23,4 +23,4 @@ "main": "src/index.ts", | ||
| "@composio/eslint-config": "0.1.0", | ||
| "@composio/tsconfig": "0.1.0", | ||
| "@composio/prettier-config": "0.1.0" | ||
| "@composio/prettier-config": "0.1.0", | ||
| "@composio/tsconfig": "0.1.0" | ||
| }, | ||
@@ -36,4 +36,3 @@ "peerDependencies": { | ||
| "lint": "eslint . --max-warnings 0", | ||
| "check-types": "tsc --noEmit", | ||
| "check-types:brr": "tsgo", | ||
| "check-types": "tsgo --noEmit", | ||
| "clean": "rm -rf .turbo node_modules dist", | ||
@@ -40,0 +39,0 @@ "test": "vitest run", |
+1
-1
@@ -537,4 +537,4 @@ # auth-config: typed authentication configurations | ||
| 1. **typescript errors**: run `bun run tsc --noEmit` to check compilation | ||
| 1. **typescript errors**: run `tsgo --noEmit` to check compilation | ||
| 2. **field not available**: ensure fields are defined in `strictFields` | ||
| 3. **dynamic url errors**: verify field names match between auth |
+10
-3
| import { z } from 'zod' | ||
| import { | ||
| TOOLKIT_CATEGORIES, | ||
| ToolkitCategorySchema, | ||
| } from './lib/categories' | ||
| import { EvalFieldsSchema } from './lib/evalFields' | ||
@@ -7,2 +11,5 @@ import { strictFields } from './lib/strictFields' | ||
| export { TOOLKIT_CATEGORIES, ToolkitCategorySchema } | ||
| export type { ToolkitCategory } from './lib/categories' | ||
| /** | ||
@@ -149,3 +156,3 @@ * A type that converts object field names into template string format {{fieldName}} | ||
| */ | ||
| auth_hint: z.string().url().optional(), | ||
| auth_hint_url: z.string().url().optional(), | ||
| }) | ||
@@ -579,3 +586,3 @@ | ||
| unique_key: z.string(), | ||
| categories: z.array(z.string()), | ||
| categories: z.array(ToolkitCategorySchema), | ||
| description: z.string(), | ||
@@ -586,3 +593,3 @@ app_url: z.string().url().optional(), | ||
| */ | ||
| auth_guide: z.string().url().optional(), | ||
| auth_guide_url: z.string().url().optional(), | ||
| /** | ||
@@ -589,0 +596,0 @@ * @deprecated - not used confirmed |
@@ -84,3 +84,3 @@ import type { AuthScheme } from './base' | ||
| unique_key: `zoho`, | ||
| categories: [`CRM`, `Sales & Customer Support`, `Marketing & Social Media`], | ||
| categories: [`Sales & CRM`, `Marketing`], | ||
| description: `Zoho is a suite of cloud applications including CRM, email marketing, and collaboration tools, enabling businesses to automate and scale operations`, | ||
@@ -154,3 +154,3 @@ app_url: `https://www.zoho.com`, | ||
| docs: 'https://example.com/docs', | ||
| categories: ['test'], | ||
| categories: ['Developer Tools'], | ||
| description: 'Test description', | ||
@@ -223,3 +223,3 @@ }) | ||
| unique_key: `wix`, | ||
| categories: [`Website Builder`, `E-commerce`, `Developer Tools`], | ||
| categories: [`Website Builders`, `eCommerce`, `Developer Tools`], | ||
| description: `Wix is a cloud-based web development platform that allows users to create HTML5 websites and mobile sites through drag-and-drop tools. The Wix API provides programmatic access to manage sites, products, orders, and other resources.`, | ||
@@ -278,2 +278,3 @@ app_url: `https://www.wix.com`, | ||
| }) | ||
| }) |
+10
-5
@@ -1,3 +0,8 @@ | ||
| import type { AuthScheme, TemplateFields, ToolkitConfig } from './base' | ||
| import type { | ||
| AuthScheme, | ||
| TemplateFields, | ||
| ToolkitCategory, | ||
| ToolkitConfig, | ||
| } from './base' | ||
| import type { | ||
| ExtractDefinedBaseUrlFields, | ||
@@ -86,3 +91,3 @@ ExtractDefinedDbFields, | ||
| // Optional hint URL to help users obtain credentials | ||
| auth_hint?: string | ||
| auth_hint_url?: string | ||
| // SAML-specific fields | ||
@@ -413,3 +418,3 @@ idp_url?: OverwriteBaseUrlFunc<SFields, EFields> | string | ||
| unique_key: string | ||
| categories: string[] | ||
| categories: ToolkitCategory[] | ||
| description: string | ||
@@ -436,3 +441,3 @@ docs?: string | ||
| // Optional toolkit-level setup guide URL | ||
| auth_guide?: string | ||
| auth_guide_url?: string | ||
| metadata?: { | ||
@@ -654,4 +659,4 @@ source_file_hash?: string | ||
| return authSchemes.some( | ||
| (scheme: AuthScheme) => !scheme.is_deprecated && scheme.mode === 'NO_AUTH', | ||
| (scheme: AuthScheme) => !scheme.is_deprecated && !scheme.is_experimental && scheme.mode === 'NO_AUTH', | ||
| ) | ||
| } |
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
Network access
Supply chain riskThis module accesses the network.
Found 1 instance in 1 package
Long strings
Supply chain riskContains long string literals, which may be a sign of obfuscated or packed code.
Found 1 instance in 1 package
URL strings
Supply chain riskPackage contains fragments of external URLs or IP addresses, which the package may be accessing at runtime.
Found 1 instance in 1 package
203133
1.27%16
6.67%6087
1.96%