Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/refly-ai/refly
/ functions
Functions
5,783 in github.com/refly-ai/refly
⨍
Functions
5,783
◇
Types & classes
2,071
↓ 2 callers
Method
deleteResource
(user: User, resourceId: string)
apps/api/src/modules/knowledge/resource.service.ts:833
↓ 2 callers
Method
deleteSchedule
(uid: string, scheduleId: string)
apps/api/src/modules/schedule/schedule.service.ts:384
↓ 2 callers
Method
deleteToolset
(user: User, param: DeleteToolsetRequest)
apps/api/src/modules/tool/tool.service.ts:609
↓ 2 callers
Function
detectActualTypeFromType
(type: CodeArtifactType)
packages/utils/src/artifact.ts:258
↓ 2 callers
Function
disableDefaultModelConfirm
(modelName: string, handleOk: () => void)
packages/ai-workspace-common/src/components/settings/model-config/index.tsx:403
↓ 2 callers
Method
disableWebhook
* Disable webhook
apps/api/src/modules/webhook/webhook.service.ts:137
↓ 2 callers
Method
dispatchDocumentIngest
* Dispatch a document ingest task
apps/api/src/modules/lambda/lambda.service.ts:186
↓ 2 callers
Method
dispatchDocumentRender
* Dispatch a document render task
apps/api/src/modules/lambda/lambda.service.ts:297
↓ 2 callers
Method
downloadExportJobResult
* Download export job result * * @param user - The user downloading the result * @param jobId - Export job ID * @returns Buffer with file
apps/api/src/modules/drive/drive.service.ts:2650
↓ 2 callers
Method
dumpFileFromURL
( user: User, param: { url: string; entityId?: string; entityType?: EntityType;
apps/api/src/modules/misc/misc.service.ts:167
↓ 2 callers
Method
duplicateCanvasCommon
* Common canvas duplication logic shared between duplicateSharedCanvas and duplicateSharedWorkflowApp
apps/api/src/modules/share/share-duplication.service.ts:821
↓ 2 callers
Method
duplicateDriveFilesForShare
* Duplicate drive files for share to make it independent from original canvas * This ensures that deleting original files won't affect the shared c
apps/api/src/modules/share/share-common.service.ts:185
↓ 2 callers
Method
duplicateShare
( @LoginedUser() user: User, @Body() body: DuplicateShareRequest, )
apps/api/src/modules/share/share.controller.ts:64
↓ 2 callers
Method
duplicateSharedCodeArtifact
( user: User, param: DuplicateShareRequest, options?: DuplicateOptions, )
apps/api/src/modules/share/share-duplication.service.ts:322
↓ 2 callers
Method
duplicateSharedDocument
( user: User, param: DuplicateShareRequest, options?: DuplicateOptions, )
apps/api/src/modules/share/share-duplication.service.ts:89
↓ 2 callers
Method
duplicateSharedResource
( user: User, param: DuplicateShareRequest, options?: DuplicateOptions, )
apps/api/src/modules/share/share-duplication.service.ts:191
↓ 2 callers
Method
duplicateSharedSkillResponse
( user: User, param: DuplicateShareRequest, extra?: { target?: Entity; replaceEntityMa
apps/api/src/modules/share/share-duplication.service.ts:401
↓ 2 callers
Method
emailLogin
(email: string, password: string)
apps/api/src/modules/auth/auth.service.ts:604
↓ 2 callers
Method
emailSignup
( email: string, password: string, )
apps/api/src/modules/auth/auth.service.ts:554
↓ 2 callers
Function
emitAddToContext
({ contextItem, duplicated, }: { contextItem: IContextItem; duplicated: boolean })
packages/ai-workspace-common/src/utils/event-emitter/context.ts:20
↓ 2 callers
Function
emitAddToContextCompleted
({ contextItem, success, }: { contextItem: IContextItem; success: boolean })
packages/ai-workspace-common/src/utils/event-emitter/context.ts:28
↓ 2 callers
Method
enableWebhook
* Enable webhook for a canvas
apps/api/src/modules/webhook/webhook.service.ts:68
↓ 2 callers
Method
endGeneration
* Update generation with output and usage, then end it
packages/observability/src/trace-manager.ts:238
↓ 2 callers
Method
endStep
* End timing a step and return its duration * @param stepName Name of the step to end * @returns Duration of the step in milliseconds
packages/utils/src/timeTracker.ts:30
↓ 2 callers
Method
enforceRateLimit
* Check rate limit and throw error if exceeded * @param userId - User identifier * @param entityType - Type of entity being shared * @param e
apps/api/src/modules/share/share-rate-limit.service.ts:65
↓ 2 callers
Method
enqueueKill
* Enqueue async kill task for sandbox cleanup * Fire-and-forget pattern - does not block caller
apps/api/src/modules/tool/sandbox/scalebox.pool.ts:186
↓ 2 callers
Method
enrichActionResultWithDetails
( user: User, result: ActionResult, options?: { sanitizeForDisplay?: boolean }, )
apps/api/src/modules/action/action.service.ts:97
↓ 2 callers
Method
esc
(str: string, startOfLine = false)
packages/utils/src/editor/to_markdown.ts:636
↓ 2 callers
Method
exists
(key: string)
apps/api/src/modules/common/redis.service.ts:282
↓ 2 callers
Function
extractBaseResp
(response: Response, data: any)
packages/ai-workspace-common/src/requests/proxiedRequest.ts:42
↓ 2 callers
Function
extractExample
(content: Record<string, any>)
packages/openapi-schema/scripts/generate-docs.ts:193
↓ 2 callers
Function
extractFileIdFromString
* Extract fileId from a string in various formats * @param value - String value that may contain a fileId * @returns The extracted fileId (df-xxx fo
packages/utils/src/file-id.ts:104
↓ 2 callers
Function
extractFromAnyOf
(target: Record<string, unknown>)
packages/ai-workspace-common/src/components/rjsf/theme.tsx:139
↓ 2 callers
Method
extractOperation
* Extract SQL operation type from query string
apps/api/src/modules/common/prisma.metrics.ts:152
↓ 2 callers
Method
extractPayload
* Extract payload from result, excluding system fields
apps/api/src/modules/common/vector-search/backend/lancedb.ts:271
↓ 2 callers
Method
extractRoleFromAnswers
(answers: string)
apps/api/src/modules/form/form.service.ts:18
↓ 2 callers
Function
extractRootDomain
* Extract root domain from URL for deduplication
apps/api/src/modules/tool/utils/token.ts:51
↓ 2 callers
Function
extractTextAndLinks
(children: any[])
packages/ai-workspace-common/src/components/markdown/plugins/tool-call/nodeProcessor.ts:43
↓ 2 callers
Method
extractTitle
(page: any)
packages/agent-tools/src/notion/index.ts:2160
↓ 2 callers
Method
extractTranslationKeys
* extract translation keys from TypeScript translation files
scripts/check-i18n-consistency.js:52
↓ 2 callers
Function
extractVersion
(html: string)
apps/web/src/service-worker-sw.ts:208
↓ 2 callers
Function
extractVolcengineConfig
* Extract Volcengine auth config from credentials and request * Supports two formats: * 1. Nested: { auth: { type: 'volcengine_signature', accessKey
apps/api/src/modules/tool/dynamic-tooling/adapters/volcengine.ts:363
↓ 2 callers
Function
fetchDeviceInit
( deviceId: string, cliVersion: string, host: string, )
packages/web-core/src/pages/cli-auth/index.tsx:49
↓ 2 callers
Method
fetchTools
* Fetch tools from Composio API * @param userId - The user ID (user.uid for OAuth, 'refly_global' for API Key tools) * @param integrationId - Th
apps/api/src/modules/tool/composio/composio.service.ts:182
↓ 2 callers
Function
fetchWebhookConfig
()
packages/ai-workspace-common/src/components/canvas/integration-docs/integration-docs-modal.tsx:180
↓ 2 callers
Function
fetchWithRetry
(url: string, options?: RequestInit)
packages/utils/src/translate/index.ts:76
↓ 2 callers
Method
fileExistsInOss
* Check if a file exists in OSS * @param oss - The OSS instance to check * @param storageKey - The storage key to check * @returns true if fi
apps/api/src/modules/drive/drive.service.ts:1600
↓ 2 callers
Method
fileStorageExists
( storageKey: string, visibility: FileVisibility = 'public', )
apps/api/src/modules/misc/misc.service.ts:93
↓ 2 callers
Method
finalizeResource
* Process resource after being inserted, including scraping actual content, chunking and * save embeddings to vector store.
apps/api/src/modules/knowledge/resource.service.ts:670
↓ 2 callers
Function
findAgentMeta
(tokenId: string, tokenName: string)
packages/ai-workspace-common/src/components/canvas/launchpad/rich-chat-input/utils.ts:158
↓ 2 callers
Method
findCreditBillingForItems
* Try to find credit billing config for user-specific provider items * @param items - The provider items to find credit billing for * @returns A
apps/api/src/modules/provider/provider.service.ts:624
↓ 2 callers
Method
findFileAndBindEntity
(storageKey: string, entity: Entity)
apps/api/src/modules/misc/misc.service.ts:335
↓ 2 callers
Function
findFileMeta
(tokenId: string, tokenName: string)
packages/ai-workspace-common/src/components/canvas/launchpad/rich-chat-input/utils.ts:189
↓ 2 callers
Function
findTargetPath
( startDir: string, targetName: string, targetType: TargetType = 'file', maxDepth = 10, )
apps/api/src/utils/runtime.ts:22
↓ 2 callers
Method
findValidApiKeyRecord
(apiKey: string)
apps/api/src/modules/auth/api-key.service.ts:215
↓ 2 callers
Function
fixIncompleteJson
(jsonStr: string)
packages/utils/src/json-repair.ts:78
↓ 2 callers
Method
flush
()
packages/observability/src/types.ts:7
↓ 2 callers
Function
formatDate
(dateString: string | null | undefined)
packages/web-core/src/pages/workflow-app/workflow-app-form.tsx:77
↓ 2 callers
Method
formatInvitationCodes
* format invitation codes for response
apps/api/src/modules/invitation/invitation.service.ts:138
↓ 2 callers
Function
formatNumber
(num: number)
packages/ai-workspace-common/src/components/subscription/usage-progress.tsx:12
↓ 2 callers
Function
formatSchemaType
(schema?: SchemaNode)
packages/openapi-schema/scripts/generate-docs.ts:480
↓ 2 callers
Function
formatSchemaType
(schema?: SchemaObject)
packages/ai-workspace-common/src/components/canvas/integration-docs/utils.ts:188
↓ 2 callers
Method
fromCodeBoxStatus
(codeBoxStatus: any)
packages/sandbox-agent/src/schema.ts:136
↓ 2 callers
Function
genImageID
()
packages/utils/src/id.ts:144
↓ 2 callers
Function
genInvitationActivationCreditRechargeId
(inviterUid: string, inviteeUid: string)
packages/utils/src/id.ts:335
↓ 2 callers
Function
genInviteCode
()
packages/utils/src/id.ts:359
↓ 2 callers
Function
genMediaSkillID
()
packages/utils/src/id.ts:230
↓ 2 callers
Function
genSkillPackageID
()
packages/utils/src/id.ts:376
↓ 2 callers
Function
genSkillPackageInstallationID
()
packages/utils/src/id.ts:384
↓ 2 callers
Function
genSkillPackageWorkflowID
()
packages/utils/src/id.ts:380
↓ 2 callers
Function
genTokenUsageMeterID
()
packages/utils/src/id.ts:206
↓ 2 callers
Function
genUniqueId
()
packages/ai-workspace-common/src/utils/index.ts:7
↓ 2 callers
Method
generate
( @LoginedUser() user: User, @Body() body: GenerateWorkflowCliRequest, )
apps/api/src/modules/workflow/workflow-cli.controller.ts:668
↓ 2 callers
Method
generateAppPublishTemplate
* Generate APP publish template * Based on Canvas all original prompts and variables, generate user-friendly natural language template * This is
apps/api/src/modules/variable-extraction/variable-extraction.service.ts:1308
↓ 2 callers
Function
generateCoverUrl
(storageKey: string)
apps/api/src/modules/workflow-app/workflow-app.dto.ts:54
↓ 2 callers
Function
generateDescriptionExample
* Generate an example description based on skill name.
packages/cli/src/commands/skill/update.ts:61
↓ 2 callers
Method
generateDescriptionExample
* Generate an example description based on skill name and workflow query.
apps/api/src/modules/skill-package/skill-package.service.ts:1023
↓ 2 callers
Method
generateDriveFileUrls
* Generates drive file URLs based on configured payload mode * @param user - The user requesting the URLs * @param files - Array of drive files
apps/api/src/modules/drive/drive.service.ts:1174
↓ 2 callers
Function
generateExampleFromSchema
(schema?: SchemaNode | null)
packages/openapi-schema/scripts/generate-docs.ts:553
↓ 2 callers
Method
generateKey
* Generate a unique key for rate limiting based on user, entity type and entity ID
apps/api/src/modules/share/share-rate-limit.service.ts:18
↓ 2 callers
Method
generateProcessedPrompt
* Generate processed prompt template based on extracted variables
apps/api/src/modules/variable-extraction/variable-extraction.service.ts:610
↓ 2 callers
Function
generateReflySkillMd
(options: { name: string; displayName?: string; description: string; skillId: string; workflowId: st
packages/cli/src/skill/symlink.ts:333
↓ 2 callers
Function
generateSchemaInstructions
* Generates a detailed schema guide with example for LLM
apps/api/src/modules/canvas/canvas-title-generator.ts:38
↓ 2 callers
Method
generateToolUseXML
(params: { toolCallId: string; includeResult: boolean; errorMsg?: string; metadata?: { name?:
apps/api/src/modules/tool-call/tool-call.service.ts:68
↓ 2 callers
Method
generateWebhookId
* Generate webhook ID
apps/api/src/modules/webhook/webhook.service.ts:799
↓ 2 callers
Method
generateWorkflowForCli
* Generate workflow for CLI - Enhanced method with planId and full plan details * This method is specifically designed for CLI usage with additiona
apps/api/src/modules/copilot-autogen/copilot-autogen.service.ts:231
↓ 2 callers
Method
getActiveExecution
* Get the currently active (running) workflow execution for a canvas * @param user - The user requesting the execution * @param canvasId - The c
apps/api/src/modules/workflow/workflow.service.ts:1211
↓ 2 callers
Function
getActualFormat
(format: ImageFormat)
packages/ai-workspace-common/src/utils/image-compression.ts:91
↓ 2 callers
Function
getArtifactIcon
(artifact: Artifact, className?: string)
packages/ai-workspace-common/src/components/common/result-display.tsx:10
↓ 2 callers
Function
getAuthDescription
()
packages/ai-workspace-common/src/components/settings/tools-config/CommunityMcpApiKeyModal.tsx:54
↓ 2 callers
Function
getBiomePath
* Gets the biome executable path from pnpm bin
packages/ai-workspace-common/scripts/postprocess-codegen.cjs:8
↓ 2 callers
Function
getCanvasInitState
(canvasId: string)
packages/ai-workspace-common/src/context/canvas.tsx:138
↓ 2 callers
Function
getChatModel
( provider: BaseProvider, config: LLMModelConfig, params?: Partial<OpenAIBaseInput> | Partial<AzureOpenA
packages/providers/src/llm/index.ts:47
↓ 2 callers
Function
getClaudeCommandsDir
()
packages/cli/src/config/paths.ts:58
↓ 2 callers
Function
getConfigDescription
( config: CommunityMcpConfig, t: (key: string) => string, )
packages/ai-workspace-common/src/components/settings/tools-config/utils.ts:154
↓ 2 callers
Function
getCopyToClipboard
()
packages/ai-workspace-common/src/utils/lazy-loader/modules/copy-to-clipboard.ts:20
↓ 2 callers
Method
getCreditUsageByExecutionId
( @LoginedUser() user: User, @Query() query: { executionId: string }, )
apps/api/src/modules/credit/credit.controller.ts:76
↓ 2 callers
Method
getCurrentAIMessageId
* Get the current AI message's messageId * Returns undefined if no AI message is currently being accumulated
apps/api/src/utils/message-aggregator.ts:333
↓ 2 callers
Function
getEffectiveScore
(source: Source)
packages/utils/src/search-source-converter.ts:53
↓ 2 callers
Function
getEnglishLabel
(category: (typeof categories)[0])
packages/ai-workspace-common/src/components/canvas/front-page/index.tsx:281
← previous
next →
1,101–1,200 of 5,783, ranked by callers