vibeusage 0.2.14 → 0.2.16
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 +2 -0
- package/README.zh-CN.md +2 -0
- package/node_modules/@insforge/sdk/LICENSE +201 -0
- package/node_modules/@insforge/sdk/README.md +259 -0
- package/node_modules/@insforge/sdk/dist/index.d.mts +854 -0
- package/node_modules/@insforge/sdk/dist/index.d.ts +854 -0
- package/node_modules/@insforge/sdk/dist/index.js +1823 -0
- package/node_modules/@insforge/sdk/dist/index.js.map +1 -0
- package/node_modules/@insforge/sdk/dist/index.mjs +1784 -0
- package/node_modules/@insforge/sdk/dist/index.mjs.map +1 -0
- package/node_modules/@insforge/sdk/package.json +68 -0
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.d.ts +583 -0
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.js +111 -0
- package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.d.ts +188 -0
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.js +48 -0
- package/node_modules/@insforge/shared-schemas/dist/ai.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.d.ts +1127 -0
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.js +277 -0
- package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.d.ts +187 -0
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.js +105 -0
- package/node_modules/@insforge/shared-schemas/dist/auth.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.d.ts +144 -0
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.js +41 -0
- package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.d.ts +1627 -0
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.js +209 -0
- package/node_modules/@insforge/shared-schemas/dist/database-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/database.schema.d.ts +263 -0
- package/node_modules/@insforge/shared-schemas/dist/database.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/database.schema.js +89 -0
- package/node_modules/@insforge/shared-schemas/dist/database.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.d.ts +4 -0
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.js +22 -0
- package/node_modules/@insforge/shared-schemas/dist/docs.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.d.ts +34 -0
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.js +24 -0
- package/node_modules/@insforge/shared-schemas/dist/email-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.d.ts +39 -0
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.js +18 -0
- package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.d.ts +34 -0
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.js +14 -0
- package/node_modules/@insforge/shared-schemas/dist/functions.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/index.d.ts +19 -0
- package/node_modules/@insforge/shared-schemas/dist/index.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/index.js +19 -0
- package/node_modules/@insforge/shared-schemas/dist/index.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.d.ts +237 -0
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.js +41 -0
- package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.d.ts +79 -0
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.js +31 -0
- package/node_modules/@insforge/shared-schemas/dist/logs.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.d.ts +940 -0
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.js +50 -0
- package/node_modules/@insforge/shared-schemas/dist/metadata.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.d.ts +395 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.js +73 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.d.ts +269 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.js +109 -0
- package/node_modules/@insforge/shared-schemas/dist/realtime.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.d.ts +166 -0
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.js +49 -0
- package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.d.ts +39 -0
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.d.ts.map +1 -0
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.js +15 -0
- package/node_modules/@insforge/shared-schemas/dist/storage.schema.js.map +1 -0
- package/node_modules/@insforge/shared-schemas/package.json +31 -0
- package/node_modules/@socket.io/component-emitter/LICENSE +24 -0
- package/node_modules/@socket.io/component-emitter/Readme.md +79 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/index.d.ts +179 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/index.js +176 -0
- package/node_modules/@socket.io/component-emitter/lib/cjs/package.json +4 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/index.d.ts +179 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/index.js +169 -0
- package/node_modules/@socket.io/component-emitter/lib/esm/package.json +4 -0
- package/node_modules/@socket.io/component-emitter/package.json +28 -0
- package/node_modules/@supabase/node-fetch/LICENSE.md +22 -0
- package/node_modules/@supabase/node-fetch/README.md +633 -0
- package/node_modules/@supabase/node-fetch/browser.js +22 -0
- package/node_modules/@supabase/node-fetch/lib/index.es.js +1778 -0
- package/node_modules/@supabase/node-fetch/lib/index.js +1787 -0
- package/node_modules/@supabase/node-fetch/lib/index.mjs +1776 -0
- package/node_modules/@supabase/node-fetch/package.json +80 -0
- package/node_modules/@supabase/postgrest-js/LICENSE +21 -0
- package/node_modules/@supabase/postgrest-js/README.md +56 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.d.ts +71 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.js +222 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestBuilder.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.d.ts +74 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.js +121 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestClient.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.d.ts +17 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.js +18 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestError.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.d.ts +108 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.js +381 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestFilterBuilder.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.d.ts +117 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.js +251 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestQueryBuilder.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.d.ts +157 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.js +226 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/PostgrestTransformBuilder.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.d.ts +4 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.js +6 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/constants.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.d.ts +19 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.js +28 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/index.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.d.ts +261 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.js +5 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/parser.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.d.ts +157 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.js +3 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/result.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.d.ts +31 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.js +3 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/types.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.d.ts +264 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.js +3 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/select-query-parser/utils.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.d.ts +106 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.js +3 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/types.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.d.ts +2 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.d.ts.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.js +5 -0
- package/node_modules/@supabase/postgrest-js/dist/cjs/version.js.map +1 -0
- package/node_modules/@supabase/postgrest-js/dist/esm/wrapper.mjs +28 -0
- package/node_modules/@supabase/postgrest-js/package.json +75 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestBuilder.ts +300 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestClient.ts +192 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestError.ts +18 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestFilterBuilder.ts +604 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestQueryBuilder.ts +437 -0
- package/node_modules/@supabase/postgrest-js/src/PostgrestTransformBuilder.ts +368 -0
- package/node_modules/@supabase/postgrest-js/src/constants.ts +2 -0
- package/node_modules/@supabase/postgrest-js/src/index.ts +35 -0
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/parser.ts +469 -0
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/result.ts +503 -0
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/types.ts +115 -0
- package/node_modules/@supabase/postgrest-js/src/select-query-parser/utils.ts +602 -0
- package/node_modules/@supabase/postgrest-js/src/types.ts +201 -0
- package/node_modules/@supabase/postgrest-js/src/version.ts +1 -0
- package/node_modules/debug/LICENSE +20 -0
- package/node_modules/debug/README.md +481 -0
- package/node_modules/debug/package.json +60 -0
- package/node_modules/debug/src/browser.js +271 -0
- package/node_modules/debug/src/common.js +274 -0
- package/node_modules/debug/src/index.js +10 -0
- package/node_modules/debug/src/node.js +263 -0
- package/node_modules/engine.io-client/LICENSE +22 -0
- package/node_modules/engine.io-client/README.md +331 -0
- package/node_modules/engine.io-client/build/cjs/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/cjs/browser-entrypoint.js +4 -0
- package/node_modules/engine.io-client/build/cjs/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/cjs/contrib/has-cors.js +14 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseqs.js +38 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/cjs/contrib/parseuri.js +67 -0
- package/node_modules/engine.io-client/build/cjs/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/cjs/globals.js +26 -0
- package/node_modules/engine.io-client/build/cjs/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/cjs/globals.node.js +97 -0
- package/node_modules/engine.io-client/build/cjs/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/index.js +32 -0
- package/node_modules/engine.io-client/build/cjs/package.json +10 -0
- package/node_modules/engine.io-client/build/cjs/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/cjs/socket.js +765 -0
- package/node_modules/engine.io-client/build/cjs/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/cjs/transport.js +153 -0
- package/node_modules/engine.io-client/build/cjs/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/cjs/transports/index.js +11 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-fetch.js +60 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.js +285 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling-xhr.node.js +44 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/cjs/transports/polling.js +165 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.js +136 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/cjs/transports/websocket.node.js +68 -0
- package/node_modules/engine.io-client/build/cjs/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/cjs/transports/webtransport.js +94 -0
- package/node_modules/engine.io-client/build/cjs/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/cjs/util.js +65 -0
- package/node_modules/engine.io-client/build/esm/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/esm/browser-entrypoint.js +2 -0
- package/node_modules/engine.io-client/build/esm/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm/contrib/has-cors.js +11 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseqs.js +34 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm/contrib/parseuri.js +64 -0
- package/node_modules/engine.io-client/build/esm/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/esm/globals.js +22 -0
- package/node_modules/engine.io-client/build/esm/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/esm/globals.node.js +91 -0
- package/node_modules/engine.io-client/build/esm/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/index.js +15 -0
- package/node_modules/engine.io-client/build/esm/package.json +10 -0
- package/node_modules/engine.io-client/build/esm/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/esm/socket.js +727 -0
- package/node_modules/engine.io-client/build/esm/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/esm/transport.js +142 -0
- package/node_modules/engine.io-client/build/esm/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/esm/transports/index.js +8 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-fetch.js +56 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.js +271 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/esm/transports/polling-xhr.node.js +17 -0
- package/node_modules/engine.io-client/build/esm/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/esm/transports/polling.js +145 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.js +125 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/esm/transports/websocket.node.js +41 -0
- package/node_modules/engine.io-client/build/esm/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/esm/transports/webtransport.js +80 -0
- package/node_modules/engine.io-client/build/esm/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/esm/util.js +59 -0
- package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.d.ts +3 -0
- package/node_modules/engine.io-client/build/esm-debug/browser-entrypoint.js +2 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/has-cors.js +11 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseqs.js +34 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.d.ts +1 -0
- package/node_modules/engine.io-client/build/esm-debug/contrib/parseuri.js +64 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.d.ts +4 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.js +22 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.node.d.ts +21 -0
- package/node_modules/engine.io-client/build/esm-debug/globals.node.js +91 -0
- package/node_modules/engine.io-client/build/esm-debug/index.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/index.js +15 -0
- package/node_modules/engine.io-client/build/esm-debug/package.json +10 -0
- package/node_modules/engine.io-client/build/esm-debug/socket.d.ts +482 -0
- package/node_modules/engine.io-client/build/esm-debug/socket.js +756 -0
- package/node_modules/engine.io-client/build/esm-debug/transport.d.ts +106 -0
- package/node_modules/engine.io-client/build/esm-debug/transport.js +145 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/index.d.ts +8 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/index.js +8 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.d.ts +15 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-fetch.js +56 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.d.ts +108 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.js +276 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.d.ts +11 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling-xhr.node.js +17 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling.d.ts +52 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/polling.js +158 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.d.ts +36 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.js +128 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.d.ts +14 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/websocket.node.js +41 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.d.ts +18 -0
- package/node_modules/engine.io-client/build/esm-debug/transports/webtransport.js +87 -0
- package/node_modules/engine.io-client/build/esm-debug/util.d.ts +7 -0
- package/node_modules/engine.io-client/build/esm-debug/util.js +59 -0
- package/node_modules/engine.io-client/dist/engine.io.esm.min.js +7 -0
- package/node_modules/engine.io-client/dist/engine.io.esm.min.js.map +1 -0
- package/node_modules/engine.io-client/dist/engine.io.js +2968 -0
- package/node_modules/engine.io-client/dist/engine.io.js.map +1 -0
- package/node_modules/engine.io-client/dist/engine.io.min.js +7 -0
- package/node_modules/engine.io-client/dist/engine.io.min.js.map +1 -0
- package/node_modules/engine.io-client/package.json +95 -0
- package/node_modules/engine.io-parser/LICENSE +22 -0
- package/node_modules/engine.io-parser/Readme.md +158 -0
- package/node_modules/engine.io-parser/build/cjs/commons.d.ts +14 -0
- package/node_modules/engine.io-parser/build/cjs/commons.js +19 -0
- package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/contrib/base64-arraybuffer.js +48 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.browser.js +66 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.d.ts +2 -0
- package/node_modules/engine.io-parser/build/cjs/decodePacket.js +59 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.d.ts +4 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.browser.js +72 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.d.ts +3 -0
- package/node_modules/engine.io-parser/build/cjs/encodePacket.js +38 -0
- package/node_modules/engine.io-parser/build/cjs/index.d.ts +9 -0
- package/node_modules/engine.io-parser/build/cjs/index.js +164 -0
- package/node_modules/engine.io-parser/build/cjs/package.json +8 -0
- package/node_modules/engine.io-parser/build/esm/commons.d.ts +14 -0
- package/node_modules/engine.io-parser/build/esm/commons.js +14 -0
- package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/contrib/base64-arraybuffer.js +43 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.browser.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.browser.js +62 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.d.ts +2 -0
- package/node_modules/engine.io-parser/build/esm/decodePacket.js +55 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.browser.d.ts +4 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.browser.js +68 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.d.ts +3 -0
- package/node_modules/engine.io-parser/build/esm/encodePacket.js +33 -0
- package/node_modules/engine.io-parser/build/esm/index.d.ts +9 -0
- package/node_modules/engine.io-parser/build/esm/index.js +156 -0
- package/node_modules/engine.io-parser/build/esm/package.json +8 -0
- package/node_modules/engine.io-parser/package.json +46 -0
- package/node_modules/ms/index.js +162 -0
- package/node_modules/ms/license.md +21 -0
- package/node_modules/ms/package.json +38 -0
- package/node_modules/ms/readme.md +59 -0
- package/node_modules/socket.io-client/LICENSE +21 -0
- package/node_modules/socket.io-client/README.md +29 -0
- package/node_modules/socket.io-client/build/cjs/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/cjs/browser-entrypoint.js +4 -0
- package/node_modules/socket.io-client/build/cjs/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/cjs/contrib/backo2.js +69 -0
- package/node_modules/socket.io-client/build/cjs/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/cjs/index.js +76 -0
- package/node_modules/socket.io-client/build/cjs/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/cjs/manager.js +416 -0
- package/node_modules/socket.io-client/build/cjs/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/cjs/on.js +9 -0
- package/node_modules/socket.io-client/build/cjs/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/cjs/socket.js +910 -0
- package/node_modules/socket.io-client/build/cjs/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/cjs/url.js +69 -0
- package/node_modules/socket.io-client/build/esm/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm/browser-entrypoint.js +2 -0
- package/node_modules/socket.io-client/build/esm/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/esm/contrib/backo2.js +66 -0
- package/node_modules/socket.io-client/build/esm/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/esm/index.js +58 -0
- package/node_modules/socket.io-client/build/esm/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/esm/manager.js +367 -0
- package/node_modules/socket.io-client/build/esm/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm/on.js +6 -0
- package/node_modules/socket.io-client/build/esm/package.json +5 -0
- package/node_modules/socket.io-client/build/esm/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/esm/socket.js +882 -0
- package/node_modules/socket.io-client/build/esm/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/esm/url.js +59 -0
- package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm-debug/browser-entrypoint.js +2 -0
- package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.d.ts +12 -0
- package/node_modules/socket.io-client/build/esm-debug/contrib/backo2.js +66 -0
- package/node_modules/socket.io-client/build/esm-debug/index.d.ts +29 -0
- package/node_modules/socket.io-client/build/esm-debug/index.js +62 -0
- package/node_modules/socket.io-client/build/esm-debug/manager.d.ts +295 -0
- package/node_modules/socket.io-client/build/esm-debug/manager.js +386 -0
- package/node_modules/socket.io-client/build/esm-debug/on.d.ts +2 -0
- package/node_modules/socket.io-client/build/esm-debug/on.js +6 -0
- package/node_modules/socket.io-client/build/esm-debug/package.json +5 -0
- package/node_modules/socket.io-client/build/esm-debug/socket.d.ts +593 -0
- package/node_modules/socket.io-client/build/esm-debug/socket.js +903 -0
- package/node_modules/socket.io-client/build/esm-debug/url.d.ts +33 -0
- package/node_modules/socket.io-client/build/esm-debug/url.js +63 -0
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.esm.min.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.js +4908 -0
- package/node_modules/socket.io-client/dist/socket.io.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.min.js.map +1 -0
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js +7 -0
- package/node_modules/socket.io-client/dist/socket.io.msgpack.min.js.map +1 -0
- package/node_modules/socket.io-client/package.json +101 -0
- package/node_modules/socket.io-parser/LICENSE +20 -0
- package/node_modules/socket.io-parser/Readme.md +81 -0
- package/node_modules/socket.io-parser/build/cjs/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/cjs/binary.js +88 -0
- package/node_modules/socket.io-parser/build/cjs/index.d.ts +90 -0
- package/node_modules/socket.io-parser/build/cjs/index.js +321 -0
- package/node_modules/socket.io-parser/build/cjs/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/cjs/is-binary.js +55 -0
- package/node_modules/socket.io-parser/build/cjs/package.json +3 -0
- package/node_modules/socket.io-parser/build/esm/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/esm/binary.js +83 -0
- package/node_modules/socket.io-parser/build/esm/index.d.ts +90 -0
- package/node_modules/socket.io-parser/build/esm/index.js +311 -0
- package/node_modules/socket.io-parser/build/esm/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/esm/is-binary.js +50 -0
- package/node_modules/socket.io-parser/build/esm/package.json +3 -0
- package/node_modules/socket.io-parser/build/esm-debug/binary.d.ts +20 -0
- package/node_modules/socket.io-parser/build/esm-debug/binary.js +83 -0
- package/node_modules/socket.io-parser/build/esm-debug/index.d.ts +90 -0
- package/node_modules/socket.io-parser/build/esm-debug/index.js +316 -0
- package/node_modules/socket.io-parser/build/esm-debug/is-binary.d.ts +7 -0
- package/node_modules/socket.io-parser/build/esm-debug/is-binary.js +50 -0
- package/node_modules/socket.io-parser/build/esm-debug/package.json +3 -0
- package/node_modules/socket.io-parser/package.json +58 -0
- package/node_modules/tr46/.npmignore +4 -0
- package/node_modules/tr46/index.js +193 -0
- package/node_modules/tr46/lib/.gitkeep +0 -0
- package/node_modules/tr46/lib/mappingTable.json +1 -0
- package/node_modules/tr46/package.json +31 -0
- package/node_modules/webidl-conversions/LICENSE.md +12 -0
- package/node_modules/webidl-conversions/README.md +53 -0
- package/node_modules/webidl-conversions/lib/index.js +189 -0
- package/node_modules/webidl-conversions/package.json +23 -0
- package/node_modules/whatwg-url/LICENSE.txt +21 -0
- package/node_modules/whatwg-url/README.md +67 -0
- package/node_modules/whatwg-url/lib/URL-impl.js +200 -0
- package/node_modules/whatwg-url/lib/URL.js +196 -0
- package/node_modules/whatwg-url/lib/public-api.js +11 -0
- package/node_modules/whatwg-url/lib/url-state-machine.js +1297 -0
- package/node_modules/whatwg-url/lib/utils.js +20 -0
- package/node_modules/whatwg-url/package.json +32 -0
- package/node_modules/ws/LICENSE +20 -0
- package/node_modules/ws/README.md +548 -0
- package/node_modules/ws/browser.js +8 -0
- package/node_modules/ws/index.js +13 -0
- package/node_modules/ws/lib/buffer-util.js +131 -0
- package/node_modules/ws/lib/constants.js +12 -0
- package/node_modules/ws/lib/event-target.js +292 -0
- package/node_modules/ws/lib/extension.js +203 -0
- package/node_modules/ws/lib/limiter.js +55 -0
- package/node_modules/ws/lib/permessage-deflate.js +514 -0
- package/node_modules/ws/lib/receiver.js +704 -0
- package/node_modules/ws/lib/sender.js +497 -0
- package/node_modules/ws/lib/stream.js +159 -0
- package/node_modules/ws/lib/subprotocol.js +62 -0
- package/node_modules/ws/lib/validation.js +130 -0
- package/node_modules/ws/lib/websocket-server.js +540 -0
- package/node_modules/ws/lib/websocket.js +1338 -0
- package/node_modules/ws/package.json +69 -0
- package/node_modules/ws/wrapper.mjs +8 -0
- package/node_modules/xmlhttprequest-ssl/LICENSE +22 -0
- package/node_modules/xmlhttprequest-ssl/README.md +67 -0
- package/node_modules/xmlhttprequest-ssl/lib/XMLHttpRequest.js +689 -0
- package/node_modules/xmlhttprequest-ssl/package.json +40 -0
- package/node_modules/zod/LICENSE +21 -0
- package/node_modules/zod/README.md +208 -0
- package/node_modules/zod/index.cjs +33 -0
- package/node_modules/zod/index.d.cts +4 -0
- package/node_modules/zod/index.d.ts +4 -0
- package/node_modules/zod/index.js +4 -0
- package/node_modules/zod/package.json +118 -0
- package/node_modules/zod/src/index.ts +4 -0
- package/node_modules/zod/src/v3/ZodError.ts +330 -0
- package/node_modules/zod/src/v3/benchmarks/datetime.ts +58 -0
- package/node_modules/zod/src/v3/benchmarks/discriminatedUnion.ts +80 -0
- package/node_modules/zod/src/v3/benchmarks/index.ts +59 -0
- package/node_modules/zod/src/v3/benchmarks/ipv4.ts +57 -0
- package/node_modules/zod/src/v3/benchmarks/object.ts +69 -0
- package/node_modules/zod/src/v3/benchmarks/primitives.ts +162 -0
- package/node_modules/zod/src/v3/benchmarks/realworld.ts +63 -0
- package/node_modules/zod/src/v3/benchmarks/string.ts +55 -0
- package/node_modules/zod/src/v3/benchmarks/union.ts +80 -0
- package/node_modules/zod/src/v3/errors.ts +13 -0
- package/node_modules/zod/src/v3/external.ts +6 -0
- package/node_modules/zod/src/v3/helpers/enumUtil.ts +17 -0
- package/node_modules/zod/src/v3/helpers/errorUtil.ts +8 -0
- package/node_modules/zod/src/v3/helpers/parseUtil.ts +176 -0
- package/node_modules/zod/src/v3/helpers/partialUtil.ts +34 -0
- package/node_modules/zod/src/v3/helpers/typeAliases.ts +2 -0
- package/node_modules/zod/src/v3/helpers/util.ts +224 -0
- package/node_modules/zod/src/v3/index.ts +4 -0
- package/node_modules/zod/src/v3/locales/en.ts +124 -0
- package/node_modules/zod/src/v3/standard-schema.ts +113 -0
- package/node_modules/zod/src/v3/tests/Mocker.ts +54 -0
- package/node_modules/zod/src/v3/tests/all-errors.test.ts +157 -0
- package/node_modules/zod/src/v3/tests/anyunknown.test.ts +28 -0
- package/node_modules/zod/src/v3/tests/array.test.ts +71 -0
- package/node_modules/zod/src/v3/tests/async-parsing.test.ts +388 -0
- package/node_modules/zod/src/v3/tests/async-refinements.test.ts +46 -0
- package/node_modules/zod/src/v3/tests/base.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/bigint.test.ts +55 -0
- package/node_modules/zod/src/v3/tests/branded.test.ts +53 -0
- package/node_modules/zod/src/v3/tests/catch.test.ts +220 -0
- package/node_modules/zod/src/v3/tests/coerce.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/complex.test.ts +56 -0
- package/node_modules/zod/src/v3/tests/custom.test.ts +31 -0
- package/node_modules/zod/src/v3/tests/date.test.ts +32 -0
- package/node_modules/zod/src/v3/tests/deepmasking.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/default.test.ts +112 -0
- package/node_modules/zod/src/v3/tests/description.test.ts +33 -0
- package/node_modules/zod/src/v3/tests/discriminated-unions.test.ts +315 -0
- package/node_modules/zod/src/v3/tests/enum.test.ts +80 -0
- package/node_modules/zod/src/v3/tests/error.test.ts +551 -0
- package/node_modules/zod/src/v3/tests/firstparty.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/firstpartyschematypes.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/function.test.ts +257 -0
- package/node_modules/zod/src/v3/tests/generics.test.ts +48 -0
- package/node_modules/zod/src/v3/tests/instanceof.test.ts +37 -0
- package/node_modules/zod/src/v3/tests/intersection.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/language-server.source.ts +76 -0
- package/node_modules/zod/src/v3/tests/language-server.test.ts +207 -0
- package/node_modules/zod/src/v3/tests/literal.test.ts +36 -0
- package/node_modules/zod/src/v3/tests/map.test.ts +110 -0
- package/node_modules/zod/src/v3/tests/masking.test.ts +4 -0
- package/node_modules/zod/src/v3/tests/mocker.test.ts +19 -0
- package/node_modules/zod/src/v3/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v3/tests/nativeEnum.test.ts +87 -0
- package/node_modules/zod/src/v3/tests/nullable.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/number.test.ts +176 -0
- package/node_modules/zod/src/v3/tests/object-augmentation.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object-in-es5-env.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/object.test.ts +434 -0
- package/node_modules/zod/src/v3/tests/optional.test.ts +42 -0
- package/node_modules/zod/src/v3/tests/parseUtil.test.ts +23 -0
- package/node_modules/zod/src/v3/tests/parser.test.ts +41 -0
- package/node_modules/zod/src/v3/tests/partials.test.ts +243 -0
- package/node_modules/zod/src/v3/tests/pickomit.test.ts +111 -0
- package/node_modules/zod/src/v3/tests/pipeline.test.ts +29 -0
- package/node_modules/zod/src/v3/tests/preprocess.test.ts +186 -0
- package/node_modules/zod/src/v3/tests/primitive.test.ts +440 -0
- package/node_modules/zod/src/v3/tests/promise.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/readonly.test.ts +194 -0
- package/node_modules/zod/src/v3/tests/record.test.ts +171 -0
- package/node_modules/zod/src/v3/tests/recursive.test.ts +197 -0
- package/node_modules/zod/src/v3/tests/refine.test.ts +313 -0
- package/node_modules/zod/src/v3/tests/safeparse.test.ts +27 -0
- package/node_modules/zod/src/v3/tests/set.test.ts +142 -0
- package/node_modules/zod/src/v3/tests/standard-schema.test.ts +83 -0
- package/node_modules/zod/src/v3/tests/string.test.ts +916 -0
- package/node_modules/zod/src/v3/tests/transformer.test.ts +233 -0
- package/node_modules/zod/src/v3/tests/tuple.test.ts +90 -0
- package/node_modules/zod/src/v3/tests/unions.test.ts +57 -0
- package/node_modules/zod/src/v3/tests/validations.test.ts +133 -0
- package/node_modules/zod/src/v3/tests/void.test.ts +15 -0
- package/node_modules/zod/src/v3/types.ts +5136 -0
- package/node_modules/zod/src/v4/classic/checks.ts +30 -0
- package/node_modules/zod/src/v4/classic/coerce.ts +27 -0
- package/node_modules/zod/src/v4/classic/compat.ts +66 -0
- package/node_modules/zod/src/v4/classic/errors.ts +75 -0
- package/node_modules/zod/src/v4/classic/external.ts +50 -0
- package/node_modules/zod/src/v4/classic/index.ts +5 -0
- package/node_modules/zod/src/v4/classic/iso.ts +90 -0
- package/node_modules/zod/src/v4/classic/parse.ts +33 -0
- package/node_modules/zod/src/v4/classic/schemas.ts +2054 -0
- package/node_modules/zod/src/v4/classic/tests/anyunknown.test.ts +26 -0
- package/node_modules/zod/src/v4/classic/tests/array.test.ts +264 -0
- package/node_modules/zod/src/v4/classic/tests/assignability.test.ts +210 -0
- package/node_modules/zod/src/v4/classic/tests/async-parsing.test.ts +381 -0
- package/node_modules/zod/src/v4/classic/tests/async-refinements.test.ts +68 -0
- package/node_modules/zod/src/v4/classic/tests/base.test.ts +7 -0
- package/node_modules/zod/src/v4/classic/tests/bigint.test.ts +54 -0
- package/node_modules/zod/src/v4/classic/tests/brand.test.ts +63 -0
- package/node_modules/zod/src/v4/classic/tests/catch.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/coalesce.test.ts +20 -0
- package/node_modules/zod/src/v4/classic/tests/coerce.test.ts +160 -0
- package/node_modules/zod/src/v4/classic/tests/continuability.test.ts +352 -0
- package/node_modules/zod/src/v4/classic/tests/custom.test.ts +40 -0
- package/node_modules/zod/src/v4/classic/tests/date.test.ts +31 -0
- package/node_modules/zod/src/v4/classic/tests/datetime.test.ts +296 -0
- package/node_modules/zod/src/v4/classic/tests/default.test.ts +313 -0
- package/node_modules/zod/src/v4/classic/tests/description.test.ts +32 -0
- package/node_modules/zod/src/v4/classic/tests/discriminated-unions.test.ts +619 -0
- package/node_modules/zod/src/v4/classic/tests/enum.test.ts +285 -0
- package/node_modules/zod/src/v4/classic/tests/error-utils.test.ts +527 -0
- package/node_modules/zod/src/v4/classic/tests/error.test.ts +711 -0
- package/node_modules/zod/src/v4/classic/tests/file.test.ts +91 -0
- package/node_modules/zod/src/v4/classic/tests/firstparty.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/function.test.ts +268 -0
- package/node_modules/zod/src/v4/classic/tests/generics.test.ts +72 -0
- package/node_modules/zod/src/v4/classic/tests/index.test.ts +829 -0
- package/node_modules/zod/src/v4/classic/tests/instanceof.test.ts +34 -0
- package/node_modules/zod/src/v4/classic/tests/intersection.test.ts +171 -0
- package/node_modules/zod/src/v4/classic/tests/json.test.ts +108 -0
- package/node_modules/zod/src/v4/classic/tests/lazy.test.ts +227 -0
- package/node_modules/zod/src/v4/classic/tests/literal.test.ts +92 -0
- package/node_modules/zod/src/v4/classic/tests/map.test.ts +196 -0
- package/node_modules/zod/src/v4/classic/tests/nan.test.ts +21 -0
- package/node_modules/zod/src/v4/classic/tests/nested-refine.test.ts +168 -0
- package/node_modules/zod/src/v4/classic/tests/nonoptional.test.ts +86 -0
- package/node_modules/zod/src/v4/classic/tests/nullable.test.ts +22 -0
- package/node_modules/zod/src/v4/classic/tests/number.test.ts +247 -0
- package/node_modules/zod/src/v4/classic/tests/object.test.ts +563 -0
- package/node_modules/zod/src/v4/classic/tests/optional.test.ts +123 -0
- package/node_modules/zod/src/v4/classic/tests/partial.test.ts +147 -0
- package/node_modules/zod/src/v4/classic/tests/pickomit.test.ts +127 -0
- package/node_modules/zod/src/v4/classic/tests/pipe.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prefault.test.ts +37 -0
- package/node_modules/zod/src/v4/classic/tests/preprocess.test.ts +298 -0
- package/node_modules/zod/src/v4/classic/tests/primitive.test.ts +175 -0
- package/node_modules/zod/src/v4/classic/tests/promise.test.ts +81 -0
- package/node_modules/zod/src/v4/classic/tests/prototypes.test.ts +23 -0
- package/node_modules/zod/src/v4/classic/tests/readonly.test.ts +252 -0
- package/node_modules/zod/src/v4/classic/tests/record.test.ts +342 -0
- package/node_modules/zod/src/v4/classic/tests/recursive-types.test.ts +356 -0
- package/node_modules/zod/src/v4/classic/tests/refine.test.ts +532 -0
- package/node_modules/zod/src/v4/classic/tests/registries.test.ts +204 -0
- package/node_modules/zod/src/v4/classic/tests/set.test.ts +179 -0
- package/node_modules/zod/src/v4/classic/tests/standard-schema.test.ts +57 -0
- package/node_modules/zod/src/v4/classic/tests/string-formats.test.ts +109 -0
- package/node_modules/zod/src/v4/classic/tests/string.test.ts +881 -0
- package/node_modules/zod/src/v4/classic/tests/stringbool.test.ts +66 -0
- package/node_modules/zod/src/v4/classic/tests/template-literal.test.ts +758 -0
- package/node_modules/zod/src/v4/classic/tests/to-json-schema.test.ts +2314 -0
- package/node_modules/zod/src/v4/classic/tests/transform.test.ts +250 -0
- package/node_modules/zod/src/v4/classic/tests/tuple.test.ts +163 -0
- package/node_modules/zod/src/v4/classic/tests/union.test.ts +94 -0
- package/node_modules/zod/src/v4/classic/tests/validations.test.ts +283 -0
- package/node_modules/zod/src/v4/classic/tests/void.test.ts +12 -0
- package/node_modules/zod/src/v4/core/api.ts +1594 -0
- package/node_modules/zod/src/v4/core/checks.ts +1283 -0
- package/node_modules/zod/src/v4/core/config.ts +15 -0
- package/node_modules/zod/src/v4/core/core.ts +134 -0
- package/node_modules/zod/src/v4/core/doc.ts +44 -0
- package/node_modules/zod/src/v4/core/errors.ts +424 -0
- package/node_modules/zod/src/v4/core/function.ts +176 -0
- package/node_modules/zod/src/v4/core/index.ts +15 -0
- package/node_modules/zod/src/v4/core/json-schema.ts +143 -0
- package/node_modules/zod/src/v4/core/parse.ts +94 -0
- package/node_modules/zod/src/v4/core/regexes.ts +135 -0
- package/node_modules/zod/src/v4/core/registries.ts +96 -0
- package/node_modules/zod/src/v4/core/schemas.ts +3842 -0
- package/node_modules/zod/src/v4/core/standard-schema.ts +64 -0
- package/node_modules/zod/src/v4/core/tests/index.test.ts +46 -0
- package/node_modules/zod/src/v4/core/tests/locales/be.test.ts +124 -0
- package/node_modules/zod/src/v4/core/tests/locales/en.test.ts +22 -0
- package/node_modules/zod/src/v4/core/tests/locales/ru.test.ts +128 -0
- package/node_modules/zod/src/v4/core/tests/locales/tr.test.ts +69 -0
- package/node_modules/zod/src/v4/core/to-json-schema.ts +977 -0
- package/node_modules/zod/src/v4/core/util.ts +775 -0
- package/node_modules/zod/src/v4/core/versions.ts +5 -0
- package/node_modules/zod/src/v4/core/zsf.ts +323 -0
- package/node_modules/zod/src/v4/index.ts +4 -0
- package/node_modules/zod/src/v4/locales/ar.ts +125 -0
- package/node_modules/zod/src/v4/locales/az.ts +121 -0
- package/node_modules/zod/src/v4/locales/be.ts +184 -0
- package/node_modules/zod/src/v4/locales/ca.ts +127 -0
- package/node_modules/zod/src/v4/locales/cs.ts +142 -0
- package/node_modules/zod/src/v4/locales/de.ts +124 -0
- package/node_modules/zod/src/v4/locales/en.ts +127 -0
- package/node_modules/zod/src/v4/locales/eo.ts +125 -0
- package/node_modules/zod/src/v4/locales/es.ts +125 -0
- package/node_modules/zod/src/v4/locales/fa.ts +134 -0
- package/node_modules/zod/src/v4/locales/fi.ts +131 -0
- package/node_modules/zod/src/v4/locales/fr-CA.ts +126 -0
- package/node_modules/zod/src/v4/locales/fr.ts +124 -0
- package/node_modules/zod/src/v4/locales/he.ts +125 -0
- package/node_modules/zod/src/v4/locales/hu.ts +126 -0
- package/node_modules/zod/src/v4/locales/id.ts +125 -0
- package/node_modules/zod/src/v4/locales/index.ts +39 -0
- package/node_modules/zod/src/v4/locales/it.ts +125 -0
- package/node_modules/zod/src/v4/locales/ja.ts +122 -0
- package/node_modules/zod/src/v4/locales/kh.ts +126 -0
- package/node_modules/zod/src/v4/locales/ko.ts +131 -0
- package/node_modules/zod/src/v4/locales/mk.ts +127 -0
- package/node_modules/zod/src/v4/locales/ms.ts +124 -0
- package/node_modules/zod/src/v4/locales/nl.ts +126 -0
- package/node_modules/zod/src/v4/locales/no.ts +124 -0
- package/node_modules/zod/src/v4/locales/ota.ts +125 -0
- package/node_modules/zod/src/v4/locales/pl.ts +126 -0
- package/node_modules/zod/src/v4/locales/ps.ts +133 -0
- package/node_modules/zod/src/v4/locales/pt.ts +123 -0
- package/node_modules/zod/src/v4/locales/ru.ts +184 -0
- package/node_modules/zod/src/v4/locales/sl.ts +126 -0
- package/node_modules/zod/src/v4/locales/sv.ts +127 -0
- package/node_modules/zod/src/v4/locales/ta.ts +125 -0
- package/node_modules/zod/src/v4/locales/th.ts +126 -0
- package/node_modules/zod/src/v4/locales/tr.ts +121 -0
- package/node_modules/zod/src/v4/locales/ua.ts +126 -0
- package/node_modules/zod/src/v4/locales/ur.ts +126 -0
- package/node_modules/zod/src/v4/locales/vi.ts +125 -0
- package/node_modules/zod/src/v4/locales/zh-CN.ts +123 -0
- package/node_modules/zod/src/v4/locales/zh-TW.ts +125 -0
- package/node_modules/zod/src/v4/mini/checks.ts +32 -0
- package/node_modules/zod/src/v4/mini/coerce.ts +22 -0
- package/node_modules/zod/src/v4/mini/external.ts +40 -0
- package/node_modules/zod/src/v4/mini/index.ts +3 -0
- package/node_modules/zod/src/v4/mini/iso.ts +62 -0
- package/node_modules/zod/src/v4/mini/parse.ts +1 -0
- package/node_modules/zod/src/v4/mini/schemas.ts +1579 -0
- package/node_modules/zod/src/v4/mini/tests/assignability.test.ts +129 -0
- package/node_modules/zod/src/v4/mini/tests/brand.test.ts +51 -0
- package/node_modules/zod/src/v4/mini/tests/checks.test.ts +144 -0
- package/node_modules/zod/src/v4/mini/tests/computed.test.ts +36 -0
- package/node_modules/zod/src/v4/mini/tests/error.test.ts +22 -0
- package/node_modules/zod/src/v4/mini/tests/functions.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/index.test.ts +871 -0
- package/node_modules/zod/src/v4/mini/tests/number.test.ts +95 -0
- package/node_modules/zod/src/v4/mini/tests/object.test.ts +185 -0
- package/node_modules/zod/src/v4/mini/tests/prototypes.test.ts +43 -0
- package/node_modules/zod/src/v4/mini/tests/recursive-types.test.ts +275 -0
- package/node_modules/zod/src/v4/mini/tests/string.test.ts +299 -0
- package/node_modules/zod/src/v4-mini/index.ts +1 -0
- package/node_modules/zod/v3/ZodError.cjs +138 -0
- package/node_modules/zod/v3/ZodError.d.cts +164 -0
- package/node_modules/zod/v3/ZodError.d.ts +164 -0
- package/node_modules/zod/v3/ZodError.js +133 -0
- package/node_modules/zod/v3/errors.cjs +17 -0
- package/node_modules/zod/v3/errors.d.cts +5 -0
- package/node_modules/zod/v3/errors.d.ts +5 -0
- package/node_modules/zod/v3/errors.js +9 -0
- package/node_modules/zod/v3/external.cjs +22 -0
- package/node_modules/zod/v3/external.d.cts +6 -0
- package/node_modules/zod/v3/external.d.ts +6 -0
- package/node_modules/zod/v3/external.js +6 -0
- package/node_modules/zod/v3/helpers/enumUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/enumUtil.js +1 -0
- package/node_modules/zod/v3/helpers/errorUtil.cjs +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.cts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.d.ts +9 -0
- package/node_modules/zod/v3/helpers/errorUtil.js +6 -0
- package/node_modules/zod/v3/helpers/parseUtil.cjs +124 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.cts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.d.ts +78 -0
- package/node_modules/zod/v3/helpers/parseUtil.js +109 -0
- package/node_modules/zod/v3/helpers/partialUtil.cjs +2 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.cts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.d.ts +8 -0
- package/node_modules/zod/v3/helpers/partialUtil.js +1 -0
- package/node_modules/zod/v3/helpers/typeAliases.cjs +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.cts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.d.ts +2 -0
- package/node_modules/zod/v3/helpers/typeAliases.js +1 -0
- package/node_modules/zod/v3/helpers/util.cjs +137 -0
- package/node_modules/zod/v3/helpers/util.d.cts +85 -0
- package/node_modules/zod/v3/helpers/util.d.ts +85 -0
- package/node_modules/zod/v3/helpers/util.js +133 -0
- package/node_modules/zod/v3/index.cjs +33 -0
- package/node_modules/zod/v3/index.d.cts +4 -0
- package/node_modules/zod/v3/index.d.ts +4 -0
- package/node_modules/zod/v3/index.js +4 -0
- package/node_modules/zod/v3/locales/en.cjs +111 -0
- package/node_modules/zod/v3/locales/en.d.cts +3 -0
- package/node_modules/zod/v3/locales/en.d.ts +3 -0
- package/node_modules/zod/v3/locales/en.js +109 -0
- package/node_modules/zod/v3/standard-schema.cjs +2 -0
- package/node_modules/zod/v3/standard-schema.d.cts +102 -0
- package/node_modules/zod/v3/standard-schema.d.ts +102 -0
- package/node_modules/zod/v3/standard-schema.js +1 -0
- package/node_modules/zod/v3/types.cjs +3775 -0
- package/node_modules/zod/v3/types.d.cts +1031 -0
- package/node_modules/zod/v3/types.d.ts +1031 -0
- package/node_modules/zod/v3/types.js +3693 -0
- package/node_modules/zod/v4/classic/checks.cjs +32 -0
- package/node_modules/zod/v4/classic/checks.d.cts +1 -0
- package/node_modules/zod/v4/classic/checks.d.ts +1 -0
- package/node_modules/zod/v4/classic/checks.js +1 -0
- package/node_modules/zod/v4/classic/coerce.cjs +47 -0
- package/node_modules/zod/v4/classic/coerce.d.cts +17 -0
- package/node_modules/zod/v4/classic/coerce.d.ts +17 -0
- package/node_modules/zod/v4/classic/coerce.js +17 -0
- package/node_modules/zod/v4/classic/compat.cjs +57 -0
- package/node_modules/zod/v4/classic/compat.d.cts +46 -0
- package/node_modules/zod/v4/classic/compat.d.ts +46 -0
- package/node_modules/zod/v4/classic/compat.js +27 -0
- package/node_modules/zod/v4/classic/errors.cjs +67 -0
- package/node_modules/zod/v4/classic/errors.d.cts +30 -0
- package/node_modules/zod/v4/classic/errors.d.ts +30 -0
- package/node_modules/zod/v4/classic/errors.js +41 -0
- package/node_modules/zod/v4/classic/external.cjs +70 -0
- package/node_modules/zod/v4/classic/external.d.cts +13 -0
- package/node_modules/zod/v4/classic/external.d.ts +13 -0
- package/node_modules/zod/v4/classic/external.js +18 -0
- package/node_modules/zod/v4/classic/index.cjs +33 -0
- package/node_modules/zod/v4/classic/index.d.cts +4 -0
- package/node_modules/zod/v4/classic/index.d.ts +4 -0
- package/node_modules/zod/v4/classic/index.js +4 -0
- package/node_modules/zod/v4/classic/iso.cjs +60 -0
- package/node_modules/zod/v4/classic/iso.d.cts +22 -0
- package/node_modules/zod/v4/classic/iso.d.ts +22 -0
- package/node_modules/zod/v4/classic/iso.js +30 -0
- package/node_modules/zod/v4/classic/parse.cjs +32 -0
- package/node_modules/zod/v4/classic/parse.d.cts +23 -0
- package/node_modules/zod/v4/classic/parse.d.ts +23 -0
- package/node_modules/zod/v4/classic/parse.js +6 -0
- package/node_modules/zod/v4/classic/schemas.cjs +1109 -0
- package/node_modules/zod/v4/classic/schemas.d.cts +630 -0
- package/node_modules/zod/v4/classic/schemas.d.ts +630 -0
- package/node_modules/zod/v4/classic/schemas.js +1006 -0
- package/node_modules/zod/v4/core/api.cjs +1039 -0
- package/node_modules/zod/v4/core/api.d.cts +284 -0
- package/node_modules/zod/v4/core/api.d.ts +284 -0
- package/node_modules/zod/v4/core/api.js +906 -0
- package/node_modules/zod/v4/core/checks.cjs +591 -0
- package/node_modules/zod/v4/core/checks.d.cts +278 -0
- package/node_modules/zod/v4/core/checks.d.ts +278 -0
- package/node_modules/zod/v4/core/checks.js +565 -0
- package/node_modules/zod/v4/core/core.cjs +67 -0
- package/node_modules/zod/v4/core/core.d.cts +49 -0
- package/node_modules/zod/v4/core/core.d.ts +49 -0
- package/node_modules/zod/v4/core/core.js +61 -0
- package/node_modules/zod/v4/core/doc.cjs +39 -0
- package/node_modules/zod/v4/core/doc.d.cts +14 -0
- package/node_modules/zod/v4/core/doc.d.ts +14 -0
- package/node_modules/zod/v4/core/doc.js +35 -0
- package/node_modules/zod/v4/core/errors.cjs +226 -0
- package/node_modules/zod/v4/core/errors.d.cts +208 -0
- package/node_modules/zod/v4/core/errors.d.ts +208 -0
- package/node_modules/zod/v4/core/errors.js +195 -0
- package/node_modules/zod/v4/core/function.cjs +102 -0
- package/node_modules/zod/v4/core/function.d.cts +52 -0
- package/node_modules/zod/v4/core/function.d.ts +52 -0
- package/node_modules/zod/v4/core/function.js +75 -0
- package/node_modules/zod/v4/core/index.cjs +44 -0
- package/node_modules/zod/v4/core/index.d.cts +15 -0
- package/node_modules/zod/v4/core/index.d.ts +15 -0
- package/node_modules/zod/v4/core/index.js +15 -0
- package/node_modules/zod/v4/core/json-schema.cjs +2 -0
- package/node_modules/zod/v4/core/json-schema.d.cts +87 -0
- package/node_modules/zod/v4/core/json-schema.d.ts +87 -0
- package/node_modules/zod/v4/core/json-schema.js +1 -0
- package/node_modules/zod/v4/core/parse.cjs +87 -0
- package/node_modules/zod/v4/core/parse.d.cts +25 -0
- package/node_modules/zod/v4/core/parse.d.ts +25 -0
- package/node_modules/zod/v4/core/parse.js +57 -0
- package/node_modules/zod/v4/core/regexes.cjs +103 -0
- package/node_modules/zod/v4/core/regexes.d.cts +62 -0
- package/node_modules/zod/v4/core/regexes.d.ts +62 -0
- package/node_modules/zod/v4/core/regexes.js +95 -0
- package/node_modules/zod/v4/core/registries.cjs +56 -0
- package/node_modules/zod/v4/core/registries.d.cts +35 -0
- package/node_modules/zod/v4/core/registries.d.ts +35 -0
- package/node_modules/zod/v4/core/registries.js +51 -0
- package/node_modules/zod/v4/core/schemas.cjs +1748 -0
- package/node_modules/zod/v4/core/schemas.d.cts +1041 -0
- package/node_modules/zod/v4/core/schemas.d.ts +1041 -0
- package/node_modules/zod/v4/core/schemas.js +1717 -0
- package/node_modules/zod/v4/core/standard-schema.cjs +2 -0
- package/node_modules/zod/v4/core/standard-schema.d.cts +55 -0
- package/node_modules/zod/v4/core/standard-schema.d.ts +55 -0
- package/node_modules/zod/v4/core/standard-schema.js +1 -0
- package/node_modules/zod/v4/core/to-json-schema.cjs +854 -0
- package/node_modules/zod/v4/core/to-json-schema.d.cts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.d.ts +88 -0
- package/node_modules/zod/v4/core/to-json-schema.js +849 -0
- package/node_modules/zod/v4/core/util.cjs +539 -0
- package/node_modules/zod/v4/core/util.d.cts +183 -0
- package/node_modules/zod/v4/core/util.d.ts +183 -0
- package/node_modules/zod/v4/core/util.js +493 -0
- package/node_modules/zod/v4/core/versions.cjs +8 -0
- package/node_modules/zod/v4/core/versions.d.cts +5 -0
- package/node_modules/zod/v4/core/versions.d.ts +5 -0
- package/node_modules/zod/v4/core/versions.js +5 -0
- package/node_modules/zod/v4/index.cjs +22 -0
- package/node_modules/zod/v4/index.d.cts +3 -0
- package/node_modules/zod/v4/index.d.ts +3 -0
- package/node_modules/zod/v4/index.js +3 -0
- package/node_modules/zod/v4/locales/ar.cjs +142 -0
- package/node_modules/zod/v4/locales/ar.d.cts +4 -0
- package/node_modules/zod/v4/locales/ar.d.ts +4 -0
- package/node_modules/zod/v4/locales/ar.js +116 -0
- package/node_modules/zod/v4/locales/az.cjs +141 -0
- package/node_modules/zod/v4/locales/az.d.cts +4 -0
- package/node_modules/zod/v4/locales/az.d.ts +4 -0
- package/node_modules/zod/v4/locales/az.js +115 -0
- package/node_modules/zod/v4/locales/be.cjs +190 -0
- package/node_modules/zod/v4/locales/be.d.cts +4 -0
- package/node_modules/zod/v4/locales/be.d.ts +4 -0
- package/node_modules/zod/v4/locales/be.js +164 -0
- package/node_modules/zod/v4/locales/ca.cjs +144 -0
- package/node_modules/zod/v4/locales/ca.d.cts +4 -0
- package/node_modules/zod/v4/locales/ca.d.ts +4 -0
- package/node_modules/zod/v4/locales/ca.js +118 -0
- package/node_modules/zod/v4/locales/cs.cjs +161 -0
- package/node_modules/zod/v4/locales/cs.d.cts +4 -0
- package/node_modules/zod/v4/locales/cs.d.ts +4 -0
- package/node_modules/zod/v4/locales/cs.js +135 -0
- package/node_modules/zod/v4/locales/de.cjs +142 -0
- package/node_modules/zod/v4/locales/de.d.cts +4 -0
- package/node_modules/zod/v4/locales/de.d.ts +4 -0
- package/node_modules/zod/v4/locales/de.js +116 -0
- package/node_modules/zod/v4/locales/en.cjs +145 -0
- package/node_modules/zod/v4/locales/en.d.cts +5 -0
- package/node_modules/zod/v4/locales/en.d.ts +5 -0
- package/node_modules/zod/v4/locales/en.js +117 -0
- package/node_modules/zod/v4/locales/eo.cjs +144 -0
- package/node_modules/zod/v4/locales/eo.d.cts +5 -0
- package/node_modules/zod/v4/locales/eo.d.ts +5 -0
- package/node_modules/zod/v4/locales/eo.js +116 -0
- package/node_modules/zod/v4/locales/es.cjs +143 -0
- package/node_modules/zod/v4/locales/es.d.cts +4 -0
- package/node_modules/zod/v4/locales/es.d.ts +4 -0
- package/node_modules/zod/v4/locales/es.js +117 -0
- package/node_modules/zod/v4/locales/fa.cjs +148 -0
- package/node_modules/zod/v4/locales/fa.d.cts +4 -0
- package/node_modules/zod/v4/locales/fa.d.ts +4 -0
- package/node_modules/zod/v4/locales/fa.js +122 -0
- package/node_modules/zod/v4/locales/fi.cjs +148 -0
- package/node_modules/zod/v4/locales/fi.d.cts +4 -0
- package/node_modules/zod/v4/locales/fi.d.ts +4 -0
- package/node_modules/zod/v4/locales/fi.js +122 -0
- package/node_modules/zod/v4/locales/fr-CA.cjs +143 -0
- package/node_modules/zod/v4/locales/fr-CA.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr-CA.js +117 -0
- package/node_modules/zod/v4/locales/fr.cjs +142 -0
- package/node_modules/zod/v4/locales/fr.d.cts +4 -0
- package/node_modules/zod/v4/locales/fr.d.ts +4 -0
- package/node_modules/zod/v4/locales/fr.js +116 -0
- package/node_modules/zod/v4/locales/he.cjs +143 -0
- package/node_modules/zod/v4/locales/he.d.cts +4 -0
- package/node_modules/zod/v4/locales/he.d.ts +4 -0
- package/node_modules/zod/v4/locales/he.js +117 -0
- package/node_modules/zod/v4/locales/hu.cjs +143 -0
- package/node_modules/zod/v4/locales/hu.d.cts +4 -0
- package/node_modules/zod/v4/locales/hu.d.ts +4 -0
- package/node_modules/zod/v4/locales/hu.js +117 -0
- package/node_modules/zod/v4/locales/id.cjs +142 -0
- package/node_modules/zod/v4/locales/id.d.cts +4 -0
- package/node_modules/zod/v4/locales/id.d.ts +4 -0
- package/node_modules/zod/v4/locales/id.js +116 -0
- package/node_modules/zod/v4/locales/index.cjs +84 -0
- package/node_modules/zod/v4/locales/index.d.cts +39 -0
- package/node_modules/zod/v4/locales/index.d.ts +39 -0
- package/node_modules/zod/v4/locales/index.js +39 -0
- package/node_modules/zod/v4/locales/it.cjs +143 -0
- package/node_modules/zod/v4/locales/it.d.cts +4 -0
- package/node_modules/zod/v4/locales/it.d.ts +4 -0
- package/node_modules/zod/v4/locales/it.js +117 -0
- package/node_modules/zod/v4/locales/ja.cjs +141 -0
- package/node_modules/zod/v4/locales/ja.d.cts +4 -0
- package/node_modules/zod/v4/locales/ja.d.ts +4 -0
- package/node_modules/zod/v4/locales/ja.js +115 -0
- package/node_modules/zod/v4/locales/kh.cjs +143 -0
- package/node_modules/zod/v4/locales/kh.d.cts +4 -0
- package/node_modules/zod/v4/locales/kh.d.ts +4 -0
- package/node_modules/zod/v4/locales/kh.js +117 -0
- package/node_modules/zod/v4/locales/ko.cjs +147 -0
- package/node_modules/zod/v4/locales/ko.d.cts +4 -0
- package/node_modules/zod/v4/locales/ko.d.ts +4 -0
- package/node_modules/zod/v4/locales/ko.js +121 -0
- package/node_modules/zod/v4/locales/mk.cjs +144 -0
- package/node_modules/zod/v4/locales/mk.d.cts +4 -0
- package/node_modules/zod/v4/locales/mk.d.ts +4 -0
- package/node_modules/zod/v4/locales/mk.js +118 -0
- package/node_modules/zod/v4/locales/ms.cjs +142 -0
- package/node_modules/zod/v4/locales/ms.d.cts +4 -0
- package/node_modules/zod/v4/locales/ms.d.ts +4 -0
- package/node_modules/zod/v4/locales/ms.js +116 -0
- package/node_modules/zod/v4/locales/nl.cjs +143 -0
- package/node_modules/zod/v4/locales/nl.d.cts +4 -0
- package/node_modules/zod/v4/locales/nl.d.ts +4 -0
- package/node_modules/zod/v4/locales/nl.js +117 -0
- package/node_modules/zod/v4/locales/no.cjs +142 -0
- package/node_modules/zod/v4/locales/no.d.cts +4 -0
- package/node_modules/zod/v4/locales/no.d.ts +4 -0
- package/node_modules/zod/v4/locales/no.js +116 -0
- package/node_modules/zod/v4/locales/ota.cjs +143 -0
- package/node_modules/zod/v4/locales/ota.d.cts +4 -0
- package/node_modules/zod/v4/locales/ota.d.ts +4 -0
- package/node_modules/zod/v4/locales/ota.js +117 -0
- package/node_modules/zod/v4/locales/pl.cjs +143 -0
- package/node_modules/zod/v4/locales/pl.d.cts +4 -0
- package/node_modules/zod/v4/locales/pl.d.ts +4 -0
- package/node_modules/zod/v4/locales/pl.js +117 -0
- package/node_modules/zod/v4/locales/ps.cjs +148 -0
- package/node_modules/zod/v4/locales/ps.d.cts +4 -0
- package/node_modules/zod/v4/locales/ps.d.ts +4 -0
- package/node_modules/zod/v4/locales/ps.js +122 -0
- package/node_modules/zod/v4/locales/pt.cjs +142 -0
- package/node_modules/zod/v4/locales/pt.d.cts +4 -0
- package/node_modules/zod/v4/locales/pt.d.ts +4 -0
- package/node_modules/zod/v4/locales/pt.js +116 -0
- package/node_modules/zod/v4/locales/ru.cjs +190 -0
- package/node_modules/zod/v4/locales/ru.d.cts +4 -0
- package/node_modules/zod/v4/locales/ru.d.ts +4 -0
- package/node_modules/zod/v4/locales/ru.js +164 -0
- package/node_modules/zod/v4/locales/sl.cjs +143 -0
- package/node_modules/zod/v4/locales/sl.d.cts +4 -0
- package/node_modules/zod/v4/locales/sl.d.ts +4 -0
- package/node_modules/zod/v4/locales/sl.js +117 -0
- package/node_modules/zod/v4/locales/sv.cjs +144 -0
- package/node_modules/zod/v4/locales/sv.d.cts +4 -0
- package/node_modules/zod/v4/locales/sv.d.ts +4 -0
- package/node_modules/zod/v4/locales/sv.js +118 -0
- package/node_modules/zod/v4/locales/ta.cjs +143 -0
- package/node_modules/zod/v4/locales/ta.d.cts +4 -0
- package/node_modules/zod/v4/locales/ta.d.ts +4 -0
- package/node_modules/zod/v4/locales/ta.js +117 -0
- package/node_modules/zod/v4/locales/th.cjs +143 -0
- package/node_modules/zod/v4/locales/th.d.cts +4 -0
- package/node_modules/zod/v4/locales/th.d.ts +4 -0
- package/node_modules/zod/v4/locales/th.js +117 -0
- package/node_modules/zod/v4/locales/tr.cjs +143 -0
- package/node_modules/zod/v4/locales/tr.d.cts +5 -0
- package/node_modules/zod/v4/locales/tr.d.ts +5 -0
- package/node_modules/zod/v4/locales/tr.js +115 -0
- package/node_modules/zod/v4/locales/ua.cjs +143 -0
- package/node_modules/zod/v4/locales/ua.d.cts +4 -0
- package/node_modules/zod/v4/locales/ua.d.ts +4 -0
- package/node_modules/zod/v4/locales/ua.js +117 -0
- package/node_modules/zod/v4/locales/ur.cjs +143 -0
- package/node_modules/zod/v4/locales/ur.d.cts +4 -0
- package/node_modules/zod/v4/locales/ur.d.ts +4 -0
- package/node_modules/zod/v4/locales/ur.js +117 -0
- package/node_modules/zod/v4/locales/vi.cjs +142 -0
- package/node_modules/zod/v4/locales/vi.d.cts +4 -0
- package/node_modules/zod/v4/locales/vi.d.ts +4 -0
- package/node_modules/zod/v4/locales/vi.js +116 -0
- package/node_modules/zod/v4/locales/zh-CN.cjs +142 -0
- package/node_modules/zod/v4/locales/zh-CN.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-CN.js +116 -0
- package/node_modules/zod/v4/locales/zh-TW.cjs +143 -0
- package/node_modules/zod/v4/locales/zh-TW.d.cts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.d.ts +4 -0
- package/node_modules/zod/v4/locales/zh-TW.js +117 -0
- package/node_modules/zod/v4/mini/checks.cjs +34 -0
- package/node_modules/zod/v4/mini/checks.d.cts +1 -0
- package/node_modules/zod/v4/mini/checks.d.ts +1 -0
- package/node_modules/zod/v4/mini/checks.js +1 -0
- package/node_modules/zod/v4/mini/coerce.cjs +47 -0
- package/node_modules/zod/v4/mini/coerce.d.cts +7 -0
- package/node_modules/zod/v4/mini/coerce.d.ts +7 -0
- package/node_modules/zod/v4/mini/coerce.js +17 -0
- package/node_modules/zod/v4/mini/external.cjs +62 -0
- package/node_modules/zod/v4/mini/external.d.cts +11 -0
- package/node_modules/zod/v4/mini/external.d.ts +11 -0
- package/node_modules/zod/v4/mini/external.js +13 -0
- package/node_modules/zod/v4/mini/index.cjs +32 -0
- package/node_modules/zod/v4/mini/index.d.cts +3 -0
- package/node_modules/zod/v4/mini/index.d.ts +3 -0
- package/node_modules/zod/v4/mini/index.js +3 -0
- package/node_modules/zod/v4/mini/iso.cjs +60 -0
- package/node_modules/zod/v4/mini/iso.d.cts +22 -0
- package/node_modules/zod/v4/mini/iso.d.ts +22 -0
- package/node_modules/zod/v4/mini/iso.js +30 -0
- package/node_modules/zod/v4/mini/parse.cjs +8 -0
- package/node_modules/zod/v4/mini/parse.d.cts +1 -0
- package/node_modules/zod/v4/mini/parse.d.ts +1 -0
- package/node_modules/zod/v4/mini/parse.js +1 -0
- package/node_modules/zod/v4/mini/schemas.cjs +839 -0
- package/node_modules/zod/v4/mini/schemas.d.cts +356 -0
- package/node_modules/zod/v4/mini/schemas.d.ts +356 -0
- package/node_modules/zod/v4/mini/schemas.js +732 -0
- package/node_modules/zod/v4-mini/index.cjs +17 -0
- package/node_modules/zod/v4-mini/index.d.cts +1 -0
- package/node_modules/zod/v4-mini/index.d.ts +1 -0
- package/node_modules/zod/v4-mini/index.js +1 -0
- package/package.json +11 -4
- package/src/commands/init.js +25 -0
- package/src/commands/sync.js +38 -4
- package/src/lib/browser-auth.js +7 -3
- package/src/lib/project-usage-purge.js +100 -0
- package/src/lib/rollout.js +588 -19
- package/src/lib/uploader.js +106 -8
- package/src/lib/vibeusage-api.js +2 -2
- package/src/lib/vibeusage-public-repo.js +88 -0
|
@@ -0,0 +1,854 @@
|
|
|
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 };
|