tokentracker-cli 0.5.1 → 0.5.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 +3 -0
- package/dashboard/dist/assets/DashboardPage-ccDq1oTb.js +12 -0
- package/dashboard/dist/assets/LeaderboardPage-BvhBcafd.js +1 -0
- package/dashboard/dist/assets/LeaderboardProfilePage-B5Yw_BZM.js +1 -0
- package/dashboard/dist/assets/ThemeToggle-CQvh_d2Z.js +1 -0
- package/dashboard/dist/assets/leaderboard-columns-COq9DxPJ.js +1 -0
- package/dashboard/dist/assets/main-8JBJiGVQ.js +4759 -0
- package/dashboard/dist/assets/main-Cwn9_aQV.css +1 -0
- package/dashboard/dist/brand-logos/claude-code.svg +3 -0
- package/dashboard/dist/brand-logos/codex.svg +3 -0
- package/dashboard/dist/brand-logos/cursor.svg +3 -0
- package/dashboard/dist/brand-logos/gemini.svg +20 -0
- package/dashboard/dist/brand-logos/openclaw.svg +22 -0
- package/dashboard/dist/brand-logos/opencode.svg +3 -0
- package/dashboard/dist/dashboard-dark.png +0 -0
- package/dashboard/dist/feed.xml +7 -7
- package/dashboard/dist/index.html +5 -5
- package/dashboard/dist/llms.txt +13 -13
- package/dashboard/dist/robots.txt +3 -3
- package/dashboard/dist/share.html +2 -2
- package/dashboard/dist/sitemap.xml +2 -2
- package/package.json +3 -12
- package/src/commands/init.js +8 -95
- package/src/commands/serve.js +1 -1
- package/src/commands/sync.js +106 -153
- package/src/lib/activation-check.js +21 -21
- package/src/lib/browser-auth.js +1 -1
- package/src/lib/doctor.js +0 -13
- package/src/lib/gemini-config.js +1 -1
- package/src/lib/local-api.js +94 -12
- package/src/lib/openclaw-hook.js +8 -8
- package/src/lib/openclaw-session-plugin.js +7 -7
- package/src/lib/opencode-config.js +1 -1
- package/src/lib/opencode-usage-audit.js +1 -1
- package/src/lib/rollout.js +9 -15
- package/src/lib/runtime-config.js +1 -11
- package/dashboard/dist/assets/DashboardPage-CExFMoW6.js +0 -20
- package/dashboard/dist/assets/LandingExtras-xTxVZkGw.js +0 -1
- package/dashboard/dist/assets/LeaderboardPage-OsAoNAEz.js +0 -1
- package/dashboard/dist/assets/LeaderboardProfilePage-DK2OUyhv.js +0 -1
- package/dashboard/dist/assets/MatrixRain-C71qNSYx.js +0 -1
- package/dashboard/dist/assets/MatrixShell-DVXCuT--.js +0 -1
- package/dashboard/dist/assets/main-B_NbZucu.css +0 -1
- package/dashboard/dist/assets/main-DBkuzJr4.js +0 -2058
- package/dashboard/dist/assets/vibeusage-api-93ghbEE8.js +0 -1
- package/dashboard/dist/icon.svg +0 -1
- package/dashboard/dist/landing-dashboard.jpg +0 -0
- package/dashboard/dist/og-image.jpg +0 -0
- package/dashboard/dist/share-dashboard.jpg +0 -0
- package/dashboard/dist/social-preview.png +0 -0
- package/dashboard/dist/wrapped-2025.png +0 -0
- package/node_modules/@insforge/sdk/LICENSE +0 -201
- package/node_modules/@insforge/sdk/README.md +0 -259
- package/node_modules/@insforge/sdk/dist/index.d.mts +0 -854
- package/node_modules/@insforge/sdk/dist/index.d.ts +0 -854
- package/node_modules/@insforge/sdk/dist/index.js +0 -1823
- package/node_modules/@insforge/sdk/dist/index.js.map +0 -1
- package/node_modules/@insforge/sdk/dist/index.mjs +0 -1784
- package/node_modules/@insforge/sdk/dist/index.mjs.map +0 -1
- package/node_modules/@insforge/sdk/package.json +0 -68
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.d.ts +0 -583
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.js +0 -111
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.d.ts +0 -188
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.js +0 -48
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.d.ts +0 -1127
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.js +0 -277
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.d.ts +0 -187
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.js +0 -105
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.d.ts +0 -144
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.js +0 -41
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.d.ts +0 -1627
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.js +0 -209
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/database.schema.d.ts +0 -263
- package/node_modules/@insforge/shared-schemas/dist/database.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/database.schema.js +0 -89
- package/node_modules/@insforge/shared-schemas/dist/database.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.d.ts +0 -4
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.js +0 -22
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.d.ts +0 -34
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.js +0 -24
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.d.ts +0 -39
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.js +0 -18
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.d.ts +0 -34
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.js +0 -14
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/index.d.ts +0 -19
- package/node_modules/@insforge/shared-schemas/dist/index.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/index.js +0 -19
- package/node_modules/@insforge/shared-schemas/dist/index.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.d.ts +0 -237
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.js +0 -41
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.d.ts +0 -79
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.js +0 -31
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.d.ts +0 -940
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.js +0 -50
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.d.ts +0 -395
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.js +0 -73
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.d.ts +0 -269
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.js +0 -109
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.d.ts +0 -166
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.js +0 -49
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.d.ts +0 -39
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.d.ts.map +0 -1
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.js +0 -15
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.js.map +0 -1
- package/node_modules/@insforge/shared-schemas/package.json +0 -31
- package/node_modules/@socket.io/component-emitter/LICENSE +0 -24
- package/node_modules/@socket.io/component-emitter/Readme.md +0 -79
- package/node_modules/@socket.io/component-emitter/lib/cjs/index.d.ts +0 -179
- package/node_modules/@socket.io/component-emitter/lib/cjs/index.js +0 -176
- package/node_modules/@socket.io/component-emitter/lib/cjs/package.json +0 -4
- package/node_modules/@socket.io/component-emitter/lib/esm/index.d.ts +0 -179
- package/node_modules/@socket.io/component-emitter/lib/esm/index.js +0 -169
- package/node_modules/@socket.io/component-emitter/lib/esm/package.json +0 -4
- package/node_modules/@socket.io/component-emitter/package.json +0 -28
- package/node_modules/@supabase/node-fetch/LICENSE.md +0 -22
- package/node_modules/@supabase/node-fetch/README.md +0 -633
- package/node_modules/@supabase/node-fetch/browser.js +0 -22
- package/node_modules/@supabase/node-fetch/lib/index.es.js +0 -1778
- package/node_modules/@supabase/node-fetch/lib/index.js +0 -1787
- package/node_modules/@supabase/node-fetch/lib/index.mjs +0 -1776
- package/node_modules/@supabase/node-fetch/package.json +0 -80
- package/node_modules/@supabase/postgrest-js/LICENSE +0 -21
- package/node_modules/@supabase/postgrest-js/README.md +0 -56
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.d.ts +0 -71
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.js +0 -222
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.d.ts +0 -74
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.js +0 -121
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.d.ts +0 -17
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.js +0 -18
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.d.ts +0 -108
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.js +0 -381
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.d.ts +0 -117
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.js +0 -251
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.d.ts +0 -157
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.js +0 -226
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.d.ts +0 -4
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.js +0 -6
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.d.ts +0 -19
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.js +0 -28
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.d.ts +0 -261
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.js +0 -5
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.d.ts +0 -157
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.js +0 -3
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.d.ts +0 -31
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.js +0 -3
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.d.ts +0 -264
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.js +0 -3
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.d.ts +0 -106
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.js +0 -3
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.d.ts +0 -2
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.d.ts.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.js +0 -5
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.js.map +0 -1
- package/node_modules/@supabase/postgrest-js/dist/esm/wrapper.mjs +0 -28
- package/node_modules/@supabase/postgrest-js/package.json +0 -75
- package/node_modules/@supabase/postgrest-js/src/PostgrestBuilder.ts +0 -300
- package/node_modules/@supabase/postgrest-js/src/PostgrestClient.ts +0 -192
- package/node_modules/@supabase/postgrest-js/src/PostgrestError.ts +0 -18
- package/node_modules/@supabase/postgrest-js/src/PostgrestFilterBuilder.ts +0 -604
- package/node_modules/@supabase/postgrest-js/src/PostgrestQueryBuilder.ts +0 -437
- package/node_modules/@supabase/postgrest-js/src/PostgrestTransformBuilder.ts +0 -368
- package/node_modules/@supabase/postgrest-js/src/constants.ts +0 -2
- package/node_modules/@supabase/postgrest-js/src/index.ts +0 -35
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/parser.ts +0 -469
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/result.ts +0 -503
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/types.ts +0 -115
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/utils.ts +0 -602
- package/node_modules/@supabase/postgrest-js/src/types.ts +0 -201
- package/node_modules/@supabase/postgrest-js/src/version.ts +0 -1
- package/node_modules/debug/LICENSE +0 -20
- package/node_modules/debug/README.md +0 -481
- package/node_modules/debug/package.json +0 -60
- package/node_modules/debug/src/browser.js +0 -271
- package/node_modules/debug/src/common.js +0 -274
- package/node_modules/debug/src/index.js +0 -10
- package/node_modules/debug/src/node.js +0 -263
- package/node_modules/engine.io-client/LICENSE +0 -22
- package/node_modules/engine.io-client/README.md +0 -331
- package/node_modules/engine.io-client/build/cjs/browser-entrypoint.d.ts +0 -3
- package/node_modules/engine.io-client/build/cjs/browser-entrypoint.js +0 -4
- package/node_modules/engine.io-client/build/cjs/contrib/has-cors.d.ts +0 -1
- package/node_modules/engine.io-client/build/cjs/contrib/has-cors.js +0 -14
- package/node_modules/engine.io-client/build/cjs/contrib/parseqs.d.ts +0 -15
- package/node_modules/engine.io-client/build/cjs/contrib/parseqs.js +0 -38
- package/node_modules/engine.io-client/build/cjs/contrib/parseuri.d.ts +0 -1
- package/node_modules/engine.io-client/build/cjs/contrib/parseuri.js +0 -67
- package/node_modules/engine.io-client/build/cjs/globals.d.ts +0 -4
- package/node_modules/engine.io-client/build/cjs/globals.js +0 -26
- package/node_modules/engine.io-client/build/cjs/globals.node.d.ts +0 -21
- package/node_modules/engine.io-client/build/cjs/globals.node.js +0 -97
- package/node_modules/engine.io-client/build/cjs/index.d.ts +0 -15
- package/node_modules/engine.io-client/build/cjs/index.js +0 -32
- package/node_modules/engine.io-client/build/cjs/package.json +0 -10
- package/node_modules/engine.io-client/build/cjs/socket.d.ts +0 -482
- package/node_modules/engine.io-client/build/cjs/socket.js +0 -765
- package/node_modules/engine.io-client/build/cjs/transport.d.ts +0 -106
- package/node_modules/engine.io-client/build/cjs/transport.js +0 -153
- package/node_modules/engine.io-client/build/cjs/transports/index.d.ts +0 -8
- package/node_modules/engine.io-client/build/cjs/transports/index.js +0 -11
- package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.d.ts +0 -15
- package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.js +0 -60
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.d.ts +0 -108
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.js +0 -285
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.d.ts +0 -11
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.js +0 -44
- package/node_modules/engine.io-client/build/cjs/transports/polling.d.ts +0 -52
- package/node_modules/engine.io-client/build/cjs/transports/polling.js +0 -165
- package/node_modules/engine.io-client/build/cjs/transports/websocket.d.ts +0 -36
- package/node_modules/engine.io-client/build/cjs/transports/websocket.js +0 -136
- package/node_modules/engine.io-client/build/cjs/transports/websocket.node.d.ts +0 -14
- package/node_modules/engine.io-client/build/cjs/transports/websocket.node.js +0 -68
- package/node_modules/engine.io-client/build/cjs/transports/webtransport.d.ts +0 -18
- package/node_modules/engine.io-client/build/cjs/transports/webtransport.js +0 -94
- package/node_modules/engine.io-client/build/cjs/util.d.ts +0 -7
- package/node_modules/engine.io-client/build/cjs/util.js +0 -65
- package/node_modules/engine.io-client/build/esm/browser-entrypoint.d.ts +0 -3
- package/node_modules/engine.io-client/build/esm/browser-entrypoint.js +0 -2
- package/node_modules/engine.io-client/build/esm/contrib/has-cors.d.ts +0 -1
- package/node_modules/engine.io-client/build/esm/contrib/has-cors.js +0 -11
- package/node_modules/engine.io-client/build/esm/contrib/parseqs.d.ts +0 -15
- package/node_modules/engine.io-client/build/esm/contrib/parseqs.js +0 -34
- package/node_modules/engine.io-client/build/esm/contrib/parseuri.d.ts +0 -1
- package/node_modules/engine.io-client/build/esm/contrib/parseuri.js +0 -64
- package/node_modules/engine.io-client/build/esm/globals.d.ts +0 -4
- package/node_modules/engine.io-client/build/esm/globals.js +0 -22
- package/node_modules/engine.io-client/build/esm/globals.node.d.ts +0 -21
- package/node_modules/engine.io-client/build/esm/globals.node.js +0 -91
- package/node_modules/engine.io-client/build/esm/index.d.ts +0 -15
- package/node_modules/engine.io-client/build/esm/index.js +0 -15
- package/node_modules/engine.io-client/build/esm/package.json +0 -10
- package/node_modules/engine.io-client/build/esm/socket.d.ts +0 -482
- package/node_modules/engine.io-client/build/esm/socket.js +0 -727
- package/node_modules/engine.io-client/build/esm/transport.d.ts +0 -106
- package/node_modules/engine.io-client/build/esm/transport.js +0 -142
- package/node_modules/engine.io-client/build/esm/transports/index.d.ts +0 -8
- package/node_modules/engine.io-client/build/esm/transports/index.js +0 -8
- package/node_modules/engine.io-client/build/esm/transports/polling-fetch.d.ts +0 -15
- package/node_modules/engine.io-client/build/esm/transports/polling-fetch.js +0 -56
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.d.ts +0 -108
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +0 -271
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.d.ts +0 -11
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.js +0 -17
- package/node_modules/engine.io-client/build/esm/transports/polling.d.ts +0 -52
- package/node_modules/engine.io-client/build/esm/transports/polling.js +0 -145
- package/node_modules/engine.io-client/build/esm/transports/websocket.d.ts +0 -36
- package/node_modules/engine.io-client/build/esm/transports/websocket.js +0 -125
- package/node_modules/engine.io-client/build/esm/transports/websocket.node.d.ts +0 -14
- package/node_modules/engine.io-client/build/esm/transports/websocket.node.js +0 -41
- package/node_modules/engine.io-client/build/esm/transports/webtransport.d.ts +0 -18
- package/node_modules/engine.io-client/build/esm/transports/webtransport.js +0 -80
- package/node_modules/engine.io-client/build/esm/util.d.ts +0 -7
- package/node_modules/engine.io-client/build/esm/util.js +0 -59
- package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.d.ts +0 -3
- package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.js +0 -2
- package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.d.ts +0 -1
- package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js +0 -11
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.d.ts +0 -15
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js +0 -34
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.d.ts +0 -1
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js +0 -64
- package/node_modules/engine.io-client/build/esm-debug/globals.d.ts +0 -4
- package/node_modules/engine.io-client/build/esm-debug/globals.js +0 -22
- package/node_modules/engine.io-client/build/esm-debug/globals.node.d.ts +0 -21
- package/node_modules/engine.io-client/build/esm-debug/globals.node.js +0 -91
- package/node_modules/engine.io-client/build/esm-debug/index.d.ts +0 -15
- package/node_modules/engine.io-client/build/esm-debug/index.js +0 -15
- package/node_modules/engine.io-client/build/esm-debug/package.json +0 -10
- package/node_modules/engine.io-client/build/esm-debug/socket.d.ts +0 -482
- package/node_modules/engine.io-client/build/esm-debug/socket.js +0 -756
- package/node_modules/engine.io-client/build/esm-debug/transport.d.ts +0 -106
- package/node_modules/engine.io-client/build/esm-debug/transport.js +0 -145
- package/node_modules/engine.io-client/build/esm-debug/transports/index.d.ts +0 -8
- package/node_modules/engine.io-client/build/esm-debug/transports/index.js +0 -8
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.d.ts +0 -15
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.js +0 -56
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.d.ts +0 -108
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js +0 -276
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.d.ts +0 -11
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js +0 -17
- package/node_modules/engine.io-client/build/esm-debug/transports/polling.d.ts +0 -52
- package/node_modules/engine.io-client/build/esm-debug/transports/polling.js +0 -158
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.d.ts +0 -36
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.js +0 -128
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.d.ts +0 -14
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js +0 -41
- package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.d.ts +0 -18
- package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.js +0 -87
- package/node_modules/engine.io-client/build/esm-debug/util.d.ts +0 -7
- package/node_modules/engine.io-client/build/esm-debug/util.js +0 -59
- package/node_modules/engine.io-client/dist/engine.io.esm.min.js +0 -7
- package/node_modules/engine.io-client/dist/engine.io.esm.min.js.map +0 -1
- package/node_modules/engine.io-client/dist/engine.io.js +0 -2968
- package/node_modules/engine.io-client/dist/engine.io.js.map +0 -1
- package/node_modules/engine.io-client/dist/engine.io.min.js +0 -7
- package/node_modules/engine.io-client/dist/engine.io.min.js.map +0 -1
- package/node_modules/engine.io-client/package.json +0 -95
- package/node_modules/engine.io-parser/LICENSE +0 -22
- package/node_modules/engine.io-parser/Readme.md +0 -158
- package/node_modules/engine.io-parser/build/cjs/commons.d.ts +0 -14
- package/node_modules/engine.io-parser/build/cjs/commons.js +0 -19
- package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.d.ts +0 -2
- package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.js +0 -48
- package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.d.ts +0 -2
- package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.js +0 -66
- package/node_modules/engine.io-parser/build/cjs/decodePacket.d.ts +0 -2
- package/node_modules/engine.io-parser/build/cjs/decodePacket.js +0 -59
- package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.d.ts +0 -4
- package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.js +0 -72
- package/node_modules/engine.io-parser/build/cjs/encodePacket.d.ts +0 -3
- package/node_modules/engine.io-parser/build/cjs/encodePacket.js +0 -38
- package/node_modules/engine.io-parser/build/cjs/index.d.ts +0 -9
- package/node_modules/engine.io-parser/build/cjs/index.js +0 -164
- package/node_modules/engine.io-parser/build/cjs/package.json +0 -8
- package/node_modules/engine.io-parser/build/esm/commons.d.ts +0 -14
- package/node_modules/engine.io-parser/build/esm/commons.js +0 -14
- package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.d.ts +0 -2
- package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +0 -43
- package/node_modules/engine.io-parser/build/esm/decodePacket.browser.d.ts +0 -2
- package/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +0 -62
- package/node_modules/engine.io-parser/build/esm/decodePacket.d.ts +0 -2
- package/node_modules/engine.io-parser/build/esm/decodePacket.js +0 -55
- package/node_modules/engine.io-parser/build/esm/encodePacket.browser.d.ts +0 -4
- package/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +0 -68
- package/node_modules/engine.io-parser/build/esm/encodePacket.d.ts +0 -3
- package/node_modules/engine.io-parser/build/esm/encodePacket.js +0 -33
- package/node_modules/engine.io-parser/build/esm/index.d.ts +0 -9
- package/node_modules/engine.io-parser/build/esm/index.js +0 -156
- package/node_modules/engine.io-parser/build/esm/package.json +0 -8
- package/node_modules/engine.io-parser/package.json +0 -46
- package/node_modules/ms/index.js +0 -162
- package/node_modules/ms/license.md +0 -21
- package/node_modules/ms/package.json +0 -38
- package/node_modules/ms/readme.md +0 -59
- package/node_modules/socket.io-client/LICENSE +0 -21
- package/node_modules/socket.io-client/README.md +0 -29
- package/node_modules/socket.io-client/build/cjs/browser-entrypoint.d.ts +0 -2
- package/node_modules/socket.io-client/build/cjs/browser-entrypoint.js +0 -4
- package/node_modules/socket.io-client/build/cjs/contrib/backo2.d.ts +0 -12
- package/node_modules/socket.io-client/build/cjs/contrib/backo2.js +0 -69
- package/node_modules/socket.io-client/build/cjs/index.d.ts +0 -29
- package/node_modules/socket.io-client/build/cjs/index.js +0 -76
- package/node_modules/socket.io-client/build/cjs/manager.d.ts +0 -295
- package/node_modules/socket.io-client/build/cjs/manager.js +0 -416
- package/node_modules/socket.io-client/build/cjs/on.d.ts +0 -2
- package/node_modules/socket.io-client/build/cjs/on.js +0 -9
- package/node_modules/socket.io-client/build/cjs/socket.d.ts +0 -593
- package/node_modules/socket.io-client/build/cjs/socket.js +0 -910
- package/node_modules/socket.io-client/build/cjs/url.d.ts +0 -33
- package/node_modules/socket.io-client/build/cjs/url.js +0 -69
- package/node_modules/socket.io-client/build/esm/browser-entrypoint.d.ts +0 -2
- package/node_modules/socket.io-client/build/esm/browser-entrypoint.js +0 -2
- package/node_modules/socket.io-client/build/esm/contrib/backo2.d.ts +0 -12
- package/node_modules/socket.io-client/build/esm/contrib/backo2.js +0 -66
- package/node_modules/socket.io-client/build/esm/index.d.ts +0 -29
- package/node_modules/socket.io-client/build/esm/index.js +0 -58
- package/node_modules/socket.io-client/build/esm/manager.d.ts +0 -295
- package/node_modules/socket.io-client/build/esm/manager.js +0 -367
- package/node_modules/socket.io-client/build/esm/on.d.ts +0 -2
- package/node_modules/socket.io-client/build/esm/on.js +0 -6
- package/node_modules/socket.io-client/build/esm/package.json +0 -5
- package/node_modules/socket.io-client/build/esm/socket.d.ts +0 -593
- package/node_modules/socket.io-client/build/esm/socket.js +0 -882
- package/node_modules/socket.io-client/build/esm/url.d.ts +0 -33
- package/node_modules/socket.io-client/build/esm/url.js +0 -59
- package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.d.ts +0 -2
- package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.js +0 -2
- package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.d.ts +0 -12
- package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.js +0 -66
- package/node_modules/socket.io-client/build/esm-debug/index.d.ts +0 -29
- package/node_modules/socket.io-client/build/esm-debug/index.js +0 -62
- package/node_modules/socket.io-client/build/esm-debug/manager.d.ts +0 -295
- package/node_modules/socket.io-client/build/esm-debug/manager.js +0 -386
- package/node_modules/socket.io-client/build/esm-debug/on.d.ts +0 -2
- package/node_modules/socket.io-client/build/esm-debug/on.js +0 -6
- package/node_modules/socket.io-client/build/esm-debug/package.json +0 -5
- package/node_modules/socket.io-client/build/esm-debug/socket.d.ts +0 -593
- package/node_modules/socket.io-client/build/esm-debug/socket.js +0 -903
- package/node_modules/socket.io-client/build/esm-debug/url.d.ts +0 -33
- package/node_modules/socket.io-client/build/esm-debug/url.js +0 -63
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js +0 -7
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +0 -1
- package/node_modules/socket.io-client/dist/socket.io.js +0 -4908
- package/node_modules/socket.io-client/dist/socket.io.js.map +0 -1
- package/node_modules/socket.io-client/dist/socket.io.min.js +0 -7
- package/node_modules/socket.io-client/dist/socket.io.min.js.map +0 -1
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +0 -7
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +0 -1
- package/node_modules/socket.io-client/package.json +0 -101
- package/node_modules/socket.io-parser/LICENSE +0 -20
- package/node_modules/socket.io-parser/Readme.md +0 -81
- package/node_modules/socket.io-parser/build/cjs/binary.d.ts +0 -20
- package/node_modules/socket.io-parser/build/cjs/binary.js +0 -88
- package/node_modules/socket.io-parser/build/cjs/index.d.ts +0 -90
- package/node_modules/socket.io-parser/build/cjs/index.js +0 -321
- package/node_modules/socket.io-parser/build/cjs/is-binary.d.ts +0 -7
- package/node_modules/socket.io-parser/build/cjs/is-binary.js +0 -55
- package/node_modules/socket.io-parser/build/cjs/package.json +0 -3
- package/node_modules/socket.io-parser/build/esm/binary.d.ts +0 -20
- package/node_modules/socket.io-parser/build/esm/binary.js +0 -83
- package/node_modules/socket.io-parser/build/esm/index.d.ts +0 -90
- package/node_modules/socket.io-parser/build/esm/index.js +0 -311
- package/node_modules/socket.io-parser/build/esm/is-binary.d.ts +0 -7
- package/node_modules/socket.io-parser/build/esm/is-binary.js +0 -50
- package/node_modules/socket.io-parser/build/esm/package.json +0 -3
- package/node_modules/socket.io-parser/build/esm-debug/binary.d.ts +0 -20
- package/node_modules/socket.io-parser/build/esm-debug/binary.js +0 -83
- package/node_modules/socket.io-parser/build/esm-debug/index.d.ts +0 -90
- package/node_modules/socket.io-parser/build/esm-debug/index.js +0 -316
- package/node_modules/socket.io-parser/build/esm-debug/is-binary.d.ts +0 -7
- package/node_modules/socket.io-parser/build/esm-debug/is-binary.js +0 -50
- package/node_modules/socket.io-parser/build/esm-debug/package.json +0 -3
- package/node_modules/socket.io-parser/package.json +0 -58
- package/node_modules/tr46/.npmignore +0 -4
- package/node_modules/tr46/index.js +0 -193
- package/node_modules/tr46/lib/.gitkeep +0 -0
- package/node_modules/tr46/lib/mappingTable.json +0 -1
- package/node_modules/tr46/package.json +0 -31
- package/node_modules/webidl-conversions/LICENSE.md +0 -12
- package/node_modules/webidl-conversions/README.md +0 -53
- package/node_modules/webidl-conversions/lib/index.js +0 -189
- package/node_modules/webidl-conversions/package.json +0 -23
- package/node_modules/whatwg-url/LICENSE.txt +0 -21
- package/node_modules/whatwg-url/README.md +0 -67
- package/node_modules/whatwg-url/lib/URL-impl.js +0 -200
- package/node_modules/whatwg-url/lib/URL.js +0 -196
- package/node_modules/whatwg-url/lib/public-api.js +0 -11
- package/node_modules/whatwg-url/lib/url-state-machine.js +0 -1297
- package/node_modules/whatwg-url/lib/utils.js +0 -20
- package/node_modules/whatwg-url/package.json +0 -32
- package/node_modules/ws/LICENSE +0 -20
- package/node_modules/ws/README.md +0 -548
- package/node_modules/ws/browser.js +0 -8
- package/node_modules/ws/index.js +0 -13
- package/node_modules/ws/lib/buffer-util.js +0 -131
- package/node_modules/ws/lib/constants.js +0 -12
- package/node_modules/ws/lib/event-target.js +0 -292
- package/node_modules/ws/lib/extension.js +0 -203
- package/node_modules/ws/lib/limiter.js +0 -55
- package/node_modules/ws/lib/permessage-deflate.js +0 -514
- package/node_modules/ws/lib/receiver.js +0 -704
- package/node_modules/ws/lib/sender.js +0 -497
- package/node_modules/ws/lib/stream.js +0 -159
- package/node_modules/ws/lib/subprotocol.js +0 -62
- package/node_modules/ws/lib/validation.js +0 -130
- package/node_modules/ws/lib/websocket-server.js +0 -540
- package/node_modules/ws/lib/websocket.js +0 -1338
- package/node_modules/ws/package.json +0 -69
- package/node_modules/ws/wrapper.mjs +0 -8
- package/node_modules/xmlhttprequest-ssl/LICENSE +0 -22
- package/node_modules/xmlhttprequest-ssl/README.md +0 -67
- package/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js +0 -689
- package/node_modules/xmlhttprequest-ssl/package.json +0 -40
- package/node_modules/zod/LICENSE +0 -21
- package/node_modules/zod/README.md +0 -208
- package/node_modules/zod/index.cjs +0 -33
- package/node_modules/zod/index.d.cts +0 -4
- package/node_modules/zod/index.d.ts +0 -4
- package/node_modules/zod/index.js +0 -4
- package/node_modules/zod/package.json +0 -118
- package/node_modules/zod/src/index.ts +0 -4
- package/node_modules/zod/src/v3/ZodError.ts +0 -330
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +0 -58
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +0 -80
- package/node_modules/zod/src/v3/benchmarks/index.ts +0 -59
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +0 -57
- package/node_modules/zod/src/v3/benchmarks/object.ts +0 -69
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +0 -162
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +0 -63
- package/node_modules/zod/src/v3/benchmarks/string.ts +0 -55
- package/node_modules/zod/src/v3/benchmarks/union.ts +0 -80
- package/node_modules/zod/src/v3/errors.ts +0 -13
- package/node_modules/zod/src/v3/external.ts +0 -6
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +0 -17
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +0 -8
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +0 -176
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +0 -34
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +0 -2
- package/node_modules/zod/src/v3/helpers/util.ts +0 -224
- package/node_modules/zod/src/v3/index.ts +0 -4
- package/node_modules/zod/src/v3/locales/en.ts +0 -124
- package/node_modules/zod/src/v3/standard-schema.ts +0 -113
- package/node_modules/zod/src/v3/tests/Mocker.ts +0 -54
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +0 -157
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +0 -28
- package/node_modules/zod/src/v3/tests/array.test.ts +0 -71
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +0 -388
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +0 -46
- package/node_modules/zod/src/v3/tests/base.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/bigint.test.ts +0 -55
- package/node_modules/zod/src/v3/tests/branded.test.ts +0 -53
- package/node_modules/zod/src/v3/tests/catch.test.ts +0 -220
- package/node_modules/zod/src/v3/tests/coerce.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/complex.test.ts +0 -56
- package/node_modules/zod/src/v3/tests/custom.test.ts +0 -31
- package/node_modules/zod/src/v3/tests/date.test.ts +0 -32
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/default.test.ts +0 -112
- package/node_modules/zod/src/v3/tests/description.test.ts +0 -33
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +0 -315
- package/node_modules/zod/src/v3/tests/enum.test.ts +0 -80
- package/node_modules/zod/src/v3/tests/error.test.ts +0 -551
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/function.test.ts +0 -257
- package/node_modules/zod/src/v3/tests/generics.test.ts +0 -48
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +0 -37
- package/node_modules/zod/src/v3/tests/intersection.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/language-server.source.ts +0 -76
- package/node_modules/zod/src/v3/tests/language-server.test.ts +0 -207
- package/node_modules/zod/src/v3/tests/literal.test.ts +0 -36
- package/node_modules/zod/src/v3/tests/map.test.ts +0 -110
- package/node_modules/zod/src/v3/tests/masking.test.ts +0 -4
- package/node_modules/zod/src/v3/tests/mocker.test.ts +0 -19
- package/node_modules/zod/src/v3/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +0 -87
- package/node_modules/zod/src/v3/tests/nullable.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/number.test.ts +0 -176
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/object.test.ts +0 -434
- package/node_modules/zod/src/v3/tests/optional.test.ts +0 -42
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +0 -23
- package/node_modules/zod/src/v3/tests/parser.test.ts +0 -41
- package/node_modules/zod/src/v3/tests/partials.test.ts +0 -243
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +0 -111
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +0 -29
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +0 -186
- package/node_modules/zod/src/v3/tests/primitive.test.ts +0 -440
- package/node_modules/zod/src/v3/tests/promise.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/readonly.test.ts +0 -194
- package/node_modules/zod/src/v3/tests/record.test.ts +0 -171
- package/node_modules/zod/src/v3/tests/recursive.test.ts +0 -197
- package/node_modules/zod/src/v3/tests/refine.test.ts +0 -313
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +0 -27
- package/node_modules/zod/src/v3/tests/set.test.ts +0 -142
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +0 -83
- package/node_modules/zod/src/v3/tests/string.test.ts +0 -916
- package/node_modules/zod/src/v3/tests/transformer.test.ts +0 -233
- package/node_modules/zod/src/v3/tests/tuple.test.ts +0 -90
- package/node_modules/zod/src/v3/tests/unions.test.ts +0 -57
- package/node_modules/zod/src/v3/tests/validations.test.ts +0 -133
- package/node_modules/zod/src/v3/tests/void.test.ts +0 -15
- package/node_modules/zod/src/v3/types.ts +0 -5136
- package/node_modules/zod/src/v4/classic/checks.ts +0 -30
- package/node_modules/zod/src/v4/classic/coerce.ts +0 -27
- package/node_modules/zod/src/v4/classic/compat.ts +0 -66
- package/node_modules/zod/src/v4/classic/errors.ts +0 -75
- package/node_modules/zod/src/v4/classic/external.ts +0 -50
- package/node_modules/zod/src/v4/classic/index.ts +0 -5
- package/node_modules/zod/src/v4/classic/iso.ts +0 -90
- package/node_modules/zod/src/v4/classic/parse.ts +0 -33
- package/node_modules/zod/src/v4/classic/schemas.ts +0 -2054
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +0 -26
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +0 -264
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +0 -210
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +0 -381
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +0 -68
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +0 -7
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +0 -54
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +0 -63
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +0 -252
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +0 -20
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +0 -160
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +0 -352
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +0 -40
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +0 -31
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +0 -296
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +0 -313
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +0 -32
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +0 -619
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +0 -285
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +0 -527
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +0 -711
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +0 -91
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +0 -268
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +0 -72
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +0 -829
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +0 -34
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +0 -171
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +0 -108
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +0 -227
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +0 -92
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +0 -196
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +0 -21
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +0 -168
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +0 -86
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +0 -22
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +0 -247
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +0 -563
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +0 -123
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +0 -147
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +0 -127
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +0 -37
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +0 -298
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +0 -175
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +0 -81
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +0 -23
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +0 -252
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +0 -342
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +0 -356
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +0 -532
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +0 -204
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +0 -179
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +0 -57
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +0 -109
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +0 -881
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +0 -66
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +0 -758
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +0 -2314
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +0 -250
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +0 -163
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +0 -94
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +0 -283
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +0 -12
- package/node_modules/zod/src/v4/core/api.ts +0 -1594
- package/node_modules/zod/src/v4/core/checks.ts +0 -1283
- package/node_modules/zod/src/v4/core/config.ts +0 -15
- package/node_modules/zod/src/v4/core/core.ts +0 -134
- package/node_modules/zod/src/v4/core/doc.ts +0 -44
- package/node_modules/zod/src/v4/core/errors.ts +0 -424
- package/node_modules/zod/src/v4/core/function.ts +0 -176
- package/node_modules/zod/src/v4/core/index.ts +0 -15
- package/node_modules/zod/src/v4/core/json-schema.ts +0 -143
- package/node_modules/zod/src/v4/core/parse.ts +0 -94
- package/node_modules/zod/src/v4/core/regexes.ts +0 -135
- package/node_modules/zod/src/v4/core/registries.ts +0 -96
- package/node_modules/zod/src/v4/core/schemas.ts +0 -3842
- package/node_modules/zod/src/v4/core/standard-schema.ts +0 -64
- package/node_modules/zod/src/v4/core/tests/index.test.ts +0 -46
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +0 -124
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +0 -22
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +0 -128
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +0 -69
- package/node_modules/zod/src/v4/core/to-json-schema.ts +0 -977
- package/node_modules/zod/src/v4/core/util.ts +0 -775
- package/node_modules/zod/src/v4/core/versions.ts +0 -5
- package/node_modules/zod/src/v4/core/zsf.ts +0 -323
- package/node_modules/zod/src/v4/index.ts +0 -4
- package/node_modules/zod/src/v4/locales/ar.ts +0 -125
- package/node_modules/zod/src/v4/locales/az.ts +0 -121
- package/node_modules/zod/src/v4/locales/be.ts +0 -184
- package/node_modules/zod/src/v4/locales/ca.ts +0 -127
- package/node_modules/zod/src/v4/locales/cs.ts +0 -142
- package/node_modules/zod/src/v4/locales/de.ts +0 -124
- package/node_modules/zod/src/v4/locales/en.ts +0 -127
- package/node_modules/zod/src/v4/locales/eo.ts +0 -125
- package/node_modules/zod/src/v4/locales/es.ts +0 -125
- package/node_modules/zod/src/v4/locales/fa.ts +0 -134
- package/node_modules/zod/src/v4/locales/fi.ts +0 -131
- package/node_modules/zod/src/v4/locales/fr-CA.ts +0 -126
- package/node_modules/zod/src/v4/locales/fr.ts +0 -124
- package/node_modules/zod/src/v4/locales/he.ts +0 -125
- package/node_modules/zod/src/v4/locales/hu.ts +0 -126
- package/node_modules/zod/src/v4/locales/id.ts +0 -125
- package/node_modules/zod/src/v4/locales/index.ts +0 -39
- package/node_modules/zod/src/v4/locales/it.ts +0 -125
- package/node_modules/zod/src/v4/locales/ja.ts +0 -122
- package/node_modules/zod/src/v4/locales/kh.ts +0 -126
- package/node_modules/zod/src/v4/locales/ko.ts +0 -131
- package/node_modules/zod/src/v4/locales/mk.ts +0 -127
- package/node_modules/zod/src/v4/locales/ms.ts +0 -124
- package/node_modules/zod/src/v4/locales/nl.ts +0 -126
- package/node_modules/zod/src/v4/locales/no.ts +0 -124
- package/node_modules/zod/src/v4/locales/ota.ts +0 -125
- package/node_modules/zod/src/v4/locales/pl.ts +0 -126
- package/node_modules/zod/src/v4/locales/ps.ts +0 -133
- package/node_modules/zod/src/v4/locales/pt.ts +0 -123
- package/node_modules/zod/src/v4/locales/ru.ts +0 -184
- package/node_modules/zod/src/v4/locales/sl.ts +0 -126
- package/node_modules/zod/src/v4/locales/sv.ts +0 -127
- package/node_modules/zod/src/v4/locales/ta.ts +0 -125
- package/node_modules/zod/src/v4/locales/th.ts +0 -126
- package/node_modules/zod/src/v4/locales/tr.ts +0 -121
- package/node_modules/zod/src/v4/locales/ua.ts +0 -126
- package/node_modules/zod/src/v4/locales/ur.ts +0 -126
- package/node_modules/zod/src/v4/locales/vi.ts +0 -125
- package/node_modules/zod/src/v4/locales/zh-CN.ts +0 -123
- package/node_modules/zod/src/v4/locales/zh-TW.ts +0 -125
- package/node_modules/zod/src/v4/mini/checks.ts +0 -32
- package/node_modules/zod/src/v4/mini/coerce.ts +0 -22
- package/node_modules/zod/src/v4/mini/external.ts +0 -40
- package/node_modules/zod/src/v4/mini/index.ts +0 -3
- package/node_modules/zod/src/v4/mini/iso.ts +0 -62
- package/node_modules/zod/src/v4/mini/parse.ts +0 -1
- package/node_modules/zod/src/v4/mini/schemas.ts +0 -1579
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +0 -129
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +0 -51
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +0 -144
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +0 -36
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +0 -22
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +0 -871
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +0 -95
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +0 -185
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +0 -43
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +0 -275
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +0 -299
- package/node_modules/zod/src/v4-mini/index.ts +0 -1
- package/node_modules/zod/v3/ZodError.cjs +0 -138
- package/node_modules/zod/v3/ZodError.d.cts +0 -164
- package/node_modules/zod/v3/ZodError.d.ts +0 -164
- package/node_modules/zod/v3/ZodError.js +0 -133
- package/node_modules/zod/v3/errors.cjs +0 -17
- package/node_modules/zod/v3/errors.d.cts +0 -5
- package/node_modules/zod/v3/errors.d.ts +0 -5
- package/node_modules/zod/v3/errors.js +0 -9
- package/node_modules/zod/v3/external.cjs +0 -22
- package/node_modules/zod/v3/external.d.cts +0 -6
- package/node_modules/zod/v3/external.d.ts +0 -6
- package/node_modules/zod/v3/external.js +0 -6
- package/node_modules/zod/v3/helpers/enumUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/enumUtil.js +0 -1
- package/node_modules/zod/v3/helpers/errorUtil.cjs +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +0 -9
- package/node_modules/zod/v3/helpers/errorUtil.js +0 -6
- package/node_modules/zod/v3/helpers/parseUtil.cjs +0 -124
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +0 -78
- package/node_modules/zod/v3/helpers/parseUtil.js +0 -109
- package/node_modules/zod/v3/helpers/partialUtil.cjs +0 -2
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +0 -8
- package/node_modules/zod/v3/helpers/partialUtil.js +0 -1
- package/node_modules/zod/v3/helpers/typeAliases.cjs +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +0 -2
- package/node_modules/zod/v3/helpers/typeAliases.js +0 -1
- package/node_modules/zod/v3/helpers/util.cjs +0 -137
- package/node_modules/zod/v3/helpers/util.d.cts +0 -85
- package/node_modules/zod/v3/helpers/util.d.ts +0 -85
- package/node_modules/zod/v3/helpers/util.js +0 -133
- package/node_modules/zod/v3/index.cjs +0 -33
- package/node_modules/zod/v3/index.d.cts +0 -4
- package/node_modules/zod/v3/index.d.ts +0 -4
- package/node_modules/zod/v3/index.js +0 -4
- package/node_modules/zod/v3/locales/en.cjs +0 -111
- package/node_modules/zod/v3/locales/en.d.cts +0 -3
- package/node_modules/zod/v3/locales/en.d.ts +0 -3
- package/node_modules/zod/v3/locales/en.js +0 -109
- package/node_modules/zod/v3/standard-schema.cjs +0 -2
- package/node_modules/zod/v3/standard-schema.d.cts +0 -102
- package/node_modules/zod/v3/standard-schema.d.ts +0 -102
- package/node_modules/zod/v3/standard-schema.js +0 -1
- package/node_modules/zod/v3/types.cjs +0 -3775
- package/node_modules/zod/v3/types.d.cts +0 -1031
- package/node_modules/zod/v3/types.d.ts +0 -1031
- package/node_modules/zod/v3/types.js +0 -3693
- package/node_modules/zod/v4/classic/checks.cjs +0 -32
- package/node_modules/zod/v4/classic/checks.d.cts +0 -1
- package/node_modules/zod/v4/classic/checks.d.ts +0 -1
- package/node_modules/zod/v4/classic/checks.js +0 -1
- package/node_modules/zod/v4/classic/coerce.cjs +0 -47
- package/node_modules/zod/v4/classic/coerce.d.cts +0 -17
- package/node_modules/zod/v4/classic/coerce.d.ts +0 -17
- package/node_modules/zod/v4/classic/coerce.js +0 -17
- package/node_modules/zod/v4/classic/compat.cjs +0 -57
- package/node_modules/zod/v4/classic/compat.d.cts +0 -46
- package/node_modules/zod/v4/classic/compat.d.ts +0 -46
- package/node_modules/zod/v4/classic/compat.js +0 -27
- package/node_modules/zod/v4/classic/errors.cjs +0 -67
- package/node_modules/zod/v4/classic/errors.d.cts +0 -30
- package/node_modules/zod/v4/classic/errors.d.ts +0 -30
- package/node_modules/zod/v4/classic/errors.js +0 -41
- package/node_modules/zod/v4/classic/external.cjs +0 -70
- package/node_modules/zod/v4/classic/external.d.cts +0 -13
- package/node_modules/zod/v4/classic/external.d.ts +0 -13
- package/node_modules/zod/v4/classic/external.js +0 -18
- package/node_modules/zod/v4/classic/index.cjs +0 -33
- package/node_modules/zod/v4/classic/index.d.cts +0 -4
- package/node_modules/zod/v4/classic/index.d.ts +0 -4
- package/node_modules/zod/v4/classic/index.js +0 -4
- package/node_modules/zod/v4/classic/iso.cjs +0 -60
- package/node_modules/zod/v4/classic/iso.d.cts +0 -22
- package/node_modules/zod/v4/classic/iso.d.ts +0 -22
- package/node_modules/zod/v4/classic/iso.js +0 -30
- package/node_modules/zod/v4/classic/parse.cjs +0 -32
- package/node_modules/zod/v4/classic/parse.d.cts +0 -23
- package/node_modules/zod/v4/classic/parse.d.ts +0 -23
- package/node_modules/zod/v4/classic/parse.js +0 -6
- package/node_modules/zod/v4/classic/schemas.cjs +0 -1109
- package/node_modules/zod/v4/classic/schemas.d.cts +0 -630
- package/node_modules/zod/v4/classic/schemas.d.ts +0 -630
- package/node_modules/zod/v4/classic/schemas.js +0 -1006
- package/node_modules/zod/v4/core/api.cjs +0 -1039
- package/node_modules/zod/v4/core/api.d.cts +0 -284
- package/node_modules/zod/v4/core/api.d.ts +0 -284
- package/node_modules/zod/v4/core/api.js +0 -906
- package/node_modules/zod/v4/core/checks.cjs +0 -591
- package/node_modules/zod/v4/core/checks.d.cts +0 -278
- package/node_modules/zod/v4/core/checks.d.ts +0 -278
- package/node_modules/zod/v4/core/checks.js +0 -565
- package/node_modules/zod/v4/core/core.cjs +0 -67
- package/node_modules/zod/v4/core/core.d.cts +0 -49
- package/node_modules/zod/v4/core/core.d.ts +0 -49
- package/node_modules/zod/v4/core/core.js +0 -61
- package/node_modules/zod/v4/core/doc.cjs +0 -39
- package/node_modules/zod/v4/core/doc.d.cts +0 -14
- package/node_modules/zod/v4/core/doc.d.ts +0 -14
- package/node_modules/zod/v4/core/doc.js +0 -35
- package/node_modules/zod/v4/core/errors.cjs +0 -226
- package/node_modules/zod/v4/core/errors.d.cts +0 -208
- package/node_modules/zod/v4/core/errors.d.ts +0 -208
- package/node_modules/zod/v4/core/errors.js +0 -195
- package/node_modules/zod/v4/core/function.cjs +0 -102
- package/node_modules/zod/v4/core/function.d.cts +0 -52
- package/node_modules/zod/v4/core/function.d.ts +0 -52
- package/node_modules/zod/v4/core/function.js +0 -75
- package/node_modules/zod/v4/core/index.cjs +0 -44
- package/node_modules/zod/v4/core/index.d.cts +0 -15
- package/node_modules/zod/v4/core/index.d.ts +0 -15
- package/node_modules/zod/v4/core/index.js +0 -15
- package/node_modules/zod/v4/core/json-schema.cjs +0 -2
- package/node_modules/zod/v4/core/json-schema.d.cts +0 -87
- package/node_modules/zod/v4/core/json-schema.d.ts +0 -87
- package/node_modules/zod/v4/core/json-schema.js +0 -1
- package/node_modules/zod/v4/core/parse.cjs +0 -87
- package/node_modules/zod/v4/core/parse.d.cts +0 -25
- package/node_modules/zod/v4/core/parse.d.ts +0 -25
- package/node_modules/zod/v4/core/parse.js +0 -57
- package/node_modules/zod/v4/core/regexes.cjs +0 -103
- package/node_modules/zod/v4/core/regexes.d.cts +0 -62
- package/node_modules/zod/v4/core/regexes.d.ts +0 -62
- package/node_modules/zod/v4/core/regexes.js +0 -95
- package/node_modules/zod/v4/core/registries.cjs +0 -56
- package/node_modules/zod/v4/core/registries.d.cts +0 -35
- package/node_modules/zod/v4/core/registries.d.ts +0 -35
- package/node_modules/zod/v4/core/registries.js +0 -51
- package/node_modules/zod/v4/core/schemas.cjs +0 -1748
- package/node_modules/zod/v4/core/schemas.d.cts +0 -1041
- package/node_modules/zod/v4/core/schemas.d.ts +0 -1041
- package/node_modules/zod/v4/core/schemas.js +0 -1717
- package/node_modules/zod/v4/core/standard-schema.cjs +0 -2
- package/node_modules/zod/v4/core/standard-schema.d.cts +0 -55
- package/node_modules/zod/v4/core/standard-schema.d.ts +0 -55
- package/node_modules/zod/v4/core/standard-schema.js +0 -1
- package/node_modules/zod/v4/core/to-json-schema.cjs +0 -854
- package/node_modules/zod/v4/core/to-json-schema.d.cts +0 -88
- package/node_modules/zod/v4/core/to-json-schema.d.ts +0 -88
- package/node_modules/zod/v4/core/to-json-schema.js +0 -849
- package/node_modules/zod/v4/core/util.cjs +0 -539
- package/node_modules/zod/v4/core/util.d.cts +0 -183
- package/node_modules/zod/v4/core/util.d.ts +0 -183
- package/node_modules/zod/v4/core/util.js +0 -493
- package/node_modules/zod/v4/core/versions.cjs +0 -8
- package/node_modules/zod/v4/core/versions.d.cts +0 -5
- package/node_modules/zod/v4/core/versions.d.ts +0 -5
- package/node_modules/zod/v4/core/versions.js +0 -5
- package/node_modules/zod/v4/index.cjs +0 -22
- package/node_modules/zod/v4/index.d.cts +0 -3
- package/node_modules/zod/v4/index.d.ts +0 -3
- package/node_modules/zod/v4/index.js +0 -3
- package/node_modules/zod/v4/locales/ar.cjs +0 -142
- package/node_modules/zod/v4/locales/ar.d.cts +0 -4
- package/node_modules/zod/v4/locales/ar.d.ts +0 -4
- package/node_modules/zod/v4/locales/ar.js +0 -116
- package/node_modules/zod/v4/locales/az.cjs +0 -141
- package/node_modules/zod/v4/locales/az.d.cts +0 -4
- package/node_modules/zod/v4/locales/az.d.ts +0 -4
- package/node_modules/zod/v4/locales/az.js +0 -115
- package/node_modules/zod/v4/locales/be.cjs +0 -190
- package/node_modules/zod/v4/locales/be.d.cts +0 -4
- package/node_modules/zod/v4/locales/be.d.ts +0 -4
- package/node_modules/zod/v4/locales/be.js +0 -164
- package/node_modules/zod/v4/locales/ca.cjs +0 -144
- package/node_modules/zod/v4/locales/ca.d.cts +0 -4
- package/node_modules/zod/v4/locales/ca.d.ts +0 -4
- package/node_modules/zod/v4/locales/ca.js +0 -118
- package/node_modules/zod/v4/locales/cs.cjs +0 -161
- package/node_modules/zod/v4/locales/cs.d.cts +0 -4
- package/node_modules/zod/v4/locales/cs.d.ts +0 -4
- package/node_modules/zod/v4/locales/cs.js +0 -135
- package/node_modules/zod/v4/locales/de.cjs +0 -142
- package/node_modules/zod/v4/locales/de.d.cts +0 -4
- package/node_modules/zod/v4/locales/de.d.ts +0 -4
- package/node_modules/zod/v4/locales/de.js +0 -116
- package/node_modules/zod/v4/locales/en.cjs +0 -145
- package/node_modules/zod/v4/locales/en.d.cts +0 -5
- package/node_modules/zod/v4/locales/en.d.ts +0 -5
- package/node_modules/zod/v4/locales/en.js +0 -117
- package/node_modules/zod/v4/locales/eo.cjs +0 -144
- package/node_modules/zod/v4/locales/eo.d.cts +0 -5
- package/node_modules/zod/v4/locales/eo.d.ts +0 -5
- package/node_modules/zod/v4/locales/eo.js +0 -116
- package/node_modules/zod/v4/locales/es.cjs +0 -143
- package/node_modules/zod/v4/locales/es.d.cts +0 -4
- package/node_modules/zod/v4/locales/es.d.ts +0 -4
- package/node_modules/zod/v4/locales/es.js +0 -117
- package/node_modules/zod/v4/locales/fa.cjs +0 -148
- package/node_modules/zod/v4/locales/fa.d.cts +0 -4
- package/node_modules/zod/v4/locales/fa.d.ts +0 -4
- package/node_modules/zod/v4/locales/fa.js +0 -122
- package/node_modules/zod/v4/locales/fi.cjs +0 -148
- package/node_modules/zod/v4/locales/fi.d.cts +0 -4
- package/node_modules/zod/v4/locales/fi.d.ts +0 -4
- package/node_modules/zod/v4/locales/fi.js +0 -122
- package/node_modules/zod/v4/locales/fr-CA.cjs +0 -143
- package/node_modules/zod/v4/locales/fr-CA.d.cts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr-CA.js +0 -117
- package/node_modules/zod/v4/locales/fr.cjs +0 -142
- package/node_modules/zod/v4/locales/fr.d.cts +0 -4
- package/node_modules/zod/v4/locales/fr.d.ts +0 -4
- package/node_modules/zod/v4/locales/fr.js +0 -116
- package/node_modules/zod/v4/locales/he.cjs +0 -143
- package/node_modules/zod/v4/locales/he.d.cts +0 -4
- package/node_modules/zod/v4/locales/he.d.ts +0 -4
- package/node_modules/zod/v4/locales/he.js +0 -117
- package/node_modules/zod/v4/locales/hu.cjs +0 -143
- package/node_modules/zod/v4/locales/hu.d.cts +0 -4
- package/node_modules/zod/v4/locales/hu.d.ts +0 -4
- package/node_modules/zod/v4/locales/hu.js +0 -117
- package/node_modules/zod/v4/locales/id.cjs +0 -142
- package/node_modules/zod/v4/locales/id.d.cts +0 -4
- package/node_modules/zod/v4/locales/id.d.ts +0 -4
- package/node_modules/zod/v4/locales/id.js +0 -116
- package/node_modules/zod/v4/locales/index.cjs +0 -84
- package/node_modules/zod/v4/locales/index.d.cts +0 -39
- package/node_modules/zod/v4/locales/index.d.ts +0 -39
- package/node_modules/zod/v4/locales/index.js +0 -39
- package/node_modules/zod/v4/locales/it.cjs +0 -143
- package/node_modules/zod/v4/locales/it.d.cts +0 -4
- package/node_modules/zod/v4/locales/it.d.ts +0 -4
- package/node_modules/zod/v4/locales/it.js +0 -117
- package/node_modules/zod/v4/locales/ja.cjs +0 -141
- package/node_modules/zod/v4/locales/ja.d.cts +0 -4
- package/node_modules/zod/v4/locales/ja.d.ts +0 -4
- package/node_modules/zod/v4/locales/ja.js +0 -115
- package/node_modules/zod/v4/locales/kh.cjs +0 -143
- package/node_modules/zod/v4/locales/kh.d.cts +0 -4
- package/node_modules/zod/v4/locales/kh.d.ts +0 -4
- package/node_modules/zod/v4/locales/kh.js +0 -117
- package/node_modules/zod/v4/locales/ko.cjs +0 -147
- package/node_modules/zod/v4/locales/ko.d.cts +0 -4
- package/node_modules/zod/v4/locales/ko.d.ts +0 -4
- package/node_modules/zod/v4/locales/ko.js +0 -121
- package/node_modules/zod/v4/locales/mk.cjs +0 -144
- package/node_modules/zod/v4/locales/mk.d.cts +0 -4
- package/node_modules/zod/v4/locales/mk.d.ts +0 -4
- package/node_modules/zod/v4/locales/mk.js +0 -118
- package/node_modules/zod/v4/locales/ms.cjs +0 -142
- package/node_modules/zod/v4/locales/ms.d.cts +0 -4
- package/node_modules/zod/v4/locales/ms.d.ts +0 -4
- package/node_modules/zod/v4/locales/ms.js +0 -116
- package/node_modules/zod/v4/locales/nl.cjs +0 -143
- package/node_modules/zod/v4/locales/nl.d.cts +0 -4
- package/node_modules/zod/v4/locales/nl.d.ts +0 -4
- package/node_modules/zod/v4/locales/nl.js +0 -117
- package/node_modules/zod/v4/locales/no.cjs +0 -142
- package/node_modules/zod/v4/locales/no.d.cts +0 -4
- package/node_modules/zod/v4/locales/no.d.ts +0 -4
- package/node_modules/zod/v4/locales/no.js +0 -116
- package/node_modules/zod/v4/locales/ota.cjs +0 -143
- package/node_modules/zod/v4/locales/ota.d.cts +0 -4
- package/node_modules/zod/v4/locales/ota.d.ts +0 -4
- package/node_modules/zod/v4/locales/ota.js +0 -117
- package/node_modules/zod/v4/locales/pl.cjs +0 -143
- package/node_modules/zod/v4/locales/pl.d.cts +0 -4
- package/node_modules/zod/v4/locales/pl.d.ts +0 -4
- package/node_modules/zod/v4/locales/pl.js +0 -117
- package/node_modules/zod/v4/locales/ps.cjs +0 -148
- package/node_modules/zod/v4/locales/ps.d.cts +0 -4
- package/node_modules/zod/v4/locales/ps.d.ts +0 -4
- package/node_modules/zod/v4/locales/ps.js +0 -122
- package/node_modules/zod/v4/locales/pt.cjs +0 -142
- package/node_modules/zod/v4/locales/pt.d.cts +0 -4
- package/node_modules/zod/v4/locales/pt.d.ts +0 -4
- package/node_modules/zod/v4/locales/pt.js +0 -116
- package/node_modules/zod/v4/locales/ru.cjs +0 -190
- package/node_modules/zod/v4/locales/ru.d.cts +0 -4
- package/node_modules/zod/v4/locales/ru.d.ts +0 -4
- package/node_modules/zod/v4/locales/ru.js +0 -164
- package/node_modules/zod/v4/locales/sl.cjs +0 -143
- package/node_modules/zod/v4/locales/sl.d.cts +0 -4
- package/node_modules/zod/v4/locales/sl.d.ts +0 -4
- package/node_modules/zod/v4/locales/sl.js +0 -117
- package/node_modules/zod/v4/locales/sv.cjs +0 -144
- package/node_modules/zod/v4/locales/sv.d.cts +0 -4
- package/node_modules/zod/v4/locales/sv.d.ts +0 -4
- package/node_modules/zod/v4/locales/sv.js +0 -118
- package/node_modules/zod/v4/locales/ta.cjs +0 -143
- package/node_modules/zod/v4/locales/ta.d.cts +0 -4
- package/node_modules/zod/v4/locales/ta.d.ts +0 -4
- package/node_modules/zod/v4/locales/ta.js +0 -117
- package/node_modules/zod/v4/locales/th.cjs +0 -143
- package/node_modules/zod/v4/locales/th.d.cts +0 -4
- package/node_modules/zod/v4/locales/th.d.ts +0 -4
- package/node_modules/zod/v4/locales/th.js +0 -117
- package/node_modules/zod/v4/locales/tr.cjs +0 -143
- package/node_modules/zod/v4/locales/tr.d.cts +0 -5
- package/node_modules/zod/v4/locales/tr.d.ts +0 -5
- package/node_modules/zod/v4/locales/tr.js +0 -115
- package/node_modules/zod/v4/locales/ua.cjs +0 -143
- package/node_modules/zod/v4/locales/ua.d.cts +0 -4
- package/node_modules/zod/v4/locales/ua.d.ts +0 -4
- package/node_modules/zod/v4/locales/ua.js +0 -117
- package/node_modules/zod/v4/locales/ur.cjs +0 -143
- package/node_modules/zod/v4/locales/ur.d.cts +0 -4
- package/node_modules/zod/v4/locales/ur.d.ts +0 -4
- package/node_modules/zod/v4/locales/ur.js +0 -117
- package/node_modules/zod/v4/locales/vi.cjs +0 -142
- package/node_modules/zod/v4/locales/vi.d.cts +0 -4
- package/node_modules/zod/v4/locales/vi.d.ts +0 -4
- package/node_modules/zod/v4/locales/vi.js +0 -116
- package/node_modules/zod/v4/locales/zh-CN.cjs +0 -142
- package/node_modules/zod/v4/locales/zh-CN.d.cts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-CN.js +0 -116
- package/node_modules/zod/v4/locales/zh-TW.cjs +0 -143
- package/node_modules/zod/v4/locales/zh-TW.d.cts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.d.ts +0 -4
- package/node_modules/zod/v4/locales/zh-TW.js +0 -117
- package/node_modules/zod/v4/mini/checks.cjs +0 -34
- package/node_modules/zod/v4/mini/checks.d.cts +0 -1
- package/node_modules/zod/v4/mini/checks.d.ts +0 -1
- package/node_modules/zod/v4/mini/checks.js +0 -1
- package/node_modules/zod/v4/mini/coerce.cjs +0 -47
- package/node_modules/zod/v4/mini/coerce.d.cts +0 -7
- package/node_modules/zod/v4/mini/coerce.d.ts +0 -7
- package/node_modules/zod/v4/mini/coerce.js +0 -17
- package/node_modules/zod/v4/mini/external.cjs +0 -62
- package/node_modules/zod/v4/mini/external.d.cts +0 -11
- package/node_modules/zod/v4/mini/external.d.ts +0 -11
- package/node_modules/zod/v4/mini/external.js +0 -13
- package/node_modules/zod/v4/mini/index.cjs +0 -32
- package/node_modules/zod/v4/mini/index.d.cts +0 -3
- package/node_modules/zod/v4/mini/index.d.ts +0 -3
- package/node_modules/zod/v4/mini/index.js +0 -3
- package/node_modules/zod/v4/mini/iso.cjs +0 -60
- package/node_modules/zod/v4/mini/iso.d.cts +0 -22
- package/node_modules/zod/v4/mini/iso.d.ts +0 -22
- package/node_modules/zod/v4/mini/iso.js +0 -30
- package/node_modules/zod/v4/mini/parse.cjs +0 -8
- package/node_modules/zod/v4/mini/parse.d.cts +0 -1
- package/node_modules/zod/v4/mini/parse.d.ts +0 -1
- package/node_modules/zod/v4/mini/parse.js +0 -1
- package/node_modules/zod/v4/mini/schemas.cjs +0 -839
- package/node_modules/zod/v4/mini/schemas.d.cts +0 -356
- package/node_modules/zod/v4/mini/schemas.d.ts +0 -356
- package/node_modules/zod/v4/mini/schemas.js +0 -732
- package/node_modules/zod/v4-mini/index.cjs +0 -17
- package/node_modules/zod/v4-mini/index.d.cts +0 -1
- package/node_modules/zod/v4-mini/index.d.ts +0 -1
- package/node_modules/zod/v4-mini/index.js +0 -1
- package/src/lib/insforge-client.js +0 -79
- package/src/lib/insforge.js +0 -29
- package/src/lib/uploader.js +0 -224
- package/src/lib/vibeusage-api.js +0 -243
- package/src/lib/vibeusage-public-repo.js +0 -105
|
@@ -1,854 +0,0 @@
|
|
|
1
|
-
import { UserSchema, CreateUserRequest, CreateUserResponse, CreateSessionRequest, CreateSessionResponse, OAuthProvidersSchema, GetPublicAuthConfigResponse, GetProfileResponse, SendVerificationEmailRequest, SendResetPasswordEmailRequest, ExchangeResetPasswordTokenRequest, VerifyEmailRequest, VerifyEmailResponse, StorageFileSchema, ListObjectsResponseSchema, ChatCompletionRequest, ImageGenerationRequest, SubscribeResponse, SocketMessage, SendRawEmailRequest, SendEmailResponse } from '@insforge/shared-schemas';
|
|
2
|
-
export { AuthErrorResponse, CreateSessionRequest, CreateUserRequest, RealtimeErrorPayload, SendRawEmailRequest as SendEmailOptions, SendEmailResponse, SocketMessage, SubscribeResponse, UserSchema } from '@insforge/shared-schemas';
|
|
3
|
-
import * as _supabase_postgrest_js from '@supabase/postgrest-js';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* InsForge SDK Types - only SDK-specific types here
|
|
7
|
-
* Use @insforge/shared-schemas directly for API types
|
|
8
|
-
*/
|
|
9
|
-
|
|
10
|
-
interface InsForgeConfig {
|
|
11
|
-
/**
|
|
12
|
-
* The base URL of the InsForge backend API
|
|
13
|
-
* @default "http://localhost:7130"
|
|
14
|
-
*/
|
|
15
|
-
baseUrl?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Anonymous API key (optional)
|
|
18
|
-
* Used for public/unauthenticated requests when no user token is set
|
|
19
|
-
*/
|
|
20
|
-
anonKey?: string;
|
|
21
|
-
/**
|
|
22
|
-
* Edge Function Token (optional)
|
|
23
|
-
* Use this when running in edge functions/serverless with a user's JWT token
|
|
24
|
-
* This token will be used for all authenticated requests
|
|
25
|
-
*/
|
|
26
|
-
edgeFunctionToken?: string;
|
|
27
|
-
/**
|
|
28
|
-
* Custom fetch implementation (useful for Node.js environments)
|
|
29
|
-
*/
|
|
30
|
-
fetch?: typeof fetch;
|
|
31
|
-
/**
|
|
32
|
-
* Storage adapter for persisting tokens
|
|
33
|
-
*/
|
|
34
|
-
storage?: TokenStorage;
|
|
35
|
-
/**
|
|
36
|
-
* Whether to automatically refresh tokens before they expire
|
|
37
|
-
* @default true
|
|
38
|
-
*/
|
|
39
|
-
autoRefreshToken?: boolean;
|
|
40
|
-
/**
|
|
41
|
-
* Whether to persist session in storage
|
|
42
|
-
* @default true
|
|
43
|
-
*/
|
|
44
|
-
persistSession?: boolean;
|
|
45
|
-
/**
|
|
46
|
-
* Custom headers to include with every request
|
|
47
|
-
*/
|
|
48
|
-
headers?: Record<string, string>;
|
|
49
|
-
}
|
|
50
|
-
interface TokenStorage {
|
|
51
|
-
getItem(key: string): string | null | Promise<string | null>;
|
|
52
|
-
setItem(key: string, value: string): void | Promise<void>;
|
|
53
|
-
removeItem(key: string): void | Promise<void>;
|
|
54
|
-
}
|
|
55
|
-
interface AuthSession {
|
|
56
|
-
user: UserSchema;
|
|
57
|
-
accessToken: string;
|
|
58
|
-
expiresAt?: Date;
|
|
59
|
-
}
|
|
60
|
-
interface ApiError {
|
|
61
|
-
error: string;
|
|
62
|
-
message: string;
|
|
63
|
-
statusCode: number;
|
|
64
|
-
nextActions?: string;
|
|
65
|
-
}
|
|
66
|
-
declare class InsForgeError extends Error {
|
|
67
|
-
statusCode: number;
|
|
68
|
-
error: string;
|
|
69
|
-
nextActions?: string;
|
|
70
|
-
constructor(message: string, statusCode: number, error: string, nextActions?: string);
|
|
71
|
-
static fromApiError(apiError: ApiError): InsForgeError;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
interface RequestOptions extends RequestInit {
|
|
75
|
-
params?: Record<string, string>;
|
|
76
|
-
}
|
|
77
|
-
declare class HttpClient {
|
|
78
|
-
readonly baseUrl: string;
|
|
79
|
-
readonly fetch: typeof fetch;
|
|
80
|
-
private defaultHeaders;
|
|
81
|
-
private anonKey;
|
|
82
|
-
private userToken;
|
|
83
|
-
constructor(config: InsForgeConfig);
|
|
84
|
-
private buildUrl;
|
|
85
|
-
request<T>(method: string, path: string, options?: RequestOptions): Promise<T>;
|
|
86
|
-
get<T>(path: string, options?: RequestOptions): Promise<T>;
|
|
87
|
-
post<T>(path: string, body?: any, options?: RequestOptions): Promise<T>;
|
|
88
|
-
put<T>(path: string, body?: any, options?: RequestOptions): Promise<T>;
|
|
89
|
-
patch<T>(path: string, body?: any, options?: RequestOptions): Promise<T>;
|
|
90
|
-
delete<T>(path: string, options?: RequestOptions): Promise<T>;
|
|
91
|
-
setAuthToken(token: string | null): void;
|
|
92
|
-
getHeaders(): Record<string, string>;
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/**
|
|
96
|
-
* Token Manager for InsForge SDK
|
|
97
|
-
*
|
|
98
|
-
* Simple token storage that supports two modes:
|
|
99
|
-
* - Memory mode (new backend): tokens stored in memory only, more secure
|
|
100
|
-
* - Storage mode (legacy backend): tokens persisted in localStorage
|
|
101
|
-
*/
|
|
102
|
-
|
|
103
|
-
declare class TokenManager {
|
|
104
|
-
private accessToken;
|
|
105
|
-
private user;
|
|
106
|
-
private storage;
|
|
107
|
-
private _mode;
|
|
108
|
-
constructor(storage?: TokenStorage);
|
|
109
|
-
/**
|
|
110
|
-
* Get current mode
|
|
111
|
-
*/
|
|
112
|
-
get mode(): 'memory' | 'storage';
|
|
113
|
-
/**
|
|
114
|
-
* Set mode to memory (new backend with cookies + memory)
|
|
115
|
-
*/
|
|
116
|
-
setMemoryMode(): void;
|
|
117
|
-
/**
|
|
118
|
-
* Set mode to storage (legacy backend with localStorage)
|
|
119
|
-
* Also loads existing session from localStorage
|
|
120
|
-
*/
|
|
121
|
-
setStorageMode(): void;
|
|
122
|
-
/**
|
|
123
|
-
* Load session from localStorage
|
|
124
|
-
*/
|
|
125
|
-
private loadFromStorage;
|
|
126
|
-
/**
|
|
127
|
-
* Save session (memory always, localStorage only in storage mode)
|
|
128
|
-
*/
|
|
129
|
-
saveSession(session: AuthSession): void;
|
|
130
|
-
/**
|
|
131
|
-
* Get current session
|
|
132
|
-
*/
|
|
133
|
-
getSession(): AuthSession | null;
|
|
134
|
-
/**
|
|
135
|
-
* Get access token
|
|
136
|
-
*/
|
|
137
|
-
getAccessToken(): string | null;
|
|
138
|
-
/**
|
|
139
|
-
* Set access token
|
|
140
|
-
*/
|
|
141
|
-
setAccessToken(token: string): void;
|
|
142
|
-
/**
|
|
143
|
-
* Get user
|
|
144
|
-
*/
|
|
145
|
-
getUser(): UserSchema | null;
|
|
146
|
-
/**
|
|
147
|
-
* Set user
|
|
148
|
-
*/
|
|
149
|
-
setUser(user: UserSchema): void;
|
|
150
|
-
/**
|
|
151
|
-
* Clear session (both memory and localStorage)
|
|
152
|
-
*/
|
|
153
|
-
clearSession(): void;
|
|
154
|
-
/**
|
|
155
|
-
* Check if there's a session in localStorage (for legacy detection)
|
|
156
|
-
*/
|
|
157
|
-
hasStoredSession(): boolean;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/**
|
|
161
|
-
* Auth module for InsForge SDK
|
|
162
|
-
* Uses shared schemas for type safety
|
|
163
|
-
*/
|
|
164
|
-
|
|
165
|
-
declare class Auth {
|
|
166
|
-
private http;
|
|
167
|
-
private tokenManager;
|
|
168
|
-
constructor(http: HttpClient, tokenManager: TokenManager);
|
|
169
|
-
/**
|
|
170
|
-
* Automatically detect and handle OAuth callback parameters in the URL
|
|
171
|
-
* This runs after initialization to seamlessly complete the OAuth flow
|
|
172
|
-
* Matches the backend's OAuth callback response (backend/src/api/routes/auth.ts:540-544)
|
|
173
|
-
*/
|
|
174
|
-
private detectAuthCallback;
|
|
175
|
-
/**
|
|
176
|
-
* Sign up a new user
|
|
177
|
-
*/
|
|
178
|
-
signUp(request: CreateUserRequest): Promise<{
|
|
179
|
-
data: CreateUserResponse | null;
|
|
180
|
-
error: InsForgeError | null;
|
|
181
|
-
}>;
|
|
182
|
-
/**
|
|
183
|
-
* Sign in with email and password
|
|
184
|
-
*/
|
|
185
|
-
signInWithPassword(request: CreateSessionRequest): Promise<{
|
|
186
|
-
data: CreateSessionResponse | null;
|
|
187
|
-
error: InsForgeError | null;
|
|
188
|
-
}>;
|
|
189
|
-
/**
|
|
190
|
-
* Sign in with OAuth provider
|
|
191
|
-
*/
|
|
192
|
-
signInWithOAuth(options: {
|
|
193
|
-
provider: OAuthProvidersSchema;
|
|
194
|
-
redirectTo?: string;
|
|
195
|
-
skipBrowserRedirect?: boolean;
|
|
196
|
-
}): Promise<{
|
|
197
|
-
data: {
|
|
198
|
-
url?: string;
|
|
199
|
-
provider?: string;
|
|
200
|
-
};
|
|
201
|
-
error: InsForgeError | null;
|
|
202
|
-
}>;
|
|
203
|
-
/**
|
|
204
|
-
* Sign out the current user
|
|
205
|
-
*/
|
|
206
|
-
signOut(): Promise<{
|
|
207
|
-
error: InsForgeError | null;
|
|
208
|
-
}>;
|
|
209
|
-
/**
|
|
210
|
-
* Get all public authentication configuration (OAuth + Email)
|
|
211
|
-
* Returns both OAuth providers and email authentication settings in one request
|
|
212
|
-
* This is a public endpoint that doesn't require authentication
|
|
213
|
-
*
|
|
214
|
-
* @returns Complete public authentication configuration including OAuth providers and email auth settings
|
|
215
|
-
*
|
|
216
|
-
* @example
|
|
217
|
-
* ```ts
|
|
218
|
-
* const { data, error } = await insforge.auth.getPublicAuthConfig();
|
|
219
|
-
* if (data) {
|
|
220
|
-
* console.log(`OAuth providers: ${data.oauth.data.length}`);
|
|
221
|
-
* console.log(`Password min length: ${data.email.passwordMinLength}`);
|
|
222
|
-
* }
|
|
223
|
-
* ```
|
|
224
|
-
*/
|
|
225
|
-
getPublicAuthConfig(): Promise<{
|
|
226
|
-
data: GetPublicAuthConfigResponse | null;
|
|
227
|
-
error: InsForgeError | null;
|
|
228
|
-
}>;
|
|
229
|
-
/**
|
|
230
|
-
* Get the current user with full profile information
|
|
231
|
-
* Returns both auth info (id, email, role) and profile data (dynamic fields from users table)
|
|
232
|
-
*/
|
|
233
|
-
getCurrentUser(): Promise<{
|
|
234
|
-
data: {
|
|
235
|
-
user: UserSchema;
|
|
236
|
-
} | null;
|
|
237
|
-
error: any | null;
|
|
238
|
-
}>;
|
|
239
|
-
/**
|
|
240
|
-
* Get any user's profile by ID
|
|
241
|
-
* Returns profile information from the users table
|
|
242
|
-
*/
|
|
243
|
-
getProfile(userId: string): Promise<{
|
|
244
|
-
data: GetProfileResponse | null;
|
|
245
|
-
error: InsForgeError | null;
|
|
246
|
-
}>;
|
|
247
|
-
/**
|
|
248
|
-
* Get the current session (only session data, no API call)
|
|
249
|
-
* Returns the stored JWT token and basic user info from local storage
|
|
250
|
-
*/
|
|
251
|
-
getCurrentSession(): Promise<{
|
|
252
|
-
data: {
|
|
253
|
-
session: AuthSession | null;
|
|
254
|
-
};
|
|
255
|
-
error: InsForgeError | null;
|
|
256
|
-
}>;
|
|
257
|
-
/**
|
|
258
|
-
* Set/Update the current user's profile
|
|
259
|
-
* Updates profile information in the users table (supports any dynamic fields)
|
|
260
|
-
* Requires authentication
|
|
261
|
-
*/
|
|
262
|
-
setProfile(profile: Record<string, unknown>): Promise<{
|
|
263
|
-
data: GetProfileResponse | null;
|
|
264
|
-
error: InsForgeError | null;
|
|
265
|
-
}>;
|
|
266
|
-
/**
|
|
267
|
-
* Send email verification (code or link based on config)
|
|
268
|
-
*
|
|
269
|
-
* Send email verification using the method configured in auth settings (verifyEmailMethod).
|
|
270
|
-
* When method is 'code', sends a 6-digit numeric code. When method is 'link', sends a magic link.
|
|
271
|
-
* Prevents user enumeration by returning success even if email doesn't exist.
|
|
272
|
-
*/
|
|
273
|
-
sendVerificationEmail(request: SendVerificationEmailRequest): Promise<{
|
|
274
|
-
data: {
|
|
275
|
-
success: boolean;
|
|
276
|
-
message: string;
|
|
277
|
-
} | null;
|
|
278
|
-
error: InsForgeError | null;
|
|
279
|
-
}>;
|
|
280
|
-
/**
|
|
281
|
-
* Send password reset (code or link based on config)
|
|
282
|
-
*
|
|
283
|
-
* Send password reset email using the method configured in auth settings (resetPasswordMethod).
|
|
284
|
-
* When method is 'code', sends a 6-digit numeric code for two-step flow.
|
|
285
|
-
* When method is 'link', sends a magic link.
|
|
286
|
-
* Prevents user enumeration by returning success even if email doesn't exist.
|
|
287
|
-
*/
|
|
288
|
-
sendResetPasswordEmail(request: SendResetPasswordEmailRequest): Promise<{
|
|
289
|
-
data: {
|
|
290
|
-
success: boolean;
|
|
291
|
-
message: string;
|
|
292
|
-
} | null;
|
|
293
|
-
error: InsForgeError | null;
|
|
294
|
-
}>;
|
|
295
|
-
/**
|
|
296
|
-
* Exchange reset password code for reset token
|
|
297
|
-
*
|
|
298
|
-
* Step 1 of two-step password reset flow (only used when resetPasswordMethod is 'code'):
|
|
299
|
-
* 1. Verify the 6-digit code sent to user's email
|
|
300
|
-
* 2. Return a reset token that can be used to actually reset the password
|
|
301
|
-
*
|
|
302
|
-
* This endpoint is not used when resetPasswordMethod is 'link' (magic link flow is direct).
|
|
303
|
-
*/
|
|
304
|
-
exchangeResetPasswordToken(request: ExchangeResetPasswordTokenRequest): Promise<{
|
|
305
|
-
data: {
|
|
306
|
-
token: string;
|
|
307
|
-
expiresAt: string;
|
|
308
|
-
} | null;
|
|
309
|
-
error: InsForgeError | null;
|
|
310
|
-
}>;
|
|
311
|
-
/**
|
|
312
|
-
* Reset password with token
|
|
313
|
-
*
|
|
314
|
-
* Reset user password with a token. The token can be:
|
|
315
|
-
* - Magic link token (64-character hex token from send-reset-password when method is 'link')
|
|
316
|
-
* - Reset token (from exchange-reset-password-token after code verification when method is 'code')
|
|
317
|
-
*
|
|
318
|
-
* Both token types use RESET_PASSWORD purpose and are verified the same way.
|
|
319
|
-
*
|
|
320
|
-
* Flow summary:
|
|
321
|
-
* - Code method: send-reset-password → exchange-reset-password-token → reset-password (with resetToken)
|
|
322
|
-
* - Link method: send-reset-password → reset-password (with link token directly)
|
|
323
|
-
*/
|
|
324
|
-
resetPassword(request: {
|
|
325
|
-
newPassword: string;
|
|
326
|
-
otp: string;
|
|
327
|
-
}): Promise<{
|
|
328
|
-
data: {
|
|
329
|
-
message: string;
|
|
330
|
-
redirectTo?: string;
|
|
331
|
-
} | null;
|
|
332
|
-
error: InsForgeError | null;
|
|
333
|
-
}>;
|
|
334
|
-
/**
|
|
335
|
-
* Verify email with code or link
|
|
336
|
-
*
|
|
337
|
-
* Verify email address using the method configured in auth settings (verifyEmailMethod):
|
|
338
|
-
* - Code verification: Provide both `email` and `otp` (6-digit numeric code)
|
|
339
|
-
* - Link verification: Provide only `otp` (64-character hex token from magic link)
|
|
340
|
-
*
|
|
341
|
-
* Successfully verified users will receive a session token.
|
|
342
|
-
*
|
|
343
|
-
* The email verification link sent to users always points to the backend API endpoint.
|
|
344
|
-
* If `verifyEmailRedirectTo` is configured, the backend will redirect to that URL after successful verification.
|
|
345
|
-
* Otherwise, a default success page is displayed.
|
|
346
|
-
*/
|
|
347
|
-
verifyEmail(request: VerifyEmailRequest): Promise<{
|
|
348
|
-
data: VerifyEmailResponse | null;
|
|
349
|
-
error: InsForgeError | null;
|
|
350
|
-
}>;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
/**
|
|
354
|
-
* Database client using postgrest-js
|
|
355
|
-
* Drop-in replacement with FULL PostgREST capabilities
|
|
356
|
-
*/
|
|
357
|
-
declare class Database {
|
|
358
|
-
private postgrest;
|
|
359
|
-
constructor(httpClient: HttpClient, tokenManager: TokenManager);
|
|
360
|
-
/**
|
|
361
|
-
* Create a query builder for a table
|
|
362
|
-
*
|
|
363
|
-
* @example
|
|
364
|
-
* // Basic query
|
|
365
|
-
* const { data, error } = await client.database
|
|
366
|
-
* .from('posts')
|
|
367
|
-
* .select('*')
|
|
368
|
-
* .eq('user_id', userId);
|
|
369
|
-
*
|
|
370
|
-
* // With count (Supabase style!)
|
|
371
|
-
* const { data, error, count } = await client.database
|
|
372
|
-
* .from('posts')
|
|
373
|
-
* .select('*', { count: 'exact' })
|
|
374
|
-
* .range(0, 9);
|
|
375
|
-
*
|
|
376
|
-
* // Just get count, no data
|
|
377
|
-
* const { count } = await client.database
|
|
378
|
-
* .from('posts')
|
|
379
|
-
* .select('*', { count: 'exact', head: true });
|
|
380
|
-
*
|
|
381
|
-
* // Complex queries with OR
|
|
382
|
-
* const { data } = await client.database
|
|
383
|
-
* .from('posts')
|
|
384
|
-
* .select('*, users!inner(*)')
|
|
385
|
-
* .or('status.eq.active,status.eq.pending');
|
|
386
|
-
*
|
|
387
|
-
* // All features work:
|
|
388
|
-
* - Nested selects
|
|
389
|
-
* - Foreign key expansion
|
|
390
|
-
* - OR/AND/NOT conditions
|
|
391
|
-
* - Count with head
|
|
392
|
-
* - Range pagination
|
|
393
|
-
* - Upserts
|
|
394
|
-
*/
|
|
395
|
-
from(table: string): _supabase_postgrest_js.PostgrestQueryBuilder<any, any, any, string, unknown>;
|
|
396
|
-
}
|
|
397
|
-
|
|
398
|
-
/**
|
|
399
|
-
* Storage module for InsForge SDK
|
|
400
|
-
* Handles file uploads, downloads, and bucket management
|
|
401
|
-
*/
|
|
402
|
-
|
|
403
|
-
interface StorageResponse<T> {
|
|
404
|
-
data: T | null;
|
|
405
|
-
error: InsForgeError | null;
|
|
406
|
-
}
|
|
407
|
-
/**
|
|
408
|
-
* Storage bucket operations
|
|
409
|
-
*/
|
|
410
|
-
declare class StorageBucket {
|
|
411
|
-
private bucketName;
|
|
412
|
-
private http;
|
|
413
|
-
constructor(bucketName: string, http: HttpClient);
|
|
414
|
-
/**
|
|
415
|
-
* Upload a file with a specific key
|
|
416
|
-
* Uses the upload strategy from backend (direct or presigned)
|
|
417
|
-
* @param path - The object key/path
|
|
418
|
-
* @param file - File or Blob to upload
|
|
419
|
-
*/
|
|
420
|
-
upload(path: string, file: File | Blob): Promise<StorageResponse<StorageFileSchema>>;
|
|
421
|
-
/**
|
|
422
|
-
* Upload a file with auto-generated key
|
|
423
|
-
* Uses the upload strategy from backend (direct or presigned)
|
|
424
|
-
* @param file - File or Blob to upload
|
|
425
|
-
*/
|
|
426
|
-
uploadAuto(file: File | Blob): Promise<StorageResponse<StorageFileSchema>>;
|
|
427
|
-
/**
|
|
428
|
-
* Internal method to handle presigned URL uploads
|
|
429
|
-
*/
|
|
430
|
-
private uploadWithPresignedUrl;
|
|
431
|
-
/**
|
|
432
|
-
* Download a file
|
|
433
|
-
* Uses the download strategy from backend (direct or presigned)
|
|
434
|
-
* @param path - The object key/path
|
|
435
|
-
* Returns the file as a Blob
|
|
436
|
-
*/
|
|
437
|
-
download(path: string): Promise<{
|
|
438
|
-
data: Blob | null;
|
|
439
|
-
error: InsForgeError | null;
|
|
440
|
-
}>;
|
|
441
|
-
/**
|
|
442
|
-
* Get public URL for a file
|
|
443
|
-
* @param path - The object key/path
|
|
444
|
-
*/
|
|
445
|
-
getPublicUrl(path: string): string;
|
|
446
|
-
/**
|
|
447
|
-
* List objects in the bucket
|
|
448
|
-
* @param prefix - Filter by key prefix
|
|
449
|
-
* @param search - Search in file names
|
|
450
|
-
* @param limit - Maximum number of results (default: 100, max: 1000)
|
|
451
|
-
* @param offset - Number of results to skip
|
|
452
|
-
*/
|
|
453
|
-
list(options?: {
|
|
454
|
-
prefix?: string;
|
|
455
|
-
search?: string;
|
|
456
|
-
limit?: number;
|
|
457
|
-
offset?: number;
|
|
458
|
-
}): Promise<StorageResponse<ListObjectsResponseSchema>>;
|
|
459
|
-
/**
|
|
460
|
-
* Delete a file
|
|
461
|
-
* @param path - The object key/path
|
|
462
|
-
*/
|
|
463
|
-
remove(path: string): Promise<StorageResponse<{
|
|
464
|
-
message: string;
|
|
465
|
-
}>>;
|
|
466
|
-
}
|
|
467
|
-
/**
|
|
468
|
-
* Storage module for file operations
|
|
469
|
-
*/
|
|
470
|
-
declare class Storage {
|
|
471
|
-
private http;
|
|
472
|
-
constructor(http: HttpClient);
|
|
473
|
-
/**
|
|
474
|
-
* Get a bucket instance for operations
|
|
475
|
-
* @param bucketName - Name of the bucket
|
|
476
|
-
*/
|
|
477
|
-
from(bucketName: string): StorageBucket;
|
|
478
|
-
}
|
|
479
|
-
|
|
480
|
-
/**
|
|
481
|
-
* AI Module for Insforge SDK
|
|
482
|
-
* Response format roughly matches OpenAI SDK for compatibility
|
|
483
|
-
*
|
|
484
|
-
* The backend handles all the complexity of different AI providers
|
|
485
|
-
* and returns a unified format. This SDK transforms responses to match OpenAI-like format.
|
|
486
|
-
*/
|
|
487
|
-
|
|
488
|
-
declare class AI {
|
|
489
|
-
private http;
|
|
490
|
-
readonly chat: Chat;
|
|
491
|
-
readonly images: Images;
|
|
492
|
-
constructor(http: HttpClient);
|
|
493
|
-
}
|
|
494
|
-
declare class Chat {
|
|
495
|
-
readonly completions: ChatCompletions;
|
|
496
|
-
constructor(http: HttpClient);
|
|
497
|
-
}
|
|
498
|
-
declare class ChatCompletions {
|
|
499
|
-
private http;
|
|
500
|
-
constructor(http: HttpClient);
|
|
501
|
-
/**
|
|
502
|
-
* Create a chat completion - OpenAI-like response format
|
|
503
|
-
*
|
|
504
|
-
* @example
|
|
505
|
-
* ```typescript
|
|
506
|
-
* // Non-streaming
|
|
507
|
-
* const completion = await client.ai.chat.completions.create({
|
|
508
|
-
* model: 'gpt-4',
|
|
509
|
-
* messages: [{ role: 'user', content: 'Hello!' }]
|
|
510
|
-
* });
|
|
511
|
-
* console.log(completion.choices[0].message.content);
|
|
512
|
-
*
|
|
513
|
-
* // With images
|
|
514
|
-
* const response = await client.ai.chat.completions.create({
|
|
515
|
-
* model: 'gpt-4-vision',
|
|
516
|
-
* messages: [{
|
|
517
|
-
* role: 'user',
|
|
518
|
-
* content: 'What is in this image?',
|
|
519
|
-
* images: [{ url: 'https://example.com/image.jpg' }]
|
|
520
|
-
* }]
|
|
521
|
-
* });
|
|
522
|
-
*
|
|
523
|
-
* // Streaming - returns async iterable
|
|
524
|
-
* const stream = await client.ai.chat.completions.create({
|
|
525
|
-
* model: 'gpt-4',
|
|
526
|
-
* messages: [{ role: 'user', content: 'Tell me a story' }],
|
|
527
|
-
* stream: true
|
|
528
|
-
* });
|
|
529
|
-
*
|
|
530
|
-
* for await (const chunk of stream) {
|
|
531
|
-
* if (chunk.choices[0]?.delta?.content) {
|
|
532
|
-
* process.stdout.write(chunk.choices[0].delta.content);
|
|
533
|
-
* }
|
|
534
|
-
* }
|
|
535
|
-
* ```
|
|
536
|
-
*/
|
|
537
|
-
create(params: ChatCompletionRequest): Promise<any>;
|
|
538
|
-
/**
|
|
539
|
-
* Parse SSE stream into async iterable of OpenAI-like chunks
|
|
540
|
-
*/
|
|
541
|
-
private parseSSEStream;
|
|
542
|
-
}
|
|
543
|
-
declare class Images {
|
|
544
|
-
private http;
|
|
545
|
-
constructor(http: HttpClient);
|
|
546
|
-
/**
|
|
547
|
-
* Generate images - OpenAI-like response format
|
|
548
|
-
*
|
|
549
|
-
* @example
|
|
550
|
-
* ```typescript
|
|
551
|
-
* // Text-to-image
|
|
552
|
-
* const response = await client.ai.images.generate({
|
|
553
|
-
* model: 'dall-e-3',
|
|
554
|
-
* prompt: 'A sunset over mountains',
|
|
555
|
-
* });
|
|
556
|
-
* console.log(response.images[0].url);
|
|
557
|
-
*
|
|
558
|
-
* // Image-to-image (with input images)
|
|
559
|
-
* const response = await client.ai.images.generate({
|
|
560
|
-
* model: 'stable-diffusion-xl',
|
|
561
|
-
* prompt: 'Transform this into a watercolor painting',
|
|
562
|
-
* images: [
|
|
563
|
-
* { url: 'https://example.com/input.jpg' },
|
|
564
|
-
* // or base64-encoded Data URI:
|
|
565
|
-
* { url: 'data:image/jpeg;base64,/9j/4AAQ...' }
|
|
566
|
-
* ]
|
|
567
|
-
* });
|
|
568
|
-
* ```
|
|
569
|
-
*/
|
|
570
|
-
generate(params: ImageGenerationRequest): Promise<any>;
|
|
571
|
-
}
|
|
572
|
-
|
|
573
|
-
interface FunctionInvokeOptions {
|
|
574
|
-
/**
|
|
575
|
-
* The body of the request
|
|
576
|
-
*/
|
|
577
|
-
body?: any;
|
|
578
|
-
/**
|
|
579
|
-
* Custom headers to send with the request
|
|
580
|
-
*/
|
|
581
|
-
headers?: Record<string, string>;
|
|
582
|
-
/**
|
|
583
|
-
* HTTP method (default: POST)
|
|
584
|
-
*/
|
|
585
|
-
method?: 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE';
|
|
586
|
-
}
|
|
587
|
-
/**
|
|
588
|
-
* Edge Functions client for invoking serverless functions
|
|
589
|
-
*
|
|
590
|
-
* @example
|
|
591
|
-
* ```typescript
|
|
592
|
-
* // Invoke a function with JSON body
|
|
593
|
-
* const { data, error } = await client.functions.invoke('hello-world', {
|
|
594
|
-
* body: { name: 'World' }
|
|
595
|
-
* });
|
|
596
|
-
*
|
|
597
|
-
* // GET request
|
|
598
|
-
* const { data, error } = await client.functions.invoke('get-data', {
|
|
599
|
-
* method: 'GET'
|
|
600
|
-
* });
|
|
601
|
-
* ```
|
|
602
|
-
*/
|
|
603
|
-
declare class Functions {
|
|
604
|
-
private http;
|
|
605
|
-
constructor(http: HttpClient);
|
|
606
|
-
/**
|
|
607
|
-
* Invokes an Edge Function
|
|
608
|
-
* @param slug The function slug to invoke
|
|
609
|
-
* @param options Request options
|
|
610
|
-
*/
|
|
611
|
-
invoke<T = any>(slug: string, options?: FunctionInvokeOptions): Promise<{
|
|
612
|
-
data: T | null;
|
|
613
|
-
error: Error | null;
|
|
614
|
-
}>;
|
|
615
|
-
}
|
|
616
|
-
|
|
617
|
-
type ConnectionState = 'disconnected' | 'connecting' | 'connected';
|
|
618
|
-
type EventCallback<T = unknown> = (payload: T) => void;
|
|
619
|
-
/**
|
|
620
|
-
* Realtime module for subscribing to channels and handling real-time events
|
|
621
|
-
*
|
|
622
|
-
* @example
|
|
623
|
-
* ```typescript
|
|
624
|
-
* const { realtime } = client;
|
|
625
|
-
*
|
|
626
|
-
* // Connect to the realtime server
|
|
627
|
-
* await realtime.connect();
|
|
628
|
-
*
|
|
629
|
-
* // Subscribe to a channel
|
|
630
|
-
* const response = await realtime.subscribe('orders:123');
|
|
631
|
-
* if (!response.ok) {
|
|
632
|
-
* console.error('Failed to subscribe:', response.error);
|
|
633
|
-
* }
|
|
634
|
-
*
|
|
635
|
-
* // Listen for specific events
|
|
636
|
-
* realtime.on('order_updated', (payload) => {
|
|
637
|
-
* console.log('Order updated:', payload);
|
|
638
|
-
* });
|
|
639
|
-
*
|
|
640
|
-
* // Listen for connection events
|
|
641
|
-
* realtime.on('connect', () => console.log('Connected!'));
|
|
642
|
-
* realtime.on('connect_error', (err) => console.error('Connection failed:', err));
|
|
643
|
-
* realtime.on('disconnect', (reason) => console.log('Disconnected:', reason));
|
|
644
|
-
* realtime.on('error', (error) => console.error('Realtime error:', error));
|
|
645
|
-
*
|
|
646
|
-
* // Publish a message to a channel
|
|
647
|
-
* await realtime.publish('orders:123', 'status_changed', { status: 'shipped' });
|
|
648
|
-
*
|
|
649
|
-
* // Unsubscribe and disconnect when done
|
|
650
|
-
* realtime.unsubscribe('orders:123');
|
|
651
|
-
* realtime.disconnect();
|
|
652
|
-
* ```
|
|
653
|
-
*/
|
|
654
|
-
declare class Realtime {
|
|
655
|
-
private baseUrl;
|
|
656
|
-
private tokenManager;
|
|
657
|
-
private socket;
|
|
658
|
-
private connectPromise;
|
|
659
|
-
private subscribedChannels;
|
|
660
|
-
private eventListeners;
|
|
661
|
-
constructor(baseUrl: string, tokenManager: TokenManager);
|
|
662
|
-
private notifyListeners;
|
|
663
|
-
/**
|
|
664
|
-
* Connect to the realtime server
|
|
665
|
-
* @returns Promise that resolves when connected
|
|
666
|
-
*/
|
|
667
|
-
connect(): Promise<void>;
|
|
668
|
-
/**
|
|
669
|
-
* Disconnect from the realtime server
|
|
670
|
-
*/
|
|
671
|
-
disconnect(): void;
|
|
672
|
-
/**
|
|
673
|
-
* Check if connected to the realtime server
|
|
674
|
-
*/
|
|
675
|
-
get isConnected(): boolean;
|
|
676
|
-
/**
|
|
677
|
-
* Get the current connection state
|
|
678
|
-
*/
|
|
679
|
-
get connectionState(): ConnectionState;
|
|
680
|
-
/**
|
|
681
|
-
* Get the socket ID (if connected)
|
|
682
|
-
*/
|
|
683
|
-
get socketId(): string | undefined;
|
|
684
|
-
/**
|
|
685
|
-
* Subscribe to a channel
|
|
686
|
-
*
|
|
687
|
-
* Automatically connects if not already connected.
|
|
688
|
-
*
|
|
689
|
-
* @param channel - Channel name (e.g., 'orders:123', 'broadcast')
|
|
690
|
-
* @returns Promise with the subscription response
|
|
691
|
-
*/
|
|
692
|
-
subscribe(channel: string): Promise<SubscribeResponse>;
|
|
693
|
-
/**
|
|
694
|
-
* Unsubscribe from a channel (fire-and-forget)
|
|
695
|
-
*
|
|
696
|
-
* @param channel - Channel name to unsubscribe from
|
|
697
|
-
*/
|
|
698
|
-
unsubscribe(channel: string): void;
|
|
699
|
-
/**
|
|
700
|
-
* Publish a message to a channel
|
|
701
|
-
*
|
|
702
|
-
* @param channel - Channel name
|
|
703
|
-
* @param event - Event name
|
|
704
|
-
* @param payload - Message payload
|
|
705
|
-
*/
|
|
706
|
-
publish<T = unknown>(channel: string, event: string, payload: T): Promise<void>;
|
|
707
|
-
/**
|
|
708
|
-
* Listen for events
|
|
709
|
-
*
|
|
710
|
-
* Reserved event names:
|
|
711
|
-
* - 'connect' - Fired when connected to the server
|
|
712
|
-
* - 'connect_error' - Fired when connection fails (payload: Error)
|
|
713
|
-
* - 'disconnect' - Fired when disconnected (payload: reason string)
|
|
714
|
-
* - 'error' - Fired when a realtime error occurs (payload: RealtimeErrorPayload)
|
|
715
|
-
*
|
|
716
|
-
* All other events receive a `SocketMessage` payload with metadata.
|
|
717
|
-
*
|
|
718
|
-
* @param event - Event name to listen for
|
|
719
|
-
* @param callback - Callback function when event is received
|
|
720
|
-
*/
|
|
721
|
-
on<T = SocketMessage>(event: string, callback: EventCallback<T>): void;
|
|
722
|
-
/**
|
|
723
|
-
* Remove a listener for a specific event
|
|
724
|
-
*
|
|
725
|
-
* @param event - Event name
|
|
726
|
-
* @param callback - The callback function to remove
|
|
727
|
-
*/
|
|
728
|
-
off<T = SocketMessage>(event: string, callback: EventCallback<T>): void;
|
|
729
|
-
/**
|
|
730
|
-
* Listen for an event only once, then automatically remove the listener
|
|
731
|
-
*
|
|
732
|
-
* @param event - Event name to listen for
|
|
733
|
-
* @param callback - Callback function when event is received
|
|
734
|
-
*/
|
|
735
|
-
once<T = SocketMessage>(event: string, callback: EventCallback<T>): void;
|
|
736
|
-
/**
|
|
737
|
-
* Get all currently subscribed channels
|
|
738
|
-
*
|
|
739
|
-
* @returns Array of channel names
|
|
740
|
-
*/
|
|
741
|
-
getSubscribedChannels(): string[];
|
|
742
|
-
}
|
|
743
|
-
|
|
744
|
-
/**
|
|
745
|
-
* Emails client for sending custom emails
|
|
746
|
-
*
|
|
747
|
-
* @example
|
|
748
|
-
* ```typescript
|
|
749
|
-
* // Send a simple email
|
|
750
|
-
* const { data, error } = await client.emails.send({
|
|
751
|
-
* to: 'user@example.com',
|
|
752
|
-
* subject: 'Welcome!',
|
|
753
|
-
* html: '<h1>Welcome to our platform</h1>'
|
|
754
|
-
* });
|
|
755
|
-
*
|
|
756
|
-
* if (error) {
|
|
757
|
-
* console.error('Failed to send:', error.message);
|
|
758
|
-
* return;
|
|
759
|
-
* }
|
|
760
|
-
* // Email sent successfully - data is {} (empty object)
|
|
761
|
-
*
|
|
762
|
-
* // Send to multiple recipients with CC
|
|
763
|
-
* const { data, error } = await client.emails.send({
|
|
764
|
-
* to: ['user1@example.com', 'user2@example.com'],
|
|
765
|
-
* cc: 'manager@example.com',
|
|
766
|
-
* subject: 'Team Update',
|
|
767
|
-
* html: '<p>Here is the latest update...</p>',
|
|
768
|
-
* replyTo: 'support@example.com'
|
|
769
|
-
* });
|
|
770
|
-
* ```
|
|
771
|
-
*/
|
|
772
|
-
declare class Emails {
|
|
773
|
-
private http;
|
|
774
|
-
constructor(http: HttpClient);
|
|
775
|
-
/**
|
|
776
|
-
* Send a custom HTML email
|
|
777
|
-
* @param options Email options including recipients, subject, and HTML content
|
|
778
|
-
*/
|
|
779
|
-
send(options: SendRawEmailRequest): Promise<{
|
|
780
|
-
data: SendEmailResponse | null;
|
|
781
|
-
error: Error | null;
|
|
782
|
-
}>;
|
|
783
|
-
}
|
|
784
|
-
|
|
785
|
-
/**
|
|
786
|
-
* Main InsForge SDK Client
|
|
787
|
-
*
|
|
788
|
-
* @example
|
|
789
|
-
* ```typescript
|
|
790
|
-
* import { InsForgeClient } from '@insforge/sdk';
|
|
791
|
-
*
|
|
792
|
-
* const client = new InsForgeClient({
|
|
793
|
-
* baseUrl: 'http://localhost:7130'
|
|
794
|
-
* });
|
|
795
|
-
*
|
|
796
|
-
* // Authentication
|
|
797
|
-
* const { data, error } = await client.auth.signUp({
|
|
798
|
-
* email: 'user@example.com',
|
|
799
|
-
* password: 'password123',
|
|
800
|
-
* name: 'John Doe'
|
|
801
|
-
* });
|
|
802
|
-
*
|
|
803
|
-
* // Database operations
|
|
804
|
-
* const { data, error } = await client.database
|
|
805
|
-
* .from('posts')
|
|
806
|
-
* .select('*')
|
|
807
|
-
* .eq('user_id', session.user.id)
|
|
808
|
-
* .order('created_at', { ascending: false })
|
|
809
|
-
* .limit(10);
|
|
810
|
-
*
|
|
811
|
-
* // Insert data
|
|
812
|
-
* const { data: newPost } = await client.database
|
|
813
|
-
* .from('posts')
|
|
814
|
-
* .insert({ title: 'Hello', content: 'World' })
|
|
815
|
-
* .single();
|
|
816
|
-
*
|
|
817
|
-
* // Invoke edge functions
|
|
818
|
-
* const { data, error } = await client.functions.invoke('my-function', {
|
|
819
|
-
* body: { message: 'Hello from SDK' }
|
|
820
|
-
* });
|
|
821
|
-
* ```
|
|
822
|
-
*/
|
|
823
|
-
declare class InsForgeClient {
|
|
824
|
-
private http;
|
|
825
|
-
private tokenManager;
|
|
826
|
-
readonly auth: Auth;
|
|
827
|
-
readonly database: Database;
|
|
828
|
-
readonly storage: Storage;
|
|
829
|
-
readonly ai: AI;
|
|
830
|
-
readonly functions: Functions;
|
|
831
|
-
readonly realtime: Realtime;
|
|
832
|
-
readonly emails: Emails;
|
|
833
|
-
constructor(config?: InsForgeConfig);
|
|
834
|
-
/**
|
|
835
|
-
* Get the underlying HTTP client for custom requests
|
|
836
|
-
*
|
|
837
|
-
* @example
|
|
838
|
-
* ```typescript
|
|
839
|
-
* const httpClient = client.getHttpClient();
|
|
840
|
-
* const customData = await httpClient.get('/api/custom-endpoint');
|
|
841
|
-
* ```
|
|
842
|
-
*/
|
|
843
|
-
getHttpClient(): HttpClient;
|
|
844
|
-
}
|
|
845
|
-
|
|
846
|
-
/**
|
|
847
|
-
* @insforge/sdk - TypeScript SDK for InsForge Backend-as-a-Service
|
|
848
|
-
*
|
|
849
|
-
* @packageDocumentation
|
|
850
|
-
*/
|
|
851
|
-
|
|
852
|
-
declare function createClient(config: InsForgeConfig): InsForgeClient;
|
|
853
|
-
|
|
854
|
-
export { AI, type ApiError, Auth, type AuthSession, type InsForgeConfig as ClientOptions, type ConnectionState, Database, Emails, type EventCallback, type FunctionInvokeOptions, Functions, HttpClient, InsForgeClient, type InsForgeConfig, InsForgeError, Realtime, Storage, StorageBucket, type StorageResponse, TokenManager, type TokenStorage, createClient, InsForgeClient as default };
|