@gorth-io/structure 0.0.0-alpha.10
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/LICENSE +21 -0
- package/README.md +83 -0
- package/dist/cores/ably/ai-transport/index.cjs +1 -0
- package/dist/cores/ably/ai-transport/index.d.cts +1 -0
- package/dist/cores/ably/ai-transport/index.d.ts +1 -0
- package/dist/cores/ably/ai-transport/index.js +1 -0
- package/dist/cores/ably/ai-transport/react/index.cjs +1 -0
- package/dist/cores/ably/ai-transport/react/index.d.cts +1 -0
- package/dist/cores/ably/ai-transport/react/index.d.ts +1 -0
- package/dist/cores/ably/ai-transport/react/index.js +1 -0
- package/dist/cores/ably/chat/index.cjs +1 -0
- package/dist/cores/ably/chat/index.d.cts +1 -0
- package/dist/cores/ably/chat/index.d.ts +1 -0
- package/dist/cores/ably/chat/index.js +1 -0
- package/dist/cores/ably/chat/react/index.cjs +1 -0
- package/dist/cores/ably/chat/react/index.d.cts +1 -0
- package/dist/cores/ably/chat/react/index.d.ts +1 -0
- package/dist/cores/ably/chat/react/index.js +1 -0
- package/dist/cores/ably/index.cjs +1 -0
- package/dist/cores/ably/index.d.cts +1 -0
- package/dist/cores/ably/index.d.ts +1 -0
- package/dist/cores/ably/index.js +1 -0
- package/dist/cores/ably/liveobjects/index.cjs +1 -0
- package/dist/cores/ably/liveobjects/index.d.cts +1 -0
- package/dist/cores/ably/liveobjects/index.d.ts +1 -0
- package/dist/cores/ably/liveobjects/index.js +1 -0
- package/dist/cores/ably/liveobjects/react/index.cjs +1 -0
- package/dist/cores/ably/liveobjects/react/index.d.cts +1 -0
- package/dist/cores/ably/liveobjects/react/index.d.ts +1 -0
- package/dist/cores/ably/liveobjects/react/index.js +1 -0
- package/dist/cores/ably/modular/index.cjs +1 -0
- package/dist/cores/ably/modular/index.d.cts +1 -0
- package/dist/cores/ably/modular/index.d.ts +1 -0
- package/dist/cores/ably/modular/index.js +1 -0
- package/dist/cores/ably/push/index.cjs +1 -0
- package/dist/cores/ably/push/index.d.cts +2 -0
- package/dist/cores/ably/push/index.d.ts +2 -0
- package/dist/cores/ably/push/index.js +1 -0
- package/dist/cores/ably/react/index.cjs +1 -0
- package/dist/cores/ably/react/index.d.cts +1 -0
- package/dist/cores/ably/react/index.d.ts +1 -0
- package/dist/cores/ably/react/index.js +1 -0
- package/dist/cores/ably/spaces/index.cjs +1 -0
- package/dist/cores/ably/spaces/index.d.cts +1 -0
- package/dist/cores/ably/spaces/index.d.ts +1 -0
- package/dist/cores/ably/spaces/index.js +1 -0
- package/dist/cores/axios.cjs +1 -0
- package/dist/cores/axios.d.cts +3 -0
- package/dist/cores/axios.d.ts +3 -0
- package/dist/cores/axios.js +1 -0
- package/dist/cores/graphql/index.cjs +1 -0
- package/dist/cores/graphql/index.d.cts +1 -0
- package/dist/cores/graphql/index.d.ts +1 -0
- package/dist/cores/graphql/index.js +1 -0
- package/dist/cores/graphql/request.cjs +1 -0
- package/dist/cores/graphql/request.d.cts +1 -0
- package/dist/cores/graphql/request.d.ts +1 -0
- package/dist/cores/graphql/request.js +1 -0
- package/dist/cores/graphql/tag.cjs +1 -0
- package/dist/cores/graphql/tag.d.cts +1 -0
- package/dist/cores/graphql/tag.d.ts +1 -0
- package/dist/cores/graphql/tag.js +1 -0
- package/dist/cores/index.cjs +0 -0
- package/dist/cores/index.d.cts +1 -0
- package/dist/cores/index.d.ts +1 -0
- package/dist/cores/index.js +1 -0
- package/dist/cores/jose.cjs +1 -0
- package/dist/cores/jose.d.cts +1 -0
- package/dist/cores/jose.d.ts +1 -0
- package/dist/cores/jose.js +1 -0
- package/dist/cores/pg.cjs +1 -0
- package/dist/cores/pg.d.cts +3 -0
- package/dist/cores/pg.d.ts +3 -0
- package/dist/cores/pg.js +2 -0
- package/dist/cores/pg.js.map +1 -0
- package/dist/cores/postgres.cjs +1 -0
- package/dist/cores/postgres.d.cts +2 -0
- package/dist/cores/postgres.d.ts +2 -0
- package/dist/cores/postgres.js +2 -0
- package/dist/cores/postgres.js.map +1 -0
- package/dist/cores/supabase/index.cjs +1 -0
- package/dist/cores/supabase/index.d.cts +1 -0
- package/dist/cores/supabase/index.d.ts +1 -0
- package/dist/cores/supabase/index.js +1 -0
- package/dist/cores/supabase/postgrest.cjs +1 -0
- package/dist/cores/supabase/postgrest.d.cts +1 -0
- package/dist/cores/supabase/postgrest.d.ts +1 -0
- package/dist/cores/supabase/postgrest.js +1 -0
- package/dist/cores/supabase/server.cjs +1 -0
- package/dist/cores/supabase/server.d.cts +1 -0
- package/dist/cores/supabase/server.d.ts +1 -0
- package/dist/cores/supabase/server.js +1 -0
- package/dist/cores/supabase/ssr.cjs +1 -0
- package/dist/cores/supabase/ssr.d.cts +1 -0
- package/dist/cores/supabase/ssr.d.ts +1 -0
- package/dist/cores/supabase/ssr.js +1 -0
- package/dist/cores/uuid.cjs +1 -0
- package/dist/cores/uuid.d.cts +1 -0
- package/dist/cores/uuid.d.ts +1 -0
- package/dist/cores/uuid.js +1 -0
- package/dist/cores/zod.cjs +1 -0
- package/dist/cores/zod.d.cts +3 -0
- package/dist/cores/zod.d.ts +3 -0
- package/dist/cores/zod.js +1 -0
- package/dist/formatter-vjbCoK9k.d.ts +12 -0
- package/dist/formatter-vjbCoK9k.d.ts.map +1 -0
- package/dist/index.cjs +1 -0
- package/dist/index.d.cts +6 -0
- package/dist/index.d.ts +6 -0
- package/dist/index.js +1 -0
- package/dist/interface-BFsLlmGy.d.ts +1 -0
- package/dist/interface-ii8DV63k.d.cts +283 -0
- package/dist/interface-ii8DV63k.d.cts.map +1 -0
- package/dist/interface-ii8DV63k.d.ts +283 -0
- package/dist/interface-ii8DV63k.d.ts.map +1 -0
- package/dist/lib/permission.cjs +0 -0
- package/dist/lib/permission.d.cts +1 -0
- package/dist/lib/permission.d.ts +1 -0
- package/dist/lib/permission.js +1 -0
- package/dist/modules/auth/client/index.cjs +1 -0
- package/dist/modules/auth/client/index.d.cts +6 -0
- package/dist/modules/auth/client/index.d.ts +6 -0
- package/dist/modules/auth/client/index.js +1 -0
- package/dist/modules/auth/client/retry.cjs +1 -0
- package/dist/modules/auth/client/retry.d.cts +11 -0
- package/dist/modules/auth/client/retry.d.cts.map +1 -0
- package/dist/modules/auth/client/retry.d.ts +11 -0
- package/dist/modules/auth/client/retry.d.ts.map +1 -0
- package/dist/modules/auth/client/retry.js +2 -0
- package/dist/modules/auth/client/retry.js.map +1 -0
- package/dist/modules/auth/interface.cjs +1 -0
- package/dist/modules/auth/interface.d.cts +8 -0
- package/dist/modules/auth/interface.d.cts.map +1 -0
- package/dist/modules/auth/interface.d.ts +8 -0
- package/dist/modules/auth/interface.d.ts.map +1 -0
- package/dist/modules/auth/interface.js +2 -0
- package/dist/modules/auth/interface.js.map +1 -0
- package/dist/modules/auth/policy.cjs +1 -0
- package/dist/modules/auth/policy.d.cts +15 -0
- package/dist/modules/auth/policy.d.cts.map +1 -0
- package/dist/modules/auth/policy.d.ts +15 -0
- package/dist/modules/auth/policy.d.ts.map +1 -0
- package/dist/modules/auth/policy.js +2 -0
- package/dist/modules/auth/policy.js.map +1 -0
- package/dist/modules/auth/server/bearer.cjs +1 -0
- package/dist/modules/auth/server/bearer.d.cts +25 -0
- package/dist/modules/auth/server/bearer.d.cts.map +1 -0
- package/dist/modules/auth/server/bearer.d.ts +25 -0
- package/dist/modules/auth/server/bearer.d.ts.map +1 -0
- package/dist/modules/auth/server/bearer.js +2 -0
- package/dist/modules/auth/server/bearer.js.map +1 -0
- package/dist/modules/auth/server/claims.cjs +1 -0
- package/dist/modules/auth/server/claims.d.cts +37 -0
- package/dist/modules/auth/server/claims.d.cts.map +1 -0
- package/dist/modules/auth/server/claims.d.ts +37 -0
- package/dist/modules/auth/server/claims.d.ts.map +1 -0
- package/dist/modules/auth/server/claims.js +2 -0
- package/dist/modules/auth/server/claims.js.map +1 -0
- package/dist/modules/auth/server/crypto.cjs +1 -0
- package/dist/modules/auth/server/crypto.d.cts +3 -0
- package/dist/modules/auth/server/crypto.d.cts.map +1 -0
- package/dist/modules/auth/server/crypto.d.ts +3 -0
- package/dist/modules/auth/server/crypto.d.ts.map +1 -0
- package/dist/modules/auth/server/crypto.js +2 -0
- package/dist/modules/auth/server/crypto.js.map +1 -0
- package/dist/modules/auth/server/grant-guard.cjs +1 -0
- package/dist/modules/auth/server/grant-guard.d.cts +6 -0
- package/dist/modules/auth/server/grant-guard.d.cts.map +1 -0
- package/dist/modules/auth/server/grant-guard.d.ts +6 -0
- package/dist/modules/auth/server/grant-guard.d.ts.map +1 -0
- package/dist/modules/auth/server/grant-guard.js +2 -0
- package/dist/modules/auth/server/grant-guard.js.map +1 -0
- package/dist/modules/auth/server/identity-cache.cjs +1 -0
- package/dist/modules/auth/server/identity-cache.d.cts +8 -0
- package/dist/modules/auth/server/identity-cache.d.cts.map +1 -0
- package/dist/modules/auth/server/identity-cache.d.ts +8 -0
- package/dist/modules/auth/server/identity-cache.d.ts.map +1 -0
- package/dist/modules/auth/server/identity-cache.js +2 -0
- package/dist/modules/auth/server/identity-cache.js.map +1 -0
- package/dist/modules/auth/server/identity.cjs +1 -0
- package/dist/modules/auth/server/identity.d.cts +5 -0
- package/dist/modules/auth/server/identity.d.cts.map +1 -0
- package/dist/modules/auth/server/identity.d.ts +5 -0
- package/dist/modules/auth/server/identity.d.ts.map +1 -0
- package/dist/modules/auth/server/identity.js +2 -0
- package/dist/modules/auth/server/identity.js.map +1 -0
- package/dist/modules/auth/server/index.cjs +1 -0
- package/dist/modules/auth/server/index.d.cts +17 -0
- package/dist/modules/auth/server/index.d.ts +17 -0
- package/dist/modules/auth/server/index.js +1 -0
- package/dist/modules/auth/server/interface.cjs +0 -0
- package/dist/modules/auth/server/interface.d.cts +2 -0
- package/dist/modules/auth/server/interface.d.ts +3 -0
- package/dist/modules/auth/server/interface.js +1 -0
- package/dist/modules/auth/server/logout.cjs +1 -0
- package/dist/modules/auth/server/logout.d.cts +10 -0
- package/dist/modules/auth/server/logout.d.cts.map +1 -0
- package/dist/modules/auth/server/logout.d.ts +10 -0
- package/dist/modules/auth/server/logout.d.ts.map +1 -0
- package/dist/modules/auth/server/logout.js +2 -0
- package/dist/modules/auth/server/logout.js.map +1 -0
- package/dist/modules/auth/server/machine.cjs +1 -0
- package/dist/modules/auth/server/machine.d.cts +28 -0
- package/dist/modules/auth/server/machine.d.cts.map +1 -0
- package/dist/modules/auth/server/machine.d.ts +28 -0
- package/dist/modules/auth/server/machine.d.ts.map +1 -0
- package/dist/modules/auth/server/machine.js +2 -0
- package/dist/modules/auth/server/machine.js.map +1 -0
- package/dist/modules/auth/server/proof.cjs +1 -0
- package/dist/modules/auth/server/proof.d.cts +23 -0
- package/dist/modules/auth/server/proof.d.cts.map +1 -0
- package/dist/modules/auth/server/proof.d.ts +23 -0
- package/dist/modules/auth/server/proof.d.ts.map +1 -0
- package/dist/modules/auth/server/proof.js +2 -0
- package/dist/modules/auth/server/proof.js.map +1 -0
- package/dist/modules/auth/server/provider.cjs +1 -0
- package/dist/modules/auth/server/provider.d.cts +9 -0
- package/dist/modules/auth/server/provider.d.cts.map +1 -0
- package/dist/modules/auth/server/provider.d.ts +9 -0
- package/dist/modules/auth/server/provider.d.ts.map +1 -0
- package/dist/modules/auth/server/provider.js +2 -0
- package/dist/modules/auth/server/provider.js.map +1 -0
- package/dist/modules/auth/server/resource.cjs +1 -0
- package/dist/modules/auth/server/resource.d.cts +10 -0
- package/dist/modules/auth/server/resource.d.cts.map +1 -0
- package/dist/modules/auth/server/resource.d.ts +10 -0
- package/dist/modules/auth/server/resource.d.ts.map +1 -0
- package/dist/modules/auth/server/resource.js +2 -0
- package/dist/modules/auth/server/resource.js.map +1 -0
- package/dist/modules/auth/server/revocation.cjs +1 -0
- package/dist/modules/auth/server/revocation.d.cts +4 -0
- package/dist/modules/auth/server/revocation.d.cts.map +1 -0
- package/dist/modules/auth/server/revocation.d.ts +4 -0
- package/dist/modules/auth/server/revocation.d.ts.map +1 -0
- package/dist/modules/auth/server/revocation.js +2 -0
- package/dist/modules/auth/server/revocation.js.map +1 -0
- package/dist/modules/auth/server/user-info.cjs +1 -0
- package/dist/modules/auth/server/user-info.d.cts +19 -0
- package/dist/modules/auth/server/user-info.d.cts.map +1 -0
- package/dist/modules/auth/server/user-info.d.ts +19 -0
- package/dist/modules/auth/server/user-info.d.ts.map +1 -0
- package/dist/modules/auth/server/user-info.js +2 -0
- package/dist/modules/auth/server/user-info.js.map +1 -0
- package/dist/modules/common/admin.cjs +1 -0
- package/dist/modules/common/admin.d.cts +4 -0
- package/dist/modules/common/admin.d.cts.map +1 -0
- package/dist/modules/common/admin.d.ts +4 -0
- package/dist/modules/common/admin.d.ts.map +1 -0
- package/dist/modules/common/admin.js +2 -0
- package/dist/modules/common/admin.js.map +1 -0
- package/dist/modules/common/client.cjs +1 -0
- package/dist/modules/common/client.d.cts +118 -0
- package/dist/modules/common/client.d.cts.map +1 -0
- package/dist/modules/common/client.d.ts +118 -0
- package/dist/modules/common/client.d.ts.map +1 -0
- package/dist/modules/common/client.js +2 -0
- package/dist/modules/common/client.js.map +1 -0
- package/dist/modules/common/index.cjs +1 -0
- package/dist/modules/common/index.d.cts +6 -0
- package/dist/modules/common/index.d.ts +6 -0
- package/dist/modules/common/index.js +1 -0
- package/dist/modules/common/realtime.cjs +0 -0
- package/dist/modules/common/realtime.d.cts +2 -0
- package/dist/modules/common/realtime.d.ts +2 -0
- package/dist/modules/common/realtime.js +1 -0
- package/dist/modules/common/upload.cjs +1 -0
- package/dist/modules/common/upload.d.cts +4 -0
- package/dist/modules/common/upload.d.cts.map +1 -0
- package/dist/modules/common/upload.d.ts +4 -0
- package/dist/modules/common/upload.d.ts.map +1 -0
- package/dist/modules/common/upload.js +2 -0
- package/dist/modules/common/upload.js.map +1 -0
- package/dist/modules/database/index.cjs +1 -0
- package/dist/modules/database/index.d.cts +18 -0
- package/dist/modules/database/index.d.cts.map +1 -0
- package/dist/modules/database/index.d.ts +18 -0
- package/dist/modules/database/index.d.ts.map +1 -0
- package/dist/modules/database/index.js +2 -0
- package/dist/modules/database/index.js.map +1 -0
- package/dist/modules/database/postgres.cjs +1 -0
- package/dist/modules/database/postgres.d.cts +5 -0
- package/dist/modules/database/postgres.d.cts.map +1 -0
- package/dist/modules/database/postgres.d.ts +5 -0
- package/dist/modules/database/postgres.d.ts.map +1 -0
- package/dist/modules/database/postgres.js +2 -0
- package/dist/modules/database/postgres.js.map +1 -0
- package/dist/modules/desktop/index.cjs +1 -0
- package/dist/modules/desktop/index.d.cts +8 -0
- package/dist/modules/desktop/index.d.ts +8 -0
- package/dist/modules/desktop/index.js +1 -0
- package/dist/modules/desktop/interface.cjs +0 -0
- package/dist/modules/desktop/interface.d.cts +2 -0
- package/dist/modules/desktop/interface.d.ts +2 -0
- package/dist/modules/desktop/interface.js +1 -0
- package/dist/modules/desktop/proxy.cjs +1 -0
- package/dist/modules/desktop/proxy.d.cts +22 -0
- package/dist/modules/desktop/proxy.d.cts.map +1 -0
- package/dist/modules/desktop/proxy.d.ts +22 -0
- package/dist/modules/desktop/proxy.d.ts.map +1 -0
- package/dist/modules/desktop/proxy.js +2 -0
- package/dist/modules/desktop/proxy.js.map +1 -0
- package/dist/modules/desktop/release.cjs +1 -0
- package/dist/modules/desktop/release.d.cts +5 -0
- package/dist/modules/desktop/release.d.cts.map +1 -0
- package/dist/modules/desktop/release.d.ts +5 -0
- package/dist/modules/desktop/release.d.ts.map +1 -0
- package/dist/modules/desktop/release.js +2 -0
- package/dist/modules/desktop/release.js.map +1 -0
- package/dist/modules/desktop/rpc.cjs +1 -0
- package/dist/modules/desktop/rpc.d.cts +14 -0
- package/dist/modules/desktop/rpc.d.cts.map +1 -0
- package/dist/modules/desktop/rpc.d.ts +14 -0
- package/dist/modules/desktop/rpc.d.ts.map +1 -0
- package/dist/modules/desktop/rpc.js +2 -0
- package/dist/modules/desktop/rpc.js.map +1 -0
- package/dist/modules/desktop/shortcut.cjs +1 -0
- package/dist/modules/desktop/shortcut.d.cts +6 -0
- package/dist/modules/desktop/shortcut.d.cts.map +1 -0
- package/dist/modules/desktop/shortcut.d.ts +6 -0
- package/dist/modules/desktop/shortcut.d.ts.map +1 -0
- package/dist/modules/desktop/shortcut.js +2 -0
- package/dist/modules/desktop/shortcut.js.map +1 -0
- package/dist/modules/http/caller.cjs +1 -0
- package/dist/modules/http/caller.d.cts +18 -0
- package/dist/modules/http/caller.d.cts.map +1 -0
- package/dist/modules/http/caller.d.ts +18 -0
- package/dist/modules/http/caller.d.ts.map +1 -0
- package/dist/modules/http/caller.js +2 -0
- package/dist/modules/http/caller.js.map +1 -0
- package/dist/modules/http/error.cjs +1 -0
- package/dist/modules/http/error.d.cts +2 -0
- package/dist/modules/http/error.d.ts +2 -0
- package/dist/modules/http/error.js +2 -0
- package/dist/modules/http/error.js.map +1 -0
- package/dist/modules/http/failure.cjs +1 -0
- package/dist/modules/http/failure.d.cts +14 -0
- package/dist/modules/http/failure.d.cts.map +1 -0
- package/dist/modules/http/failure.d.ts +14 -0
- package/dist/modules/http/failure.d.ts.map +1 -0
- package/dist/modules/http/failure.js +2 -0
- package/dist/modules/http/failure.js.map +1 -0
- package/dist/modules/http/fetcher.cjs +1 -0
- package/dist/modules/http/fetcher.d.cts +6 -0
- package/dist/modules/http/fetcher.d.cts.map +1 -0
- package/dist/modules/http/fetcher.d.ts +6 -0
- package/dist/modules/http/fetcher.d.ts.map +1 -0
- package/dist/modules/http/fetcher.js +2 -0
- package/dist/modules/http/fetcher.js.map +1 -0
- package/dist/modules/http/index.cjs +1 -0
- package/dist/modules/http/index.d.cts +6 -0
- package/dist/modules/http/index.d.ts +6 -0
- package/dist/modules/http/index.js +1 -0
- package/dist/modules/http/response.cjs +1 -0
- package/dist/modules/http/response.d.cts +6 -0
- package/dist/modules/http/response.d.cts.map +1 -0
- package/dist/modules/http/response.d.ts +6 -0
- package/dist/modules/http/response.d.ts.map +1 -0
- package/dist/modules/http/response.js +2 -0
- package/dist/modules/http/response.js.map +1 -0
- package/dist/modules/supabase/express/client.cjs +1 -0
- package/dist/modules/supabase/express/client.d.cts +3 -0
- package/dist/modules/supabase/express/client.d.cts.map +1 -0
- package/dist/modules/supabase/express/client.d.ts +3 -0
- package/dist/modules/supabase/express/client.d.ts.map +1 -0
- package/dist/modules/supabase/express/client.js +2 -0
- package/dist/modules/supabase/express/client.js.map +1 -0
- package/dist/modules/supabase/express/index.cjs +1 -0
- package/dist/modules/supabase/express/index.d.cts +3 -0
- package/dist/modules/supabase/express/index.d.ts +3 -0
- package/dist/modules/supabase/express/index.js +1 -0
- package/dist/modules/supabase/express/server.cjs +1 -0
- package/dist/modules/supabase/express/server.d.cts +2 -0
- package/dist/modules/supabase/express/server.d.ts +2 -0
- package/dist/modules/supabase/express/server.js +1 -0
- package/dist/modules/supabase/next/client.cjs +1 -0
- package/dist/modules/supabase/next/client.d.cts +60 -0
- package/dist/modules/supabase/next/client.d.cts.map +1 -0
- package/dist/modules/supabase/next/client.d.ts +60 -0
- package/dist/modules/supabase/next/client.d.ts.map +1 -0
- package/dist/modules/supabase/next/client.js +2 -0
- package/dist/modules/supabase/next/client.js.map +1 -0
- package/dist/modules/supabase/next/index.cjs +1 -0
- package/dist/modules/supabase/next/index.d.cts +5 -0
- package/dist/modules/supabase/next/index.d.ts +5 -0
- package/dist/modules/supabase/next/index.js +1 -0
- package/dist/modules/supabase/next/middleware.cjs +1 -0
- package/dist/modules/supabase/next/middleware.d.cts +2 -0
- package/dist/modules/supabase/next/middleware.d.cts.map +1 -0
- package/dist/modules/supabase/next/middleware.d.ts +2 -0
- package/dist/modules/supabase/next/middleware.d.ts.map +1 -0
- package/dist/modules/supabase/next/middleware.js +2 -0
- package/dist/modules/supabase/next/middleware.js.map +1 -0
- package/dist/modules/supabase/next/server.cjs +1 -0
- package/dist/modules/supabase/next/server.d.cts +61 -0
- package/dist/modules/supabase/next/server.d.cts.map +1 -0
- package/dist/modules/supabase/next/server.d.ts +61 -0
- package/dist/modules/supabase/next/server.d.ts.map +1 -0
- package/dist/modules/supabase/next/server.js +2 -0
- package/dist/modules/supabase/next/server.js.map +1 -0
- package/dist/rolldown-runtime-BocRIvOZ.cjs +1 -0
- package/dist/utils/formatter.cjs +1 -0
- package/dist/utils/formatter.d.cts +11 -0
- package/dist/utils/formatter.d.cts.map +1 -0
- package/dist/utils/formatter.d.ts +2 -0
- package/dist/utils/formatter.js +2 -0
- package/dist/utils/formatter.js.map +1 -0
- package/dist/utils/interface.cjs +0 -0
- package/dist/utils/interface.d.cts +2 -0
- package/dist/utils/interface.d.ts +2 -0
- package/dist/utils/interface.js +1 -0
- package/dist/utils/normalization.cjs +1 -0
- package/dist/utils/normalization.d.cts +10 -0
- package/dist/utils/normalization.d.cts.map +1 -0
- package/dist/utils/normalization.d.ts +10 -0
- package/dist/utils/normalization.d.ts.map +1 -0
- package/dist/utils/normalization.js +2 -0
- package/dist/utils/normalization.js.map +1 -0
- package/docs/auth.md +189 -0
- package/docs/modules.md +100 -0
- package/package.json +198 -0
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { v as CommonCookieMethods } from "../../interface-ii8DV63k.cjs";
|
|
2
|
+
import { SupabaseClientOptions } from "@supabase/supabase-js";
|
|
3
|
+
export declare function createCommonBrowserClient<Database = any, SchemaName extends string & keyof Omit<Database, "__InternalSupabase"> = "public" extends keyof Omit<Database, "__InternalSupabase"> ? "public" : string & keyof Omit<Database, "__InternalSupabase">>(url: string, publishableKey: string, options?: SupabaseClientOptions<SchemaName>): import("@supabase/supabase-js").SupabaseClient<Database, SchemaName, SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? SchemaName : "public" extends Exclude<keyof Database, "__InternalSupabase"> ? Exclude<keyof Database, "__InternalSupabase"> & "public" : string & Exclude<Exclude<keyof Database, "__InternalSupabase">, "__InternalSupabase">, Omit<Database, "__InternalSupabase">[SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? SchemaName : "public" extends Exclude<keyof Database, "__InternalSupabase"> ? Exclude<keyof Database, "__InternalSupabase"> & "public" : string & Exclude<Exclude<keyof Database, "__InternalSupabase">, "__InternalSupabase">] extends {
|
|
4
|
+
Tables: Record<string, {
|
|
5
|
+
Row: Record<string, unknown>;
|
|
6
|
+
Insert: Record<string, unknown>;
|
|
7
|
+
Update: Record<string, unknown>;
|
|
8
|
+
Relationships: {
|
|
9
|
+
foreignKeyName: string;
|
|
10
|
+
columns: string[];
|
|
11
|
+
isOneToOne?: boolean;
|
|
12
|
+
referencedRelation: string;
|
|
13
|
+
referencedColumns: string[];
|
|
14
|
+
}[];
|
|
15
|
+
ComputedFields?: string;
|
|
16
|
+
}>;
|
|
17
|
+
Views: Record<string, {
|
|
18
|
+
Row: Record<string, unknown>;
|
|
19
|
+
Insert: Record<string, unknown>;
|
|
20
|
+
Update: Record<string, unknown>;
|
|
21
|
+
Relationships: {
|
|
22
|
+
foreignKeyName: string;
|
|
23
|
+
columns: string[];
|
|
24
|
+
isOneToOne?: boolean;
|
|
25
|
+
referencedRelation: string;
|
|
26
|
+
referencedColumns: string[];
|
|
27
|
+
}[];
|
|
28
|
+
ComputedFields?: string;
|
|
29
|
+
} | {
|
|
30
|
+
Row: Record<string, unknown>;
|
|
31
|
+
Relationships: {
|
|
32
|
+
foreignKeyName: string;
|
|
33
|
+
columns: string[];
|
|
34
|
+
isOneToOne?: boolean;
|
|
35
|
+
referencedRelation: string;
|
|
36
|
+
referencedColumns: string[];
|
|
37
|
+
}[];
|
|
38
|
+
ComputedFields?: string;
|
|
39
|
+
}>;
|
|
40
|
+
Functions: Record<string, {
|
|
41
|
+
Args: Record<string, unknown> | never;
|
|
42
|
+
Returns: unknown;
|
|
43
|
+
SetofOptions?: {
|
|
44
|
+
isSetofReturn?: boolean | undefined;
|
|
45
|
+
isOneToOne?: boolean | undefined;
|
|
46
|
+
isNotNullable?: boolean | undefined;
|
|
47
|
+
to: string;
|
|
48
|
+
from: string;
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
51
|
+
} ? Omit<Database, "__InternalSupabase">[SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? SchemaName : "public" extends Exclude<keyof Database, "__InternalSupabase"> ? Exclude<keyof Database, "__InternalSupabase"> & "public" : string & Exclude<Exclude<keyof Database, "__InternalSupabase">, "__InternalSupabase">] : never, SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? Database extends {
|
|
52
|
+
__InternalSupabase: {
|
|
53
|
+
PostgrestVersion: string;
|
|
54
|
+
};
|
|
55
|
+
} ? Database["__InternalSupabase"] : {
|
|
56
|
+
PostgrestVersion: "12";
|
|
57
|
+
} : SchemaName extends {
|
|
58
|
+
PostgrestVersion: string;
|
|
59
|
+
} ? SchemaName : never>;
|
|
60
|
+
export declare function createCommonServerClient<Database = any, SchemaName extends string & keyof Omit<Database, "__InternalSupabase"> = "public" extends keyof Omit<Database, "__InternalSupabase"> ? "public" : string & keyof Omit<Database, "__InternalSupabase">>(url: string, publishableKey: string, cookies: CommonCookieMethods, options?: SupabaseClientOptions<SchemaName>): import("@supabase/supabase-js").SupabaseClient<Database, SchemaName, SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? SchemaName : "public" extends Exclude<keyof Database, "__InternalSupabase"> ? Exclude<keyof Database, "__InternalSupabase"> & "public" : string & Exclude<Exclude<keyof Database, "__InternalSupabase">, "__InternalSupabase">, Omit<Database, "__InternalSupabase">[SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? SchemaName : "public" extends Exclude<keyof Database, "__InternalSupabase"> ? Exclude<keyof Database, "__InternalSupabase"> & "public" : string & Exclude<Exclude<keyof Database, "__InternalSupabase">, "__InternalSupabase">] extends {
|
|
61
|
+
Tables: Record<string, {
|
|
62
|
+
Row: Record<string, unknown>;
|
|
63
|
+
Insert: Record<string, unknown>;
|
|
64
|
+
Update: Record<string, unknown>;
|
|
65
|
+
Relationships: {
|
|
66
|
+
foreignKeyName: string;
|
|
67
|
+
columns: string[];
|
|
68
|
+
isOneToOne?: boolean;
|
|
69
|
+
referencedRelation: string;
|
|
70
|
+
referencedColumns: string[];
|
|
71
|
+
}[];
|
|
72
|
+
ComputedFields?: string;
|
|
73
|
+
}>;
|
|
74
|
+
Views: Record<string, {
|
|
75
|
+
Row: Record<string, unknown>;
|
|
76
|
+
Insert: Record<string, unknown>;
|
|
77
|
+
Update: Record<string, unknown>;
|
|
78
|
+
Relationships: {
|
|
79
|
+
foreignKeyName: string;
|
|
80
|
+
columns: string[];
|
|
81
|
+
isOneToOne?: boolean;
|
|
82
|
+
referencedRelation: string;
|
|
83
|
+
referencedColumns: string[];
|
|
84
|
+
}[];
|
|
85
|
+
ComputedFields?: string;
|
|
86
|
+
} | {
|
|
87
|
+
Row: Record<string, unknown>;
|
|
88
|
+
Relationships: {
|
|
89
|
+
foreignKeyName: string;
|
|
90
|
+
columns: string[];
|
|
91
|
+
isOneToOne?: boolean;
|
|
92
|
+
referencedRelation: string;
|
|
93
|
+
referencedColumns: string[];
|
|
94
|
+
}[];
|
|
95
|
+
ComputedFields?: string;
|
|
96
|
+
}>;
|
|
97
|
+
Functions: Record<string, {
|
|
98
|
+
Args: Record<string, unknown> | never;
|
|
99
|
+
Returns: unknown;
|
|
100
|
+
SetofOptions?: {
|
|
101
|
+
isSetofReturn?: boolean | undefined;
|
|
102
|
+
isOneToOne?: boolean | undefined;
|
|
103
|
+
isNotNullable?: boolean | undefined;
|
|
104
|
+
to: string;
|
|
105
|
+
from: string;
|
|
106
|
+
};
|
|
107
|
+
}>;
|
|
108
|
+
} ? Omit<Database, "__InternalSupabase">[SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? SchemaName : "public" extends Exclude<keyof Database, "__InternalSupabase"> ? Exclude<keyof Database, "__InternalSupabase"> & "public" : string & Exclude<Exclude<keyof Database, "__InternalSupabase">, "__InternalSupabase">] : never, SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? Database extends {
|
|
109
|
+
__InternalSupabase: {
|
|
110
|
+
PostgrestVersion: string;
|
|
111
|
+
};
|
|
112
|
+
} ? Database["__InternalSupabase"] : {
|
|
113
|
+
PostgrestVersion: "12";
|
|
114
|
+
} : SchemaName extends {
|
|
115
|
+
PostgrestVersion: string;
|
|
116
|
+
} ? SchemaName : never>;
|
|
117
|
+
export type { CommonCookieMethods };
|
|
118
|
+
//# sourceMappingURL=client.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.cts","names":[],"sources":["../../../src/modules/common/client.ts"],"mappings":";;wBAIgB,0BACd,gBACA,kCAAkC,KAAK,yDACd,KAAK,4DAET,KAAK,iCAE1B,aACA,wBACA,UAAU,sBAAsB,8CAAW,eAAA,UAAA,YAAA,4BAAA,cAAA,kCAAA,8BAAA,cAAA,kCAAA,cAAA,sDAAA,QAAA,cAAA,wDAAA,KAAA,gCAAA,4BAAA,cAAA,kCAAA,8BAAA,cAAA,kCAAA,cAAA,sDAAA,QAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK5C;wBAEe,yBACd,gBACA,kCAAkC,KAAK,yDACd,KAAK,4DAET,KAAK,iCAE1B,aACA,wBACA,SAAS,qBACT,UAAU,sBAAsB,8CAAW,eAAA,UAAA,YAAA,4BAAA,cAAA,kCAAA,8BAAA,cAAA,kCAAA,cAAA,sDAAA,QAAA,cAAA,wDAAA,KAAA,gCAAA,4BAAA,cAAA,kCAAA,8BAAA,cAAA,kCAAA,cAAA,sDAAA,QAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM5C"}
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
import { v as CommonCookieMethods } from "../../interface-ii8DV63k.js";
|
|
2
|
+
import { SupabaseClientOptions } from "@supabase/supabase-js";
|
|
3
|
+
export declare function createCommonBrowserClient<Database = any, SchemaName extends string & keyof Omit<Database, "__InternalSupabase"> = "public" extends keyof Omit<Database, "__InternalSupabase"> ? "public" : string & keyof Omit<Database, "__InternalSupabase">>(url: string, publishableKey: string, options?: SupabaseClientOptions<SchemaName>): import("@supabase/supabase-js").SupabaseClient<Database, SchemaName, SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? SchemaName : "public" extends Exclude<keyof Database, "__InternalSupabase"> ? Exclude<keyof Database, "__InternalSupabase"> & "public" : string & Exclude<Exclude<keyof Database, "__InternalSupabase">, "__InternalSupabase">, Omit<Database, "__InternalSupabase">[SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? SchemaName : "public" extends Exclude<keyof Database, "__InternalSupabase"> ? Exclude<keyof Database, "__InternalSupabase"> & "public" : string & Exclude<Exclude<keyof Database, "__InternalSupabase">, "__InternalSupabase">] extends {
|
|
4
|
+
Tables: Record<string, {
|
|
5
|
+
Row: Record<string, unknown>;
|
|
6
|
+
Insert: Record<string, unknown>;
|
|
7
|
+
Update: Record<string, unknown>;
|
|
8
|
+
Relationships: {
|
|
9
|
+
foreignKeyName: string;
|
|
10
|
+
columns: string[];
|
|
11
|
+
isOneToOne?: boolean;
|
|
12
|
+
referencedRelation: string;
|
|
13
|
+
referencedColumns: string[];
|
|
14
|
+
}[];
|
|
15
|
+
ComputedFields?: string;
|
|
16
|
+
}>;
|
|
17
|
+
Views: Record<string, {
|
|
18
|
+
Row: Record<string, unknown>;
|
|
19
|
+
Insert: Record<string, unknown>;
|
|
20
|
+
Update: Record<string, unknown>;
|
|
21
|
+
Relationships: {
|
|
22
|
+
foreignKeyName: string;
|
|
23
|
+
columns: string[];
|
|
24
|
+
isOneToOne?: boolean;
|
|
25
|
+
referencedRelation: string;
|
|
26
|
+
referencedColumns: string[];
|
|
27
|
+
}[];
|
|
28
|
+
ComputedFields?: string;
|
|
29
|
+
} | {
|
|
30
|
+
Row: Record<string, unknown>;
|
|
31
|
+
Relationships: {
|
|
32
|
+
foreignKeyName: string;
|
|
33
|
+
columns: string[];
|
|
34
|
+
isOneToOne?: boolean;
|
|
35
|
+
referencedRelation: string;
|
|
36
|
+
referencedColumns: string[];
|
|
37
|
+
}[];
|
|
38
|
+
ComputedFields?: string;
|
|
39
|
+
}>;
|
|
40
|
+
Functions: Record<string, {
|
|
41
|
+
Args: Record<string, unknown> | never;
|
|
42
|
+
Returns: unknown;
|
|
43
|
+
SetofOptions?: {
|
|
44
|
+
isSetofReturn?: boolean | undefined;
|
|
45
|
+
isOneToOne?: boolean | undefined;
|
|
46
|
+
isNotNullable?: boolean | undefined;
|
|
47
|
+
to: string;
|
|
48
|
+
from: string;
|
|
49
|
+
};
|
|
50
|
+
}>;
|
|
51
|
+
} ? Omit<Database, "__InternalSupabase">[SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? SchemaName : "public" extends Exclude<keyof Database, "__InternalSupabase"> ? Exclude<keyof Database, "__InternalSupabase"> & "public" : string & Exclude<Exclude<keyof Database, "__InternalSupabase">, "__InternalSupabase">] : never, SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? Database extends {
|
|
52
|
+
__InternalSupabase: {
|
|
53
|
+
PostgrestVersion: string;
|
|
54
|
+
};
|
|
55
|
+
} ? Database["__InternalSupabase"] : {
|
|
56
|
+
PostgrestVersion: "12";
|
|
57
|
+
} : SchemaName extends {
|
|
58
|
+
PostgrestVersion: string;
|
|
59
|
+
} ? SchemaName : never>;
|
|
60
|
+
export declare function createCommonServerClient<Database = any, SchemaName extends string & keyof Omit<Database, "__InternalSupabase"> = "public" extends keyof Omit<Database, "__InternalSupabase"> ? "public" : string & keyof Omit<Database, "__InternalSupabase">>(url: string, publishableKey: string, cookies: CommonCookieMethods, options?: SupabaseClientOptions<SchemaName>): import("@supabase/supabase-js").SupabaseClient<Database, SchemaName, SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? SchemaName : "public" extends Exclude<keyof Database, "__InternalSupabase"> ? Exclude<keyof Database, "__InternalSupabase"> & "public" : string & Exclude<Exclude<keyof Database, "__InternalSupabase">, "__InternalSupabase">, Omit<Database, "__InternalSupabase">[SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? SchemaName : "public" extends Exclude<keyof Database, "__InternalSupabase"> ? Exclude<keyof Database, "__InternalSupabase"> & "public" : string & Exclude<Exclude<keyof Database, "__InternalSupabase">, "__InternalSupabase">] extends {
|
|
61
|
+
Tables: Record<string, {
|
|
62
|
+
Row: Record<string, unknown>;
|
|
63
|
+
Insert: Record<string, unknown>;
|
|
64
|
+
Update: Record<string, unknown>;
|
|
65
|
+
Relationships: {
|
|
66
|
+
foreignKeyName: string;
|
|
67
|
+
columns: string[];
|
|
68
|
+
isOneToOne?: boolean;
|
|
69
|
+
referencedRelation: string;
|
|
70
|
+
referencedColumns: string[];
|
|
71
|
+
}[];
|
|
72
|
+
ComputedFields?: string;
|
|
73
|
+
}>;
|
|
74
|
+
Views: Record<string, {
|
|
75
|
+
Row: Record<string, unknown>;
|
|
76
|
+
Insert: Record<string, unknown>;
|
|
77
|
+
Update: Record<string, unknown>;
|
|
78
|
+
Relationships: {
|
|
79
|
+
foreignKeyName: string;
|
|
80
|
+
columns: string[];
|
|
81
|
+
isOneToOne?: boolean;
|
|
82
|
+
referencedRelation: string;
|
|
83
|
+
referencedColumns: string[];
|
|
84
|
+
}[];
|
|
85
|
+
ComputedFields?: string;
|
|
86
|
+
} | {
|
|
87
|
+
Row: Record<string, unknown>;
|
|
88
|
+
Relationships: {
|
|
89
|
+
foreignKeyName: string;
|
|
90
|
+
columns: string[];
|
|
91
|
+
isOneToOne?: boolean;
|
|
92
|
+
referencedRelation: string;
|
|
93
|
+
referencedColumns: string[];
|
|
94
|
+
}[];
|
|
95
|
+
ComputedFields?: string;
|
|
96
|
+
}>;
|
|
97
|
+
Functions: Record<string, {
|
|
98
|
+
Args: Record<string, unknown> | never;
|
|
99
|
+
Returns: unknown;
|
|
100
|
+
SetofOptions?: {
|
|
101
|
+
isSetofReturn?: boolean | undefined;
|
|
102
|
+
isOneToOne?: boolean | undefined;
|
|
103
|
+
isNotNullable?: boolean | undefined;
|
|
104
|
+
to: string;
|
|
105
|
+
from: string;
|
|
106
|
+
};
|
|
107
|
+
}>;
|
|
108
|
+
} ? Omit<Database, "__InternalSupabase">[SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? SchemaName : "public" extends Exclude<keyof Database, "__InternalSupabase"> ? Exclude<keyof Database, "__InternalSupabase"> & "public" : string & Exclude<Exclude<keyof Database, "__InternalSupabase">, "__InternalSupabase">] : never, SchemaName extends string & Exclude<keyof Database, "__InternalSupabase"> ? Database extends {
|
|
109
|
+
__InternalSupabase: {
|
|
110
|
+
PostgrestVersion: string;
|
|
111
|
+
};
|
|
112
|
+
} ? Database["__InternalSupabase"] : {
|
|
113
|
+
PostgrestVersion: "12";
|
|
114
|
+
} : SchemaName extends {
|
|
115
|
+
PostgrestVersion: string;
|
|
116
|
+
} ? SchemaName : never>;
|
|
117
|
+
export type { CommonCookieMethods };
|
|
118
|
+
//# sourceMappingURL=client.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.d.ts","names":[],"sources":["../../../src/modules/common/client.ts"],"mappings":";;wBAIgB,0BACd,gBACA,kCAAkC,KAAK,yDACd,KAAK,4DAET,KAAK,iCAE1B,aACA,wBACA,UAAU,sBAAsB,8CAAW,eAAA,UAAA,YAAA,4BAAA,cAAA,kCAAA,8BAAA,cAAA,kCAAA,cAAA,sDAAA,QAAA,cAAA,wDAAA,KAAA,gCAAA,4BAAA,cAAA,kCAAA,8BAAA,cAAA,kCAAA,cAAA,sDAAA,QAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAK5C;wBAEe,yBACd,gBACA,kCAAkC,KAAK,yDACd,KAAK,4DAET,KAAK,iCAE1B,aACA,wBACA,SAAS,qBACT,UAAU,sBAAsB,8CAAW,eAAA,UAAA,YAAA,4BAAA,cAAA,kCAAA,8BAAA,cAAA,kCAAA,cAAA,sDAAA,QAAA,cAAA,wDAAA,KAAA,gCAAA,4BAAA,cAAA,kCAAA,8BAAA,cAAA,kCAAA,cAAA,sDAAA,QAAA,cAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IAM5C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"client.js","names":["createCommonBrowserClient","createBrowserClient","url","publishableKey","options","createCommonServerClient","createServerClient"],"sources":["../../../src/modules/common/client.ts"],"sourcesContent":["import type { CommonCookieMethods } from \"@/utils/interface\";\nimport { createBrowserClient, createServerClient } from \"@supabase/ssr\";\nimport type { SupabaseClientOptions } from \"@supabase/supabase-js\";\n\nexport function createCommonBrowserClient<\n Database = any,\n SchemaName extends string & keyof Omit<Database, \"__InternalSupabase\"> =\n \"public\" extends keyof Omit<Database, \"__InternalSupabase\">\n ? \"public\"\n : string & keyof Omit<Database, \"__InternalSupabase\">,\n>(\n url: string,\n publishableKey: string,\n options?: SupabaseClientOptions<SchemaName>,\n) {\n return createBrowserClient<Database, SchemaName>(url, publishableKey, {\n ...(options ?? {}),\n });\n}\n\nexport function createCommonServerClient<\n Database = any,\n SchemaName extends string & keyof Omit<Database, \"__InternalSupabase\"> =\n \"public\" extends keyof Omit<Database, \"__InternalSupabase\">\n ? \"public\"\n : string & keyof Omit<Database, \"__InternalSupabase\">,\n>(\n url: string,\n publishableKey: string,\n cookies: CommonCookieMethods,\n options?: SupabaseClientOptions<SchemaName>,\n) {\n return createServerClient<Database, SchemaName>(url, publishableKey, {\n ...options,\n cookies,\n });\n}\n\nexport type { CommonCookieMethods } from \"@/utils/interface\";\n"],"mappings":"A,4EAIA,SAAgBA,EAOd,EACA,EACA,EACA,CACA,OAAOC,EAA0CC,EAAKC,EAAgB,CACpE,GAAIC,GAAW,CAAC,CAClB,CAAC,CACH,CAEA,SAAgBC,EAOd,EACA,EACA,EACA,EACA,CACA,OAAOC,EAAyCJ,EAAKC,EAAgB,CACnE,GAAGC,EACH,SACF,CAAC,CACH,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./admin.cjs"),t=require("./client.cjs");require("./realtime.cjs");const n=require("./upload.cjs");exports.createCommonAdminClient=e.createCommonAdminClient,exports.createCommonBrowserClient=t.createCommonBrowserClient,exports.createCommonPublicClient=e.createCommonPublicClient,exports.createCommonServerClient=t.createCommonServerClient,exports.createCommonUploadUtils=n.createCommonUploadUtils;
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { H as UploadUtils, P as RealtimeUtils, v as CommonCookieMethods } from "../../interface-ii8DV63k.cjs";
|
|
2
|
+
import { createCommonAdminClient, createCommonPublicClient } from "./admin.cjs";
|
|
3
|
+
import { createCommonBrowserClient, createCommonServerClient } from "./client.cjs";
|
|
4
|
+
import "./realtime.cjs";
|
|
5
|
+
import { createCommonUploadUtils } from "./upload.cjs";
|
|
6
|
+
export { type CommonCookieMethods, type RealtimeUtils, type UploadUtils, createCommonAdminClient, createCommonBrowserClient, createCommonPublicClient, createCommonServerClient, createCommonUploadUtils };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { H as UploadUtils, P as RealtimeUtils, v as CommonCookieMethods } from "../../interface-ii8DV63k.js";
|
|
2
|
+
import { createCommonAdminClient, createCommonPublicClient } from "./admin.js";
|
|
3
|
+
import { createCommonBrowserClient, createCommonServerClient } from "./client.js";
|
|
4
|
+
import "./realtime.js";
|
|
5
|
+
import { createCommonUploadUtils } from "./upload.js";
|
|
6
|
+
export { type CommonCookieMethods, type RealtimeUtils, type UploadUtils, createCommonAdminClient, createCommonBrowserClient, createCommonPublicClient, createCommonServerClient, createCommonUploadUtils };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{createCommonAdminClient as e,createCommonPublicClient as t}from"./admin.js";import{createCommonBrowserClient as n,createCommonServerClient as r}from"./client.js";import"./realtime.js";import{createCommonUploadUtils as i}from"./upload.js";export{e as createCommonAdminClient,n as createCommonBrowserClient,t as createCommonPublicClient,r as createCommonServerClient,i as createCommonUploadUtils};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e){return{upload({bucket:t,path:n,fileBody:r,options:i}){return e.storage.from(t).upload(n,r,i)},upsert({bucket:t,path:n,fileBody:r,options:i}){return e.storage.from(t).upload(n,r,{...i??{},upsert:!0})},remove(t,n){return e.storage.from(t).remove(n)},getPublicUrl(t,n){return e.storage.from(t).getPublicUrl(n)},createSignedUrl(t,n,r){return e.storage.from(t).createSignedUrl(n,r)}}}exports.createCommonUploadUtils=e;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.d.cts","names":[],"sources":["../../../src/modules/common/upload.ts"],"mappings":";wBAMgB,wBACd,QAAQ,oBACP"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.d.ts","names":[],"sources":["../../../src/modules/common/upload.ts"],"mappings":";wBAMgB,wBACd,QAAQ,oBACP"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function e(e){return{upload({bucket:t,path:n,fileBody:r,options:i}){return e.storage.from(t).upload(n,r,i)},upsert({bucket:t,path:n,fileBody:r,options:i}){return e.storage.from(t).upload(n,r,{...i??{},upsert:!0})},remove(t,n){return e.storage.from(t).remove(n)},getPublicUrl(t,n){return e.storage.from(t).getPublicUrl(n)},createSignedUrl(t,n,r){return e.storage.from(t).createSignedUrl(n,r)}}}export{e as createCommonUploadUtils};
|
|
2
|
+
//# sourceMappingURL=upload.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"upload.js","names":["createCommonUploadUtils","client","bucket","path","fileBody","options","paths","expiresIn"],"sources":["../../../src/modules/common/upload.ts"],"sourcesContent":["import type {\n SupabaseAnyClient,\n UploadInput,\n UploadUtils,\n} from \"@/utils/interface\";\n\nexport function createCommonUploadUtils(\n client: SupabaseAnyClient,\n): UploadUtils {\n return {\n upload({ bucket, path, fileBody, options }: UploadInput) {\n return client.storage.from(bucket).upload(path, fileBody, options as any);\n },\n upsert({ bucket, path, fileBody, options }: UploadInput) {\n return client.storage.from(bucket).upload(path, fileBody, {\n ...(options ?? {}),\n upsert: true,\n } as any);\n },\n remove(bucket: string, paths: string[]) {\n return client.storage.from(bucket).remove(paths);\n },\n getPublicUrl(bucket: string, path: string) {\n return client.storage.from(bucket).getPublicUrl(path);\n },\n createSignedUrl(bucket: string, path: string, expiresIn: number) {\n return client.storage.from(bucket).createSignedUrl(path, expiresIn);\n },\n };\n}\n\nexport type { UploadUtils } from \"@/utils/interface\";\n"],"mappings":"AAMA,SAAgBA,EACd,EACa,CACb,MAAO,CACL,OAAO,CAAE,SAAQ,OAAM,WAAU,WAAwB,CACvD,OAAOC,EAAO,QAAQ,KAAKC,CAAM,CAAC,CAAC,OAAOC,EAAMC,EAAUC,CAAc,CAC1E,EACA,OAAO,CAAE,SAAQ,OAAM,WAAU,WAAwB,CACvD,OAAOJ,EAAO,QAAQ,KAAKC,CAAM,CAAC,CAAC,OAAOC,EAAMC,EAAU,CACxD,GAAIC,GAAW,CAAC,EAChB,OAAQ,EACV,CAAQ,CACV,EACA,OAAO,EAAgB,EAAiB,CACtC,OAAOJ,EAAO,QAAQ,KAAKC,CAAM,CAAC,CAAC,OAAOI,CAAK,CACjD,EACA,aAAa,EAAgB,EAAc,CACzC,OAAOL,EAAO,QAAQ,KAAKC,CAAM,CAAC,CAAC,aAAaC,CAAI,CACtD,EACA,gBAAgB,EAAgB,EAAc,EAAmB,CAC/D,OAAOF,EAAO,QAAQ,KAAKC,CAAM,CAAC,CAAC,gBAAgBC,EAAMI,CAAS,CACpE,CACF,CACF,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e){try{if(typeof e.connectionString!=`string`)throw Error();let t=new URL(e.connectionString);if(![`postgres:`,`postgresql:`].includes(t.protocol)||!t.hostname||t.hash)throw Error();let n=e.max??e.defaultMax??5,r=typeof n==`string`&&/^\d+$/.test(n)?Number(n):n;if(typeof r!=`number`||!Number.isSafeInteger(r)||r<1)throw Error();for(let t of[e.idleTimeoutMillis,e.connectionTimeoutMillis])if(t!==void 0&&(!Number.isSafeInteger(t)||t<0))throw Error();return{connectionString:e.connectionString,max:r,...e.idleTimeoutMillis===void 0?{}:{idleTimeoutMillis:e.idleTimeoutMillis},...e.connectionTimeoutMillis===void 0?{}:{connectionTimeoutMillis:e.connectionTimeoutMillis}}}catch{throw TypeError(`Invalid database pool configuration`)}}function t(t){return n=>t(e(n))}exports.createDatabasePoolFactory=t,exports.parseDatabasePoolOptions=e;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface DatabasePoolOptions {
|
|
2
|
+
connectionString: string;
|
|
3
|
+
max: number;
|
|
4
|
+
idleTimeoutMillis?: number;
|
|
5
|
+
connectionTimeoutMillis?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface DatabasePoolInput {
|
|
8
|
+
connectionString: unknown;
|
|
9
|
+
max?: unknown;
|
|
10
|
+
defaultMax?: number;
|
|
11
|
+
idleTimeoutMillis?: number;
|
|
12
|
+
connectionTimeoutMillis?: number;
|
|
13
|
+
}
|
|
14
|
+
/** Parse app-supplied values; never read env or embed connection values in errors. */
|
|
15
|
+
export declare function parseDatabasePoolOptions(input: DatabasePoolInput): DatabasePoolOptions;
|
|
16
|
+
/** App owns memoization, error listeners, connection lifetime and shutdown. */
|
|
17
|
+
export declare function createDatabasePoolFactory<Pool>(create: (options: DatabasePoolOptions) => Pool): (input: DatabasePoolInput) => Pool;
|
|
18
|
+
//# sourceMappingURL=index.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.cts","names":[],"sources":["../../../src/modules/database/index.ts"],"mappings":"A,iBAAiB;EACf;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;;;wBAIc,yBACd,OAAO,oBACN;;wBAiCa,0BAA0B,MACxC,SAAS,SAAS,wBAAwB,QAElC,OAAO,sBAAoB"}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export interface DatabasePoolOptions {
|
|
2
|
+
connectionString: string;
|
|
3
|
+
max: number;
|
|
4
|
+
idleTimeoutMillis?: number;
|
|
5
|
+
connectionTimeoutMillis?: number;
|
|
6
|
+
}
|
|
7
|
+
export interface DatabasePoolInput {
|
|
8
|
+
connectionString: unknown;
|
|
9
|
+
max?: unknown;
|
|
10
|
+
defaultMax?: number;
|
|
11
|
+
idleTimeoutMillis?: number;
|
|
12
|
+
connectionTimeoutMillis?: number;
|
|
13
|
+
}
|
|
14
|
+
/** Parse app-supplied values; never read env or embed connection values in errors. */
|
|
15
|
+
export declare function parseDatabasePoolOptions(input: DatabasePoolInput): DatabasePoolOptions;
|
|
16
|
+
/** App owns memoization, error listeners, connection lifetime and shutdown. */
|
|
17
|
+
export declare function createDatabasePoolFactory<Pool>(create: (options: DatabasePoolOptions) => Pool): (input: DatabasePoolInput) => Pool;
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","names":[],"sources":["../../../src/modules/database/index.ts"],"mappings":"A,iBAAiB;EACf;EACA;EACA;EACA;;iBAGe;EACf;EACA;EACA;EACA;EACA;;;wBAIc,yBACd,OAAO,oBACN;;wBAiCa,0BAA0B,MACxC,SAAS,SAAS,wBAAwB,QAElC,OAAO,sBAAoB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function e(e){try{if(typeof e.connectionString!=`string`)throw Error();let t=new URL(e.connectionString);if(![`postgres:`,`postgresql:`].includes(t.protocol)||!t.hostname||t.hash)throw Error();let n=e.max??e.defaultMax??5,r=typeof n==`string`&&/^\d+$/.test(n)?Number(n):n;if(typeof r!=`number`||!Number.isSafeInteger(r)||r<1)throw Error();for(let t of[e.idleTimeoutMillis,e.connectionTimeoutMillis])if(t!==void 0&&(!Number.isSafeInteger(t)||t<0))throw Error();return{connectionString:e.connectionString,max:r,...e.idleTimeoutMillis===void 0?{}:{idleTimeoutMillis:e.idleTimeoutMillis},...e.connectionTimeoutMillis===void 0?{}:{connectionTimeoutMillis:e.connectionTimeoutMillis}}}catch{throw TypeError(`Invalid database pool configuration`)}}function t(t){return n=>t(e(n))}export{t as createDatabasePoolFactory,e as parseDatabasePoolOptions};
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["parseDatabasePoolOptions","input","url","raw","max","value","createDatabasePoolFactory","create"],"sources":["../../../src/modules/database/index.ts"],"sourcesContent":["export interface DatabasePoolOptions {\n connectionString: string;\n max: number;\n idleTimeoutMillis?: number;\n connectionTimeoutMillis?: number;\n}\n\nexport interface DatabasePoolInput {\n connectionString: unknown;\n max?: unknown;\n defaultMax?: number;\n idleTimeoutMillis?: number;\n connectionTimeoutMillis?: number;\n}\n\n/** Parse app-supplied values; never read env or embed connection values in errors. */\nexport function parseDatabasePoolOptions(\n input: DatabasePoolInput,\n): DatabasePoolOptions {\n try {\n if (typeof input.connectionString !== \"string\") throw new Error();\n const url = new URL(input.connectionString);\n if (\n ![\"postgres:\", \"postgresql:\"].includes(url.protocol) ||\n !url.hostname ||\n url.hash\n )\n throw new Error();\n const raw = input.max ?? input.defaultMax ?? 5;\n const max = typeof raw === \"string\" && /^\\d+$/.test(raw) ? Number(raw) : raw;\n if (typeof max !== \"number\" || !Number.isSafeInteger(max) || max < 1)\n throw new Error();\n for (const value of [input.idleTimeoutMillis, input.connectionTimeoutMillis])\n if (value !== undefined && (!Number.isSafeInteger(value) || value < 0))\n throw new Error();\n return {\n connectionString: input.connectionString,\n max,\n ...(input.idleTimeoutMillis === undefined\n ? {}\n : { idleTimeoutMillis: input.idleTimeoutMillis }),\n ...(input.connectionTimeoutMillis === undefined\n ? {}\n : { connectionTimeoutMillis: input.connectionTimeoutMillis }),\n };\n } catch {\n throw new TypeError(\"Invalid database pool configuration\");\n }\n}\n\n/** App owns memoization, error listeners, connection lifetime and shutdown. */\nexport function createDatabasePoolFactory<Pool>(\n create: (options: DatabasePoolOptions) => Pool,\n) {\n return (input: DatabasePoolInput): Pool => create(parseDatabasePoolOptions(input));\n}\n"],"mappings":"AAgBA,SAAgBA,EACd,EACqB,CACrB,GAAI,CACF,GAAI,OAAOC,EAAM,kBAAqB,SAAU,MAAU,MAAM,EAChE,IAAMC,EAAM,IAAI,IAAID,EAAM,gBAAgB,EAC1C,GACE,CAAC,CAAC,YAAa,aAAa,CAAC,CAAC,SAASC,EAAI,QAAQ,GACnD,CAACA,EAAI,UACLA,EAAI,KAEJ,MAAU,MAAM,EAClB,IAAMC,EAAMF,EAAM,KAAOA,EAAM,YAAc,EACvCG,EAAM,OAAOD,GAAQ,UAAY,QAAQ,KAAKA,CAAG,EAAI,OAAOA,CAAG,EAAIA,EACzE,GAAI,OAAOC,GAAQ,UAAY,CAAC,OAAO,cAAcA,CAAG,GAAKA,EAAM,EACjE,MAAU,MAAM,EAClB,IAAK,IAAMC,IAAS,CAACJ,EAAM,kBAAmBA,EAAM,uBAAuB,EACzE,GAAII,IAAU,IAAA,KAAc,CAAC,OAAO,cAAcA,CAAK,GAAKA,EAAQ,GAClE,MAAU,MAAM,EACpB,MAAO,CACL,iBAAkBJ,EAAM,iBACxB,MACA,GAAIA,EAAM,oBAAsB,IAAA,GAC5B,CAAC,EACD,CAAE,kBAAmBA,EAAM,iBAAkB,EACjD,GAAIA,EAAM,0BAA4B,IAAA,GAClC,CAAC,EACD,CAAE,wBAAyBA,EAAM,uBAAwB,CAC/D,CACF,MAAQ,CACN,MAAU,UAAU,qCAAqC,CAC3D,CACF,CAGA,SAAgBK,EACd,EACA,CACA,MAAQ,IAAmCC,EAAOP,EAAyBC,CAAK,CAAC,CACnF,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("./index.cjs");let t=require("pg");function n(n){return new t.Pool(e.parseDatabasePoolOptions(n))}exports.createPostgresPool=n;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DatabasePoolInput } from "./index.cjs";
|
|
2
|
+
import { Pool } from "pg";
|
|
3
|
+
/** Call explicitly in the host composition root; no eager connection on import. */
|
|
4
|
+
export declare function createPostgresPool(input: DatabasePoolInput): Pool;
|
|
5
|
+
//# sourceMappingURL=postgres.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgres.d.cts","names":[],"sources":["../../../src/modules/database/postgres.ts"],"mappings":";;;wBAOgB,mBAAmB,OAAO,oBAAoB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { DatabasePoolInput } from "./index.js";
|
|
2
|
+
import { Pool } from "pg";
|
|
3
|
+
/** Call explicitly in the host composition root; no eager connection on import. */
|
|
4
|
+
export declare function createPostgresPool(input: DatabasePoolInput): Pool;
|
|
5
|
+
//# sourceMappingURL=postgres.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgres.d.ts","names":[],"sources":["../../../src/modules/database/postgres.ts"],"mappings":";;;wBAOgB,mBAAmB,OAAO,oBAAoB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"postgres.js","names":["createPostgresPool","Pool","parseDatabasePoolOptions","input"],"sources":["../../../src/modules/database/postgres.ts"],"sourcesContent":["import { Pool } from \"pg\";\nimport {\n parseDatabasePoolOptions,\n type DatabasePoolInput,\n} from \"@/modules/database/index\";\n\n/** Call explicitly in the host composition root; no eager connection on import. */\nexport function createPostgresPool(input: DatabasePoolInput): Pool {\n return new Pool(parseDatabasePoolOptions(input));\n}\n"],"mappings":"A,gFAOA,SAAgBA,EAAmB,EAAgC,CACjE,OAAO,IAAIC,EAAKC,EAAyBC,CAAK,CAAC,CACjD,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});const e=require("../../utils/formatter.cjs"),t=require("./rpc.cjs"),n=require("./shortcut.cjs"),r=require("./release.cjs"),i=require("./proxy.cjs");exports.createDesktopRpcHandler=t.createDesktopRpcHandler,exports.createDesktopRpcTransport=t.createDesktopRpcTransport,exports.createShortcutValidator=n.createShortcutValidator,exports.electronProxyConfig=i.electronProxyConfig,exports.isNewerRelease=r.isNewerRelease,exports.normalizeAccelerator=e.normalizeAccelerator,exports.parseRelease=r.parseRelease,exports.proxySettingsSchema=i.proxySettingsSchema,exports.releaseVersion=r.releaseVersion,exports.resolveDesktopRpcPolicy=t.resolveDesktopRpcPolicy,exports.shortcutIdentity=e.shortcutIdentity;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { C as DesktopRpcRequest, L as Shortcut, R as ShortcutDefinition, S as DesktopRpcPolicy, w as DesktopRpcResponse, z as ShortcutPolicy } from "../../interface-ii8DV63k.cjs";
|
|
2
|
+
import { normalizeAccelerator, shortcutIdentity } from "../../utils/formatter.cjs";
|
|
3
|
+
import "./interface.cjs";
|
|
4
|
+
import { createDesktopRpcHandler, createDesktopRpcTransport, resolveDesktopRpcPolicy } from "./rpc.cjs";
|
|
5
|
+
import { createShortcutValidator } from "./shortcut.cjs";
|
|
6
|
+
import { isNewerRelease, parseRelease, releaseVersion } from "./release.cjs";
|
|
7
|
+
import { ProxySettings, electronProxyConfig, proxySettingsSchema } from "./proxy.cjs";
|
|
8
|
+
export { type DesktopRpcPolicy, type DesktopRpcRequest, type DesktopRpcResponse, type ProxySettings, type Shortcut, type ShortcutDefinition, type ShortcutPolicy, createDesktopRpcHandler, createDesktopRpcTransport, createShortcutValidator, electronProxyConfig, isNewerRelease, normalizeAccelerator, parseRelease, proxySettingsSchema, releaseVersion, resolveDesktopRpcPolicy, shortcutIdentity };
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { C as DesktopRpcRequest, L as Shortcut, R as ShortcutDefinition, S as DesktopRpcPolicy, w as DesktopRpcResponse, z as ShortcutPolicy } from "../../interface-ii8DV63k.js";
|
|
2
|
+
import "./interface.js";
|
|
3
|
+
import { createDesktopRpcHandler, createDesktopRpcTransport, resolveDesktopRpcPolicy } from "./rpc.js";
|
|
4
|
+
import { o as normalizeAccelerator, s as shortcutIdentity } from "../../formatter-vjbCoK9k.js";
|
|
5
|
+
import { createShortcutValidator } from "./shortcut.js";
|
|
6
|
+
import { isNewerRelease, parseRelease, releaseVersion } from "./release.js";
|
|
7
|
+
import { ProxySettings, electronProxyConfig, proxySettingsSchema } from "./proxy.js";
|
|
8
|
+
export { type DesktopRpcPolicy, type DesktopRpcRequest, type DesktopRpcResponse, type ProxySettings, type Shortcut, type ShortcutDefinition, type ShortcutPolicy, createDesktopRpcHandler, createDesktopRpcTransport, createShortcutValidator, electronProxyConfig, isNewerRelease, normalizeAccelerator, parseRelease, proxySettingsSchema, releaseVersion, resolveDesktopRpcPolicy, shortcutIdentity };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{normalizeAccelerator as e,shortcutIdentity as t}from"../../utils/formatter.js";import{createDesktopRpcHandler as n,createDesktopRpcTransport as r,resolveDesktopRpcPolicy as i}from"./rpc.js";import{createShortcutValidator as a}from"./shortcut.js";import{isNewerRelease as o,parseRelease as s,releaseVersion as c}from"./release.js";import{electronProxyConfig as l,proxySettingsSchema as u}from"./proxy.js";export{n as createDesktopRpcHandler,r as createDesktopRpcTransport,a as createShortcutValidator,l as electronProxyConfig,o as isNewerRelease,e as normalizeAccelerator,s as parseRelease,u as proxySettingsSchema,c as releaseVersion,i as resolveDesktopRpcPolicy,t as shortcutIdentity};
|
|
File without changes
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export{};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});let e=require("zod");const t=e.z.object({mode:e.z.enum([`system`,`direct`,`http`,`socks5`]),host:e.z.string().trim().max(253).default(``),port:e.z.number().int().min(1).max(65535).default(8080)}).superRefine((e,t)=>{if(e.mode!==`system`&&e.mode!==`direct`)try{if(!e.host||/[\s/@?#;,\\]/.test(e.host))throw Error();let t=new URL(`http://`+e.host+`:`+e.port);if(t.hostname.toLowerCase()!==e.host.toLowerCase()||t.port&&Number(t.port)!==e.port)throw Error()}catch{t.addIssue({code:`custom`,path:[`host`],message:`Enter a hostname or IP address without a scheme or path.`})}});function n(e,n=`localhost;127.0.0.1;[::1]`){let r=t.parse(e);return r.mode===`system`||r.mode===`direct`?{mode:r.mode}:{mode:`fixed_servers`,proxyRules:`${r.mode}://${r.host}:${r.port}`,proxyBypassRules:n}}exports.electronProxyConfig=n,exports.proxySettingsSchema=t;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const proxySettingsSchema: z.ZodObject<{
|
|
3
|
+
mode: z.ZodEnum<{
|
|
4
|
+
system: "system";
|
|
5
|
+
direct: "direct";
|
|
6
|
+
http: "http";
|
|
7
|
+
socks5: "socks5";
|
|
8
|
+
}>;
|
|
9
|
+
host: z.ZodDefault<z.ZodString>;
|
|
10
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type ProxySettings = z.infer<typeof proxySettingsSchema>;
|
|
13
|
+
export declare function electronProxyConfig(input: ProxySettings, proxyBypassRules?: string): {
|
|
14
|
+
mode: "system" | "direct";
|
|
15
|
+
proxyRules?: undefined;
|
|
16
|
+
proxyBypassRules?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
mode: "fixed_servers";
|
|
19
|
+
proxyRules: string;
|
|
20
|
+
proxyBypassRules: string;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=proxy.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy.d.cts","names":[],"sources":["../../../src/modules/desktop/proxy.ts"],"mappings":";qBAEa,qBAAmB,EAAA;;;;;;;;;GAuB5B,EAAA,KAAA;YACQ,gBAAgB,EAAE,aAAa;wBAE3B,oBACd,OAAO,eACP"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const proxySettingsSchema: z.ZodObject<{
|
|
3
|
+
mode: z.ZodEnum<{
|
|
4
|
+
system: "system";
|
|
5
|
+
direct: "direct";
|
|
6
|
+
http: "http";
|
|
7
|
+
socks5: "socks5";
|
|
8
|
+
}>;
|
|
9
|
+
host: z.ZodDefault<z.ZodString>;
|
|
10
|
+
port: z.ZodDefault<z.ZodNumber>;
|
|
11
|
+
}, z.core.$strip>;
|
|
12
|
+
export type ProxySettings = z.infer<typeof proxySettingsSchema>;
|
|
13
|
+
export declare function electronProxyConfig(input: ProxySettings, proxyBypassRules?: string): {
|
|
14
|
+
mode: "system" | "direct";
|
|
15
|
+
proxyRules?: undefined;
|
|
16
|
+
proxyBypassRules?: undefined;
|
|
17
|
+
} | {
|
|
18
|
+
mode: "fixed_servers";
|
|
19
|
+
proxyRules: string;
|
|
20
|
+
proxyBypassRules: string;
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=proxy.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy.d.ts","names":[],"sources":["../../../src/modules/desktop/proxy.ts"],"mappings":";qBAEa,qBAAmB,EAAA;;;;;;;;;GAuB5B,EAAA,KAAA;YACQ,gBAAgB,EAAE,aAAa;wBAE3B,oBACd,OAAO,eACP"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{z as e}from"zod";const t=e.object({mode:e.enum([`system`,`direct`,`http`,`socks5`]),host:e.string().trim().max(253).default(``),port:e.number().int().min(1).max(65535).default(8080)}).superRefine((e,t)=>{if(e.mode!==`system`&&e.mode!==`direct`)try{if(!e.host||/[\s/@?#;,\\]/.test(e.host))throw Error();let t=new URL(`http://`+e.host+`:`+e.port);if(t.hostname.toLowerCase()!==e.host.toLowerCase()||t.port&&Number(t.port)!==e.port)throw Error()}catch{t.addIssue({code:`custom`,path:[`host`],message:`Enter a hostname or IP address without a scheme or path.`})}});function n(e,n=`localhost;127.0.0.1;[::1]`){let r=t.parse(e);return r.mode===`system`||r.mode===`direct`?{mode:r.mode}:{mode:`fixed_servers`,proxyRules:`${r.mode}://${r.host}:${r.port}`,proxyBypassRules:n}}export{n as electronProxyConfig,t as proxySettingsSchema};
|
|
2
|
+
//# sourceMappingURL=proxy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"proxy.js","names":["proxySettingsSchema","z","value","url","context","electronProxyConfig","settings","input"],"sources":["../../../src/modules/desktop/proxy.ts"],"sourcesContent":["import { z } from \"zod\";\n\nexport const proxySettingsSchema = z\n .object({\n mode: z.enum([\"system\", \"direct\", \"http\", \"socks5\"]),\n host: z.string().trim().max(253).default(\"\"),\n port: z.number().int().min(1).max(65535).default(8080),\n })\n .superRefine((value, context) => {\n if (value.mode === \"system\" || value.mode === \"direct\") return;\n try {\n if (!value.host || /[\\s/@?#;,\\\\]/.test(value.host)) throw new Error();\n const url = new URL(\"http://\" + value.host + \":\" + value.port);\n if (\n url.hostname.toLowerCase() !== value.host.toLowerCase() ||\n (url.port && Number(url.port) !== value.port)\n )\n throw new Error();\n } catch {\n context.addIssue({\n code: \"custom\",\n path: [\"host\"],\n message: \"Enter a hostname or IP address without a scheme or path.\",\n });\n }\n });\nexport type ProxySettings = z.infer<typeof proxySettingsSchema>;\n\nexport function electronProxyConfig(\n input: ProxySettings,\n proxyBypassRules = \"localhost;127.0.0.1;[::1]\",\n) {\n const settings = proxySettingsSchema.parse(input);\n if (settings.mode === \"system\" || settings.mode === \"direct\")\n return { mode: settings.mode };\n return {\n mode: \"fixed_servers\" as const,\n proxyRules: `${settings.mode}://${settings.host}:${settings.port}`,\n proxyBypassRules,\n };\n}\n"],"mappings":"A,wBAEA,MAAaA,EAAsBC,EAChC,OAAO,CACN,KAAMA,EAAE,KAAK,CAAC,SAAU,SAAU,OAAQ,QAAQ,CAAC,EACnD,KAAMA,EAAE,OAAO,CAAC,CAAC,KAAK,CAAC,CAAC,IAAI,GAAG,CAAC,CAAC,QAAQ,EAAE,EAC3C,KAAMA,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,IAAI,KAAK,CAAC,CAAC,QAAQ,IAAI,CACvD,CAAC,CAAC,CACD,aAAa,EAAO,IAAY,CAC/B,GAAIC,EAAM,OAAS,UAAYA,EAAM,OAAS,SAC9C,GAAI,CACF,GAAI,CAACA,EAAM,MAAQ,eAAe,KAAKA,EAAM,IAAI,EAAG,MAAU,MAAM,EACpE,IAAMC,EAAM,IAAI,IAAI,UAAYD,EAAM,KAAO,IAAMA,EAAM,IAAI,EAC7D,GACEC,EAAI,SAAS,YAAY,IAAMD,EAAM,KAAK,YAAY,GACrDC,EAAI,MAAQ,OAAOA,EAAI,IAAI,IAAMD,EAAM,KAExC,MAAU,MAAM,CACpB,MAAQ,CACNE,EAAQ,SAAS,CACf,KAAM,SACN,KAAM,CAAC,MAAM,EACb,QAAS,0DACX,CAAC,CACH,CACF,CAAC,EAGH,SAAgBC,EACd,EACA,EAAmB,4BACnB,CACA,IAAMC,EAAWN,EAAoB,MAAMO,CAAK,EAGhD,OAFID,EAAS,OAAS,UAAYA,EAAS,OAAS,SAC3C,CAAE,KAAMA,EAAS,IAAK,EACxB,CACL,KAAM,gBACN,WAAY,GAAGA,EAAS,KAAK,KAAKA,EAAS,KAAK,GAAGA,EAAS,OAC5D,kBACF,CACF,C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
Object.defineProperty(exports,Symbol.toStringTag,{value:`Module`});function e(e){if(typeof e!=`string`||e.length>255)return;let t=/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/.exec(e);return t?t.slice(1,4).join(`.`):void 0}function t(t,n){let r=e(t),i=e(n);if(!r||!i)return!1;let a=r.split(`.`).map(BigInt),o=i.split(`.`).map(BigInt);for(let e=0;e<3;e++){if(a[e]>o[e])return!0;if(a[e]<o[e])return!1}return!1}function n(t,n,r){if(![`darwin`,`win32`].includes(n)||![`x64`,`arm64`,`ia32`].includes(r)||!t||typeof t!=`object`)throw TypeError(`Invalid release target`);let i=t,a=e(i.tag_name);if(!a||i.draft!==!1||i.prerelease!==!1||!Array.isArray(i.assets))throw TypeError(`Invalid stable release`);let o=i.assets.map(e=>e&&typeof e==`object`&&`name`in e&&typeof e.name==`string`?e.name.toLowerCase():``);function s(e){let t=/-universal(?:[.-]|$)/.test(e)?`universal`:/-arm64(?:[.-]|$)/.test(e)?`arm64`:/-ia32(?:[.-]|$)/.test(e)?`ia32`:`x64`;return t===r||n===`darwin`&&t===`universal`}let c=o.some(e=>s(e)&&(n===`darwin`?/-(mac|darwin|osx)[.-]/.test(e)&&e.endsWith(`.zip`):e.endsWith(`.exe`))),l=n!==`win32`||o.includes(`releases`)&&o.some(e=>s(e)&&e.endsWith(`-full.nupkg`));if(!c||!l)throw TypeError(`No matching update artifact`);return a}exports.isNewerRelease=t,exports.parseRelease=n,exports.releaseVersion=e;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Stable SemVer only. This parses metadata, never verifies a signature or installs an artifact. */
|
|
2
|
+
export declare function releaseVersion(value: unknown): string | undefined;
|
|
3
|
+
export declare function isNewerRelease(candidate: unknown, current: string): boolean;
|
|
4
|
+
export declare function parseRelease(value: unknown, platform: string, arch: string): string;
|
|
5
|
+
//# sourceMappingURL=release.d.cts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.d.cts","names":[],"sources":["../../../src/modules/desktop/release.ts"],"mappings":";wBACgB,eAAe;wBASf,eAAe,oBAAoB;wBAanC,aAAa,gBAAgB,kBAAkB"}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
/** Stable SemVer only. This parses metadata, never verifies a signature or installs an artifact. */
|
|
2
|
+
export declare function releaseVersion(value: unknown): string | undefined;
|
|
3
|
+
export declare function isNewerRelease(candidate: unknown, current: string): boolean;
|
|
4
|
+
export declare function parseRelease(value: unknown, platform: string, arch: string): string;
|
|
5
|
+
//# sourceMappingURL=release.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.d.ts","names":[],"sources":["../../../src/modules/desktop/release.ts"],"mappings":";wBACgB,eAAe;wBASf,eAAe,oBAAoB;wBAanC,aAAa,gBAAgB,kBAAkB"}
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
function e(e){if(typeof e!=`string`||e.length>255)return;let t=/^v?(0|[1-9]\d*)\.(0|[1-9]\d*)\.(0|[1-9]\d*)(?:\+[0-9A-Za-z-]+(?:\.[0-9A-Za-z-]+)*)?$/.exec(e);return t?t.slice(1,4).join(`.`):void 0}function t(t,n){let r=e(t),i=e(n);if(!r||!i)return!1;let a=r.split(`.`).map(BigInt),o=i.split(`.`).map(BigInt);for(let e=0;e<3;e++){if(a[e]>o[e])return!0;if(a[e]<o[e])return!1}return!1}function n(t,n,r){if(![`darwin`,`win32`].includes(n)||![`x64`,`arm64`,`ia32`].includes(r)||!t||typeof t!=`object`)throw TypeError(`Invalid release target`);let i=t,a=e(i.tag_name);if(!a||i.draft!==!1||i.prerelease!==!1||!Array.isArray(i.assets))throw TypeError(`Invalid stable release`);let o=i.assets.map(e=>e&&typeof e==`object`&&`name`in e&&typeof e.name==`string`?e.name.toLowerCase():``);function s(e){let t=/-universal(?:[.-]|$)/.test(e)?`universal`:/-arm64(?:[.-]|$)/.test(e)?`arm64`:/-ia32(?:[.-]|$)/.test(e)?`ia32`:`x64`;return t===r||n===`darwin`&&t===`universal`}let c=o.some(e=>s(e)&&(n===`darwin`?/-(mac|darwin|osx)[.-]/.test(e)&&e.endsWith(`.zip`):e.endsWith(`.exe`))),l=n!==`win32`||o.includes(`releases`)&&o.some(e=>s(e)&&e.endsWith(`-full.nupkg`));if(!c||!l)throw TypeError(`No matching update artifact`);return a}export{t as isNewerRelease,n as parseRelease,e as releaseVersion};
|
|
2
|
+
//# sourceMappingURL=release.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"release.js","names":["releaseVersion","value","match","isNewerRelease","next","candidate","previous","current","b","index","parseRelease","platform","arch","release","version","names","asset","compatible","architecture","name","artifact","manifest"],"sources":["../../../src/modules/desktop/release.ts"],"sourcesContent":["/** Stable SemVer only. This parses metadata, never verifies a signature or installs an artifact. */\nexport function releaseVersion(value: unknown): string | undefined {\n if (typeof value !== \"string\" || value.length > 255) return;\n const match =\n /^v?(0|[1-9]\\d*)\\.(0|[1-9]\\d*)\\.(0|[1-9]\\d*)(?:\\+[0-9A-Za-z-]+(?:\\.[0-9A-Za-z-]+)*)?$/.exec(\n value,\n );\n return match ? match.slice(1, 4).join(\".\") : undefined;\n}\n\nexport function isNewerRelease(candidate: unknown, current: string): boolean {\n const next = releaseVersion(candidate),\n previous = releaseVersion(current);\n if (!next || !previous) return false;\n const a = next.split(\".\").map(BigInt),\n b = previous.split(\".\").map(BigInt);\n for (let index = 0; index < 3; index++) {\n if (a[index] > b[index]) return true;\n if (a[index] < b[index]) return false;\n }\n return false;\n}\n\nexport function parseRelease(value: unknown, platform: string, arch: string): string {\n if (\n ![\"darwin\", \"win32\"].includes(platform) ||\n ![\"x64\", \"arm64\", \"ia32\"].includes(arch) ||\n !value ||\n typeof value !== \"object\"\n )\n throw new TypeError(\"Invalid release target\");\n const release = value as Record<string, unknown>;\n const version = releaseVersion(release.tag_name);\n if (\n !version ||\n release.draft !== false ||\n release.prerelease !== false ||\n !Array.isArray(release.assets)\n )\n throw new TypeError(\"Invalid stable release\");\n const names = release.assets.map((asset: unknown) =>\n asset &&\n typeof asset === \"object\" &&\n \"name\" in asset &&\n typeof asset.name === \"string\"\n ? asset.name.toLowerCase()\n : \"\",\n );\n function compatible(name: string) {\n const architecture = /-universal(?:[.-]|$)/.test(name)\n ? \"universal\"\n : /-arm64(?:[.-]|$)/.test(name)\n ? \"arm64\"\n : /-ia32(?:[.-]|$)/.test(name)\n ? \"ia32\"\n : \"x64\";\n return (\n architecture === arch || (platform === \"darwin\" && architecture === \"universal\")\n );\n }\n const artifact = names.some(\n (name) =>\n compatible(name) &&\n (platform === \"darwin\"\n ? /-(mac|darwin|osx)[.-]/.test(name) && name.endsWith(\".zip\")\n : name.endsWith(\".exe\")),\n );\n const manifest =\n platform !== \"win32\" ||\n (names.includes(\"releases\") &&\n names.some((name) => compatible(name) && name.endsWith(\"-full.nupkg\")));\n if (!artifact || !manifest) throw new TypeError(\"No matching update artifact\");\n return version;\n}\n"],"mappings":"AACA,SAAgBA,EAAe,EAAoC,CACjE,GAAI,OAAOC,GAAU,UAAYA,EAAM,OAAS,IAAK,OACrD,IAAMC,EACJ,uFAAuF,KACrFD,CACF,EACF,OAAOC,EAAQA,EAAM,MAAM,EAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAI,IAAA,EAC/C,CAEA,SAAgBC,EAAe,EAAoB,EAA0B,CAC3E,IAAMC,EAAOJ,EAAeK,CAAS,EACnCC,EAAWN,EAAeO,CAAO,EACnC,GAAI,CAACH,GAAQ,CAACE,EAAU,MAAO,GAC/B,IAAM,EAAIF,EAAK,MAAM,GAAG,CAAC,CAAC,IAAI,MAAM,EAClCI,EAAIF,EAAS,MAAM,GAAG,CAAC,CAAC,IAAI,MAAM,EACpC,IAAK,IAAIG,EAAQ,EAAGA,EAAQ,EAAG,IAAS,CACtC,GAAI,EAAEA,GAASD,EAAEC,GAAQ,MAAO,GAChC,GAAI,EAAEA,GAASD,EAAEC,GAAQ,MAAO,EAClC,CACA,MAAO,EACT,CAEA,SAAgBC,EAAa,EAAgB,EAAkB,EAAsB,CACnF,GACE,CAAC,CAAC,SAAU,OAAO,CAAC,CAAC,SAASC,CAAQ,GACtC,CAAC,CAAC,MAAO,QAAS,MAAM,CAAC,CAAC,SAASC,CAAI,GACvC,CAACX,GACD,OAAOA,GAAU,SAEjB,MAAU,UAAU,wBAAwB,EAC9C,IAAMY,EAAUZ,EACVa,EAAUd,EAAea,EAAQ,QAAQ,EAC/C,GACE,CAACC,GACDD,EAAQ,QAAU,IAClBA,EAAQ,aAAe,IACvB,CAAC,MAAM,QAAQA,EAAQ,MAAM,EAE7B,MAAU,UAAU,wBAAwB,EAC9C,IAAME,EAAQF,EAAQ,OAAO,IAAK,GAChCG,GACA,OAAOA,GAAU,UACjB,SAAUA,GACV,OAAOA,EAAM,MAAS,SAClBA,EAAM,KAAK,YAAY,EACvB,EACN,EACA,SAASC,EAAW,EAAc,CAChC,IAAMC,EAAe,uBAAuB,KAAKC,CAAI,EACjD,YACA,mBAAmB,KAAKA,CAAI,EAC1B,QACA,kBAAkB,KAAKA,CAAI,EACzB,OACA,MACR,OACED,IAAiBN,GAASD,IAAa,UAAYO,IAAiB,WAExE,CACA,IAAME,EAAWL,EAAM,KACpB,GACCE,EAAWE,CAAI,IACdR,IAAa,SACV,wBAAwB,KAAKQ,CAAI,GAAKA,EAAK,SAAS,MAAM,EAC1DA,EAAK,SAAS,MAAM,EAC5B,EACME,EACJV,IAAa,SACZI,EAAM,SAAS,UAAU,GACxBA,EAAM,KAAM,GAASE,EAAWE,CAAI,GAAKA,EAAK,SAAS,aAAa,CAAC,EACzE,GAAI,CAACC,GAAY,CAACC,EAAU,MAAU,UAAU,6BAA6B,EAC7E,OAAOP,CACT,C"}
|