lua-cli 3.15.3 → 3.16.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/dist/api-exports.d.ts +5029 -698
- package/dist/api-exports.js +6509 -772
- package/dist/api-exports.js.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +41174 -82
- package/dist/index.js.map +1 -1
- package/dist/voice/test/index.d.ts +1217 -0
- package/dist/voice/test/index.js +386 -0
- package/dist/voice/test/index.js.map +1 -0
- package/dist/voice-exports.d.ts +40 -0
- package/dist/voice-exports.js +16 -0
- package/dist/voice-exports.js.map +1 -0
- package/docs/README.md +1 -1
- package/package.json +38 -21
- package/scripts/build-vendor.mjs +6 -3
- package/scripts/run-api-extractor.mjs +79 -0
- package/template/.gitignore +21 -0
- package/template/package.json +1 -1
- package/dist/api/agent.api.service.d.ts +0 -165
- package/dist/api/agent.api.service.d.ts.map +0 -1
- package/dist/api/agent.api.service.js +0 -207
- package/dist/api/agent.api.service.js.map +0 -1
- package/dist/api/agents.api.service.d.ts +0 -21
- package/dist/api/agents.api.service.d.ts.map +0 -1
- package/dist/api/agents.api.service.js +0 -51
- package/dist/api/agents.api.service.js.map +0 -1
- package/dist/api/ai.api.service.d.ts +0 -20
- package/dist/api/ai.api.service.d.ts.map +0 -1
- package/dist/api/ai.api.service.js +0 -40
- package/dist/api/ai.api.service.js.map +0 -1
- package/dist/api/auth.api.service.d.ts +0 -49
- package/dist/api/auth.api.service.d.ts.map +0 -1
- package/dist/api/auth.api.service.js +0 -55
- package/dist/api/auth.api.service.js.map +0 -1
- package/dist/api/backup.api.service.d.ts +0 -78
- package/dist/api/backup.api.service.d.ts.map +0 -1
- package/dist/api/backup.api.service.js +0 -115
- package/dist/api/backup.api.service.js.map +0 -1
- package/dist/api/basket.api.service.d.ts +0 -85
- package/dist/api/basket.api.service.d.ts.map +0 -1
- package/dist/api/basket.api.service.js +0 -160
- package/dist/api/basket.api.service.js.map +0 -1
- package/dist/api/cdn.api.service.d.ts +0 -21
- package/dist/api/cdn.api.service.d.ts.map +0 -1
- package/dist/api/cdn.api.service.js +0 -46
- package/dist/api/cdn.api.service.js.map +0 -1
- package/dist/api/chat.api.service.d.ts +0 -40
- package/dist/api/chat.api.service.d.ts.map +0 -1
- package/dist/api/chat.api.service.js +0 -121
- package/dist/api/chat.api.service.js.map +0 -1
- package/dist/api/credentials.d.ts +0 -25
- package/dist/api/credentials.d.ts.map +0 -1
- package/dist/api/credentials.js +0 -44
- package/dist/api/credentials.js.map +0 -1
- package/dist/api/custom.data.api.service.d.ts +0 -71
- package/dist/api/custom.data.api.service.d.ts.map +0 -1
- package/dist/api/custom.data.api.service.js +0 -126
- package/dist/api/custom.data.api.service.js.map +0 -1
- package/dist/api/developer.api.service.d.ts +0 -121
- package/dist/api/developer.api.service.d.ts.map +0 -1
- package/dist/api/developer.api.service.js +0 -162
- package/dist/api/developer.api.service.js.map +0 -1
- package/dist/api/device-trigger.api.service.d.ts +0 -136
- package/dist/api/device-trigger.api.service.d.ts.map +0 -1
- package/dist/api/device-trigger.api.service.js +0 -120
- package/dist/api/device-trigger.api.service.js.map +0 -1
- package/dist/api/device.api.service.d.ts +0 -61
- package/dist/api/device.api.service.d.ts.map +0 -1
- package/dist/api/device.api.service.js +0 -72
- package/dist/api/device.api.service.js.map +0 -1
- package/dist/api/http.client.d.ts +0 -90
- package/dist/api/http.client.d.ts.map +0 -1
- package/dist/api/http.client.js +0 -265
- package/dist/api/http.client.js.map +0 -1
- package/dist/api/job.api.service.d.ts +0 -154
- package/dist/api/job.api.service.d.ts.map +0 -1
- package/dist/api/job.api.service.js +0 -230
- package/dist/api/job.api.service.js.map +0 -1
- package/dist/api/lazy-instances.d.ts +0 -107
- package/dist/api/lazy-instances.d.ts.map +0 -1
- package/dist/api/lazy-instances.js +0 -220
- package/dist/api/lazy-instances.js.map +0 -1
- package/dist/api/logs.api.service.d.ts +0 -38
- package/dist/api/logs.api.service.d.ts.map +0 -1
- package/dist/api/logs.api.service.js +0 -50
- package/dist/api/logs.api.service.js.map +0 -1
- package/dist/api/marketplace.api.service.d.ts +0 -28
- package/dist/api/marketplace.api.service.d.ts.map +0 -1
- package/dist/api/marketplace.api.service.js +0 -112
- package/dist/api/marketplace.api.service.js.map +0 -1
- package/dist/api/order.api.service.d.ts +0 -53
- package/dist/api/order.api.service.d.ts.map +0 -1
- package/dist/api/order.api.service.js +0 -94
- package/dist/api/order.api.service.js.map +0 -1
- package/dist/api/persona.api.service.d.ts +0 -56
- package/dist/api/persona.api.service.d.ts.map +0 -1
- package/dist/api/persona.api.service.js +0 -90
- package/dist/api/persona.api.service.js.map +0 -1
- package/dist/api/postprocessor.api.service.d.ts +0 -151
- package/dist/api/postprocessor.api.service.d.ts.map +0 -1
- package/dist/api/postprocessor.api.service.js +0 -109
- package/dist/api/postprocessor.api.service.js.map +0 -1
- package/dist/api/preprocessor.api.service.d.ts +0 -155
- package/dist/api/preprocessor.api.service.d.ts.map +0 -1
- package/dist/api/preprocessor.api.service.js +0 -111
- package/dist/api/preprocessor.api.service.js.map +0 -1
- package/dist/api/products.api.service.d.ts +0 -80
- package/dist/api/products.api.service.d.ts.map +0 -1
- package/dist/api/products.api.service.js +0 -126
- package/dist/api/products.api.service.js.map +0 -1
- package/dist/api/resource.api.service.d.ts +0 -77
- package/dist/api/resource.api.service.d.ts.map +0 -1
- package/dist/api/resource.api.service.js +0 -74
- package/dist/api/resource.api.service.js.map +0 -1
- package/dist/api/skills.api.service.d.ts +0 -94
- package/dist/api/skills.api.service.d.ts.map +0 -1
- package/dist/api/skills.api.service.js +0 -120
- package/dist/api/skills.api.service.js.map +0 -1
- package/dist/api/tool.api.service.d.ts +0 -53
- package/dist/api/tool.api.service.d.ts.map +0 -1
- package/dist/api/tool.api.service.js +0 -74
- package/dist/api/tool.api.service.js.map +0 -1
- package/dist/api/unifiedto.api.service.d.ts +0 -133
- package/dist/api/unifiedto.api.service.d.ts.map +0 -1
- package/dist/api/unifiedto.api.service.js +0 -166
- package/dist/api/unifiedto.api.service.js.map +0 -1
- package/dist/api/user.data.api.service.d.ts +0 -69
- package/dist/api/user.data.api.service.d.ts.map +0 -1
- package/dist/api/user.data.api.service.js +0 -158
- package/dist/api/user.data.api.service.js.map +0 -1
- package/dist/api/webhook.api.service.d.ts +0 -163
- package/dist/api/webhook.api.service.d.ts.map +0 -1
- package/dist/api/webhook.api.service.js +0 -140
- package/dist/api/webhook.api.service.js.map +0 -1
- package/dist/api/whatsapp-templates.api.service.d.ts +0 -41
- package/dist/api/whatsapp-templates.api.service.d.ts.map +0 -1
- package/dist/api/whatsapp-templates.api.service.js +0 -79
- package/dist/api/whatsapp-templates.api.service.js.map +0 -1
- package/dist/api-exports.d.ts.map +0 -1
- package/dist/cli/command-definitions.d.ts +0 -29
- package/dist/cli/command-definitions.d.ts.map +0 -1
- package/dist/cli/command-definitions.js +0 -943
- package/dist/cli/command-definitions.js.map +0 -1
- package/dist/commands/admin.d.ts +0 -24
- package/dist/commands/admin.d.ts.map +0 -1
- package/dist/commands/admin.js +0 -44
- package/dist/commands/admin.js.map +0 -1
- package/dist/commands/agents.d.ts +0 -23
- package/dist/commands/agents.d.ts.map +0 -1
- package/dist/commands/agents.js +0 -83
- package/dist/commands/agents.js.map +0 -1
- package/dist/commands/apiKey.d.ts +0 -8
- package/dist/commands/apiKey.d.ts.map +0 -1
- package/dist/commands/apiKey.js +0 -43
- package/dist/commands/apiKey.js.map +0 -1
- package/dist/commands/channels.d.ts +0 -13
- package/dist/commands/channels.d.ts.map +0 -1
- package/dist/commands/channels.js +0 -747
- package/dist/commands/channels.js.map +0 -1
- package/dist/commands/chat-log-probe.d.ts +0 -59
- package/dist/commands/chat-log-probe.d.ts.map +0 -1
- package/dist/commands/chat-log-probe.js +0 -87
- package/dist/commands/chat-log-probe.js.map +0 -1
- package/dist/commands/chat.d.ts +0 -20
- package/dist/commands/chat.d.ts.map +0 -1
- package/dist/commands/chat.js +0 -618
- package/dist/commands/chat.js.map +0 -1
- package/dist/commands/chatClear.d.ts +0 -25
- package/dist/commands/chatClear.d.ts.map +0 -1
- package/dist/commands/chatClear.js +0 -71
- package/dist/commands/chatClear.js.map +0 -1
- package/dist/commands/compile.d.ts +0 -48
- package/dist/commands/compile.d.ts.map +0 -1
- package/dist/commands/compile.js +0 -216
- package/dist/commands/compile.js.map +0 -1
- package/dist/commands/completion.d.ts +0 -12
- package/dist/commands/completion.d.ts.map +0 -1
- package/dist/commands/completion.js +0 -211
- package/dist/commands/completion.js.map +0 -1
- package/dist/commands/configure.d.ts +0 -42
- package/dist/commands/configure.d.ts.map +0 -1
- package/dist/commands/configure.js +0 -76
- package/dist/commands/configure.js.map +0 -1
- package/dist/commands/deploy.d.ts +0 -14
- package/dist/commands/deploy.d.ts.map +0 -1
- package/dist/commands/deploy.js +0 -517
- package/dist/commands/deploy.js.map +0 -1
- package/dist/commands/destroy.d.ts +0 -8
- package/dist/commands/destroy.d.ts.map +0 -1
- package/dist/commands/destroy.js +0 -66
- package/dist/commands/destroy.js.map +0 -1
- package/dist/commands/devices.d.ts +0 -6
- package/dist/commands/devices.d.ts.map +0 -1
- package/dist/commands/devices.js +0 -265
- package/dist/commands/devices.js.map +0 -1
- package/dist/commands/docs.d.ts +0 -20
- package/dist/commands/docs.d.ts.map +0 -1
- package/dist/commands/docs.js +0 -33
- package/dist/commands/docs.js.map +0 -1
- package/dist/commands/env.d.ts +0 -34
- package/dist/commands/env.d.ts.map +0 -1
- package/dist/commands/env.js +0 -612
- package/dist/commands/env.js.map +0 -1
- package/dist/commands/evals.d.ts +0 -9
- package/dist/commands/evals.d.ts.map +0 -1
- package/dist/commands/evals.js +0 -27
- package/dist/commands/evals.js.map +0 -1
- package/dist/commands/features.d.ts +0 -13
- package/dist/commands/features.d.ts.map +0 -1
- package/dist/commands/features.js +0 -455
- package/dist/commands/features.js.map +0 -1
- package/dist/commands/governance.d.ts +0 -7
- package/dist/commands/governance.d.ts.map +0 -1
- package/dist/commands/governance.js +0 -258
- package/dist/commands/governance.js.map +0 -1
- package/dist/commands/index.d.ts +0 -38
- package/dist/commands/index.d.ts.map +0 -1
- package/dist/commands/index.js +0 -38
- package/dist/commands/index.js.map +0 -1
- package/dist/commands/init.d.ts +0 -53
- package/dist/commands/init.d.ts.map +0 -1
- package/dist/commands/init.js +0 -992
- package/dist/commands/init.js.map +0 -1
- package/dist/commands/integrations.d.ts +0 -18
- package/dist/commands/integrations.d.ts.map +0 -1
- package/dist/commands/integrations.js +0 -2666
- package/dist/commands/integrations.js.map +0 -1
- package/dist/commands/jobs.d.ts +0 -13
- package/dist/commands/jobs.d.ts.map +0 -1
- package/dist/commands/jobs.js +0 -736
- package/dist/commands/jobs.js.map +0 -1
- package/dist/commands/log-tip.d.ts +0 -79
- package/dist/commands/log-tip.d.ts.map +0 -1
- package/dist/commands/log-tip.js +0 -83
- package/dist/commands/log-tip.js.map +0 -1
- package/dist/commands/logs.d.ts +0 -13
- package/dist/commands/logs.d.ts.map +0 -1
- package/dist/commands/logs.js +0 -493
- package/dist/commands/logs.js.map +0 -1
- package/dist/commands/marketplace.d.ts +0 -34
- package/dist/commands/marketplace.d.ts.map +0 -1
- package/dist/commands/marketplace.js +0 -2105
- package/dist/commands/marketplace.js.map +0 -1
- package/dist/commands/mcp.d.ts +0 -32
- package/dist/commands/mcp.d.ts.map +0 -1
- package/dist/commands/mcp.js +0 -395
- package/dist/commands/mcp.js.map +0 -1
- package/dist/commands/models.d.ts +0 -18
- package/dist/commands/models.d.ts.map +0 -1
- package/dist/commands/models.js +0 -207
- package/dist/commands/models.js.map +0 -1
- package/dist/commands/persona.d.ts +0 -13
- package/dist/commands/persona.d.ts.map +0 -1
- package/dist/commands/persona.js +0 -560
- package/dist/commands/persona.js.map +0 -1
- package/dist/commands/postprocessors.d.ts +0 -13
- package/dist/commands/postprocessors.d.ts.map +0 -1
- package/dist/commands/postprocessors.js +0 -558
- package/dist/commands/postprocessors.js.map +0 -1
- package/dist/commands/preprocessors.d.ts +0 -13
- package/dist/commands/preprocessors.d.ts.map +0 -1
- package/dist/commands/preprocessors.js +0 -558
- package/dist/commands/preprocessors.js.map +0 -1
- package/dist/commands/production.d.ts +0 -13
- package/dist/commands/production.d.ts.map +0 -1
- package/dist/commands/production.js +0 -588
- package/dist/commands/production.js.map +0 -1
- package/dist/commands/push-helpers.d.ts +0 -42
- package/dist/commands/push-helpers.d.ts.map +0 -1
- package/dist/commands/push-helpers.js +0 -48
- package/dist/commands/push-helpers.js.map +0 -1
- package/dist/commands/push.d.ts +0 -31
- package/dist/commands/push.d.ts.map +0 -1
- package/dist/commands/push.js +0 -1262
- package/dist/commands/push.js.map +0 -1
- package/dist/commands/pushBackup.d.ts +0 -78
- package/dist/commands/pushBackup.d.ts.map +0 -1
- package/dist/commands/pushBackup.js +0 -274
- package/dist/commands/pushBackup.js.map +0 -1
- package/dist/commands/resources.d.ts +0 -13
- package/dist/commands/resources.d.ts.map +0 -1
- package/dist/commands/resources.js +0 -377
- package/dist/commands/resources.js.map +0 -1
- package/dist/commands/skills.d.ts +0 -13
- package/dist/commands/skills.d.ts.map +0 -1
- package/dist/commands/skills.js +0 -618
- package/dist/commands/skills.js.map +0 -1
- package/dist/commands/source.d.ts +0 -72
- package/dist/commands/source.d.ts.map +0 -1
- package/dist/commands/source.js +0 -134
- package/dist/commands/source.js.map +0 -1
- package/dist/commands/status.d.ts +0 -14
- package/dist/commands/status.d.ts.map +0 -1
- package/dist/commands/status.js +0 -731
- package/dist/commands/status.js.map +0 -1
- package/dist/commands/sync.d.ts +0 -28
- package/dist/commands/sync.d.ts.map +0 -1
- package/dist/commands/sync.js +0 -802
- package/dist/commands/sync.js.map +0 -1
- package/dist/commands/telemetry.d.ts +0 -6
- package/dist/commands/telemetry.d.ts.map +0 -1
- package/dist/commands/telemetry.js +0 -42
- package/dist/commands/telemetry.js.map +0 -1
- package/dist/commands/test-output.helpers.d.ts +0 -24
- package/dist/commands/test-output.helpers.d.ts.map +0 -1
- package/dist/commands/test-output.helpers.js +0 -62
- package/dist/commands/test-output.helpers.js.map +0 -1
- package/dist/commands/test.d.ts +0 -9
- package/dist/commands/test.d.ts.map +0 -1
- package/dist/commands/test.js +0 -787
- package/dist/commands/test.js.map +0 -1
- package/dist/commands/update.d.ts +0 -14
- package/dist/commands/update.d.ts.map +0 -1
- package/dist/commands/update.js +0 -97
- package/dist/commands/update.js.map +0 -1
- package/dist/commands/webhooks.d.ts +0 -13
- package/dist/commands/webhooks.d.ts.map +0 -1
- package/dist/commands/webhooks.js +0 -691
- package/dist/commands/webhooks.js.map +0 -1
- package/dist/compiler/agent-traverser.d.ts +0 -140
- package/dist/compiler/agent-traverser.d.ts.map +0 -1
- package/dist/compiler/agent-traverser.js +0 -420
- package/dist/compiler/agent-traverser.js.map +0 -1
- package/dist/compiler/bundler.d.ts +0 -43
- package/dist/compiler/bundler.d.ts.map +0 -1
- package/dist/compiler/bundler.js +0 -188
- package/dist/compiler/bundler.js.map +0 -1
- package/dist/compiler/compiler.d.ts +0 -208
- package/dist/compiler/compiler.d.ts.map +0 -1
- package/dist/compiler/compiler.js +0 -706
- package/dist/compiler/compiler.js.map +0 -1
- package/dist/compiler/index.d.ts +0 -38
- package/dist/compiler/index.d.ts.map +0 -1
- package/dist/compiler/index.js +0 -43
- package/dist/compiler/index.js.map +0 -1
- package/dist/compiler/plugins/agent.plugin.d.ts +0 -58
- package/dist/compiler/plugins/agent.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/agent.plugin.js +0 -161
- package/dist/compiler/plugins/agent.plugin.js.map +0 -1
- package/dist/compiler/plugins/base.d.ts +0 -334
- package/dist/compiler/plugins/base.d.ts.map +0 -1
- package/dist/compiler/plugins/base.js +0 -353
- package/dist/compiler/plugins/base.js.map +0 -1
- package/dist/compiler/plugins/device-trigger.plugin.d.ts +0 -38
- package/dist/compiler/plugins/device-trigger.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/device-trigger.plugin.js +0 -107
- package/dist/compiler/plugins/device-trigger.plugin.js.map +0 -1
- package/dist/compiler/plugins/device.plugin.d.ts +0 -39
- package/dist/compiler/plugins/device.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/device.plugin.js +0 -77
- package/dist/compiler/plugins/device.plugin.js.map +0 -1
- package/dist/compiler/plugins/job.plugin.d.ts +0 -34
- package/dist/compiler/plugins/job.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/job.plugin.js +0 -108
- package/dist/compiler/plugins/job.plugin.js.map +0 -1
- package/dist/compiler/plugins/mcp-server.plugin.d.ts +0 -38
- package/dist/compiler/plugins/mcp-server.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/mcp-server.plugin.js +0 -107
- package/dist/compiler/plugins/mcp-server.plugin.js.map +0 -1
- package/dist/compiler/plugins/postprocessor.plugin.d.ts +0 -21
- package/dist/compiler/plugins/postprocessor.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/postprocessor.plugin.js +0 -36
- package/dist/compiler/plugins/postprocessor.plugin.js.map +0 -1
- package/dist/compiler/plugins/preprocessor.plugin.d.ts +0 -21
- package/dist/compiler/plugins/preprocessor.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/preprocessor.plugin.js +0 -38
- package/dist/compiler/plugins/preprocessor.plugin.js.map +0 -1
- package/dist/compiler/plugins/processor-base.d.ts +0 -17
- package/dist/compiler/plugins/processor-base.d.ts.map +0 -1
- package/dist/compiler/plugins/processor-base.js +0 -27
- package/dist/compiler/plugins/processor-base.js.map +0 -1
- package/dist/compiler/plugins/registry.d.ts +0 -62
- package/dist/compiler/plugins/registry.d.ts.map +0 -1
- package/dist/compiler/plugins/registry.js +0 -113
- package/dist/compiler/plugins/registry.js.map +0 -1
- package/dist/compiler/plugins/skill.plugin.d.ts +0 -106
- package/dist/compiler/plugins/skill.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/skill.plugin.js +0 -316
- package/dist/compiler/plugins/skill.plugin.js.map +0 -1
- package/dist/compiler/plugins/tool.plugin.d.ts +0 -69
- package/dist/compiler/plugins/tool.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/tool.plugin.js +0 -262
- package/dist/compiler/plugins/tool.plugin.js.map +0 -1
- package/dist/compiler/plugins/webhook.plugin.d.ts +0 -38
- package/dist/compiler/plugins/webhook.plugin.d.ts.map +0 -1
- package/dist/compiler/plugins/webhook.plugin.js +0 -117
- package/dist/compiler/plugins/webhook.plugin.js.map +0 -1
- package/dist/compiler/source-writer.d.ts +0 -129
- package/dist/compiler/source-writer.d.ts.map +0 -1
- package/dist/compiler/source-writer.js +0 -329
- package/dist/compiler/source-writer.js.map +0 -1
- package/dist/compiler/types.d.ts +0 -391
- package/dist/compiler/types.d.ts.map +0 -1
- package/dist/compiler/types.js +0 -30
- package/dist/compiler/types.js.map +0 -1
- package/dist/compiler/utils/ast-helpers.d.ts +0 -106
- package/dist/compiler/utils/ast-helpers.d.ts.map +0 -1
- package/dist/compiler/utils/ast-helpers.js +0 -356
- package/dist/compiler/utils/ast-helpers.js.map +0 -1
- package/dist/compiler/utils/common.d.ts +0 -22
- package/dist/compiler/utils/common.d.ts.map +0 -1
- package/dist/compiler/utils/common.js +0 -55
- package/dist/compiler/utils/common.js.map +0 -1
- package/dist/compiler/utils/file-discovery.d.ts +0 -35
- package/dist/compiler/utils/file-discovery.d.ts.map +0 -1
- package/dist/compiler/utils/file-discovery.js +0 -60
- package/dist/compiler/utils/file-discovery.js.map +0 -1
- package/dist/compiler/utils/path-resolver.d.ts +0 -83
- package/dist/compiler/utils/path-resolver.d.ts.map +0 -1
- package/dist/compiler/utils/path-resolver.js +0 -162
- package/dist/compiler/utils/path-resolver.js.map +0 -1
- package/dist/compiler/utils/reference-resolver.d.ts +0 -196
- package/dist/compiler/utils/reference-resolver.d.ts.map +0 -1
- package/dist/compiler/utils/reference-resolver.js +0 -1026
- package/dist/compiler/utils/reference-resolver.js.map +0 -1
- package/dist/compiler/utils/schema-converter.d.ts +0 -52
- package/dist/compiler/utils/schema-converter.d.ts.map +0 -1
- package/dist/compiler/utils/schema-converter.js +0 -170
- package/dist/compiler/utils/schema-converter.js.map +0 -1
- package/dist/compiler/utils/workspace.d.ts +0 -35
- package/dist/compiler/utils/workspace.d.ts.map +0 -1
- package/dist/compiler/utils/workspace.js +0 -121
- package/dist/compiler/utils/workspace.js.map +0 -1
- package/dist/config/compile.constants.d.ts +0 -75
- package/dist/config/compile.constants.d.ts.map +0 -1
- package/dist/config/compile.constants.js +0 -95
- package/dist/config/compile.constants.js.map +0 -1
- package/dist/config/constants.d.ts +0 -49
- package/dist/config/constants.d.ts.map +0 -1
- package/dist/config/constants.js +0 -69
- package/dist/config/constants.js.map +0 -1
- package/dist/errors/auth.error.d.ts +0 -34
- package/dist/errors/auth.error.d.ts.map +0 -1
- package/dist/errors/auth.error.js +0 -29
- package/dist/errors/auth.error.js.map +0 -1
- package/dist/errors/index.d.ts +0 -5
- package/dist/errors/index.d.ts.map +0 -1
- package/dist/errors/index.js +0 -5
- package/dist/errors/index.js.map +0 -1
- package/dist/index.d.ts.map +0 -1
- package/dist/instances/basket.instance.d.ts +0 -82
- package/dist/instances/basket.instance.d.ts.map +0 -1
- package/dist/instances/basket.instance.js +0 -245
- package/dist/instances/basket.instance.js.map +0 -1
- package/dist/instances/data.entry.instance.d.ts +0 -50
- package/dist/instances/data.entry.instance.d.ts.map +0 -1
- package/dist/instances/data.entry.instance.js +0 -163
- package/dist/instances/data.entry.instance.js.map +0 -1
- package/dist/instances/job.instance.d.ts +0 -133
- package/dist/instances/job.instance.d.ts.map +0 -1
- package/dist/instances/job.instance.js +0 -180
- package/dist/instances/job.instance.js.map +0 -1
- package/dist/instances/order.instance.d.ts +0 -50
- package/dist/instances/order.instance.d.ts.map +0 -1
- package/dist/instances/order.instance.js +0 -199
- package/dist/instances/order.instance.js.map +0 -1
- package/dist/instances/product.instance.d.ts +0 -43
- package/dist/instances/product.instance.d.ts.map +0 -1
- package/dist/instances/product.instance.js +0 -145
- package/dist/instances/product.instance.js.map +0 -1
- package/dist/instances/product.pagination.instance.d.ts +0 -102
- package/dist/instances/product.pagination.instance.d.ts.map +0 -1
- package/dist/instances/product.pagination.instance.js +0 -156
- package/dist/instances/product.pagination.instance.js.map +0 -1
- package/dist/instances/product.search.instance.d.ts +0 -81
- package/dist/instances/product.search.instance.d.ts.map +0 -1
- package/dist/instances/product.search.instance.js +0 -121
- package/dist/instances/product.search.instance.js.map +0 -1
- package/dist/instances/user.instance.d.ts +0 -56
- package/dist/instances/user.instance.d.ts.map +0 -1
- package/dist/instances/user.instance.js +0 -188
- package/dist/instances/user.instance.js.map +0 -1
- package/dist/interfaces/admin.d.ts +0 -64
- package/dist/interfaces/admin.d.ts.map +0 -1
- package/dist/interfaces/admin.js +0 -6
- package/dist/interfaces/admin.js.map +0 -1
- package/dist/interfaces/agent.d.ts +0 -399
- package/dist/interfaces/agent.d.ts.map +0 -1
- package/dist/interfaces/agent.js +0 -6
- package/dist/interfaces/agent.js.map +0 -1
- package/dist/interfaces/backup.d.ts +0 -17
- package/dist/interfaces/backup.d.ts.map +0 -1
- package/dist/interfaces/backup.js +0 -7
- package/dist/interfaces/backup.js.map +0 -1
- package/dist/interfaces/baskets.d.ts +0 -80
- package/dist/interfaces/baskets.d.ts.map +0 -1
- package/dist/interfaces/baskets.js +0 -20
- package/dist/interfaces/baskets.js.map +0 -1
- package/dist/interfaces/cdn.d.ts +0 -25
- package/dist/interfaces/cdn.d.ts.map +0 -1
- package/dist/interfaces/cdn.js +0 -6
- package/dist/interfaces/cdn.js.map +0 -1
- package/dist/interfaces/chat.d.ts +0 -98
- package/dist/interfaces/chat.d.ts.map +0 -1
- package/dist/interfaces/chat.js +0 -6
- package/dist/interfaces/chat.js.map +0 -1
- package/dist/interfaces/common.d.ts +0 -64
- package/dist/interfaces/common.d.ts.map +0 -1
- package/dist/interfaces/common.js +0 -9
- package/dist/interfaces/common.js.map +0 -1
- package/dist/interfaces/custom.data.d.ts +0 -83
- package/dist/interfaces/custom.data.d.ts.map +0 -1
- package/dist/interfaces/custom.data.js +0 -6
- package/dist/interfaces/custom.data.js.map +0 -1
- package/dist/interfaces/deploy.d.ts +0 -15
- package/dist/interfaces/deploy.d.ts.map +0 -1
- package/dist/interfaces/deploy.js +0 -5
- package/dist/interfaces/deploy.js.map +0 -1
- package/dist/interfaces/dev.d.ts +0 -54
- package/dist/interfaces/dev.d.ts.map +0 -1
- package/dist/interfaces/dev.js +0 -6
- package/dist/interfaces/dev.js.map +0 -1
- package/dist/interfaces/device-triggers.d.ts +0 -80
- package/dist/interfaces/device-triggers.d.ts.map +0 -1
- package/dist/interfaces/device-triggers.js +0 -6
- package/dist/interfaces/device-triggers.js.map +0 -1
- package/dist/interfaces/devices.d.ts +0 -74
- package/dist/interfaces/devices.d.ts.map +0 -1
- package/dist/interfaces/devices.js +0 -5
- package/dist/interfaces/devices.js.map +0 -1
- package/dist/interfaces/index.d.ts +0 -15
- package/dist/interfaces/index.d.ts.map +0 -1
- package/dist/interfaces/index.js +0 -8
- package/dist/interfaces/index.js.map +0 -1
- package/dist/interfaces/init.d.ts +0 -42
- package/dist/interfaces/init.d.ts.map +0 -1
- package/dist/interfaces/init.js +0 -5
- package/dist/interfaces/init.js.map +0 -1
- package/dist/interfaces/jobs.d.ts +0 -149
- package/dist/interfaces/jobs.d.ts.map +0 -1
- package/dist/interfaces/jobs.js +0 -6
- package/dist/interfaces/jobs.js.map +0 -1
- package/dist/interfaces/logs.d.ts +0 -44
- package/dist/interfaces/logs.d.ts.map +0 -1
- package/dist/interfaces/logs.js +0 -6
- package/dist/interfaces/logs.js.map +0 -1
- package/dist/interfaces/lua.d.ts +0 -37
- package/dist/interfaces/lua.d.ts.map +0 -1
- package/dist/interfaces/lua.js +0 -6
- package/dist/interfaces/lua.js.map +0 -1
- package/dist/interfaces/marketplace.d.ts +0 -171
- package/dist/interfaces/marketplace.d.ts.map +0 -1
- package/dist/interfaces/marketplace.js +0 -3
- package/dist/interfaces/marketplace.js.map +0 -1
- package/dist/interfaces/mcp.d.ts +0 -96
- package/dist/interfaces/mcp.d.ts.map +0 -1
- package/dist/interfaces/mcp.js +0 -9
- package/dist/interfaces/mcp.js.map +0 -1
- package/dist/interfaces/message.d.ts +0 -16
- package/dist/interfaces/message.d.ts.map +0 -1
- package/dist/interfaces/message.js +0 -2
- package/dist/interfaces/message.js.map +0 -1
- package/dist/interfaces/orders.d.ts +0 -68
- package/dist/interfaces/orders.d.ts.map +0 -1
- package/dist/interfaces/orders.js +0 -20
- package/dist/interfaces/orders.js.map +0 -1
- package/dist/interfaces/persona.d.ts +0 -44
- package/dist/interfaces/persona.d.ts.map +0 -1
- package/dist/interfaces/persona.js +0 -6
- package/dist/interfaces/persona.js.map +0 -1
- package/dist/interfaces/postprocessors.d.ts +0 -15
- package/dist/interfaces/postprocessors.d.ts.map +0 -1
- package/dist/interfaces/postprocessors.js +0 -5
- package/dist/interfaces/postprocessors.js.map +0 -1
- package/dist/interfaces/preprocessors.d.ts +0 -15
- package/dist/interfaces/preprocessors.d.ts.map +0 -1
- package/dist/interfaces/preprocessors.js +0 -5
- package/dist/interfaces/preprocessors.js.map +0 -1
- package/dist/interfaces/product.d.ts +0 -92
- package/dist/interfaces/product.d.ts.map +0 -1
- package/dist/interfaces/product.js +0 -6
- package/dist/interfaces/product.js.map +0 -1
- package/dist/interfaces/push.d.ts +0 -27
- package/dist/interfaces/push.d.ts.map +0 -1
- package/dist/interfaces/push.js +0 -5
- package/dist/interfaces/push.js.map +0 -1
- package/dist/interfaces/skills.d.ts +0 -137
- package/dist/interfaces/skills.d.ts.map +0 -1
- package/dist/interfaces/skills.js +0 -6
- package/dist/interfaces/skills.js.map +0 -1
- package/dist/interfaces/test.d.ts +0 -37
- package/dist/interfaces/test.d.ts.map +0 -1
- package/dist/interfaces/test.js +0 -5
- package/dist/interfaces/test.js.map +0 -1
- package/dist/interfaces/unifiedto.d.ts +0 -141
- package/dist/interfaces/unifiedto.d.ts.map +0 -1
- package/dist/interfaces/unifiedto.js +0 -6
- package/dist/interfaces/unifiedto.js.map +0 -1
- package/dist/interfaces/user.d.ts +0 -75
- package/dist/interfaces/user.d.ts.map +0 -1
- package/dist/interfaces/user.js +0 -2
- package/dist/interfaces/user.js.map +0 -1
- package/dist/interfaces/webhooks.d.ts +0 -97
- package/dist/interfaces/webhooks.d.ts.map +0 -1
- package/dist/interfaces/webhooks.js +0 -6
- package/dist/interfaces/webhooks.js.map +0 -1
- package/dist/interfaces/whatsapp-templates.d.ts +0 -105
- package/dist/interfaces/whatsapp-templates.d.ts.map +0 -1
- package/dist/interfaces/whatsapp-templates.js +0 -6
- package/dist/interfaces/whatsapp-templates.js.map +0 -1
- package/dist/primitives/agent.handler.d.ts +0 -71
- package/dist/primitives/agent.handler.d.ts.map +0 -1
- package/dist/primitives/agent.handler.js +0 -226
- package/dist/primitives/agent.handler.js.map +0 -1
- package/dist/primitives/base.handler.d.ts +0 -229
- package/dist/primitives/base.handler.d.ts.map +0 -1
- package/dist/primitives/base.handler.js +0 -620
- package/dist/primitives/base.handler.js.map +0 -1
- package/dist/primitives/device-trigger.handler.d.ts +0 -56
- package/dist/primitives/device-trigger.handler.d.ts.map +0 -1
- package/dist/primitives/device-trigger.handler.js +0 -99
- package/dist/primitives/device-trigger.handler.js.map +0 -1
- package/dist/primitives/device.handler.d.ts +0 -57
- package/dist/primitives/device.handler.d.ts.map +0 -1
- package/dist/primitives/device.handler.js +0 -103
- package/dist/primitives/device.handler.js.map +0 -1
- package/dist/primitives/index.d.ts +0 -51
- package/dist/primitives/index.d.ts.map +0 -1
- package/dist/primitives/index.js +0 -75
- package/dist/primitives/index.js.map +0 -1
- package/dist/primitives/job.handler.d.ts +0 -53
- package/dist/primitives/job.handler.d.ts.map +0 -1
- package/dist/primitives/job.handler.js +0 -110
- package/dist/primitives/job.handler.js.map +0 -1
- package/dist/primitives/mcp-server.handler.d.ts +0 -93
- package/dist/primitives/mcp-server.handler.d.ts.map +0 -1
- package/dist/primitives/mcp-server.handler.js +0 -216
- package/dist/primitives/mcp-server.handler.js.map +0 -1
- package/dist/primitives/postprocessor.handler.d.ts +0 -44
- package/dist/primitives/postprocessor.handler.d.ts.map +0 -1
- package/dist/primitives/postprocessor.handler.js +0 -71
- package/dist/primitives/postprocessor.handler.js.map +0 -1
- package/dist/primitives/preprocessor.handler.d.ts +0 -44
- package/dist/primitives/preprocessor.handler.d.ts.map +0 -1
- package/dist/primitives/preprocessor.handler.js +0 -72
- package/dist/primitives/preprocessor.handler.js.map +0 -1
- package/dist/primitives/skill.handler.d.ts +0 -47
- package/dist/primitives/skill.handler.d.ts.map +0 -1
- package/dist/primitives/skill.handler.js +0 -229
- package/dist/primitives/skill.handler.js.map +0 -1
- package/dist/primitives/types.d.ts +0 -91
- package/dist/primitives/types.d.ts.map +0 -1
- package/dist/primitives/types.js +0 -17
- package/dist/primitives/types.js.map +0 -1
- package/dist/primitives/webhook.handler.d.ts +0 -47
- package/dist/primitives/webhook.handler.d.ts.map +0 -1
- package/dist/primitives/webhook.handler.js +0 -87
- package/dist/primitives/webhook.handler.js.map +0 -1
- package/dist/services/analytics.d.ts +0 -57
- package/dist/services/analytics.d.ts.map +0 -1
- package/dist/services/analytics.js +0 -317
- package/dist/services/analytics.js.map +0 -1
- package/dist/services/auth.d.ts +0 -72
- package/dist/services/auth.d.ts.map +0 -1
- package/dist/services/auth.js +0 -173
- package/dist/services/auth.js.map +0 -1
- package/dist/services/sandbox.service.d.ts +0 -105
- package/dist/services/sandbox.service.d.ts.map +0 -1
- package/dist/services/sandbox.service.js +0 -531
- package/dist/services/sandbox.service.js.map +0 -1
- package/dist/types/api-contracts.d.ts +0 -287
- package/dist/types/api-contracts.d.ts.map +0 -1
- package/dist/types/api-contracts.js +0 -2
- package/dist/types/api-contracts.js.map +0 -1
- package/dist/types/index.d.ts +0 -28
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -30
- package/dist/types/index.js.map +0 -1
- package/dist/types/skill.d.ts +0 -1079
- package/dist/types/skill.d.ts.map +0 -1
- package/dist/types/skill.js +0 -688
- package/dist/types/skill.js.map +0 -1
- package/dist/types/tool-validation.d.ts +0 -35
- package/dist/types/tool-validation.d.ts.map +0 -1
- package/dist/types/tool-validation.js +0 -43
- package/dist/types/tool-validation.js.map +0 -1
- package/dist/types/yaml.types.d.ts +0 -91
- package/dist/types/yaml.types.d.ts.map +0 -1
- package/dist/types/yaml.types.js +0 -5
- package/dist/types/yaml.types.js.map +0 -1
- package/dist/utils/aliases.d.ts +0 -7
- package/dist/utils/aliases.d.ts.map +0 -1
- package/dist/utils/aliases.js +0 -492
- package/dist/utils/aliases.js.map +0 -1
- package/dist/utils/artifact-loader.d.ts +0 -152
- package/dist/utils/artifact-loader.d.ts.map +0 -1
- package/dist/utils/artifact-loader.js +0 -284
- package/dist/utils/artifact-loader.js.map +0 -1
- package/dist/utils/auth-flows.d.ts +0 -55
- package/dist/utils/auth-flows.d.ts.map +0 -1
- package/dist/utils/auth-flows.js +0 -246
- package/dist/utils/auth-flows.js.map +0 -1
- package/dist/utils/backup-helpers.d.ts +0 -238
- package/dist/utils/backup-helpers.d.ts.map +0 -1
- package/dist/utils/backup-helpers.js +0 -704
- package/dist/utils/backup-helpers.js.map +0 -1
- package/dist/utils/build-manifest-from-disk.d.ts +0 -8
- package/dist/utils/build-manifest-from-disk.d.ts.map +0 -1
- package/dist/utils/build-manifest-from-disk.js +0 -21
- package/dist/utils/build-manifest-from-disk.js.map +0 -1
- package/dist/utils/bundle-upload.d.ts +0 -42
- package/dist/utils/bundle-upload.d.ts.map +0 -1
- package/dist/utils/bundle-upload.js +0 -90
- package/dist/utils/bundle-upload.js.map +0 -1
- package/dist/utils/chat-attachments.d.ts +0 -15
- package/dist/utils/chat-attachments.d.ts.map +0 -1
- package/dist/utils/chat-attachments.js +0 -116
- package/dist/utils/chat-attachments.js.map +0 -1
- package/dist/utils/cli.d.ts +0 -62
- package/dist/utils/cli.d.ts.map +0 -1
- package/dist/utils/cli.js +0 -198
- package/dist/utils/cli.js.map +0 -1
- package/dist/utils/command-utils.d.ts +0 -46
- package/dist/utils/command-utils.d.ts.map +0 -1
- package/dist/utils/command-utils.js +0 -74
- package/dist/utils/command-utils.js.map +0 -1
- package/dist/utils/deploy-helpers.d.ts +0 -40
- package/dist/utils/deploy-helpers.d.ts.map +0 -1
- package/dist/utils/deploy-helpers.js +0 -76
- package/dist/utils/deploy-helpers.js.map +0 -1
- package/dist/utils/env-loader.utils.d.ts +0 -19
- package/dist/utils/env-loader.utils.d.ts.map +0 -1
- package/dist/utils/env-loader.utils.js +0 -90
- package/dist/utils/env-loader.utils.js.map +0 -1
- package/dist/utils/files.d.ts +0 -65
- package/dist/utils/files.d.ts.map +0 -1
- package/dist/utils/files.js +0 -193
- package/dist/utils/files.js.map +0 -1
- package/dist/utils/hints.d.ts +0 -81
- package/dist/utils/hints.d.ts.map +0 -1
- package/dist/utils/hints.js +0 -81
- package/dist/utils/hints.js.map +0 -1
- package/dist/utils/init-agent.d.ts +0 -86
- package/dist/utils/init-agent.d.ts.map +0 -1
- package/dist/utils/init-agent.js +0 -201
- package/dist/utils/init-agent.js.map +0 -1
- package/dist/utils/init-helpers.d.ts +0 -37
- package/dist/utils/init-helpers.d.ts.map +0 -1
- package/dist/utils/init-helpers.js +0 -78
- package/dist/utils/init-helpers.js.map +0 -1
- package/dist/utils/init-prompts.d.ts +0 -74
- package/dist/utils/init-prompts.d.ts.map +0 -1
- package/dist/utils/init-prompts.js +0 -256
- package/dist/utils/init-prompts.js.map +0 -1
- package/dist/utils/prompt-handler.d.ts +0 -17
- package/dist/utils/prompt-handler.d.ts.map +0 -1
- package/dist/utils/prompt-handler.js +0 -49
- package/dist/utils/prompt-handler.js.map +0 -1
- package/dist/utils/sandbox-storage.d.ts +0 -83
- package/dist/utils/sandbox-storage.d.ts.map +0 -1
- package/dist/utils/sandbox-storage.js +0 -211
- package/dist/utils/sandbox-storage.js.map +0 -1
- package/dist/utils/sandbox.d.ts +0 -76
- package/dist/utils/sandbox.d.ts.map +0 -1
- package/dist/utils/sandbox.js +0 -664
- package/dist/utils/sandbox.js.map +0 -1
- package/dist/utils/semver.d.ts +0 -40
- package/dist/utils/semver.d.ts.map +0 -1
- package/dist/utils/semver.js +0 -99
- package/dist/utils/semver.js.map +0 -1
- package/dist/utils/suggest.d.ts +0 -3
- package/dist/utils/suggest.d.ts.map +0 -1
- package/dist/utils/suggest.js +0 -32
- package/dist/utils/suggest.js.map +0 -1
- package/dist/utils/sync-display.d.ts +0 -28
- package/dist/utils/sync-display.d.ts.map +0 -1
- package/dist/utils/sync-display.js +0 -168
- package/dist/utils/sync-display.js.map +0 -1
- package/dist/utils/sync-fetch.d.ts +0 -108
- package/dist/utils/sync-fetch.d.ts.map +0 -1
- package/dist/utils/sync-fetch.js +0 -294
- package/dist/utils/sync-fetch.js.map +0 -1
- package/dist/utils/sync-helpers.d.ts +0 -7
- package/dist/utils/sync-helpers.d.ts.map +0 -1
- package/dist/utils/sync-helpers.js +0 -7
- package/dist/utils/sync-helpers.js.map +0 -1
- package/dist/utils/version-check.d.ts +0 -37
- package/dist/utils/version-check.d.ts.map +0 -1
- package/dist/utils/version-check.js +0 -117
- package/dist/utils/version-check.js.map +0 -1
- package/dist/utils/write-info.d.ts +0 -9
- package/dist/utils/write-info.d.ts.map +0 -1
- package/dist/utils/write-info.js +0 -11
- package/dist/utils/write-info.js.map +0 -1
- package/node_modules/@lua/shared-source-sync/dist/index.d.mts +0 -424
- package/node_modules/@lua/shared-source-sync/dist/index.d.ts +0 -424
- package/node_modules/@lua/shared-source-sync/dist/index.js +0 -536
- package/node_modules/@lua/shared-source-sync/dist/index.mjs +0 -491
- package/node_modules/@lua/shared-source-sync/package.json +0 -26
- package/node_modules/@lua/shared-source-sync/src/archive.ts +0 -98
- package/node_modules/@lua/shared-source-sync/src/filter.ts +0 -72
- package/node_modules/@lua/shared-source-sync/src/hash.ts +0 -40
- package/node_modules/@lua/shared-source-sync/src/http.ts +0 -132
- package/node_modules/@lua/shared-source-sync/src/index.ts +0 -56
- package/node_modules/@lua/shared-source-sync/src/pull.ts +0 -50
- package/node_modules/@lua/shared-source-sync/src/push.ts +0 -94
- package/node_modules/@lua/shared-source-sync/src/restore.ts +0 -83
- package/node_modules/@lua/shared-source-sync/src/skill-source.ts +0 -55
- package/node_modules/@lua/shared-source-sync/src/transfer.ts +0 -92
- package/node_modules/@lua/shared-source-sync/src/types.ts +0 -88
- package/node_modules/@lua/shared-source-sync/src/walk.ts +0 -91
- package/node_modules/@lua/shared-source-sync/tests/archive.test.ts +0 -108
- package/node_modules/@lua/shared-source-sync/tests/hash.test.ts +0 -40
- package/node_modules/@lua/shared-source-sync/tests/http.test.ts +0 -77
- package/node_modules/@lua/shared-source-sync/tests/push.test.ts +0 -162
- package/node_modules/@lua/shared-source-sync/tests/walk.test.ts +0 -84
- package/node_modules/@lua/shared-source-sync/tsconfig.json +0 -12
- package/node_modules/@lua/shared-source-sync/tsup.config.ts +0 -9
- package/node_modules/@lua/shared-source-sync/vitest.config.ts +0 -8
- package/node_modules/@lua/shared-types/dist/index.d.mts +0 -619
- package/node_modules/@lua/shared-types/dist/index.d.ts +0 -619
- package/node_modules/@lua/shared-types/dist/index.js +0 -435
- package/node_modules/@lua/shared-types/dist/index.mjs +0 -394
- package/node_modules/@lua/shared-types/package.json +0 -26
- package/node_modules/@lua/shared-types/src/agent-config.types.ts +0 -45
- package/node_modules/@lua/shared-types/src/agent-invocation.types.ts +0 -73
- package/node_modules/@lua/shared-types/src/ai-generate.types.ts +0 -74
- package/node_modules/@lua/shared-types/src/ai-generate.utils.ts +0 -16
- package/node_modules/@lua/shared-types/src/channel.type.ts +0 -23
- package/node_modules/@lua/shared-types/src/chat-history.types.ts +0 -112
- package/node_modules/@lua/shared-types/src/chat-stream.types.ts +0 -18
- package/node_modules/@lua/shared-types/src/client-tools.types.ts +0 -47
- package/node_modules/@lua/shared-types/src/device.types.ts +0 -190
- package/node_modules/@lua/shared-types/src/index.ts +0 -15
- package/node_modules/@lua/shared-types/src/model-registry.ts +0 -26
- package/node_modules/@lua/shared-types/src/persona-defaults.ts +0 -59
- package/node_modules/@lua/shared-types/src/persona-text.type.ts +0 -92
- package/node_modules/@lua/shared-types/src/sandbox-contract.ts +0 -63
- package/node_modules/@lua/shared-types/src/unstructured-types.ts +0 -58
- package/node_modules/@lua/shared-types/src/vm-execution-log.types.ts +0 -41
- package/node_modules/@lua/shared-types/tsconfig.json +0 -12
- package/node_modules/@lua/shared-types/tsup.config.ts +0 -9
- package/scripts/resolve-workspace-deps.cjs +0 -61
- /package/dist/{compiler/utils/zod-runtime.mjs → zod-runtime.mjs} +0 -0
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* CDN API Service
|
|
3
|
-
* Handles file upload and retrieval from the Lua CDN
|
|
4
|
-
*/
|
|
5
|
-
export default class CdnApi {
|
|
6
|
-
constructor(baseUrl, apiKey) {
|
|
7
|
-
this.baseUrl = baseUrl;
|
|
8
|
-
this.apiKey = apiKey;
|
|
9
|
-
}
|
|
10
|
-
/**
|
|
11
|
-
* Uploads a file to the CDN
|
|
12
|
-
* @param file - The file to upload
|
|
13
|
-
* @returns Promise resolving to the file ID
|
|
14
|
-
*/
|
|
15
|
-
async upload(file) {
|
|
16
|
-
const formData = new FormData();
|
|
17
|
-
formData.append('file', file, file.name);
|
|
18
|
-
const response = await fetch(`${this.baseUrl}/upload`, {
|
|
19
|
-
method: 'POST',
|
|
20
|
-
headers: { Authorization: `Bearer ${this.apiKey}` },
|
|
21
|
-
body: formData,
|
|
22
|
-
});
|
|
23
|
-
if (!response.ok) {
|
|
24
|
-
const error = (await response.json().catch(() => ({})));
|
|
25
|
-
throw new Error(error.message || `Upload failed: ${response.status}`);
|
|
26
|
-
}
|
|
27
|
-
const data = (await response.json());
|
|
28
|
-
return data.fileId;
|
|
29
|
-
}
|
|
30
|
-
/**
|
|
31
|
-
* Fetches a file from the CDN by its ID
|
|
32
|
-
*/
|
|
33
|
-
async get(fileId) {
|
|
34
|
-
const response = await fetch(`${this.baseUrl}/${fileId}`);
|
|
35
|
-
if (!response.ok) {
|
|
36
|
-
throw new Error(`File not found: ${response.status}`);
|
|
37
|
-
}
|
|
38
|
-
const contentType = response.headers.get('content-type') || 'application/octet-stream';
|
|
39
|
-
const contentDisposition = response.headers.get('content-disposition') || '';
|
|
40
|
-
const filenameMatch = contentDisposition.match(/filename="?([^"]+)"?/);
|
|
41
|
-
const filename = filenameMatch?.[1] || fileId;
|
|
42
|
-
const blob = await response.blob();
|
|
43
|
-
return new File([blob], filename, { type: contentType });
|
|
44
|
-
}
|
|
45
|
-
}
|
|
46
|
-
//# sourceMappingURL=cdn.api.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"cdn.api.service.js","sourceRoot":"","sources":["../../src/api/cdn.api.service.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH,MAAM,CAAC,OAAO,OAAO,MAAM;IAIzB,YAAY,OAAe,EAAE,MAAc;QACzC,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;QACvB,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,MAAM,CAAC,IAAU;QACrB,MAAM,QAAQ,GAAG,IAAI,QAAQ,EAAE,CAAC;QAChC,QAAQ,CAAC,MAAM,CAAC,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,CAAC;QAEzC,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,SAAS,EAAE;YACrD,MAAM,EAAE,MAAM;YACd,OAAO,EAAE,EAAE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE,EAAE;YACnD,IAAI,EAAE,QAAQ;SACf,CAAC,CAAC;QAEH,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACjB,MAAM,KAAK,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,CAAwB,CAAC;YAC/E,MAAM,IAAI,KAAK,CAAC,KAAK,CAAC,OAAO,IAAI,kBAAkB,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;QACxE,CAAC;QAED,MAAM,IAAI,GAAG,CAAC,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAsB,CAAC;QAC1D,OAAO,IAAI,CAAC,MAAM,CAAC;IACrB,CAAC;IAED;;OAEG;IACH,KAAK,CAAC,GAAG,CAAC,MAAc;QACtB,MAAM,QAAQ,GAAG,MAAM,KAAK,CAAC,GAAG,IAAI,CAAC,OAAO,IAAI,MAAM,EAAE,CAAC,CAAC;QAE1D,IAAI,CAAC,QAAQ,CAAC,EAAE,EAAE,CAAC;YACjB,MAAM,IAAI,KAAK,CAAC,mBAAmB,QAAQ,CAAC,MAAM,EAAE,CAAC,CAAC;QACxD,CAAC;QAED,MAAM,WAAW,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,cAAc,CAAC,IAAI,0BAA0B,CAAC;QACvF,MAAM,kBAAkB,GAAG,QAAQ,CAAC,OAAO,CAAC,GAAG,CAAC,qBAAqB,CAAC,IAAI,EAAE,CAAC;QAC7E,MAAM,aAAa,GAAG,kBAAkB,CAAC,KAAK,CAAC,sBAAsB,CAAC,CAAC;QACvE,MAAM,QAAQ,GAAG,aAAa,EAAE,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QAE9C,MAAM,IAAI,GAAG,MAAM,QAAQ,CAAC,IAAI,EAAE,CAAC;QACnC,OAAO,IAAI,IAAI,CAAC,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC,CAAC;IAC3D,CAAC;CACF"}
|
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
import { ChatResponse } from '../interfaces/chat.js';
|
|
2
|
-
import { HttpClient } from './http.client.js';
|
|
3
|
-
import { ApiResponse } from '../interfaces/common.js';
|
|
4
|
-
import { ChatRequest } from '../interfaces/chat.js';
|
|
5
|
-
export default class ChatApi extends HttpClient {
|
|
6
|
-
private apiKey;
|
|
7
|
-
/**
|
|
8
|
-
* Creates an instance of ChatApi
|
|
9
|
-
* @param baseUrl - The base URL for the API
|
|
10
|
-
* @param apiKey - The API key for authentication
|
|
11
|
-
*/
|
|
12
|
-
constructor(baseUrl: string, apiKey: string);
|
|
13
|
-
/**
|
|
14
|
-
* Sends a message to an agent and receives a response
|
|
15
|
-
* @param agentId - The unique identifier of the agent to chat with
|
|
16
|
-
* @param chatData - The chat request data including message, conversation history, and context
|
|
17
|
-
* @returns Promise resolving to an ApiResponse containing the agent's chat response
|
|
18
|
-
* @throws Error if the agent is not found or the chat request fails
|
|
19
|
-
*/
|
|
20
|
-
sendMessage(agentId: string, chatData: ChatRequest): Promise<ApiResponse<ChatResponse>>;
|
|
21
|
-
/**
|
|
22
|
-
* Streams a message to an agent and receives chunked responses
|
|
23
|
-
* @param agentId - The unique identifier of the agent to chat with
|
|
24
|
-
* @param chatData - The chat request data including message, conversation history, and context
|
|
25
|
-
* @param onChunk - Callback function to handle each text chunk as it arrives
|
|
26
|
-
* @param onPostprocessComplete - Optional callback for when post-processing completes (receives modified response)
|
|
27
|
-
* @returns Promise resolving when stream completes
|
|
28
|
-
*/
|
|
29
|
-
sendMessageStream(agentId: string, chatData: ChatRequest, onChunk: (text: string) => void, onPostprocessComplete?: (originalResponse: string, modifiedResponse: string) => void, onPreprocessorBlocked?: (message: string) => void, onBatchAbort?: (message: string) => void, onBatchHandled?: (message: string) => void): Promise<void>;
|
|
30
|
-
/**
|
|
31
|
-
* Clears conversation history for an agent
|
|
32
|
-
* @param agentId - The unique identifier of the agent
|
|
33
|
-
* @param targetIdentifier - Optional user identifier to clear history for specific user
|
|
34
|
-
* @param threadId - Optional thread ID to clear a specific conversation thread
|
|
35
|
-
* @returns Promise resolving to an ApiResponse with confirmation
|
|
36
|
-
* @throws Error if the agent is not found or the clear operation fails
|
|
37
|
-
*/
|
|
38
|
-
clearHistory(agentId: string, targetIdentifier?: string, threadId?: string): Promise<ApiResponse<void>>;
|
|
39
|
-
}
|
|
40
|
-
//# sourceMappingURL=chat.api.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"chat.api.service.d.ts","sourceRoot":"","sources":["../../src/api/chat.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,uBAAuB,CAAC;AACrD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAEpD,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,UAAU;IAC7C,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAK3C;;;;;;OAMG;IACG,WAAW,CAAC,OAAO,EAAE,MAAM,EAAE,QAAQ,EAAE,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC,YAAY,CAAC,CAAC;IAM7F;;;;;;;OAOG;IACG,iBAAiB,CACrB,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,WAAW,EACrB,OAAO,EAAE,CAAC,IAAI,EAAE,MAAM,KAAK,IAAI,EAC/B,qBAAqB,CAAC,EAAE,CAAC,gBAAgB,EAAE,MAAM,EAAE,gBAAgB,EAAE,MAAM,KAAK,IAAI,EACpF,qBAAqB,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EACjD,YAAY,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,EACxC,cAAc,CAAC,EAAE,CAAC,OAAO,EAAE,MAAM,KAAK,IAAI,GACzC,OAAO,CAAC,IAAI,CAAC;IA6EhB;;;;;;;OAOG;IACG,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,gBAAgB,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;CAW9G"}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './http.client.js';
|
|
2
|
-
export default class ChatApi extends HttpClient {
|
|
3
|
-
/**
|
|
4
|
-
* Creates an instance of ChatApi
|
|
5
|
-
* @param baseUrl - The base URL for the API
|
|
6
|
-
* @param apiKey - The API key for authentication
|
|
7
|
-
*/
|
|
8
|
-
constructor(baseUrl, apiKey) {
|
|
9
|
-
super(baseUrl);
|
|
10
|
-
this.apiKey = apiKey;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Sends a message to an agent and receives a response
|
|
14
|
-
* @param agentId - The unique identifier of the agent to chat with
|
|
15
|
-
* @param chatData - The chat request data including message, conversation history, and context
|
|
16
|
-
* @returns Promise resolving to an ApiResponse containing the agent's chat response
|
|
17
|
-
* @throws Error if the agent is not found or the chat request fails
|
|
18
|
-
*/
|
|
19
|
-
async sendMessage(agentId, chatData) {
|
|
20
|
-
return this.httpPost(`/chat/generate/${agentId}?channel=dev`, chatData, {
|
|
21
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
22
|
-
});
|
|
23
|
-
}
|
|
24
|
-
/**
|
|
25
|
-
* Streams a message to an agent and receives chunked responses
|
|
26
|
-
* @param agentId - The unique identifier of the agent to chat with
|
|
27
|
-
* @param chatData - The chat request data including message, conversation history, and context
|
|
28
|
-
* @param onChunk - Callback function to handle each text chunk as it arrives
|
|
29
|
-
* @param onPostprocessComplete - Optional callback for when post-processing completes (receives modified response)
|
|
30
|
-
* @returns Promise resolving when stream completes
|
|
31
|
-
*/
|
|
32
|
-
async sendMessageStream(agentId, chatData, onChunk, onPostprocessComplete, onPreprocessorBlocked, onBatchAbort, onBatchHandled) {
|
|
33
|
-
const controller = new AbortController();
|
|
34
|
-
const timeoutId = setTimeout(() => controller.abort(), 5 * 60 * 1000); // 5 minute stream timeout
|
|
35
|
-
const response = await fetch(`${this.baseUrl}/chat/stream/${agentId}?channel=dev`, {
|
|
36
|
-
method: 'POST',
|
|
37
|
-
signal: controller.signal,
|
|
38
|
-
headers: {
|
|
39
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
40
|
-
'Content-Type': 'application/json',
|
|
41
|
-
},
|
|
42
|
-
body: JSON.stringify(chatData),
|
|
43
|
-
});
|
|
44
|
-
clearTimeout(timeoutId);
|
|
45
|
-
if (!response.ok) {
|
|
46
|
-
throw new Error(`HTTP error! status: ${response.status}`);
|
|
47
|
-
}
|
|
48
|
-
if (!response.body) {
|
|
49
|
-
throw new Error('Response body is not readable');
|
|
50
|
-
}
|
|
51
|
-
const reader = response.body.getReader();
|
|
52
|
-
const decoder = new TextDecoder();
|
|
53
|
-
let buffer = '';
|
|
54
|
-
try {
|
|
55
|
-
while (true) {
|
|
56
|
-
const { done, value } = await reader.read();
|
|
57
|
-
if (done)
|
|
58
|
-
break;
|
|
59
|
-
// Decode the chunk and add to buffer
|
|
60
|
-
buffer += decoder.decode(value, { stream: true });
|
|
61
|
-
// Process complete lines (chunks are separated by newlines)
|
|
62
|
-
const lines = buffer.split('\n');
|
|
63
|
-
buffer = lines.pop() || ''; // Keep incomplete line in buffer
|
|
64
|
-
for (const line of lines) {
|
|
65
|
-
if (!line.trim())
|
|
66
|
-
continue;
|
|
67
|
-
try {
|
|
68
|
-
const chunk = JSON.parse(line);
|
|
69
|
-
// Process text-delta chunks
|
|
70
|
-
if (chunk.type === 'text-delta' && chunk.textDelta) {
|
|
71
|
-
onChunk(chunk.textDelta);
|
|
72
|
-
}
|
|
73
|
-
// Process postprocess-complete event (emitted after stream when post-processors modify the response)
|
|
74
|
-
else if (chunk.type === 'postprocess-complete' && onPostprocessComplete) {
|
|
75
|
-
onPostprocessComplete(chunk.originalResponse, chunk.modifiedResponse);
|
|
76
|
-
}
|
|
77
|
-
// Process preprocessor-blocked event (emitted when a preprocessor blocks the message)
|
|
78
|
-
else if (chunk.type === 'preprocessor_blocked' && onPreprocessorBlocked) {
|
|
79
|
-
onPreprocessorBlocked(chunk.message || 'Message was blocked by a preprocessor.');
|
|
80
|
-
}
|
|
81
|
-
// Process batch-abort event (message was absorbed into an existing batch)
|
|
82
|
-
else if (chunk.type === 'batch-abort' && onBatchAbort) {
|
|
83
|
-
onBatchAbort(chunk.message || '');
|
|
84
|
-
}
|
|
85
|
-
// Process batch-handled event (batch was processed, this message was part of it)
|
|
86
|
-
else if (chunk.type === 'batch-handled' && onBatchHandled) {
|
|
87
|
-
onBatchHandled(chunk.message || '');
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
catch (error) {
|
|
91
|
-
// Skip invalid JSON lines
|
|
92
|
-
}
|
|
93
|
-
}
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
finally {
|
|
97
|
-
reader.releaseLock();
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Clears conversation history for an agent
|
|
102
|
-
* @param agentId - The unique identifier of the agent
|
|
103
|
-
* @param targetIdentifier - Optional user identifier to clear history for specific user
|
|
104
|
-
* @param threadId - Optional thread ID to clear a specific conversation thread
|
|
105
|
-
* @returns Promise resolving to an ApiResponse with confirmation
|
|
106
|
-
* @throws Error if the agent is not found or the clear operation fails
|
|
107
|
-
*/
|
|
108
|
-
async clearHistory(agentId, targetIdentifier, threadId) {
|
|
109
|
-
const params = new URLSearchParams();
|
|
110
|
-
if (targetIdentifier)
|
|
111
|
-
params.set('targetIdentifier', targetIdentifier);
|
|
112
|
-
if (threadId)
|
|
113
|
-
params.set('threadId', threadId);
|
|
114
|
-
const query = params.toString() ? `?${params.toString()}` : '';
|
|
115
|
-
const url = `/chat/history/${agentId}${query}`;
|
|
116
|
-
return this.httpDelete(url, {
|
|
117
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
}
|
|
121
|
-
//# sourceMappingURL=chat.api.service.js.map
|
|
@@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AC,EAAE,CAAC;QAC/D,MAAM,GAAG,GAAG,iBAAiB,OAAO,GAAG,KAAK,EAAE,CAAC;QAE/C,OAAO,IAAI,CAAC,UAAU,CAAO,GAAG,EAAE;YAChC,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API Credentials Management
|
|
3
|
-
* Handles loading and caching of API credentials for skill execution
|
|
4
|
-
*/
|
|
5
|
-
/**
|
|
6
|
-
* API credentials structure
|
|
7
|
-
*/
|
|
8
|
-
export interface ApiCredentials {
|
|
9
|
-
apiKey: string;
|
|
10
|
-
agentId: string;
|
|
11
|
-
}
|
|
12
|
-
/**
|
|
13
|
-
* Gets API credentials from keystore and configuration.
|
|
14
|
-
* Results are cached for subsequent calls.
|
|
15
|
-
*
|
|
16
|
-
* @returns API key and agent ID
|
|
17
|
-
* @throws Error if credentials are not found or incomplete
|
|
18
|
-
*/
|
|
19
|
-
export declare function getCredentials(): Promise<ApiCredentials>;
|
|
20
|
-
/**
|
|
21
|
-
* Clears the cached credentials.
|
|
22
|
-
* Useful for testing or when credentials change.
|
|
23
|
-
*/
|
|
24
|
-
export declare function clearCredentialsCache(): void;
|
|
25
|
-
//# sourceMappingURL=credentials.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../src/api/credentials.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAKH;;GAEG;AACH,MAAM,WAAW,cAAc;IAC7B,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;CACjB;AAOD;;;;;;GAMG;AACH,wBAAsB,cAAc,IAAI,OAAO,CAAC,cAAc,CAAC,CAsB9D;AAED;;;GAGG;AACH,wBAAgB,qBAAqB,IAAI,IAAI,CAE5C"}
|
package/dist/api/credentials.js
DELETED
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* API Credentials Management
|
|
3
|
-
* Handles loading and caching of API credentials for skill execution
|
|
4
|
-
*/
|
|
5
|
-
import { requireAuth } from '../utils/command-utils.js';
|
|
6
|
-
import { readYamlConfig } from '../utils/files.js';
|
|
7
|
-
/**
|
|
8
|
-
* Cached credentials to avoid repeated file/keychain access
|
|
9
|
-
*/
|
|
10
|
-
let cachedCredentials = null;
|
|
11
|
-
/**
|
|
12
|
-
* Gets API credentials from keystore and configuration.
|
|
13
|
-
* Results are cached for subsequent calls.
|
|
14
|
-
*
|
|
15
|
-
* @returns API key and agent ID
|
|
16
|
-
* @throws Error if credentials are not found or incomplete
|
|
17
|
-
*/
|
|
18
|
-
export async function getCredentials() {
|
|
19
|
-
// Return cached credentials if available
|
|
20
|
-
if (cachedCredentials) {
|
|
21
|
-
return cachedCredentials;
|
|
22
|
-
}
|
|
23
|
-
// Load and validate API key from keystore
|
|
24
|
-
const apiKey = await requireAuth();
|
|
25
|
-
// Load agent ID from YAML file
|
|
26
|
-
const config = readYamlConfig();
|
|
27
|
-
if (!config?.agent?.agentId) {
|
|
28
|
-
throw new Error('No agent ID found in lua.skill.yaml. Please run "lua init" first.');
|
|
29
|
-
}
|
|
30
|
-
// Cache and return credentials
|
|
31
|
-
cachedCredentials = {
|
|
32
|
-
apiKey,
|
|
33
|
-
agentId: config.agent.agentId,
|
|
34
|
-
};
|
|
35
|
-
return cachedCredentials;
|
|
36
|
-
}
|
|
37
|
-
/**
|
|
38
|
-
* Clears the cached credentials.
|
|
39
|
-
* Useful for testing or when credentials change.
|
|
40
|
-
*/
|
|
41
|
-
export function clearCredentialsCache() {
|
|
42
|
-
cachedCredentials = null;
|
|
43
|
-
}
|
|
44
|
-
//# sourceMappingURL=credentials.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../src/api/credentials.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,cAAc,EAAE,MAAM,mBAAmB,CAAC;AAUnD;;GAEG;AACH,IAAI,iBAAiB,GAA0B,IAAI,CAAC;AAEpD;;;;;;GAMG;AACH,MAAM,CAAC,KAAK,UAAU,cAAc;IAClC,yCAAyC;IACzC,IAAI,iBAAiB,EAAE,CAAC;QACtB,OAAO,iBAAiB,CAAC;IAC3B,CAAC;IAED,0CAA0C;IAC1C,MAAM,MAAM,GAAG,MAAM,WAAW,EAAE,CAAC;IAEnC,+BAA+B;IAC/B,MAAM,MAAM,GAAG,cAAc,EAAE,CAAC;IAChC,IAAI,CAAC,MAAM,EAAE,KAAK,EAAE,OAAO,EAAE,CAAC;QAC5B,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;IACvF,CAAC;IAED,+BAA+B;IAC/B,iBAAiB,GAAG;QAClB,MAAM;QACN,OAAO,EAAE,MAAM,CAAC,KAAK,CAAC,OAAO;KAC9B,CAAC;IAEF,OAAO,iBAAiB,CAAC;AAC3B,CAAC;AAED;;;GAGG;AACH,MAAM,UAAU,qBAAqB;IACnC,iBAAiB,GAAG,IAAI,CAAC;AAC3B,CAAC"}
|
|
@@ -1,71 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './http.client.js';
|
|
2
|
-
import { CustomDataAPI } from '../types/index.js';
|
|
3
|
-
import { GetCustomDataResponse, UpdateCustomDataResponse, DeleteCustomDataResponse } from '../interfaces/custom.data.js';
|
|
4
|
-
import DataEntryInstance from '../instances/data.entry.instance.js';
|
|
5
|
-
export default class CustomDataApi extends HttpClient implements CustomDataAPI {
|
|
6
|
-
private apiKey;
|
|
7
|
-
private agentId;
|
|
8
|
-
/**
|
|
9
|
-
* Creates an instance of CustomDataApi
|
|
10
|
-
* @param baseUrl - The base URL for the API
|
|
11
|
-
* @param apiKey - The API key for authentication
|
|
12
|
-
* @param agentId - The unique identifier of the agent
|
|
13
|
-
*/
|
|
14
|
-
constructor(baseUrl: string, apiKey: string, agentId: string);
|
|
15
|
-
/**
|
|
16
|
-
* Creates a new custom data entry in a specified collection
|
|
17
|
-
* @param collectionName - The name of the collection to create the entry in
|
|
18
|
-
* @param data - The data object to store in the entry
|
|
19
|
-
* @param searchText - Optional text to be used for semantic search indexing
|
|
20
|
-
* @returns Promise resolving to a DataEntryInstance representing the created entry
|
|
21
|
-
* @throws Error if the entry creation fails or the API request is unsuccessful
|
|
22
|
-
*/
|
|
23
|
-
create(collectionName: string, data: Record<string, any>, searchText?: string): Promise<DataEntryInstance>;
|
|
24
|
-
/**
|
|
25
|
-
* Retrieves custom data entries from a collection with optional filtering and pagination
|
|
26
|
-
* @param collectionName - The name of the collection to query
|
|
27
|
-
* @param filter - Optional filter object to apply to the query (JSON-serializable)
|
|
28
|
-
* @param page - The page number for pagination (default: 1)
|
|
29
|
-
* @param limit - The number of entries per page (default: 10)
|
|
30
|
-
* @returns Promise resolving to a GetCustomDataResponse containing the entries and pagination info
|
|
31
|
-
* @throws Error if the query fails or the API request is unsuccessful
|
|
32
|
-
*/
|
|
33
|
-
get(collectionName: string, filter?: Record<string, any>, page?: number, limit?: number): Promise<GetCustomDataResponse>;
|
|
34
|
-
/**
|
|
35
|
-
* Retrieves a single custom data entry by its ID
|
|
36
|
-
* @param collectionName - The name of the collection containing the entry
|
|
37
|
-
* @param entryId - The unique identifier of the entry to retrieve
|
|
38
|
-
* @returns Promise resolving to a DataEntryInstance representing the entry
|
|
39
|
-
* @throws Error if the entry is not found or the API request is unsuccessful
|
|
40
|
-
*/
|
|
41
|
-
getEntry(collectionName: string, entryId: string): Promise<DataEntryInstance>;
|
|
42
|
-
/**
|
|
43
|
-
* Updates an existing custom data entry
|
|
44
|
-
* @param collectionName - The name of the collection containing the entry
|
|
45
|
-
* @param entryId - The unique identifier of the entry to update
|
|
46
|
-
* @param data - The data object to update
|
|
47
|
-
* @param searchText - Optional text to be used for semantic search indexing
|
|
48
|
-
* @returns Promise resolving to an UpdateCustomDataResponse with the updated entry details
|
|
49
|
-
* @throws Error if the entry is not found or the update fails
|
|
50
|
-
*/
|
|
51
|
-
update(collectionName: string, entryId: string, data: Record<string, any>, searchText?: string): Promise<UpdateCustomDataResponse>;
|
|
52
|
-
/**
|
|
53
|
-
* Performs semantic search on custom data entries using text similarity
|
|
54
|
-
* @param collectionName - The name of the collection to search within
|
|
55
|
-
* @param searchText - The text query to search for
|
|
56
|
-
* @param limit - Maximum number of results to return (default: 10)
|
|
57
|
-
* @param scoreThreshold - Minimum similarity score threshold 0-1 (default: 0.6)
|
|
58
|
-
* @returns Promise resolving to an array of DataEntryInstance objects matching the search
|
|
59
|
-
* @throws Error if the search fails or the API request is unsuccessful
|
|
60
|
-
*/
|
|
61
|
-
search(collectionName: string, searchText: string, limit?: number, scoreThreshold?: number): Promise<DataEntryInstance[]>;
|
|
62
|
-
/**
|
|
63
|
-
* Deletes a custom data entry from a collection
|
|
64
|
-
* @param collectionName - The name of the collection containing the entry
|
|
65
|
-
* @param entryId - The unique identifier of the entry to delete
|
|
66
|
-
* @returns Promise resolving to a DeleteCustomDataResponse confirming deletion
|
|
67
|
-
* @throws Error if the entry is not found or the deletion fails
|
|
68
|
-
*/
|
|
69
|
-
delete(collectionName: string, entryId: string): Promise<DeleteCustomDataResponse>;
|
|
70
|
-
}
|
|
71
|
-
//# sourceMappingURL=custom.data.api.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom.data.api.service.d.ts","sourceRoot":"","sources":["../../src/api/custom.data.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,aAAa,EAAE,MAAM,mBAAmB,CAAC;AAClD,OAAO,EAEL,qBAAqB,EAErB,wBAAwB,EAExB,wBAAwB,EACzB,MAAM,8BAA8B,CAAC;AACtC,OAAO,iBAAiB,MAAM,qCAAqC,CAAC;AAGpE,MAAM,CAAC,OAAO,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from '../instances/data.entry.instance.js';
|
|
3
|
-
// Custom Data API calls
|
|
4
|
-
export default class CustomDataApi extends HttpClient {
|
|
5
|
-
/**
|
|
6
|
-
* Creates an instance of CustomDataApi
|
|
7
|
-
* @param baseUrl - The base URL for the API
|
|
8
|
-
* @param apiKey - The API key for authentication
|
|
9
|
-
* @param agentId - The unique identifier of the agent
|
|
10
|
-
*/
|
|
11
|
-
constructor(baseUrl, apiKey, agentId) {
|
|
12
|
-
super(baseUrl);
|
|
13
|
-
this.apiKey = apiKey;
|
|
14
|
-
this.agentId = agentId;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Creates a new custom data entry in a specified collection
|
|
18
|
-
* @param collectionName - The name of the collection to create the entry in
|
|
19
|
-
* @param data - The data object to store in the entry
|
|
20
|
-
* @param searchText - Optional text to be used for semantic search indexing
|
|
21
|
-
* @returns Promise resolving to a DataEntryInstance representing the created entry
|
|
22
|
-
* @throws Error if the entry creation fails or the API request is unsuccessful
|
|
23
|
-
*/
|
|
24
|
-
async create(collectionName, data, searchText) {
|
|
25
|
-
const response = await this.httpPost(`/developer/agents/${this.agentId}/custom-data/${collectionName}`, { data, searchText }, {
|
|
26
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
27
|
-
});
|
|
28
|
-
if (response.success && response.data) {
|
|
29
|
-
return new DataEntryInstance(this, response.data, collectionName);
|
|
30
|
-
}
|
|
31
|
-
throw new Error(response.error?.message || 'Failed to create custom data entry');
|
|
32
|
-
}
|
|
33
|
-
/**
|
|
34
|
-
* Retrieves custom data entries from a collection with optional filtering and pagination
|
|
35
|
-
* @param collectionName - The name of the collection to query
|
|
36
|
-
* @param filter - Optional filter object to apply to the query (JSON-serializable)
|
|
37
|
-
* @param page - The page number for pagination (default: 1)
|
|
38
|
-
* @param limit - The number of entries per page (default: 10)
|
|
39
|
-
* @returns Promise resolving to a GetCustomDataResponse containing the entries and pagination info
|
|
40
|
-
* @throws Error if the query fails or the API request is unsuccessful
|
|
41
|
-
*/
|
|
42
|
-
async get(collectionName, filter, page = 1, limit = 10) {
|
|
43
|
-
let url = `/developer/agents/${this.agentId}/custom-data/${collectionName}?page=${page}&limit=${limit}`;
|
|
44
|
-
if (filter) {
|
|
45
|
-
const encodedFilter = encodeURIComponent(JSON.stringify(filter));
|
|
46
|
-
url += `&filter=${encodedFilter}`;
|
|
47
|
-
}
|
|
48
|
-
const response = await this.httpGet(url, {
|
|
49
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
50
|
-
});
|
|
51
|
-
if (response.success && response.data) {
|
|
52
|
-
return response.data;
|
|
53
|
-
}
|
|
54
|
-
throw new Error(response.error?.message || 'Failed to get custom data entries');
|
|
55
|
-
}
|
|
56
|
-
/**
|
|
57
|
-
* Retrieves a single custom data entry by its ID
|
|
58
|
-
* @param collectionName - The name of the collection containing the entry
|
|
59
|
-
* @param entryId - The unique identifier of the entry to retrieve
|
|
60
|
-
* @returns Promise resolving to a DataEntryInstance representing the entry
|
|
61
|
-
* @throws Error if the entry is not found or the API request is unsuccessful
|
|
62
|
-
*/
|
|
63
|
-
async getEntry(collectionName, entryId) {
|
|
64
|
-
const response = await this.httpGet(`/developer/agents/${this.agentId}/custom-data/${collectionName}/${entryId}`, {
|
|
65
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
66
|
-
});
|
|
67
|
-
if (response.success && response.data) {
|
|
68
|
-
return new DataEntryInstance(this, response.data, collectionName);
|
|
69
|
-
}
|
|
70
|
-
throw new Error(response.error?.message || 'Failed to get custom data entry');
|
|
71
|
-
}
|
|
72
|
-
/**
|
|
73
|
-
* Updates an existing custom data entry
|
|
74
|
-
* @param collectionName - The name of the collection containing the entry
|
|
75
|
-
* @param entryId - The unique identifier of the entry to update
|
|
76
|
-
* @param data - The data object to update
|
|
77
|
-
* @param searchText - Optional text to be used for semantic search indexing
|
|
78
|
-
* @returns Promise resolving to an UpdateCustomDataResponse with the updated entry details
|
|
79
|
-
* @throws Error if the entry is not found or the update fails
|
|
80
|
-
*/
|
|
81
|
-
async update(collectionName, entryId, data, searchText) {
|
|
82
|
-
const response = await this.httpPut(`/developer/agents/${this.agentId}/custom-data/${collectionName}/${entryId}`, { data, searchText }, {
|
|
83
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
84
|
-
});
|
|
85
|
-
if (response.success && response.data) {
|
|
86
|
-
return response.data;
|
|
87
|
-
}
|
|
88
|
-
throw new Error(response.error?.message || 'Failed to update custom data entry');
|
|
89
|
-
}
|
|
90
|
-
/**
|
|
91
|
-
* Performs semantic search on custom data entries using text similarity
|
|
92
|
-
* @param collectionName - The name of the collection to search within
|
|
93
|
-
* @param searchText - The text query to search for
|
|
94
|
-
* @param limit - Maximum number of results to return (default: 10)
|
|
95
|
-
* @param scoreThreshold - Minimum similarity score threshold 0-1 (default: 0.6)
|
|
96
|
-
* @returns Promise resolving to an array of DataEntryInstance objects matching the search
|
|
97
|
-
* @throws Error if the search fails or the API request is unsuccessful
|
|
98
|
-
*/
|
|
99
|
-
async search(collectionName, searchText, limit = 10, scoreThreshold = 0.6) {
|
|
100
|
-
const url = `/developer/agents/${this.agentId}/custom-data/${collectionName}/search?searchText=${encodeURIComponent(searchText)}&limit=${limit}&scoreThreshold=${scoreThreshold}`;
|
|
101
|
-
const response = await this.httpGet(url, {
|
|
102
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
103
|
-
});
|
|
104
|
-
if (response.success && response.data) {
|
|
105
|
-
return response.data.data.map((entry) => new DataEntryInstance(this, entry, collectionName));
|
|
106
|
-
}
|
|
107
|
-
throw new Error(response.error?.message || 'Failed to search custom data entries');
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* Deletes a custom data entry from a collection
|
|
111
|
-
* @param collectionName - The name of the collection containing the entry
|
|
112
|
-
* @param entryId - The unique identifier of the entry to delete
|
|
113
|
-
* @returns Promise resolving to a DeleteCustomDataResponse confirming deletion
|
|
114
|
-
* @throws Error if the entry is not found or the deletion fails
|
|
115
|
-
*/
|
|
116
|
-
async delete(collectionName, entryId) {
|
|
117
|
-
const response = await this.httpDelete(`/developer/agents/${this.agentId}/custom-data/${collectionName}/${entryId}`, {
|
|
118
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
119
|
-
});
|
|
120
|
-
if (response.success && response.data) {
|
|
121
|
-
return response.data;
|
|
122
|
-
}
|
|
123
|
-
throw new Error(response.error?.message || 'Failed to delete custom data entry');
|
|
124
|
-
}
|
|
125
|
-
}
|
|
126
|
-
//# sourceMappingURL=custom.data.api.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"custom.data.api.service.js","sourceRoot":"","sources":["../../src/api/custom.data.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAU9C,OAAO,iBAAiB,MAAM,qCAAqC,CAAC;AAEpE,wBAAwB;AACxB,MAAM,CAAC,OAAO,OAAO,aAAc,SAAQ,UAAU;IAInD;;;;;OAKG;IACH,YAAY,OAAe,EAAE,MAAc,EAAE,OAAe;QAC1D,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,MAAM,CAAC,cAAsB,EAAE,IAAyB,EAAE,UAAmB;QACjF,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,QAAQ,CAClC,qBAAqB,IAAI,CAAC,OAAO,gBAAgB,cAAc,EAAE,EACjE,EAAE,IAAI,EAAE,UAAU,EAAE,EACpB;YACE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CACF,CAAC;QACF,IAAI,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;YACtC,OAAO,IAAI,iBAAiB,CAAC,IAAI,EAAE,QAAQ,CAAC,IAAI,EAAE,cAAc,CAAC,CAAC;QACpE,C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Ac,CAAC,CAAC,CAAC;QAC/F,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,IAAI,sCAAsC,CAAC,CAAC;IACrF,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,MAAM,CAAC,cAAsB,EAAE,OAAe;QAClD,MAAM,QAAQ,GAAG,MAAM,IAAI,CAAC,UAAU,CACpC,qBAAqB,IAAI,CAAC,OAAO,gBAAgB,cAAc,IAAI,OAAO,EAAE,EAC5E;YACE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CACF,CAAC;QACF,IAAI,QAAQ,CAAC,OAAO,IAAI,QAAQ,CAAC,IAAI,EAAE,CAAC;YACtC,OAAO,QAAQ,CAAC,IAAI,CAAC;QACvB,CAAC;QACD,MAAM,IAAI,KAAK,CAAC,QAAQ,CAAC,KAAK,EAAE,OAAO,IAAI,oCAAoC,CAAC,CAAC;IACnF,CAAC;CACF"}
|
|
@@ -1,121 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './http.client.js';
|
|
2
|
-
import { ApiResponse, MCPServerResponse, CreateMCPServerRequest, UpdateMCPServerRequest } from '../interfaces/index.js';
|
|
3
|
-
import { ProfileResponse } from '../interfaces/user.js';
|
|
4
|
-
/**
|
|
5
|
-
* Environment variables response structure from the API
|
|
6
|
-
* The actual environment variables are nested in the 'data' property
|
|
7
|
-
*/
|
|
8
|
-
interface EnvironmentVariablesResponse {
|
|
9
|
-
data: Record<string, string>;
|
|
10
|
-
_id?: string;
|
|
11
|
-
agentId?: string;
|
|
12
|
-
createdAt?: string;
|
|
13
|
-
updatedAt?: string;
|
|
14
|
-
__v?: number;
|
|
15
|
-
}
|
|
16
|
-
/**
|
|
17
|
-
* Developer API calls for agent management and configuration
|
|
18
|
-
*/
|
|
19
|
-
export default class DeveloperApi extends HttpClient {
|
|
20
|
-
private apiKey;
|
|
21
|
-
private agentId;
|
|
22
|
-
/**
|
|
23
|
-
* Creates an instance of DeveloperApi
|
|
24
|
-
* @param baseUrl - The base URL for the API
|
|
25
|
-
* @param apiKey - The API key for authentication
|
|
26
|
-
* @param agentId - The unique identifier of the agent
|
|
27
|
-
*/
|
|
28
|
-
constructor(baseUrl: string, apiKey: string, agentId: string);
|
|
29
|
-
/**
|
|
30
|
-
* Retrieves all environment variables for the agent in production
|
|
31
|
-
* The response includes metadata (_id, agentId, timestamps) and the actual env vars in the 'data' property
|
|
32
|
-
* @returns Promise resolving to an ApiResponse containing environment variables and metadata
|
|
33
|
-
* @throws Error if the API request fails or the agent is not found
|
|
34
|
-
*/
|
|
35
|
-
getEnvironmentVariables(): Promise<ApiResponse<EnvironmentVariablesResponse>>;
|
|
36
|
-
/**
|
|
37
|
-
* Updates all environment variables for the agent in production
|
|
38
|
-
* This operation replaces all existing environment variables with the provided set
|
|
39
|
-
* @param envData - Object containing environment variable key-value pairs
|
|
40
|
-
* @returns Promise resolving to an ApiResponse with the updated environment variables and metadata
|
|
41
|
-
* @throws Error if the API request fails or the agent is not found
|
|
42
|
-
*/
|
|
43
|
-
updateEnvironmentVariables(envData: Record<string, string>): Promise<ApiResponse<EnvironmentVariablesResponse>>;
|
|
44
|
-
/**
|
|
45
|
-
* Deletes a specific environment variable by key
|
|
46
|
-
* @param key - The environment variable key to delete
|
|
47
|
-
* @returns Promise resolving to an ApiResponse with confirmation
|
|
48
|
-
* @throws Error if the API request fails, the agent is not found, or the key doesn't exist
|
|
49
|
-
*/
|
|
50
|
-
deleteEnvironmentVariable(key: string): Promise<ApiResponse<{
|
|
51
|
-
message: string;
|
|
52
|
-
key: string;
|
|
53
|
-
}>>;
|
|
54
|
-
/**
|
|
55
|
-
* Retrieves all MCP server configurations for the agent
|
|
56
|
-
* @returns Promise resolving to an ApiResponse containing MCP server configurations
|
|
57
|
-
*/
|
|
58
|
-
getMCPServers(): Promise<ApiResponse<MCPServerResponse[]>>;
|
|
59
|
-
/**
|
|
60
|
-
* Retrieves only active MCP server configurations for the agent
|
|
61
|
-
* @returns Promise resolving to an ApiResponse containing active MCP server configurations
|
|
62
|
-
*/
|
|
63
|
-
getActiveMCPServers(): Promise<ApiResponse<MCPServerResponse[]>>;
|
|
64
|
-
/**
|
|
65
|
-
* Gets a single MCP server by ID
|
|
66
|
-
* @param mcpServerId - The ID of the MCP server
|
|
67
|
-
* @returns Promise resolving to an ApiResponse with the MCP server
|
|
68
|
-
*/
|
|
69
|
-
getMCPServer(mcpServerId: string): Promise<ApiResponse<MCPServerResponse>>;
|
|
70
|
-
/**
|
|
71
|
-
* Creates a new MCP server
|
|
72
|
-
* @param mcpServerData - The MCP server configuration
|
|
73
|
-
* @returns Promise resolving to an ApiResponse with the created MCP server
|
|
74
|
-
*/
|
|
75
|
-
createMCPServer(mcpServerData: CreateMCPServerRequest): Promise<ApiResponse<MCPServerResponse>>;
|
|
76
|
-
/**
|
|
77
|
-
* Updates an existing MCP server
|
|
78
|
-
* @param mcpServerId - The ID of the MCP server to update
|
|
79
|
-
* @param mcpServerData - The updated MCP server configuration
|
|
80
|
-
* @returns Promise resolving to an ApiResponse with the updated MCP server
|
|
81
|
-
*/
|
|
82
|
-
updateMCPServer(mcpServerId: string, mcpServerData: UpdateMCPServerRequest): Promise<ApiResponse<MCPServerResponse>>;
|
|
83
|
-
/**
|
|
84
|
-
* Deletes an MCP server
|
|
85
|
-
* @param mcpServerId - The ID of the MCP server to delete
|
|
86
|
-
* @returns Promise resolving to an ApiResponse with confirmation
|
|
87
|
-
*/
|
|
88
|
-
deleteMCPServer(mcpServerId: string): Promise<ApiResponse<void>>;
|
|
89
|
-
/**
|
|
90
|
-
* Activates an MCP server
|
|
91
|
-
* @param mcpServerId - The ID of the MCP server to activate
|
|
92
|
-
* @returns Promise resolving to an ApiResponse with the activated MCP server
|
|
93
|
-
*/
|
|
94
|
-
activateMCPServer(mcpServerId: string): Promise<ApiResponse<MCPServerResponse>>;
|
|
95
|
-
/**
|
|
96
|
-
* Deactivates an MCP server
|
|
97
|
-
* @param mcpServerId - The ID of the MCP server to deactivate
|
|
98
|
-
* @returns Promise resolving to an ApiResponse with the deactivated MCP server
|
|
99
|
-
*/
|
|
100
|
-
deactivateMCPServer(mcpServerId: string): Promise<ApiResponse<MCPServerResponse>>;
|
|
101
|
-
/**
|
|
102
|
-
* Creates or updates an MCP server by name (upsert)
|
|
103
|
-
* @param mcpServerData - The MCP server configuration
|
|
104
|
-
* @returns Promise resolving to an ApiResponse with the created/updated MCP server
|
|
105
|
-
*/
|
|
106
|
-
upsertMCPServer(mcpServerData: CreateMCPServerRequest): Promise<ApiResponse<MCPServerResponse>>;
|
|
107
|
-
/**
|
|
108
|
-
* Gets a user profile by email address
|
|
109
|
-
* @param email - The email address to look up
|
|
110
|
-
* @returns Promise resolving to an ApiResponse containing the profile, or null if not found
|
|
111
|
-
*/
|
|
112
|
-
getUserProfileByEmail(email: string): Promise<ApiResponse<ProfileResponse>>;
|
|
113
|
-
/**
|
|
114
|
-
* Gets a user profile by phone number
|
|
115
|
-
* @param phone - The phone number to look up (with or without + prefix)
|
|
116
|
-
* @returns Promise resolving to an ApiResponse containing the profile, or null if not found
|
|
117
|
-
*/
|
|
118
|
-
getUserProfileByPhone(phone: string): Promise<ApiResponse<ProfileResponse>>;
|
|
119
|
-
}
|
|
120
|
-
export {};
|
|
121
|
-
//# sourceMappingURL=developer.api.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"developer.api.service.d.ts","sourceRoot":"","sources":["../../src/api/developer.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,iBAAiB,EAAE,sBAAsB,EAAE,sBAAsB,EAAE,MAAM,wBAAwB,CAAC;AACxH,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD;;;GAGG;AACH,UAAU,4BAA4B;IACpC,IAAI,EAAE,MAAM,CAAC,MAAM,EAAE,MAAM,CAAC,CAA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