@dotdo/do 0.1.0
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 +400 -0
- package/dist/ai/embeddings.d.ts +129 -0
- package/dist/ai/embeddings.d.ts.map +1 -0
- package/dist/ai/embeddings.js +217 -0
- package/dist/ai/embeddings.js.map +1 -0
- package/dist/ai/gateway.d.ts +139 -0
- package/dist/ai/gateway.d.ts.map +1 -0
- package/dist/ai/gateway.js +179 -0
- package/dist/ai/gateway.js.map +1 -0
- package/dist/ai/image.d.ts +140 -0
- package/dist/ai/image.d.ts.map +1 -0
- package/dist/ai/image.js +199 -0
- package/dist/ai/image.js.map +1 -0
- package/dist/ai/index.d.ts +98 -0
- package/dist/ai/index.d.ts.map +1 -0
- package/dist/ai/index.js +223 -0
- package/dist/ai/index.js.map +1 -0
- package/dist/ai/models.d.ts +81 -0
- package/dist/ai/models.d.ts.map +1 -0
- package/dist/ai/models.js +537 -0
- package/dist/ai/models.js.map +1 -0
- package/dist/ai/text.d.ts +176 -0
- package/dist/ai/text.d.ts.map +1 -0
- package/dist/ai/text.js +253 -0
- package/dist/ai/text.js.map +1 -0
- package/dist/ai/voice/agents.d.ts +224 -0
- package/dist/ai/voice/agents.d.ts.map +1 -0
- package/dist/ai/voice/agents.js +375 -0
- package/dist/ai/voice/agents.js.map +1 -0
- package/dist/ai/voice/campaigns.d.ts +307 -0
- package/dist/ai/voice/campaigns.d.ts.map +1 -0
- package/dist/ai/voice/campaigns.js +739 -0
- package/dist/ai/voice/campaigns.js.map +1 -0
- package/dist/ai/voice/index.d.ts +21 -0
- package/dist/ai/voice/index.d.ts.map +1 -0
- package/dist/ai/voice/index.js +42 -0
- package/dist/ai/voice/index.js.map +1 -0
- package/dist/ai/voice/providers.d.ts +283 -0
- package/dist/ai/voice/providers.d.ts.map +1 -0
- package/dist/ai/voice/providers.js +286 -0
- package/dist/ai/voice/providers.js.map +1 -0
- package/dist/ai/voice/sessions.d.ts +294 -0
- package/dist/ai/voice/sessions.d.ts.map +1 -0
- package/dist/ai/voice/sessions.js +531 -0
- package/dist/ai/voice/sessions.js.map +1 -0
- package/dist/ai/voice/tools.d.ts +242 -0
- package/dist/ai/voice/tools.d.ts.map +1 -0
- package/dist/ai/voice/tools.js +370 -0
- package/dist/ai/voice/tools.js.map +1 -0
- package/dist/ai/voice/tts.d.ts +173 -0
- package/dist/ai/voice/tts.d.ts.map +1 -0
- package/dist/ai/voice/tts.js +252 -0
- package/dist/ai/voice/tts.js.map +1 -0
- package/dist/ai/voice/webrtc.d.ts +228 -0
- package/dist/ai/voice/webrtc.d.ts.map +1 -0
- package/dist/ai/voice/webrtc.js +372 -0
- package/dist/ai/voice/webrtc.js.map +1 -0
- package/dist/api/index.d.ts +103 -0
- package/dist/api/index.d.ts.map +1 -0
- package/dist/api/index.js +191 -0
- package/dist/api/index.js.map +1 -0
- package/dist/api/mcp/handlers.d.ts +25 -0
- package/dist/api/mcp/handlers.d.ts.map +1 -0
- package/dist/api/mcp/handlers.js +422 -0
- package/dist/api/mcp/handlers.js.map +1 -0
- package/dist/api/mcp/index.d.ts +113 -0
- package/dist/api/mcp/index.d.ts.map +1 -0
- package/dist/api/mcp/index.js +141 -0
- package/dist/api/mcp/index.js.map +1 -0
- package/dist/api/middleware/auth.d.ts +65 -0
- package/dist/api/middleware/auth.d.ts.map +1 -0
- package/dist/api/middleware/auth.js +271 -0
- package/dist/api/middleware/auth.js.map +1 -0
- package/dist/api/middleware/cors.d.ts +62 -0
- package/dist/api/middleware/cors.d.ts.map +1 -0
- package/dist/api/middleware/cors.js +225 -0
- package/dist/api/middleware/cors.js.map +1 -0
- package/dist/api/middleware/index.d.ts +60 -0
- package/dist/api/middleware/index.d.ts.map +1 -0
- package/dist/api/middleware/index.js +175 -0
- package/dist/api/middleware/index.js.map +1 -0
- package/dist/api/middleware/rateLimit.d.ts +84 -0
- package/dist/api/middleware/rateLimit.d.ts.map +1 -0
- package/dist/api/middleware/rateLimit.js +321 -0
- package/dist/api/middleware/rateLimit.js.map +1 -0
- package/dist/api/routes/ai.d.ts +17 -0
- package/dist/api/routes/ai.d.ts.map +1 -0
- package/dist/api/routes/ai.js +430 -0
- package/dist/api/routes/ai.js.map +1 -0
- package/dist/api/routes/do.d.ts +17 -0
- package/dist/api/routes/do.d.ts.map +1 -0
- package/dist/api/routes/do.js +458 -0
- package/dist/api/routes/do.js.map +1 -0
- package/dist/api/routes/functions.d.ts +111 -0
- package/dist/api/routes/functions.d.ts.map +1 -0
- package/dist/api/routes/functions.js +548 -0
- package/dist/api/routes/functions.js.map +1 -0
- package/dist/api/routes/health.d.ts +16 -0
- package/dist/api/routes/health.d.ts.map +1 -0
- package/dist/api/routes/health.js +163 -0
- package/dist/api/routes/health.js.map +1 -0
- package/dist/api/routes/index.d.ts +41 -0
- package/dist/api/routes/index.d.ts.map +1 -0
- package/dist/api/routes/index.js +275 -0
- package/dist/api/routes/index.js.map +1 -0
- package/dist/api/routes/nouns.d.ts +26 -0
- package/dist/api/routes/nouns.d.ts.map +1 -0
- package/dist/api/routes/nouns.js +456 -0
- package/dist/api/routes/nouns.js.map +1 -0
- package/dist/api/routes/orgs.d.ts +17 -0
- package/dist/api/routes/orgs.d.ts.map +1 -0
- package/dist/api/routes/orgs.js +560 -0
- package/dist/api/routes/orgs.js.map +1 -0
- package/dist/api/routes/relationships.d.ts +30 -0
- package/dist/api/routes/relationships.d.ts.map +1 -0
- package/dist/api/routes/relationships.js +360 -0
- package/dist/api/routes/relationships.js.map +1 -0
- package/dist/api/routes/roles.d.ts +17 -0
- package/dist/api/routes/roles.d.ts.map +1 -0
- package/dist/api/routes/roles.js +721 -0
- package/dist/api/routes/roles.js.map +1 -0
- package/dist/api/routes/things.d.ts +27 -0
- package/dist/api/routes/things.d.ts.map +1 -0
- package/dist/api/routes/things.js +568 -0
- package/dist/api/routes/things.js.map +1 -0
- package/dist/api/routes/users.d.ts +17 -0
- package/dist/api/routes/users.d.ts.map +1 -0
- package/dist/api/routes/users.js +401 -0
- package/dist/api/routes/users.js.map +1 -0
- package/dist/api/routes/verbs.d.ts +31 -0
- package/dist/api/routes/verbs.d.ts.map +1 -0
- package/dist/api/routes/verbs.js +505 -0
- package/dist/api/routes/verbs.js.map +1 -0
- package/dist/api/routes/workflows.d.ts +44 -0
- package/dist/api/routes/workflows.d.ts.map +1 -0
- package/dist/api/routes/workflows.js +521 -0
- package/dist/api/routes/workflows.js.map +1 -0
- package/dist/api/types.d.ts +370 -0
- package/dist/api/types.d.ts.map +1 -0
- package/dist/api/types.js +11 -0
- package/dist/api/types.js.map +1 -0
- package/dist/db/cdc/events.d.ts +201 -0
- package/dist/db/cdc/events.d.ts.map +1 -0
- package/dist/db/cdc/events.js +271 -0
- package/dist/db/cdc/events.js.map +1 -0
- package/dist/db/cdc/index.d.ts +13 -0
- package/dist/db/cdc/index.d.ts.map +1 -0
- package/dist/db/cdc/index.js +16 -0
- package/dist/db/cdc/index.js.map +1 -0
- package/dist/db/cdc/replay.d.ts +388 -0
- package/dist/db/cdc/replay.d.ts.map +1 -0
- package/dist/db/cdc/replay.js +469 -0
- package/dist/db/cdc/replay.js.map +1 -0
- package/dist/db/cdc/storage.d.ts +567 -0
- package/dist/db/cdc/storage.d.ts.map +1 -0
- package/dist/db/cdc/storage.js +856 -0
- package/dist/db/cdc/storage.js.map +1 -0
- package/dist/db/cdc/streaming.d.ts +459 -0
- package/dist/db/cdc/streaming.d.ts.map +1 -0
- package/dist/db/cdc/streaming.js +636 -0
- package/dist/db/cdc/streaming.js.map +1 -0
- package/dist/db/collections/actions.d.ts +440 -0
- package/dist/db/collections/actions.d.ts.map +1 -0
- package/dist/db/collections/actions.js +631 -0
- package/dist/db/collections/actions.js.map +1 -0
- package/dist/db/collections/base.d.ts +342 -0
- package/dist/db/collections/base.d.ts.map +1 -0
- package/dist/db/collections/base.js +510 -0
- package/dist/db/collections/base.js.map +1 -0
- package/dist/db/collections/index.d.ts +50 -0
- package/dist/db/collections/index.d.ts.map +1 -0
- package/dist/db/collections/index.js +48 -0
- package/dist/db/collections/index.js.map +1 -0
- package/dist/db/collections/nouns.d.ts +260 -0
- package/dist/db/collections/nouns.d.ts.map +1 -0
- package/dist/db/collections/nouns.js +273 -0
- package/dist/db/collections/nouns.js.map +1 -0
- package/dist/db/collections/relationships.d.ts +484 -0
- package/dist/db/collections/relationships.d.ts.map +1 -0
- package/dist/db/collections/relationships.js +815 -0
- package/dist/db/collections/relationships.js.map +1 -0
- package/dist/db/collections/things.d.ts +439 -0
- package/dist/db/collections/things.d.ts.map +1 -0
- package/dist/db/collections/things.js +603 -0
- package/dist/db/collections/things.js.map +1 -0
- package/dist/db/collections/verbs.d.ts +308 -0
- package/dist/db/collections/verbs.d.ts.map +1 -0
- package/dist/db/collections/verbs.js +480 -0
- package/dist/db/collections/verbs.js.map +1 -0
- package/dist/db/index.d.ts +14 -0
- package/dist/db/index.d.ts.map +1 -0
- package/dist/db/index.js +23 -0
- package/dist/db/index.js.map +1 -0
- package/dist/db/storage/cold.d.ts +313 -0
- package/dist/db/storage/cold.d.ts.map +1 -0
- package/dist/db/storage/cold.js +319 -0
- package/dist/db/storage/cold.js.map +1 -0
- package/dist/db/storage/hot.d.ts +340 -0
- package/dist/db/storage/hot.d.ts.map +1 -0
- package/dist/db/storage/hot.js +333 -0
- package/dist/db/storage/hot.js.map +1 -0
- package/dist/db/storage/index.d.ts +242 -0
- package/dist/db/storage/index.d.ts.map +1 -0
- package/dist/db/storage/index.js +109 -0
- package/dist/db/storage/index.js.map +1 -0
- package/dist/db/storage/snapshots.d.ts +342 -0
- package/dist/db/storage/snapshots.d.ts.map +1 -0
- package/dist/db/storage/snapshots.js +298 -0
- package/dist/db/storage/snapshots.js.map +1 -0
- package/dist/db/storage/vortex.d.ts +324 -0
- package/dist/db/storage/vortex.d.ts.map +1 -0
- package/dist/db/storage/vortex.js +365 -0
- package/dist/db/storage/vortex.js.map +1 -0
- package/dist/db/storage/warm.d.ts +306 -0
- package/dist/db/storage/warm.d.ts.map +1 -0
- package/dist/db/storage/warm.js +339 -0
- package/dist/db/storage/warm.js.map +1 -0
- package/dist/do/DigitalObject.d.ts +595 -0
- package/dist/do/DigitalObject.d.ts.map +1 -0
- package/dist/do/DigitalObject.js +971 -0
- package/dist/do/DigitalObject.js.map +1 -0
- package/dist/do/business/financial/accounting.d.ts +436 -0
- package/dist/do/business/financial/accounting.d.ts.map +1 -0
- package/dist/do/business/financial/accounting.js +476 -0
- package/dist/do/business/financial/accounting.js.map +1 -0
- package/dist/do/business/financial/index.d.ts +15 -0
- package/dist/do/business/financial/index.d.ts.map +1 -0
- package/dist/do/business/financial/index.js +20 -0
- package/dist/do/business/financial/index.js.map +1 -0
- package/dist/do/business/financial/metrics.d.ts +370 -0
- package/dist/do/business/financial/metrics.d.ts.map +1 -0
- package/dist/do/business/financial/metrics.js +376 -0
- package/dist/do/business/financial/metrics.js.map +1 -0
- package/dist/do/business/financial/payments.d.ts +397 -0
- package/dist/do/business/financial/payments.d.ts.map +1 -0
- package/dist/do/business/financial/payments.js +395 -0
- package/dist/do/business/financial/payments.js.map +1 -0
- package/dist/do/business/financial/reports.d.ts +284 -0
- package/dist/do/business/financial/reports.d.ts.map +1 -0
- package/dist/do/business/financial/reports.js +347 -0
- package/dist/do/business/financial/reports.js.map +1 -0
- package/dist/do/business/financial/stripe.d.ts +254 -0
- package/dist/do/business/financial/stripe.d.ts.map +1 -0
- package/dist/do/business/financial/stripe.js +261 -0
- package/dist/do/business/financial/stripe.js.map +1 -0
- package/dist/do/business/financial/subscriptions.d.ts +402 -0
- package/dist/do/business/financial/subscriptions.d.ts.map +1 -0
- package/dist/do/business/financial/subscriptions.js +349 -0
- package/dist/do/business/financial/subscriptions.js.map +1 -0
- package/dist/do/business/index.d.ts +9 -0
- package/dist/do/business/index.d.ts.map +1 -0
- package/dist/do/business/index.js +10 -0
- package/dist/do/business/index.js.map +1 -0
- package/dist/do/colo/followers.d.ts +194 -0
- package/dist/do/colo/followers.d.ts.map +1 -0
- package/dist/do/colo/followers.js +224 -0
- package/dist/do/colo/followers.js.map +1 -0
- package/dist/do/colo/fork.d.ts +103 -0
- package/dist/do/colo/fork.d.ts.map +1 -0
- package/dist/do/colo/fork.js +143 -0
- package/dist/do/colo/fork.js.map +1 -0
- package/dist/do/colo/index.d.ts +181 -0
- package/dist/do/colo/index.d.ts.map +1 -0
- package/dist/do/colo/index.js +145 -0
- package/dist/do/colo/index.js.map +1 -0
- package/dist/do/colo/info.d.ts +106 -0
- package/dist/do/colo/info.d.ts.map +1 -0
- package/dist/do/colo/info.js +196 -0
- package/dist/do/colo/info.js.map +1 -0
- package/dist/do/colo/migrate.d.ts +161 -0
- package/dist/do/colo/migrate.d.ts.map +1 -0
- package/dist/do/colo/migrate.js +190 -0
- package/dist/do/colo/migrate.js.map +1 -0
- package/dist/do/colo/routing.d.ts +182 -0
- package/dist/do/colo/routing.d.ts.map +1 -0
- package/dist/do/colo/routing.js +254 -0
- package/dist/do/colo/routing.js.map +1 -0
- package/dist/do/domains/dns.d.ts +269 -0
- package/dist/do/domains/dns.d.ts.map +1 -0
- package/dist/do/domains/dns.js +215 -0
- package/dist/do/domains/dns.js.map +1 -0
- package/dist/do/domains/index.d.ts +40 -0
- package/dist/do/domains/index.d.ts.map +1 -0
- package/dist/do/domains/index.js +61 -0
- package/dist/do/domains/index.js.map +1 -0
- package/dist/do/domains/routing.d.ts +263 -0
- package/dist/do/domains/routing.d.ts.map +1 -0
- package/dist/do/domains/routing.js +362 -0
- package/dist/do/domains/routing.js.map +1 -0
- package/dist/do/domains/ssl.d.ts +217 -0
- package/dist/do/domains/ssl.d.ts.map +1 -0
- package/dist/do/domains/ssl.js +231 -0
- package/dist/do/domains/ssl.js.map +1 -0
- package/dist/do/domains/subdomains.d.ts +207 -0
- package/dist/do/domains/subdomains.d.ts.map +1 -0
- package/dist/do/domains/subdomains.js +223 -0
- package/dist/do/domains/subdomains.js.map +1 -0
- package/dist/do/domains/tlds.d.ts +175 -0
- package/dist/do/domains/tlds.d.ts.map +1 -0
- package/dist/do/domains/tlds.js +188 -0
- package/dist/do/domains/tlds.js.map +1 -0
- package/dist/do/domains/validation.d.ts +164 -0
- package/dist/do/domains/validation.d.ts.map +1 -0
- package/dist/do/domains/validation.js +290 -0
- package/dist/do/domains/validation.js.map +1 -0
- package/dist/do/hibernation.d.ts +385 -0
- package/dist/do/hibernation.d.ts.map +1 -0
- package/dist/do/hibernation.js +518 -0
- package/dist/do/hibernation.js.map +1 -0
- package/dist/do/index.d.ts +19 -0
- package/dist/do/index.d.ts.map +1 -0
- package/dist/do/index.js +23 -0
- package/dist/do/index.js.map +1 -0
- package/dist/do/state.d.ts +336 -0
- package/dist/do/state.d.ts.map +1 -0
- package/dist/do/state.js +290 -0
- package/dist/do/state.js.map +1 -0
- package/dist/index.d.ts +44 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +89 -0
- package/dist/index.js.map +1 -0
- package/dist/rpc/client.d.ts +426 -0
- package/dist/rpc/client.d.ts.map +1 -0
- package/dist/rpc/client.js +826 -0
- package/dist/rpc/client.js.map +1 -0
- package/dist/rpc/index.d.ts +19 -0
- package/dist/rpc/index.d.ts.map +1 -0
- package/dist/rpc/index.js +23 -0
- package/dist/rpc/index.js.map +1 -0
- package/dist/rpc/methods.d.ts +364 -0
- package/dist/rpc/methods.d.ts.map +1 -0
- package/dist/rpc/methods.js +557 -0
- package/dist/rpc/methods.js.map +1 -0
- package/dist/rpc/protocol.d.ts +310 -0
- package/dist/rpc/protocol.d.ts.map +1 -0
- package/dist/rpc/protocol.js +672 -0
- package/dist/rpc/protocol.js.map +1 -0
- package/dist/rpc/routes.d.ts +332 -0
- package/dist/rpc/routes.d.ts.map +1 -0
- package/dist/rpc/routes.js +633 -0
- package/dist/rpc/routes.js.map +1 -0
- package/dist/rpc/server.d.ts +380 -0
- package/dist/rpc/server.d.ts.map +1 -0
- package/dist/rpc/server.js +850 -0
- package/dist/rpc/server.js.map +1 -0
- package/dist/sdk/auth.d.ts +201 -0
- package/dist/sdk/auth.d.ts.map +1 -0
- package/dist/sdk/auth.js +343 -0
- package/dist/sdk/auth.js.map +1 -0
- package/dist/sdk/client.d.ts +123 -0
- package/dist/sdk/client.d.ts.map +1 -0
- package/dist/sdk/client.js +403 -0
- package/dist/sdk/client.js.map +1 -0
- package/dist/sdk/index.d.ts +123 -0
- package/dist/sdk/index.d.ts.map +1 -0
- package/dist/sdk/index.js +230 -0
- package/dist/sdk/index.js.map +1 -0
- package/dist/sdk/rpc.d.ts +275 -0
- package/dist/sdk/rpc.d.ts.map +1 -0
- package/dist/sdk/rpc.js +249 -0
- package/dist/sdk/rpc.js.map +1 -0
- package/dist/sdk/transport.d.ts +283 -0
- package/dist/sdk/transport.d.ts.map +1 -0
- package/dist/sdk/transport.js +661 -0
- package/dist/sdk/transport.js.map +1 -0
- package/dist/sdk/types.d.ts +265 -0
- package/dist/sdk/types.d.ts.map +1 -0
- package/dist/sdk/types.js +27 -0
- package/dist/sdk/types.js.map +1 -0
- package/dist/types/ai.d.ts +533 -0
- package/dist/types/ai.d.ts.map +1 -0
- package/dist/types/ai.js +18 -0
- package/dist/types/ai.js.map +1 -0
- package/dist/types/app.d.ts +371 -0
- package/dist/types/app.d.ts.map +1 -0
- package/dist/types/app.js +151 -0
- package/dist/types/app.js.map +1 -0
- package/dist/types/business.d.ts +482 -0
- package/dist/types/business.d.ts.map +1 -0
- package/dist/types/business.js +60 -0
- package/dist/types/business.js.map +1 -0
- package/dist/types/cascade.d.ts +323 -0
- package/dist/types/cascade.d.ts.map +1 -0
- package/dist/types/cascade.js +82 -0
- package/dist/types/cascade.js.map +1 -0
- package/dist/types/collections.d.ts +704 -0
- package/dist/types/collections.d.ts.map +1 -0
- package/dist/types/collections.js +23 -0
- package/dist/types/collections.js.map +1 -0
- package/dist/types/colo.d.ts +171 -0
- package/dist/types/colo.d.ts.map +1 -0
- package/dist/types/colo.js +63 -0
- package/dist/types/colo.js.map +1 -0
- package/dist/types/communication.d.ts +595 -0
- package/dist/types/communication.d.ts.map +1 -0
- package/dist/types/communication.js +16 -0
- package/dist/types/communication.js.map +1 -0
- package/dist/types/content.d.ts +286 -0
- package/dist/types/content.d.ts.map +1 -0
- package/dist/types/content.js +8 -0
- package/dist/types/content.js.map +1 -0
- package/dist/types/context.d.ts +407 -0
- package/dist/types/context.d.ts.map +1 -0
- package/dist/types/context.js +36 -0
- package/dist/types/context.js.map +1 -0
- package/dist/types/databases.d.ts +377 -0
- package/dist/types/databases.d.ts.map +1 -0
- package/dist/types/databases.js +14 -0
- package/dist/types/databases.js.map +1 -0
- package/dist/types/domains.d.ts +132 -0
- package/dist/types/domains.d.ts.map +1 -0
- package/dist/types/domains.js +107 -0
- package/dist/types/domains.js.map +1 -0
- package/dist/types/execution.d.ts +381 -0
- package/dist/types/execution.d.ts.map +1 -0
- package/dist/types/execution.js +40 -0
- package/dist/types/execution.js.map +1 -0
- package/dist/types/financial.d.ts +608 -0
- package/dist/types/financial.d.ts.map +1 -0
- package/dist/types/financial.js +12 -0
- package/dist/types/financial.js.map +1 -0
- package/dist/types/functions.d.ts +215 -0
- package/dist/types/functions.d.ts.map +1 -0
- package/dist/types/functions.js +15 -0
- package/dist/types/functions.js.map +1 -0
- package/dist/types/git.d.ts +299 -0
- package/dist/types/git.d.ts.map +1 -0
- package/dist/types/git.js +17 -0
- package/dist/types/git.js.map +1 -0
- package/dist/types/identity.d.ts +141 -0
- package/dist/types/identity.d.ts.map +1 -0
- package/dist/types/identity.js +54 -0
- package/dist/types/identity.js.map +1 -0
- package/dist/types/index.d.ts +40 -0
- package/dist/types/index.d.ts.map +1 -0
- package/dist/types/index.js +65 -0
- package/dist/types/index.js.map +1 -0
- package/dist/types/integrations.d.ts +356 -0
- package/dist/types/integrations.d.ts.map +1 -0
- package/dist/types/integrations.js +19 -0
- package/dist/types/integrations.js.map +1 -0
- package/dist/types/mdxui.d.ts +1955 -0
- package/dist/types/mdxui.d.ts.map +1 -0
- package/dist/types/mdxui.js +751 -0
- package/dist/types/mdxui.js.map +1 -0
- package/dist/types/observability.d.ts +315 -0
- package/dist/types/observability.d.ts.map +1 -0
- package/dist/types/observability.js +13 -0
- package/dist/types/observability.js.map +1 -0
- package/dist/types/rpc.d.ts +339 -0
- package/dist/types/rpc.d.ts.map +1 -0
- package/dist/types/rpc.js +24 -0
- package/dist/types/rpc.js.map +1 -0
- package/dist/types/saas.d.ts +678 -0
- package/dist/types/saas.d.ts.map +1 -0
- package/dist/types/saas.js +59 -0
- package/dist/types/saas.js.map +1 -0
- package/dist/types/service.d.ts +676 -0
- package/dist/types/service.d.ts.map +1 -0
- package/dist/types/service.js +69 -0
- package/dist/types/service.js.map +1 -0
- package/dist/types/site.d.ts +317 -0
- package/dist/types/site.d.ts.map +1 -0
- package/dist/types/site.js +203 -0
- package/dist/types/site.js.map +1 -0
- package/dist/types/startup.d.ts +576 -0
- package/dist/types/startup.d.ts.map +1 -0
- package/dist/types/startup.js +59 -0
- package/dist/types/startup.js.map +1 -0
- package/dist/types/storage.d.ts +276 -0
- package/dist/types/storage.d.ts.map +1 -0
- package/dist/types/storage.js +35 -0
- package/dist/types/storage.js.map +1 -0
- package/dist/types/telephony.d.ts +458 -0
- package/dist/types/telephony.d.ts.map +1 -0
- package/dist/types/telephony.js +19 -0
- package/dist/types/telephony.js.map +1 -0
- package/dist/types/tenant.d.ts +708 -0
- package/dist/types/tenant.d.ts.map +1 -0
- package/dist/types/tenant.js +103 -0
- package/dist/types/tenant.js.map +1 -0
- package/dist/types/voice-ai.d.ts +459 -0
- package/dist/types/voice-ai.d.ts.map +1 -0
- package/dist/types/voice-ai.js +32 -0
- package/dist/types/voice-ai.js.map +1 -0
- package/package.json +143 -0
|
@@ -0,0 +1,141 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core Identity Model for Digital Objects
|
|
3
|
+
*
|
|
4
|
+
* Every DO has three identity properties: $id, $type, and optional $context
|
|
5
|
+
* All identifiers are real HTTPS URLs - no custom schemes.
|
|
6
|
+
*
|
|
7
|
+
* DUAL NATURE PATTERN (N-Level Hierarchy):
|
|
8
|
+
* A Thing inside a parent DO can also BE its own independent DO.
|
|
9
|
+
* This pattern supports unlimited nesting depth.
|
|
10
|
+
*
|
|
11
|
+
* Example hierarchy:
|
|
12
|
+
* ```
|
|
13
|
+
* https://startups.studio (Business DO)
|
|
14
|
+
* └─ headless.ly (Thing in startups.studio)
|
|
15
|
+
* └─ https://headless.ly (Startup DO, $context: 'https://startups.studio')
|
|
16
|
+
* └─ https://crm.headless.ly (SaaS App DO, $context: 'https://headless.ly')
|
|
17
|
+
* └─ https://crm.headless.ly/acme (Tenant DO, $context: 'https://crm.headless.ly')
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* $context chain (all HTTPS URLs):
|
|
21
|
+
* - https://crm.headless.ly/acme.$context = 'https://crm.headless.ly'
|
|
22
|
+
* - https://crm.headless.ly.$context = 'https://headless.ly'
|
|
23
|
+
* - https://headless.ly.$context = 'https://startups.studio'
|
|
24
|
+
*
|
|
25
|
+
* Bidirectional relationships:
|
|
26
|
+
* - Parent → Child: Thing.$ref = 'https://child.domain' (URL string)
|
|
27
|
+
* - Child → Parent: DO.$context = 'https://parent.domain' (URL string)
|
|
28
|
+
*
|
|
29
|
+
* CDC events bubble up: Child DO → Parent DO ($context) → ... → R2/Iceberg
|
|
30
|
+
* Each level can observe/aggregate events from all descendants.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* $type is a URL that defines the type/schema of this DO
|
|
34
|
+
*
|
|
35
|
+
* Type URL patterns:
|
|
36
|
+
* - Relative to $context: If $context is 'https://startups.studio' and type is 'Startup',
|
|
37
|
+
* the resolved $type URL is 'https://startups.studio/Startup'
|
|
38
|
+
* - External schema: 'https://schema.org.ai/Agent' - using shared schema definitions
|
|
39
|
+
* - Platform types: 'https://do.md/Business', 'https://do.md/SaaS'
|
|
40
|
+
*
|
|
41
|
+
* Examples:
|
|
42
|
+
* ```typescript
|
|
43
|
+
* // Type derived from $context
|
|
44
|
+
* {
|
|
45
|
+
* $id: 'https://headless.ly',
|
|
46
|
+
* $type: 'https://startups.studio/Startup', // or just 'Startup' if $context resolves it
|
|
47
|
+
* $context: 'https://startups.studio'
|
|
48
|
+
* }
|
|
49
|
+
*
|
|
50
|
+
* // External schema type
|
|
51
|
+
* {
|
|
52
|
+
* $id: 'https://agents.do/sales-agent',
|
|
53
|
+
* $type: 'https://schema.org.ai/Agent',
|
|
54
|
+
* $context: 'https://agents.do'
|
|
55
|
+
* }
|
|
56
|
+
* ```
|
|
57
|
+
*/
|
|
58
|
+
export type DOType = string;
|
|
59
|
+
/**
|
|
60
|
+
* Well-known type names (resolve to https://do.md/{TypeName})
|
|
61
|
+
*
|
|
62
|
+
* Business Types: Top-level business constructs
|
|
63
|
+
* Content Types: Sites, apps, and content entities
|
|
64
|
+
* Operational Types: Runtime components
|
|
65
|
+
* Utility Types: Supporting entities
|
|
66
|
+
*/
|
|
67
|
+
export type WellKnownType = 'Business' | 'Startup' | 'SaaS' | 'IaaS' | 'PaaS' | 'Service' | 'Site' | 'App' | 'Page' | 'Post' | 'Doc' | 'Agent' | 'Database' | 'Directory' | 'Marketplace' | 'Workflow' | 'Function' | 'Collection' | 'User' | 'Org';
|
|
68
|
+
/**
|
|
69
|
+
* Resolve a type name to its full URL
|
|
70
|
+
*
|
|
71
|
+
* @param typeName - Short name like 'Startup' or full URL
|
|
72
|
+
* @param context - Optional $context URL to resolve relative types
|
|
73
|
+
* @returns Full type URL
|
|
74
|
+
*
|
|
75
|
+
* Examples:
|
|
76
|
+
* - resolveTypeUrl('Startup') → 'https://do.md/Startup'
|
|
77
|
+
* - resolveTypeUrl('Startup', 'https://startups.studio') → 'https://startups.studio/Startup'
|
|
78
|
+
* - resolveTypeUrl('https://schema.org.ai/Agent') → 'https://schema.org.ai/Agent'
|
|
79
|
+
*/
|
|
80
|
+
export declare function resolveTypeUrl(typeName: string, context?: string): string;
|
|
81
|
+
/**
|
|
82
|
+
* Reference to another Digital Object - just a URL string
|
|
83
|
+
* Used for $context, $ref, relationships, and dependencies
|
|
84
|
+
*
|
|
85
|
+
* Examples:
|
|
86
|
+
* - 'https://startups.studio'
|
|
87
|
+
* - 'https://headless.ly'
|
|
88
|
+
* - 'https://crm.headless.ly/acme'
|
|
89
|
+
*/
|
|
90
|
+
export type DigitalObjectRef = string;
|
|
91
|
+
/**
|
|
92
|
+
* Core identity interface for all Digital Objects
|
|
93
|
+
*/
|
|
94
|
+
export interface DigitalObjectIdentity {
|
|
95
|
+
/** HTTPS URL: https://domain or https://domain/path */
|
|
96
|
+
$id: string;
|
|
97
|
+
/**
|
|
98
|
+
* Type URL - defines the schema/type of this DO
|
|
99
|
+
*
|
|
100
|
+
* Can be:
|
|
101
|
+
* - Full URL: 'https://schema.org.ai/Agent'
|
|
102
|
+
* - Relative to $context: 'Startup' resolves to '${$context}/Startup'
|
|
103
|
+
* - Platform type: 'Business' resolves to 'https://do.md/Business'
|
|
104
|
+
*/
|
|
105
|
+
$type: DOType;
|
|
106
|
+
/** Parent DO URL for streaming (hierarchical CDC) */
|
|
107
|
+
$context?: DigitalObjectRef;
|
|
108
|
+
/** Version number for optimistic concurrency */
|
|
109
|
+
$version: number;
|
|
110
|
+
/** Creation timestamp (Unix ms) */
|
|
111
|
+
$createdAt: number;
|
|
112
|
+
/** Last update timestamp (Unix ms) */
|
|
113
|
+
$updatedAt: number;
|
|
114
|
+
}
|
|
115
|
+
/**
|
|
116
|
+
* Parse a DO URL into its components
|
|
117
|
+
*/
|
|
118
|
+
export interface ParsedDOUrl {
|
|
119
|
+
/** Always https */
|
|
120
|
+
protocol: 'https';
|
|
121
|
+
/** Domain (e.g., 'headless.ly', 'crm.headless.ly') */
|
|
122
|
+
domain: string;
|
|
123
|
+
/** Path after domain (e.g., '/acme', '/users/bob') */
|
|
124
|
+
path?: string;
|
|
125
|
+
}
|
|
126
|
+
/**
|
|
127
|
+
* DO metadata that can be attached to any object
|
|
128
|
+
*/
|
|
129
|
+
export interface DOMetadata {
|
|
130
|
+
/** Human-readable name */
|
|
131
|
+
name?: string;
|
|
132
|
+
/** Description of this DO */
|
|
133
|
+
description?: string;
|
|
134
|
+
/** Tags for categorization */
|
|
135
|
+
tags?: string[];
|
|
136
|
+
/** Custom labels (key-value pairs) */
|
|
137
|
+
labels?: Record<string, string>;
|
|
138
|
+
/** Annotations (non-identifying metadata) */
|
|
139
|
+
annotations?: Record<string, unknown>;
|
|
140
|
+
}
|
|
141
|
+
//# sourceMappingURL=identity.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.d.ts","sourceRoot":"","sources":["../../types/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,MAAM,MAAM,MAAM,GAAG,MAAM,CAAA;AAE3B;;;;;;;GAOG;AACH,MAAM,MAAM,aAAa,GAErB,UAAU,GACV,SAAS,GACT,MAAM,GACN,MAAM,GACN,MAAM,GACN,SAAS,GAGT,MAAM,GACN,KAAK,GACL,MAAM,GACN,MAAM,GACN,KAAK,GAGL,OAAO,GACP,UAAU,GACV,WAAW,GACX,aAAa,GAGb,UAAU,GACV,UAAU,GACV,YAAY,GACZ,MAAM,GACN,KAAK,CAAA;AAET;;;;;;;;;;;GAWG;AACH,wBAAgB,cAAc,CAAC,QAAQ,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,MAAM,CASzE;AAED;;;;;;;;GAQG;AACH,MAAM,MAAM,gBAAgB,GAAG,MAAM,CAAA;AAErC;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,uDAAuD;IACvD,GAAG,EAAE,MAAM,CAAA;IACX;;;;;;;OAOG;IACH,KAAK,EAAE,MAAM,CAAA;IACb,qDAAqD;IACrD,QAAQ,CAAC,EAAE,gBAAgB,CAAA;IAC3B,gDAAgD;IAChD,QAAQ,EAAE,MAAM,CAAA;IAChB,mCAAmC;IACnC,UAAU,EAAE,MAAM,CAAA;IAClB,sCAAsC;IACtC,UAAU,EAAE,MAAM,CAAA;CACnB;AAED;;GAEG;AACH,MAAM,WAAW,WAAW;IAC1B,mBAAmB;IACnB,QAAQ,EAAE,OAAO,CAAA;IACjB,sDAAsD;IACtD,MAAM,EAAE,MAAM,CAAA;IACd,sDAAsD;IACtD,IAAI,CAAC,EAAE,MAAM,CAAA;CACd;AAED;;GAEG;AACH,MAAM,WAAW,UAAU;IACzB,0BAA0B;IAC1B,IAAI,CAAC,EAAE,MAAM,CAAA;IACb,6BAA6B;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,8BAA8B;IAC9B,IAAI,CAAC,EAAE,MAAM,EAAE,CAAA;IACf,sCAAsC;IACtC,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAAA;IAC/B,6CAA6C;IAC7C,WAAW,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAA;CACtC"}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Core Identity Model for Digital Objects
|
|
3
|
+
*
|
|
4
|
+
* Every DO has three identity properties: $id, $type, and optional $context
|
|
5
|
+
* All identifiers are real HTTPS URLs - no custom schemes.
|
|
6
|
+
*
|
|
7
|
+
* DUAL NATURE PATTERN (N-Level Hierarchy):
|
|
8
|
+
* A Thing inside a parent DO can also BE its own independent DO.
|
|
9
|
+
* This pattern supports unlimited nesting depth.
|
|
10
|
+
*
|
|
11
|
+
* Example hierarchy:
|
|
12
|
+
* ```
|
|
13
|
+
* https://startups.studio (Business DO)
|
|
14
|
+
* └─ headless.ly (Thing in startups.studio)
|
|
15
|
+
* └─ https://headless.ly (Startup DO, $context: 'https://startups.studio')
|
|
16
|
+
* └─ https://crm.headless.ly (SaaS App DO, $context: 'https://headless.ly')
|
|
17
|
+
* └─ https://crm.headless.ly/acme (Tenant DO, $context: 'https://crm.headless.ly')
|
|
18
|
+
* ```
|
|
19
|
+
*
|
|
20
|
+
* $context chain (all HTTPS URLs):
|
|
21
|
+
* - https://crm.headless.ly/acme.$context = 'https://crm.headless.ly'
|
|
22
|
+
* - https://crm.headless.ly.$context = 'https://headless.ly'
|
|
23
|
+
* - https://headless.ly.$context = 'https://startups.studio'
|
|
24
|
+
*
|
|
25
|
+
* Bidirectional relationships:
|
|
26
|
+
* - Parent → Child: Thing.$ref = 'https://child.domain' (URL string)
|
|
27
|
+
* - Child → Parent: DO.$context = 'https://parent.domain' (URL string)
|
|
28
|
+
*
|
|
29
|
+
* CDC events bubble up: Child DO → Parent DO ($context) → ... → R2/Iceberg
|
|
30
|
+
* Each level can observe/aggregate events from all descendants.
|
|
31
|
+
*/
|
|
32
|
+
/**
|
|
33
|
+
* Resolve a type name to its full URL
|
|
34
|
+
*
|
|
35
|
+
* @param typeName - Short name like 'Startup' or full URL
|
|
36
|
+
* @param context - Optional $context URL to resolve relative types
|
|
37
|
+
* @returns Full type URL
|
|
38
|
+
*
|
|
39
|
+
* Examples:
|
|
40
|
+
* - resolveTypeUrl('Startup') → 'https://do.md/Startup'
|
|
41
|
+
* - resolveTypeUrl('Startup', 'https://startups.studio') → 'https://startups.studio/Startup'
|
|
42
|
+
* - resolveTypeUrl('https://schema.org.ai/Agent') → 'https://schema.org.ai/Agent'
|
|
43
|
+
*/
|
|
44
|
+
export function resolveTypeUrl(typeName, context) {
|
|
45
|
+
// Already a URL
|
|
46
|
+
if (typeName.startsWith('https://'))
|
|
47
|
+
return typeName;
|
|
48
|
+
// Resolve relative to context if provided
|
|
49
|
+
if (context)
|
|
50
|
+
return `${context}/${typeName}`;
|
|
51
|
+
// Fall back to platform types
|
|
52
|
+
return `https://do.md/${typeName}`;
|
|
53
|
+
}
|
|
54
|
+
//# sourceMappingURL=identity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"identity.js","sourceRoot":"","sources":["../../types/identity.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AAmEH;;;;;;;;;;;GAWG;AACH,MAAM,UAAU,cAAc,CAAC,QAAgB,EAAE,OAAgB;IAC/D,gBAAgB;IAChB,IAAI,QAAQ,CAAC,UAAU,CAAC,UAAU,CAAC;QAAE,OAAO,QAAQ,CAAA;IAEpD,0CAA0C;IAC1C,IAAI,OAAO;QAAE,OAAO,GAAG,OAAO,IAAI,QAAQ,EAAE,CAAA;IAE5C,8BAA8B;IAC9B,OAAO,iBAAiB,QAAQ,EAAE,CAAA;AACpC,CAAC"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Digital Object (DO) Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* This module exports all types for the DO system.
|
|
5
|
+
*
|
|
6
|
+
* DO combines:
|
|
7
|
+
* - DB4.AI (4 database paradigms)
|
|
8
|
+
* - MDXDB (URL-based content filesystem)
|
|
9
|
+
* - Fn<Out,In,Opts> (generative functions)
|
|
10
|
+
* - 11-stage cascade (startup generation)
|
|
11
|
+
* - mdxui (Site/App components)
|
|
12
|
+
* - gitx (content/code sync)
|
|
13
|
+
*/
|
|
14
|
+
export * from './identity';
|
|
15
|
+
export * from './collections';
|
|
16
|
+
export * from './databases';
|
|
17
|
+
export * from './execution';
|
|
18
|
+
export * from './storage';
|
|
19
|
+
export * from './colo';
|
|
20
|
+
export * from './rpc';
|
|
21
|
+
export * from './observability';
|
|
22
|
+
export * from './mdxui';
|
|
23
|
+
export { SITE_TYPE_DEFAULTS, siteAutoWiring, } from './site';
|
|
24
|
+
export type { MDXUISiteProps, MDXUIHeaderProps, MDXUIFooterProps, MDXUIHeroProps, MDXUIFeaturesProps, MDXUIPricingProps, MDXUITestimonialsProps, MDXUIFAQProps, MDXUICTASectionProps, MDXUIStatsProps, MDXUITeamSectionProps, MDXUILogosProps, SiteFeatures, SiteTypeName, SiteConfig, SiteTheme, SiteSEO, NavigationConfig, FooterConfig, FooterLinkGroup, SiteComponents, CTAProps, SiteType, } from './site';
|
|
25
|
+
export { APP_TYPE_DEFAULTS } from './app';
|
|
26
|
+
export type { AppFeatures, AppPlatform, AppStatus, AppConfig, AppAuthConfig, AppTheme, ShellConfig, AppComponents, DashboardMetric, DashboardLayout, WidgetType, ChartType, DashboardWidget, APIKeyConfig, WebhookConfig, UsageMetrics, BillingConfig, AppInvoice, AppType, } from './app';
|
|
27
|
+
export * from './content';
|
|
28
|
+
export * from './startup';
|
|
29
|
+
export * from './functions';
|
|
30
|
+
export * from './cascade';
|
|
31
|
+
export * from './git';
|
|
32
|
+
export * from './financial';
|
|
33
|
+
export * from './domains';
|
|
34
|
+
export * from './communication';
|
|
35
|
+
export * from './integrations';
|
|
36
|
+
export * from './telephony';
|
|
37
|
+
export * from './voice-ai';
|
|
38
|
+
export * from './ai';
|
|
39
|
+
export * from './context';
|
|
40
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAGH,cAAc,YAAY,CAAA;AAG1B,cAAc,eAAe,CAAA;AAG7B,cAAc,aAAa,CAAA;AAG3B,cAAc,aAAa,CAAA;AAG3B,cAAc,WAAW,CAAA;AAGzB,cAAc,QAAQ,CAAA;AAGtB,cAAc,OAAO,CAAA;AAGrB,cAAc,iBAAiB,CAAA;AAI/B,cAAc,SAAS,CAAA;AAIvB,OAAO,EACL,kBAAkB,EAClB,cAAc,GACf,MAAM,QAAQ,CAAA;AAEf,YAAY,EAEV,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,cAAc,EACd,kBAAkB,EAClB,iBAAiB,EACjB,sBAAsB,EACtB,aAAa,EACb,oBAAoB,EACpB,eAAe,EACf,qBAAqB,EACrB,eAAe,EAEf,YAAY,EACZ,YAAY,EACZ,UAAU,EACV,SAAS,EACT,OAAO,EACP,gBAAgB,EAChB,YAAY,EACZ,eAAe,EACf,cAAc,EACd,QAAQ,EACR,QAAQ,GACT,MAAM,QAAQ,CAAA;AAIf,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAEzC,YAAY,EAEV,WAAW,EACX,WAAW,EACX,SAAS,EACT,SAAS,EACT,aAAa,EACb,QAAQ,EACR,WAAW,EACX,aAAa,EACb,eAAe,EACf,eAAe,EACf,UAAU,EACV,SAAS,EACT,eAAe,EACf,YAAY,EACZ,aAAa,EACb,YAAY,EACZ,aAAa,EACb,UAAU,EACV,OAAO,GACR,MAAM,OAAO,CAAA;AAGd,cAAc,WAAW,CAAA;AAGzB,cAAc,WAAW,CAAA;AAGzB,cAAc,aAAa,CAAA;AAG3B,cAAc,WAAW,CAAA;AAGzB,cAAc,OAAO,CAAA;AAGrB,cAAc,aAAa,CAAA;AAG3B,cAAc,WAAW,CAAA;AAGzB,cAAc,iBAAiB,CAAA;AAG/B,cAAc,gBAAgB,CAAA;AAG9B,cAAc,aAAa,CAAA;AAG3B,cAAc,YAAY,CAAA;AAG1B,cAAc,MAAM,CAAA;AAGpB,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1,65 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Digital Object (DO) Type Definitions
|
|
3
|
+
*
|
|
4
|
+
* This module exports all types for the DO system.
|
|
5
|
+
*
|
|
6
|
+
* DO combines:
|
|
7
|
+
* - DB4.AI (4 database paradigms)
|
|
8
|
+
* - MDXDB (URL-based content filesystem)
|
|
9
|
+
* - Fn<Out,In,Opts> (generative functions)
|
|
10
|
+
* - 11-stage cascade (startup generation)
|
|
11
|
+
* - mdxui (Site/App components)
|
|
12
|
+
* - gitx (content/code sync)
|
|
13
|
+
*/
|
|
14
|
+
// Core identity model ($id, $type, $context, DOType)
|
|
15
|
+
export * from './identity';
|
|
16
|
+
// Collections (nouns, verbs, things, actions, etc.)
|
|
17
|
+
export * from './collections';
|
|
18
|
+
// Database backends (DB4.AI - 4 paradigms)
|
|
19
|
+
export * from './databases';
|
|
20
|
+
// Code execution (fsx, gitx, bashx, esm)
|
|
21
|
+
export * from './execution';
|
|
22
|
+
// Storage & CDC (tiered storage, change data capture)
|
|
23
|
+
export * from './storage';
|
|
24
|
+
// Colo awareness (geo-distribution, replication)
|
|
25
|
+
export * from './colo';
|
|
26
|
+
// CapnWeb RPC (schema-free RPC with hibernation)
|
|
27
|
+
export * from './rpc';
|
|
28
|
+
// Observability (events, metrics, tracing)
|
|
29
|
+
export * from './observability';
|
|
30
|
+
// MDXUI types - Zod schemas and component props
|
|
31
|
+
// DO entities ARE the props for MDXUI components
|
|
32
|
+
export * from './mdxui';
|
|
33
|
+
// Site types (mdxui - 14 site types, SiteComponents)
|
|
34
|
+
// Note: Exclude types that conflict with ./mdxui exports
|
|
35
|
+
export { SITE_TYPE_DEFAULTS, siteAutoWiring, } from './site';
|
|
36
|
+
// App types (mdxui - 18 app types, AppComponents)
|
|
37
|
+
// Note: Exclude types that conflict with ./mdxui exports
|
|
38
|
+
export { APP_TYPE_DEFAULTS } from './app';
|
|
39
|
+
// Content types (mdxld/mdxdb - URL-based filesystem)
|
|
40
|
+
export * from './content';
|
|
41
|
+
// Startup types (sb - ICP, Persona, Hypothesis, Canvas, etc.)
|
|
42
|
+
export * from './startup';
|
|
43
|
+
// Function types (Fn<Out,In,Opts> pattern)
|
|
44
|
+
export * from './functions';
|
|
45
|
+
// Cascade types (11-stage generative workflow)
|
|
46
|
+
export * from './cascade';
|
|
47
|
+
// Git types (content/code sync with git)
|
|
48
|
+
export * from './git';
|
|
49
|
+
// Financial types (Stripe Connect, accounting, P&L)
|
|
50
|
+
export * from './financial';
|
|
51
|
+
// Domain types (subdomains, DNS, SSL, routing)
|
|
52
|
+
export * from './domains';
|
|
53
|
+
// Communication types (email, Slack, Discord, Teams)
|
|
54
|
+
export * from './communication';
|
|
55
|
+
// Integration types (deep vs generic integrations)
|
|
56
|
+
export * from './integrations';
|
|
57
|
+
// Telephony types (phone, SMS, calls)
|
|
58
|
+
export * from './telephony';
|
|
59
|
+
// Voice AI types (conversational voice agents)
|
|
60
|
+
export * from './voice-ai';
|
|
61
|
+
// AI types (unified generative AI abstraction)
|
|
62
|
+
export * from './ai';
|
|
63
|
+
// Context types ($ - the runtime context)
|
|
64
|
+
export * from './context';
|
|
65
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../types/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;GAYG;AAEH,qDAAqD;AACrD,cAAc,YAAY,CAAA;AAE1B,oDAAoD;AACpD,cAAc,eAAe,CAAA;AAE7B,2CAA2C;AAC3C,cAAc,aAAa,CAAA;AAE3B,yCAAyC;AACzC,cAAc,aAAa,CAAA;AAE3B,sDAAsD;AACtD,cAAc,WAAW,CAAA;AAEzB,iDAAiD;AACjD,cAAc,QAAQ,CAAA;AAEtB,iDAAiD;AACjD,cAAc,OAAO,CAAA;AAErB,2CAA2C;AAC3C,cAAc,iBAAiB,CAAA;AAE/B,gDAAgD;AAChD,iDAAiD;AACjD,cAAc,SAAS,CAAA;AAEvB,qDAAqD;AACrD,yDAAyD;AACzD,OAAO,EACL,kBAAkB,EAClB,cAAc,GACf,MAAM,QAAQ,CAAA;AA8Bf,kDAAkD;AAClD,yDAAyD;AACzD,OAAO,EAAE,iBAAiB,EAAE,MAAM,OAAO,CAAA;AAyBzC,qDAAqD;AACrD,cAAc,WAAW,CAAA;AAEzB,8DAA8D;AAC9D,cAAc,WAAW,CAAA;AAEzB,2CAA2C;AAC3C,cAAc,aAAa,CAAA;AAE3B,+CAA+C;AAC/C,cAAc,WAAW,CAAA;AAEzB,yCAAyC;AACzC,cAAc,OAAO,CAAA;AAErB,oDAAoD;AACpD,cAAc,aAAa,CAAA;AAE3B,+CAA+C;AAC/C,cAAc,WAAW,CAAA;AAEzB,qDAAqD;AACrD,cAAc,iBAAiB,CAAA;AAE/B,mDAAmD;AACnD,cAAc,gBAAgB,CAAA;AAE9B,sCAAsC;AACtC,cAAc,aAAa,CAAA;AAE3B,+CAA+C;AAC/C,cAAc,YAAY,CAAA;AAE1B,+CAA+C;AAC/C,cAAc,MAAM,CAAA;AAEpB,0CAA0C;AAC1C,cAAc,WAAW,CAAA"}
|
|
@@ -0,0 +1,356 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Integration Types - Deep vs Generic Integrations
|
|
3
|
+
*
|
|
4
|
+
* DO has two tiers of integrations:
|
|
5
|
+
*
|
|
6
|
+
* DEEP INTEGRATIONS (Platform-level, tightly coupled):
|
|
7
|
+
* - Stripe Connect - Payments, transfers, accounting, financial reporting
|
|
8
|
+
* - WorkOS - Authentication, SSO, directory sync, RBAC/FGA
|
|
9
|
+
* - GitHub - Git sync, code storage, PRs, issues, actions
|
|
10
|
+
* - Cloudflare - Domains, DNS, SSL, email routing, workers
|
|
11
|
+
* - Communication - Slack, Discord, Teams (human-in-the-loop)
|
|
12
|
+
*
|
|
13
|
+
* GENERIC INTEGRATIONS (Webhook/API-level, loosely coupled):
|
|
14
|
+
* - OAuth connections to any service
|
|
15
|
+
* - Webhook subscriptions
|
|
16
|
+
* - API credentials
|
|
17
|
+
*/
|
|
18
|
+
/**
|
|
19
|
+
* Deep integration types (platform-level)
|
|
20
|
+
*/
|
|
21
|
+
export type DeepIntegrationType = 'stripe' | 'workos' | 'github' | 'cloudflare' | 'slack' | 'discord' | 'teams' | 'ses' | 'mailchannels';
|
|
22
|
+
/**
|
|
23
|
+
* Deep integration status
|
|
24
|
+
*/
|
|
25
|
+
export type DeepIntegrationStatus = 'NotConfigured' | 'PendingAuth' | 'Active' | 'Error' | 'Suspended';
|
|
26
|
+
/**
|
|
27
|
+
* Deep integration base interface
|
|
28
|
+
*/
|
|
29
|
+
export interface DeepIntegration {
|
|
30
|
+
type: DeepIntegrationType;
|
|
31
|
+
status: DeepIntegrationStatus;
|
|
32
|
+
connectedAt?: number;
|
|
33
|
+
lastActivityAt?: number;
|
|
34
|
+
error?: string;
|
|
35
|
+
}
|
|
36
|
+
export interface StripeDeepIntegration extends DeepIntegration {
|
|
37
|
+
type: 'stripe';
|
|
38
|
+
/** Stripe Connect account ID */
|
|
39
|
+
accountId?: string;
|
|
40
|
+
/** Account type */
|
|
41
|
+
accountType?: 'standard' | 'express' | 'custom';
|
|
42
|
+
/** Charges enabled */
|
|
43
|
+
chargesEnabled?: boolean;
|
|
44
|
+
/** Payouts enabled */
|
|
45
|
+
payoutsEnabled?: boolean;
|
|
46
|
+
/** Onboarding URL (for incomplete accounts) */
|
|
47
|
+
onboardingUrl?: string;
|
|
48
|
+
/** Platform fee percentage */
|
|
49
|
+
platformFeePercent?: number;
|
|
50
|
+
}
|
|
51
|
+
export interface WorkOSDeepIntegration extends DeepIntegration {
|
|
52
|
+
type: 'workos';
|
|
53
|
+
/** Organization ID in WorkOS */
|
|
54
|
+
organizationId?: string;
|
|
55
|
+
/** SSO connection ID */
|
|
56
|
+
ssoConnectionId?: string;
|
|
57
|
+
/** Directory sync connection ID */
|
|
58
|
+
directoryConnectionId?: string;
|
|
59
|
+
/** Enabled features */
|
|
60
|
+
features?: {
|
|
61
|
+
sso?: boolean;
|
|
62
|
+
directorySync?: boolean;
|
|
63
|
+
adminPortal?: boolean;
|
|
64
|
+
auditLogs?: boolean;
|
|
65
|
+
};
|
|
66
|
+
/** SSO providers configured */
|
|
67
|
+
ssoProviders?: ('google' | 'microsoft' | 'okta' | 'onelogin' | 'azure' | 'adfs' | 'ping' | 'jumpcloud' | 'saml')[];
|
|
68
|
+
}
|
|
69
|
+
export interface GitHubDeepIntegration extends DeepIntegration {
|
|
70
|
+
type: 'github';
|
|
71
|
+
/** GitHub App installation ID */
|
|
72
|
+
installationId?: string;
|
|
73
|
+
/** Repository (owner/repo) */
|
|
74
|
+
repository?: string;
|
|
75
|
+
/** Branch */
|
|
76
|
+
branch?: string;
|
|
77
|
+
/** Base path in repo */
|
|
78
|
+
basePath?: string;
|
|
79
|
+
/** Permissions granted */
|
|
80
|
+
permissions?: {
|
|
81
|
+
contents?: 'read' | 'write';
|
|
82
|
+
pullRequests?: 'read' | 'write';
|
|
83
|
+
issues?: 'read' | 'write';
|
|
84
|
+
actions?: 'read' | 'write';
|
|
85
|
+
webhooks?: 'read' | 'write';
|
|
86
|
+
};
|
|
87
|
+
/** Webhook secret */
|
|
88
|
+
webhookSecret?: string;
|
|
89
|
+
/** Last sync commit SHA */
|
|
90
|
+
lastSyncSha?: string;
|
|
91
|
+
}
|
|
92
|
+
export interface CloudflareDeepIntegration extends DeepIntegration {
|
|
93
|
+
type: 'cloudflare';
|
|
94
|
+
/** Account ID */
|
|
95
|
+
accountId?: string;
|
|
96
|
+
/** Zone IDs managed */
|
|
97
|
+
zoneIds?: string[];
|
|
98
|
+
/** Workers namespace */
|
|
99
|
+
workersNamespace?: string;
|
|
100
|
+
/** KV namespaces */
|
|
101
|
+
kvNamespaces?: string[];
|
|
102
|
+
/** R2 buckets */
|
|
103
|
+
r2Buckets?: string[];
|
|
104
|
+
/** D1 databases */
|
|
105
|
+
d1Databases?: string[];
|
|
106
|
+
/** Durable Object namespaces */
|
|
107
|
+
durableObjectNamespaces?: string[];
|
|
108
|
+
}
|
|
109
|
+
export interface SlackDeepIntegration extends DeepIntegration {
|
|
110
|
+
type: 'slack';
|
|
111
|
+
/** Workspace ID */
|
|
112
|
+
teamId?: string;
|
|
113
|
+
/** Workspace name */
|
|
114
|
+
teamName?: string;
|
|
115
|
+
/** Bot user ID */
|
|
116
|
+
botUserId?: string;
|
|
117
|
+
/** Scopes */
|
|
118
|
+
scopes?: string[];
|
|
119
|
+
/** Default channel for notifications */
|
|
120
|
+
defaultChannelId?: string;
|
|
121
|
+
}
|
|
122
|
+
export interface DiscordDeepIntegration extends DeepIntegration {
|
|
123
|
+
type: 'discord';
|
|
124
|
+
/** Guild ID */
|
|
125
|
+
guildId?: string;
|
|
126
|
+
/** Guild name */
|
|
127
|
+
guildName?: string;
|
|
128
|
+
/** Bot user ID */
|
|
129
|
+
botUserId?: string;
|
|
130
|
+
/** Permissions */
|
|
131
|
+
permissions?: string;
|
|
132
|
+
/** Default channel for notifications */
|
|
133
|
+
defaultChannelId?: string;
|
|
134
|
+
}
|
|
135
|
+
export interface TeamsDeepIntegration extends DeepIntegration {
|
|
136
|
+
type: 'teams';
|
|
137
|
+
/** Tenant ID */
|
|
138
|
+
tenantId?: string;
|
|
139
|
+
/** Team ID */
|
|
140
|
+
teamId?: string;
|
|
141
|
+
/** Team name */
|
|
142
|
+
teamName?: string;
|
|
143
|
+
/** Default channel for notifications */
|
|
144
|
+
defaultChannelId?: string;
|
|
145
|
+
}
|
|
146
|
+
export interface SESDeepIntegration extends DeepIntegration {
|
|
147
|
+
type: 'ses';
|
|
148
|
+
/** AWS Region */
|
|
149
|
+
region?: string;
|
|
150
|
+
/** Verified identities (domains/emails) */
|
|
151
|
+
verifiedIdentities?: string[];
|
|
152
|
+
/** Configuration set */
|
|
153
|
+
configurationSet?: string;
|
|
154
|
+
/** Sending quota */
|
|
155
|
+
sendingQuota?: {
|
|
156
|
+
max24HourSend: number;
|
|
157
|
+
maxSendRate: number;
|
|
158
|
+
sentLast24Hours: number;
|
|
159
|
+
};
|
|
160
|
+
}
|
|
161
|
+
export interface MailchannelsDeepIntegration extends DeepIntegration {
|
|
162
|
+
type: 'mailchannels';
|
|
163
|
+
/** Verified domains */
|
|
164
|
+
verifiedDomains?: string[];
|
|
165
|
+
/** DKIM configured */
|
|
166
|
+
dkimConfigured?: boolean;
|
|
167
|
+
}
|
|
168
|
+
/**
|
|
169
|
+
* Generic integration (loosely coupled)
|
|
170
|
+
*/
|
|
171
|
+
export interface GenericIntegration {
|
|
172
|
+
id: string;
|
|
173
|
+
/** Integration name */
|
|
174
|
+
name: string;
|
|
175
|
+
/** Provider/service name */
|
|
176
|
+
provider: string;
|
|
177
|
+
/** Integration type */
|
|
178
|
+
type: GenericIntegrationType;
|
|
179
|
+
/** Configuration */
|
|
180
|
+
config: Record<string, unknown>;
|
|
181
|
+
/** Status */
|
|
182
|
+
status: 'Active' | 'Inactive' | 'Error';
|
|
183
|
+
/** Credentials reference */
|
|
184
|
+
credentialId?: string;
|
|
185
|
+
/** Last used timestamp */
|
|
186
|
+
lastUsedAt?: number;
|
|
187
|
+
/** Created timestamp */
|
|
188
|
+
createdAt: number;
|
|
189
|
+
/** Updated timestamp */
|
|
190
|
+
updatedAt: number;
|
|
191
|
+
}
|
|
192
|
+
export type GenericIntegrationType = 'oauth2' | 'api_key' | 'webhook' | 'outbound' | 'database' | 'storage';
|
|
193
|
+
/**
|
|
194
|
+
* OAuth 2.0 connection
|
|
195
|
+
*/
|
|
196
|
+
export interface OAuthConnection {
|
|
197
|
+
id: string;
|
|
198
|
+
/** Provider name */
|
|
199
|
+
provider: string;
|
|
200
|
+
/** OAuth client ID */
|
|
201
|
+
clientId: string;
|
|
202
|
+
/** Scopes granted */
|
|
203
|
+
scopes: string[];
|
|
204
|
+
/** Access token (encrypted) */
|
|
205
|
+
accessToken: string;
|
|
206
|
+
/** Refresh token (encrypted) */
|
|
207
|
+
refreshToken?: string;
|
|
208
|
+
/** Token expiry timestamp */
|
|
209
|
+
expiresAt?: number;
|
|
210
|
+
/** User info from provider */
|
|
211
|
+
userInfo?: {
|
|
212
|
+
id: string;
|
|
213
|
+
email?: string;
|
|
214
|
+
name?: string;
|
|
215
|
+
avatar?: string;
|
|
216
|
+
};
|
|
217
|
+
/** Connected timestamp */
|
|
218
|
+
connectedAt: number;
|
|
219
|
+
/** Last refreshed timestamp */
|
|
220
|
+
lastRefreshedAt?: number;
|
|
221
|
+
}
|
|
222
|
+
/**
|
|
223
|
+
* Inbound webhook
|
|
224
|
+
*/
|
|
225
|
+
export interface InboundWebhook {
|
|
226
|
+
id: string;
|
|
227
|
+
/** Webhook name */
|
|
228
|
+
name: string;
|
|
229
|
+
/** Webhook path */
|
|
230
|
+
path: string;
|
|
231
|
+
/** Expected source */
|
|
232
|
+
source?: string;
|
|
233
|
+
/** Verification method */
|
|
234
|
+
verification?: WebhookVerification;
|
|
235
|
+
/** Handler function ID */
|
|
236
|
+
handlerId?: string;
|
|
237
|
+
/** Enabled */
|
|
238
|
+
enabled: boolean;
|
|
239
|
+
/** Last received timestamp */
|
|
240
|
+
lastReceivedAt?: number;
|
|
241
|
+
/** Total requests received */
|
|
242
|
+
totalRequests: number;
|
|
243
|
+
/** Created timestamp */
|
|
244
|
+
createdAt: number;
|
|
245
|
+
}
|
|
246
|
+
export interface WebhookVerification {
|
|
247
|
+
method: 'hmac' | 'signature' | 'bearer' | 'basic' | 'none';
|
|
248
|
+
secret?: string;
|
|
249
|
+
header?: string;
|
|
250
|
+
algorithm?: 'sha256' | 'sha512';
|
|
251
|
+
}
|
|
252
|
+
/**
|
|
253
|
+
* Outbound webhook
|
|
254
|
+
*/
|
|
255
|
+
export interface OutboundWebhook {
|
|
256
|
+
id: string;
|
|
257
|
+
/** Webhook name */
|
|
258
|
+
name: string;
|
|
259
|
+
/** Destination URL */
|
|
260
|
+
url: string;
|
|
261
|
+
/** Events to trigger on */
|
|
262
|
+
events: string[];
|
|
263
|
+
/** HTTP method */
|
|
264
|
+
method: 'POST' | 'PUT' | 'PATCH';
|
|
265
|
+
/** Custom headers */
|
|
266
|
+
headers?: Record<string, string>;
|
|
267
|
+
/** Signing secret */
|
|
268
|
+
signingSecret?: string;
|
|
269
|
+
/** Retry policy */
|
|
270
|
+
retryPolicy?: WebhookRetryPolicy;
|
|
271
|
+
/** Enabled */
|
|
272
|
+
enabled: boolean;
|
|
273
|
+
/** Last triggered timestamp */
|
|
274
|
+
lastTriggeredAt?: number;
|
|
275
|
+
/** Failure count */
|
|
276
|
+
failureCount: number;
|
|
277
|
+
/** Created timestamp */
|
|
278
|
+
createdAt: number;
|
|
279
|
+
}
|
|
280
|
+
export interface WebhookRetryPolicy {
|
|
281
|
+
maxAttempts: number;
|
|
282
|
+
initialDelayMs: number;
|
|
283
|
+
maxDelayMs: number;
|
|
284
|
+
backoffMultiplier: number;
|
|
285
|
+
}
|
|
286
|
+
/**
|
|
287
|
+
* Integration operations for a DO
|
|
288
|
+
*/
|
|
289
|
+
export interface IntegrationOperations {
|
|
290
|
+
getDeepIntegration<T extends DeepIntegration>(type: DeepIntegrationType): Promise<T | null>;
|
|
291
|
+
configureDeepIntegration<T extends DeepIntegration>(config: Partial<T>): Promise<T>;
|
|
292
|
+
disconnectDeepIntegration(type: DeepIntegrationType): Promise<boolean>;
|
|
293
|
+
addIntegration(integration: Omit<GenericIntegration, 'id' | 'createdAt' | 'updatedAt'>): Promise<GenericIntegration>;
|
|
294
|
+
updateIntegration(id: string, updates: Partial<GenericIntegration>): Promise<GenericIntegration>;
|
|
295
|
+
removeIntegration(id: string): Promise<boolean>;
|
|
296
|
+
listIntegrations(type?: GenericIntegrationType): Promise<GenericIntegration[]>;
|
|
297
|
+
connectOAuth(provider: string, authCode: string): Promise<OAuthConnection>;
|
|
298
|
+
refreshOAuth(connectionId: string): Promise<OAuthConnection>;
|
|
299
|
+
disconnectOAuth(connectionId: string): Promise<boolean>;
|
|
300
|
+
listOAuthConnections(): Promise<OAuthConnection[]>;
|
|
301
|
+
createInboundWebhook(webhook: Omit<InboundWebhook, 'id' | 'createdAt' | 'totalRequests'>): Promise<InboundWebhook>;
|
|
302
|
+
createOutboundWebhook(webhook: Omit<OutboundWebhook, 'id' | 'createdAt' | 'failureCount'>): Promise<OutboundWebhook>;
|
|
303
|
+
triggerOutboundWebhook(webhookId: string, payload: unknown): Promise<{
|
|
304
|
+
success: boolean;
|
|
305
|
+
statusCode?: number;
|
|
306
|
+
}>;
|
|
307
|
+
listWebhooks(): Promise<{
|
|
308
|
+
inbound: InboundWebhook[];
|
|
309
|
+
outbound: OutboundWebhook[];
|
|
310
|
+
}>;
|
|
311
|
+
}
|
|
312
|
+
/**
|
|
313
|
+
* Integration event (for observability)
|
|
314
|
+
*/
|
|
315
|
+
export type IntegrationEvent = {
|
|
316
|
+
type: 'integration:connected';
|
|
317
|
+
payload: {
|
|
318
|
+
integrationType: string;
|
|
319
|
+
};
|
|
320
|
+
} | {
|
|
321
|
+
type: 'integration:disconnected';
|
|
322
|
+
payload: {
|
|
323
|
+
integrationType: string;
|
|
324
|
+
};
|
|
325
|
+
} | {
|
|
326
|
+
type: 'integration:error';
|
|
327
|
+
payload: {
|
|
328
|
+
integrationType: string;
|
|
329
|
+
error: string;
|
|
330
|
+
};
|
|
331
|
+
} | {
|
|
332
|
+
type: 'webhook:received';
|
|
333
|
+
payload: {
|
|
334
|
+
webhookId: string;
|
|
335
|
+
source?: string;
|
|
336
|
+
};
|
|
337
|
+
} | {
|
|
338
|
+
type: 'webhook:sent';
|
|
339
|
+
payload: {
|
|
340
|
+
webhookId: string;
|
|
341
|
+
success: boolean;
|
|
342
|
+
};
|
|
343
|
+
} | {
|
|
344
|
+
type: 'oauth:refreshed';
|
|
345
|
+
payload: {
|
|
346
|
+
provider: string;
|
|
347
|
+
connectionId: string;
|
|
348
|
+
};
|
|
349
|
+
} | {
|
|
350
|
+
type: 'oauth:expired';
|
|
351
|
+
payload: {
|
|
352
|
+
provider: string;
|
|
353
|
+
connectionId: string;
|
|
354
|
+
};
|
|
355
|
+
};
|
|
356
|
+
//# sourceMappingURL=integrations.d.ts.map
|