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,162 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './http.client.js';
|
|
2
|
-
/**
|
|
3
|
-
* Developer API calls for agent management and configuration
|
|
4
|
-
*/
|
|
5
|
-
export default class DeveloperApi extends HttpClient {
|
|
6
|
-
/**
|
|
7
|
-
* Creates an instance of DeveloperApi
|
|
8
|
-
* @param baseUrl - The base URL for the API
|
|
9
|
-
* @param apiKey - The API key for authentication
|
|
10
|
-
* @param agentId - The unique identifier of the agent
|
|
11
|
-
*/
|
|
12
|
-
constructor(baseUrl, apiKey, agentId) {
|
|
13
|
-
super(baseUrl);
|
|
14
|
-
this.apiKey = apiKey;
|
|
15
|
-
this.agentId = agentId;
|
|
16
|
-
}
|
|
17
|
-
/**
|
|
18
|
-
* Retrieves all environment variables for the agent in production
|
|
19
|
-
* The response includes metadata (_id, agentId, timestamps) and the actual env vars in the 'data' property
|
|
20
|
-
* @returns Promise resolving to an ApiResponse containing environment variables and metadata
|
|
21
|
-
* @throws Error if the API request fails or the agent is not found
|
|
22
|
-
*/
|
|
23
|
-
async getEnvironmentVariables() {
|
|
24
|
-
return this.httpGet(`/developer/agents/${this.agentId}/env`, {
|
|
25
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Updates all environment variables for the agent in production
|
|
30
|
-
* This operation replaces all existing environment variables with the provided set
|
|
31
|
-
* @param envData - Object containing environment variable key-value pairs
|
|
32
|
-
* @returns Promise resolving to an ApiResponse with the updated environment variables and metadata
|
|
33
|
-
* @throws Error if the API request fails or the agent is not found
|
|
34
|
-
*/
|
|
35
|
-
async updateEnvironmentVariables(envData) {
|
|
36
|
-
return this.httpPost(`/developer/agents/${this.agentId}/env`, envData, {
|
|
37
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
/**
|
|
41
|
-
* Deletes a specific environment variable by key
|
|
42
|
-
* @param key - The environment variable key to delete
|
|
43
|
-
* @returns Promise resolving to an ApiResponse with confirmation
|
|
44
|
-
* @throws Error if the API request fails, the agent is not found, or the key doesn't exist
|
|
45
|
-
*/
|
|
46
|
-
async deleteEnvironmentVariable(key) {
|
|
47
|
-
return this.httpDelete(`/developer/agents/${this.agentId}/env/${key}`, {
|
|
48
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Retrieves all MCP server configurations for the agent
|
|
53
|
-
* @returns Promise resolving to an ApiResponse containing MCP server configurations
|
|
54
|
-
*/
|
|
55
|
-
async getMCPServers() {
|
|
56
|
-
return this.httpGet(`/developer/agents/${this.agentId}/mcp-servers`, {
|
|
57
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
58
|
-
});
|
|
59
|
-
}
|
|
60
|
-
/**
|
|
61
|
-
* Retrieves only active MCP server configurations for the agent
|
|
62
|
-
* @returns Promise resolving to an ApiResponse containing active MCP server configurations
|
|
63
|
-
*/
|
|
64
|
-
async getActiveMCPServers() {
|
|
65
|
-
return this.httpGet(`/developer/agents/${this.agentId}/mcp-servers/active`, {
|
|
66
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
67
|
-
});
|
|
68
|
-
}
|
|
69
|
-
/**
|
|
70
|
-
* Gets a single MCP server by ID
|
|
71
|
-
* @param mcpServerId - The ID of the MCP server
|
|
72
|
-
* @returns Promise resolving to an ApiResponse with the MCP server
|
|
73
|
-
*/
|
|
74
|
-
async getMCPServer(mcpServerId) {
|
|
75
|
-
return this.httpGet(`/developer/agents/${this.agentId}/mcp-servers/${mcpServerId}`, {
|
|
76
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
77
|
-
});
|
|
78
|
-
}
|
|
79
|
-
/**
|
|
80
|
-
* Creates a new MCP server
|
|
81
|
-
* @param mcpServerData - The MCP server configuration
|
|
82
|
-
* @returns Promise resolving to an ApiResponse with the created MCP server
|
|
83
|
-
*/
|
|
84
|
-
async createMCPServer(mcpServerData) {
|
|
85
|
-
return this.httpPost(`/developer/agents/${this.agentId}/mcp-servers`, mcpServerData, {
|
|
86
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
87
|
-
});
|
|
88
|
-
}
|
|
89
|
-
/**
|
|
90
|
-
* Updates an existing MCP server
|
|
91
|
-
* @param mcpServerId - The ID of the MCP server to update
|
|
92
|
-
* @param mcpServerData - The updated MCP server configuration
|
|
93
|
-
* @returns Promise resolving to an ApiResponse with the updated MCP server
|
|
94
|
-
*/
|
|
95
|
-
async updateMCPServer(mcpServerId, mcpServerData) {
|
|
96
|
-
return this.httpPut(`/developer/agents/${this.agentId}/mcp-servers/${mcpServerId}`, mcpServerData, {
|
|
97
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
98
|
-
});
|
|
99
|
-
}
|
|
100
|
-
/**
|
|
101
|
-
* Deletes an MCP server
|
|
102
|
-
* @param mcpServerId - The ID of the MCP server to delete
|
|
103
|
-
* @returns Promise resolving to an ApiResponse with confirmation
|
|
104
|
-
*/
|
|
105
|
-
async deleteMCPServer(mcpServerId) {
|
|
106
|
-
return this.httpDelete(`/developer/agents/${this.agentId}/mcp-servers/${mcpServerId}`, {
|
|
107
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
108
|
-
});
|
|
109
|
-
}
|
|
110
|
-
/**
|
|
111
|
-
* Activates an MCP server
|
|
112
|
-
* @param mcpServerId - The ID of the MCP server to activate
|
|
113
|
-
* @returns Promise resolving to an ApiResponse with the activated MCP server
|
|
114
|
-
*/
|
|
115
|
-
async activateMCPServer(mcpServerId) {
|
|
116
|
-
return this.httpPut(`/developer/agents/${this.agentId}/mcp-servers/${mcpServerId}/activate`, {}, {
|
|
117
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
118
|
-
});
|
|
119
|
-
}
|
|
120
|
-
/**
|
|
121
|
-
* Deactivates an MCP server
|
|
122
|
-
* @param mcpServerId - The ID of the MCP server to deactivate
|
|
123
|
-
* @returns Promise resolving to an ApiResponse with the deactivated MCP server
|
|
124
|
-
*/
|
|
125
|
-
async deactivateMCPServer(mcpServerId) {
|
|
126
|
-
return this.httpPut(`/developer/agents/${this.agentId}/mcp-servers/${mcpServerId}/deactivate`, {}, {
|
|
127
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
128
|
-
});
|
|
129
|
-
}
|
|
130
|
-
/**
|
|
131
|
-
* Creates or updates an MCP server by name (upsert)
|
|
132
|
-
* @param mcpServerData - The MCP server configuration
|
|
133
|
-
* @returns Promise resolving to an ApiResponse with the created/updated MCP server
|
|
134
|
-
*/
|
|
135
|
-
async upsertMCPServer(mcpServerData) {
|
|
136
|
-
return this.httpPost(`/developer/agents/${this.agentId}/mcp-servers/upsert`, mcpServerData, {
|
|
137
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
138
|
-
});
|
|
139
|
-
}
|
|
140
|
-
/**
|
|
141
|
-
* Gets a user profile by email address
|
|
142
|
-
* @param email - The email address to look up
|
|
143
|
-
* @returns Promise resolving to an ApiResponse containing the profile, or null if not found
|
|
144
|
-
*/
|
|
145
|
-
async getUserProfileByEmail(email) {
|
|
146
|
-
return this.httpGet(`/developer/user/profile/email/${encodeURIComponent(email)}`, {
|
|
147
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
148
|
-
});
|
|
149
|
-
}
|
|
150
|
-
/**
|
|
151
|
-
* Gets a user profile by phone number
|
|
152
|
-
* @param phone - The phone number to look up (with or without + prefix)
|
|
153
|
-
* @returns Promise resolving to an ApiResponse containing the profile, or null if not found
|
|
154
|
-
*/
|
|
155
|
-
async getUserProfileByPhone(phone) {
|
|
156
|
-
const normalizedPhone = phone.replace(/^\+/, '');
|
|
157
|
-
return this.httpGet(`/developer/user/profile/phone/${normalizedPhone}`, {
|
|
158
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
159
|
-
});
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
//# sourceMappingURL=developer.api.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"developer.api.service.js","sourceRoot":"","sources":["../../src/api/developer.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAiB9C;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,YAAa,SAAQ,UAAU;IAIlD;;;;;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;;;;;OAKG;IACH,KAAK,CAAC,uBAAuB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAA+B,qBAAqB,IAAI,CAAC,OAAO,MAAM,EAAE;YACzF,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,0BAA0B,CAC9B,OAA+B;QAE/B,OAAO,IAAI,CAAC,QAAQ,CAA+B,qBAAqB,IAAI,CAAC,OAAO,MAAM,EAAE,OAAO,EAAE;YACnG,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,yBAAyB,CAAC,GAAW;QACzC,OAAO,IAAI,CA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AAC,OAAO,CAAkB,iCAAiC,eAAe,EAAE,EAAE;YACvF,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,136 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './http.client.js';
|
|
2
|
-
import { ApiResponse } from '../interfaces/common.js';
|
|
3
|
-
import { CreateDeviceTriggerDTO, PushDeviceTriggerVersionDTO } from '../interfaces/device-triggers.js';
|
|
4
|
-
/**
|
|
5
|
-
* Device Trigger API Response Types
|
|
6
|
-
*/
|
|
7
|
-
export interface DeviceTriggerVersionInfo {
|
|
8
|
-
version: string;
|
|
9
|
-
deviceTriggerId: string;
|
|
10
|
-
createdAt: string | number;
|
|
11
|
-
isActive?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface GetDeviceTriggersResponse {
|
|
14
|
-
deviceTriggers: Array<{
|
|
15
|
-
id: string;
|
|
16
|
-
name: string;
|
|
17
|
-
description?: string;
|
|
18
|
-
active: boolean;
|
|
19
|
-
createdAt: string;
|
|
20
|
-
updatedAt: string;
|
|
21
|
-
versions: DeviceTriggerVersionInfo[];
|
|
22
|
-
activeVersionId?: string;
|
|
23
|
-
}>;
|
|
24
|
-
}
|
|
25
|
-
export interface CreateDeviceTriggerResponse {
|
|
26
|
-
id: string;
|
|
27
|
-
name: string;
|
|
28
|
-
description?: string;
|
|
29
|
-
agentId: string;
|
|
30
|
-
}
|
|
31
|
-
export interface DeviceTriggerVersionResponse {
|
|
32
|
-
versionId: string;
|
|
33
|
-
deviceTriggerId: string;
|
|
34
|
-
version: string;
|
|
35
|
-
createdAt: string;
|
|
36
|
-
}
|
|
37
|
-
export interface DeleteDeviceTriggerResponse {
|
|
38
|
-
deleted: boolean;
|
|
39
|
-
deactivated?: boolean;
|
|
40
|
-
message: string;
|
|
41
|
-
}
|
|
42
|
-
/**
|
|
43
|
-
* Device Trigger API Service
|
|
44
|
-
* Handles all device trigger-related API calls
|
|
45
|
-
*/
|
|
46
|
-
export default class DeviceTriggerApi extends HttpClient {
|
|
47
|
-
private apiKey;
|
|
48
|
-
private agentId;
|
|
49
|
-
/**
|
|
50
|
-
* Creates an instance of DeviceTriggerApi
|
|
51
|
-
* @param baseUrl - The base URL for the API
|
|
52
|
-
* @param apiKey - The API key for authentication
|
|
53
|
-
* @param agentId - The unique identifier of the agent
|
|
54
|
-
*/
|
|
55
|
-
constructor(baseUrl: string, apiKey: string, agentId: string);
|
|
56
|
-
/**
|
|
57
|
-
* Retrieves all device triggers for the agent
|
|
58
|
-
* @returns Promise resolving to an ApiResponse containing an array of device triggers with their versions
|
|
59
|
-
* @throws Error if the API request fails or the agent is not found
|
|
60
|
-
*/
|
|
61
|
-
getDeviceTriggers(): Promise<ApiResponse<GetDeviceTriggersResponse>>;
|
|
62
|
-
/**
|
|
63
|
-
* Creates a new device trigger for the agent
|
|
64
|
-
* @param data - The device trigger data including name and description
|
|
65
|
-
* @returns Promise resolving to an ApiResponse containing the created device trigger details
|
|
66
|
-
* @throws Error if the device trigger creation fails or validation errors occur
|
|
67
|
-
*/
|
|
68
|
-
createDeviceTrigger(data: CreateDeviceTriggerDTO): Promise<ApiResponse<CreateDeviceTriggerResponse>>;
|
|
69
|
-
/**
|
|
70
|
-
* Pushes a new version of a device trigger to production
|
|
71
|
-
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
72
|
-
* @param versionData - The version data including code, configuration, and metadata
|
|
73
|
-
* @returns Promise resolving to an ApiResponse containing the created version details
|
|
74
|
-
* @throws Error if the device trigger is not found or the push operation fails
|
|
75
|
-
*/
|
|
76
|
-
pushDeviceTrigger(deviceTriggerId: string, versionData: PushDeviceTriggerVersionDTO): Promise<ApiResponse<DeviceTriggerVersionResponse>>;
|
|
77
|
-
/**
|
|
78
|
-
* Pushes a new development/sandbox version of a device trigger for testing
|
|
79
|
-
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
80
|
-
* @param versionData - The version data including code, configuration, and metadata
|
|
81
|
-
* @returns Promise resolving to an ApiResponse containing the development version details
|
|
82
|
-
* @throws Error if the device trigger is not found or the push operation fails
|
|
83
|
-
*/
|
|
84
|
-
pushDevDeviceTrigger(deviceTriggerId: string, versionData: PushDeviceTriggerVersionDTO): Promise<ApiResponse<DeviceTriggerVersionResponse>>;
|
|
85
|
-
/**
|
|
86
|
-
* Retrieves all versions of a specific device trigger
|
|
87
|
-
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
88
|
-
* @returns Promise resolving to an ApiResponse containing an array of device trigger versions
|
|
89
|
-
* @throws Error if the device trigger is not found or the request fails
|
|
90
|
-
*/
|
|
91
|
-
getDeviceTriggerVersions(deviceTriggerId: string): Promise<ApiResponse<{
|
|
92
|
-
versions: DeviceTriggerVersionInfo[];
|
|
93
|
-
activeVersionId?: string;
|
|
94
|
-
}>>;
|
|
95
|
-
/**
|
|
96
|
-
* Publishes a specific version of a device trigger to production
|
|
97
|
-
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
98
|
-
* @param version - The version identifier to publish
|
|
99
|
-
* @returns Promise resolving to an ApiResponse containing publication confirmation details
|
|
100
|
-
* @throws Error if the device trigger or version is not found or the publish operation fails
|
|
101
|
-
*/
|
|
102
|
-
publishDeviceTriggerVersion(deviceTriggerId: string, version: string): Promise<ApiResponse<{
|
|
103
|
-
message: string;
|
|
104
|
-
deviceTriggerId: string;
|
|
105
|
-
activeVersionId: string;
|
|
106
|
-
publishedAt: string;
|
|
107
|
-
}>>;
|
|
108
|
-
/**
|
|
109
|
-
* Activates a device trigger (enables it to receive events)
|
|
110
|
-
* @param deviceTriggerId - The unique identifier of the device trigger to activate
|
|
111
|
-
* @returns Promise resolving to an ApiResponse with activation status
|
|
112
|
-
* @throws Error if the device trigger is not found or the operation fails
|
|
113
|
-
*/
|
|
114
|
-
activateDeviceTrigger(deviceTriggerId: string): Promise<ApiResponse<{
|
|
115
|
-
message: string;
|
|
116
|
-
active: boolean;
|
|
117
|
-
}>>;
|
|
118
|
-
/**
|
|
119
|
-
* Deactivates a device trigger (stops it from receiving events)
|
|
120
|
-
* @param deviceTriggerId - The unique identifier of the device trigger to deactivate
|
|
121
|
-
* @returns Promise resolving to an ApiResponse with deactivation status
|
|
122
|
-
* @throws Error if the device trigger is not found or the operation fails
|
|
123
|
-
*/
|
|
124
|
-
deactivateDeviceTrigger(deviceTriggerId: string): Promise<ApiResponse<{
|
|
125
|
-
message: string;
|
|
126
|
-
active: boolean;
|
|
127
|
-
}>>;
|
|
128
|
-
/**
|
|
129
|
-
* Deletes a device trigger and all its versions, or deactivates it if it has versions
|
|
130
|
-
* @param deviceTriggerId - The unique identifier of the device trigger to delete
|
|
131
|
-
* @returns Promise resolving to an ApiResponse with deletion status
|
|
132
|
-
* @throws Error if the device trigger is not found or the delete operation fails
|
|
133
|
-
*/
|
|
134
|
-
deleteDeviceTrigger(deviceTriggerId: string): Promise<ApiResponse<DeleteDeviceTriggerResponse>>;
|
|
135
|
-
}
|
|
136
|
-
//# sourceMappingURL=device-trigger.api.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device-trigger.api.service.d.ts","sourceRoot":"","sources":["../../src/api/device-trigger.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EAAE,sBAAsB,EAAE,2BAA2B,EAAE,MAAM,kCAAkC,CAAC;AAEvG;;GAEG;AACH,MAAM,WAAW,wBAAwB;IACvC,OAAO,EAAE,MAAM,CAAC;IAChB,eAAe,EAAE,MAAM,CAAC;IACxB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,yBAAyB;IACxC,cAAc,EAAE,KAAK,CAAC;QACpB,EAAE,EAAE,MAAM,CAAC;QACX,IAAI,EAAE,MAAM,CAAC;QACb,WAA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Ae,EAAE,MAAM,EACvB,WAAW,EAAE,2BAA2B,GACvC,OAAO,CAAC,WAAW,CAAC,4BAA4B,CAAC,CAAC;IAUrD;;;;;OAKG;IACG,wBAAwB,CAC5B,eAAe,EAAE,MAAM,GACtB,OAAO,CAAC,WAAW,CAAC;QAAE,QAAQ,EAAE,wBAAwB,EAAE,CAAC;QAAC,eAAe,CAAC,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAS3F;;;;;;OAMG;IACG,2BAA2B,CAC/B,eAAe,EAAE,MAAM,EACvB,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,WAAW,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAUnH;;;;;OAKG;IACG,qBAAqB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAUhH;;;;;OAKG;IACG,uBAAuB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,MAAM,EAAE,OAAO,CAAA;KAAE,CAAC,CAAC;IAUlH;;;;;OAKG;IACG,mBAAmB,CAAC,eAAe,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,2BAA2B,CAAC,CAAC;CAQtG"}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './http.client.js';
|
|
2
|
-
/**
|
|
3
|
-
* Device Trigger API Service
|
|
4
|
-
* Handles all device trigger-related API calls
|
|
5
|
-
*/
|
|
6
|
-
export default class DeviceTriggerApi extends HttpClient {
|
|
7
|
-
/**
|
|
8
|
-
* Creates an instance of DeviceTriggerApi
|
|
9
|
-
* @param baseUrl - The base URL for the API
|
|
10
|
-
* @param apiKey - The API key for authentication
|
|
11
|
-
* @param agentId - The unique identifier of the agent
|
|
12
|
-
*/
|
|
13
|
-
constructor(baseUrl, apiKey, agentId) {
|
|
14
|
-
super(baseUrl);
|
|
15
|
-
this.apiKey = apiKey;
|
|
16
|
-
this.agentId = agentId;
|
|
17
|
-
}
|
|
18
|
-
/**
|
|
19
|
-
* Retrieves all device triggers for the agent
|
|
20
|
-
* @returns Promise resolving to an ApiResponse containing an array of device triggers with their versions
|
|
21
|
-
* @throws Error if the API request fails or the agent is not found
|
|
22
|
-
*/
|
|
23
|
-
async getDeviceTriggers() {
|
|
24
|
-
return this.httpGet(`/developer/device-triggers/${this.agentId}`, {
|
|
25
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Creates a new device trigger for the agent
|
|
30
|
-
* @param data - The device trigger data including name and description
|
|
31
|
-
* @returns Promise resolving to an ApiResponse containing the created device trigger details
|
|
32
|
-
* @throws Error if the device trigger creation fails or validation errors occur
|
|
33
|
-
*/
|
|
34
|
-
async createDeviceTrigger(data) {
|
|
35
|
-
return this.httpPost(`/developer/device-triggers/${this.agentId}`, data, {
|
|
36
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Pushes a new version of a device trigger to production
|
|
41
|
-
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
42
|
-
* @param versionData - The version data including code, configuration, and metadata
|
|
43
|
-
* @returns Promise resolving to an ApiResponse containing the created version details
|
|
44
|
-
* @throws Error if the device trigger is not found or the push operation fails
|
|
45
|
-
*/
|
|
46
|
-
async pushDeviceTrigger(deviceTriggerId, versionData) {
|
|
47
|
-
return this.httpPost(`/developer/device-triggers/${this.agentId}/${deviceTriggerId}/version`, versionData, {
|
|
48
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
49
|
-
});
|
|
50
|
-
}
|
|
51
|
-
/**
|
|
52
|
-
* Pushes a new development/sandbox version of a device trigger for testing
|
|
53
|
-
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
54
|
-
* @param versionData - The version data including code, configuration, and metadata
|
|
55
|
-
* @returns Promise resolving to an ApiResponse containing the development version details
|
|
56
|
-
* @throws Error if the device trigger is not found or the push operation fails
|
|
57
|
-
*/
|
|
58
|
-
async pushDevDeviceTrigger(deviceTriggerId, versionData) {
|
|
59
|
-
return this.httpPost(`/developer/device-triggers/${this.agentId}/${deviceTriggerId}/version/sandbox`, versionData, {
|
|
60
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
61
|
-
});
|
|
62
|
-
}
|
|
63
|
-
/**
|
|
64
|
-
* Retrieves all versions of a specific device trigger
|
|
65
|
-
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
66
|
-
* @returns Promise resolving to an ApiResponse containing an array of device trigger versions
|
|
67
|
-
* @throws Error if the device trigger is not found or the request fails
|
|
68
|
-
*/
|
|
69
|
-
async getDeviceTriggerVersions(deviceTriggerId) {
|
|
70
|
-
return this.httpGet(`/developer/device-triggers/${this.agentId}/${deviceTriggerId}/versions`, {
|
|
71
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
72
|
-
});
|
|
73
|
-
}
|
|
74
|
-
/**
|
|
75
|
-
* Publishes a specific version of a device trigger to production
|
|
76
|
-
* @param deviceTriggerId - The unique identifier of the device trigger
|
|
77
|
-
* @param version - The version identifier to publish
|
|
78
|
-
* @returns Promise resolving to an ApiResponse containing publication confirmation details
|
|
79
|
-
* @throws Error if the device trigger or version is not found or the publish operation fails
|
|
80
|
-
*/
|
|
81
|
-
async publishDeviceTriggerVersion(deviceTriggerId, version) {
|
|
82
|
-
return this.httpPost(`/developer/device-triggers/${this.agentId}/${deviceTriggerId}/${version}/publish`, {}, {
|
|
83
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Activates a device trigger (enables it to receive events)
|
|
88
|
-
* @param deviceTriggerId - The unique identifier of the device trigger to activate
|
|
89
|
-
* @returns Promise resolving to an ApiResponse with activation status
|
|
90
|
-
* @throws Error if the device trigger is not found or the operation fails
|
|
91
|
-
*/
|
|
92
|
-
async activateDeviceTrigger(deviceTriggerId) {
|
|
93
|
-
return this.httpPost(`/developer/device-triggers/${this.agentId}/${deviceTriggerId}/activate`, {}, {
|
|
94
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
/**
|
|
98
|
-
* Deactivates a device trigger (stops it from receiving events)
|
|
99
|
-
* @param deviceTriggerId - The unique identifier of the device trigger to deactivate
|
|
100
|
-
* @returns Promise resolving to an ApiResponse with deactivation status
|
|
101
|
-
* @throws Error if the device trigger is not found or the operation fails
|
|
102
|
-
*/
|
|
103
|
-
async deactivateDeviceTrigger(deviceTriggerId) {
|
|
104
|
-
return this.httpPost(`/developer/device-triggers/${this.agentId}/${deviceTriggerId}/deactivate`, {}, {
|
|
105
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
106
|
-
});
|
|
107
|
-
}
|
|
108
|
-
/**
|
|
109
|
-
* Deletes a device trigger and all its versions, or deactivates it if it has versions
|
|
110
|
-
* @param deviceTriggerId - The unique identifier of the device trigger to delete
|
|
111
|
-
* @returns Promise resolving to an ApiResponse with deletion status
|
|
112
|
-
* @throws Error if the device trigger is not found or the delete operation fails
|
|
113
|
-
*/
|
|
114
|
-
async deleteDeviceTrigger(deviceTriggerId) {
|
|
115
|
-
return this.httpDelete(`/developer/device-triggers/${this.agentId}/${deviceTriggerId}`, {
|
|
116
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
117
|
-
});
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
//# sourceMappingURL=device-trigger.api.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device-trigger.api.service.js","sourceRoot":"","sources":["../../src/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|
2
|
-
import { ApiResponse } from '../interfaces/common.js';
|
|
3
|
-
import type { CreateDeviceRequest, DeviceResponse, PushDeviceVersionDTO } from '../interfaces/devices.js';
|
|
4
|
-
/**
|
|
5
|
-
* Device API Response Types
|
|
6
|
-
*/
|
|
7
|
-
export interface DeviceVersion {
|
|
8
|
-
version: string;
|
|
9
|
-
deviceId: string;
|
|
10
|
-
createdAt: string | number;
|
|
11
|
-
isActive?: boolean;
|
|
12
|
-
}
|
|
13
|
-
export interface GetDevicesResponse {
|
|
14
|
-
devices: DeviceResponse[];
|
|
15
|
-
}
|
|
16
|
-
export interface CreateDeviceResponse {
|
|
17
|
-
id: string;
|
|
18
|
-
name: string;
|
|
19
|
-
description?: string;
|
|
20
|
-
agentId: string;
|
|
21
|
-
}
|
|
22
|
-
export interface PushDeviceVersionResponse {
|
|
23
|
-
versionId: string;
|
|
24
|
-
deviceId: string;
|
|
25
|
-
version: string;
|
|
26
|
-
createdAt: string;
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Device API Service
|
|
30
|
-
* Handles all device-related API calls (CRUD, versioning, commands)
|
|
31
|
-
*/
|
|
32
|
-
export default class DeviceApi extends HttpClient {
|
|
33
|
-
private apiKey;
|
|
34
|
-
private agentId;
|
|
35
|
-
constructor(baseUrl: string, apiKey: string, agentId: string);
|
|
36
|
-
getDevices(): Promise<ApiResponse<GetDevicesResponse>>;
|
|
37
|
-
createDevice(deviceData: CreateDeviceRequest): Promise<ApiResponse<CreateDeviceResponse>>;
|
|
38
|
-
pushDevice(deviceId: string, versionData: PushDeviceVersionDTO): Promise<ApiResponse<PushDeviceVersionResponse>>;
|
|
39
|
-
pushDevDevice(deviceId: string, versionData: PushDeviceVersionDTO): Promise<ApiResponse<PushDeviceVersionResponse>>;
|
|
40
|
-
getDeviceVersions(deviceId: string): Promise<ApiResponse<{
|
|
41
|
-
versions: DeviceVersion[];
|
|
42
|
-
activeVersionId?: string;
|
|
43
|
-
}>>;
|
|
44
|
-
publishDeviceVersion(deviceId: string, version: string): Promise<ApiResponse<{
|
|
45
|
-
message: string;
|
|
46
|
-
deviceId: string;
|
|
47
|
-
activeVersionId: string;
|
|
48
|
-
publishedAt: string;
|
|
49
|
-
}>>;
|
|
50
|
-
deleteDevice(deviceId: string): Promise<ApiResponse<{
|
|
51
|
-
deleted: boolean;
|
|
52
|
-
message: string;
|
|
53
|
-
}>>;
|
|
54
|
-
sendCommand(deviceName: string, command: string, payload: any, timeout?: number): Promise<ApiResponse<any>>;
|
|
55
|
-
getDeviceStatus(deviceName: string): Promise<ApiResponse<{
|
|
56
|
-
status: string;
|
|
57
|
-
}>>;
|
|
58
|
-
enableDevice(deviceName: string): Promise<ApiResponse<any>>;
|
|
59
|
-
disableDevice(deviceName: string): Promise<ApiResponse<any>>;
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=device.api.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device.api.service.d.ts","sourceRoot":"","sources":["../../src/api/device.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,KAAK,EAAE,mBAAmB,EAAE,cAAc,EAAE,oBAAoB,EAAE,MAAM,0BAA0B,CAAC;AAE1G;;GAEG;AACH,MAAM,WAAW,aAAa;IAC5B,OAAO,EAAE,MAAM,CAAC;IAChB,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,GAAG,MAAM,CAAC;IAC3B,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,MAAM,WAAW,kBAAkB;IACjC,OAAO,EAAE,cAAc,EAAE,CAAC;CAC3B;AAED,MAAM,WAAW,oBAAoB;IACnC,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,OAAO,EAA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AE,OAAO,CAAC;QAAC,OAAO,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAM3F,WAAW,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAc3G,eAAe,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC;QAAE,MAAM,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAM7E,YAAY,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAU3D,aAAa,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;CASnE"}
|
|
@@ -1,72 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './http.client.js';
|
|
2
|
-
/**
|
|
3
|
-
* Device API Service
|
|
4
|
-
* Handles all device-related API calls (CRUD, versioning, commands)
|
|
5
|
-
*/
|
|
6
|
-
export default class DeviceApi extends HttpClient {
|
|
7
|
-
constructor(baseUrl, apiKey, agentId) {
|
|
8
|
-
super(baseUrl);
|
|
9
|
-
this.apiKey = apiKey;
|
|
10
|
-
this.agentId = agentId;
|
|
11
|
-
}
|
|
12
|
-
async getDevices() {
|
|
13
|
-
return this.httpGet(`/developer/devices/${this.agentId}`, {
|
|
14
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
15
|
-
});
|
|
16
|
-
}
|
|
17
|
-
async createDevice(deviceData) {
|
|
18
|
-
return this.httpPost(`/developer/devices/${this.agentId}`, deviceData, {
|
|
19
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
20
|
-
});
|
|
21
|
-
}
|
|
22
|
-
async pushDevice(deviceId, versionData) {
|
|
23
|
-
return this.httpPost(`/developer/devices/${this.agentId}/${deviceId}/version`, versionData, {
|
|
24
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
async pushDevDevice(deviceId, versionData) {
|
|
28
|
-
return this.httpPost(`/developer/devices/${this.agentId}/${deviceId}/version/sandbox`, versionData, {
|
|
29
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
30
|
-
});
|
|
31
|
-
}
|
|
32
|
-
async getDeviceVersions(deviceId) {
|
|
33
|
-
return this.httpGet(`/developer/devices/${this.agentId}/${deviceId}/versions`, {
|
|
34
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
35
|
-
});
|
|
36
|
-
}
|
|
37
|
-
async publishDeviceVersion(deviceId, version) {
|
|
38
|
-
return this.httpPost(`/developer/devices/${this.agentId}/${deviceId}/${version}/publish`, {}, {
|
|
39
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
40
|
-
});
|
|
41
|
-
}
|
|
42
|
-
async deleteDevice(deviceId) {
|
|
43
|
-
return this.httpDelete(`/developer/devices/${this.agentId}/${deviceId}`, {
|
|
44
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
45
|
-
});
|
|
46
|
-
}
|
|
47
|
-
async sendCommand(deviceName, command, payload, timeout) {
|
|
48
|
-
return this.httpPost(`/developer/devices/${this.agentId}/${deviceName}/command`, {
|
|
49
|
-
command,
|
|
50
|
-
payload,
|
|
51
|
-
timeout: timeout || 30000,
|
|
52
|
-
}, {
|
|
53
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
async getDeviceStatus(deviceName) {
|
|
57
|
-
return this.httpGet(`/developer/devices/${this.agentId}/${deviceName}/status`, {
|
|
58
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
async enableDevice(deviceName) {
|
|
62
|
-
return this.httpPatch(`/developer/devices/${this.agentId}/${deviceName}/enable`, {}, {
|
|
63
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
64
|
-
});
|
|
65
|
-
}
|
|
66
|
-
async disableDevice(deviceName) {
|
|
67
|
-
return this.httpPatch(`/developer/devices/${this.agentId}/${deviceName}/disable`, {}, {
|
|
68
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
69
|
-
});
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
//# sourceMappingURL=device.api.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"device.api.service.js","sourceRoot":"","sources":["../../src/api/device.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAgC9C;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,SAAU,SAAQ,UAAU;IAI/C,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,KAAK,CAAC,UAAU;QACd,OAAO,IAAI,CAAC,OAAO,CAAqB,sBAAsB,IAAI,CAAC,OAAO,EAAE,EAAE;YAC5E,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,YAAY,CAAC,UAA+B;QAChD,OAAO,IAAI,CAAC,QAAQ,CAAuB,sBAAsB,IAAI,CAAC,OAAO,EAAE,EAAE,UAAU,EAAE;YAC3F,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,UAAU,CACd,QAAgB,EAChB,WAAiC;QAEjC,OAAO,IAAI,CAAC,QAAQ,CAClB,sBAAsB,IAAI,CAAC,OAAO,IAAI,QAAQ,UAAU,EACxD,WAAW,EACX;YACE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CACF,CAAC;IACJ,CAAC;IAED,KAAK,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