MCPcopy Create free account

hub / github.com/ArnasDon/wacrm / functions

Functions1,053 in github.com/ArnasDon/wacrm

↓ 6 callersFunctioncanEditSettings
(role: AccountRole)
src/lib/auth/roles.ts:79
↓ 6 callersFunctioncanManageMembers
(role: AccountRole)
src/lib/auth/roles.ts:70
↓ 6 callersFunctionconfig
(overrides: Partial<AiConfig> = {})
src/lib/ai/generate.test.ts:5
↓ 6 callersFunctiongenerateApiKey
()
src/lib/api-keys/keys.ts:49
↓ 6 callersFunctiongetRecipientStatus
(status: string)
src/lib/broadcast-status.ts:89
↓ 6 callersFunctionisApiScope
(value: unknown)
src/lib/api-keys/scopes.ts:40
↓ 6 callersFunctionisPrivateOrReservedIp
(ip: string)
src/lib/webhooks/ssrf.ts:25
↓ 6 callersFunctionisTemplateWebhookField
(field: string)
src/lib/whatsapp/template-webhook.ts:39
↓ 6 callersFunctionisTerminal
(node_type: string)
src/lib/flows/engine.ts:133
↓ 6 callersFunctionlatestUserMessage
(messages: ChatMessage[])
src/lib/ai/query.ts:9
↓ 6 callersFunctionloadAiConfig
( db: SupabaseClient, accountId: string, opts: { requireActive?: boolean } = {}, )
src/lib/ai/config.ts:30
↓ 6 callersFunctionmakeClient
(opts: { user: { id: string } | null; userErr?: unknown; byTable: Record<string, { data: unknown; error:
src/lib/auth/account.test.ts:21
↓ 6 callersFunctionnodesWith
(mediaConfig: Record<string, unknown>)
src/lib/flows/validate.test.ts:425
↓ 6 callersFunctionnormalizeEvents
(input: unknown)
src/lib/webhooks/events.ts:40
↓ 6 callersFunctionnormalizePhone
(phone: string)
src/lib/whatsapp/phone-utils.ts:15
↓ 6 callersFunctionnormalizeScopes
(input: unknown)
src/lib/api-keys/scopes.ts:54
↓ 6 callersFunctionnormalizeWebhookUrl
(input: unknown)
src/lib/webhooks/endpoints.ts:56
↓ 6 callersFunctionparseTagCell
(value: string | undefined)
src/lib/contacts/parse-contact-csv.ts:16
↓ 6 callersFunctionpayload
(over: Partial<TemplatePayload> = {})
src/lib/whatsapp/template-header-handle.test.ts:12
↓ 6 callersFunctionsendMediaMessage
( args: SendMediaMessageArgs, )
src/lib/whatsapp/meta-api.ts:290
↓ 6 callersFunctiontag
(id: string, name = id)
src/lib/inbox/conversations.test.ts:33
↓ 6 callersFunctiontryParseAsDataURI
(filename)
public/opus/encoderWorker.min.js:1
↓ 6 callersFunctionunlinkNodeReferences
( nodes: BuilderNode[], deletedKey: string, )
src/lib/flows/edges.ts:329
↓ 6 callersFunctionvalidateTemplateName
(name: string)
src/lib/whatsapp/template-validators.ts:51
↓ 6 callersFunctionverifySignatureHeader
( header: string, rawBody: string, secret: string, nowSeconds: number, toleranceSeconds = 300 )
src/lib/webhooks/sign.ts:40
↓ 5 callersFunctionabort
(what)
public/opus/encoderWorker.min.js:1
↓ 5 callersFunctionautomationWithUpdateStep
()
src/lib/automations/engine.test.ts:227
↓ 5 callersFunctionbuildConversationContext
( db: SupabaseClient, conversationId: string, limit: number = aiContextMessageLimit(), )
src/lib/ai/context.ts:19
↓ 5 callersFunctionbuildPage
( rows: T[], limit: number )
src/lib/api/v1/pagination.ts:114
↓ 5 callersFunctioncanDeleteAccount
(role: AccountRole)
src/lib/auth/roles.ts:102
↓ 5 callersFunctioncanSendMessages
(role: AccountRole)
src/lib/auth/roles.ts:88
↓ 5 callersFunctioncanTransferOwnership
(role: AccountRole)
src/lib/auth/roles.ts:107
↓ 5 callersFunctioncanViewOnly
(role: AccountRole)
src/lib/auth/roles.ts:97
↓ 5 callersFunctiondeleteMessageTemplate
( args: DeleteMessageTemplateArgs )
src/lib/whatsapp/meta-api.ts:643
↓ 5 callersFunctioneach
(node: BuilderNode)
src/lib/flows/edges.test.ts:296
↓ 5 callersFunctioneditMessageTemplate
( args: EditMessageTemplateArgs )
src/lib/whatsapp/meta-api.ts:605
↓ 5 callersFunctionerrorResponse
(status: number, body: unknown)
src/lib/whatsapp/registration.test.ts:15
↓ 5 callersFunctionexpectApiError
(p: Promise<unknown>, code: string, status: number)
src/lib/auth/api-context.test.ts:56
↓ 5 callersFunctionfetchFields
()
src/components/broadcasts/step2-select-audience.tsx:112
↓ 5 callersFunctiongroupNodeTypesByCategory
( types: NodeType[] )
src/components/flows/shared.tsx:177
↓ 5 callersFunctioninviteUrl
(token: string, baseUrl: string)
src/lib/auth/invitations.ts:70
↓ 5 callersFunctionjsonResponse
(body: unknown, ok = true, status = 200)
src/lib/whatsapp/meta-api.resumable.test.ts:7
↓ 5 callersFunctionkeysetFilter
(cursor: Cursor | null)
src/lib/api/v1/pagination.ts:104
↓ 5 callersFunctionlocalDayKey
(d: Date | string)
src/lib/dashboard/date-utils.ts:19
↓ 5 callersFunctionlooksLikeApiKey
(value: string)
src/lib/api-keys/keys.ts:75
↓ 5 callersFunctionnormalizeConversation
(raw: RawConversation)
src/lib/inbox/conversations.ts:23
↓ 5 callersFunctionokResponse
(json: unknown)
src/lib/ai/generate.test.ts:19
↓ 5 callersFunctionokResponse
(body: unknown)
src/lib/whatsapp/template-lifecycle.test.ts:12
↓ 5 callersMethodpostPage
(pageData)
public/opus/encoderWorker.min.js:1
↓ 5 callersFunctionpostPageGlobal
public/opus/encoderWorker.min.js:1
↓ 5 callersFunctionpresenceLabel
( status: PresenceStatus, lastSeenAt: string | null | undefined, now: number, )
src/lib/presence.ts:97
↓ 5 callersFunctionreachableFromEntry
( entryKey: string, nodes: NodeInput[], )
src/lib/flows/validate.ts:726
↓ 5 callersFunctionregisterPhoneNumber
( args: RegisterPhoneNumberArgs )
src/lib/whatsapp/meta-api.ts:123
↓ 5 callersFunctionrow
(overrides: Partial<ApiKeyRow> = {})
src/lib/auth/api-context.test.ts:33
↓ 5 callersFunctionsendMessageToConversation
( db: SupabaseClient, accountId: string, params: SendMessageParams )
src/lib/whatsapp/send-message.ts:162
↓ 5 callersFunctionserializeWebhookEndpoint
( row: Record<string, unknown> )
src/lib/webhooks/endpoints.ts:37
↓ 5 callersFunctionshouldAutoLayout
( nodes: Array<{ position_x?: number | null; position_y?: number | null }>, )
src/lib/flows/layout.ts:74
↓ 5 callersFunctionuniqueNodeKey
(base: string, existing: BuilderNode[])
src/components/flows/flow-editor-state.tsx:129
↓ 5 callersFunctionupdateButton
(index: number, patch: ButtonPatch)
src/components/settings/template-manager.tsx:382
↓ 5 callersFunctionuseFlowEditor
()
src/components/flows/flow-editor-state.tsx:214
↓ 5 callersFunctionuseResources
()
src/components/automations/automation-builder.tsx:209
↓ 5 callersFunctionuseTheme
()
src/hooks/use-theme.tsx:141
↓ 5 callersFunctionvalidateBody
(bodyText: string)
src/lib/whatsapp/template-validators.ts:90
↓ 5 callersFunctionvalidateTemplatePayload
(payload: TemplatePayload)
src/lib/whatsapp/template-validators.ts:321
↓ 5 callersFunctionverifyAndBuildUrl
( mediaId: string )
src/app/api/whatsapp/webhook/route.ts:838
↓ 5 callersFunctionyFor
(v: number)
src/components/dashboard/conversations-chart.tsx:125
↓ 4 callersFunctionbuildSignatureHeader
( rawBody: string, secret: string, timestampSeconds: number )
src/lib/webhooks/sign.ts:24
↓ 4 callersFunctioncreateBroadcast
( db: SupabaseClient, accountId: string, auditUserId: string, params: CreateBroadcastParams )
src/lib/whatsapp/broadcast-core.ts:85
↓ 4 callersFunctionemptyCalls
()
src/lib/webhooks/deliver.test.ts:58
↓ 4 callersFunctionencodeCursor
(row: { created_at: string; id: string })
src/lib/api/v1/pagination.ts:54
↓ 4 callersFunctionfetchTags
(userId: string)
src/components/settings/tag-manager.tsx:67
↓ 4 callersFunctionfindOrCreateContact
( db: SupabaseClient, accountId: string, auditUserId: string, input: ContactInput )
src/lib/api/v1/contacts.ts:109
↓ 4 callersFunctiongenerateInviteToken
()
src/lib/auth/invitations.ts:47
↓ 4 callersFunctiongetContactById
( db: SupabaseClient, accountId: string, contactId: string )
src/lib/api/v1/contacts.ts:210
↓ 4 callersFunctiongetSubscribedApps
( args: GetSubscribedAppsArgs )
src/lib/whatsapp/meta-api.ts:199
↓ 4 callersFunctionhandleStatusChange
(status: DealStatus)
src/components/pipelines/deal-form.tsx:212
↓ 4 callersFunctionhasScope
( granted: readonly string[], required: ApiScope )
src/lib/api-keys/scopes.ts:70
↓ 4 callersFunctioninterpolate
(s: string, args: ExecuteArgs)
src/lib/automations/engine.ts:651
↓ 4 callersFunctioninterpolateVars
* Tiny `{{vars.foo}}` interpolation. Used by send_message + collect_input * prompt text so a captured `name` can show up in the next prompt * ("Than
src/lib/flows/engine.ts:516
↓ 4 callersFunctioninviteExpiresAt
( expiresInDays: number | undefined, now: Date = new Date(), )
src/lib/auth/invitations.ts:82
↓ 4 callersFunctionisDryRun
()
src/app/api/whatsapp/templates/[id]/route.ts:40
↓ 4 callersFunctionisLegacyFormat
(encryptedText: string)
src/lib/whatsapp/encryption.ts:111
↓ 4 callersFunctionisMessageTemplate
(row: unknown)
src/lib/whatsapp/template-row-guard.ts:22
↓ 4 callersFunctionisWebhookEvent
(value: unknown)
src/lib/webhooks/events.ts:27
↓ 4 callersFunctionlastNDayKeys
(n: number)
src/lib/dashboard/date-utils.ts:32
↓ 4 callersFunctionmakeDb
(script: Script)
src/lib/whatsapp/resolve-conversation.test.ts:26
↓ 4 callersFunctionmakeDb
(rows: Row[], calls: Calls)
src/lib/webhooks/deliver.test.ts:27
↓ 4 callersFunctionmiddleware
(request: NextRequest)
src/middleware.ts:4
↓ 4 callersFunctionokList
(items: T[], nextCursor: string | null)
src/lib/api/v1/respond.ts:95
↓ 4 callersFunctionokResponse
(body: unknown)
src/lib/whatsapp/registration.test.ts:8
↓ 4 callersFunctionparseGeneration
(raw: string)
src/lib/ai/generate.ts:53
↓ 4 callersFunctionpatchTop
(key: K, value: BuilderInitial[K])
src/components/automations/automation-builder.tsx:596
↓ 4 callersFunctionresolveAuditUserId
( db: SupabaseClient, accountId: string )
src/lib/api/v1/contacts.ts:72
↓ 4 callersFunctionsendTemplateMessage
( args: SendTemplateMessageArgs )
src/lib/whatsapp/meta-api.ts:376
↓ 4 callersFunctionserializeContact
(row: Record<string, unknown>)
src/lib/api/v1/contacts.ts:44
↓ 4 callersFunctionsignedHeader
(body: string, secret: string = SECRET)
src/lib/whatsapp/webhook-signature.test.ts:7
↓ 4 callersFunctionslugify
(s: string, fallback: string)
src/components/flows/shared.tsx:286
↓ 4 callersFunctionstartOfLocalDay
(d: Date = new Date())
src/lib/dashboard/date-utils.ts:6
↓ 4 callersFunctionsubmitMessageTemplate
( args: SubmitMessageTemplateArgs )
src/lib/whatsapp/meta-api.ts:554
↓ 4 callersFunctionsupabaseAdmin
()
src/lib/flows/admin-client.ts:8
← previousnext →101–200 of 1,053, ranked by callers