typebot.io/packages/scripts/package.json
Baptiste Arnaud 5861031f72
🔧 Add WhatsApp status forward URL update script (#2496)
- Add a production script to update the WhatsApp status webhook forward
URL on draft and published typebot settings.
- Register the script in `@typebot.io/scripts` and add the settings
project reference needed for typechecking.
- Ignore local `typebot-prod-db` skill folders for agent tooling.
2026-05-21 11:29:55 +02:00

89 lines
5.6 KiB
JSON

{
"name": "@typebot.io/scripts",
"scripts": {
"start": "SKIP_ENV_CHECK=true dotenv -e ./.env.local -- tsx --tsconfig ./tsconfig.json src/main.ts",
"start:prod": "cd ../prisma && bun db:generate:mysql && cd ../scripts && SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/main.ts",
"db:backup": "tsx --tsconfig ./tsconfig.json src/backupDatabase.ts",
"db:restore": "tsx --tsconfig ./tsconfig.json src/restoreDatabase.ts",
"db:setCustomPlan": "tsx --tsconfig ./tsconfig.json src/setCustomPlan.ts",
"db:bulkUpdate": "tsx --tsconfig ./tsconfig.json src/bulkUpdate.ts",
"db:fixTypebots": "tsx --tsconfig ./tsconfig.json src/fixTypebots.ts",
"inspectUser": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/inspectUser.ts",
"checkSubscriptionsStatus": "tsx --tsconfig ./tsconfig.json src/checkSubscriptionsStatus.ts",
"createChatsPrices": "tsx --tsconfig ./tsconfig.json src/createChatsPrices.ts",
"migrateSubscriptionsToUsageBased": "tsx --tsconfig ./tsconfig.json src/migrateSubscriptionsToUsageBased.ts",
"insertUsersInBrevoList": "tsx --tsconfig ./tsconfig.json src/insertUsersInBrevoList.ts",
"getUsage": "tsx --tsconfig ./tsconfig.json src/getUsage.ts",
"suspendWorkspace": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/suspendWorkspace.ts",
"destroyUser": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/destroyUser.ts",
"updateTypebot": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/updateTypebot.ts",
"updateWorkspace": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/updateWorkspace.ts",
"inspectTypebot": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/inspectTypebot.ts",
"inspectPublishedTypebot": "tsx --tsconfig ./tsconfig.json src/inspectPublishedTypebot.ts",
"inspectWorkspace": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/inspectWorkspace.ts",
"getCoupon": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/getCoupon.ts",
"redeemCoupon": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/redeemCoupon.ts",
"exportResults": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/exportResults.ts",
"updateUserEmail": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/updateUserEmail.ts",
"updateWhatsAppStatusForwardUrl": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/updateWhatsAppStatusForwardUrl.ts",
"inspectChatSession": "tsx --tsconfig ./tsconfig.json src/inspectChatSession.ts",
"searchResult": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/searchResult.ts",
"inspectResult": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/inspectResult.ts",
"inspectCredentials": "tsx --tsconfig ./tsconfig.json src/inspectCredentials.ts",
"deleteChatSession": "tsx --tsconfig ./tsconfig.json src/deleteChatSession.ts",
"checkDependencies": "tsx --tsconfig ./tsconfig.json src/checkDependencies.ts",
"readCsvAndDoSomething": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/readCsvAndDoSomething.ts",
"recurringCheckInactiveUsers": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/recurringCheckInactiveUsers.ts",
"addHttpProxyCredentials": "dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/addHttpProxyCredentials.ts",
"deleteS3Object": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/deleteS3Object.ts",
"cron:hourly": "SKIP_ENV_CHECK=true tsx --tsconfig ./tsconfig.json src/cronJobs/hourly.tsx",
"cron:daily": "SKIP_ENV_CHECK=true tsx --tsconfig ./tsconfig.json src/cronJobs/daily.tsx",
"cron:monthly": "SKIP_ENV_CHECK=true tsx --tsconfig ./tsconfig.json src/cronJobs/monthly.tsx",
"generateWorkspaceSummary": "SKIP_ENV_CHECK=true dotenv -e ./.env.production -- tsx --tsconfig ./tsconfig.json src/generateWorkspaceSummary.ts"
},
"exports": {
"./*": {
"types": "./src/*.ts",
"import": "./src/*.ts",
"default": "./src/*.ts"
},
"./package.json": "./package.json"
},
"dependencies": {
"@ai-sdk/openai": "^2.0.106",
"ky": "^1.2.4",
"@clack/prompts": "^0.11.0",
"@paralleldrive/cuid2": "^2.2.1",
"@typebot.io/billing": "workspace:*",
"@typebot.io/results": "workspace:*",
"@typebot.io/telemetry": "workspace:*",
"cli-progress": "^3.12.0",
"papaparse": "^5.4.1",
"@typebot.io/lib": "workspace:*",
"@typebot.io/prisma": "workspace:*",
"posthog-node": "^5.8.2",
"prompts": "^2.4.2",
"stripe": "17.1.0",
"@typebot.io/workspaces": "workspace:*",
"@typebot.io/typebot": "workspace:*",
"@typebot.io/emails": "workspace:*",
"@typebot.io/env": "workspace:*",
"@typebot.io/blocks-bubbles": "workspace:*",
"@typebot.io/blocks-core": "workspace:*",
"@typebot.io/groups": "workspace:*",
"@typebot.io/rich-text": "workspace:*",
"ai": "^5.0.52",
"p-limit": "^7.2.0",
"zod": "^4.3.5"
},
"devDependencies": {
"@types/bun": "^1.3.9",
"@types/cli-progress": "^3.11.5",
"@types/papaparse": "^5.3.7",
"@types/prompts": "^2.4.4",
"tsx": "^4.19.1",
"@typebot.io/blocks-integrations": "workspace:*",
"dotenv": "^16.4.5"
}
}