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,77 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './http.client.js';
|
|
2
|
-
import { ApiResponse } from '../interfaces/common.js';
|
|
3
|
-
/**
|
|
4
|
-
* Resource data structure
|
|
5
|
-
*/
|
|
6
|
-
export interface Resource {
|
|
7
|
-
id: string;
|
|
8
|
-
name: string;
|
|
9
|
-
content: string;
|
|
10
|
-
createdAt?: string;
|
|
11
|
-
updatedAt?: string;
|
|
12
|
-
}
|
|
13
|
-
/**
|
|
14
|
-
* Create resource request
|
|
15
|
-
*/
|
|
16
|
-
export interface CreateResourceRequest {
|
|
17
|
-
name: string;
|
|
18
|
-
content: string;
|
|
19
|
-
}
|
|
20
|
-
/**
|
|
21
|
-
* Update resource request
|
|
22
|
-
*/
|
|
23
|
-
export interface UpdateResourceRequest {
|
|
24
|
-
name: string;
|
|
25
|
-
content: string;
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Resource API Service
|
|
29
|
-
* Handles all resource-related API calls (knowledge base documents)
|
|
30
|
-
*/
|
|
31
|
-
export default class ResourceApi extends HttpClient {
|
|
32
|
-
apiKey: string;
|
|
33
|
-
agentId: string;
|
|
34
|
-
/**
|
|
35
|
-
* Creates an instance of ResourceApi
|
|
36
|
-
* @param baseUrl - The base URL for the API
|
|
37
|
-
* @param apiKey - The API key for authentication
|
|
38
|
-
* @param agentId - The unique identifier of the agent
|
|
39
|
-
*/
|
|
40
|
-
constructor(baseUrl: string, apiKey: string, agentId: string);
|
|
41
|
-
/**
|
|
42
|
-
* Retrieves all resources for the agent
|
|
43
|
-
* @returns Promise resolving to an ApiResponse containing an array of resources
|
|
44
|
-
* @throws Error if the API request fails or the agent is not found
|
|
45
|
-
*/
|
|
46
|
-
getResources(): Promise<ApiResponse<Resource[]>>;
|
|
47
|
-
/**
|
|
48
|
-
* Retrieves a single resource by ID
|
|
49
|
-
* @param resourceId - The unique identifier of the resource
|
|
50
|
-
* @returns Promise resolving to an ApiResponse containing the resource
|
|
51
|
-
* @throws Error if the resource is not found or the request fails
|
|
52
|
-
*/
|
|
53
|
-
getResource(resourceId: string): Promise<ApiResponse<Resource>>;
|
|
54
|
-
/**
|
|
55
|
-
* Creates a new resource for the agent
|
|
56
|
-
* @param resourceData - The resource data including name and content
|
|
57
|
-
* @returns Promise resolving to an ApiResponse containing the created resource
|
|
58
|
-
* @throws Error if the resource creation fails or validation errors occur
|
|
59
|
-
*/
|
|
60
|
-
createResource(resourceData: CreateResourceRequest): Promise<ApiResponse<Resource>>;
|
|
61
|
-
/**
|
|
62
|
-
* Updates an existing resource
|
|
63
|
-
* @param resourceId - The unique identifier of the resource to update
|
|
64
|
-
* @param resourceData - The updated resource data including name and content
|
|
65
|
-
* @returns Promise resolving to an ApiResponse containing the updated resource
|
|
66
|
-
* @throws Error if the resource is not found or the update fails
|
|
67
|
-
*/
|
|
68
|
-
updateResource(resourceId: string, resourceData: UpdateResourceRequest): Promise<ApiResponse<Resource>>;
|
|
69
|
-
/**
|
|
70
|
-
* Deletes a resource
|
|
71
|
-
* @param resourceId - The unique identifier of the resource to delete
|
|
72
|
-
* @returns Promise resolving to an ApiResponse with confirmation
|
|
73
|
-
* @throws Error if the resource is not found or the delete operation fails
|
|
74
|
-
*/
|
|
75
|
-
deleteResource(resourceId: string): Promise<ApiResponse<void>>;
|
|
76
|
-
}
|
|
77
|
-
//# sourceMappingURL=resource.api.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource.api.service.d.ts","sourceRoot":"","sources":["../../src/api/resource.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD;;GAEG;AACH,MAAM,WAAW,QAAQ;IACvB,EAAE,EAAE,MAAM,CAAC;IACX,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;IAChB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;CACpB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;GAEG;AACH,MAAM,WAAW,qBAAqB;IACpC,IAAI,EAAE,MAAM,CAAC;IACb,OAAO,EAAE,MAAM,CAAC;CACjB;AAED;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,UAAU;IAC1C,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,MAAM,CAAC;IAEvB;;;;;OAKG;gBACS,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAM5D;;;;OAIG;IACG,YAAY,IAAI,OAAO,CAAC,WAAW,CAAC,QAAQ,EAAE,CAAC,CAAC;IAMtD;;;;;OAKG;IACG,WAAW,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAMrE;;;;;OAKG;IACG,cAAc,CAAC,YAAY,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAMzF;;;;;;OAMG;IACG,cAAc,CAAC,UAAU,EAAE,MAAM,EAAE,YAAY,EAAE,qBAAqB,GAAG,OAAO,CAAC,WAAW,CAAC,QAAQ,CAAC,CAAC;IAM7G;;;;;OAKG;IACG,cAAc,CAAC,UAAU,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,CAAC;CAKrE"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './http.client.js';
|
|
2
|
-
/**
|
|
3
|
-
* Resource API Service
|
|
4
|
-
* Handles all resource-related API calls (knowledge base documents)
|
|
5
|
-
*/
|
|
6
|
-
export default class ResourceApi extends HttpClient {
|
|
7
|
-
/**
|
|
8
|
-
* Creates an instance of ResourceApi
|
|
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 resources for the agent
|
|
20
|
-
* @returns Promise resolving to an ApiResponse containing an array of resources
|
|
21
|
-
* @throws Error if the API request fails or the agent is not found
|
|
22
|
-
*/
|
|
23
|
-
async getResources() {
|
|
24
|
-
return this.httpGet(`/admin/agents/${this.agentId}/resources`, {
|
|
25
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
/**
|
|
29
|
-
* Retrieves a single resource by ID
|
|
30
|
-
* @param resourceId - The unique identifier of the resource
|
|
31
|
-
* @returns Promise resolving to an ApiResponse containing the resource
|
|
32
|
-
* @throws Error if the resource is not found or the request fails
|
|
33
|
-
*/
|
|
34
|
-
async getResource(resourceId) {
|
|
35
|
-
return this.httpGet(`/admin/agents/${this.agentId}/resources/${resourceId}`, {
|
|
36
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
37
|
-
});
|
|
38
|
-
}
|
|
39
|
-
/**
|
|
40
|
-
* Creates a new resource for the agent
|
|
41
|
-
* @param resourceData - The resource data including name and content
|
|
42
|
-
* @returns Promise resolving to an ApiResponse containing the created resource
|
|
43
|
-
* @throws Error if the resource creation fails or validation errors occur
|
|
44
|
-
*/
|
|
45
|
-
async createResource(resourceData) {
|
|
46
|
-
return this.httpPost(`/admin/agents/${this.agentId}/resources`, resourceData, {
|
|
47
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Updates an existing resource
|
|
52
|
-
* @param resourceId - The unique identifier of the resource to update
|
|
53
|
-
* @param resourceData - The updated resource data including name and content
|
|
54
|
-
* @returns Promise resolving to an ApiResponse containing the updated resource
|
|
55
|
-
* @throws Error if the resource is not found or the update fails
|
|
56
|
-
*/
|
|
57
|
-
async updateResource(resourceId, resourceData) {
|
|
58
|
-
return this.httpPut(`/admin/agents/${this.agentId}/resources/${resourceId}`, resourceData, {
|
|
59
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Deletes a resource
|
|
64
|
-
* @param resourceId - The unique identifier of the resource to delete
|
|
65
|
-
* @returns Promise resolving to an ApiResponse with confirmation
|
|
66
|
-
* @throws Error if the resource is not found or the delete operation fails
|
|
67
|
-
*/
|
|
68
|
-
async deleteResource(resourceId) {
|
|
69
|
-
return this.httpDelete(`/admin/agents/${this.agentId}/resources/${resourceId}`, {
|
|
70
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=resource.api.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"resource.api.service.js","sourceRoot":"","sources":["../../src/api/resource.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AA8B9C;;;GAGG;AACH,MAAM,CAAC,OAAO,OAAO,WAAY,SAAQ,UAAU;IAIjD;;;;;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;;;;OAIG;IACH,KAAK,CAAC,YAAY;QAChB,OAAO,IAAI,CAAC,OAAO,CAAa,iBAAiB,IAAI,CAAC,OAAO,YAAY,EAAE;YACzE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CAAC,UAAkB;QAClC,OAAO,IAAI,CAAC,OAAO,CAAW,iBAAiB,IAAI,CAAC,OAAO,cAAc,UAAU,EAAE,EAAE;YACrF,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAAC,YAAmC;QACtD,OAAO,IAAI,CAAC,QAAQ,CAAW,iBAAiB,IAAI,CAAC,OAAO,YAAY,EAAE,YAAY,EAAE;YACtF,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,cAAc,CAAC,UAAkB,EAAE,YAAmC;QAC1E,OAAO,IAAI,CAAC,OAAO,CAAW,iBAAiB,IAAI,CAAC,OAAO,cAAc,UAAU,EAAE,EAAE,YAAY,EAAE;YACnG,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,cAAc,CAAC,UAAkB;QACrC,OAAO,IAAI,CAAC,UAAU,CAAO,iBAAiB,IAAI,CAAC,OAAO,cAAc,UAAU,EAAE,EAAE;YACpF,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { DevVersionResponse, UpdateDevVersionResponse } from '../interfaces/dev.js';
|
|
2
|
-
import { HttpClient } from './http.client.js';
|
|
3
|
-
import { ApiResponse } from '../interfaces/common.js';
|
|
4
|
-
import { GetSkillsResponse, DeleteSkillResponse, CreateSkillRequest, CreateSkillResponse, PushSkillVersionRequest, GetSkillVersionsResponse } from '../interfaces/skills.js';
|
|
5
|
-
import type { AttachSkillSourcePayload as AttachSkillSourceRequest, AttachSkillSourceResponse } from '@lua/shared-source-sync';
|
|
6
|
-
/**
|
|
7
|
-
* Skill API calls
|
|
8
|
-
*/
|
|
9
|
-
export default class SkillApi extends HttpClient {
|
|
10
|
-
private apiKey;
|
|
11
|
-
private agentId;
|
|
12
|
-
/**
|
|
13
|
-
* Creates an instance of SkillApi
|
|
14
|
-
* @param baseUrl - The base URL for the API
|
|
15
|
-
* @param apiKey - The API key for authentication
|
|
16
|
-
* @param agentId - The unique identifier of the agent
|
|
17
|
-
*/
|
|
18
|
-
constructor(baseUrl: string, apiKey: string, agentId: string);
|
|
19
|
-
/**
|
|
20
|
-
* Retrieves all skills for the agent
|
|
21
|
-
* @returns Promise resolving to an ApiResponse containing an array of skills with their versions and tools
|
|
22
|
-
* @throws Error if the API request fails or the agent is not found
|
|
23
|
-
*/
|
|
24
|
-
getSkills(): Promise<ApiResponse<GetSkillsResponse>>;
|
|
25
|
-
/**
|
|
26
|
-
* Creates a new skill for the agent
|
|
27
|
-
* @param skillData - The skill data including name, description, and optional context
|
|
28
|
-
* @returns Promise resolving to an ApiResponse containing the created skill details
|
|
29
|
-
* @throws Error if the skill creation fails or validation errors occur
|
|
30
|
-
*/
|
|
31
|
-
createSkill(skillData: CreateSkillRequest): Promise<ApiResponse<CreateSkillResponse>>;
|
|
32
|
-
/**
|
|
33
|
-
* Pushes a new version of a skill to production
|
|
34
|
-
* @param skillId - The unique identifier of the skill
|
|
35
|
-
* @param versionData - The version data including code, configuration, and metadata
|
|
36
|
-
* @returns Promise resolving to an ApiResponse containing the created version details
|
|
37
|
-
* @throws Error if the skill is not found or the push operation fails
|
|
38
|
-
*/
|
|
39
|
-
pushSkill(skillId: string, versionData: PushSkillVersionRequest): Promise<ApiResponse<DevVersionResponse>>;
|
|
40
|
-
/**
|
|
41
|
-
* Pushes a new development/sandbox version of a skill for testing
|
|
42
|
-
* @param skillId - The unique identifier of the skill
|
|
43
|
-
* @param versionData - The version data including code, configuration, and metadata
|
|
44
|
-
* @returns Promise resolving to an ApiResponse containing the development version details
|
|
45
|
-
* @throws Error if the skill is not found or the push operation fails
|
|
46
|
-
*/
|
|
47
|
-
pushDevSkill(skillId: string, versionData: PushSkillVersionRequest): Promise<ApiResponse<DevVersionResponse>>;
|
|
48
|
-
/**
|
|
49
|
-
* Updates an existing development/sandbox version of a skill
|
|
50
|
-
* @param skillId - The unique identifier of the skill
|
|
51
|
-
* @param sandboxVersionId - The unique identifier of the sandbox version to update
|
|
52
|
-
* @param versionData - The updated version data including code, configuration, and metadata
|
|
53
|
-
* @returns Promise resolving to an ApiResponse containing the updated version details
|
|
54
|
-
* @throws Error if the skill or version is not found or the update fails
|
|
55
|
-
*/
|
|
56
|
-
updateDevSkill(skillId: string, sandboxVersionId: string, versionData: PushSkillVersionRequest): Promise<ApiResponse<UpdateDevVersionResponse>>;
|
|
57
|
-
/**
|
|
58
|
-
* Retrieves all versions of a specific skill
|
|
59
|
-
* @param skillId - The unique identifier of the skill
|
|
60
|
-
* @returns Promise resolving to an ApiResponse containing an array of skill versions
|
|
61
|
-
* @throws Error if the skill is not found or the request fails
|
|
62
|
-
*/
|
|
63
|
-
getSkillVersions(skillId: string): Promise<ApiResponse<GetSkillVersionsResponse>>;
|
|
64
|
-
/**
|
|
65
|
-
* Publishes a specific version of a skill to production
|
|
66
|
-
* @param skillId - The unique identifier of the skill
|
|
67
|
-
* @param version - The version identifier to publish
|
|
68
|
-
* @returns Promise resolving to an ApiResponse containing publication confirmation details
|
|
69
|
-
* @throws Error if the skill or version is not found or the publish operation fails
|
|
70
|
-
*/
|
|
71
|
-
publishSkillVersion(skillId: string, version: string): Promise<ApiResponse<{
|
|
72
|
-
message: string;
|
|
73
|
-
skillId: string;
|
|
74
|
-
activeVersionId: string;
|
|
75
|
-
publishedAt: string;
|
|
76
|
-
}>>;
|
|
77
|
-
/**
|
|
78
|
-
* Deletes a skill and all its versions, or deactivates it if it has versions
|
|
79
|
-
* @param skillId - The unique identifier of the skill to delete
|
|
80
|
-
* @returns Promise resolving to an ApiResponse with deletion status
|
|
81
|
-
* - If deleted is true: skill was successfully deleted
|
|
82
|
-
* - If deleted is false and deactivated is true: skill has versions and was deactivated instead
|
|
83
|
-
* @throws Error if the skill is not found or the delete operation fails
|
|
84
|
-
*/
|
|
85
|
-
deleteSkill(skillId: string): Promise<ApiResponse<DeleteSkillResponse>>;
|
|
86
|
-
/**
|
|
87
|
-
* Attach TS source + workspace archive to a skill version. Powers
|
|
88
|
-
* `lua push --include-source` so the admin Builder UI can render the
|
|
89
|
-
* source without waiting for the next UI-driven build.
|
|
90
|
-
*/
|
|
91
|
-
attachSkillSource(skillId: string, version: string, body: AttachSkillSourceRequest): Promise<ApiResponse<AttachSkillSourceResponse>>;
|
|
92
|
-
}
|
|
93
|
-
export type { AttachSkillSourceRequest, AttachSkillSourceResponse };
|
|
94
|
-
//# sourceMappingURL=skills.api.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skills.api.service.d.ts","sourceRoot":"","sources":["../../src/api/skills.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,wBAAwB,EAAE,MAAM,sBAAsB,CAAC;AACpF,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AACtD,OAAO,EACL,iBAAiB,EACjB,mBAAmB,EACnB,kBAAkB,EAClB,mBAAmB,EACnB,uBAAuB,EACvB,wBAAwB,EACzB,MAAM,yBAAyB,CAAC;AACjC,OAAO,KAAK,EACV,wBAAwB,IAAI,wBAAwB,EACpD,yBAAyB,EAC1B,MAAM,yBAAyB,CAAC;AAEjC;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,UAAU;IAC9C,OAAO,CAAC,MAAM,CAAS;IACvB,OAAO,CAAC,OAAO,CAAS;IAExB;;;;;OAKG;gBACS,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM;IAM5D;;;;OAIG;IACG,SAAS,IAAI,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,CAAC;IAM1D;;;;;OAKG;IACG,WAAW,CAAC,SAAS,EAAE,kBAAkB,GAAG,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAM3F;;;;;;OAMG;IACG,SAAS,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,uBAAuB,GAAG,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IAMhH;;;;;;OAMG;IACG,YAAY,CAAC,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,uBAAuB,GAAG,OAAO,CAAC,WAAW,CAAC,kBAAkB,CAAC,CAAC;IAUnH;;;;;;;OAOG;IACG,cAAc,CAClB,OAAO,EAAE,MAAM,EACf,gBAAgB,EAAE,MAAM,EACxB,WAAW,EAAE,uBAAuB,GACnC,OAAO,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;IAUjD;;;;;OAKG;IACG,gBAAgB,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,wBAAwB,CAAC,CAAC;IAMvF;;;;;;OAMG;IACG,mBAAmB,CACvB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,GACd,OAAO,CAAC,WAAW,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,OAAO,EAAE,MAAM,CAAC;QAAC,eAAe,EAAE,MAAM,CAAC;QAAC,WAAW,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;IAU3G;;;;;;;OAOG;IACG,WAAW,CAAC,OAAO,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,mBAAmB,CAAC,CAAC;IAM7E;;;;OAIG;IACG,iBAAiB,CACrB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,MAAM,EACf,IAAI,EAAE,wBAAwB,GAC7B,OAAO,CAAC,WAAW,CAAC,yBAAyB,CAAC,CAAC;CAOnD;AAED,YAAY,EAAE,wBAAwB,EAAE,yBAAyB,EAAE,CAAC"}
|
|
@@ -1,120 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './http.client.js';
|
|
2
|
-
/**
|
|
3
|
-
* Skill API calls
|
|
4
|
-
*/
|
|
5
|
-
export default class SkillApi extends HttpClient {
|
|
6
|
-
/**
|
|
7
|
-
* Creates an instance of SkillApi
|
|
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 skills for the agent
|
|
19
|
-
* @returns Promise resolving to an ApiResponse containing an array of skills with their versions and tools
|
|
20
|
-
* @throws Error if the API request fails or the agent is not found
|
|
21
|
-
*/
|
|
22
|
-
async getSkills() {
|
|
23
|
-
return this.httpGet(`/developer/skills/${this.agentId}`, {
|
|
24
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
25
|
-
});
|
|
26
|
-
}
|
|
27
|
-
/**
|
|
28
|
-
* Creates a new skill for the agent
|
|
29
|
-
* @param skillData - The skill data including name, description, and optional context
|
|
30
|
-
* @returns Promise resolving to an ApiResponse containing the created skill details
|
|
31
|
-
* @throws Error if the skill creation fails or validation errors occur
|
|
32
|
-
*/
|
|
33
|
-
async createSkill(skillData) {
|
|
34
|
-
return this.httpPost(`/developer/skills/${this.agentId}`, skillData, {
|
|
35
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Pushes a new version of a skill to production
|
|
40
|
-
* @param skillId - The unique identifier of the skill
|
|
41
|
-
* @param versionData - The version data including code, configuration, and metadata
|
|
42
|
-
* @returns Promise resolving to an ApiResponse containing the created version details
|
|
43
|
-
* @throws Error if the skill is not found or the push operation fails
|
|
44
|
-
*/
|
|
45
|
-
async pushSkill(skillId, versionData) {
|
|
46
|
-
return this.httpPost(`/developer/skills/${this.agentId}/${skillId}/version`, versionData, {
|
|
47
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Pushes a new development/sandbox version of a skill for testing
|
|
52
|
-
* @param skillId - The unique identifier of the skill
|
|
53
|
-
* @param versionData - The version data including code, configuration, and metadata
|
|
54
|
-
* @returns Promise resolving to an ApiResponse containing the development version details
|
|
55
|
-
* @throws Error if the skill is not found or the push operation fails
|
|
56
|
-
*/
|
|
57
|
-
async pushDevSkill(skillId, versionData) {
|
|
58
|
-
return this.httpPost(`/developer/skills/${this.agentId}/${skillId}/version/sandbox`, versionData, {
|
|
59
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
60
|
-
});
|
|
61
|
-
}
|
|
62
|
-
/**
|
|
63
|
-
* Updates an existing development/sandbox version of a skill
|
|
64
|
-
* @param skillId - The unique identifier of the skill
|
|
65
|
-
* @param sandboxVersionId - The unique identifier of the sandbox version to update
|
|
66
|
-
* @param versionData - The updated version data including code, configuration, and metadata
|
|
67
|
-
* @returns Promise resolving to an ApiResponse containing the updated version details
|
|
68
|
-
* @throws Error if the skill or version is not found or the update fails
|
|
69
|
-
*/
|
|
70
|
-
async updateDevSkill(skillId, sandboxVersionId, versionData) {
|
|
71
|
-
return this.httpPut(`/developer/skills/${this.agentId}/${skillId}/version/sandbox/${sandboxVersionId}`, versionData, {
|
|
72
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
73
|
-
});
|
|
74
|
-
}
|
|
75
|
-
/**
|
|
76
|
-
* Retrieves all versions of a specific skill
|
|
77
|
-
* @param skillId - The unique identifier of the skill
|
|
78
|
-
* @returns Promise resolving to an ApiResponse containing an array of skill versions
|
|
79
|
-
* @throws Error if the skill is not found or the request fails
|
|
80
|
-
*/
|
|
81
|
-
async getSkillVersions(skillId) {
|
|
82
|
-
return this.httpGet(`/developer/skills/${this.agentId}/${skillId}/versions`, {
|
|
83
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
84
|
-
});
|
|
85
|
-
}
|
|
86
|
-
/**
|
|
87
|
-
* Publishes a specific version of a skill to production
|
|
88
|
-
* @param skillId - The unique identifier of the skill
|
|
89
|
-
* @param version - The version identifier to publish
|
|
90
|
-
* @returns Promise resolving to an ApiResponse containing publication confirmation details
|
|
91
|
-
* @throws Error if the skill or version is not found or the publish operation fails
|
|
92
|
-
*/
|
|
93
|
-
async publishSkillVersion(skillId, version) {
|
|
94
|
-
return this.httpPut(`/developer/skills/${this.agentId}/${skillId}/${version}/publish`, undefined, {
|
|
95
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
96
|
-
});
|
|
97
|
-
}
|
|
98
|
-
/**
|
|
99
|
-
* Deletes a skill and all its versions, or deactivates it if it has versions
|
|
100
|
-
* @param skillId - The unique identifier of the skill to delete
|
|
101
|
-
* @returns Promise resolving to an ApiResponse with deletion status
|
|
102
|
-
* - If deleted is true: skill was successfully deleted
|
|
103
|
-
* - If deleted is false and deactivated is true: skill has versions and was deactivated instead
|
|
104
|
-
* @throws Error if the skill is not found or the delete operation fails
|
|
105
|
-
*/
|
|
106
|
-
async deleteSkill(skillId) {
|
|
107
|
-
return this.httpDelete(`/developer/skills/${this.agentId}/${skillId}`, {
|
|
108
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
109
|
-
});
|
|
110
|
-
}
|
|
111
|
-
/**
|
|
112
|
-
* Attach TS source + workspace archive to a skill version. Powers
|
|
113
|
-
* `lua push --include-source` so the admin Builder UI can render the
|
|
114
|
-
* source without waiting for the next UI-driven build.
|
|
115
|
-
*/
|
|
116
|
-
async attachSkillSource(skillId, version, body) {
|
|
117
|
-
return this.httpPut(`/developer/skills/${this.agentId}/${skillId}/version/${encodeURIComponent(version)}/source`, body, { Authorization: `Bearer ${this.apiKey}` });
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
//# sourceMappingURL=skills.api.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"skills.api.service.js","sourceRoot":"","sources":["../../src/api/skills.api.service.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAe9C;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,QAAS,SAAQ,UAAU;IAI9C;;;;;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;;;;OAIG;IACH,KAAK,CAAC,SAAS;QACb,OAAO,IAAI,CAAC,OAAO,CAAoB,qBAAqB,IAAI,CAAC,OAAO,EAAE,EAAE;YAC1E,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,WAAW,CAAC,SAA6B;QAC7C,OAAO,IAAI,CAAC,QAAQ,CAAsB,qBAAqB,IAAI,CAAC,OAAO,EAAE,EAAE,SAAS,EAAE;YACxF,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,SAAS,CAAC,OAAe,EAAE,WAAoC;QACnE,OAAO,IAAI,CAAC,QAAQ,CAAqB,qBAAqB,IAAI,CAAC,OAAO,IAAI,OAAO,UAAU,EAAE,WAAW,EAAE;YAC5G,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,YAAY,CAAC,OAAe,EAAE,WAAoC;QACtE,OAAO,IAAI,CAAC,QAAQ,CAClB,qBAAqB,IAAI,CAAC,OAAO,IAAI,OAAO,kBAAkB,EAC9D,WAAW,EACX;YACE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,cAAc,CAClB,OAAe,EACf,gBAAwB,EACxB,WAAoC;QAEpC,OAAO,IAAI,CAAC,OAAO,CACjB,qBAAqB,IAAI,CAAC,OAAO,IAAI,OAAO,oBAAoB,gBAAgB,EAAE,EAClF,WAAW,EACX;YACE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CACF,CAAC;IACJ,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,gBAAgB,CAAC,OAAe;QACpC,OAAO,IAAI,CAAC,OAAO,CAA2B,qBAAqB,IAAI,CAAC,OAAO,IAAI,OAAO,WAAW,EAAE;YACrG,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,mBAAmB,CACvB,OAAe,EACf,OAAe;QAEf,OAAO,IAAI,CAAC,OAAO,CACjB,qBAAqB,IAAI,CAAC,OAAO,IAAI,OAAO,IAAI,OAAO,UAAU,EACjE,SAAS,EACT;YACE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CACF,CAAC;IACJ,CAAC;IAED;;;;;;;OAOG;IACH,KAAK,CAAC,WAAW,CAAC,OAAe;QAC/B,OAAO,IAAI,CAAC,UAAU,CAAsB,qBAAqB,IAAI,CAAC,OAAO,IAAI,OAAO,EAAE,EAAE;YAC1F,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,KAAK,CAAC,iBAAiB,CACrB,OAAe,EACf,OAAe,EACf,IAA8B;QAE9B,OAAO,IAAI,CAAC,OAAO,CACjB,qBAAqB,IAAI,CAAC,OAAO,IAAI,OAAO,YAAY,kBAAkB,CAAC,OAAO,CAAC,SAAS,EAC5F,IAAI,EACJ,EAAE,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE,EAAE,CAC3C,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,53 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './http.client.js';
|
|
2
|
-
import { ApiResponse } from '../interfaces/common.js';
|
|
3
|
-
/**
|
|
4
|
-
* Tool API calls (for compile command)
|
|
5
|
-
*/
|
|
6
|
-
export default class ToolApi extends HttpClient {
|
|
7
|
-
private apiKey;
|
|
8
|
-
/**
|
|
9
|
-
* Creates an instance of ToolApi
|
|
10
|
-
* @param baseUrl - The base URL for the API
|
|
11
|
-
* @param apiKey - The API key for authentication
|
|
12
|
-
*/
|
|
13
|
-
constructor(baseUrl: string, apiKey: string);
|
|
14
|
-
/**
|
|
15
|
-
* Performs a GET request to a tool endpoint
|
|
16
|
-
* @param url - The full or relative URL to request
|
|
17
|
-
* @returns Promise resolving to an ApiResponse with the tool's response data
|
|
18
|
-
* @throws Error if the request fails
|
|
19
|
-
*/
|
|
20
|
-
getTool(url: string): Promise<ApiResponse<any>>;
|
|
21
|
-
/**
|
|
22
|
-
* Performs a POST request to a tool endpoint
|
|
23
|
-
* @param url - The full or relative URL to request
|
|
24
|
-
* @param data - The data to send in the request body
|
|
25
|
-
* @returns Promise resolving to an ApiResponse with the tool's response data
|
|
26
|
-
* @throws Error if the request fails
|
|
27
|
-
*/
|
|
28
|
-
postTool(url: string, data: any): Promise<ApiResponse<any>>;
|
|
29
|
-
/**
|
|
30
|
-
* Performs a PUT request to a tool endpoint
|
|
31
|
-
* @param url - The full or relative URL to request
|
|
32
|
-
* @param data - The data to send in the request body
|
|
33
|
-
* @returns Promise resolving to an ApiResponse with the tool's response data
|
|
34
|
-
* @throws Error if the request fails
|
|
35
|
-
*/
|
|
36
|
-
putTool(url: string, data: any): Promise<ApiResponse<any>>;
|
|
37
|
-
/**
|
|
38
|
-
* Performs a DELETE request to a tool endpoint
|
|
39
|
-
* @param url - The full or relative URL to request
|
|
40
|
-
* @returns Promise resolving to an ApiResponse with the tool's response data
|
|
41
|
-
* @throws Error if the request fails
|
|
42
|
-
*/
|
|
43
|
-
deleteTool(url: string): Promise<ApiResponse<any>>;
|
|
44
|
-
/**
|
|
45
|
-
* Performs a PATCH request to a tool endpoint
|
|
46
|
-
* @param url - The full or relative URL to request
|
|
47
|
-
* @param data - The data to send in the request body
|
|
48
|
-
* @returns Promise resolving to an ApiResponse with the tool's response data
|
|
49
|
-
* @throws Error if the request fails
|
|
50
|
-
*/
|
|
51
|
-
patchTool(url: string, data: any): Promise<ApiResponse<any>>;
|
|
52
|
-
}
|
|
53
|
-
//# sourceMappingURL=tool.api.service.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool.api.service.d.ts","sourceRoot":"","sources":["../../src/api/tool.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC;AAEtD;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,UAAU;IAC7C,OAAO,CAAC,MAAM,CAAS;IAEvB;;;;OAIG;gBACS,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAK3C;;;;;OAKG;IACG,OAAO,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAMrD;;;;;;OAMG;IACG,QAAQ,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAMjE;;;;;;OAMG;IACG,OAAO,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAMhE;;;;;OAKG;IACG,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;IAMxD;;;;;;OAMG;IACG,SAAS,CAAC,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,WAAW,CAAC,GAAG,CAAC,CAAC;CAKnE"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './http.client.js';
|
|
2
|
-
/**
|
|
3
|
-
* Tool API calls (for compile command)
|
|
4
|
-
*/
|
|
5
|
-
export default class ToolApi extends HttpClient {
|
|
6
|
-
/**
|
|
7
|
-
* Creates an instance of ToolApi
|
|
8
|
-
* @param baseUrl - The base URL for the API
|
|
9
|
-
* @param apiKey - The API key for authentication
|
|
10
|
-
*/
|
|
11
|
-
constructor(baseUrl, apiKey) {
|
|
12
|
-
super(baseUrl);
|
|
13
|
-
this.apiKey = apiKey;
|
|
14
|
-
}
|
|
15
|
-
/**
|
|
16
|
-
* Performs a GET request to a tool endpoint
|
|
17
|
-
* @param url - The full or relative URL to request
|
|
18
|
-
* @returns Promise resolving to an ApiResponse with the tool's response data
|
|
19
|
-
* @throws Error if the request fails
|
|
20
|
-
*/
|
|
21
|
-
async getTool(url) {
|
|
22
|
-
return this.httpGet(url, {
|
|
23
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
24
|
-
});
|
|
25
|
-
}
|
|
26
|
-
/**
|
|
27
|
-
* Performs a POST request to a tool endpoint
|
|
28
|
-
* @param url - The full or relative URL to request
|
|
29
|
-
* @param data - The data to send in the request body
|
|
30
|
-
* @returns Promise resolving to an ApiResponse with the tool's response data
|
|
31
|
-
* @throws Error if the request fails
|
|
32
|
-
*/
|
|
33
|
-
async postTool(url, data) {
|
|
34
|
-
return this.httpPost(url, data, {
|
|
35
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
36
|
-
});
|
|
37
|
-
}
|
|
38
|
-
/**
|
|
39
|
-
* Performs a PUT request to a tool endpoint
|
|
40
|
-
* @param url - The full or relative URL to request
|
|
41
|
-
* @param data - The data to send in the request body
|
|
42
|
-
* @returns Promise resolving to an ApiResponse with the tool's response data
|
|
43
|
-
* @throws Error if the request fails
|
|
44
|
-
*/
|
|
45
|
-
async putTool(url, data) {
|
|
46
|
-
return this.httpPut(url, data, {
|
|
47
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
/**
|
|
51
|
-
* Performs a DELETE request to a tool endpoint
|
|
52
|
-
* @param url - The full or relative URL to request
|
|
53
|
-
* @returns Promise resolving to an ApiResponse with the tool's response data
|
|
54
|
-
* @throws Error if the request fails
|
|
55
|
-
*/
|
|
56
|
-
async deleteTool(url) {
|
|
57
|
-
return this.httpDelete(url, {
|
|
58
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
59
|
-
});
|
|
60
|
-
}
|
|
61
|
-
/**
|
|
62
|
-
* Performs a PATCH request to a tool endpoint
|
|
63
|
-
* @param url - The full or relative URL to request
|
|
64
|
-
* @param data - The data to send in the request body
|
|
65
|
-
* @returns Promise resolving to an ApiResponse with the tool's response data
|
|
66
|
-
* @throws Error if the request fails
|
|
67
|
-
*/
|
|
68
|
-
async patchTool(url, data) {
|
|
69
|
-
return this.httpPatch(url, data, {
|
|
70
|
-
Authorization: `Bearer ${this.apiKey}`,
|
|
71
|
-
});
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
//# sourceMappingURL=tool.api.service.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"tool.api.service.js","sourceRoot":"","sources":["../../src/api/tool.api.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C;;GAEG;AACH,MAAM,CAAC,OAAO,OAAO,OAAQ,SAAQ,UAAU;IAG7C;;;;OAIG;IACH,YAAY,OAAe,EAAE,MAAc;QACzC,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;IACvB,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,OAAO,CAAC,GAAW;QACvB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE;YACvB,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,QAAQ,CAAC,GAAW,EAAE,IAAS;QACnC,OAAO,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,IAAI,EAAE;YAC9B,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,OAAO,CAAC,GAAW,EAAE,IAAS;QAClC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,EAAE,IAAI,EAAE;YAC7B,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;OAKG;IACH,KAAK,CAAC,UAAU,CAAC,GAAW;QAC1B,OAAO,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE;YAC1B,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;OAMG;IACH,KAAK,CAAC,SAAS,CAAC,GAAW,EAAE,IAAS;QACpC,OAAO,IAAI,CAAC,SAAS,CAAC,GAAG,EAAE,IAAI,EAAE;YAC/B,aAAa,EAAE,UAAU,IAAI,CAAC,MAAM,EAAE;SACvC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -1,133 +0,0 @@
|
|
|
1
|
-
import { HttpClient } from './http.client.js';
|
|
2
|
-
import { ApiResponse } from '../interfaces/common.js';
|
|
3
|
-
import { UnifiedToIntegrationResponse, UnifiedToAuthUrlResponse, UnifiedToConnectionResponse, WebhookEventInfo, CreateWebhookSubscriptionParams, WebhookSubscriptionResponse, FinalizeConnectionResponse, UpdateConnectionStatusResponse } from '../interfaces/unifiedto.js';
|
|
4
|
-
/**
|
|
5
|
-
* UnifiedTo API Service
|
|
6
|
-
* Handles all UnifiedTo integration-related API calls
|
|
7
|
-
*/
|
|
8
|
-
export default class UnifiedToApi extends HttpClient {
|
|
9
|
-
private apiKey;
|
|
10
|
-
/**
|
|
11
|
-
* Creates an instance of UnifiedToApi
|
|
12
|
-
* @param baseUrl - The base URL for the API
|
|
13
|
-
* @param apiKey - The API key for authentication
|
|
14
|
-
*/
|
|
15
|
-
constructor(baseUrl: string, apiKey: string);
|
|
16
|
-
/**
|
|
17
|
-
* Gets available third-party integrations
|
|
18
|
-
* @param agentId - When provided, excludes types already connected for this agent
|
|
19
|
-
* @returns Promise resolving to an ApiResponse containing available integrations
|
|
20
|
-
*/
|
|
21
|
-
getAvailableIntegrations(agentId?: string): Promise<ApiResponse<UnifiedToIntegrationResponse[]>>;
|
|
22
|
-
/**
|
|
23
|
-
* Gets an OAuth authorization URL for a specific integration
|
|
24
|
-
* @param integrationType - The integration type (e.g., "googlecalendar", "linear")
|
|
25
|
-
* @param options - Authorization options
|
|
26
|
-
* @returns Promise resolving to an ApiResponse containing the auth URL
|
|
27
|
-
*/
|
|
28
|
-
getAuthUrl(integrationType: string, options: {
|
|
29
|
-
successRedirect: string;
|
|
30
|
-
failureRedirect: string;
|
|
31
|
-
scopes?: string[];
|
|
32
|
-
state?: string;
|
|
33
|
-
externalXref?: string;
|
|
34
|
-
}): Promise<ApiResponse<UnifiedToAuthUrlResponse>>;
|
|
35
|
-
/**
|
|
36
|
-
* Gets all connections for an agent
|
|
37
|
-
* @param agentId - The agent ID
|
|
38
|
-
* @returns Promise resolving to an ApiResponse containing connections
|
|
39
|
-
*/
|
|
40
|
-
getConnections(agentId: string): Promise<ApiResponse<UnifiedToConnectionResponse[]>>;
|
|
41
|
-
/**
|
|
42
|
-
* Deletes a connection
|
|
43
|
-
* @param connectionId - The connection ID
|
|
44
|
-
* @param agentId - The agent ID
|
|
45
|
-
* @returns Promise resolving to an ApiResponse with success status
|
|
46
|
-
*/
|
|
47
|
-
deleteConnection(connectionId: string, agentId: string): Promise<ApiResponse<{
|
|
48
|
-
success: boolean;
|
|
49
|
-
message: string;
|
|
50
|
-
deletedWebhooksCount: number;
|
|
51
|
-
}>>;
|
|
52
|
-
/**
|
|
53
|
-
* Finalize a connection atomically (server-side MCP + webhooks)
|
|
54
|
-
*/
|
|
55
|
-
finalizeConnection(agentId: string, params: {
|
|
56
|
-
connectionId: string;
|
|
57
|
-
integrationType: string;
|
|
58
|
-
scopes?: string[];
|
|
59
|
-
hideSensitive?: boolean;
|
|
60
|
-
triggers?: Array<{
|
|
61
|
-
objectType: string;
|
|
62
|
-
event: 'created' | 'updated' | 'deleted';
|
|
63
|
-
hookUrl?: string;
|
|
64
|
-
interval?: number;
|
|
65
|
-
}>;
|
|
66
|
-
}): Promise<ApiResponse<FinalizeConnectionResponse>>;
|
|
67
|
-
/**
|
|
68
|
-
* Report an OAuth failure for observability
|
|
69
|
-
*/
|
|
70
|
-
reportAuthFailure(params: {
|
|
71
|
-
integrationType: string;
|
|
72
|
-
error: string;
|
|
73
|
-
logId?: string;
|
|
74
|
-
agentId?: string;
|
|
75
|
-
source?: string;
|
|
76
|
-
}): Promise<ApiResponse<{
|
|
77
|
-
received: boolean;
|
|
78
|
-
}>>;
|
|
79
|
-
/**
|
|
80
|
-
* Gets available webhook events for an integration type (before connection is created)
|
|
81
|
-
* @param integrationType - The integration type (e.g., "linear", "googlecalendar")
|
|
82
|
-
* @returns Promise resolving to available webhook events
|
|
83
|
-
*/
|
|
84
|
-
getAvailableWebhookEventsByType(integrationType: string): Promise<ApiResponse<WebhookEventInfo[]>>;
|
|
85
|
-
/**
|
|
86
|
-
* Gets available webhook events for a connection
|
|
87
|
-
* @param agentId - The agent ID
|
|
88
|
-
* @param connectionId - The connection ID
|
|
89
|
-
* @returns Promise resolving to available webhook events
|
|
90
|
-
*/
|
|
91
|
-
getAvailableWebhookEvents(agentId: string, connectionId: string): Promise<ApiResponse<WebhookEventInfo[]>>;
|
|
92
|
-
/**
|
|
93
|
-
* Gets all webhook subscriptions for an agent
|
|
94
|
-
* @param agentId - The agent ID
|
|
95
|
-
* @returns Promise resolving to webhook subscriptions
|
|
96
|
-
*/
|
|
97
|
-
getWebhookSubscriptions(agentId: string): Promise<ApiResponse<WebhookSubscriptionResponse[]>>;
|
|
98
|
-
/**
|
|
99
|
-
* Creates a webhook subscription
|
|
100
|
-
* @param agentId - The agent ID
|
|
101
|
-
* @param params - Webhook subscription parameters
|
|
102
|
-
* @returns Promise resolving to the created webhook subscription
|
|
103
|
-
*/
|
|
104
|
-
createWebhookSubscription(agentId: string, params: CreateWebhookSubscriptionParams): Promise<ApiResponse<WebhookSubscriptionResponse>>;
|
|
105
|
-
/**
|
|
106
|
-
* Deletes a webhook subscription
|
|
107
|
-
* @param agentId - The agent ID
|
|
108
|
-
* @param webhookId - The webhook subscription ID
|
|
109
|
-
* @returns Promise resolving to success status
|
|
110
|
-
*/
|
|
111
|
-
deleteWebhookSubscription(agentId: string, webhookId: string): Promise<ApiResponse<{
|
|
112
|
-
success: boolean;
|
|
113
|
-
message: string;
|
|
114
|
-
}>>;
|
|
115
|
-
/**
|
|
116
|
-
* User-initiated pause of a webhook subscription
|
|
117
|
-
*/
|
|
118
|
-
pauseWebhookSubscription(agentId: string, webhookId: string, reason?: string): Promise<ApiResponse<WebhookSubscriptionResponse>>;
|
|
119
|
-
/**
|
|
120
|
-
* User-initiated resume of a webhook subscription
|
|
121
|
-
* Returns error with code CREDIT_SUSPENDED if the webhook is credit-suspended
|
|
122
|
-
*/
|
|
123
|
-
resumeWebhookSubscription(agentId: string, webhookId: string): Promise<ApiResponse<WebhookSubscriptionResponse>>;
|
|
124
|
-
/**
|
|
125
|
-
* Pause all non-credit-suspended triggers for a connection
|
|
126
|
-
*/
|
|
127
|
-
pauseConnection(agentId: string, connectionId: string): Promise<ApiResponse<UpdateConnectionStatusResponse>>;
|
|
128
|
-
/**
|
|
129
|
-
* Resume all triggers for a connection (skips credit-suspended ones)
|
|
130
|
-
*/
|
|
131
|
-
resumeConnection(agentId: string, connectionId: string): Promise<ApiResponse<UpdateConnectionStatusResponse>>;
|
|
132
|
-
}
|
|
133
|
-
//# sourceMappingURL=unifiedto.api.service.d.ts.map
|