@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,688 @@
|
|
|
1
|
+
import type {
|
|
2
|
+
PostgrestSingleResponse,
|
|
3
|
+
PostgrestResponseSuccess,
|
|
4
|
+
CheckMatchingArrayTypes,
|
|
5
|
+
MergePartialResult,
|
|
6
|
+
IsValidResultOverride,
|
|
7
|
+
} from './types/types'
|
|
8
|
+
import {
|
|
9
|
+
ClientServerOptions,
|
|
10
|
+
Fetch,
|
|
11
|
+
DEFAULT_MAX_RETRIES,
|
|
12
|
+
getRetryDelay,
|
|
13
|
+
RETRYABLE_STATUS_CODES,
|
|
14
|
+
RETRYABLE_METHODS,
|
|
15
|
+
} from './types/common/common'
|
|
16
|
+
import PostgrestError from './PostgrestError'
|
|
17
|
+
import { ContainsNull } from './select-query-parser/types'
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Sleep for a given number of milliseconds.
|
|
21
|
+
* If an AbortSignal is provided, the sleep resolves early when the signal is aborted.
|
|
22
|
+
*/
|
|
23
|
+
function sleep(ms: number, signal?: AbortSignal): Promise<void> {
|
|
24
|
+
return new Promise((resolve) => {
|
|
25
|
+
if (signal?.aborted) {
|
|
26
|
+
resolve()
|
|
27
|
+
return
|
|
28
|
+
}
|
|
29
|
+
const id = setTimeout(() => {
|
|
30
|
+
signal?.removeEventListener('abort', onAbort)
|
|
31
|
+
resolve()
|
|
32
|
+
}, ms)
|
|
33
|
+
function onAbort() {
|
|
34
|
+
clearTimeout(id)
|
|
35
|
+
resolve()
|
|
36
|
+
}
|
|
37
|
+
signal?.addEventListener('abort', onAbort)
|
|
38
|
+
})
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
/**
|
|
42
|
+
* Check if a request should be retried based on method and status code.
|
|
43
|
+
*/
|
|
44
|
+
function shouldRetry(
|
|
45
|
+
method: string,
|
|
46
|
+
status: number,
|
|
47
|
+
attemptCount: number,
|
|
48
|
+
retryEnabled: boolean
|
|
49
|
+
): boolean {
|
|
50
|
+
// Don't retry if retries are disabled or we've exhausted attempts
|
|
51
|
+
if (!retryEnabled || attemptCount >= DEFAULT_MAX_RETRIES) {
|
|
52
|
+
return false
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
// Only retry idempotent methods (GET, HEAD, OPTIONS)
|
|
56
|
+
if (!RETRYABLE_METHODS.includes(method as (typeof RETRYABLE_METHODS)[number])) {
|
|
57
|
+
return false
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
// Only retry on specific status codes (520 - Cloudflare errors)
|
|
61
|
+
if (!RETRYABLE_STATUS_CODES.includes(status as (typeof RETRYABLE_STATUS_CODES)[number])) {
|
|
62
|
+
return false
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
return true
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export default abstract class PostgrestBuilder<
|
|
69
|
+
ClientOptions extends ClientServerOptions,
|
|
70
|
+
Result,
|
|
71
|
+
ThrowOnError extends boolean = false,
|
|
72
|
+
> implements
|
|
73
|
+
PromiseLike<
|
|
74
|
+
ThrowOnError extends true ? PostgrestResponseSuccess<Result> : PostgrestSingleResponse<Result>
|
|
75
|
+
>
|
|
76
|
+
{
|
|
77
|
+
protected method: 'GET' | 'HEAD' | 'POST' | 'PATCH' | 'DELETE'
|
|
78
|
+
protected url: URL
|
|
79
|
+
protected headers: Headers
|
|
80
|
+
protected schema?: string
|
|
81
|
+
protected body?: unknown
|
|
82
|
+
protected shouldThrowOnError = false
|
|
83
|
+
protected signal?: AbortSignal
|
|
84
|
+
protected fetch: Fetch
|
|
85
|
+
protected isMaybeSingle: boolean
|
|
86
|
+
protected shouldStripNulls: boolean
|
|
87
|
+
protected urlLengthLimit: number
|
|
88
|
+
|
|
89
|
+
// Retry configuration - enabled by default
|
|
90
|
+
protected retryEnabled: boolean = true
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Creates a builder configured for a specific PostgREST request.
|
|
94
|
+
*
|
|
95
|
+
* @example Using supabase-js (recommended)
|
|
96
|
+
* ```ts
|
|
97
|
+
* import { createClient } from '@supabase/supabase-js'
|
|
98
|
+
*
|
|
99
|
+
* const supabase = createClient('https://xyzcompany.supabase.co', 'your-publishable-key')
|
|
100
|
+
* const { data, error } = await supabase.from('users').select('*')
|
|
101
|
+
* ```
|
|
102
|
+
*
|
|
103
|
+
* @category Database
|
|
104
|
+
*
|
|
105
|
+
* @example Standalone import for bundle-sensitive environments
|
|
106
|
+
* ```ts
|
|
107
|
+
* import { PostgrestQueryBuilder } from '@supabase/postgrest-js'
|
|
108
|
+
*
|
|
109
|
+
* const builder = new PostgrestQueryBuilder(
|
|
110
|
+
* new URL('https://xyzcompany.supabase.co/rest/v1/users'),
|
|
111
|
+
* { headers: new Headers({ apikey: 'your-publishable-key' }) }
|
|
112
|
+
* )
|
|
113
|
+
* ```
|
|
114
|
+
*/
|
|
115
|
+
constructor(builder: {
|
|
116
|
+
method: 'GET' | 'HEAD' | 'POST' | 'PATCH' | 'DELETE'
|
|
117
|
+
url: URL
|
|
118
|
+
headers: HeadersInit
|
|
119
|
+
schema?: string
|
|
120
|
+
body?: unknown
|
|
121
|
+
shouldThrowOnError?: boolean
|
|
122
|
+
signal?: AbortSignal
|
|
123
|
+
fetch?: Fetch
|
|
124
|
+
isMaybeSingle?: boolean
|
|
125
|
+
shouldStripNulls?: boolean
|
|
126
|
+
urlLengthLimit?: number
|
|
127
|
+
// Retry option
|
|
128
|
+
retry?: boolean
|
|
129
|
+
}) {
|
|
130
|
+
this.method = builder.method
|
|
131
|
+
this.url = builder.url
|
|
132
|
+
this.headers = new Headers(builder.headers)
|
|
133
|
+
this.schema = builder.schema
|
|
134
|
+
this.body = builder.body
|
|
135
|
+
this.shouldThrowOnError = builder.shouldThrowOnError ?? false
|
|
136
|
+
this.signal = builder.signal
|
|
137
|
+
this.isMaybeSingle = builder.isMaybeSingle ?? false
|
|
138
|
+
this.shouldStripNulls = builder.shouldStripNulls ?? false
|
|
139
|
+
this.urlLengthLimit = builder.urlLengthLimit ?? 8000
|
|
140
|
+
this.retryEnabled = builder.retry ?? true
|
|
141
|
+
|
|
142
|
+
if (builder.fetch) {
|
|
143
|
+
this.fetch = builder.fetch
|
|
144
|
+
} else {
|
|
145
|
+
this.fetch = fetch
|
|
146
|
+
}
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
/**
|
|
150
|
+
* If there's an error with the query, throwOnError will reject the promise by
|
|
151
|
+
* throwing the error instead of returning it as part of a successful response.
|
|
152
|
+
*
|
|
153
|
+
* {@link https://github.com/supabase/supabase-js/issues/92}
|
|
154
|
+
*
|
|
155
|
+
* @category Database
|
|
156
|
+
*/
|
|
157
|
+
throwOnError(): this & PostgrestBuilder<ClientOptions, Result, true> {
|
|
158
|
+
this.shouldThrowOnError = true
|
|
159
|
+
return this as this & PostgrestBuilder<ClientOptions, Result, true>
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Strip null values from the response data. Properties with `null` values
|
|
164
|
+
* will be omitted from the returned JSON objects.
|
|
165
|
+
*
|
|
166
|
+
* Requires PostgREST 11.2.0+.
|
|
167
|
+
*
|
|
168
|
+
* {@link https://docs.postgrest.org/en/stable/references/api/resource_representation.html#stripped-nulls}
|
|
169
|
+
*
|
|
170
|
+
* @category Database
|
|
171
|
+
* @subcategory Using modifiers
|
|
172
|
+
*
|
|
173
|
+
* @example With `select()`
|
|
174
|
+
* ```ts
|
|
175
|
+
* const { data, error } = await supabase
|
|
176
|
+
* .from('characters')
|
|
177
|
+
* .select()
|
|
178
|
+
* .stripNulls()
|
|
179
|
+
* ```
|
|
180
|
+
*
|
|
181
|
+
* @exampleSql With `select()`
|
|
182
|
+
* ```sql
|
|
183
|
+
* create table
|
|
184
|
+
* characters (id int8 primary key, name text, bio text);
|
|
185
|
+
*
|
|
186
|
+
* insert into
|
|
187
|
+
* characters (id, name, bio)
|
|
188
|
+
* values
|
|
189
|
+
* (1, 'Luke', null),
|
|
190
|
+
* (2, 'Leia', 'Princess of Alderaan');
|
|
191
|
+
* ```
|
|
192
|
+
*
|
|
193
|
+
* @exampleResponse With `select()`
|
|
194
|
+
* ```json
|
|
195
|
+
* {
|
|
196
|
+
* "data": [
|
|
197
|
+
* {
|
|
198
|
+
* "id": 1,
|
|
199
|
+
* "name": "Luke"
|
|
200
|
+
* },
|
|
201
|
+
* {
|
|
202
|
+
* "id": 2,
|
|
203
|
+
* "name": "Leia",
|
|
204
|
+
* "bio": "Princess of Alderaan"
|
|
205
|
+
* }
|
|
206
|
+
* ],
|
|
207
|
+
* "status": 200,
|
|
208
|
+
* "statusText": "OK"
|
|
209
|
+
* }
|
|
210
|
+
* ```
|
|
211
|
+
*/
|
|
212
|
+
stripNulls(): this {
|
|
213
|
+
if (this.headers.get('Accept') === 'text/csv') {
|
|
214
|
+
throw new Error('stripNulls() cannot be used with csv()')
|
|
215
|
+
}
|
|
216
|
+
this.shouldStripNulls = true
|
|
217
|
+
return this
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
/**
|
|
221
|
+
* Set an HTTP header for the request.
|
|
222
|
+
*
|
|
223
|
+
* @category Database
|
|
224
|
+
*/
|
|
225
|
+
setHeader(name: string, value: string): this {
|
|
226
|
+
this.headers = new Headers(this.headers)
|
|
227
|
+
this.headers.set(name, value)
|
|
228
|
+
return this
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
/**
|
|
232
|
+
* @category Database
|
|
233
|
+
*
|
|
234
|
+
* Configure retry behavior for this request.
|
|
235
|
+
*
|
|
236
|
+
* By default, retries are enabled for idempotent requests (GET, HEAD, OPTIONS)
|
|
237
|
+
* that fail with network errors or specific HTTP status codes (503, 520).
|
|
238
|
+
* Retries use exponential backoff (1s, 2s, 4s) with a maximum of 3 attempts.
|
|
239
|
+
*
|
|
240
|
+
* @param enabled - Whether to enable retries for this request
|
|
241
|
+
*
|
|
242
|
+
* @example
|
|
243
|
+
* ```ts
|
|
244
|
+
* // Disable retries for a specific query
|
|
245
|
+
* const { data, error } = await supabase
|
|
246
|
+
* .from('users')
|
|
247
|
+
* .select()
|
|
248
|
+
* .retry(false)
|
|
249
|
+
* ```
|
|
250
|
+
*/
|
|
251
|
+
retry(enabled: boolean): this {
|
|
252
|
+
this.retryEnabled = enabled
|
|
253
|
+
return this
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
then<
|
|
257
|
+
TResult1 = ThrowOnError extends true
|
|
258
|
+
? PostgrestResponseSuccess<Result>
|
|
259
|
+
: PostgrestSingleResponse<Result>,
|
|
260
|
+
TResult2 = never,
|
|
261
|
+
>(
|
|
262
|
+
onfulfilled?:
|
|
263
|
+
| ((
|
|
264
|
+
value: ThrowOnError extends true
|
|
265
|
+
? PostgrestResponseSuccess<Result>
|
|
266
|
+
: PostgrestSingleResponse<Result>
|
|
267
|
+
) => TResult1 | PromiseLike<TResult1>)
|
|
268
|
+
| undefined
|
|
269
|
+
| null,
|
|
270
|
+
onrejected?: ((reason: any) => TResult2 | PromiseLike<TResult2>) | undefined | null
|
|
271
|
+
): PromiseLike<TResult1 | TResult2> {
|
|
272
|
+
// https://postgrest.org/en/stable/api.html#switching-schemas
|
|
273
|
+
if (this.schema === undefined) {
|
|
274
|
+
// skip
|
|
275
|
+
} else if (['GET', 'HEAD'].includes(this.method)) {
|
|
276
|
+
this.headers.set('Accept-Profile', this.schema)
|
|
277
|
+
} else {
|
|
278
|
+
this.headers.set('Content-Profile', this.schema)
|
|
279
|
+
}
|
|
280
|
+
if (this.method !== 'GET' && this.method !== 'HEAD') {
|
|
281
|
+
this.headers.set('Content-Type', 'application/json')
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
// https://docs.postgrest.org/en/stable/references/api/resource_representation.html#stripped-nulls
|
|
285
|
+
if (this.shouldStripNulls) {
|
|
286
|
+
const currentAccept = this.headers.get('Accept')
|
|
287
|
+
if (currentAccept === 'application/vnd.pgrst.object+json') {
|
|
288
|
+
this.headers.set('Accept', 'application/vnd.pgrst.object+json;nulls=stripped')
|
|
289
|
+
} else if (!currentAccept || currentAccept === 'application/json') {
|
|
290
|
+
this.headers.set('Accept', 'application/vnd.pgrst.array+json;nulls=stripped')
|
|
291
|
+
}
|
|
292
|
+
}
|
|
293
|
+
|
|
294
|
+
// NOTE: Invoke w/o `this` to avoid illegal invocation error.
|
|
295
|
+
// https://github.com/supabase/postgrest-js/pull/247
|
|
296
|
+
const _fetch = this.fetch
|
|
297
|
+
|
|
298
|
+
// Execute fetch with retry logic
|
|
299
|
+
const executeWithRetry = async (): Promise<{
|
|
300
|
+
error: any
|
|
301
|
+
data: any
|
|
302
|
+
count: number | null
|
|
303
|
+
status: number
|
|
304
|
+
statusText: string
|
|
305
|
+
}> => {
|
|
306
|
+
let attemptCount = 0
|
|
307
|
+
|
|
308
|
+
while (true) {
|
|
309
|
+
const requestHeaders = new Headers(this.headers)
|
|
310
|
+
if (attemptCount > 0) {
|
|
311
|
+
requestHeaders.set('X-Retry-Count', String(attemptCount))
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
// Only wrap the fetch call itself — processResponse errors must never trigger retries
|
|
315
|
+
let res: Response
|
|
316
|
+
try {
|
|
317
|
+
res = await _fetch(this.url.toString(), {
|
|
318
|
+
method: this.method,
|
|
319
|
+
headers: requestHeaders,
|
|
320
|
+
body: JSON.stringify(this.body, (_, value) =>
|
|
321
|
+
typeof value === 'bigint' ? value.toString() : value
|
|
322
|
+
),
|
|
323
|
+
signal: this.signal,
|
|
324
|
+
})
|
|
325
|
+
// JS allows throwing any value, and serverless or realm-crossing fetch
|
|
326
|
+
// implementations can reject with non-Error objects. `instanceof Error`
|
|
327
|
+
// is too narrow here; narrow at the use site with optional chaining.
|
|
328
|
+
// eslint-disable-next-line @typescript-eslint/no-explicit-any
|
|
329
|
+
} catch (fetchError: any) {
|
|
330
|
+
// Never retry aborted requests
|
|
331
|
+
if (fetchError?.name === 'AbortError' || fetchError?.code === 'ABORT_ERR') {
|
|
332
|
+
throw fetchError
|
|
333
|
+
}
|
|
334
|
+
|
|
335
|
+
// Don't retry network errors for non-idempotent methods
|
|
336
|
+
if (!RETRYABLE_METHODS.includes(this.method as (typeof RETRYABLE_METHODS)[number])) {
|
|
337
|
+
throw fetchError
|
|
338
|
+
}
|
|
339
|
+
|
|
340
|
+
// Check if we should retry network errors
|
|
341
|
+
if (this.retryEnabled && attemptCount < DEFAULT_MAX_RETRIES) {
|
|
342
|
+
const delay = getRetryDelay(attemptCount)
|
|
343
|
+
attemptCount++
|
|
344
|
+
await sleep(delay, this.signal)
|
|
345
|
+
continue
|
|
346
|
+
}
|
|
347
|
+
|
|
348
|
+
// Exhausted retries or retries disabled, throw the last error
|
|
349
|
+
throw fetchError
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
// Check if we should retry this HTTP response
|
|
353
|
+
if (shouldRetry(this.method, res.status, attemptCount, this.retryEnabled)) {
|
|
354
|
+
const retryAfterHeader = res.headers?.get('Retry-After') ?? null
|
|
355
|
+
const delay =
|
|
356
|
+
retryAfterHeader !== null
|
|
357
|
+
? Math.max(0, parseInt(retryAfterHeader, 10) || 0) * 1000
|
|
358
|
+
: getRetryDelay(attemptCount)
|
|
359
|
+
await res.text()
|
|
360
|
+
attemptCount++
|
|
361
|
+
await sleep(delay, this.signal)
|
|
362
|
+
continue
|
|
363
|
+
}
|
|
364
|
+
|
|
365
|
+
return await this.processResponse(res)
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
|
|
369
|
+
let res = executeWithRetry()
|
|
370
|
+
|
|
371
|
+
if (!this.shouldThrowOnError) {
|
|
372
|
+
res = res.catch((fetchError) => {
|
|
373
|
+
// Build detailed error information including cause if available
|
|
374
|
+
// Note: We don't populate code/hint for client-side network errors since those
|
|
375
|
+
// fields are meant for upstream service errors (PostgREST/PostgreSQL)
|
|
376
|
+
let errorDetails = ''
|
|
377
|
+
let hint = ''
|
|
378
|
+
let code = ''
|
|
379
|
+
|
|
380
|
+
// Add cause information if available (e.g., DNS errors, network failures)
|
|
381
|
+
const cause = fetchError?.cause
|
|
382
|
+
if (cause) {
|
|
383
|
+
const causeMessage = cause?.message ?? ''
|
|
384
|
+
const causeCode = cause?.code ?? ''
|
|
385
|
+
|
|
386
|
+
errorDetails = `${fetchError?.name ?? 'FetchError'}: ${fetchError?.message}`
|
|
387
|
+
errorDetails += `\n\nCaused by: ${cause?.name ?? 'Error'}: ${causeMessage}`
|
|
388
|
+
if (causeCode) {
|
|
389
|
+
errorDetails += ` (${causeCode})`
|
|
390
|
+
}
|
|
391
|
+
if (cause?.stack) {
|
|
392
|
+
errorDetails += `\n${cause.stack}`
|
|
393
|
+
}
|
|
394
|
+
} else {
|
|
395
|
+
// No cause available, just include the error stack
|
|
396
|
+
errorDetails = fetchError?.stack ?? ''
|
|
397
|
+
}
|
|
398
|
+
|
|
399
|
+
// Get URL length for potential hints
|
|
400
|
+
const urlLength = this.url.toString().length
|
|
401
|
+
|
|
402
|
+
// Handle AbortError specially with helpful hints
|
|
403
|
+
if (fetchError?.name === 'AbortError' || fetchError?.code === 'ABORT_ERR') {
|
|
404
|
+
code = ''
|
|
405
|
+
hint = 'Request was aborted (timeout or manual cancellation)'
|
|
406
|
+
|
|
407
|
+
if (urlLength > this.urlLengthLimit) {
|
|
408
|
+
hint += `. Note: Your request URL is ${urlLength} characters, which may exceed server limits. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [many IDs])), consider using an RPC function to pass values server-side.`
|
|
409
|
+
}
|
|
410
|
+
}
|
|
411
|
+
// Handle HeadersOverflowError from undici (Node.js fetch implementation)
|
|
412
|
+
else if (
|
|
413
|
+
cause?.name === 'HeadersOverflowError' ||
|
|
414
|
+
cause?.code === 'UND_ERR_HEADERS_OVERFLOW'
|
|
415
|
+
) {
|
|
416
|
+
code = ''
|
|
417
|
+
hint = 'HTTP headers exceeded server limits (typically 16KB)'
|
|
418
|
+
|
|
419
|
+
if (urlLength > this.urlLengthLimit) {
|
|
420
|
+
hint += `. Your request URL is ${urlLength} characters. If selecting many fields, consider using views. If filtering with large arrays (e.g., .in('id', [200+ IDs])), consider using an RPC function instead.`
|
|
421
|
+
}
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
return {
|
|
425
|
+
success: false as const,
|
|
426
|
+
error: {
|
|
427
|
+
message: `${fetchError?.name ?? 'FetchError'}: ${fetchError?.message}`,
|
|
428
|
+
details: errorDetails,
|
|
429
|
+
hint: hint,
|
|
430
|
+
code: code,
|
|
431
|
+
},
|
|
432
|
+
data: null,
|
|
433
|
+
count: null,
|
|
434
|
+
status: 0,
|
|
435
|
+
statusText: '',
|
|
436
|
+
}
|
|
437
|
+
})
|
|
438
|
+
}
|
|
439
|
+
|
|
440
|
+
return (
|
|
441
|
+
res as Promise<
|
|
442
|
+
ThrowOnError extends true
|
|
443
|
+
? PostgrestResponseSuccess<Result>
|
|
444
|
+
: PostgrestSingleResponse<Result>
|
|
445
|
+
>
|
|
446
|
+
).then(onfulfilled, onrejected)
|
|
447
|
+
}
|
|
448
|
+
|
|
449
|
+
/**
|
|
450
|
+
* Process a fetch response and return the standardized postgrest response.
|
|
451
|
+
*/
|
|
452
|
+
private async processResponse(res: Response): Promise<{
|
|
453
|
+
success: boolean
|
|
454
|
+
error: any
|
|
455
|
+
data: any
|
|
456
|
+
count: number | null
|
|
457
|
+
status: number
|
|
458
|
+
statusText: string
|
|
459
|
+
}> {
|
|
460
|
+
let error = null
|
|
461
|
+
let data = null
|
|
462
|
+
let count: number | null = null
|
|
463
|
+
let status = res.status
|
|
464
|
+
let statusText = res.statusText
|
|
465
|
+
|
|
466
|
+
if (res.ok) {
|
|
467
|
+
if (this.method !== 'HEAD') {
|
|
468
|
+
const body = await res.text()
|
|
469
|
+
if (body === '') {
|
|
470
|
+
// Prefer: return=minimal
|
|
471
|
+
} else if (this.headers.get('Accept') === 'text/csv') {
|
|
472
|
+
data = body
|
|
473
|
+
} else if (
|
|
474
|
+
this.headers.get('Accept') &&
|
|
475
|
+
this.headers.get('Accept')?.includes('application/vnd.pgrst.plan+text')
|
|
476
|
+
) {
|
|
477
|
+
data = body
|
|
478
|
+
} else {
|
|
479
|
+
data = JSON.parse(body)
|
|
480
|
+
}
|
|
481
|
+
}
|
|
482
|
+
|
|
483
|
+
const countHeader = this.headers.get('Prefer')?.match(/count=(exact|planned|estimated)/)
|
|
484
|
+
const contentRange = res.headers.get('content-range')?.split('/')
|
|
485
|
+
if (countHeader && contentRange && contentRange.length > 1) {
|
|
486
|
+
count = parseInt(contentRange[1])
|
|
487
|
+
}
|
|
488
|
+
|
|
489
|
+
// Fix for https://github.com/supabase/postgrest-js/issues/361 — applies to all methods.
|
|
490
|
+
if (this.isMaybeSingle && Array.isArray(data)) {
|
|
491
|
+
if (data.length > 1) {
|
|
492
|
+
error = {
|
|
493
|
+
// https://github.com/PostgREST/postgrest/blob/a867d79c42419af16c18c3fb019eba8df992626f/src/PostgREST/Error.hs#L553
|
|
494
|
+
code: 'PGRST116',
|
|
495
|
+
details: `Results contain ${data.length} rows, application/vnd.pgrst.object+json requires 1 row`,
|
|
496
|
+
hint: null,
|
|
497
|
+
message: 'JSON object requested, multiple (or no) rows returned',
|
|
498
|
+
}
|
|
499
|
+
data = null
|
|
500
|
+
count = null
|
|
501
|
+
status = 406
|
|
502
|
+
statusText = 'Not Acceptable'
|
|
503
|
+
} else if (data.length === 1) {
|
|
504
|
+
data = data[0]
|
|
505
|
+
} else {
|
|
506
|
+
data = null
|
|
507
|
+
}
|
|
508
|
+
}
|
|
509
|
+
} else {
|
|
510
|
+
const body = await res.text()
|
|
511
|
+
|
|
512
|
+
try {
|
|
513
|
+
error = JSON.parse(body)
|
|
514
|
+
|
|
515
|
+
// Workaround for https://github.com/supabase/postgrest-js/issues/295
|
|
516
|
+
if (Array.isArray(error) && res.status === 404) {
|
|
517
|
+
data = []
|
|
518
|
+
error = null
|
|
519
|
+
status = 200
|
|
520
|
+
statusText = 'OK'
|
|
521
|
+
}
|
|
522
|
+
} catch {
|
|
523
|
+
// Workaround for https://github.com/supabase/postgrest-js/issues/295
|
|
524
|
+
if (res.status === 404 && body === '') {
|
|
525
|
+
status = 204
|
|
526
|
+
statusText = 'No Content'
|
|
527
|
+
} else {
|
|
528
|
+
error = {
|
|
529
|
+
message: body,
|
|
530
|
+
}
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
|
|
534
|
+
if (error && this.shouldThrowOnError) {
|
|
535
|
+
throw new PostgrestError(error)
|
|
536
|
+
}
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
return {
|
|
540
|
+
success: error === null,
|
|
541
|
+
error,
|
|
542
|
+
data,
|
|
543
|
+
count,
|
|
544
|
+
status,
|
|
545
|
+
statusText,
|
|
546
|
+
}
|
|
547
|
+
}
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* Override the type of the returned `data`.
|
|
551
|
+
*
|
|
552
|
+
* @typeParam NewResult - The new result type to override with
|
|
553
|
+
* @deprecated Use overrideTypes<yourType, { merge: false }>() method at the end of your call chain instead
|
|
554
|
+
*
|
|
555
|
+
* @category Database
|
|
556
|
+
*/
|
|
557
|
+
returns<NewResult>(): PostgrestBuilder<
|
|
558
|
+
ClientOptions,
|
|
559
|
+
CheckMatchingArrayTypes<Result, NewResult>,
|
|
560
|
+
ThrowOnError
|
|
561
|
+
> {
|
|
562
|
+
/* istanbul ignore next */
|
|
563
|
+
return this as unknown as PostgrestBuilder<
|
|
564
|
+
ClientOptions,
|
|
565
|
+
CheckMatchingArrayTypes<Result, NewResult>,
|
|
566
|
+
ThrowOnError
|
|
567
|
+
>
|
|
568
|
+
}
|
|
569
|
+
|
|
570
|
+
/**
|
|
571
|
+
* Override the type of the returned `data` field in the response.
|
|
572
|
+
*
|
|
573
|
+
* @typeParam NewResult - The new type to cast the response data to
|
|
574
|
+
* @typeParam Options - Optional type configuration (defaults to { merge: true })
|
|
575
|
+
* @typeParam Options.merge - When true, merges the new type with existing return type. When false, replaces the existing types entirely (defaults to true)
|
|
576
|
+
* @example
|
|
577
|
+
* ```typescript
|
|
578
|
+
* // Merge with existing types (default behavior)
|
|
579
|
+
* const query = supabase
|
|
580
|
+
* .from('users')
|
|
581
|
+
* .select()
|
|
582
|
+
* .overrideTypes<{ custom_field: string }>()
|
|
583
|
+
*
|
|
584
|
+
* // Replace existing types completely
|
|
585
|
+
* const replaceQuery = supabase
|
|
586
|
+
* .from('users')
|
|
587
|
+
* .select()
|
|
588
|
+
* .overrideTypes<{ id: number; name: string }, { merge: false }>()
|
|
589
|
+
* ```
|
|
590
|
+
* @returns A PostgrestBuilder instance with the new type
|
|
591
|
+
*
|
|
592
|
+
* @category Database
|
|
593
|
+
* @subcategory Using modifiers
|
|
594
|
+
*
|
|
595
|
+
* @example Complete Override type of successful response
|
|
596
|
+
* ```ts
|
|
597
|
+
* const { data } = await supabase
|
|
598
|
+
* .from('countries')
|
|
599
|
+
* .select()
|
|
600
|
+
* .overrideTypes<Array<MyType>, { merge: false }>()
|
|
601
|
+
* ```
|
|
602
|
+
*
|
|
603
|
+
* @exampleResponse Complete Override type of successful response
|
|
604
|
+
* ```ts
|
|
605
|
+
* let x: typeof data // MyType[]
|
|
606
|
+
* ```
|
|
607
|
+
*
|
|
608
|
+
* @example Complete Override type of object response
|
|
609
|
+
* ```ts
|
|
610
|
+
* const { data } = await supabase
|
|
611
|
+
* .from('countries')
|
|
612
|
+
* .select()
|
|
613
|
+
* .maybeSingle()
|
|
614
|
+
* .overrideTypes<MyType, { merge: false }>()
|
|
615
|
+
* ```
|
|
616
|
+
*
|
|
617
|
+
* @exampleResponse Complete Override type of object response
|
|
618
|
+
* ```ts
|
|
619
|
+
* let x: typeof data // MyType | null
|
|
620
|
+
* ```
|
|
621
|
+
*
|
|
622
|
+
* @example Partial Override type of successful response
|
|
623
|
+
* ```ts
|
|
624
|
+
* const { data } = await supabase
|
|
625
|
+
* .from('countries')
|
|
626
|
+
* .select()
|
|
627
|
+
* .overrideTypes<Array<{ status: "A" | "B" }>>()
|
|
628
|
+
* ```
|
|
629
|
+
*
|
|
630
|
+
* @exampleResponse Partial Override type of successful response
|
|
631
|
+
* ```ts
|
|
632
|
+
* let x: typeof data // Array<CountryRowProperties & { status: "A" | "B" }>
|
|
633
|
+
* ```
|
|
634
|
+
*
|
|
635
|
+
* @example Partial Override type of object response
|
|
636
|
+
* ```ts
|
|
637
|
+
* const { data } = await supabase
|
|
638
|
+
* .from('countries')
|
|
639
|
+
* .select()
|
|
640
|
+
* .maybeSingle()
|
|
641
|
+
* .overrideTypes<{ status: "A" | "B" }>()
|
|
642
|
+
* ```
|
|
643
|
+
*
|
|
644
|
+
* @exampleResponse Partial Override type of object response
|
|
645
|
+
* ```ts
|
|
646
|
+
* let x: typeof data // CountryRowProperties & { status: "A" | "B" } | null
|
|
647
|
+
* ```
|
|
648
|
+
*
|
|
649
|
+
* @example Merge vs replace existing types
|
|
650
|
+
* ```typescript
|
|
651
|
+
* // Merge with existing types (default behavior)
|
|
652
|
+
* const query = supabase
|
|
653
|
+
* .from('users')
|
|
654
|
+
* .select()
|
|
655
|
+
* .overrideTypes<{ custom_field: string }>()
|
|
656
|
+
*
|
|
657
|
+
* // Replace existing types completely
|
|
658
|
+
* const replaceQuery = supabase
|
|
659
|
+
* .from('users')
|
|
660
|
+
* .select()
|
|
661
|
+
* .overrideTypes<{ id: number; name: string }, { merge: false }>()
|
|
662
|
+
* ```
|
|
663
|
+
*/
|
|
664
|
+
overrideTypes<
|
|
665
|
+
NewResult,
|
|
666
|
+
Options extends { merge?: boolean } = { merge: true },
|
|
667
|
+
>(): PostgrestBuilder<
|
|
668
|
+
ClientOptions,
|
|
669
|
+
IsValidResultOverride<Result, NewResult, false, false> extends true
|
|
670
|
+
? // Preserve the optionality of the result if the overriden type is an object (case of chaining with `maybeSingle`)
|
|
671
|
+
ContainsNull<Result> extends true
|
|
672
|
+
? MergePartialResult<NewResult, NonNullable<Result>, Options> | null
|
|
673
|
+
: MergePartialResult<NewResult, Result, Options>
|
|
674
|
+
: CheckMatchingArrayTypes<Result, NewResult>,
|
|
675
|
+
ThrowOnError
|
|
676
|
+
> {
|
|
677
|
+
return this as unknown as PostgrestBuilder<
|
|
678
|
+
ClientOptions,
|
|
679
|
+
IsValidResultOverride<Result, NewResult, false, false> extends true
|
|
680
|
+
? // Preserve the optionality of the result if the overriden type is an object (case of chaining with `maybeSingle`)
|
|
681
|
+
ContainsNull<Result> extends true
|
|
682
|
+
? MergePartialResult<NewResult, NonNullable<Result>, Options> | null
|
|
683
|
+
: MergePartialResult<NewResult, Result, Options>
|
|
684
|
+
: CheckMatchingArrayTypes<Result, NewResult>,
|
|
685
|
+
ThrowOnError
|
|
686
|
+
>
|
|
687
|
+
}
|
|
688
|
+
}
|