@eventmodelers/node-kit 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +66 -0
- package/package.json +36 -0
- package/src/cli.js +176 -0
- package/templates/.claude/skills/connect/SKILL.md +169 -0
- package/templates/.claude/skills/load-slice/SKILL.md +86 -0
- package/templates/realtime-agent/node_modules/.package-lock.json +107 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/LICENSE +21 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/README.md +190 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.d.ts +4 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.js +7 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/AuthAdminApi.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/AuthClient.d.ts +4 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/AuthClient.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/AuthClient.js +7 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/AuthClient.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.d.ts +716 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.js +1108 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/GoTrueAdminApi.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/GoTrueClient.d.ts +2473 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/GoTrueClient.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js +5217 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/GoTrueClient.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/index.d.ts +9 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/index.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/index.js +20 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/index.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/base64url.d.ts +76 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/base64url.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/base64url.js +269 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/base64url.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/constants.d.ts +26 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/constants.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/constants.js +31 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/constants.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/error-codes.d.ts +7 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/error-codes.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/error-codes.js +3 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/error-codes.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/errors.d.ts +258 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/errors.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/errors.js +290 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/errors.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/fetch.d.ts +54 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/fetch.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/fetch.js +200 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/fetch.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/helpers.d.ts +94 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/helpers.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/helpers.js +406 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/helpers.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/local-storage.d.ts +9 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/local-storage.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/local-storage.js +21 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/local-storage.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/locks.d.ts +107 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/locks.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/locks.js +349 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/locks.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/polyfills.d.ts +5 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/polyfills.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/polyfills.js +29 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/polyfills.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/types.d.ts +2498 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/types.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/types.js +23 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/types.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/version.d.ts +2 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/version.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/version.js +11 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/version.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/web3/ethereum.d.ts +96 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/web3/ethereum.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/web3/ethereum.js +66 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/web3/ethereum.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/web3/solana.d.ts +160 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/web3/solana.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/web3/solana.js +4 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/web3/solana.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/webauthn.d.ts +284 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/webauthn.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/webauthn.dom.d.ts +583 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/webauthn.dom.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/webauthn.dom.js +4 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/webauthn.dom.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/webauthn.errors.d.ts +85 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/webauthn.errors.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/webauthn.errors.js +272 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/webauthn.errors.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/webauthn.js +707 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/main/lib/webauthn.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/AuthAdminApi.d.ts +4 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/AuthAdminApi.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/AuthAdminApi.js +4 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/AuthAdminApi.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/AuthClient.d.ts +4 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/AuthClient.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/AuthClient.js +4 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/AuthClient.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/GoTrueAdminApi.d.ts +716 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/GoTrueAdminApi.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/GoTrueAdminApi.js +1105 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/GoTrueAdminApi.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/GoTrueClient.d.ts +2473 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/GoTrueClient.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/GoTrueClient.js +5214 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/GoTrueClient.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/index.d.ts +9 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/index.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/index.js +9 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/index.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/base64url.d.ts +76 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/base64url.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/base64url.js +257 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/base64url.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/constants.d.ts +26 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/constants.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/constants.js +28 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/constants.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/error-codes.d.ts +7 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/error-codes.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/error-codes.js +2 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/error-codes.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/errors.d.ts +258 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/errors.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/errors.js +267 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/errors.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/fetch.d.ts +54 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/fetch.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/fetch.js +190 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/fetch.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/helpers.d.ts +94 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/helpers.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/helpers.js +378 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/helpers.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/local-storage.d.ts +9 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/local-storage.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/local-storage.js +18 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/local-storage.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/locks.d.ts +107 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/locks.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/locks.js +341 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/locks.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/polyfills.d.ts +5 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/polyfills.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/polyfills.js +26 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/polyfills.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/types.d.ts +2498 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/types.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/types.js +20 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/types.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/version.d.ts +2 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/version.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/version.js +8 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/version.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/web3/ethereum.d.ts +96 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/web3/ethereum.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/web3/ethereum.js +60 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/web3/ethereum.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/web3/solana.d.ts +160 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/web3/solana.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/web3/solana.js +3 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/web3/solana.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/webauthn.d.ts +284 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/webauthn.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/webauthn.dom.d.ts +583 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/webauthn.dom.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/webauthn.dom.js +3 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/webauthn.dom.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/webauthn.errors.d.ts +85 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/webauthn.errors.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/webauthn.errors.js +264 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/webauthn.errors.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/webauthn.js +689 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/module/lib/webauthn.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/tsconfig.module.tsbuildinfo +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/dist/tsconfig.tsbuildinfo +1 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/package.json +44 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/AuthAdminApi.ts +5 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/AuthClient.ts +5 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/GoTrueAdminApi.ts +1267 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/GoTrueClient.ts +6360 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/index.ts +13 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/base64url.ts +308 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/constants.ts +34 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/error-codes.ts +90 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/errors.ts +359 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/fetch.ts +320 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/helpers.ts +476 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/local-storage.ts +21 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/locks.ts +420 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/polyfills.ts +23 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/types.ts +2917 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/version.ts +7 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/web3/ethereum.ts +184 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/web3/solana.ts +186 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/webauthn.dom.ts +636 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/webauthn.errors.ts +329 -0
- package/templates/realtime-agent/node_modules/@supabase/auth-js/src/lib/webauthn.ts +946 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/README.md +134 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/FunctionsClient.d.ts +177 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/FunctionsClient.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/FunctionsClient.js +309 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/FunctionsClient.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/helper.d.ts +3 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/helper.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/helper.js +11 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/helper.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/index.d.ts +3 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/index.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/index.js +12 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/index.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/types.d.ts +122 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/types.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/types.js +98 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/types.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/version.d.ts +2 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/version.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/version.js +11 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/main/version.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/FunctionsClient.d.ts +177 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/FunctionsClient.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/FunctionsClient.js +305 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/FunctionsClient.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/helper.d.ts +3 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/helper.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/helper.js +7 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/helper.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/index.d.ts +3 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/index.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/index.js +3 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/index.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/types.d.ts +122 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/types.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/types.js +91 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/types.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/version.d.ts +2 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/version.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/version.js +8 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/module/version.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/tsconfig.module.tsbuildinfo +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/dist/tsconfig.tsbuildinfo +1 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/package.json +52 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/src/FunctionsClient.ts +335 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/src/edge-runtime.d.ts +214 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/src/helper.ts +8 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/src/index.ts +10 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/src/types.ts +146 -0
- package/templates/realtime-agent/node_modules/@supabase/functions-js/src/version.ts +7 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/LICENSE.md +22 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/README.md +121 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/assets/js/phoenix/ajax.js +116 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/assets/js/phoenix/channel.js +331 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/assets/js/phoenix/constants.js +35 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/assets/js/phoenix/index.js +212 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/assets/js/phoenix/longpoll.js +192 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/assets/js/phoenix/presence.js +208 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/assets/js/phoenix/push.js +134 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/assets/js/phoenix/serializer.js +133 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/assets/js/phoenix/socket.js +756 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/assets/js/phoenix/timer.js +48 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/assets/js/phoenix/types.js +184 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/assets/js/phoenix/utils.js +16 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/package.json +58 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/favicon.ico +0 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/phoenix-orange.png +0 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/phoenix.cjs.js +1825 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/phoenix.cjs.js.map +7 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/phoenix.js +1847 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/phoenix.min.js +2 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/phoenix.mjs +1802 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/phoenix.mjs.map +7 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/phoenix.png +0 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/ajax.d.ts +10 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/ajax.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/channel.d.ts +167 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/channel.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/constants.d.ts +36 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/constants.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/index.d.ts +10 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/index.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/longpoll.d.ts +29 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/longpoll.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/presence.d.ts +107 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/presence.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/push.d.ts +70 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/push.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/serializer.d.ts +74 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/serializer.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/socket.d.ts +291 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/socket.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/timer.d.ts +36 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/timer.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/types.d.ts +280 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/types.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/utils.d.ts +2 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/priv/static/types/utils.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/phoenix/tsconfig.json +20 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/README.md +213 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/dist/index.cjs +5025 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/dist/index.cjs.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/dist/index.d.cts +3828 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/dist/index.d.cts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/dist/index.d.mts +3828 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/dist/index.d.mts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/dist/index.mjs +5017 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/dist/index.mjs.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/package.json +69 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/PostgrestBuilder.ts +688 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/PostgrestClient.ts +447 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/PostgrestError.ts +41 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/PostgrestFilterBuilder.ts +2137 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/PostgrestQueryBuilder.ts +1703 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/PostgrestTransformBuilder.ts +981 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/constants.ts +2 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/index.ts +34 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/select-query-parser/parser.ts +476 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/select-query-parser/result.ts +550 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/select-query-parser/types.ts +129 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/select-query-parser/utils.ts +704 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/types/common/common.ts +83 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/types/common/rpc.ts +148 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/types/feature-flags.ts +17 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/types/types.ts +161 -0
- package/templates/realtime-agent/node_modules/@supabase/postgrest-js/src/version.ts +7 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/README.md +326 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/RealtimeChannel.d.ts +442 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/RealtimeChannel.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/RealtimeChannel.js +719 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/RealtimeChannel.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/RealtimeClient.d.ts +275 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/RealtimeClient.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/RealtimeClient.js +697 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/RealtimeClient.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/RealtimePresence.d.ts +62 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/RealtimePresence.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/RealtimePresence.js +43 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/RealtimePresence.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/index.d.ts +6 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/index.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/index.js +18 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/index.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/constants.d.ts +43 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/constants.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/constants.js +43 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/constants.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/normalizeChannelError.d.ts +10 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/normalizeChannelError.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/normalizeChannelError.js +29 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/normalizeChannelError.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/serializer.d.ts +33 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/serializer.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/serializer.js +155 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/serializer.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/transformers.d.ts +109 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/transformers.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/transformers.js +241 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/transformers.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/version.d.ts +2 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/version.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/version.js +11 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/version.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/websocket-factory.d.ts +82 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/websocket-factory.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/websocket-factory.js +130 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/lib/websocket-factory.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/channelAdapter.d.ts +32 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/channelAdapter.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/channelAdapter.js +103 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/channelAdapter.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/presenceAdapter.d.ts +53 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/presenceAdapter.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/presenceAdapter.js +93 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/presenceAdapter.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/socketAdapter.d.ts +38 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/socketAdapter.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/socketAdapter.js +114 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/socketAdapter.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/types.d.ts +5 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/types.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/types.js +3 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/main/phoenix/types.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/RealtimeChannel.d.ts +442 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/RealtimeChannel.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/RealtimeChannel.js +714 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/RealtimeChannel.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts +275 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/RealtimeClient.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/RealtimeClient.js +693 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/RealtimeClient.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/RealtimePresence.d.ts +62 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/RealtimePresence.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/RealtimePresence.js +38 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/RealtimePresence.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/index.d.ts +6 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/index.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/index.js +6 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/index.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/constants.d.ts +43 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/constants.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/constants.js +40 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/constants.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/normalizeChannelError.d.ts +10 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/normalizeChannelError.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/normalizeChannelError.js +26 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/normalizeChannelError.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/serializer.d.ts +33 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/serializer.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/serializer.js +152 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/serializer.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts +109 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/transformers.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/transformers.js +229 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/transformers.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/version.d.ts +2 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/version.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/version.js +8 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/version.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/websocket-factory.d.ts +82 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/websocket-factory.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/websocket-factory.js +126 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/lib/websocket-factory.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/channelAdapter.d.ts +32 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/channelAdapter.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/channelAdapter.js +100 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/channelAdapter.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/presenceAdapter.d.ts +53 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/presenceAdapter.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/presenceAdapter.js +90 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/presenceAdapter.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/socketAdapter.d.ts +38 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/socketAdapter.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/socketAdapter.js +111 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/socketAdapter.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/types.d.ts +5 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/types.d.ts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/types.js +2 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/module/phoenix/types.js.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/tsconfig.module.tsbuildinfo +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/dist/tsconfig.tsbuildinfo +1 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/package.json +58 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/src/RealtimeChannel.ts +1118 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/src/RealtimeClient.ts +868 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/src/RealtimePresence.ts +71 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/src/index.ts +53 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/src/lib/constants.ts +62 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/src/lib/normalizeChannelError.ts +30 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/src/lib/serializer.ts +203 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/src/lib/transformers.ts +270 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/src/lib/version.ts +7 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/src/lib/websocket-factory.ts +204 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/src/phoenix/channelAdapter.ts +149 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/src/phoenix/presenceAdapter.ts +116 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/src/phoenix/socketAdapter.ts +168 -0
- package/templates/realtime-agent/node_modules/@supabase/realtime-js/src/phoenix/types.ts +32 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/README.md +1262 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/dist/index.cjs +2995 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/dist/index.cjs.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/dist/index.d.cts +2956 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/dist/index.d.cts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/dist/index.d.mts +2956 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/dist/index.d.mts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/dist/index.mjs +2979 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/dist/index.mjs.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/dist/umd/supabase.js +1 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/package.json +62 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/StorageClient.ts +98 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/index.ts +19 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/lib/common/BaseApiClient.ts +104 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/lib/common/errors.ts +160 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/lib/common/fetch.ts +303 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/lib/common/headers.ts +43 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/lib/common/helpers.ts +146 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/lib/constants.ts +4 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/lib/types.ts +654 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/lib/version.ts +7 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/packages/BlobDownloadBuilder.ts +62 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/packages/StorageAnalyticsClient.ts +420 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/packages/StorageBucketApi.ts +414 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/packages/StorageFileApi.ts +1423 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/packages/StorageVectorsClient.ts +644 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/packages/StreamDownloadBuilder.ts +39 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/packages/VectorBucketApi.ts +73 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/packages/VectorDataApi.ts +98 -0
- package/templates/realtime-agent/node_modules/@supabase/storage-js/src/packages/VectorIndexApi.ts +90 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/README.md +238 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/cors.cjs +89 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/cors.cjs.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/cors.d.cts +58 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/cors.d.cts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/cors.d.mts +58 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/cors.d.mts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/cors.mjs +88 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/cors.mjs.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/index.cjs +660 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/index.cjs.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/index.d.cts +616 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/index.d.cts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/index.d.mts +616 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/index.d.mts.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/index.mjs +607 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/index.mjs.map +1 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/dist/umd/supabase.js +24 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/package.json +122 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/src/SupabaseClient.ts +625 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/src/cors.ts +84 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/src/index.ts +106 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/src/lib/SupabaseAuthClient.ts +8 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/src/lib/constants.ts +35 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/src/lib/fetch.ts +36 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/src/lib/helpers.ts +98 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/src/lib/rest/types/common/common.ts +93 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/src/lib/rest/types/common/rpc.ts +158 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/src/lib/types.ts +196 -0
- package/templates/realtime-agent/node_modules/@supabase/supabase-js/src/lib/version.ts +7 -0
- package/templates/realtime-agent/node_modules/iceberg-js/LICENSE +21 -0
- package/templates/realtime-agent/node_modules/iceberg-js/README.md +439 -0
- package/templates/realtime-agent/node_modules/iceberg-js/dist/index.cjs +596 -0
- package/templates/realtime-agent/node_modules/iceberg-js/dist/index.cjs.map +1 -0
- package/templates/realtime-agent/node_modules/iceberg-js/dist/index.d.cts +547 -0
- package/templates/realtime-agent/node_modules/iceberg-js/dist/index.d.ts +547 -0
- package/templates/realtime-agent/node_modules/iceberg-js/dist/index.mjs +587 -0
- package/templates/realtime-agent/node_modules/iceberg-js/dist/index.mjs.map +1 -0
- package/templates/realtime-agent/node_modules/iceberg-js/package.json +77 -0
- package/templates/realtime-agent/node_modules/tslib/CopyrightNotice.txt +15 -0
- package/templates/realtime-agent/node_modules/tslib/LICENSE.txt +12 -0
- package/templates/realtime-agent/node_modules/tslib/README.md +164 -0
- package/templates/realtime-agent/node_modules/tslib/SECURITY.md +41 -0
- package/templates/realtime-agent/node_modules/tslib/modules/index.d.ts +38 -0
- package/templates/realtime-agent/node_modules/tslib/modules/index.js +70 -0
- package/templates/realtime-agent/node_modules/tslib/modules/package.json +3 -0
- package/templates/realtime-agent/node_modules/tslib/package.json +47 -0
- package/templates/realtime-agent/node_modules/tslib/tslib.d.ts +460 -0
- package/templates/realtime-agent/node_modules/tslib/tslib.es6.html +1 -0
- package/templates/realtime-agent/node_modules/tslib/tslib.es6.js +402 -0
- package/templates/realtime-agent/node_modules/tslib/tslib.es6.mjs +401 -0
- package/templates/realtime-agent/node_modules/tslib/tslib.html +1 -0
- package/templates/realtime-agent/node_modules/tslib/tslib.js +484 -0
- package/templates/realtime-agent/package-lock.json +114 -0
- package/templates/realtime-agent/package.json +11 -0
- package/templates/realtime-agent/src/index.js +152 -0
- package/templates/root/AGENT.md +37 -0
- package/templates/root/model.md +1 -0
- package/templates/root/prompt.md +91 -0
- package/templates/root/ralph.sh +47 -0
|
@@ -0,0 +1,335 @@
|
|
|
1
|
+
import { resolveFetch } from './helper'
|
|
2
|
+
import {
|
|
3
|
+
Fetch,
|
|
4
|
+
FunctionInvokeOptions,
|
|
5
|
+
FunctionRegion,
|
|
6
|
+
FunctionsFetchError,
|
|
7
|
+
FunctionsHttpError,
|
|
8
|
+
FunctionsRelayError,
|
|
9
|
+
FunctionsResponse,
|
|
10
|
+
} from './types'
|
|
11
|
+
|
|
12
|
+
/**
|
|
13
|
+
* Client for invoking Supabase Edge Functions.
|
|
14
|
+
*/
|
|
15
|
+
export class FunctionsClient {
|
|
16
|
+
protected url: string
|
|
17
|
+
protected headers: Record<string, string>
|
|
18
|
+
protected region: FunctionRegion
|
|
19
|
+
protected fetch: Fetch
|
|
20
|
+
|
|
21
|
+
/**
|
|
22
|
+
* Creates a new Functions client bound to an Edge Functions URL.
|
|
23
|
+
*
|
|
24
|
+
* @example Using supabase-js (recommended)
|
|
25
|
+
* ```ts
|
|
26
|
+
* import { createClient } from '@supabase/supabase-js'
|
|
27
|
+
*
|
|
28
|
+
* const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
|
|
29
|
+
* const { data, error } = await supabase.functions.invoke('hello-world')
|
|
30
|
+
* ```
|
|
31
|
+
*
|
|
32
|
+
* @category Edge Functions
|
|
33
|
+
*
|
|
34
|
+
* @example Standalone import for bundle-sensitive environments
|
|
35
|
+
* ```ts
|
|
36
|
+
* import { FunctionsClient, FunctionRegion } from '@supabase/functions-js'
|
|
37
|
+
*
|
|
38
|
+
* const functions = new FunctionsClient('https://xyzcompany.supabase.co/functions/v1', {
|
|
39
|
+
* headers: { apikey: 'your-publishable-key' },
|
|
40
|
+
* region: FunctionRegion.UsEast1,
|
|
41
|
+
* })
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
constructor(
|
|
45
|
+
url: string,
|
|
46
|
+
{
|
|
47
|
+
headers = {},
|
|
48
|
+
customFetch,
|
|
49
|
+
region = FunctionRegion.Any,
|
|
50
|
+
}: {
|
|
51
|
+
headers?: Record<string, string>
|
|
52
|
+
customFetch?: Fetch
|
|
53
|
+
region?: FunctionRegion
|
|
54
|
+
} = {}
|
|
55
|
+
) {
|
|
56
|
+
this.url = url
|
|
57
|
+
this.headers = headers
|
|
58
|
+
this.region = region
|
|
59
|
+
this.fetch = resolveFetch(customFetch)
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/**
|
|
63
|
+
* Updates the authorization header
|
|
64
|
+
* @param token - the new jwt token sent in the authorisation header
|
|
65
|
+
*
|
|
66
|
+
* @category Edge Functions
|
|
67
|
+
*
|
|
68
|
+
* @example Setting the authorization header
|
|
69
|
+
* ```ts
|
|
70
|
+
* functions.setAuth(session.access_token)
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
setAuth(token: string) {
|
|
74
|
+
this.headers.Authorization = `Bearer ${token}`
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
/**
|
|
78
|
+
* Invokes a function
|
|
79
|
+
* @param functionName - The name of the Function to invoke.
|
|
80
|
+
* @param options - Options for invoking the Function.
|
|
81
|
+
* @example
|
|
82
|
+
* ```ts
|
|
83
|
+
* const { data, error } = await functions.invoke('hello-world', {
|
|
84
|
+
* body: { name: 'Ada' },
|
|
85
|
+
* })
|
|
86
|
+
* ```
|
|
87
|
+
*
|
|
88
|
+
* @category Edge Functions
|
|
89
|
+
*
|
|
90
|
+
* @remarks
|
|
91
|
+
* - Requires an Authorization header.
|
|
92
|
+
* - Invoke params generally match the [Fetch API](https://developer.mozilla.org/en-US/docs/Web/API/Fetch_API) spec.
|
|
93
|
+
* - When you pass in a body to your function, we automatically attach the Content-Type header for `Blob`, `ArrayBuffer`, `File`, `FormData` and `String`. If it doesn't match any of these types we assume the payload is `json`, serialize it and attach the `Content-Type` header as `application/json`. You can override this behavior by passing in a `Content-Type` header of your own.
|
|
94
|
+
* - Responses are automatically parsed as `json`, `blob` and `form-data` depending on the `Content-Type` header sent by your function. Responses are parsed as `text` by default.
|
|
95
|
+
*
|
|
96
|
+
* @example Basic invocation
|
|
97
|
+
* ```js
|
|
98
|
+
* const { data, error } = await supabase.functions.invoke('hello', {
|
|
99
|
+
* body: { foo: 'bar' }
|
|
100
|
+
* })
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* @exampleDescription Error handling
|
|
104
|
+
* A `FunctionsHttpError` error is returned if your function throws an error, `FunctionsRelayError` if the Supabase Relay has an error processing your function and `FunctionsFetchError` if there is a network error in calling your function.
|
|
105
|
+
*
|
|
106
|
+
* @example Error handling
|
|
107
|
+
* ```js
|
|
108
|
+
* import { FunctionsHttpError, FunctionsRelayError, FunctionsFetchError } from "@supabase/supabase-js";
|
|
109
|
+
*
|
|
110
|
+
* const { data, error } = await supabase.functions.invoke('hello', {
|
|
111
|
+
* headers: {
|
|
112
|
+
* "my-custom-header": 'my-custom-header-value'
|
|
113
|
+
* },
|
|
114
|
+
* body: { foo: 'bar' }
|
|
115
|
+
* })
|
|
116
|
+
*
|
|
117
|
+
* if (error instanceof FunctionsHttpError) {
|
|
118
|
+
* const errorMessage = await error.context.json()
|
|
119
|
+
* console.log('Function returned an error', errorMessage)
|
|
120
|
+
* } else if (error instanceof FunctionsRelayError) {
|
|
121
|
+
* console.log('Relay error:', error.message)
|
|
122
|
+
* } else if (error instanceof FunctionsFetchError) {
|
|
123
|
+
* console.log('Fetch error:', error.message)
|
|
124
|
+
* }
|
|
125
|
+
* ```
|
|
126
|
+
*
|
|
127
|
+
* @exampleDescription Passing custom headers
|
|
128
|
+
* You can pass custom headers to your function. Note: supabase-js automatically passes the `Authorization` header with the signed in user's JWT.
|
|
129
|
+
*
|
|
130
|
+
* @example Passing custom headers
|
|
131
|
+
* ```js
|
|
132
|
+
* const { data, error } = await supabase.functions.invoke('hello', {
|
|
133
|
+
* headers: {
|
|
134
|
+
* "my-custom-header": 'my-custom-header-value'
|
|
135
|
+
* },
|
|
136
|
+
* body: { foo: 'bar' }
|
|
137
|
+
* })
|
|
138
|
+
* ```
|
|
139
|
+
*
|
|
140
|
+
* @exampleDescription Calling with DELETE HTTP verb
|
|
141
|
+
* You can also set the HTTP verb to `DELETE` when calling your Edge Function.
|
|
142
|
+
*
|
|
143
|
+
* @example Calling with DELETE HTTP verb
|
|
144
|
+
* ```js
|
|
145
|
+
* const { data, error } = await supabase.functions.invoke('hello', {
|
|
146
|
+
* headers: {
|
|
147
|
+
* "my-custom-header": 'my-custom-header-value'
|
|
148
|
+
* },
|
|
149
|
+
* body: { foo: 'bar' },
|
|
150
|
+
* method: 'DELETE'
|
|
151
|
+
* })
|
|
152
|
+
* ```
|
|
153
|
+
*
|
|
154
|
+
* @exampleDescription Invoking a Function in the UsEast1 region
|
|
155
|
+
* Here are the available regions:
|
|
156
|
+
* - `FunctionRegion.Any`
|
|
157
|
+
* - `FunctionRegion.ApNortheast1`
|
|
158
|
+
* - `FunctionRegion.ApNortheast2`
|
|
159
|
+
* - `FunctionRegion.ApSouth1`
|
|
160
|
+
* - `FunctionRegion.ApSoutheast1`
|
|
161
|
+
* - `FunctionRegion.ApSoutheast2`
|
|
162
|
+
* - `FunctionRegion.CaCentral1`
|
|
163
|
+
* - `FunctionRegion.EuCentral1`
|
|
164
|
+
* - `FunctionRegion.EuWest1`
|
|
165
|
+
* - `FunctionRegion.EuWest2`
|
|
166
|
+
* - `FunctionRegion.EuWest3`
|
|
167
|
+
* - `FunctionRegion.SaEast1`
|
|
168
|
+
* - `FunctionRegion.UsEast1`
|
|
169
|
+
* - `FunctionRegion.UsWest1`
|
|
170
|
+
* - `FunctionRegion.UsWest2`
|
|
171
|
+
*
|
|
172
|
+
* @example Invoking a Function in the UsEast1 region
|
|
173
|
+
* ```js
|
|
174
|
+
* import { createClient, FunctionRegion } from '@supabase/supabase-js'
|
|
175
|
+
*
|
|
176
|
+
* const { data, error } = await supabase.functions.invoke('hello', {
|
|
177
|
+
* body: { foo: 'bar' },
|
|
178
|
+
* region: FunctionRegion.UsEast1
|
|
179
|
+
* })
|
|
180
|
+
* ```
|
|
181
|
+
*
|
|
182
|
+
* @exampleDescription Calling with GET HTTP verb
|
|
183
|
+
* You can also set the HTTP verb to `GET` when calling your Edge Function.
|
|
184
|
+
*
|
|
185
|
+
* @example Calling with GET HTTP verb
|
|
186
|
+
* ```js
|
|
187
|
+
* const { data, error } = await supabase.functions.invoke('hello', {
|
|
188
|
+
* headers: {
|
|
189
|
+
* "my-custom-header": 'my-custom-header-value'
|
|
190
|
+
* },
|
|
191
|
+
* method: 'GET'
|
|
192
|
+
* })
|
|
193
|
+
* ```
|
|
194
|
+
*
|
|
195
|
+
* @example Standalone client invoke
|
|
196
|
+
* ```ts
|
|
197
|
+
* const { data, error } = await functions.invoke('hello-world', {
|
|
198
|
+
* body: { name: 'Ada' },
|
|
199
|
+
* })
|
|
200
|
+
* ```
|
|
201
|
+
*/
|
|
202
|
+
async invoke<T = any>(
|
|
203
|
+
functionName: string,
|
|
204
|
+
options: FunctionInvokeOptions = {}
|
|
205
|
+
): Promise<FunctionsResponse<T>> {
|
|
206
|
+
let timeoutId: ReturnType<typeof setTimeout> | undefined
|
|
207
|
+
let timeoutController: AbortController | undefined
|
|
208
|
+
|
|
209
|
+
try {
|
|
210
|
+
const { headers, method, body: functionArgs, signal, timeout } = options
|
|
211
|
+
let _headers: Record<string, string> = {}
|
|
212
|
+
let { region } = options
|
|
213
|
+
if (!region) {
|
|
214
|
+
region = this.region
|
|
215
|
+
}
|
|
216
|
+
// Add region as query parameter using URL API
|
|
217
|
+
const url = new URL(`${this.url}/${functionName}`)
|
|
218
|
+
if (region && region !== 'any') {
|
|
219
|
+
_headers['x-region'] = region
|
|
220
|
+
url.searchParams.set('forceFunctionRegion', region)
|
|
221
|
+
}
|
|
222
|
+
let body: any
|
|
223
|
+
if (
|
|
224
|
+
functionArgs &&
|
|
225
|
+
((headers && !Object.prototype.hasOwnProperty.call(headers, 'Content-Type')) || !headers)
|
|
226
|
+
) {
|
|
227
|
+
if (
|
|
228
|
+
(typeof Blob !== 'undefined' && functionArgs instanceof Blob) ||
|
|
229
|
+
functionArgs instanceof ArrayBuffer
|
|
230
|
+
) {
|
|
231
|
+
// will work for File as File inherits Blob
|
|
232
|
+
// also works for ArrayBuffer as it is the same underlying structure as a Blob
|
|
233
|
+
_headers['Content-Type'] = 'application/octet-stream'
|
|
234
|
+
body = functionArgs
|
|
235
|
+
} else if (typeof functionArgs === 'string') {
|
|
236
|
+
// plain string
|
|
237
|
+
_headers['Content-Type'] = 'text/plain'
|
|
238
|
+
body = functionArgs
|
|
239
|
+
} else if (typeof FormData !== 'undefined' && functionArgs instanceof FormData) {
|
|
240
|
+
// don't set content-type headers
|
|
241
|
+
// Request will automatically add the right boundary value
|
|
242
|
+
body = functionArgs
|
|
243
|
+
} else {
|
|
244
|
+
// default, assume this is JSON
|
|
245
|
+
_headers['Content-Type'] = 'application/json'
|
|
246
|
+
body = JSON.stringify(functionArgs)
|
|
247
|
+
}
|
|
248
|
+
} else {
|
|
249
|
+
if (
|
|
250
|
+
functionArgs &&
|
|
251
|
+
typeof functionArgs !== 'string' &&
|
|
252
|
+
!(typeof Blob !== 'undefined' && functionArgs instanceof Blob) &&
|
|
253
|
+
!(functionArgs instanceof ArrayBuffer) &&
|
|
254
|
+
!(typeof FormData !== 'undefined' && functionArgs instanceof FormData)
|
|
255
|
+
) {
|
|
256
|
+
body = JSON.stringify(functionArgs)
|
|
257
|
+
} else {
|
|
258
|
+
body = functionArgs
|
|
259
|
+
}
|
|
260
|
+
}
|
|
261
|
+
|
|
262
|
+
// Handle timeout by creating an AbortController
|
|
263
|
+
let effectiveSignal = signal
|
|
264
|
+
if (timeout) {
|
|
265
|
+
timeoutController = new AbortController()
|
|
266
|
+
timeoutId = setTimeout(() => timeoutController!.abort(), timeout)
|
|
267
|
+
|
|
268
|
+
// If user provided their own signal, we need to respect both
|
|
269
|
+
if (signal) {
|
|
270
|
+
effectiveSignal = timeoutController.signal
|
|
271
|
+
// If the user's signal is aborted, abort our timeout controller too
|
|
272
|
+
signal.addEventListener('abort', () => timeoutController!.abort())
|
|
273
|
+
} else {
|
|
274
|
+
effectiveSignal = timeoutController.signal
|
|
275
|
+
}
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
const response = await this.fetch(url.toString(), {
|
|
279
|
+
method: method || 'POST',
|
|
280
|
+
// headers priority is (high to low):
|
|
281
|
+
// 1. invoke-level headers
|
|
282
|
+
// 2. client-level headers
|
|
283
|
+
// 3. default Content-Type header
|
|
284
|
+
headers: { ..._headers, ...this.headers, ...headers },
|
|
285
|
+
body,
|
|
286
|
+
signal: effectiveSignal,
|
|
287
|
+
}).catch((fetchError) => {
|
|
288
|
+
throw new FunctionsFetchError(fetchError)
|
|
289
|
+
})
|
|
290
|
+
|
|
291
|
+
const isRelayError = response.headers.get('x-relay-error')
|
|
292
|
+
if (isRelayError && isRelayError === 'true') {
|
|
293
|
+
throw new FunctionsRelayError(response)
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
if (!response.ok) {
|
|
297
|
+
throw new FunctionsHttpError(response)
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
let responseType = (response.headers.get('Content-Type') ?? 'text/plain').split(';')[0].trim()
|
|
301
|
+
let data: any
|
|
302
|
+
if (responseType === 'application/json') {
|
|
303
|
+
data = await response.json()
|
|
304
|
+
} else if (
|
|
305
|
+
responseType === 'application/octet-stream' ||
|
|
306
|
+
responseType === 'application/pdf'
|
|
307
|
+
) {
|
|
308
|
+
data = await response.blob()
|
|
309
|
+
} else if (responseType === 'text/event-stream') {
|
|
310
|
+
data = response
|
|
311
|
+
} else if (responseType === 'multipart/form-data') {
|
|
312
|
+
data = await response.formData()
|
|
313
|
+
} else {
|
|
314
|
+
// default to text
|
|
315
|
+
data = await response.text()
|
|
316
|
+
}
|
|
317
|
+
|
|
318
|
+
return { data, error: null, response }
|
|
319
|
+
} catch (error) {
|
|
320
|
+
return {
|
|
321
|
+
data: null,
|
|
322
|
+
error,
|
|
323
|
+
response:
|
|
324
|
+
error instanceof FunctionsHttpError || error instanceof FunctionsRelayError
|
|
325
|
+
? error.context
|
|
326
|
+
: undefined,
|
|
327
|
+
}
|
|
328
|
+
} finally {
|
|
329
|
+
// Clear the timeout if it was set
|
|
330
|
+
if (timeoutId) {
|
|
331
|
+
clearTimeout(timeoutId)
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
}
|
|
335
|
+
}
|
|
@@ -0,0 +1,214 @@
|
|
|
1
|
+
declare type BeforeunloadReason =
|
|
2
|
+
| 'cpu'
|
|
3
|
+
| 'memory'
|
|
4
|
+
| 'wall_clock'
|
|
5
|
+
| 'early_drop'
|
|
6
|
+
| 'termination'
|
|
7
|
+
| (string & {})
|
|
8
|
+
|
|
9
|
+
declare interface WindowEventMap {
|
|
10
|
+
load: Event
|
|
11
|
+
unload: Event
|
|
12
|
+
beforeunload: CustomEvent<BeforeunloadReason>
|
|
13
|
+
drain: Event
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
// TODO(Nyannyacha): These two type defs will be provided later.
|
|
17
|
+
|
|
18
|
+
// deno-lint-ignore no-explicit-any
|
|
19
|
+
type S3FsConfig = any
|
|
20
|
+
|
|
21
|
+
// deno-lint-ignore no-explicit-any
|
|
22
|
+
type TmpFsConfig = any
|
|
23
|
+
|
|
24
|
+
type OtelPropagators = 'TraceContext' | 'Baggage'
|
|
25
|
+
type OtelConsoleConfig = 'Ignore' | 'Capture' | 'Replace'
|
|
26
|
+
type OtelConfig = {
|
|
27
|
+
tracing_enabled?: boolean
|
|
28
|
+
metrics_enabled?: boolean
|
|
29
|
+
console?: OtelConsoleConfig
|
|
30
|
+
propagators?: OtelPropagators[]
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
interface UserWorkerFetchOptions {
|
|
34
|
+
signal?: AbortSignal
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface PermissionsOptions {
|
|
38
|
+
allow_all?: boolean | null
|
|
39
|
+
allow_env?: string[] | null
|
|
40
|
+
deny_env?: string[] | null
|
|
41
|
+
allow_net?: string[] | null
|
|
42
|
+
deny_net?: string[] | null
|
|
43
|
+
allow_ffi?: string[] | null
|
|
44
|
+
deny_ffi?: string[] | null
|
|
45
|
+
allow_read?: string[] | null
|
|
46
|
+
deny_read?: string[] | null
|
|
47
|
+
allow_run?: string[] | null
|
|
48
|
+
deny_run?: string[] | null
|
|
49
|
+
allow_sys?: string[] | null
|
|
50
|
+
deny_sys?: string[] | null
|
|
51
|
+
allow_write?: string[] | null
|
|
52
|
+
deny_write?: string[] | null
|
|
53
|
+
allow_import?: string[] | null
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
interface UserWorkerCreateContext {
|
|
57
|
+
sourceMap?: boolean | null
|
|
58
|
+
importMapPath?: string | null
|
|
59
|
+
shouldBootstrapMockFnThrowError?: boolean | null
|
|
60
|
+
suppressEszipMigrationWarning?: boolean | null
|
|
61
|
+
useReadSyncFileAPI?: boolean | null
|
|
62
|
+
supervisor?: {
|
|
63
|
+
requestAbsentTimeoutMs?: number | null
|
|
64
|
+
}
|
|
65
|
+
otel?: {
|
|
66
|
+
[attribute: string]: string
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
interface UserWorkerCreateOptions {
|
|
71
|
+
servicePath?: string | null
|
|
72
|
+
envVars?: string[][] | [string, string][] | null
|
|
73
|
+
noModuleCache?: boolean | null
|
|
74
|
+
|
|
75
|
+
forceCreate?: boolean | null
|
|
76
|
+
allowRemoteModules?: boolean | null
|
|
77
|
+
customModuleRoot?: string | null
|
|
78
|
+
permissions?: PermissionsOptions | null
|
|
79
|
+
|
|
80
|
+
maybeEszip?: Uint8Array | null
|
|
81
|
+
maybeEntrypoint?: string | null
|
|
82
|
+
maybeModuleCode?: string | null
|
|
83
|
+
|
|
84
|
+
memoryLimitMb?: number | null
|
|
85
|
+
lowMemoryMultiplier?: number | null
|
|
86
|
+
workerTimeoutMs?: number | null
|
|
87
|
+
cpuTimeSoftLimitMs?: number | null
|
|
88
|
+
cpuTimeHardLimitMs?: number | null
|
|
89
|
+
staticPatterns?: string[] | null
|
|
90
|
+
|
|
91
|
+
s3FsConfig?: S3FsConfig | null
|
|
92
|
+
tmpFsConfig?: TmpFsConfig | null
|
|
93
|
+
otelConfig?: OtelConfig | null
|
|
94
|
+
|
|
95
|
+
context?: UserWorkerCreateContext | null
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
interface HeapStatistics {
|
|
99
|
+
totalHeapSize: number
|
|
100
|
+
totalHeapSizeExecutable: number
|
|
101
|
+
totalPhysicalSize: number
|
|
102
|
+
totalAvailableSize: number
|
|
103
|
+
totalGlobalHandlesSize: number
|
|
104
|
+
usedGlobalHandlesSize: number
|
|
105
|
+
usedHeapSize: number
|
|
106
|
+
mallocedMemory: number
|
|
107
|
+
externalMemory: number
|
|
108
|
+
peakMallocedMemory: number
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
interface RuntimeMetrics {
|
|
112
|
+
mainWorkerHeapStats: HeapStatistics
|
|
113
|
+
eventWorkerHeapStats?: HeapStatistics
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
interface MemInfo {
|
|
117
|
+
total: number
|
|
118
|
+
free: number
|
|
119
|
+
available: number
|
|
120
|
+
buffers: number
|
|
121
|
+
cached: number
|
|
122
|
+
swapTotal: number
|
|
123
|
+
swapFree: number
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
declare namespace EdgeRuntime {
|
|
127
|
+
export namespace ai {
|
|
128
|
+
function tryCleanupUnusedSession(): Promise<number>
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
class UserWorker {
|
|
132
|
+
constructor(key: string)
|
|
133
|
+
|
|
134
|
+
fetch(request: Request, options?: UserWorkerFetchOptions): Promise<Response>
|
|
135
|
+
|
|
136
|
+
static create(opts: UserWorkerCreateOptions): Promise<UserWorker>
|
|
137
|
+
static tryCleanupIdleWorkers(timeoutMs: number): Promise<number>
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export function scheduleTermination(): void
|
|
141
|
+
export function waitUntil<T>(promise: Promise<T>): Promise<T>
|
|
142
|
+
export function getRuntimeMetrics(): Promise<RuntimeMetrics>
|
|
143
|
+
export function applySupabaseTag(src: Request, dest: Request): void
|
|
144
|
+
export function systemMemoryInfo(): MemInfo
|
|
145
|
+
export function raiseSegfault(): void
|
|
146
|
+
|
|
147
|
+
export { UserWorker as userWorkers }
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
declare namespace Supabase {
|
|
151
|
+
export namespace ai {
|
|
152
|
+
interface ModelOptions {
|
|
153
|
+
/**
|
|
154
|
+
* Pool embeddings by taking their mean. Applies only for `gte-small` model
|
|
155
|
+
*/
|
|
156
|
+
mean_pool?: boolean
|
|
157
|
+
|
|
158
|
+
/**
|
|
159
|
+
* Normalize the embeddings result. Applies only for `gte-small` model
|
|
160
|
+
*/
|
|
161
|
+
normalize?: boolean
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Stream response from model. Applies only for LLMs like `mistral` (default: false)
|
|
165
|
+
*/
|
|
166
|
+
stream?: boolean
|
|
167
|
+
|
|
168
|
+
/**
|
|
169
|
+
* Automatically abort the request to the model after specified time (in seconds). Applies only for LLMs like `mistral` (default: 60)
|
|
170
|
+
*/
|
|
171
|
+
timeout?: number
|
|
172
|
+
|
|
173
|
+
/**
|
|
174
|
+
* Mode for the inference API host. (default: 'ollama')
|
|
175
|
+
*/
|
|
176
|
+
mode?: 'ollama' | 'openaicompatible'
|
|
177
|
+
signal?: AbortSignal
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
export class Session {
|
|
181
|
+
/**
|
|
182
|
+
* Create a new model session using given model
|
|
183
|
+
*/
|
|
184
|
+
constructor(model: string)
|
|
185
|
+
|
|
186
|
+
/**
|
|
187
|
+
* Execute the given prompt in model session
|
|
188
|
+
*/
|
|
189
|
+
run(
|
|
190
|
+
prompt:
|
|
191
|
+
| string
|
|
192
|
+
| Omit<import('openai').OpenAI.Chat.ChatCompletionCreateParams, 'model' | 'stream'>,
|
|
193
|
+
modelOptions?: ModelOptions
|
|
194
|
+
): unknown
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
declare namespace Deno {
|
|
200
|
+
export namespace errors {
|
|
201
|
+
class WorkerRequestCancelled extends Error {}
|
|
202
|
+
class WorkerAlreadyRetired extends Error {}
|
|
203
|
+
|
|
204
|
+
/** Thrown when an outbound HTTP request is blocked by the rate limiter. */
|
|
205
|
+
class RateLimitError extends Error {
|
|
206
|
+
/**
|
|
207
|
+
* Number of milliseconds until the rate-limit window resets.
|
|
208
|
+
* `null` if the reset time could not be determined.
|
|
209
|
+
*/
|
|
210
|
+
retryAfterMs: number | null
|
|
211
|
+
constructor(message: string, retryAfterMs?: number)
|
|
212
|
+
}
|
|
213
|
+
}
|
|
214
|
+
}
|
|
@@ -0,0 +1,146 @@
|
|
|
1
|
+
export type Fetch = typeof fetch
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Response format
|
|
5
|
+
*/
|
|
6
|
+
export interface FunctionsResponseSuccess<T> {
|
|
7
|
+
data: T
|
|
8
|
+
error: null
|
|
9
|
+
response?: Response
|
|
10
|
+
}
|
|
11
|
+
export interface FunctionsResponseFailure {
|
|
12
|
+
data: null
|
|
13
|
+
error: any
|
|
14
|
+
response?: Response
|
|
15
|
+
}
|
|
16
|
+
export type FunctionsResponse<T> = FunctionsResponseSuccess<T> | FunctionsResponseFailure
|
|
17
|
+
|
|
18
|
+
/**
|
|
19
|
+
* Base error for Supabase Edge Function invocations.
|
|
20
|
+
*
|
|
21
|
+
* @example
|
|
22
|
+
* ```ts
|
|
23
|
+
* import { FunctionsError } from '@supabase/functions-js'
|
|
24
|
+
*
|
|
25
|
+
* throw new FunctionsError('Unexpected error invoking function', 'FunctionsError', {
|
|
26
|
+
* requestId: 'abc123',
|
|
27
|
+
* })
|
|
28
|
+
* ```
|
|
29
|
+
*/
|
|
30
|
+
export class FunctionsError extends Error {
|
|
31
|
+
context: any
|
|
32
|
+
constructor(message: string, name = 'FunctionsError', context?: any) {
|
|
33
|
+
super(message)
|
|
34
|
+
this.name = name
|
|
35
|
+
this.context = context
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
toJSON(): { name: string; message: string; context: any } {
|
|
39
|
+
return {
|
|
40
|
+
name: this.name,
|
|
41
|
+
message: this.message,
|
|
42
|
+
context: this.context,
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
/**
|
|
48
|
+
* Error thrown when the network request to an Edge Function fails.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* import { FunctionsFetchError } from '@supabase/functions-js'
|
|
53
|
+
*
|
|
54
|
+
* throw new FunctionsFetchError({ requestId: 'abc123' })
|
|
55
|
+
* ```
|
|
56
|
+
*/
|
|
57
|
+
export class FunctionsFetchError extends FunctionsError {
|
|
58
|
+
constructor(context: any) {
|
|
59
|
+
super('Failed to send a request to the Edge Function', 'FunctionsFetchError', context)
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
/**
|
|
64
|
+
* Error thrown when the Supabase relay cannot reach the Edge Function.
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* ```ts
|
|
68
|
+
* import { FunctionsRelayError } from '@supabase/functions-js'
|
|
69
|
+
*
|
|
70
|
+
* throw new FunctionsRelayError({ region: 'us-east-1' })
|
|
71
|
+
* ```
|
|
72
|
+
*/
|
|
73
|
+
export class FunctionsRelayError extends FunctionsError {
|
|
74
|
+
constructor(context: any) {
|
|
75
|
+
super('Relay Error invoking the Edge Function', 'FunctionsRelayError', context)
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Error thrown when the Edge Function returns a non-2xx status code.
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* ```ts
|
|
84
|
+
* import { FunctionsHttpError } from '@supabase/functions-js'
|
|
85
|
+
*
|
|
86
|
+
* throw new FunctionsHttpError({ status: 500 })
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
export class FunctionsHttpError extends FunctionsError {
|
|
90
|
+
constructor(context: any) {
|
|
91
|
+
super('Edge Function returned a non-2xx status code', 'FunctionsHttpError', context)
|
|
92
|
+
}
|
|
93
|
+
}
|
|
94
|
+
// Define the enum for the 'region' property
|
|
95
|
+
export enum FunctionRegion {
|
|
96
|
+
Any = 'any',
|
|
97
|
+
ApNortheast1 = 'ap-northeast-1',
|
|
98
|
+
ApNortheast2 = 'ap-northeast-2',
|
|
99
|
+
ApSouth1 = 'ap-south-1',
|
|
100
|
+
ApSoutheast1 = 'ap-southeast-1',
|
|
101
|
+
ApSoutheast2 = 'ap-southeast-2',
|
|
102
|
+
CaCentral1 = 'ca-central-1',
|
|
103
|
+
EuCentral1 = 'eu-central-1',
|
|
104
|
+
EuWest1 = 'eu-west-1',
|
|
105
|
+
EuWest2 = 'eu-west-2',
|
|
106
|
+
EuWest3 = 'eu-west-3',
|
|
107
|
+
SaEast1 = 'sa-east-1',
|
|
108
|
+
UsEast1 = 'us-east-1',
|
|
109
|
+
UsWest1 = 'us-west-1',
|
|
110
|
+
UsWest2 = 'us-west-2',
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type FunctionInvokeOptions = {
|
|
114
|
+
/**
|
|
115
|
+
* Object representing the headers to send with the request.
|
|
116
|
+
*/
|
|
117
|
+
headers?: { [key: string]: string }
|
|
118
|
+
/**
|
|
119
|
+
* The HTTP verb of the request
|
|
120
|
+
*/
|
|
121
|
+
method?: 'POST' | 'GET' | 'PUT' | 'PATCH' | 'DELETE'
|
|
122
|
+
/**
|
|
123
|
+
* The Region to invoke the function in.
|
|
124
|
+
*/
|
|
125
|
+
region?: FunctionRegion
|
|
126
|
+
/**
|
|
127
|
+
* The body of the request.
|
|
128
|
+
*/
|
|
129
|
+
body?:
|
|
130
|
+
| File
|
|
131
|
+
| Blob
|
|
132
|
+
| ArrayBuffer
|
|
133
|
+
| FormData
|
|
134
|
+
| ReadableStream<Uint8Array>
|
|
135
|
+
| Record<string, any>
|
|
136
|
+
| string
|
|
137
|
+
/**
|
|
138
|
+
* The AbortSignal to use for the request.
|
|
139
|
+
* */
|
|
140
|
+
signal?: AbortSignal
|
|
141
|
+
/**
|
|
142
|
+
* The timeout for the request in milliseconds.
|
|
143
|
+
* If the function takes longer than this, the request will be aborted.
|
|
144
|
+
* */
|
|
145
|
+
timeout?: number
|
|
146
|
+
}
|