snow-flow 8.42.12 → 9.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +6 -229
- package/bin/snow-code +0 -0
- package/bin/snowcode.cmd +58 -0
- package/bunfig.toml +2 -0
- package/package.json +96 -548
- package/postinstall.cjs +39 -0
- package/script/postinstall.mjs +135 -0
- package/script/preinstall.mjs +45 -0
- package/src/acp/README.md +164 -0
- package/src/agent/generate.txt +75 -0
- package/src/dag/README.md +473 -0
- package/src/session/prompt/anthropic-20250930.txt +166 -0
- package/src/session/prompt/anthropic.txt +235 -0
- package/src/session/prompt/anthropic_spoof.txt +1 -0
- package/src/session/prompt/beast.txt +200 -0
- package/src/session/prompt/build-switch.txt +5 -0
- package/src/session/prompt/codex.txt +353 -0
- package/src/session/prompt/copilot-gpt-5.txt +143 -0
- package/src/session/prompt/gemini.txt +217 -0
- package/src/session/prompt/initialize.txt +8 -0
- package/src/session/prompt/plan.txt +8 -0
- package/src/session/prompt/qwen.txt +141 -0
- package/src/session/prompt/summarize-turn.txt +5 -0
- package/src/session/prompt/summarize.txt +10 -0
- package/src/session/prompt/title.txt +24 -0
- package/src/tool/bash.txt +121 -0
- package/src/tool/edit.txt +10 -0
- package/src/tool/glob.txt +6 -0
- package/src/tool/grep.txt +8 -0
- package/src/tool/ls.txt +1 -0
- package/src/tool/lsp-diagnostics.txt +1 -0
- package/src/tool/lsp-hover.txt +1 -0
- package/src/tool/multiedit.txt +41 -0
- package/src/tool/patch.txt +1 -0
- package/src/tool/read.txt +12 -0
- package/src/tool/task.txt +76 -0
- package/src/tool/todoread.txt +14 -0
- package/src/tool/todowrite.txt +167 -0
- package/src/tool/webfetch.txt +14 -0
- package/src/tool/websearch.txt +11 -0
- package/src/tool/write.txt +8 -0
- package/test-codespace-detection.js +51 -0
- package/.env.example +0 -203
- package/.mcp.json.template +0 -32
- package/CLAUDE.md +0 -941
- package/LICENSE +0 -93
- package/bin/snow-code-with-mcp +0 -129
- package/bin/snow-flow +0 -4
- package/bin/snow-flow.js +0 -3
- package/dist/agents/index.d.ts +0 -9
- package/dist/agents/index.d.ts.map +0 -1
- package/dist/agents/index.js +0 -11
- package/dist/agents/index.js.map +0 -1
- package/dist/api/health-api.d.ts +0 -8
- package/dist/api/health-api.d.ts.map +0 -1
- package/dist/api/health-api.js +0 -294
- package/dist/api/health-api.js.map +0 -1
- package/dist/api/simple-health-api.d.ts +0 -7
- package/dist/api/simple-health-api.d.ts.map +0 -1
- package/dist/api/simple-health-api.js +0 -450
- package/dist/api/simple-health-api.js.map +0 -1
- package/dist/cli/auth.d.ts +0 -9
- package/dist/cli/auth.d.ts.map +0 -1
- package/dist/cli/auth.js +0 -770
- package/dist/cli/auth.js.map +0 -1
- package/dist/cli/deploy-artifact.d.ts +0 -7
- package/dist/cli/deploy-artifact.d.ts.map +0 -1
- package/dist/cli/deploy-artifact.js +0 -279
- package/dist/cli/deploy-artifact.js.map +0 -1
- package/dist/cli/enterprise-refresh.d.ts +0 -10
- package/dist/cli/enterprise-refresh.d.ts.map +0 -1
- package/dist/cli/enterprise-refresh.js +0 -123
- package/dist/cli/enterprise-refresh.js.map +0 -1
- package/dist/cli/enterprise.d.ts +0 -55
- package/dist/cli/enterprise.d.ts.map +0 -1
- package/dist/cli/enterprise.js +0 -365
- package/dist/cli/enterprise.js.map +0 -1
- package/dist/cli/session.d.ts +0 -3
- package/dist/cli/session.d.ts.map +0 -1
- package/dist/cli/session.js +0 -46
- package/dist/cli/session.js.map +0 -1
- package/dist/cli.d.ts +0 -6
- package/dist/cli.d.ts.map +0 -1
- package/dist/cli.js +0 -2611
- package/dist/cli.js.map +0 -1
- package/dist/compliance/advanced-compliance-system.d.ts +0 -324
- package/dist/compliance/advanced-compliance-system.d.ts.map +0 -1
- package/dist/compliance/advanced-compliance-system.js +0 -887
- package/dist/compliance/advanced-compliance-system.js.map +0 -1
- package/dist/compliance/index.d.ts +0 -6
- package/dist/compliance/index.d.ts.map +0 -1
- package/dist/compliance/index.js +0 -9
- package/dist/compliance/index.js.map +0 -1
- package/dist/config/llm-config-loader.d.ts +0 -45
- package/dist/config/llm-config-loader.d.ts.map +0 -1
- package/dist/config/llm-config-loader.js +0 -49
- package/dist/config/llm-config-loader.js.map +0 -1
- package/dist/config/snow-code-config.d.ts +0 -75
- package/dist/config/snow-code-config.d.ts.map +0 -1
- package/dist/config/snow-code-config.js +0 -442
- package/dist/config/snow-code-config.js.map +0 -1
- package/dist/config/snow-flow-config.d.ts +0 -452
- package/dist/config/snow-flow-config.d.ts.map +0 -1
- package/dist/config/snow-flow-config.js +0 -1277
- package/dist/config/snow-flow-config.js.map +0 -1
- package/dist/documentation/index.d.ts +0 -6
- package/dist/documentation/index.d.ts.map +0 -1
- package/dist/documentation/index.js +0 -9
- package/dist/documentation/index.js.map +0 -1
- package/dist/documentation/self-documenting-system.d.ts +0 -292
- package/dist/documentation/self-documenting-system.d.ts.map +0 -1
- package/dist/documentation/self-documenting-system.js +0 -998
- package/dist/documentation/self-documenting-system.js.map +0 -1
- package/dist/dynamic-version.d.ts +0 -7
- package/dist/dynamic-version.d.ts.map +0 -1
- package/dist/dynamic-version.js +0 -43
- package/dist/dynamic-version.js.map +0 -1
- package/dist/healing/index.d.ts +0 -6
- package/dist/healing/index.d.ts.map +0 -1
- package/dist/healing/index.js +0 -9
- package/dist/healing/index.js.map +0 -1
- package/dist/healing/self-healing-system.d.ts +0 -320
- package/dist/healing/self-healing-system.d.ts.map +0 -1
- package/dist/healing/self-healing-system.js +0 -1067
- package/dist/healing/self-healing-system.js.map +0 -1
- package/dist/health/system-health.d.ts +0 -156
- package/dist/health/system-health.d.ts.map +0 -1
- package/dist/health/system-health.js +0 -849
- package/dist/health/system-health.js.map +0 -1
- package/dist/index.d.ts +0 -31
- package/dist/index.d.ts.map +0 -1
- package/dist/index.js +0 -63
- package/dist/index.js.map +0 -1
- package/dist/license/index.d.ts +0 -5
- package/dist/license/index.d.ts.map +0 -1
- package/dist/license/index.js +0 -12
- package/dist/license/index.js.map +0 -1
- package/dist/license/parser.d.ts +0 -47
- package/dist/license/parser.d.ts.map +0 -1
- package/dist/license/parser.js +0 -149
- package/dist/license/parser.js.map +0 -1
- package/dist/managers/scope-manager.d.ts +0 -75
- package/dist/managers/scope-manager.d.ts.map +0 -1
- package/dist/managers/scope-manager.js +0 -449
- package/dist/managers/scope-manager.js.map +0 -1
- package/dist/mcp/advanced/servicenow-advanced-features-mcp.d.ts +0 -712
- package/dist/mcp/advanced/servicenow-advanced-features-mcp.d.ts.map +0 -1
- package/dist/mcp/advanced/servicenow-advanced-features-mcp.js +0 -9404
- package/dist/mcp/advanced/servicenow-advanced-features-mcp.js.map +0 -1
- package/dist/mcp/agent-discovery-methods.d.ts +0 -21
- package/dist/mcp/agent-discovery-methods.d.ts.map +0 -1
- package/dist/mcp/agent-discovery-methods.js +0 -223
- package/dist/mcp/agent-discovery-methods.js.map +0 -1
- package/dist/mcp/base-mcp-server.d.ts +0 -144
- package/dist/mcp/base-mcp-server.d.ts.map +0 -1
- package/dist/mcp/base-mcp-server.js +0 -584
- package/dist/mcp/base-mcp-server.js.map +0 -1
- package/dist/mcp/bridge.d.ts +0 -10
- package/dist/mcp/bridge.d.ts.map +0 -1
- package/dist/mcp/bridge.js +0 -31
- package/dist/mcp/bridge.js.map +0 -1
- package/dist/mcp/clients/enterprise-remote-client.d.ts +0 -80
- package/dist/mcp/clients/enterprise-remote-client.d.ts.map +0 -1
- package/dist/mcp/clients/enterprise-remote-client.js +0 -264
- package/dist/mcp/clients/enterprise-remote-client.js.map +0 -1
- package/dist/mcp/enhancements/smart-query-enhancement.d.ts +0 -49
- package/dist/mcp/enhancements/smart-query-enhancement.d.ts.map +0 -1
- package/dist/mcp/enhancements/smart-query-enhancement.js +0 -233
- package/dist/mcp/enhancements/smart-query-enhancement.js.map +0 -1
- package/dist/mcp/enterprise-proxy/credentials.d.ts +0 -39
- package/dist/mcp/enterprise-proxy/credentials.d.ts.map +0 -1
- package/dist/mcp/enterprise-proxy/credentials.js +0 -166
- package/dist/mcp/enterprise-proxy/credentials.js.map +0 -1
- package/dist/mcp/enterprise-proxy/index.d.ts +0 -7
- package/dist/mcp/enterprise-proxy/index.d.ts.map +0 -1
- package/dist/mcp/enterprise-proxy/index.js +0 -134
- package/dist/mcp/enterprise-proxy/index.js.map +0 -1
- package/dist/mcp/enterprise-proxy/logger.d.ts +0 -17
- package/dist/mcp/enterprise-proxy/logger.d.ts.map +0 -1
- package/dist/mcp/enterprise-proxy/logger.js +0 -104
- package/dist/mcp/enterprise-proxy/logger.js.map +0 -1
- package/dist/mcp/enterprise-proxy/proxy.d.ts +0 -33
- package/dist/mcp/enterprise-proxy/proxy.d.ts.map +0 -1
- package/dist/mcp/enterprise-proxy/proxy.js +0 -359
- package/dist/mcp/enterprise-proxy/proxy.js.map +0 -1
- package/dist/mcp/enterprise-proxy/server.d.ts +0 -23
- package/dist/mcp/enterprise-proxy/server.d.ts.map +0 -1
- package/dist/mcp/enterprise-proxy/server.js +0 -168
- package/dist/mcp/enterprise-proxy/server.js.map +0 -1
- package/dist/mcp/enterprise-proxy/types.d.ts +0 -65
- package/dist/mcp/enterprise-proxy/types.d.ts.map +0 -1
- package/dist/mcp/enterprise-proxy/types.js +0 -6
- package/dist/mcp/enterprise-proxy/types.js.map +0 -1
- package/dist/mcp/http-transport-wrapper.d.ts +0 -30
- package/dist/mcp/http-transport-wrapper.d.ts.map +0 -1
- package/dist/mcp/http-transport-wrapper.js +0 -379
- package/dist/mcp/http-transport-wrapper.js.map +0 -1
- package/dist/mcp/intelligent-reporting-mcp.d.ts +0 -7
- package/dist/mcp/intelligent-reporting-mcp.d.ts.map +0 -1
- package/dist/mcp/intelligent-reporting-mcp.js +0 -379
- package/dist/mcp/intelligent-reporting-mcp.js.map +0 -1
- package/dist/mcp/mcp-on-demand-proxy.d.ts +0 -7
- package/dist/mcp/mcp-on-demand-proxy.d.ts.map +0 -1
- package/dist/mcp/mcp-on-demand-proxy.js +0 -187
- package/dist/mcp/mcp-on-demand-proxy.js.map +0 -1
- package/dist/mcp/service-discovery-client.d.ts +0 -87
- package/dist/mcp/service-discovery-client.d.ts.map +0 -1
- package/dist/mcp/service-discovery-client.js +0 -242
- package/dist/mcp/service-discovery-client.js.map +0 -1
- package/dist/mcp/servicenow-automation-mcp.d.ts +0 -8
- package/dist/mcp/servicenow-automation-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-automation-mcp.js +0 -2469
- package/dist/mcp/servicenow-automation-mcp.js.map +0 -1
- package/dist/mcp/servicenow-change-virtualagent-pa-mcp-enhanced.d.ts +0 -7
- package/dist/mcp/servicenow-change-virtualagent-pa-mcp-enhanced.d.ts.map +0 -1
- package/dist/mcp/servicenow-change-virtualagent-pa-mcp-enhanced.js +0 -816
- package/dist/mcp/servicenow-change-virtualagent-pa-mcp-enhanced.js.map +0 -1
- package/dist/mcp/servicenow-change-virtualagent-pa-mcp.d.ts +0 -8
- package/dist/mcp/servicenow-change-virtualagent-pa-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-change-virtualagent-pa-mcp.js +0 -1264
- package/dist/mcp/servicenow-change-virtualagent-pa-mcp.js.map +0 -1
- package/dist/mcp/servicenow-cmdb-event-hr-csm-devops-mcp-enhanced.d.ts +0 -7
- package/dist/mcp/servicenow-cmdb-event-hr-csm-devops-mcp-enhanced.d.ts.map +0 -1
- package/dist/mcp/servicenow-cmdb-event-hr-csm-devops-mcp-enhanced.js +0 -1112
- package/dist/mcp/servicenow-cmdb-event-hr-csm-devops-mcp-enhanced.js.map +0 -1
- package/dist/mcp/servicenow-cmdb-event-hr-csm-devops-mcp.d.ts +0 -8
- package/dist/mcp/servicenow-cmdb-event-hr-csm-devops-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-cmdb-event-hr-csm-devops-mcp.js +0 -1452
- package/dist/mcp/servicenow-cmdb-event-hr-csm-devops-mcp.js.map +0 -1
- package/dist/mcp/servicenow-deployment-mcp.d.ts +0 -7
- package/dist/mcp/servicenow-deployment-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-deployment-mcp.js +0 -9220
- package/dist/mcp/servicenow-deployment-mcp.js.map +0 -1
- package/dist/mcp/servicenow-development-assistant-mcp.d.ts +0 -143
- package/dist/mcp/servicenow-development-assistant-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-development-assistant-mcp.js +0 -4217
- package/dist/mcp/servicenow-development-assistant-mcp.js.map +0 -1
- package/dist/mcp/servicenow-flow-workspace-mobile-mcp-enhanced.d.ts +0 -7
- package/dist/mcp/servicenow-flow-workspace-mobile-mcp-enhanced.d.ts.map +0 -1
- package/dist/mcp/servicenow-flow-workspace-mobile-mcp-enhanced.js +0 -885
- package/dist/mcp/servicenow-flow-workspace-mobile-mcp-enhanced.js.map +0 -1
- package/dist/mcp/servicenow-flow-workspace-mobile-mcp.d.ts +0 -8
- package/dist/mcp/servicenow-flow-workspace-mobile-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-flow-workspace-mobile-mcp.js +0 -3637
- package/dist/mcp/servicenow-flow-workspace-mobile-mcp.js.map +0 -1
- package/dist/mcp/servicenow-integration-mcp.d.ts +0 -8
- package/dist/mcp/servicenow-integration-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-integration-mcp.js +0 -752
- package/dist/mcp/servicenow-integration-mcp.js.map +0 -1
- package/dist/mcp/servicenow-itam-mcp.d.ts +0 -29
- package/dist/mcp/servicenow-itam-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-itam-mcp.js +0 -537
- package/dist/mcp/servicenow-itam-mcp.js.map +0 -1
- package/dist/mcp/servicenow-knowledge-catalog-mcp-enhanced.d.ts +0 -7
- package/dist/mcp/servicenow-knowledge-catalog-mcp-enhanced.d.ts.map +0 -1
- package/dist/mcp/servicenow-knowledge-catalog-mcp-enhanced.js +0 -709
- package/dist/mcp/servicenow-knowledge-catalog-mcp-enhanced.js.map +0 -1
- package/dist/mcp/servicenow-knowledge-catalog-mcp.d.ts +0 -8
- package/dist/mcp/servicenow-knowledge-catalog-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-knowledge-catalog-mcp.js +0 -1613
- package/dist/mcp/servicenow-knowledge-catalog-mcp.js.map +0 -1
- package/dist/mcp/servicenow-local-development-mcp.d.ts +0 -26
- package/dist/mcp/servicenow-local-development-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-local-development-mcp.js +0 -534
- package/dist/mcp/servicenow-local-development-mcp.js.map +0 -1
- package/dist/mcp/servicenow-machine-learning-mcp.d.ts +0 -162
- package/dist/mcp/servicenow-machine-learning-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-machine-learning-mcp.js +0 -3457
- package/dist/mcp/servicenow-machine-learning-mcp.js.map +0 -1
- package/dist/mcp/servicenow-mcp-server.d.ts +0 -37
- package/dist/mcp/servicenow-mcp-server.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-server.js +0 -648
- package/dist/mcp/servicenow-mcp-server.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/index.d.ts +0 -18
- package/dist/mcp/servicenow-mcp-unified/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/index.js +0 -103
- package/dist/mcp/servicenow-mcp-unified/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/scripts/validate-tools.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/scripts/validate-tools.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/scripts/validate-tools.js +0 -89
- package/dist/mcp/servicenow-mcp-unified/scripts/validate-tools.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/server.d.ts +0 -73
- package/dist/mcp/servicenow-mcp-unified/server.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/server.js +0 -430
- package/dist/mcp/servicenow-mcp-unified/server.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/shared/__tests__/permission-validator.test.d.ts +0 -6
- package/dist/mcp/servicenow-mcp-unified/shared/__tests__/permission-validator.test.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/shared/__tests__/permission-validator.test.js +0 -451
- package/dist/mcp/servicenow-mcp-unified/shared/__tests__/permission-validator.test.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/shared/__tests__/stakeholder-write-protection.test.d.ts +0 -6
- package/dist/mcp/servicenow-mcp-unified/shared/__tests__/stakeholder-write-protection.test.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/shared/__tests__/stakeholder-write-protection.test.js +0 -535
- package/dist/mcp/servicenow-mcp-unified/shared/__tests__/stakeholder-write-protection.test.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/shared/auth.d.ts +0 -106
- package/dist/mcp/servicenow-mcp-unified/shared/auth.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/shared/auth.js +0 -474
- package/dist/mcp/servicenow-mcp-unified/shared/auth.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/shared/error-handler.d.ts +0 -103
- package/dist/mcp/servicenow-mcp-unified/shared/error-handler.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/shared/error-handler.js +0 -381
- package/dist/mcp/servicenow-mcp-unified/shared/error-handler.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/shared/permission-validator.d.ts +0 -31
- package/dist/mcp/servicenow-mcp-unified/shared/permission-validator.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/shared/permission-validator.js +0 -218
- package/dist/mcp/servicenow-mcp-unified/shared/permission-validator.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/shared/tool-registry.d.ts +0 -75
- package/dist/mcp/servicenow-mcp-unified/shared/tool-registry.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/shared/tool-registry.js +0 -352
- package/dist/mcp/servicenow-mcp-unified/shared/tool-registry.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/shared/types.d.ts +0 -241
- package/dist/mcp/servicenow-mcp-unified/shared/types.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/shared/types.js +0 -6
- package/dist/mcp/servicenow-mcp-unified/shared/types.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/index.d.ts +0 -5
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/index.js +0 -16
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_create_acl.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_create_acl.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_create_acl.js +0 -51
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_create_acl.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_create_acl_role.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_create_acl_role.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_create_acl_role.js +0 -46
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_create_acl_role.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_get_user_roles.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_get_user_roles.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_get_user_roles.js +0 -50
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_get_user_roles.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_test_acl.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_test_acl.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_test_acl.js +0 -59
- package/dist/mcp/servicenow-mcp-unified/tools/access-control/snow_test_acl.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/index.d.ts +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/index.js +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/adapters/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/addons/index.d.ts +0 -4
- package/dist/mcp/servicenow-mcp-unified/tools/addons/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/addons/index.js +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/addons/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/addons/snow_backup_instance.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/addons/snow_backup_instance.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/addons/snow_backup_instance.js +0 -47
- package/dist/mcp/servicenow-mcp-unified/tools/addons/snow_backup_instance.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/addons/snow_cicd_deploy.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/addons/snow_cicd_deploy.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/addons/snow_cicd_deploy.js +0 -48
- package/dist/mcp/servicenow-mcp-unified/tools/addons/snow_cicd_deploy.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/addons/snow_clone_instance.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/addons/snow_clone_instance.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/addons/snow_clone_instance.js +0 -48
- package/dist/mcp/servicenow-mcp-unified/tools/addons/snow_clone_instance.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/index.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/index.js +0 -28
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_ai_classify.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_ai_classify.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_ai_classify.js +0 -47
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_ai_classify.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_anomaly_detection.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_anomaly_detection.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_anomaly_detection.js +0 -48
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_anomaly_detection.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_autocomplete.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_autocomplete.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_autocomplete.js +0 -58
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_autocomplete.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_duplicate_detection.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_duplicate_detection.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_duplicate_detection.js +0 -56
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_duplicate_detection.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_fuzzy_search.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_fuzzy_search.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_fuzzy_search.js +0 -267
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_fuzzy_search.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_ml_predict.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_ml_predict.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_ml_predict.js +0 -47
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_ml_predict.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_recommendation_engine.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_recommendation_engine.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_recommendation_engine.js +0 -49
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_recommendation_engine.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_sentiment_analysis.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_sentiment_analysis.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_sentiment_analysis.js +0 -47
- package/dist/mcp/servicenow-mcp-unified/tools/advanced/snow_sentiment_analysis.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/aggregators/index.d.ts +0 -2
- package/dist/mcp/servicenow-mcp-unified/tools/aggregators/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/aggregators/index.js +0 -7
- package/dist/mcp/servicenow-mcp-unified/tools/aggregators/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/aggregators/snow_aggregate_metrics.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/aggregators/snow_aggregate_metrics.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/aggregators/snow_aggregate_metrics.js +0 -58
- package/dist/mcp/servicenow-mcp-unified/tools/aggregators/snow_aggregate_metrics.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml-MIGRATED/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml-MIGRATED/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml-MIGRATED/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml-MIGRATED/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml-MIGRATED/snow_predict.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml-MIGRATED/snow_predict.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml-MIGRATED/snow_predict.js +0 -44
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml-MIGRATED/snow_predict.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml-MIGRATED/snow_train_classifier.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml-MIGRATED/snow_train_classifier.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml-MIGRATED/snow_train_classifier.js +0 -46
- package/dist/mcp/servicenow-mcp-unified/tools/ai-ml-MIGRATED/snow_train_classifier.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/index.d.ts +0 -6
- package/dist/mcp/servicenow-mcp-unified/tools/applications/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/index.js +0 -19
- package/dist/mcp/servicenow-mcp-unified/tools/applications/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_create_application.d.ts +0 -15
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_create_application.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_create_application.js +0 -276
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_create_application.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_get_current_scope.d.ts +0 -14
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_get_current_scope.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_get_current_scope.js +0 -220
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_get_current_scope.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_install_application.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_install_application.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_install_application.js +0 -48
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_install_application.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_list_applications.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_list_applications.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_list_applications.js +0 -236
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_list_applications.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_switch_application_scope.d.ts +0 -18
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_switch_application_scope.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_switch_application_scope.js +0 -297
- package/dist/mcp/servicenow-mcp-unified/tools/applications/snow_switch_application_scope.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/index.d.ts +0 -4
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/index.js +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/snow_approve_reject.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/snow_approve_reject.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/snow_approve_reject.js +0 -49
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/snow_approve_reject.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/snow_get_pending_approvals.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/snow_get_pending_approvals.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/snow_get_pending_approvals.js +0 -54
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/snow_get_pending_approvals.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/snow_request_approval.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/snow_request_approval.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/snow_request_approval.js +0 -55
- package/dist/mcp/servicenow-mcp-unified/tools/approvals/snow_request_approval.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/index.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/asset/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/index.js +0 -28
- package/dist/mcp/servicenow-mcp-unified/tools/asset/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_asset_compliance_report.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_asset_compliance_report.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_asset_compliance_report.js +0 -138
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_asset_compliance_report.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_asset_discovery.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_asset_discovery.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_asset_discovery.js +0 -116
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_asset_discovery.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_create_asset.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_create_asset.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_create_asset.js +0 -53
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_create_asset.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_manage_software_license.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_manage_software_license.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_manage_software_license.js +0 -86
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_manage_software_license.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_optimize_licenses.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_optimize_licenses.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_optimize_licenses.js +0 -121
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_optimize_licenses.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_retire_asset.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_retire_asset.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_retire_asset.js +0 -50
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_retire_asset.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_track_asset_lifecycle.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_track_asset_lifecycle.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_track_asset_lifecycle.js +0 -89
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_track_asset_lifecycle.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_transfer_asset.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_transfer_asset.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_transfer_asset.js +0 -50
- package/dist/mcp/servicenow-mcp-unified/tools/asset/snow_transfer_asset.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/atf/index.d.ts +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/atf/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/atf/index.js +0 -25
- package/dist/mcp/servicenow-mcp-unified/tools/atf/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_create_atf_test.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_create_atf_test.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_create_atf_test.js +0 -75
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_create_atf_test.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_create_atf_test_step.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_create_atf_test_step.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_create_atf_test_step.js +0 -83
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_create_atf_test_step.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_create_atf_test_suite.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_create_atf_test_suite.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_create_atf_test_suite.js +0 -94
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_create_atf_test_suite.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_discover_atf_tests.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_discover_atf_tests.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_discover_atf_tests.js +0 -82
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_discover_atf_tests.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_execute_atf_test.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_execute_atf_test.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_execute_atf_test.js +0 -121
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_execute_atf_test.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_get_atf_results.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_get_atf_results.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_get_atf_results.js +0 -96
- package/dist/mcp/servicenow-mcp-unified/tools/atf/snow_get_atf_results.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/index.d.ts +0 -4
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/index.js +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/snow_delete_attachment.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/snow_delete_attachment.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/snow_delete_attachment.js +0 -44
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/snow_delete_attachment.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/snow_get_attachments.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/snow_get_attachments.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/snow_get_attachments.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/snow_get_attachments.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/snow_upload_attachment.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/snow_upload_attachment.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/snow_upload_attachment.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/attachments/snow_upload_attachment.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/index.d.ts +0 -25
- package/dist/mcp/servicenow-mcp-unified/tools/automation/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/index.js +0 -72
- package/dist/mcp/servicenow-mcp-unified/tools/automation/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_confirm_script_execution.d.ts +0 -16
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_confirm_script_execution.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_confirm_script_execution.js +0 -252
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_confirm_script_execution.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_escalation_rule.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_escalation_rule.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_escalation_rule.js +0 -78
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_escalation_rule.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_event_rule.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_event_rule.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_event_rule.js +0 -77
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_event_rule.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_sla_definition.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_sla_definition.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_sla_definition.js +0 -89
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_sla_definition.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_workflow_activity.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_workflow_activity.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_workflow_activity.js +0 -88
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_create_workflow_activity.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_discover_automation_jobs.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_discover_automation_jobs.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_discover_automation_jobs.js +0 -76
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_discover_automation_jobs.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_discover_events.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_discover_events.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_discover_events.js +0 -73
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_discover_events.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_discover_schedules.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_discover_schedules.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_discover_schedules.js +0 -73
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_discover_schedules.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.js +0 -185
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_email_logs.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.js +0 -280
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_flow_execution_logs.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_inbound_http_logs.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_inbound_http_logs.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_inbound_http_logs.js +0 -233
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_inbound_http_logs.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_logs.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_logs.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_logs.js +0 -140
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_logs.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_outbound_http_logs.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_outbound_http_logs.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_outbound_http_logs.js +0 -218
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_outbound_http_logs.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_scheduled_job_logs.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_scheduled_job_logs.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_scheduled_job_logs.js +0 -285
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_scheduled_job_logs.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_script_output.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_script_output.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_script_output.js +0 -102
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_script_output.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_slow_queries.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_slow_queries.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_slow_queries.js +0 -340
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_get_slow_queries.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_property_manager.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_property_manager.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_property_manager.js +0 -176
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_property_manager.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_rest_message_test_suite.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_rest_message_test_suite.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_rest_message_test_suite.js +0 -145
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_rest_message_test_suite.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_schedule_script_job.d.ts +0 -26
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_schedule_script_job.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_schedule_script_job.js +0 -486
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_schedule_script_job.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_test_scheduled_job.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_test_scheduled_job.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_test_scheduled_job.js +0 -96
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_test_scheduled_job.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_trace_execution.d.ts +0 -19
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_trace_execution.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_trace_execution.js +0 -139
- package/dist/mcp/servicenow-mcp-unified/tools/automation/snow_trace_execution.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/business-rules/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/business-rules/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/business-rules/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/business-rules/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/business-rules/snow_create_business_rule.d.ts +0 -18
- package/dist/mcp/servicenow-mcp-unified/tools/business-rules/snow_create_business_rule.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/business-rules/snow_create_business_rule.js +0 -227
- package/dist/mcp/servicenow-mcp-unified/tools/business-rules/snow_create_business_rule.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/business-rules/snow_disable_business_rule.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/business-rules/snow_disable_business_rule.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/business-rules/snow_disable_business_rule.js +0 -44
- package/dist/mcp/servicenow-mcp-unified/tools/business-rules/snow_disable_business_rule.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/calculators/index.d.ts +0 -2
- package/dist/mcp/servicenow-mcp-unified/tools/calculators/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/calculators/index.js +0 -7
- package/dist/mcp/servicenow-mcp-unified/tools/calculators/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/calculators/snow_calculate_sla_duration.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/calculators/snow_calculate_sla_duration.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/calculators/snow_calculate_sla_duration.js +0 -56
- package/dist/mcp/servicenow-mcp-unified/tools/calculators/snow_calculate_sla_duration.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/index.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/index.js +0 -28
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_create_catalog_client_script.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_create_catalog_client_script.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_create_catalog_client_script.js +0 -70
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_create_catalog_client_script.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_create_catalog_ui_policy.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_create_catalog_ui_policy.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_create_catalog_ui_policy.js +0 -128
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_create_catalog_ui_policy.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_discover_catalogs.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_discover_catalogs.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_discover_catalogs.js +0 -78
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_discover_catalogs.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_get_catalog_item_details.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_get_catalog_item_details.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_get_catalog_item_details.js +0 -95
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_get_catalog_item_details.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_order_catalog_item.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_order_catalog_item.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_order_catalog_item.js +0 -91
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_order_catalog_item.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_search_catalog.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_search_catalog.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_search_catalog.js +0 -97
- package/dist/mcp/servicenow-mcp-unified/tools/catalog/snow_search_catalog.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/change/index.d.ts +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/change/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/change/index.js +0 -18
- package/dist/mcp/servicenow-mcp-unified/tools/change/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_change_manage.d.ts +0 -14
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_change_manage.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_change_manage.js +0 -173
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_change_manage.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_change_query.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_change_query.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_change_query.js +0 -207
- package/dist/mcp/servicenow-mcp-unified/tools/change/snow_change_query.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/index.d.ts +0 -17
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/index.js +0 -46
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_ci_health_check.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_ci_health_check.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_ci_health_check.js +0 -60
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_ci_health_check.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_create_ci.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_create_ci.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_create_ci.js +0 -53
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_create_ci.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_create_ci_relationship.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_create_ci_relationship.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_create_ci_relationship.js +0 -47
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_create_ci_relationship.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_details.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_details.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_details.js +0 -67
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_details.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_history.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_history.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_history.js +0 -49
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_history.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_impact.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_impact.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_impact.js +0 -48
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_impact.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_relationships.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_relationships.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_relationships.js +0 -51
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_ci_relationships.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_event_correlation.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_event_correlation.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_event_correlation.js +0 -117
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_get_event_correlation.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_impact_analysis.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_impact_analysis.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_impact_analysis.js +0 -120
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_impact_analysis.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_reconcile_ci.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_reconcile_ci.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_reconcile_ci.js +0 -47
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_reconcile_ci.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_run_discovery.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_run_discovery.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_run_discovery.js +0 -51
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_run_discovery.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_search_cmdb.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_search_cmdb.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_search_cmdb.js +0 -68
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_search_cmdb.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_update_ci.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_update_ci.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_update_ci.js +0 -46
- package/dist/mcp/servicenow-mcp-unified/tools/cmdb/snow_update_ci.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/index.d.ts +0 -6
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/index.js +0 -19
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_batch_request.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_batch_request.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_batch_request.js +0 -63
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_batch_request.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_check_health.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_check_health.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_check_health.js +0 -46
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_check_health.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_configure_connection.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_configure_connection.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_configure_connection.js +0 -48
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_configure_connection.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_get_instance_info.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_get_instance_info.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_get_instance_info.js +0 -48
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_get_instance_info.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_test_connection.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_test_connection.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_test_connection.js +0 -46
- package/dist/mcp/servicenow-mcp-unified/tools/connectors/snow_test_connection.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/converters/index.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/converters/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/converters/index.js +0 -14
- package/dist/mcp/servicenow-mcp-unified/tools/converters/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_data_convert.d.ts +0 -14
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_data_convert.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_data_convert.js +0 -157
- package/dist/mcp/servicenow-mcp-unified/tools/converters/snow_data_convert.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/csm/index.d.ts +0 -7
- package/dist/mcp/servicenow-mcp-unified/tools/csm/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/csm/index.js +0 -16
- package/dist/mcp/servicenow-mcp-unified/tools/csm/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/csm/snow_create_customer_account.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/csm/snow_create_customer_account.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/csm/snow_create_customer_account.js +0 -60
- package/dist/mcp/servicenow-mcp-unified/tools/csm/snow_create_customer_account.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/csm/snow_create_entitlement.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/csm/snow_create_entitlement.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/csm/snow_create_entitlement.js +0 -56
- package/dist/mcp/servicenow-mcp-unified/tools/csm/snow_create_entitlement.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/csm/snow_get_customer_history.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/csm/snow_get_customer_history.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/csm/snow_get_customer_history.js +0 -64
- package/dist/mcp/servicenow-mcp-unified/tools/csm/snow_get_customer_history.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/dashboards/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/dashboards/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/dashboards/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/dashboards/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/dashboards/snow_add_dashboard_widget.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/dashboards/snow_add_dashboard_widget.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/dashboards/snow_add_dashboard_widget.js +0 -55
- package/dist/mcp/servicenow-mcp-unified/tools/dashboards/snow_add_dashboard_widget.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/dashboards/snow_create_dashboard.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/dashboards/snow_create_dashboard.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/dashboards/snow_create_dashboard.js +0 -50
- package/dist/mcp/servicenow-mcp-unified/tools/dashboards/snow_create_dashboard.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/index.d.ts +0 -6
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/index.js +0 -19
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_bulk_update.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_bulk_update.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_bulk_update.js +0 -55
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_bulk_update.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_create_choice.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_create_choice.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_create_choice.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_create_choice.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_create_field.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_create_field.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_create_field.js +0 -61
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_create_field.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_create_table.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_create_table.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_create_table.js +0 -50
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_create_table.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_data_export.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_data_export.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_data_export.js +0 -58
- package/dist/mcp/servicenow-mcp-unified/tools/data-management/snow_data_export.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-policies/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/data-policies/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-policies/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/data-policies/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-policies/snow_create_data_policy.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/data-policies/snow_create_data_policy.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-policies/snow_create_data_policy.js +0 -57
- package/dist/mcp/servicenow-mcp-unified/tools/data-policies/snow_create_data_policy.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-policies/snow_create_data_policy_rule.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/data-policies/snow_create_data_policy_rule.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/data-policies/snow_create_data_policy_rule.js +0 -55
- package/dist/mcp/servicenow-mcp-unified/tools/data-policies/snow_create_data_policy_rule.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/decoders/index.d.ts +0 -2
- package/dist/mcp/servicenow-mcp-unified/tools/decoders/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/decoders/index.js +0 -7
- package/dist/mcp/servicenow-mcp-unified/tools/decoders/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/decoders/snow_jwt_decode.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/decoders/snow_jwt_decode.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/decoders/snow_jwt_decode.js +0 -50
- package/dist/mcp/servicenow-mcp-unified/tools/decoders/snow_jwt_decode.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/index.d.ts +0 -19
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/index.js +0 -45
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_auth_diagnostics.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_auth_diagnostics.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_auth_diagnostics.js +0 -206
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_auth_diagnostics.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_clone_instance_artifact.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_clone_instance_artifact.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_clone_instance_artifact.js +0 -73
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_clone_instance_artifact.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_create_artifact.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_create_artifact.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_create_artifact.js +0 -958
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_create_artifact.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_create_solution_package.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_create_solution_package.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_create_solution_package.js +0 -128
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_create_solution_package.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_deployment_debug.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_deployment_debug.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_deployment_debug.js +0 -135
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_deployment_debug.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_deployment_status.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_deployment_status.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_deployment_status.js +0 -152
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_deployment_status.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_export_artifact.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_export_artifact.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_export_artifact.js +0 -120
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_export_artifact.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_import_artifact.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_import_artifact.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_import_artifact.js +0 -164
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_import_artifact.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_rollback_deployment.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_rollback_deployment.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_rollback_deployment.js +0 -194
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_rollback_deployment.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_update.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_update.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_update.js +0 -202
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_update.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_validate_deployment.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_validate_deployment.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_validate_deployment.js +0 -298
- package/dist/mcp/servicenow-mcp-unified/tools/deployment/snow_validate_deployment.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/index.d.ts +0 -16
- package/dist/mcp/servicenow-mcp-unified/tools/development/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/index.js +0 -39
- package/dist/mcp/servicenow-mcp-unified/tools/development/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_analyze_artifact.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_analyze_artifact.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_analyze_artifact.js +0 -107
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_analyze_artifact.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_analyze_requirements.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_analyze_requirements.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_analyze_requirements.js +0 -193
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_analyze_requirements.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_edit_artifact.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_edit_artifact.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_edit_artifact.js +0 -107
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_edit_artifact.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_edit_by_sysid.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_edit_by_sysid.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_edit_by_sysid.js +0 -96
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_edit_by_sysid.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_find_artifact.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_find_artifact.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_find_artifact.js +0 -101
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_find_artifact.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_get_by_sysid.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_get_by_sysid.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_get_by_sysid.js +0 -88
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_get_by_sysid.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_memory_search.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_memory_search.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_memory_search.js +0 -94
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_memory_search.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_orchestrate_development.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_orchestrate_development.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_orchestrate_development.js +0 -146
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_orchestrate_development.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_sync_data_consistency.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_sync_data_consistency.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_sync_data_consistency.js +0 -132
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_sync_data_consistency.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_validate_live_connection.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_validate_live_connection.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_validate_live_connection.js +0 -137
- package/dist/mcp/servicenow-mcp-unified/tools/development/snow_validate_live_connection.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/devops/index.d.ts +0 -6
- package/dist/mcp/servicenow-mcp-unified/tools/devops/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/devops/index.js +0 -19
- package/dist/mcp/servicenow-mcp-unified/tools/devops/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_create_devops_change.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_create_devops_change.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_create_devops_change.js +0 -61
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_create_devops_change.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_create_devops_pipeline.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_create_devops_pipeline.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_create_devops_pipeline.js +0 -55
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_create_devops_pipeline.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_get_devops_insights.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_get_devops_insights.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_get_devops_insights.js +0 -62
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_get_devops_insights.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_track_deployment.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_track_deployment.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_track_deployment.js +0 -60
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_track_deployment.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_velocity_tracking.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_velocity_tracking.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_velocity_tracking.js +0 -59
- package/dist/mcp/servicenow-mcp-unified/tools/devops/snow_velocity_tracking.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/email/index.d.ts +0 -4
- package/dist/mcp/servicenow-mcp-unified/tools/email/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/email/index.js +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/email/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/email/snow_create_email_template.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/email/snow_create_email_template.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/email/snow_create_email_template.js +0 -56
- package/dist/mcp/servicenow-mcp-unified/tools/email/snow_create_email_template.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/email/snow_create_notification.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/email/snow_create_notification.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/email/snow_create_notification.js +0 -63
- package/dist/mcp/servicenow-mcp-unified/tools/email/snow_create_notification.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/email/snow_send_email.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/email/snow_send_email.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/email/snow_send_email.js +0 -148
- package/dist/mcp/servicenow-mcp-unified/tools/email/snow_send_email.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/index.d.ts +0 -6
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/index.js +0 -19
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_decode_base64.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_decode_base64.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_decode_base64.js +0 -42
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_decode_base64.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_decode_url.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_decode_url.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_decode_url.js +0 -42
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_decode_url.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_encode_base64.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_encode_base64.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_encode_base64.js +0 -42
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_encode_base64.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_encode_url.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_encode_url.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_encode_url.js +0 -42
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_encode_url.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_hash_string.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_hash_string.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_hash_string.js +0 -47
- package/dist/mcp/servicenow-mcp-unified/tools/encoders/snow_hash_string.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/events/index.d.ts +0 -6
- package/dist/mcp/servicenow-mcp-unified/tools/events/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/events/index.js +0 -19
- package/dist/mcp/servicenow-mcp-unified/tools/events/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_create_alert.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_create_alert.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_create_alert.js +0 -53
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_create_alert.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_create_alert_rule.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_create_alert_rule.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_create_alert_rule.js +0 -69
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_create_alert_rule.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_create_event.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_create_event.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_create_event.js +0 -57
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_create_event.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_get_event_queue.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_get_event_queue.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_get_event_queue.js +0 -47
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_get_event_queue.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_monitor_metrics.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_monitor_metrics.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_monitor_metrics.js +0 -50
- package/dist/mcp/servicenow-mcp-unified/tools/events/snow_monitor_metrics.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/index.d.ts +0 -6
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/index.js +0 -19
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_custom_api.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_custom_api.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_custom_api.js +0 -69
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_custom_api.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_file_download.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_file_download.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_file_download.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_file_download.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_file_upload.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_file_upload.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_file_upload.js +0 -55
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_file_upload.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_graphql_query.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_graphql_query.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_graphql_query.js +0 -51
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_graphql_query.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_scripted_rest_api.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_scripted_rest_api.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_scripted_rest_api.js +0 -68
- package/dist/mcp/servicenow-mcp-unified/tools/extensions/snow_scripted_rest_api.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/filters/index.d.ts +0 -5
- package/dist/mcp/servicenow-mcp-unified/tools/filters/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/filters/index.js +0 -16
- package/dist/mcp/servicenow-mcp-unified/tools/filters/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_create_saved_filter.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_create_saved_filter.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_create_saved_filter.js +0 -93
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_create_saved_filter.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_date_filter.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_date_filter.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_date_filter.js +0 -69
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_date_filter.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_field_filter.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_field_filter.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_field_filter.js +0 -56
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_field_filter.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_query_filter.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_query_filter.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_query_filter.js +0 -59
- package/dist/mcp/servicenow-mcp-unified/tools/filters/snow_query_filter.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/index.d.ts +0 -4
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/index.js +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/snow_format_date.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/snow_format_date.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/snow_format_date.js +0 -67
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/snow_format_date.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/snow_format_number.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/snow_format_number.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/snow_format_number.js +0 -60
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/snow_format_number.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/snow_format_text.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/snow_format_text.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/snow_format_text.js +0 -64
- package/dist/mcp/servicenow-mcp-unified/tools/formatters/snow_format_text.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/forms/index.d.ts +0 -4
- package/dist/mcp/servicenow-mcp-unified/tools/forms/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/forms/index.js +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/forms/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/forms/snow_add_form_field.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/forms/snow_add_form_field.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/forms/snow_add_form_field.js +0 -55
- package/dist/mcp/servicenow-mcp-unified/tools/forms/snow_add_form_field.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/forms/snow_create_form_layout.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/forms/snow_create_form_layout.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/forms/snow_create_form_layout.js +0 -50
- package/dist/mcp/servicenow-mcp-unified/tools/forms/snow_create_form_layout.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/forms/snow_create_form_section.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/forms/snow_create_form_section.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/forms/snow_create_form_section.js +0 -55
- package/dist/mcp/servicenow-mcp-unified/tools/forms/snow_create_form_section.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/generators/index.d.ts +0 -2
- package/dist/mcp/servicenow-mcp-unified/tools/generators/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/generators/index.js +0 -7
- package/dist/mcp/servicenow-mcp-unified/tools/generators/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/generators/snow_generate_records.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/generators/snow_generate_records.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/generators/snow_generate_records.js +0 -55
- package/dist/mcp/servicenow-mcp-unified/tools/generators/snow_generate_records.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/index.d.ts +0 -5
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/index.js +0 -16
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_callback_handler.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_callback_handler.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_callback_handler.js +0 -48
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_callback_handler.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_error_handler.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_error_handler.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_error_handler.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_error_handler.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_event_handler.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_event_handler.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_event_handler.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_event_handler.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_exception_handler.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_exception_handler.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_exception_handler.js +0 -53
- package/dist/mcp/servicenow-mcp-unified/tools/handlers/snow_exception_handler.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/index.d.ts +0 -7
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/index.js +0 -22
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_cache_get.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_cache_get.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_cache_get.js +0 -45
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_cache_get.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_cache_set.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_cache_set.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_cache_set.js +0 -47
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_cache_set.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_diff_objects.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_diff_objects.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_diff_objects.js +0 -60
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_diff_objects.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_paginate.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_paginate.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_paginate.js +0 -55
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_paginate.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_rate_limit.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_rate_limit.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_rate_limit.js +0 -45
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_rate_limit.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_retry_operation.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_retry_operation.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_retry_operation.js +0 -48
- package/dist/mcp/servicenow-mcp-unified/tools/helpers/snow_retry_operation.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/hr/index.d.ts +0 -6
- package/dist/mcp/servicenow-mcp-unified/tools/hr/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/hr/index.js +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/hr/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/hr/snow_create_hr_task.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/hr/snow_create_hr_task.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/hr/snow_create_hr_task.js +0 -55
- package/dist/mcp/servicenow-mcp-unified/tools/hr/snow_create_hr_task.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/hr/snow_employee_offboarding.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/hr/snow_employee_offboarding.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/hr/snow_employee_offboarding.js +0 -59
- package/dist/mcp/servicenow-mcp-unified/tools/hr/snow_employee_offboarding.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/index.d.ts +0 -4
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/index.js +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/snow_create_customer_case.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/snow_create_customer_case.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/snow_create_customer_case.js +0 -51
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/snow_create_customer_case.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/snow_create_hr_case.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/snow_create_hr_case.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/snow_create_hr_case.js +0 -51
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/snow_create_hr_case.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/snow_employee_onboarding.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/snow_employee_onboarding.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/snow_employee_onboarding.js +0 -48
- package/dist/mcp/servicenow-mcp-unified/tools/hr-csm/snow_employee_onboarding.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/index.d.ts +0 -5
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/index.js +0 -16
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_create_import_set.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_create_import_set.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_create_import_set.js +0 -50
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_create_import_set.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_create_transform_map.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_create_transform_map.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_create_transform_map.js +0 -124
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_create_transform_map.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_execute_transform.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_execute_transform.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_execute_transform.js +0 -56
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_execute_transform.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_export_to_xml.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_export_to_xml.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_export_to_xml.js +0 -56
- package/dist/mcp/servicenow-mcp-unified/tools/import-export/snow_export_to_xml.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/index.d.ts +0 -29
- package/dist/mcp/servicenow-mcp-unified/tools/integration/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/index.js +0 -85
- package/dist/mcp/servicenow-mcp-unified/tools/integration/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_analyze_query.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_analyze_query.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_analyze_query.js +0 -221
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_analyze_query.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_batch_api.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_batch_api.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_batch_api.js +0 -132
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_batch_api.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_configure_mid_server.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_configure_mid_server.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_configure_mid_server.js +0 -397
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_configure_mid_server.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_connection_alias.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_connection_alias.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_connection_alias.js +0 -234
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_connection_alias.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_credential_alias.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_credential_alias.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_credential_alias.js +0 -280
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_credential_alias.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_email_config.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_email_config.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_email_config.js +0 -120
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_email_config.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_field_map.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_field_map.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_field_map.js +0 -113
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_field_map.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_flow_action.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_flow_action.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_flow_action.js +0 -358
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_flow_action.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_oauth_profile.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_oauth_profile.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_oauth_profile.js +0 -237
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_oauth_profile.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_rest_message.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_rest_message.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_rest_message.js +0 -227
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_rest_message.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_web_service.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_web_service.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_web_service.js +0 -111
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_create_web_service.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_detect_code_patterns.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_detect_code_patterns.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_detect_code_patterns.js +0 -285
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_detect_code_patterns.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_discover_data_sources.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_discover_data_sources.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_discover_data_sources.js +0 -157
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_discover_data_sources.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_discover_integration_endpoints.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_discover_integration_endpoints.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_discover_integration_endpoints.js +0 -143
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_discover_integration_endpoints.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_generate_docs.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_generate_docs.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_generate_docs.js +0 -249
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_generate_docs.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_install_spoke.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_install_spoke.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_install_spoke.js +0 -326
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_install_spoke.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_mid_capabilities.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_mid_capabilities.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_mid_capabilities.js +0 -442
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_mid_capabilities.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_oauth_tokens.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_oauth_tokens.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_oauth_tokens.js +0 -348
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_oauth_tokens.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_spoke_connection.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_spoke_connection.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_spoke_connection.js +0 -427
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_manage_spoke_connection.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_rest_message_manage.d.ts +0 -26
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_rest_message_manage.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_rest_message_manage.js +0 -1280
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_rest_message_manage.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_schedule_job.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_schedule_job.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_schedule_job.js +0 -210
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_schedule_job.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_integration.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_integration.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_integration.js +0 -296
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_integration.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_mid_connectivity.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_mid_connectivity.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_mid_connectivity.js +0 -432
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_mid_connectivity.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_rest_connection.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_rest_connection.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_rest_connection.js +0 -139
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_test_rest_connection.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_workflow_analyze.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_workflow_analyze.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_workflow_analyze.js +0 -196
- package/dist/mcp/servicenow-mcp-unified/tools/integration/snow_workflow_analyze.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/journals/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/journals/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/journals/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/journals/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/journals/snow_add_comment.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/journals/snow_add_comment.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/journals/snow_add_comment.js +0 -49
- package/dist/mcp/servicenow-mcp-unified/tools/journals/snow_add_comment.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/journals/snow_get_journal_entries.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/journals/snow_get_journal_entries.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/journals/snow_get_journal_entries.js +0 -55
- package/dist/mcp/servicenow-mcp-unified/tools/journals/snow_get_journal_entries.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/index.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/index.js +0 -26
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_catalog_item.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_catalog_item.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_catalog_item.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_catalog_item.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_catalog_variable.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_catalog_variable.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_catalog_variable.js +0 -48
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_catalog_variable.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_knowledge_base.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_knowledge_base.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_knowledge_base.js +0 -70
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_create_knowledge_base.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_discover_knowledge_bases.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_discover_knowledge_bases.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_discover_knowledge_bases.js +0 -73
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_discover_knowledge_bases.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_knowledge_article_manage.d.ts +0 -16
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_knowledge_article_manage.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_knowledge_article_manage.js +0 -339
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_knowledge_article_manage.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_order_catalog_item.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_order_catalog_item.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_order_catalog_item.js +0 -48
- package/dist/mcp/servicenow-mcp-unified/tools/knowledge/snow_order_catalog_item.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/lists/index.d.ts +0 -5
- package/dist/mcp/servicenow-mcp-unified/tools/lists/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/lists/index.js +0 -16
- package/dist/mcp/servicenow-mcp-unified/tools/lists/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_add_list_column.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_add_list_column.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_add_list_column.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_add_list_column.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_create_list_layout.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_create_list_layout.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_create_list_layout.js +0 -146
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_create_list_layout.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_create_list_view.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_create_list_view.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_create_list_view.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_create_list_view.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_create_related_list.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_create_related_list.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_create_related_list.js +0 -54
- package/dist/mcp/servicenow-mcp-unified/tools/lists/snow_create_related_list.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/index.d.ts +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/index.js +0 -25
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_convert_to_es5.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_convert_to_es5.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_convert_to_es5.js +0 -148
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_convert_to_es5.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_list_supported_artifacts.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_list_supported_artifacts.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_list_supported_artifacts.js +0 -129
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_list_supported_artifacts.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_pull_artifact.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_pull_artifact.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_pull_artifact.js +0 -197
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_pull_artifact.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_push_artifact.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_push_artifact.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_push_artifact.js +0 -207
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_push_artifact.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_sync_cleanup.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_sync_cleanup.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_sync_cleanup.js +0 -200
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_sync_cleanup.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_sync_status.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_sync_status.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_sync_status.js +0 -254
- package/dist/mcp/servicenow-mcp-unified/tools/local-sync/snow_sync_status.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/index.d.ts +0 -21
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/index.js +0 -42
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_classify_incident.d.ts +0 -14
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_classify_incident.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_classify_incident.js +0 -176
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_classify_incident.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_detect_anomalies.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_detect_anomalies.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_detect_anomalies.js +0 -178
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_detect_anomalies.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_forecast_incidents.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_forecast_incidents.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_forecast_incidents.js +0 -260
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_forecast_incidents.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_hybrid_recommendation.d.ts +0 -15
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_hybrid_recommendation.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_hybrid_recommendation.js +0 -317
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_hybrid_recommendation.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_performance_analytics.d.ts +0 -15
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_performance_analytics.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_performance_analytics.js +0 -203
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_performance_analytics.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_predict_change_risk.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_predict_change_risk.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_predict_change_risk.js +0 -164
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_predict_change_risk.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_train_anomaly_detector.d.ts +0 -22
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_train_anomaly_detector.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_train_anomaly_detector.js +0 -298
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_train_anomaly_detector.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_train_change_risk.d.ts +0 -23
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_train_change_risk.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_train_change_risk.js +0 -262
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_train_change_risk.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_train_incident_classifier.d.ts +0 -23
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_train_incident_classifier.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_train_incident_classifier.js +0 -355
- package/dist/mcp/servicenow-mcp-unified/tools/machine-learning-MIGRATED/ml_train_incident_classifier.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mappers/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/mappers/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mappers/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/mappers/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mappers/snow_data_mapper.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/mappers/snow_data_mapper.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mappers/snow_data_mapper.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/mappers/snow_data_mapper.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mappers/snow_field_mapper.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/mappers/snow_field_mapper.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mappers/snow_field_mapper.js +0 -49
- package/dist/mcp/servicenow-mcp-unified/tools/mappers/snow_field_mapper.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/menus/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/menus/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/menus/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/menus/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/menus/snow_create_menu.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/menus/snow_create_menu.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/menus/snow_create_menu.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/menus/snow_create_menu.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/menus/snow_create_menu_item.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/menus/snow_create_menu_item.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/menus/snow_create_menu_item.js +0 -55
- package/dist/mcp/servicenow-mcp-unified/tools/menus/snow_create_menu_item.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/metrics/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/metrics/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/metrics/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/metrics/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/metrics/snow_collect_metric.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/metrics/snow_collect_metric.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/metrics/snow_collect_metric.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/metrics/snow_collect_metric.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/metrics/snow_create_metric.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/metrics/snow_create_metric.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/metrics/snow_create_metric.js +0 -50
- package/dist/mcp/servicenow-mcp-unified/tools/metrics/snow_create_metric.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/index.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/index.js +0 -25
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_configure_mobile_app.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_configure_mobile_app.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_configure_mobile_app.js +0 -46
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_configure_mobile_app.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_configure_offline_sync.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_configure_offline_sync.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_configure_offline_sync.js +0 -87
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_configure_offline_sync.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_create_mobile_action.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_create_mobile_action.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_create_mobile_action.js +0 -101
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_create_mobile_action.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_create_mobile_layout.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_create_mobile_layout.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_create_mobile_layout.js +0 -100
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_create_mobile_layout.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_discover_mobile_configs.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_discover_mobile_configs.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_discover_mobile_configs.js +0 -114
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_discover_mobile_configs.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_get_mobile_analytics.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_get_mobile_analytics.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_get_mobile_analytics.js +0 -116
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_get_mobile_analytics.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_send_push_notification.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_send_push_notification.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_send_push_notification.js +0 -117
- package/dist/mcp/servicenow-mcp-unified/tools/mobile/snow_send_push_notification.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/index.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/index.js +0 -25
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_create_notification_template.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_create_notification_template.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_create_notification_template.js +0 -83
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_create_notification_template.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_emergency_broadcast.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_emergency_broadcast.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_emergency_broadcast.js +0 -113
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_emergency_broadcast.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_notification_analytics.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_notification_analytics.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_notification_analytics.js +0 -115
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_notification_analytics.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_notification_preferences.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_notification_preferences.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_notification_preferences.js +0 -114
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_notification_preferences.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_schedule_notification.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_schedule_notification.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_schedule_notification.js +0 -126
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_schedule_notification.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_send_notification.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_send_notification.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_send_notification.js +0 -47
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_send_notification.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_send_push.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_send_push.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_send_push.js +0 -46
- package/dist/mcp/servicenow-mcp-unified/tools/notifications/snow_send_push.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_analyze_incident.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_analyze_incident.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_analyze_incident.js +0 -180
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_analyze_incident.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_assign_task.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_assign_task.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_assign_task.js +0 -213
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_assign_task.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_attach_file.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_attach_file.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_attach_file.js +0 -185
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_attach_file.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_auto_resolve_incident.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_auto_resolve_incident.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_auto_resolve_incident.js +0 -140
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_auto_resolve_incident.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_catalog_item_manager.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_catalog_item_manager.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_catalog_item_manager.js +0 -138
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_catalog_item_manager.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_catalog_item_search.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_catalog_item_search.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_catalog_item_search.js +0 -92
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_catalog_item_search.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_cleanup_test_artifacts.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_cleanup_test_artifacts.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_cleanup_test_artifacts.js +0 -107
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_cleanup_test_artifacts.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_cmdb_search.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_cmdb_search.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_cmdb_search.js +0 -163
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_cmdb_search.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_comprehensive_search.d.ts +0 -16
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_comprehensive_search.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_comprehensive_search.js +0 -316
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_comprehensive_search.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_create_incident.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_create_incident.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_create_incident.js +0 -224
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_create_incident.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_create_user_group.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_create_user_group.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_create_user_group.js +0 -120
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_create_user_group.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_discover_table_fields.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_discover_table_fields.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_discover_table_fields.js +0 -146
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_discover_table_fields.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_get_by_sysid.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_get_by_sysid.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_get_by_sysid.js +0 -91
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_get_by_sysid.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_manage_group_membership.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_manage_group_membership.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_manage_group_membership.js +0 -247
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_manage_group_membership.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_operational_metrics.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_operational_metrics.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_operational_metrics.js +0 -140
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_operational_metrics.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_pattern_analysis.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_pattern_analysis.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_pattern_analysis.js +0 -218
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_pattern_analysis.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_predictive_analysis.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_predictive_analysis.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_predictive_analysis.js +0 -175
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_predictive_analysis.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_incidents.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_incidents.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_incidents.js +0 -151
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_incidents.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_problems.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_problems.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_problems.js +0 -125
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_problems.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_requests.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_requests.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_requests.js +0 -128
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_requests.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_table.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_table.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_table.js +0 -156
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_query_table.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_record_manage.d.ts +0 -14
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_record_manage.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_record_manage.js +0 -366
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_record_manage.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_update_incident.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_update_incident.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_update_incident.js +0 -240
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_update_incident.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_user_lookup.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_user_lookup.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_user_lookup.js +0 -140
- package/dist/mcp/servicenow-mcp-unified/tools/operations/snow_user_lookup.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/parsers/index.d.ts +0 -2
- package/dist/mcp/servicenow-mcp-unified/tools/parsers/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/parsers/index.js +0 -7
- package/dist/mcp/servicenow-mcp-unified/tools/parsers/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/parsers/snow_parse_json.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/parsers/snow_parse_json.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/parsers/snow_parse_json.js +0 -46
- package/dist/mcp/servicenow-mcp-unified/tools/parsers/snow_parse_json.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/index.d.ts +0 -14
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/index.js +0 -25
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_pa_create.d.ts +0 -16
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_pa_create.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_pa_create.js +0 -311
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_pa_create.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_pa_discover.d.ts +0 -14
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_pa_discover.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_pa_discover.js +0 -134
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_pa_discover.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_pa_operate.d.ts +0 -14
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_pa_operate.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_pa_operate.js +0 -186
- package/dist/mcp/servicenow-mcp-unified/tools/performance-analytics/snow_pa_operate.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_client_script.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_client_script.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_client_script.js +0 -157
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_client_script.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_script_include.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_script_include.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_script_include.js +0 -161
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_script_include.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_ui_action.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_ui_action.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_ui_action.js +0 -169
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_ui_action.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_ui_page.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_ui_page.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_ui_page.js +0 -149
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_ui_page.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_ui_policy.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_ui_policy.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_ui_policy.js +0 -164
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_create_ui_policy.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_discover_platform_tables.d.ts +0 -18
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_discover_platform_tables.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_discover_platform_tables.js +0 -282
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_discover_platform_tables.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_table_schema_discovery.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_table_schema_discovery.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_table_schema_discovery.js +0 -207
- package/dist/mcp/servicenow-mcp-unified/tools/platform/snow_table_schema_discovery.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/index.d.ts +0 -4
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/index.js +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/snow_activate_plugin.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/snow_activate_plugin.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/snow_activate_plugin.js +0 -47
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/snow_activate_plugin.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/snow_custom_plugin.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/snow_custom_plugin.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/snow_custom_plugin.js +0 -46
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/snow_custom_plugin.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/snow_list_plugins.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/snow_list_plugins.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/snow_list_plugins.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/plugins/snow_list_plugins.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/index.d.ts +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/index.js +0 -28
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_activate_pi_solution.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_activate_pi_solution.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_activate_pi_solution.js +0 -168
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_activate_pi_solution.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_create_pi_solution.d.ts +0 -20
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_create_pi_solution.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_create_pi_solution.js +0 -235
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_create_pi_solution.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_list_pi_solutions.d.ts +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_list_pi_solutions.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_list_pi_solutions.js +0 -166
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_list_pi_solutions.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_monitor_pi_training.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_monitor_pi_training.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_monitor_pi_training.js +0 -142
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_monitor_pi_training.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_train_pi_solution.d.ts +0 -14
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_train_pi_solution.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_train_pi_solution.js +0 -149
- package/dist/mcp/servicenow-mcp-unified/tools/predictive-intelligence-MIGRATED/snow_train_pi_solution.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/processors/index.d.ts +0 -2
- package/dist/mcp/servicenow-mcp-unified/tools/processors/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/processors/index.js +0 -7
- package/dist/mcp/servicenow-mcp-unified/tools/processors/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/processors/snow_create_processor.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/processors/snow_create_processor.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/processors/snow_create_processor.js +0 -55
- package/dist/mcp/servicenow-mcp-unified/tools/processors/snow_create_processor.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/procurement/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/procurement/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/procurement/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/procurement/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/procurement/snow_approve_procurement.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/procurement/snow_approve_procurement.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/procurement/snow_approve_procurement.js +0 -47
- package/dist/mcp/servicenow-mcp-unified/tools/procurement/snow_approve_procurement.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/procurement/snow_create_purchase_order.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/procurement/snow_create_purchase_order.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/procurement/snow_create_purchase_order.js +0 -51
- package/dist/mcp/servicenow-mcp-unified/tools/procurement/snow_create_purchase_order.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/project/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/project/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/project/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/project/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/project/snow_create_project.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/project/snow_create_project.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/project/snow_create_project.js +0 -54
- package/dist/mcp/servicenow-mcp-unified/tools/project/snow_create_project.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/project/snow_create_project_task.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/project/snow_create_project_task.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/project/snow_create_project_task.js +0 -51
- package/dist/mcp/servicenow-mcp-unified/tools/project/snow_create_project_task.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/queues/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/queues/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/queues/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/queues/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/queues/snow_create_queue.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/queues/snow_create_queue.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/queues/snow_create_queue.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/queues/snow_create_queue.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/queues/snow_get_queue_items.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/queues/snow_get_queue_items.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/queues/snow_get_queue_items.js +0 -56
- package/dist/mcp/servicenow-mcp-unified/tools/queues/snow_get_queue_items.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/index.d.ts +0 -6
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/index.js +0 -19
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_analyze_data_quality.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_analyze_data_quality.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_analyze_data_quality.js +0 -138
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_analyze_data_quality.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_create_dashboard.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_create_dashboard.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_create_dashboard.js +0 -80
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_create_dashboard.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_create_report.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_create_report.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_create_report.js +0 -49
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_create_report.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_define_kpi.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_define_kpi.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_define_kpi.js +0 -79
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_define_kpi.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_schedule_report_delivery.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_schedule_report_delivery.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_schedule_report_delivery.js +0 -81
- package/dist/mcp/servicenow-mcp-unified/tools/reporting/snow_schedule_report_delivery.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/index.d.ts +0 -4
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/index.js +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/snow_create_scheduled_job.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/snow_create_scheduled_job.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/snow_create_scheduled_job.js +0 -60
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/snow_create_scheduled_job.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/snow_get_job_history.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/snow_get_job_history.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/snow_get_job_history.js +0 -54
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/snow_get_job_history.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/snow_trigger_scheduled_job.d.ts +0 -19
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/snow_trigger_scheduled_job.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/snow_trigger_scheduled_job.js +0 -142
- package/dist/mcp/servicenow-mcp-unified/tools/scheduled-jobs/snow_trigger_scheduled_job.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/schedules/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/schedules/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/schedules/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/schedules/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/schedules/snow_add_schedule_entry.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/schedules/snow_add_schedule_entry.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/schedules/snow_add_schedule_entry.js +0 -57
- package/dist/mcp/servicenow-mcp-unified/tools/schedules/snow_add_schedule_entry.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/schedules/snow_create_schedule.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/schedules/snow_create_schedule.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/schedules/snow_create_schedule.js +0 -49
- package/dist/mcp/servicenow-mcp-unified/tools/schedules/snow_create_schedule.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/service-portal/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/service-portal/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/service-portal/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/service-portal/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/service-portal/snow_create_sp_page.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/service-portal/snow_create_sp_page.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/service-portal/snow_create_sp_page.js +0 -45
- package/dist/mcp/servicenow-mcp-unified/tools/service-portal/snow_create_sp_page.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/service-portal/snow_create_sp_widget.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/service-portal/snow_create_sp_widget.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/service-portal/snow_create_sp_widget.js +0 -57
- package/dist/mcp/servicenow-mcp-unified/tools/service-portal/snow_create_sp_widget.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/sla/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/sla/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/sla/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/sla/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/sla/snow_create_sla.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/sla/snow_create_sla.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/sla/snow_create_sla.js +0 -54
- package/dist/mcp/servicenow-mcp-unified/tools/sla/snow_create_sla.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/sla/snow_get_sla_status.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/sla/snow_get_sla_status.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/sla/snow_get_sla_status.js +0 -53
- package/dist/mcp/servicenow-mcp-unified/tools/sla/snow_get_sla_status.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_bulk.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_bulk.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_bulk.js +0 -174
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_bulk.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_io.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_io.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_io.js +0 -239
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_io.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_manage.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_manage.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_manage.js +0 -303
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_manage.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_query.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_query.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_query.js +0 -155
- package/dist/mcp/servicenow-mcp-unified/tools/system-properties/snow_property_query.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/templates/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/templates/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/templates/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/templates/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/templates/snow_apply_template.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/templates/snow_apply_template.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/templates/snow_apply_template.js +0 -49
- package/dist/mcp/servicenow-mcp-unified/tools/templates/snow_apply_template.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/templates/snow_create_template.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/templates/snow_create_template.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/templates/snow_create_template.js +0 -53
- package/dist/mcp/servicenow-mcp-unified/tools/templates/snow_create_template.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/transformers/index.d.ts +0 -2
- package/dist/mcp/servicenow-mcp-unified/tools/transformers/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/transformers/index.js +0 -7
- package/dist/mcp/servicenow-mcp-unified/tools/transformers/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/transformers/snow_transform_data.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/transformers/snow_transform_data.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/transformers/snow_transform_data.js +0 -49
- package/dist/mcp/servicenow-mcp-unified/tools/transformers/snow_transform_data.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/index.d.ts +0 -16
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/index.js +0 -50
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_analyze_uib_page_performance.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_analyze_uib_page_performance.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_analyze_uib_page_performance.js +0 -143
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_analyze_uib_page_performance.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_configure_uib_data_broker.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_configure_uib_data_broker.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_configure_uib_data_broker.js +0 -94
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_configure_uib_data_broker.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_client_script.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_client_script.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_client_script.js +0 -87
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_client_script.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_client_state.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_client_state.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_client_state.js +0 -82
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_client_state.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_data_broker.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_data_broker.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_data_broker.js +0 -95
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_data_broker.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_event.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_event.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_event.js +0 -82
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_event.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_page_registry.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_page_registry.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_page_registry.js +0 -83
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_uib_page_registry.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_workspace.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_workspace.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_workspace.js +0 -109
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_create_workspace.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_debug_widget_fetch.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_debug_widget_fetch.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_debug_widget_fetch.js +0 -94
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_debug_widget_fetch.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_uib_component_manage.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_uib_component_manage.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_uib_component_manage.js +0 -149
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_uib_component_manage.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_uib_discover.d.ts +0 -14
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_uib_discover.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_uib_discover.js +0 -234
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_uib_discover.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_uib_page_manage.d.ts +0 -15
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_uib_page_manage.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_uib_page_manage.js +0 -341
- package/dist/mcp/servicenow-mcp-unified/tools/ui-builder/snow_uib_page_manage.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-policies/snow_create_ui_policy_action.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/ui-policies/snow_create_ui_policy_action.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/ui-policies/snow_create_ui_policy_action.js +0 -58
- package/dist/mcp/servicenow-mcp-unified/tools/ui-policies/snow_create_ui_policy_action.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/index.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/index.js +0 -23
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/snow_ensure_active_update_set.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/snow_ensure_active_update_set.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/snow_ensure_active_update_set.js +0 -156
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/snow_ensure_active_update_set.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/snow_update_set_manage.d.ts +0 -16
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/snow_update_set_manage.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/snow_update_set_manage.js +0 -711
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/snow_update_set_manage.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/snow_update_set_query.d.ts +0 -14
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/snow_update_set_query.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/snow_update_set_query.js +0 -158
- package/dist/mcp/servicenow-mcp-unified/tools/update-sets/snow_update_set_query.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/index.d.ts +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/index.js +0 -18
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_role_group_manage.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_role_group_manage.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_role_group_manage.js +0 -169
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_role_group_manage.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_user_manage.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_user_manage.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_user_manage.js +0 -132
- package/dist/mcp/servicenow-mcp-unified/tools/user-admin/snow_user_manage.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/index.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/index.js +0 -25
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_convert_es6_to_es5.d.ts +0 -20
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_convert_es6_to_es5.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_convert_es6_to_es5.js +0 -283
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_convert_es6_to_es5.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_generate_guid.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_generate_guid.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_generate_guid.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_generate_guid.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_merge_objects.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_merge_objects.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_merge_objects.js +0 -48
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_merge_objects.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_random_string.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_random_string.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_random_string.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_random_string.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_sanitize_input.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_sanitize_input.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_sanitize_input.js +0 -64
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_sanitize_input.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_sleep.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_sleep.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_sleep.js +0 -41
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_sleep.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_timestamp.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_timestamp.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_timestamp.js +0 -59
- package/dist/mcp/servicenow-mcp-unified/tools/utilities/snow_timestamp.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/validators/index.d.ts +0 -6
- package/dist/mcp/servicenow-mcp-unified/tools/validators/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/validators/index.js +0 -19
- package/dist/mcp/servicenow-mcp-unified/tools/validators/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_preview_widget.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_preview_widget.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_preview_widget.js +0 -235
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_preview_widget.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_validate_field.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_validate_field.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_validate_field.js +0 -62
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_validate_field.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_validate_record.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_validate_record.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_validate_record.js +0 -56
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_validate_record.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_validate_sysid.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_validate_sysid.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_validate_sysid.js +0 -118
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_validate_sysid.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_widget_test.d.ts +0 -11
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_widget_test.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_widget_test.js +0 -196
- package/dist/mcp/servicenow-mcp-unified/tools/validators/snow_widget_test.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/variables/index.d.ts +0 -3
- package/dist/mcp/servicenow-mcp-unified/tools/variables/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/variables/index.js +0 -10
- package/dist/mcp/servicenow-mcp-unified/tools/variables/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/variables/snow_create_variable.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/variables/snow_create_variable.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/variables/snow_create_variable.js +0 -56
- package/dist/mcp/servicenow-mcp-unified/tools/variables/snow_create_variable.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/variables/snow_create_variable_set.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/variables/snow_create_variable_set.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/variables/snow_create_variable_set.js +0 -49
- package/dist/mcp/servicenow-mcp-unified/tools/variables/snow_create_variable_set.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/index.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/index.js +0 -25
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_create_va_topic.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_create_va_topic.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_create_va_topic.js +0 -48
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_create_va_topic.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_create_va_topic_block.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_create_va_topic_block.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_create_va_topic_block.js +0 -92
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_create_va_topic_block.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_discover_va_topics.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_discover_va_topics.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_discover_va_topics.js +0 -81
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_discover_va_topics.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_get_va_conversation.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_get_va_conversation.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_get_va_conversation.js +0 -94
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_get_va_conversation.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_handoff_to_agent.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_handoff_to_agent.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_handoff_to_agent.js +0 -96
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_handoff_to_agent.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_send_va_message.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_send_va_message.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_send_va_message.js +0 -91
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_send_va_message.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_train_va_nlu.d.ts +0 -8
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_train_va_nlu.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_train_va_nlu.js +0 -43
- package/dist/mcp/servicenow-mcp-unified/tools/virtual-agent/snow_train_va_nlu.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/index.d.ts +0 -4
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/index.js +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/snow_create_workflow.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/snow_create_workflow.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/snow_create_workflow.js +0 -52
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/snow_create_workflow.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/snow_create_workflow_activity.d.ts +0 -9
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/snow_create_workflow_activity.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/snow_create_workflow_activity.js +0 -50
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/snow_create_workflow_activity.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/snow_start_workflow.d.ts +0 -15
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/snow_start_workflow.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/snow_start_workflow.js +0 -136
- package/dist/mcp/servicenow-mcp-unified/tools/workflow/snow_start_workflow.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/index.d.ts +0 -15
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/index.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/index.js +0 -38
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/index.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_complete_workspace.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_complete_workspace.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_complete_workspace.js +0 -218
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_complete_workspace.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_configurable_agent_workspace.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_configurable_agent_workspace.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_configurable_agent_workspace.js +0 -117
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_configurable_agent_workspace.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_app_config.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_app_config.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_app_config.js +0 -86
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_app_config.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_app_route.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_app_route.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_app_route.js +0 -96
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_app_route.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_experience.d.ts +0 -13
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_experience.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_experience.js +0 -87
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_experience.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_page_macroponent.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_page_macroponent.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_page_macroponent.js +0 -84
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_page_macroponent.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_page_registry.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_page_registry.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_page_registry.js +0 -89
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_create_ux_page_registry.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_discover_all_workspaces.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_discover_all_workspaces.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_discover_all_workspaces.js +0 -145
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_discover_all_workspaces.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_update_ux_app_config_landing_page.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_update_ux_app_config_landing_page.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_update_ux_app_config_landing_page.js +0 -71
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_update_ux_app_config_landing_page.js.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_validate_workspace_configuration.d.ts +0 -12
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_validate_workspace_configuration.d.ts.map +0 -1
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_validate_workspace_configuration.js +0 -219
- package/dist/mcp/servicenow-mcp-unified/tools/workspace/snow_validate_workspace_configuration.js.map +0 -1
- package/dist/mcp/servicenow-notifications-mcp.d.ts +0 -24
- package/dist/mcp/servicenow-notifications-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-notifications-mcp.js +0 -327
- package/dist/mcp/servicenow-notifications-mcp.js.map +0 -1
- package/dist/mcp/servicenow-operations-mcp.d.ts +0 -86
- package/dist/mcp/servicenow-operations-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-operations-mcp.js +0 -3296
- package/dist/mcp/servicenow-operations-mcp.js.map +0 -1
- package/dist/mcp/servicenow-platform-development-mcp.d.ts +0 -8
- package/dist/mcp/servicenow-platform-development-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-platform-development-mcp.js +0 -875
- package/dist/mcp/servicenow-platform-development-mcp.js.map +0 -1
- package/dist/mcp/servicenow-progressive-indexer.d.ts +0 -79
- package/dist/mcp/servicenow-progressive-indexer.d.ts.map +0 -1
- package/dist/mcp/servicenow-progressive-indexer.js +0 -320
- package/dist/mcp/servicenow-progressive-indexer.js.map +0 -1
- package/dist/mcp/servicenow-reporting-analytics-mcp.d.ts +0 -8
- package/dist/mcp/servicenow-reporting-analytics-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-reporting-analytics-mcp.js +0 -1269
- package/dist/mcp/servicenow-reporting-analytics-mcp.js.map +0 -1
- package/dist/mcp/servicenow-secops-mcp.d.ts +0 -28
- package/dist/mcp/servicenow-secops-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-secops-mcp.js +0 -560
- package/dist/mcp/servicenow-secops-mcp.js.map +0 -1
- package/dist/mcp/servicenow-security-compliance-mcp.d.ts +0 -8
- package/dist/mcp/servicenow-security-compliance-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-security-compliance-mcp.js +0 -1055
- package/dist/mcp/servicenow-security-compliance-mcp.js.map +0 -1
- package/dist/mcp/servicenow-system-properties-mcp.d.ts +0 -70
- package/dist/mcp/servicenow-system-properties-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-system-properties-mcp.js +0 -1173
- package/dist/mcp/servicenow-system-properties-mcp.js.map +0 -1
- package/dist/mcp/servicenow-update-set-mcp.d.ts +0 -7
- package/dist/mcp/servicenow-update-set-mcp.d.ts.map +0 -1
- package/dist/mcp/servicenow-update-set-mcp.js +0 -830
- package/dist/mcp/servicenow-update-set-mcp.js.map +0 -1
- package/dist/mcp/shared/agent-context-provider.d.ts +0 -77
- package/dist/mcp/shared/agent-context-provider.d.ts.map +0 -1
- package/dist/mcp/shared/agent-context-provider.js +0 -292
- package/dist/mcp/shared/agent-context-provider.js.map +0 -1
- package/dist/mcp/shared/base-mcp-server.d.ts +0 -311
- package/dist/mcp/shared/base-mcp-server.d.ts.map +0 -1
- package/dist/mcp/shared/base-mcp-server.js +0 -2071
- package/dist/mcp/shared/base-mcp-server.js.map +0 -1
- package/dist/mcp/shared/enhanced-base-mcp-server.d.ts +0 -73
- package/dist/mcp/shared/enhanced-base-mcp-server.d.ts.map +0 -1
- package/dist/mcp/shared/enhanced-base-mcp-server.js +0 -309
- package/dist/mcp/shared/enhanced-base-mcp-server.js.map +0 -1
- package/dist/mcp/shared/mcp-logger.d.ts +0 -89
- package/dist/mcp/shared/mcp-logger.d.ts.map +0 -1
- package/dist/mcp/shared/mcp-logger.js +0 -226
- package/dist/mcp/shared/mcp-logger.js.map +0 -1
- package/dist/mcp/shared/mcp-memory-manager.d.ts +0 -87
- package/dist/mcp/shared/mcp-memory-manager.d.ts.map +0 -1
- package/dist/mcp/shared/mcp-memory-manager.js +0 -423
- package/dist/mcp/shared/mcp-memory-manager.js.map +0 -1
- package/dist/mcp/shared/mcp-resource-manager.d.ts +0 -99
- package/dist/mcp/shared/mcp-resource-manager.d.ts.map +0 -1
- package/dist/mcp/shared/mcp-resource-manager.js +0 -305
- package/dist/mcp/shared/mcp-resource-manager.js.map +0 -1
- package/dist/mcp/shared/mcp-types.d.ts +0 -51
- package/dist/mcp/shared/mcp-types.d.ts.map +0 -1
- package/dist/mcp/shared/mcp-types.js +0 -7
- package/dist/mcp/shared/mcp-types.js.map +0 -1
- package/dist/mcp/shared/reliable-memory-manager.d.ts +0 -78
- package/dist/mcp/shared/reliable-memory-manager.d.ts.map +0 -1
- package/dist/mcp/shared/reliable-memory-manager.js +0 -288
- package/dist/mcp/shared/reliable-memory-manager.js.map +0 -1
- package/dist/mcp/shared/response-limiter.d.ts +0 -26
- package/dist/mcp/shared/response-limiter.d.ts.map +0 -1
- package/dist/mcp/shared/response-limiter.js +0 -116
- package/dist/mcp/shared/response-limiter.js.map +0 -1
- package/dist/mcp/snow-flow-mcp.d.ts +0 -6
- package/dist/mcp/snow-flow-mcp.d.ts.map +0 -1
- package/dist/mcp/snow-flow-mcp.js +0 -1605
- package/dist/mcp/snow-flow-mcp.js.map +0 -1
- package/dist/mcp/start-servicenow-mcp.d.ts +0 -7
- package/dist/mcp/start-servicenow-mcp.d.ts.map +0 -1
- package/dist/mcp/start-servicenow-mcp.js +0 -64
- package/dist/mcp/start-servicenow-mcp.js.map +0 -1
- package/dist/memory/hierarchical-memory-system.d.ts +0 -42
- package/dist/memory/hierarchical-memory-system.d.ts.map +0 -1
- package/dist/memory/hierarchical-memory-system.js +0 -60
- package/dist/memory/hierarchical-memory-system.js.map +0 -1
- package/dist/memory/memory-system.d.ts +0 -34
- package/dist/memory/memory-system.d.ts.map +0 -1
- package/dist/memory/memory-system.js +0 -36
- package/dist/memory/memory-system.js.map +0 -1
- package/dist/memory/servicenow-artifact-indexer.d.ts +0 -119
- package/dist/memory/servicenow-artifact-indexer.d.ts.map +0 -1
- package/dist/memory/servicenow-artifact-indexer.js +0 -560
- package/dist/memory/servicenow-artifact-indexer.js.map +0 -1
- package/dist/memory/session-memory.d.ts +0 -70
- package/dist/memory/session-memory.d.ts.map +0 -1
- package/dist/memory/session-memory.js +0 -110
- package/dist/memory/session-memory.js.map +0 -1
- package/dist/memory/snow-flow-memory-patterns.d.ts +0 -52
- package/dist/memory/snow-flow-memory-patterns.d.ts.map +0 -1
- package/dist/memory/snow-flow-memory-patterns.js +0 -56
- package/dist/memory/snow-flow-memory-patterns.js.map +0 -1
- package/dist/monitoring/performance-tracker.d.ts +0 -157
- package/dist/monitoring/performance-tracker.d.ts.map +0 -1
- package/dist/monitoring/performance-tracker.js +0 -607
- package/dist/monitoring/performance-tracker.js.map +0 -1
- package/dist/optimization/cost-optimization-engine.d.ts +0 -277
- package/dist/optimization/cost-optimization-engine.d.ts.map +0 -1
- package/dist/optimization/cost-optimization-engine.js +0 -805
- package/dist/optimization/cost-optimization-engine.js.map +0 -1
- package/dist/optimization/index.d.ts +0 -5
- package/dist/optimization/index.d.ts.map +0 -1
- package/dist/optimization/index.js +0 -13
- package/dist/optimization/index.js.map +0 -1
- package/dist/rollback/smart-rollback-system.d.ts +0 -350
- package/dist/rollback/smart-rollback-system.d.ts.map +0 -1
- package/dist/rollback/smart-rollback-system.js +0 -463
- package/dist/rollback/smart-rollback-system.js.map +0 -1
- package/dist/sdk/index.d.ts +0 -9
- package/dist/sdk/index.d.ts.map +0 -1
- package/dist/sdk/index.js +0 -11
- package/dist/sdk/index.js.map +0 -1
- package/dist/services/tensorflow-ml-service.d.ts +0 -105
- package/dist/services/tensorflow-ml-service.d.ts.map +0 -1
- package/dist/services/tensorflow-ml-service.js +0 -456
- package/dist/services/tensorflow-ml-service.js.map +0 -1
- package/dist/services/widget-deployment-service.d.ts +0 -108
- package/dist/services/widget-deployment-service.d.ts.map +0 -1
- package/dist/services/widget-deployment-service.js +0 -333
- package/dist/services/widget-deployment-service.js.map +0 -1
- package/dist/session/store.d.ts +0 -47
- package/dist/session/store.d.ts.map +0 -1
- package/dist/session/store.js +0 -74
- package/dist/session/store.js.map +0 -1
- package/dist/snow-flow-system.d.ts +0 -135
- package/dist/snow-flow-system.d.ts.map +0 -1
- package/dist/snow-flow-system.js +0 -420
- package/dist/snow-flow-system.js.map +0 -1
- package/dist/strategies/global-scope-strategy.d.ts +0 -123
- package/dist/strategies/global-scope-strategy.d.ts.map +0 -1
- package/dist/strategies/global-scope-strategy.js +0 -602
- package/dist/strategies/global-scope-strategy.js.map +0 -1
- package/dist/templates/agents-md-template.d.ts +0 -3
- package/dist/templates/agents-md-template.d.ts.map +0 -1
- package/dist/templates/agents-md-template.js +0 -381
- package/dist/templates/agents-md-template.js.map +0 -1
- package/dist/templates/claude-md-template.d.ts +0 -3
- package/dist/templates/claude-md-template.d.ts.map +0 -1
- package/dist/templates/claude-md-template.js +0 -934
- package/dist/templates/claude-md-template.js.map +0 -1
- package/dist/templates/readme-template.d.ts +0 -2
- package/dist/templates/readme-template.d.ts.map +0 -1
- package/dist/templates/readme-template.js +0 -339
- package/dist/templates/readme-template.js.map +0 -1
- package/dist/types/index.d.ts +0 -139
- package/dist/types/index.d.ts.map +0 -1
- package/dist/types/index.js +0 -20
- package/dist/types/index.js.map +0 -1
- package/dist/types/servicenow.types.d.ts +0 -260
- package/dist/types/servicenow.types.d.ts.map +0 -1
- package/dist/types/servicenow.types.js +0 -3
- package/dist/types/servicenow.types.js.map +0 -1
- package/dist/types/snow-flow.types.d.ts +0 -115
- package/dist/types/snow-flow.types.d.ts.map +0 -1
- package/dist/types/snow-flow.types.js +0 -3
- package/dist/types/snow-flow.types.js.map +0 -1
- package/dist/types/todo.types.d.ts +0 -61
- package/dist/types/todo.types.d.ts.map +0 -1
- package/dist/types/todo.types.js +0 -7
- package/dist/types/todo.types.js.map +0 -1
- package/dist/utils/action-type-cache.d.ts +0 -66
- package/dist/utils/action-type-cache.d.ts.map +0 -1
- package/dist/utils/action-type-cache.js +0 -238
- package/dist/utils/action-type-cache.js.map +0 -1
- package/dist/utils/agent-detector.d.ts +0 -71
- package/dist/utils/agent-detector.d.ts.map +0 -1
- package/dist/utils/agent-detector.js +0 -751
- package/dist/utils/agent-detector.js.map +0 -1
- package/dist/utils/anti-mock-data-validator.d.ts +0 -66
- package/dist/utils/anti-mock-data-validator.d.ts.map +0 -1
- package/dist/utils/anti-mock-data-validator.js +0 -316
- package/dist/utils/anti-mock-data-validator.js.map +0 -1
- package/dist/utils/artifact-local-sync.d.ts +0 -135
- package/dist/utils/artifact-local-sync.d.ts.map +0 -1
- package/dist/utils/artifact-local-sync.js +0 -1043
- package/dist/utils/artifact-local-sync.js.map +0 -1
- package/dist/utils/artifact-sync/artifact-registry.d.ts +0 -66
- package/dist/utils/artifact-sync/artifact-registry.d.ts.map +0 -1
- package/dist/utils/artifact-sync/artifact-registry.js +0 -450
- package/dist/utils/artifact-sync/artifact-registry.js.map +0 -1
- package/dist/utils/artifact-sync/index.d.ts +0 -33
- package/dist/utils/artifact-sync/index.d.ts.map +0 -1
- package/dist/utils/artifact-sync/index.js +0 -52
- package/dist/utils/artifact-sync/index.js.map +0 -1
- package/dist/utils/artifact-tracker.d.ts +0 -73
- package/dist/utils/artifact-tracker.d.ts.map +0 -1
- package/dist/utils/artifact-tracker.js +0 -292
- package/dist/utils/artifact-tracker.js.map +0 -1
- package/dist/utils/auto-update-snow-code.d.ts +0 -57
- package/dist/utils/auto-update-snow-code.d.ts.map +0 -1
- package/dist/utils/auto-update-snow-code.js +0 -322
- package/dist/utils/auto-update-snow-code.js.map +0 -1
- package/dist/utils/chunking-manager.d.ts +0 -39
- package/dist/utils/chunking-manager.d.ts.map +0 -1
- package/dist/utils/chunking-manager.js +0 -143
- package/dist/utils/chunking-manager.js.map +0 -1
- package/dist/utils/claude-desktop-exporter.d.ts +0 -31
- package/dist/utils/claude-desktop-exporter.d.ts.map +0 -1
- package/dist/utils/claude-desktop-exporter.js +0 -202
- package/dist/utils/claude-desktop-exporter.js.map +0 -1
- package/dist/utils/config-cache.d.ts +0 -50
- package/dist/utils/config-cache.d.ts.map +0 -1
- package/dist/utils/config-cache.js +0 -153
- package/dist/utils/config-cache.js.map +0 -1
- package/dist/utils/data-fetch-safety.d.ts +0 -31
- package/dist/utils/data-fetch-safety.d.ts.map +0 -1
- package/dist/utils/data-fetch-safety.js +0 -71
- package/dist/utils/data-fetch-safety.js.map +0 -1
- package/dist/utils/dependency-detector.d.ts +0 -44
- package/dist/utils/dependency-detector.d.ts.map +0 -1
- package/dist/utils/dependency-detector.js +0 -208
- package/dist/utils/dependency-detector.js.map +0 -1
- package/dist/utils/deployment-auth-fix.d.ts +0 -43
- package/dist/utils/deployment-auth-fix.d.ts.map +0 -1
- package/dist/utils/deployment-auth-fix.js +0 -274
- package/dist/utils/deployment-auth-fix.js.map +0 -1
- package/dist/utils/deployment-metadata-handler.d.ts +0 -110
- package/dist/utils/deployment-metadata-handler.d.ts.map +0 -1
- package/dist/utils/deployment-metadata-handler.js +0 -423
- package/dist/utils/deployment-metadata-handler.js.map +0 -1
- package/dist/utils/dynamic-models.d.ts +0 -30
- package/dist/utils/dynamic-models.d.ts.map +0 -1
- package/dist/utils/dynamic-models.js +0 -265
- package/dist/utils/dynamic-models.js.map +0 -1
- package/dist/utils/error-recovery.d.ts +0 -101
- package/dist/utils/error-recovery.d.ts.map +0 -1
- package/dist/utils/error-recovery.js +0 -548
- package/dist/utils/error-recovery.js.map +0 -1
- package/dist/utils/find-enterprise-proxy.d.ts +0 -28
- package/dist/utils/find-enterprise-proxy.d.ts.map +0 -1
- package/dist/utils/find-enterprise-proxy.js +0 -132
- package/dist/utils/find-enterprise-proxy.js.map +0 -1
- package/dist/utils/logger.d.ts +0 -19
- package/dist/utils/logger.d.ts.map +0 -1
- package/dist/utils/logger.js +0 -81
- package/dist/utils/logger.js.map +0 -1
- package/dist/utils/mcp-auth-middleware.d.ts +0 -58
- package/dist/utils/mcp-auth-middleware.d.ts.map +0 -1
- package/dist/utils/mcp-auth-middleware.js +0 -227
- package/dist/utils/mcp-auth-middleware.js.map +0 -1
- package/dist/utils/mcp-config-manager.d.ts +0 -126
- package/dist/utils/mcp-config-manager.d.ts.map +0 -1
- package/dist/utils/mcp-config-manager.js +0 -213
- package/dist/utils/mcp-config-manager.js.map +0 -1
- package/dist/utils/mcp-on-demand-manager.d.ts +0 -69
- package/dist/utils/mcp-on-demand-manager.d.ts.map +0 -1
- package/dist/utils/mcp-on-demand-manager.js +0 -322
- package/dist/utils/mcp-on-demand-manager.js.map +0 -1
- package/dist/utils/mcp-output-formatter.d.ts +0 -128
- package/dist/utils/mcp-output-formatter.d.ts.map +0 -1
- package/dist/utils/mcp-output-formatter.js +0 -442
- package/dist/utils/mcp-output-formatter.js.map +0 -1
- package/dist/utils/mcp-persistent-guard.d.ts +0 -51
- package/dist/utils/mcp-persistent-guard.d.ts.map +0 -1
- package/dist/utils/mcp-persistent-guard.js +0 -143
- package/dist/utils/mcp-persistent-guard.js.map +0 -1
- package/dist/utils/mcp-process-manager-safe.d.ts +0 -70
- package/dist/utils/mcp-process-manager-safe.d.ts.map +0 -1
- package/dist/utils/mcp-process-manager-safe.js +0 -319
- package/dist/utils/mcp-process-manager-safe.js.map +0 -1
- package/dist/utils/mcp-process-manager.d.ts +0 -70
- package/dist/utils/mcp-process-manager.d.ts.map +0 -1
- package/dist/utils/mcp-process-manager.js +0 -319
- package/dist/utils/mcp-process-manager.js.map +0 -1
- package/dist/utils/mcp-singleton-lock.d.ts +0 -39
- package/dist/utils/mcp-singleton-lock.d.ts.map +0 -1
- package/dist/utils/mcp-singleton-lock.js +0 -159
- package/dist/utils/mcp-singleton-lock.js.map +0 -1
- package/dist/utils/mcp-timeout-config.d.ts +0 -39
- package/dist/utils/mcp-timeout-config.d.ts.map +0 -1
- package/dist/utils/mcp-timeout-config.js +0 -123
- package/dist/utils/mcp-timeout-config.js.map +0 -1
- package/dist/utils/mcp-tool-registry.d.ts +0 -69
- package/dist/utils/mcp-tool-registry.d.ts.map +0 -1
- package/dist/utils/mcp-tool-registry.js +0 -354
- package/dist/utils/mcp-tool-registry.js.map +0 -1
- package/dist/utils/memory-pool.d.ts +0 -56
- package/dist/utils/memory-pool.d.ts.map +0 -1
- package/dist/utils/memory-pool.js +0 -103
- package/dist/utils/memory-pool.js.map +0 -1
- package/dist/utils/memory-safe-collections.d.ts +0 -119
- package/dist/utils/memory-safe-collections.d.ts.map +0 -1
- package/dist/utils/memory-safe-collections.js +0 -212
- package/dist/utils/memory-safe-collections.js.map +0 -1
- package/dist/utils/migrate-snow-flow.d.ts +0 -22
- package/dist/utils/migrate-snow-flow.d.ts.map +0 -1
- package/dist/utils/migrate-snow-flow.js +0 -120
- package/dist/utils/migrate-snow-flow.js.map +0 -1
- package/dist/utils/ml-data-fetcher.d.ts +0 -66
- package/dist/utils/ml-data-fetcher.d.ts.map +0 -1
- package/dist/utils/ml-data-fetcher.js +0 -349
- package/dist/utils/ml-data-fetcher.js.map +0 -1
- package/dist/utils/oauth-html-templates.d.ts +0 -11
- package/dist/utils/oauth-html-templates.d.ts.map +0 -1
- package/dist/utils/oauth-html-templates.js +0 -355
- package/dist/utils/oauth-html-templates.js.map +0 -1
- package/dist/utils/servicenow-audit-logger.d.ts +0 -109
- package/dist/utils/servicenow-audit-logger.d.ts.map +0 -1
- package/dist/utils/servicenow-audit-logger.js +0 -267
- package/dist/utils/servicenow-audit-logger.js.map +0 -1
- package/dist/utils/servicenow-client-with-tracking.d.ts +0 -46
- package/dist/utils/servicenow-client-with-tracking.d.ts.map +0 -1
- package/dist/utils/servicenow-client-with-tracking.js +0 -164
- package/dist/utils/servicenow-client-with-tracking.js.map +0 -1
- package/dist/utils/servicenow-client.d.ts +0 -356
- package/dist/utils/servicenow-client.d.ts.map +0 -1
- package/dist/utils/servicenow-client.js +0 -3020
- package/dist/utils/servicenow-client.js.map +0 -1
- package/dist/utils/servicenow-eventual-consistency.d.ts +0 -120
- package/dist/utils/servicenow-eventual-consistency.d.ts.map +0 -1
- package/dist/utils/servicenow-eventual-consistency.js +0 -220
- package/dist/utils/servicenow-eventual-consistency.js.map +0 -1
- package/dist/utils/servicenow-id-generator.d.ts +0 -107
- package/dist/utils/servicenow-id-generator.d.ts.map +0 -1
- package/dist/utils/servicenow-id-generator.js +0 -172
- package/dist/utils/servicenow-id-generator.js.map +0 -1
- package/dist/utils/smart-field-fetcher.d.ts +0 -72
- package/dist/utils/smart-field-fetcher.d.ts.map +0 -1
- package/dist/utils/smart-field-fetcher.js +0 -521
- package/dist/utils/smart-field-fetcher.js.map +0 -1
- package/dist/utils/snow-memory-manager.d.ts +0 -78
- package/dist/utils/snow-memory-manager.d.ts.map +0 -1
- package/dist/utils/snow-memory-manager.js +0 -530
- package/dist/utils/snow-memory-manager.js.map +0 -1
- package/dist/utils/snow-oauth.d.ts +0 -120
- package/dist/utils/snow-oauth.d.ts.map +0 -1
- package/dist/utils/snow-oauth.js +0 -1033
- package/dist/utils/snow-oauth.js.map +0 -1
- package/dist/utils/snowcode-output-interceptor.d.ts +0 -40
- package/dist/utils/snowcode-output-interceptor.d.ts.map +0 -1
- package/dist/utils/snowcode-output-interceptor.js +0 -258
- package/dist/utils/snowcode-output-interceptor.js.map +0 -1
- package/dist/utils/sync-mcp-configs.d.ts +0 -28
- package/dist/utils/sync-mcp-configs.d.ts.map +0 -1
- package/dist/utils/sync-mcp-configs.js +0 -92
- package/dist/utils/sync-mcp-configs.js.map +0 -1
- package/dist/utils/template-engine.d.ts +0 -76
- package/dist/utils/template-engine.d.ts.map +0 -1
- package/dist/utils/template-engine.js +0 -391
- package/dist/utils/template-engine.js.map +0 -1
- package/dist/utils/theme-manager.d.ts +0 -54
- package/dist/utils/theme-manager.d.ts.map +0 -1
- package/dist/utils/theme-manager.js +0 -214
- package/dist/utils/theme-manager.js.map +0 -1
- package/dist/utils/timeout-manager.d.ts +0 -62
- package/dist/utils/timeout-manager.d.ts.map +0 -1
- package/dist/utils/timeout-manager.js +0 -352
- package/dist/utils/timeout-manager.js.map +0 -1
- package/dist/utils/timer-registry.d.ts +0 -138
- package/dist/utils/timer-registry.d.ts.map +0 -1
- package/dist/utils/timer-registry.js +0 -286
- package/dist/utils/timer-registry.js.map +0 -1
- package/dist/utils/todo-manager-mcp.d.ts +0 -87
- package/dist/utils/todo-manager-mcp.d.ts.map +0 -1
- package/dist/utils/todo-manager-mcp.js +0 -211
- package/dist/utils/todo-manager-mcp.js.map +0 -1
- package/dist/utils/unified-auth-store.d.ts +0 -55
- package/dist/utils/unified-auth-store.d.ts.map +0 -1
- package/dist/utils/unified-auth-store.js +0 -194
- package/dist/utils/unified-auth-store.js.map +0 -1
- package/dist/utils/update-set-importer.d.ts +0 -72
- package/dist/utils/update-set-importer.d.ts.map +0 -1
- package/dist/utils/update-set-importer.js +0 -370
- package/dist/utils/update-set-importer.js.map +0 -1
- package/dist/utils/update-set-xml-packager.d.ts +0 -85
- package/dist/utils/update-set-xml-packager.d.ts.map +0 -1
- package/dist/utils/update-set-xml-packager.js +0 -340
- package/dist/utils/update-set-xml-packager.js.map +0 -1
- package/dist/utils/widget-template-generator.d.ts +0 -110
- package/dist/utils/widget-template-generator.d.ts.map +0 -1
- package/dist/utils/widget-template-generator.js +0 -1760
- package/dist/utils/widget-template-generator.js.map +0 -1
- package/dist/version.d.ts +0 -2
- package/dist/version.d.ts.map +0 -1
- package/dist/version.js +0 -6
- package/dist/version.js.map +0 -1
- package/patches/zod+4.1.12.patch +0 -13
|
@@ -1,3020 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
/**
|
|
4
|
-
* ServiceNow API Client
|
|
5
|
-
* Handles all ServiceNow API operations with OAuth authentication
|
|
6
|
-
*/
|
|
7
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
8
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
|
-
};
|
|
10
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
11
|
-
exports.ServiceNowClient = void 0;
|
|
12
|
-
const axios_1 = __importDefault(require("axios"));
|
|
13
|
-
const https_1 = __importDefault(require("https"));
|
|
14
|
-
const snow_oauth_1 = require("./snow-oauth");
|
|
15
|
-
const action_type_cache_1 = require("./action-type-cache");
|
|
16
|
-
const widget_template_generator_js_1 = require("./widget-template-generator.js");
|
|
17
|
-
const logger_1 = require("./logger");
|
|
18
|
-
const unified_auth_store_js_1 = require("./unified-auth-store.js");
|
|
19
|
-
const timeout_manager_js_1 = require("./timeout-manager.js");
|
|
20
|
-
class ServiceNowClient {
|
|
21
|
-
constructor() {
|
|
22
|
-
this.credentials = null;
|
|
23
|
-
// 🔴 SNOW-003 FIX: Token refresh synchronization to prevent race conditions
|
|
24
|
-
this.tokenRefreshPromise = null;
|
|
25
|
-
this.lastTokenRefresh = 0;
|
|
26
|
-
this.logger = new logger_1.Logger('ServiceNowClient');
|
|
27
|
-
this.oauth = new snow_oauth_1.ServiceNowOAuth();
|
|
28
|
-
// 🔒 SSL/TLS Certificate Validation Fix: Allow self-signed certificates for ServiceNow dev instances
|
|
29
|
-
const httpsAgent = new https_1.default.Agent({
|
|
30
|
-
rejectUnauthorized: false, // Allow self-signed certificates for dev instances (fixes "certificate has expired" errors)
|
|
31
|
-
checkServerIdentity: (hostname, cert) => {
|
|
32
|
-
// Custom certificate validation for ServiceNow instances
|
|
33
|
-
// Allow *.service-now.com and user-configured instances
|
|
34
|
-
const validHosts = [
|
|
35
|
-
/.*\.service-now\.com$/,
|
|
36
|
-
/.*\.servicenow\.com$/
|
|
37
|
-
];
|
|
38
|
-
// Get configured instance hostname
|
|
39
|
-
const instanceUrl = process.env.SNOW_INSTANCE;
|
|
40
|
-
if (instanceUrl) {
|
|
41
|
-
try {
|
|
42
|
-
const instanceHostname = new URL(instanceUrl.startsWith('http') ? instanceUrl : `https://${instanceUrl}`).hostname;
|
|
43
|
-
validHosts.push(new RegExp(`^${instanceHostname.replace(/\./g, '\\.')}$`));
|
|
44
|
-
}
|
|
45
|
-
catch (error) {
|
|
46
|
-
// Invalid URL format, rely on default validation
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
// Check if hostname matches allowed patterns
|
|
50
|
-
if (validHosts.some(pattern => pattern.test(hostname))) {
|
|
51
|
-
return undefined; // Valid hostname
|
|
52
|
-
}
|
|
53
|
-
// For development/testing environments, allow localhost/127.0.0.1
|
|
54
|
-
if (process.env.NODE_ENV === 'development' &&
|
|
55
|
-
(hostname === 'localhost' || hostname === '127.0.0.1' || hostname.startsWith('192.168.'))) {
|
|
56
|
-
return undefined;
|
|
57
|
-
}
|
|
58
|
-
return new Error(`Certificate hostname mismatch: ${hostname} not allowed`);
|
|
59
|
-
},
|
|
60
|
-
// secureProtocol removed to avoid conflict with minVersion/maxVersion
|
|
61
|
-
ciphers: [
|
|
62
|
-
'ECDHE-RSA-AES128-GCM-SHA256',
|
|
63
|
-
'ECDHE-RSA-AES256-GCM-SHA384',
|
|
64
|
-
'ECDHE-RSA-AES128-SHA256',
|
|
65
|
-
'ECDHE-RSA-AES256-SHA384'
|
|
66
|
-
].join(':'), // Only allow secure ciphers
|
|
67
|
-
honorCipherOrder: true,
|
|
68
|
-
maxVersion: 'TLSv1.3',
|
|
69
|
-
minVersion: 'TLSv1.2'
|
|
70
|
-
});
|
|
71
|
-
// Use intelligent timeout based on operation type (default to TABLE_QUERY)
|
|
72
|
-
const defaultTimeout = (0, timeout_manager_js_1.getTimeoutConfig)(timeout_manager_js_1.OperationType.TABLE_QUERY).baseTimeout;
|
|
73
|
-
this.client = axios_1.default.create({
|
|
74
|
-
timeout: parseInt(process.env.SNOW_API_TIMEOUT || String(defaultTimeout)),
|
|
75
|
-
headers: {
|
|
76
|
-
'Content-Type': 'application/json',
|
|
77
|
-
'Accept': 'application/json'
|
|
78
|
-
},
|
|
79
|
-
httpsAgent, // Use secure HTTPS agent with certificate validation
|
|
80
|
-
// Additional security headers
|
|
81
|
-
maxRedirects: 5,
|
|
82
|
-
validateStatus: (status) => status < 400 // Reject 4xx and 5xx by default
|
|
83
|
-
});
|
|
84
|
-
// Store deployment timeout from environment
|
|
85
|
-
this.deploymentTimeout = parseInt(process.env.SNOW_DEPLOYMENT_TIMEOUT || '300000'); // 5 minutes default
|
|
86
|
-
// 🔧 CRITICAL FIX: Add makeRequest method to Axios instance to fix phantom calls
|
|
87
|
-
// Some code expects makeRequest to exist on this.client (the Axios instance)
|
|
88
|
-
this.client.makeRequest = async (config) => {
|
|
89
|
-
// Route to the appropriate Axios method based on the request config
|
|
90
|
-
const method = (config.method || 'GET').toLowerCase();
|
|
91
|
-
const url = config.url || config.endpoint;
|
|
92
|
-
const data = config.data || config.body;
|
|
93
|
-
// CRITICAL FIX: Properly merge headers to allow content-type overrides for XML requests
|
|
94
|
-
const requestConfig = {
|
|
95
|
-
...config,
|
|
96
|
-
headers: {
|
|
97
|
-
...(this.client.defaults?.headers?.common || {}),
|
|
98
|
-
...(this.client.defaults.headers[method] || {}),
|
|
99
|
-
...config.headers // This ensures custom headers (like Content-Type: application/xml) override defaults
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
this.logger.debug('🔧 Final request config headers:', requestConfig.headers);
|
|
103
|
-
switch (method) {
|
|
104
|
-
case 'get':
|
|
105
|
-
return this.client.get(url, { params: config.params, ...requestConfig });
|
|
106
|
-
case 'post':
|
|
107
|
-
return this.client.post(url, data, requestConfig);
|
|
108
|
-
case 'put':
|
|
109
|
-
return this.client.put(url, data, requestConfig);
|
|
110
|
-
case 'patch':
|
|
111
|
-
return this.client.patch(url, data, requestConfig);
|
|
112
|
-
case 'delete':
|
|
113
|
-
return this.client.delete(url, requestConfig);
|
|
114
|
-
default:
|
|
115
|
-
throw new Error(`Unsupported HTTP method: ${method}`);
|
|
116
|
-
}
|
|
117
|
-
};
|
|
118
|
-
this.actionTypeCache = new action_type_cache_1.ActionTypeCache(this);
|
|
119
|
-
// Add request interceptor for authentication with automatic token refresh
|
|
120
|
-
this.client.interceptors.request.use(async (config) => {
|
|
121
|
-
await this.ensureAuthenticated();
|
|
122
|
-
// Get fresh access token (automatically refreshes if expired)
|
|
123
|
-
const accessToken = await this.oauth.getAccessToken();
|
|
124
|
-
if (accessToken) {
|
|
125
|
-
config.headers['Authorization'] = `Bearer ${accessToken}`;
|
|
126
|
-
// Update local credentials with fresh token
|
|
127
|
-
if (this.credentials) {
|
|
128
|
-
this.credentials.accessToken = accessToken;
|
|
129
|
-
}
|
|
130
|
-
}
|
|
131
|
-
else {
|
|
132
|
-
console.warn('⚠️ No access token available - request may fail');
|
|
133
|
-
}
|
|
134
|
-
return config;
|
|
135
|
-
});
|
|
136
|
-
// Add response interceptor for error handling with retry logic
|
|
137
|
-
this.client.interceptors.response.use((response) => response, async (error) => {
|
|
138
|
-
const originalRequest = error.config;
|
|
139
|
-
// 🔴 SNOW-003 FIX: Prevent token refresh race conditions
|
|
140
|
-
if (error.response?.status === 401 && !originalRequest._retry) {
|
|
141
|
-
originalRequest._retry = true;
|
|
142
|
-
// 🔴 CRITICAL: Use singleton token refresh to prevent multiple concurrent refreshes
|
|
143
|
-
return this.handleTokenRefreshWithLock(originalRequest);
|
|
144
|
-
}
|
|
145
|
-
// Log other errors for debugging
|
|
146
|
-
if (error.response?.status === 403) {
|
|
147
|
-
console.error('❌ 403 Forbidden - Check ServiceNow permissions');
|
|
148
|
-
}
|
|
149
|
-
else if (error.response?.status >= 500) {
|
|
150
|
-
console.error('❌ ServiceNow server error:', error.response.status);
|
|
151
|
-
}
|
|
152
|
-
return Promise.reject(error);
|
|
153
|
-
});
|
|
154
|
-
}
|
|
155
|
-
/**
|
|
156
|
-
* Public getter for credentials
|
|
157
|
-
*/
|
|
158
|
-
get credentialsInstance() {
|
|
159
|
-
return this.credentials;
|
|
160
|
-
}
|
|
161
|
-
/**
|
|
162
|
-
* 🔴 SNOW-003 FIX: Handle token refresh with locking to prevent concurrent refreshes
|
|
163
|
-
* This prevents cascade failures caused by multiple simultaneous token refresh attempts
|
|
164
|
-
*/
|
|
165
|
-
async handleTokenRefreshWithLock(originalRequest) {
|
|
166
|
-
const now = Date.now();
|
|
167
|
-
// 🔴 CRITICAL: If another refresh is in progress, wait for it
|
|
168
|
-
if (this.tokenRefreshPromise) {
|
|
169
|
-
this.logger.info('🔄 Token refresh already in progress, waiting...');
|
|
170
|
-
try {
|
|
171
|
-
await this.tokenRefreshPromise;
|
|
172
|
-
// After waiting, check if we have valid credentials now
|
|
173
|
-
if (this.credentials?.accessToken) {
|
|
174
|
-
this.logger.info('✅ Using refreshed token from concurrent refresh');
|
|
175
|
-
originalRequest.headers['Authorization'] = `Bearer ${this.credentials.accessToken}`;
|
|
176
|
-
return this.client.request(originalRequest);
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
catch (error) {
|
|
180
|
-
this.logger.warn('Concurrent token refresh failed:', error);
|
|
181
|
-
}
|
|
182
|
-
}
|
|
183
|
-
// 🔴 CRITICAL: Rate limit token refresh to prevent excessive API calls
|
|
184
|
-
if (now - this.lastTokenRefresh < 5000) { // 5 second rate limit
|
|
185
|
-
this.logger.warn('⚠️ Token refresh rate limited - too many attempts');
|
|
186
|
-
throw new Error('Token refresh rate limited. Please wait before retrying.');
|
|
187
|
-
}
|
|
188
|
-
// 🔴 CRITICAL: Create new refresh promise with timeout and error handling
|
|
189
|
-
this.tokenRefreshPromise = this.performTokenRefreshWithTimeout();
|
|
190
|
-
this.lastTokenRefresh = now;
|
|
191
|
-
try {
|
|
192
|
-
this.logger.info('🔄 Starting token refresh process...');
|
|
193
|
-
const refreshResult = await this.tokenRefreshPromise;
|
|
194
|
-
if (refreshResult.success && refreshResult.accessToken) {
|
|
195
|
-
this.logger.info('✅ Token refreshed successfully, retrying original request...');
|
|
196
|
-
// Update local credentials
|
|
197
|
-
if (this.credentials) {
|
|
198
|
-
this.credentials.accessToken = refreshResult.accessToken;
|
|
199
|
-
this.credentials.expiresAt = refreshResult.expiresAt;
|
|
200
|
-
}
|
|
201
|
-
// Update the authorization header with new token
|
|
202
|
-
originalRequest.headers['Authorization'] = `Bearer ${refreshResult.accessToken}`;
|
|
203
|
-
// Clear the promise since we're done
|
|
204
|
-
this.tokenRefreshPromise = null;
|
|
205
|
-
// Retry the original request
|
|
206
|
-
return this.client.request(originalRequest);
|
|
207
|
-
}
|
|
208
|
-
else {
|
|
209
|
-
// Clear the promise on failure
|
|
210
|
-
this.tokenRefreshPromise = null;
|
|
211
|
-
const errorMsg = `Token refresh failed: ${refreshResult.error || 'Unknown error'}`;
|
|
212
|
-
this.logger.error('❌ ' + errorMsg);
|
|
213
|
-
console.error('💡 Please run "snow-flow auth login" to re-authenticate');
|
|
214
|
-
throw new Error(errorMsg);
|
|
215
|
-
}
|
|
216
|
-
}
|
|
217
|
-
catch (error) {
|
|
218
|
-
// Clear the promise on any error
|
|
219
|
-
this.tokenRefreshPromise = null;
|
|
220
|
-
this.logger.error('🔴 Token refresh process failed:', error);
|
|
221
|
-
throw error;
|
|
222
|
-
}
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* 🔴 SNOW-003 FIX: Token refresh with timeout to prevent hanging requests
|
|
226
|
-
*/
|
|
227
|
-
async performTokenRefreshWithTimeout() {
|
|
228
|
-
const timeout = 15000; // 15 second timeout for token refresh
|
|
229
|
-
return Promise.race([
|
|
230
|
-
this.oauth.refreshAccessToken(),
|
|
231
|
-
new Promise((_, reject) => setTimeout(() => reject(new Error('Token refresh timeout')), timeout)),
|
|
232
|
-
]);
|
|
233
|
-
}
|
|
234
|
-
/**
|
|
235
|
-
* Ensure we have valid authentication with improved error handling
|
|
236
|
-
*/
|
|
237
|
-
async ensureAuthenticated() {
|
|
238
|
-
if (!this.credentials) {
|
|
239
|
-
// Try unified auth store first (most reliable)
|
|
240
|
-
const tokens = await unified_auth_store_js_1.unifiedAuthStore.getTokens();
|
|
241
|
-
if (tokens) {
|
|
242
|
-
this.credentials = {
|
|
243
|
-
instance: tokens.instance,
|
|
244
|
-
clientId: tokens.clientId,
|
|
245
|
-
clientSecret: tokens.clientSecret,
|
|
246
|
-
accessToken: tokens.accessToken,
|
|
247
|
-
refreshToken: tokens.refreshToken,
|
|
248
|
-
expiresAt: tokens.expiresAt
|
|
249
|
-
};
|
|
250
|
-
}
|
|
251
|
-
else {
|
|
252
|
-
// Fallback to OAuth loadCredentials
|
|
253
|
-
this.credentials = await this.oauth.loadCredentials();
|
|
254
|
-
}
|
|
255
|
-
}
|
|
256
|
-
if (!this.credentials) {
|
|
257
|
-
console.error('❌ No ServiceNow credentials found');
|
|
258
|
-
console.error('');
|
|
259
|
-
console.error('🔧 To fix this:');
|
|
260
|
-
console.error(' 1. Ensure .env file has OAuth credentials:');
|
|
261
|
-
console.error(' SNOW_INSTANCE=your-instance.service-now.com');
|
|
262
|
-
console.error(' SNOW_CLIENT_ID=your_oauth_client_id');
|
|
263
|
-
console.error(' SNOW_CLIENT_SECRET=your_oauth_client_secret');
|
|
264
|
-
console.error(' 2. Run: snow-flow auth login');
|
|
265
|
-
console.error('');
|
|
266
|
-
throw new Error('No ServiceNow credentials found. Set up .env file and run "snow-flow auth login".');
|
|
267
|
-
}
|
|
268
|
-
// Check if we have credentials but no access token (OAuth login needed)
|
|
269
|
-
if (!this.credentials.accessToken) {
|
|
270
|
-
console.error('🔐 OAuth authentication required');
|
|
271
|
-
console.error('');
|
|
272
|
-
console.error('✅ Your .env file has OAuth credentials');
|
|
273
|
-
console.error('❌ But no active OAuth session found');
|
|
274
|
-
console.error('');
|
|
275
|
-
console.error('🔧 To authenticate:');
|
|
276
|
-
console.error(' Run: snow-flow auth login');
|
|
277
|
-
console.error(' This will open your browser for OAuth login.');
|
|
278
|
-
console.error('');
|
|
279
|
-
throw new Error('OAuth login required. Run "snow-flow auth login" to authenticate.');
|
|
280
|
-
}
|
|
281
|
-
// Check if token is valid/authenticated
|
|
282
|
-
const isAuth = await this.oauth.isAuthenticated();
|
|
283
|
-
if (!isAuth) {
|
|
284
|
-
console.error('⏰ OAuth token expired');
|
|
285
|
-
console.error('');
|
|
286
|
-
console.error('🔄 Attempting automatic token refresh...');
|
|
287
|
-
// Try to refresh the token
|
|
288
|
-
const refreshResult = await this.oauth.refreshAccessToken();
|
|
289
|
-
if (refreshResult.success && refreshResult.accessToken) {
|
|
290
|
-
this.logger.info('✅ Token refreshed successfully');
|
|
291
|
-
// Update local credentials
|
|
292
|
-
this.credentials.accessToken = refreshResult.accessToken;
|
|
293
|
-
return; // Success!
|
|
294
|
-
}
|
|
295
|
-
console.error('❌ Token refresh failed:', refreshResult.error);
|
|
296
|
-
console.error('');
|
|
297
|
-
console.error('🔧 To fix this:');
|
|
298
|
-
console.error(' Run: snow-flow auth login');
|
|
299
|
-
console.error(' This will re-authenticate with ServiceNow.');
|
|
300
|
-
console.error('');
|
|
301
|
-
throw new Error('OAuth token expired and refresh failed. Run "snow-flow auth login" to re-authenticate.');
|
|
302
|
-
}
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* Proactively refresh token if it's about to expire
|
|
306
|
-
* Useful for long-running operations
|
|
307
|
-
*/
|
|
308
|
-
async refreshTokenIfNeeded() {
|
|
309
|
-
try {
|
|
310
|
-
const tokens = await this.oauth.loadTokens();
|
|
311
|
-
if (!tokens)
|
|
312
|
-
return false;
|
|
313
|
-
const expiresAt = new Date(tokens.expiresAt);
|
|
314
|
-
const now = new Date();
|
|
315
|
-
const fiveMinutesFromNow = new Date(now.getTime() + 5 * 60 * 1000);
|
|
316
|
-
// If token expires in the next 5 minutes, refresh it
|
|
317
|
-
if (expiresAt <= fiveMinutesFromNow) {
|
|
318
|
-
this.logger.info('🔄 Token expiring soon, refreshing proactively...');
|
|
319
|
-
const refreshResult = await this.oauth.refreshAccessToken();
|
|
320
|
-
if (refreshResult.success) {
|
|
321
|
-
this.logger.info('✅ Token refreshed proactively');
|
|
322
|
-
if (this.credentials && refreshResult.accessToken) {
|
|
323
|
-
this.credentials.accessToken = refreshResult.accessToken;
|
|
324
|
-
}
|
|
325
|
-
return true;
|
|
326
|
-
}
|
|
327
|
-
else {
|
|
328
|
-
console.error('❌ Proactive token refresh failed');
|
|
329
|
-
return false;
|
|
330
|
-
}
|
|
331
|
-
}
|
|
332
|
-
return true; // Token still valid
|
|
333
|
-
}
|
|
334
|
-
catch (error) {
|
|
335
|
-
console.error('Error checking token expiry:', error);
|
|
336
|
-
return false;
|
|
337
|
-
}
|
|
338
|
-
}
|
|
339
|
-
/**
|
|
340
|
-
* Get base URL for ServiceNow instance
|
|
341
|
-
*/
|
|
342
|
-
getBaseUrl() {
|
|
343
|
-
if (!this.credentials) {
|
|
344
|
-
throw new Error('No credentials available');
|
|
345
|
-
}
|
|
346
|
-
// Remove trailing slash from instance URL to prevent double slashes in API calls
|
|
347
|
-
const instance = this.credentials.instance.replace(/\/$/, '');
|
|
348
|
-
return `https://${instance}`;
|
|
349
|
-
}
|
|
350
|
-
/**
|
|
351
|
-
* Sanitize a flow name for use as internal_name
|
|
352
|
-
*/
|
|
353
|
-
sanitizeInternalName(name) {
|
|
354
|
-
return name
|
|
355
|
-
.toLowerCase()
|
|
356
|
-
.replace(/[^a-z0-9_\s]/g, '') // Remove special characters except underscores and spaces
|
|
357
|
-
.replace(/\s+/g, '_') // Replace spaces with underscores
|
|
358
|
-
.replace(/_+/g, '_') // Replace multiple underscores with single
|
|
359
|
-
.replace(/^_|_$/g, '') // Remove leading/trailing underscores
|
|
360
|
-
.substring(0, 80); // Limit length to 80 characters
|
|
361
|
-
}
|
|
362
|
-
/**
|
|
363
|
-
* Validate deployment permissions and diagnose authentication issues
|
|
364
|
-
*/
|
|
365
|
-
async validateDeploymentPermissions() {
|
|
366
|
-
// Ensure we have credentials before running diagnostics
|
|
367
|
-
await this.ensureAuthenticated();
|
|
368
|
-
const diagnostics = {
|
|
369
|
-
instance_url: this.getBaseUrl(),
|
|
370
|
-
timestamp: new Date().toISOString(),
|
|
371
|
-
tests: {}
|
|
372
|
-
};
|
|
373
|
-
const tests = [
|
|
374
|
-
{
|
|
375
|
-
name: 'Read Access',
|
|
376
|
-
description: 'Test basic read permissions',
|
|
377
|
-
test: async () => {
|
|
378
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_user?sysparm_limit=1`);
|
|
379
|
-
return { success: true, data: response.data };
|
|
380
|
-
}
|
|
381
|
-
},
|
|
382
|
-
{
|
|
383
|
-
name: 'Widget Read Access',
|
|
384
|
-
description: 'Test Service Portal widget read access',
|
|
385
|
-
test: async () => {
|
|
386
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sp_widget?sysparm_limit=1`);
|
|
387
|
-
return { success: true, data: response.data };
|
|
388
|
-
}
|
|
389
|
-
},
|
|
390
|
-
{
|
|
391
|
-
name: 'Update Set Access',
|
|
392
|
-
description: 'Test Update Set management permissions',
|
|
393
|
-
test: async () => {
|
|
394
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_update_set?sysparm_limit=1`);
|
|
395
|
-
return { success: true, data: response.data };
|
|
396
|
-
}
|
|
397
|
-
},
|
|
398
|
-
{
|
|
399
|
-
name: 'Widget Write Test',
|
|
400
|
-
description: 'Test Service Portal widget write permissions (dry run)',
|
|
401
|
-
test: async () => {
|
|
402
|
-
// Try to create a minimal test widget that we'll immediately delete
|
|
403
|
-
const testWidget = {
|
|
404
|
-
name: `test_widget_${Date.now()}`,
|
|
405
|
-
id: `test_${Date.now()}`,
|
|
406
|
-
title: 'Test Widget (Will be deleted)',
|
|
407
|
-
template: '<div>Test</div>',
|
|
408
|
-
css: '',
|
|
409
|
-
script: '',
|
|
410
|
-
option_schema: '[]'
|
|
411
|
-
};
|
|
412
|
-
try {
|
|
413
|
-
const createResponse = await this.client.post(`${this.getBaseUrl()}/api/now/table/sp_widget`, testWidget);
|
|
414
|
-
// CRITICAL FIX: Add null safety for response processing
|
|
415
|
-
if (!createResponse || !createResponse.data || !createResponse.data.result || !createResponse.data.result.sys_id) {
|
|
416
|
-
throw new Error('Widget creation succeeded but response structure is unexpected - unable to verify sys_id');
|
|
417
|
-
}
|
|
418
|
-
const sys_id = createResponse.data.result.sys_id;
|
|
419
|
-
// Immediately delete the test widget with error handling
|
|
420
|
-
try {
|
|
421
|
-
await this.client.delete(`${this.getBaseUrl()}/api/now/table/sp_widget/${sys_id}`);
|
|
422
|
-
}
|
|
423
|
-
catch (deleteError) {
|
|
424
|
-
this.logger.warn(`Test widget created but cleanup failed: ${deleteError instanceof Error ? deleteError.message : String(deleteError)}`);
|
|
425
|
-
// Don't fail the test just because cleanup failed
|
|
426
|
-
}
|
|
427
|
-
return { success: true, data: { message: 'Widget write permissions confirmed' } };
|
|
428
|
-
}
|
|
429
|
-
catch (error) {
|
|
430
|
-
throw error;
|
|
431
|
-
}
|
|
432
|
-
}
|
|
433
|
-
},
|
|
434
|
-
{
|
|
435
|
-
name: 'User Role Check',
|
|
436
|
-
description: 'Check user roles and permissions',
|
|
437
|
-
test: async () => {
|
|
438
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_user_role?sysparm_query=user=javascript:gs.getUserID()`);
|
|
439
|
-
// CRITICAL FIX: Add null safety for response processing
|
|
440
|
-
if (!response || !response.data || !response.data.result) {
|
|
441
|
-
return { success: true, data: { roles: [], warning: 'Unable to retrieve user roles - response structure unexpected' } };
|
|
442
|
-
}
|
|
443
|
-
// Safely process roles with null checks
|
|
444
|
-
const roles = Array.isArray(response.data.result)
|
|
445
|
-
? response.data.result.map((r) => {
|
|
446
|
-
if (!r || typeof r !== 'object')
|
|
447
|
-
return 'Unknown Role';
|
|
448
|
-
return r.role?.display_value || r.role || 'Unknown Role';
|
|
449
|
-
}).filter(role => role && role !== 'Unknown Role')
|
|
450
|
-
: [];
|
|
451
|
-
return { success: true, data: { roles } };
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
];
|
|
455
|
-
for (const test of tests) {
|
|
456
|
-
try {
|
|
457
|
-
this.logger.info(`Running diagnostic: ${test.name}...`);
|
|
458
|
-
const result = await test.test();
|
|
459
|
-
diagnostics.tests[test.name] = {
|
|
460
|
-
status: '✅ PASS',
|
|
461
|
-
description: test.description,
|
|
462
|
-
result: result.data,
|
|
463
|
-
error: null
|
|
464
|
-
};
|
|
465
|
-
}
|
|
466
|
-
catch (error) {
|
|
467
|
-
const errorMessage = error instanceof Error ? error.message : String(error);
|
|
468
|
-
diagnostics.tests[test.name] = {
|
|
469
|
-
status: '❌ FAIL',
|
|
470
|
-
description: test.description,
|
|
471
|
-
result: null,
|
|
472
|
-
error: errorMessage,
|
|
473
|
-
http_status: this.extractHttpStatus(errorMessage)
|
|
474
|
-
};
|
|
475
|
-
}
|
|
476
|
-
}
|
|
477
|
-
// Analyze results with null safety
|
|
478
|
-
const failedTests = diagnostics.tests && typeof diagnostics.tests === 'object'
|
|
479
|
-
? Object.values(diagnostics.tests).filter((test) => test && test.status && test.status.includes('FAIL'))
|
|
480
|
-
: [];
|
|
481
|
-
const passedTests = diagnostics.tests && typeof diagnostics.tests === 'object'
|
|
482
|
-
? Object.values(diagnostics.tests).filter((test) => test && test.status && test.status.includes('PASS'))
|
|
483
|
-
: [];
|
|
484
|
-
diagnostics.summary = {
|
|
485
|
-
total_tests: tests.length || 0,
|
|
486
|
-
passed: passedTests.length || 0,
|
|
487
|
-
failed: failedTests.length || 0,
|
|
488
|
-
overall_status: failedTests.length === 0 && passedTests.length > 0 ? '✅ ALL SYSTEMS GO' : '⚠️ ISSUES DETECTED'
|
|
489
|
-
};
|
|
490
|
-
// Generate recommendations with null safety
|
|
491
|
-
try {
|
|
492
|
-
diagnostics.recommendations = this.generateAuthRecommendations(diagnostics.tests);
|
|
493
|
-
}
|
|
494
|
-
catch (recError) {
|
|
495
|
-
this.logger.error('Error generating recommendations:', recError);
|
|
496
|
-
diagnostics.recommendations = ['⚠️ Unable to generate recommendations due to error'];
|
|
497
|
-
}
|
|
498
|
-
return {
|
|
499
|
-
success: failedTests.length === 0,
|
|
500
|
-
data: diagnostics,
|
|
501
|
-
error: failedTests.length > 0 ? 'Some deployment permissions are missing' : null
|
|
502
|
-
};
|
|
503
|
-
}
|
|
504
|
-
/**
|
|
505
|
-
* Extract HTTP status from error message
|
|
506
|
-
*/
|
|
507
|
-
extractHttpStatus(errorMessage) {
|
|
508
|
-
const statusMatch = errorMessage.match(/status code (\d+)/i);
|
|
509
|
-
return statusMatch ? parseInt(statusMatch[1], 10) : null;
|
|
510
|
-
}
|
|
511
|
-
/**
|
|
512
|
-
* Generate authentication recommendations based on test results
|
|
513
|
-
*/
|
|
514
|
-
generateAuthRecommendations(tests) {
|
|
515
|
-
const recommendations = [];
|
|
516
|
-
// CRITICAL FIX: Add comprehensive null safety checks
|
|
517
|
-
if (!tests || typeof tests !== 'object') {
|
|
518
|
-
recommendations.push('⚠️ Unable to analyze test results due to missing test data');
|
|
519
|
-
return recommendations;
|
|
520
|
-
}
|
|
521
|
-
// Safe check for Widget Write Test
|
|
522
|
-
const widgetTest = tests['Widget Write Test'];
|
|
523
|
-
if (widgetTest?.status && typeof widgetTest.status === 'string' && widgetTest.status.includes('FAIL')) {
|
|
524
|
-
const error = widgetTest.error;
|
|
525
|
-
if (error && typeof error === 'string') {
|
|
526
|
-
if (error.includes('403')) {
|
|
527
|
-
recommendations.push('🔐 Widget deployment failed with 403 Forbidden. Check OAuth scopes: ensure \'useraccount\' and \'glide_system_administration\' scopes are enabled');
|
|
528
|
-
recommendations.push('👤 Verify user has sp_portal_manager or admin role in ServiceNow');
|
|
529
|
-
recommendations.push('🛡️ Check if instance has deployment restrictions for external applications');
|
|
530
|
-
}
|
|
531
|
-
if (error.includes('401')) {
|
|
532
|
-
recommendations.push('🔑 Authentication failed. Re-run: snow-flow auth login');
|
|
533
|
-
}
|
|
534
|
-
}
|
|
535
|
-
else {
|
|
536
|
-
recommendations.push('🔐 Widget write test failed with unknown error. Check ServiceNow permissions');
|
|
537
|
-
}
|
|
538
|
-
}
|
|
539
|
-
// Safe check for User Role Check
|
|
540
|
-
const roleTest = tests['User Role Check'];
|
|
541
|
-
if (roleTest?.status && typeof roleTest.status === 'string' && roleTest.status.includes('PASS')) {
|
|
542
|
-
const roles = roleTest.result?.roles;
|
|
543
|
-
if (Array.isArray(roles)) {
|
|
544
|
-
// Debug: Log actual roles for troubleshooting
|
|
545
|
-
this.logger.info(`User roles found: ${roles.join(', ')}`);
|
|
546
|
-
const hasRequiredRole = roles.some((role) => {
|
|
547
|
-
if (typeof role === 'string') {
|
|
548
|
-
const roleLower = role.toLowerCase();
|
|
549
|
-
// Check for admin roles: admin, system_administrator, etc.
|
|
550
|
-
const isAdmin = roleLower.includes('admin');
|
|
551
|
-
// Check for portal manager roles: sp_portal_manager, sp_admin, etc.
|
|
552
|
-
const isPortalManager = roleLower.includes('sp_portal_manager') ||
|
|
553
|
-
roleLower.includes('sp_admin') ||
|
|
554
|
-
roleLower.includes('portal_manager');
|
|
555
|
-
if (isAdmin || isPortalManager) {
|
|
556
|
-
this.logger.info(`✅ Found qualifying role: ${role}`);
|
|
557
|
-
}
|
|
558
|
-
return isAdmin || isPortalManager;
|
|
559
|
-
}
|
|
560
|
-
return false;
|
|
561
|
-
});
|
|
562
|
-
if (!hasRequiredRole) {
|
|
563
|
-
this.logger.warn(`❌ No qualifying roles found in: ${roles.join(', ')}`);
|
|
564
|
-
recommendations.push(`⚠️ User roles (${roles.join(', ')}) don't include admin or portal management roles. Contact ServiceNow admin to assign appropriate roles`);
|
|
565
|
-
}
|
|
566
|
-
else {
|
|
567
|
-
this.logger.info('✅ User has sufficient roles for deployment');
|
|
568
|
-
}
|
|
569
|
-
}
|
|
570
|
-
else {
|
|
571
|
-
recommendations.push('⚠️ Unable to verify user roles. Check if user has admin or portal management permissions');
|
|
572
|
-
}
|
|
573
|
-
}
|
|
574
|
-
// Safe check for Update Set Access
|
|
575
|
-
const updateSetTest = tests['Update Set Access'];
|
|
576
|
-
if (updateSetTest?.status && typeof updateSetTest.status === 'string' && updateSetTest.status.includes('FAIL')) {
|
|
577
|
-
recommendations.push('📦 Update Set access failed. Ensure user has update_set_manager or admin role');
|
|
578
|
-
}
|
|
579
|
-
if (recommendations.length === 0) {
|
|
580
|
-
recommendations.push('✅ All authentication checks passed! Deployment should work correctly');
|
|
581
|
-
}
|
|
582
|
-
return recommendations;
|
|
583
|
-
}
|
|
584
|
-
/**
|
|
585
|
-
* Test connection to ServiceNow
|
|
586
|
-
*/
|
|
587
|
-
async testConnection() {
|
|
588
|
-
try {
|
|
589
|
-
// Ensure we have credentials first
|
|
590
|
-
await this.ensureAuthenticated();
|
|
591
|
-
// Use the /api/now/v2/table/sys_user?sysparm_limit=1 endpoint to test
|
|
592
|
-
// This is a more reliable endpoint that should work on all instances
|
|
593
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/v2/table/sys_user?sysparm_limit=1&sysparm_query=user_name=admin`);
|
|
594
|
-
// If we can query users, we're connected
|
|
595
|
-
return {
|
|
596
|
-
success: true,
|
|
597
|
-
data: {
|
|
598
|
-
name: 'ServiceNow Instance',
|
|
599
|
-
user_name: 'Connected',
|
|
600
|
-
email: `${this.credentials?.instance}`,
|
|
601
|
-
message: 'Connection successful'
|
|
602
|
-
}
|
|
603
|
-
};
|
|
604
|
-
}
|
|
605
|
-
catch (error) {
|
|
606
|
-
// Try a simpler endpoint if the first one fails
|
|
607
|
-
try {
|
|
608
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_properties?sysparm_limit=1`);
|
|
609
|
-
return {
|
|
610
|
-
success: true,
|
|
611
|
-
data: {
|
|
612
|
-
name: 'ServiceNow Instance',
|
|
613
|
-
user_name: 'Connected',
|
|
614
|
-
email: `${this.credentials?.instance}`,
|
|
615
|
-
message: 'Connection successful (limited access)'
|
|
616
|
-
}
|
|
617
|
-
};
|
|
618
|
-
}
|
|
619
|
-
catch (secondError) {
|
|
620
|
-
return {
|
|
621
|
-
success: false,
|
|
622
|
-
error: error instanceof Error ? error.message : String(error)
|
|
623
|
-
};
|
|
624
|
-
}
|
|
625
|
-
}
|
|
626
|
-
}
|
|
627
|
-
/**
|
|
628
|
-
* Create a new ServiceNow widget
|
|
629
|
-
*/
|
|
630
|
-
async createWidget(widget) {
|
|
631
|
-
try {
|
|
632
|
-
this.logger.info('🎨 Creating ServiceNow widget...');
|
|
633
|
-
this.logger.info(`📋 Widget Name: ${widget.name}`);
|
|
634
|
-
// Add pre-deployment validation for widgets
|
|
635
|
-
if (!widget.name || widget.name.trim() === '') {
|
|
636
|
-
throw new Error('Widget name is required');
|
|
637
|
-
}
|
|
638
|
-
if (!widget.title || widget.title.trim() === '') {
|
|
639
|
-
throw new Error('Widget title is required');
|
|
640
|
-
}
|
|
641
|
-
if (!widget.template || widget.template.trim() === '') {
|
|
642
|
-
console.warn('⚠️ Widget has no template content - generating functional template automatically');
|
|
643
|
-
// Generate a functional template instead of deploying an empty widget
|
|
644
|
-
const generatedWidget = widget_template_generator_js_1.widgetTemplateGenerator.generateWidget({
|
|
645
|
-
title: widget.title,
|
|
646
|
-
instruction: widget.description || widget.name || 'auto-generated widget',
|
|
647
|
-
type: 'info', // Default to info widget for auto-generated templates
|
|
648
|
-
theme: 'default',
|
|
649
|
-
responsive: true
|
|
650
|
-
});
|
|
651
|
-
// Apply generated components to the widget
|
|
652
|
-
widget.template = generatedWidget.template;
|
|
653
|
-
if (!widget.css || widget.css.trim() === '') {
|
|
654
|
-
widget.css = generatedWidget.css;
|
|
655
|
-
}
|
|
656
|
-
if (!widget.client_script || widget.client_script.trim() === '') {
|
|
657
|
-
widget.client_script = generatedWidget.clientScript;
|
|
658
|
-
}
|
|
659
|
-
if (!widget.script || widget.script.trim() === '') {
|
|
660
|
-
widget.script = generatedWidget.serverScript;
|
|
661
|
-
}
|
|
662
|
-
if (!widget.option_schema || widget.option_schema.trim() === '' || widget.option_schema === '[]') {
|
|
663
|
-
widget.option_schema = generatedWidget.optionSchema;
|
|
664
|
-
}
|
|
665
|
-
this.logger.info('✅ Generated functional widget template automatically');
|
|
666
|
-
}
|
|
667
|
-
// Ensure we have credentials before making the API call
|
|
668
|
-
await this.ensureAuthenticated();
|
|
669
|
-
// Log the request details for debugging
|
|
670
|
-
const widgetData = {
|
|
671
|
-
name: widget.name,
|
|
672
|
-
id: widget.id || widget.name, // Ensure id is set
|
|
673
|
-
title: widget.title,
|
|
674
|
-
description: widget.description || '',
|
|
675
|
-
template: widget.template,
|
|
676
|
-
css: widget.css || '',
|
|
677
|
-
client_script: widget.client_script || '',
|
|
678
|
-
script: widget.script || '', // Direct mapping to ServiceNow script field
|
|
679
|
-
option_schema: widget.option_schema || '[]',
|
|
680
|
-
demo_data: widget.demo_data || '{}',
|
|
681
|
-
has_preview: widget.has_preview !== false, // Default to true
|
|
682
|
-
category: widget.category || 'custom',
|
|
683
|
-
active: true // Ensure widget is active
|
|
684
|
-
};
|
|
685
|
-
this.logger.info('Widget data to be sent:', widgetData);
|
|
686
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sp_widget`, widgetData, {
|
|
687
|
-
timeout: this.deploymentTimeout, // Use deployment-specific timeout
|
|
688
|
-
headers: {
|
|
689
|
-
'X-Operation-Type': 'deployment' // Mark as deployment operation
|
|
690
|
-
}
|
|
691
|
-
});
|
|
692
|
-
this.logger.info('✅ Widget created successfully!');
|
|
693
|
-
// Handle different response structures from ServiceNow
|
|
694
|
-
const widgetResult = response.data.result || response.data;
|
|
695
|
-
const sysId = widgetResult.sys_id;
|
|
696
|
-
if (!sysId) {
|
|
697
|
-
this.logger.warn('⚠️ Widget created but no sys_id returned. Response:', response.data);
|
|
698
|
-
throw new Error('Widget creation succeeded but no sys_id was returned');
|
|
699
|
-
}
|
|
700
|
-
this.logger.info(`🆔 Widget ID: ${sysId}`);
|
|
701
|
-
// Add post-deployment verification
|
|
702
|
-
await this.verifyDeployment(sysId, 'widget');
|
|
703
|
-
return {
|
|
704
|
-
success: true,
|
|
705
|
-
data: widgetResult
|
|
706
|
-
};
|
|
707
|
-
}
|
|
708
|
-
catch (error) {
|
|
709
|
-
console.error('❌ Failed to create widget:', error);
|
|
710
|
-
// Better error handling for axios errors
|
|
711
|
-
let errorMessage = 'Unknown error';
|
|
712
|
-
let errorDetails = {};
|
|
713
|
-
if (error.response) {
|
|
714
|
-
// The request was made and the server responded with a status code
|
|
715
|
-
// that falls out of the range of 2xx
|
|
716
|
-
errorMessage = `HTTP ${error.response.status}: ${error.response.statusText || 'Request failed'}`;
|
|
717
|
-
errorDetails = {
|
|
718
|
-
status: error.response.status,
|
|
719
|
-
statusText: error.response.statusText,
|
|
720
|
-
data: error.response.data,
|
|
721
|
-
headers: error.response.headers
|
|
722
|
-
};
|
|
723
|
-
// Extract ServiceNow specific error message if available
|
|
724
|
-
if (error.response.data?.error?.message) {
|
|
725
|
-
errorMessage = `ServiceNow Error: ${error.response.data.error.message}`;
|
|
726
|
-
}
|
|
727
|
-
else if (error.response.data?.error) {
|
|
728
|
-
errorMessage = `ServiceNow Error: ${JSON.stringify(error.response.data.error)}`;
|
|
729
|
-
}
|
|
730
|
-
else if (error.response.status === 401) {
|
|
731
|
-
errorMessage = 'Authentication failed: Invalid or expired token. Run: snow-flow auth login';
|
|
732
|
-
}
|
|
733
|
-
else if (error.response.status === 403) {
|
|
734
|
-
errorMessage = 'Permission denied: User lacks sp_admin role or widget creation permissions';
|
|
735
|
-
}
|
|
736
|
-
else if (error.response.status === 404) {
|
|
737
|
-
errorMessage = 'API endpoint not found: ServiceNow instance may not have Service Portal installed';
|
|
738
|
-
}
|
|
739
|
-
}
|
|
740
|
-
else if (error.request) {
|
|
741
|
-
// The request was made but no response was received
|
|
742
|
-
errorMessage = 'No response from ServiceNow - check network connection and instance URL';
|
|
743
|
-
errorDetails = { request: error.config?.url };
|
|
744
|
-
}
|
|
745
|
-
else {
|
|
746
|
-
// Something happened in setting up the request that triggered an Error
|
|
747
|
-
errorMessage = error.message || String(error);
|
|
748
|
-
}
|
|
749
|
-
this.logger.error('Widget creation error details:', errorDetails);
|
|
750
|
-
return {
|
|
751
|
-
success: false,
|
|
752
|
-
error: errorMessage,
|
|
753
|
-
details: errorDetails
|
|
754
|
-
};
|
|
755
|
-
}
|
|
756
|
-
}
|
|
757
|
-
/**
|
|
758
|
-
* Update an existing ServiceNow widget
|
|
759
|
-
*/
|
|
760
|
-
async updateWidget(sysId, widget) {
|
|
761
|
-
try {
|
|
762
|
-
this.logger.info(`🔄 Updating widget ${sysId}...`);
|
|
763
|
-
// Ensure we have credentials before making the API call
|
|
764
|
-
await this.ensureAuthenticated();
|
|
765
|
-
// Widget is already in correct format for Service Portal API
|
|
766
|
-
const mappedWidget = { ...widget };
|
|
767
|
-
const response = await this.client.patch(`${this.getBaseUrl()}/api/now/table/sp_widget/${sysId}`, mappedWidget, {
|
|
768
|
-
timeout: this.deploymentTimeout, // Use deployment-specific timeout
|
|
769
|
-
headers: {
|
|
770
|
-
'X-Operation-Type': 'deployment' // Mark as deployment operation
|
|
771
|
-
}
|
|
772
|
-
});
|
|
773
|
-
this.logger.info('✅ Widget updated successfully!');
|
|
774
|
-
return {
|
|
775
|
-
success: true,
|
|
776
|
-
data: response.data.result
|
|
777
|
-
};
|
|
778
|
-
}
|
|
779
|
-
catch (error) {
|
|
780
|
-
console.error('❌ Failed to update widget:', error);
|
|
781
|
-
return {
|
|
782
|
-
success: false,
|
|
783
|
-
error: error instanceof Error ? error.message : String(error)
|
|
784
|
-
};
|
|
785
|
-
}
|
|
786
|
-
}
|
|
787
|
-
/**
|
|
788
|
-
* Get widget by ID
|
|
789
|
-
*/
|
|
790
|
-
async getWidget(widgetId) {
|
|
791
|
-
try {
|
|
792
|
-
// Ensure we have credentials before making the API call
|
|
793
|
-
await this.ensureAuthenticated();
|
|
794
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sp_widget?sysparm_query=id=${widgetId}`);
|
|
795
|
-
if (response.data.result.length === 0) {
|
|
796
|
-
return {
|
|
797
|
-
success: false,
|
|
798
|
-
error: 'Widget not found'
|
|
799
|
-
};
|
|
800
|
-
}
|
|
801
|
-
return {
|
|
802
|
-
success: true,
|
|
803
|
-
data: response.data.result[0]
|
|
804
|
-
};
|
|
805
|
-
}
|
|
806
|
-
catch (error) {
|
|
807
|
-
return {
|
|
808
|
-
success: false,
|
|
809
|
-
error: error instanceof Error ? error.message : String(error)
|
|
810
|
-
};
|
|
811
|
-
}
|
|
812
|
-
}
|
|
813
|
-
/**
|
|
814
|
-
* Create a new ServiceNow workflow
|
|
815
|
-
*/
|
|
816
|
-
async createWorkflow(workflow) {
|
|
817
|
-
try {
|
|
818
|
-
this.logger.info('🔄 Creating ServiceNow workflow...');
|
|
819
|
-
this.logger.info(`📋 Workflow Name: ${workflow.name}`);
|
|
820
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/wf_workflow`, {
|
|
821
|
-
name: workflow.name,
|
|
822
|
-
description: workflow.description,
|
|
823
|
-
active: workflow.active,
|
|
824
|
-
workflow_version: workflow.workflow_version,
|
|
825
|
-
table: workflow.table || '',
|
|
826
|
-
condition: workflow.condition || ''
|
|
827
|
-
});
|
|
828
|
-
this.logger.info('✅ Workflow created successfully!');
|
|
829
|
-
this.logger.info(`🆔 Workflow ID: ${response.data.result.sys_id}`);
|
|
830
|
-
return {
|
|
831
|
-
success: true,
|
|
832
|
-
data: response.data.result
|
|
833
|
-
};
|
|
834
|
-
}
|
|
835
|
-
catch (error) {
|
|
836
|
-
console.error('❌ Failed to create workflow:', error);
|
|
837
|
-
return {
|
|
838
|
-
success: false,
|
|
839
|
-
error: error instanceof Error ? error.message : String(error)
|
|
840
|
-
};
|
|
841
|
-
}
|
|
842
|
-
}
|
|
843
|
-
/**
|
|
844
|
-
* Create a new ServiceNow application
|
|
845
|
-
*/
|
|
846
|
-
async createApplication(application) {
|
|
847
|
-
try {
|
|
848
|
-
this.logger.info('🏗️ Creating ServiceNow application...');
|
|
849
|
-
this.logger.info(`📋 Application Name: ${application.name}`);
|
|
850
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_app`, {
|
|
851
|
-
name: application.name,
|
|
852
|
-
scope: application.scope,
|
|
853
|
-
version: application.version,
|
|
854
|
-
short_description: application.short_description,
|
|
855
|
-
description: application.description,
|
|
856
|
-
vendor: application.vendor,
|
|
857
|
-
vendor_prefix: application.vendor_prefix,
|
|
858
|
-
template: application.template || '',
|
|
859
|
-
logo: application.logo || '',
|
|
860
|
-
active: application.active
|
|
861
|
-
});
|
|
862
|
-
this.logger.info('✅ Application created successfully!');
|
|
863
|
-
this.logger.info(`🆔 Application ID: ${response.data.result.sys_id}`);
|
|
864
|
-
return {
|
|
865
|
-
success: true,
|
|
866
|
-
data: response.data.result
|
|
867
|
-
};
|
|
868
|
-
}
|
|
869
|
-
catch (error) {
|
|
870
|
-
console.error('❌ Failed to create application:', error);
|
|
871
|
-
return {
|
|
872
|
-
success: false,
|
|
873
|
-
error: error instanceof Error ? error.message : String(error)
|
|
874
|
-
};
|
|
875
|
-
}
|
|
876
|
-
}
|
|
877
|
-
/**
|
|
878
|
-
* Execute a ServiceNow script using Scheduled Jobs with sys_trigger
|
|
879
|
-
* Creates a scheduled job, triggers it via sys_trigger, and cleans up
|
|
880
|
-
*/
|
|
881
|
-
async executeScript(script) {
|
|
882
|
-
try {
|
|
883
|
-
this.logger.info('⚡ Executing ServiceNow script via Scheduled Job + sys_trigger...');
|
|
884
|
-
const executionId = `exec_${Date.now()}_${Math.random().toString(36).substring(7)}`;
|
|
885
|
-
const outputMarker = `SNOW_FLOW_EXEC_${executionId}`;
|
|
886
|
-
// Wrap script with output capture
|
|
887
|
-
const wrappedScript = `
|
|
888
|
-
// Snow-Flow Script Execution - ${executionId}
|
|
889
|
-
var __execResult = null;
|
|
890
|
-
var __execError = null;
|
|
891
|
-
var __execOutput = [];
|
|
892
|
-
|
|
893
|
-
var __origInfo = gs.info;
|
|
894
|
-
var __origError = gs.error;
|
|
895
|
-
|
|
896
|
-
gs.info = function(msg) { __execOutput.push({level: 'info', msg: String(msg)}); __origInfo(msg); };
|
|
897
|
-
gs.error = function(msg) { __execOutput.push({level: 'error', msg: String(msg)}); __origError(msg); };
|
|
898
|
-
|
|
899
|
-
try {
|
|
900
|
-
__execResult = (function() {
|
|
901
|
-
${script}
|
|
902
|
-
})();
|
|
903
|
-
} catch(e) {
|
|
904
|
-
__execError = e.toString();
|
|
905
|
-
}
|
|
906
|
-
|
|
907
|
-
gs.info = __origInfo;
|
|
908
|
-
gs.error = __origError;
|
|
909
|
-
|
|
910
|
-
gs.setProperty('${outputMarker}', JSON.stringify({
|
|
911
|
-
executionId: '${executionId}',
|
|
912
|
-
success: __execError === null,
|
|
913
|
-
result: __execResult,
|
|
914
|
-
error: __execError,
|
|
915
|
-
output: __execOutput
|
|
916
|
-
}));
|
|
917
|
-
`;
|
|
918
|
-
// Create Scheduled Script Job
|
|
919
|
-
const jobName = `Snow-Flow Exec - ${executionId}`;
|
|
920
|
-
const createResponse = await this.client.post(`${this.getBaseUrl()}/api/now/table/sysauto_script`, {
|
|
921
|
-
name: jobName,
|
|
922
|
-
script: wrappedScript,
|
|
923
|
-
active: true,
|
|
924
|
-
run_type: 'on_demand',
|
|
925
|
-
conditional: false
|
|
926
|
-
});
|
|
927
|
-
const jobSysId = createResponse.data?.result?.sys_id;
|
|
928
|
-
if (!jobSysId) {
|
|
929
|
-
throw new Error('Failed to create scheduled script job');
|
|
930
|
-
}
|
|
931
|
-
// Create sys_trigger to execute immediately
|
|
932
|
-
const now = new Date();
|
|
933
|
-
const triggerTime = new Date(now.getTime() + 2000); // 2 seconds from now
|
|
934
|
-
const triggerTimeStr = triggerTime.toISOString().replace('T', ' ').substring(0, 19);
|
|
935
|
-
try {
|
|
936
|
-
await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_trigger`, {
|
|
937
|
-
name: jobName,
|
|
938
|
-
next_action: triggerTimeStr,
|
|
939
|
-
trigger_type: 0, // Run Once
|
|
940
|
-
state: 0, // Ready
|
|
941
|
-
document: 'sysauto_script',
|
|
942
|
-
document_key: jobSysId,
|
|
943
|
-
claimed_by: '',
|
|
944
|
-
system_id: 'snow-flow'
|
|
945
|
-
});
|
|
946
|
-
}
|
|
947
|
-
catch (triggerErr) {
|
|
948
|
-
// Trigger creation may fail due to permissions
|
|
949
|
-
}
|
|
950
|
-
// Poll for result (max 30 seconds)
|
|
951
|
-
let result = null;
|
|
952
|
-
for (let i = 0; i < 15; i++) {
|
|
953
|
-
await new Promise(resolve => setTimeout(resolve, 2000));
|
|
954
|
-
try {
|
|
955
|
-
const propResponse = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_properties`, { params: { sysparm_query: `name=${outputMarker}`, sysparm_fields: 'value,sys_id', sysparm_limit: 1 } });
|
|
956
|
-
if (propResponse.data?.result?.[0]?.value) {
|
|
957
|
-
result = JSON.parse(propResponse.data.result[0].value);
|
|
958
|
-
// Cleanup property
|
|
959
|
-
const propSysId = propResponse.data.result[0].sys_id;
|
|
960
|
-
if (propSysId) {
|
|
961
|
-
await this.client.delete(`${this.getBaseUrl()}/api/now/table/sys_properties/${propSysId}`).catch(() => { });
|
|
962
|
-
}
|
|
963
|
-
break;
|
|
964
|
-
}
|
|
965
|
-
}
|
|
966
|
-
catch (pollErr) {
|
|
967
|
-
// Continue polling
|
|
968
|
-
}
|
|
969
|
-
}
|
|
970
|
-
// Cleanup scheduled job
|
|
971
|
-
try {
|
|
972
|
-
await this.client.delete(`${this.getBaseUrl()}/api/now/table/sysauto_script/${jobSysId}`);
|
|
973
|
-
}
|
|
974
|
-
catch (cleanupErr) {
|
|
975
|
-
// Ignore
|
|
976
|
-
}
|
|
977
|
-
if (result) {
|
|
978
|
-
this.logger.info('✅ Script executed successfully!');
|
|
979
|
-
return {
|
|
980
|
-
success: result.success,
|
|
981
|
-
data: result
|
|
982
|
-
};
|
|
983
|
-
}
|
|
984
|
-
else {
|
|
985
|
-
this.logger.warn('⚠️ Script saved but execution not confirmed');
|
|
986
|
-
return {
|
|
987
|
-
success: true,
|
|
988
|
-
data: {
|
|
989
|
-
message: 'Scheduled job created but execution not confirmed. The sys_trigger may not have been created (permissions) or the scheduler has not yet picked it up.',
|
|
990
|
-
scheduled_job_sys_id: jobSysId
|
|
991
|
-
}
|
|
992
|
-
};
|
|
993
|
-
}
|
|
994
|
-
}
|
|
995
|
-
catch (error) {
|
|
996
|
-
console.error('❌ Failed to execute script:', error);
|
|
997
|
-
return {
|
|
998
|
-
success: false,
|
|
999
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1000
|
-
};
|
|
1001
|
-
}
|
|
1002
|
-
}
|
|
1003
|
-
/**
|
|
1004
|
-
* Get all widgets
|
|
1005
|
-
*/
|
|
1006
|
-
async getWidgets() {
|
|
1007
|
-
try {
|
|
1008
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sp_widget?sysparm_limit=100`);
|
|
1009
|
-
return {
|
|
1010
|
-
success: true,
|
|
1011
|
-
result: response.data.result
|
|
1012
|
-
};
|
|
1013
|
-
}
|
|
1014
|
-
catch (error) {
|
|
1015
|
-
return {
|
|
1016
|
-
success: false,
|
|
1017
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1018
|
-
};
|
|
1019
|
-
}
|
|
1020
|
-
}
|
|
1021
|
-
/**
|
|
1022
|
-
* Get all workflows
|
|
1023
|
-
*/
|
|
1024
|
-
async getWorkflows() {
|
|
1025
|
-
try {
|
|
1026
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/wf_workflow?sysparm_limit=100`);
|
|
1027
|
-
return {
|
|
1028
|
-
success: true,
|
|
1029
|
-
result: response.data.result
|
|
1030
|
-
};
|
|
1031
|
-
}
|
|
1032
|
-
catch (error) {
|
|
1033
|
-
return {
|
|
1034
|
-
success: false,
|
|
1035
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1036
|
-
};
|
|
1037
|
-
}
|
|
1038
|
-
}
|
|
1039
|
-
/**
|
|
1040
|
-
* Get all applications
|
|
1041
|
-
*/
|
|
1042
|
-
async getApplications() {
|
|
1043
|
-
try {
|
|
1044
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_app?sysparm_limit=100`);
|
|
1045
|
-
return {
|
|
1046
|
-
success: true,
|
|
1047
|
-
result: response.data.result
|
|
1048
|
-
};
|
|
1049
|
-
}
|
|
1050
|
-
catch (error) {
|
|
1051
|
-
return {
|
|
1052
|
-
success: false,
|
|
1053
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1054
|
-
};
|
|
1055
|
-
}
|
|
1056
|
-
}
|
|
1057
|
-
/**
|
|
1058
|
-
* Get default flow structure from ServiceNow
|
|
1059
|
-
*/
|
|
1060
|
-
async getFlowDefaults() {
|
|
1061
|
-
try {
|
|
1062
|
-
// Try to get an existing flow to see the structure
|
|
1063
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_hub_flow?sysparm_limit=1&sysparm_fields=sys_class_name,type,status,access,source_ui,sys_domain,sys_domain_path`);
|
|
1064
|
-
if (response.data.result && response.data.result.length > 0) {
|
|
1065
|
-
const sample = response.data.result[0];
|
|
1066
|
-
return {
|
|
1067
|
-
sys_class_name: sample.sys_class_name || 'sys_hub_flow',
|
|
1068
|
-
type: sample.type || 'flow',
|
|
1069
|
-
status: sample.status || 'published',
|
|
1070
|
-
access: sample.access || 'public',
|
|
1071
|
-
source_ui: sample.source_ui || 'flow_designer',
|
|
1072
|
-
sys_domain: sample.sys_domain || 'global',
|
|
1073
|
-
sys_domain_path: sample.sys_domain_path || '/'
|
|
1074
|
-
};
|
|
1075
|
-
}
|
|
1076
|
-
}
|
|
1077
|
-
catch (error) {
|
|
1078
|
-
this.logger.warn('Could not fetch flow defaults, using minimal defaults');
|
|
1079
|
-
}
|
|
1080
|
-
// Return minimal defaults if we can't get from ServiceNow
|
|
1081
|
-
return {
|
|
1082
|
-
sys_class_name: 'sys_hub_flow',
|
|
1083
|
-
type: 'flow',
|
|
1084
|
-
status: 'published',
|
|
1085
|
-
access: 'public'
|
|
1086
|
-
};
|
|
1087
|
-
}
|
|
1088
|
-
/**
|
|
1089
|
-
* Get instance info
|
|
1090
|
-
*/
|
|
1091
|
-
async getInstanceInfo() {
|
|
1092
|
-
try {
|
|
1093
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_properties?sysparm_query=name=instance.name`);
|
|
1094
|
-
return {
|
|
1095
|
-
success: true,
|
|
1096
|
-
data: response.data.result[0]
|
|
1097
|
-
};
|
|
1098
|
-
}
|
|
1099
|
-
catch (error) {
|
|
1100
|
-
return {
|
|
1101
|
-
success: false,
|
|
1102
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1103
|
-
};
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
/**
|
|
1107
|
-
* Get a specific record by sys_id
|
|
1108
|
-
*/
|
|
1109
|
-
async getRecord(table, sys_id) {
|
|
1110
|
-
try {
|
|
1111
|
-
// Ensure we have credentials before making the API call
|
|
1112
|
-
await this.ensureAuthenticated();
|
|
1113
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/${table}/${sys_id}`);
|
|
1114
|
-
return response.data.result;
|
|
1115
|
-
}
|
|
1116
|
-
catch (error) {
|
|
1117
|
-
console.error(`Failed to get record from ${table}:`, error);
|
|
1118
|
-
throw error;
|
|
1119
|
-
}
|
|
1120
|
-
}
|
|
1121
|
-
/**
|
|
1122
|
-
* Get multiple records from a table
|
|
1123
|
-
*/
|
|
1124
|
-
async getRecords(table, params) {
|
|
1125
|
-
try {
|
|
1126
|
-
// Ensure we have credentials before making the API call
|
|
1127
|
-
await this.ensureAuthenticated();
|
|
1128
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/${table}`, { params });
|
|
1129
|
-
return {
|
|
1130
|
-
success: true,
|
|
1131
|
-
data: response.data.result
|
|
1132
|
-
};
|
|
1133
|
-
}
|
|
1134
|
-
catch (error) {
|
|
1135
|
-
console.error(`Failed to get records from ${table}:`, error);
|
|
1136
|
-
return {
|
|
1137
|
-
success: false,
|
|
1138
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1139
|
-
};
|
|
1140
|
-
}
|
|
1141
|
-
}
|
|
1142
|
-
/**
|
|
1143
|
-
* Search records with specific fields
|
|
1144
|
-
*/
|
|
1145
|
-
async searchRecordsWithFields(table, query, fields, limit = 10) {
|
|
1146
|
-
try {
|
|
1147
|
-
await this.ensureAuthenticated();
|
|
1148
|
-
const url = `/api/now/table/${table}`;
|
|
1149
|
-
const params = {
|
|
1150
|
-
sysparm_query: query,
|
|
1151
|
-
sysparm_limit: limit.toString(),
|
|
1152
|
-
sysparm_fields: fields.join(',')
|
|
1153
|
-
};
|
|
1154
|
-
const response = await this.client.get(url, { params });
|
|
1155
|
-
return {
|
|
1156
|
-
success: true,
|
|
1157
|
-
data: response.data
|
|
1158
|
-
};
|
|
1159
|
-
}
|
|
1160
|
-
catch (error) {
|
|
1161
|
-
console.error('API Error:', error);
|
|
1162
|
-
return {
|
|
1163
|
-
success: false,
|
|
1164
|
-
error: error instanceof Error ? error.message : String(error),
|
|
1165
|
-
data: null
|
|
1166
|
-
};
|
|
1167
|
-
}
|
|
1168
|
-
}
|
|
1169
|
-
/**
|
|
1170
|
-
* Search records in a table using encoded query
|
|
1171
|
-
*/
|
|
1172
|
-
async searchRecords(table, query, limit = 10) {
|
|
1173
|
-
try {
|
|
1174
|
-
await this.ensureAuthenticated();
|
|
1175
|
-
// Detect operation type for intelligent timeout
|
|
1176
|
-
const operationType = (0, timeout_manager_js_1.detectOperationType)({
|
|
1177
|
-
action: 'query',
|
|
1178
|
-
table,
|
|
1179
|
-
limit
|
|
1180
|
-
});
|
|
1181
|
-
// Use retry wrapper with intelligent timeout
|
|
1182
|
-
const result = await (0, timeout_manager_js_1.withRetry)(async () => {
|
|
1183
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/${table}`, {
|
|
1184
|
-
params: {
|
|
1185
|
-
sysparm_query: query,
|
|
1186
|
-
sysparm_limit: limit
|
|
1187
|
-
},
|
|
1188
|
-
// Override timeout for this specific request
|
|
1189
|
-
timeout: (0, timeout_manager_js_1.getTimeoutConfig)(operationType).baseTimeout
|
|
1190
|
-
});
|
|
1191
|
-
return response;
|
|
1192
|
-
}, operationType, `Search ${table} (${limit} records)`);
|
|
1193
|
-
return {
|
|
1194
|
-
success: true,
|
|
1195
|
-
data: {
|
|
1196
|
-
result: result.data.result || []
|
|
1197
|
-
}
|
|
1198
|
-
};
|
|
1199
|
-
}
|
|
1200
|
-
catch (error) {
|
|
1201
|
-
this.logger.error(`Failed to search records in ${table}:`, error);
|
|
1202
|
-
return {
|
|
1203
|
-
success: false,
|
|
1204
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1205
|
-
};
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
/**
|
|
1209
|
-
* Search records with offset for pagination/streaming
|
|
1210
|
-
*/
|
|
1211
|
-
async searchRecordsWithOffset(table, query, limit = 10, offset = 0) {
|
|
1212
|
-
try {
|
|
1213
|
-
await this.ensureAuthenticated();
|
|
1214
|
-
// Detect operation type for intelligent timeout
|
|
1215
|
-
const operationType = (0, timeout_manager_js_1.detectOperationType)({
|
|
1216
|
-
action: 'query',
|
|
1217
|
-
table,
|
|
1218
|
-
limit
|
|
1219
|
-
});
|
|
1220
|
-
// Use retry wrapper with intelligent timeout
|
|
1221
|
-
const result = await (0, timeout_manager_js_1.withRetry)(async () => {
|
|
1222
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/${table}`, {
|
|
1223
|
-
params: {
|
|
1224
|
-
sysparm_query: query,
|
|
1225
|
-
sysparm_limit: limit,
|
|
1226
|
-
sysparm_offset: offset
|
|
1227
|
-
},
|
|
1228
|
-
// Override timeout for this specific request
|
|
1229
|
-
timeout: (0, timeout_manager_js_1.getTimeoutConfig)(operationType).baseTimeout
|
|
1230
|
-
});
|
|
1231
|
-
return response;
|
|
1232
|
-
}, operationType, `Search ${table} with offset ${offset}`);
|
|
1233
|
-
return {
|
|
1234
|
-
success: true,
|
|
1235
|
-
data: {
|
|
1236
|
-
result: result.data.result || []
|
|
1237
|
-
}
|
|
1238
|
-
};
|
|
1239
|
-
}
|
|
1240
|
-
catch (error) {
|
|
1241
|
-
this.logger.error(`Failed to search records in ${table} with offset ${offset}:`, error);
|
|
1242
|
-
return {
|
|
1243
|
-
success: false,
|
|
1244
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1245
|
-
};
|
|
1246
|
-
}
|
|
1247
|
-
}
|
|
1248
|
-
/**
|
|
1249
|
-
* Create a record in any ServiceNow table
|
|
1250
|
-
*/
|
|
1251
|
-
async createRecord(table, data) {
|
|
1252
|
-
try {
|
|
1253
|
-
await this.ensureAuthenticated();
|
|
1254
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/${table}`, data);
|
|
1255
|
-
return {
|
|
1256
|
-
success: true,
|
|
1257
|
-
data: response.data.result
|
|
1258
|
-
};
|
|
1259
|
-
}
|
|
1260
|
-
catch (error) {
|
|
1261
|
-
console.error(`Failed to create record in ${table}:`, error);
|
|
1262
|
-
return {
|
|
1263
|
-
success: false,
|
|
1264
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1265
|
-
};
|
|
1266
|
-
}
|
|
1267
|
-
}
|
|
1268
|
-
/**
|
|
1269
|
-
* Update a record in any ServiceNow table
|
|
1270
|
-
*/
|
|
1271
|
-
async updateRecord(table, sysId, data) {
|
|
1272
|
-
try {
|
|
1273
|
-
await this.ensureAuthenticated();
|
|
1274
|
-
const response = await this.client.patch(`${this.getBaseUrl()}/api/now/table/${table}/${sysId}`, data);
|
|
1275
|
-
return {
|
|
1276
|
-
success: true,
|
|
1277
|
-
data: response.data.result
|
|
1278
|
-
};
|
|
1279
|
-
}
|
|
1280
|
-
catch (error) {
|
|
1281
|
-
console.error(`Failed to update record in ${table}:`, error);
|
|
1282
|
-
return {
|
|
1283
|
-
success: false,
|
|
1284
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1285
|
-
};
|
|
1286
|
-
}
|
|
1287
|
-
}
|
|
1288
|
-
/**
|
|
1289
|
-
* Delete a record from any ServiceNow table
|
|
1290
|
-
*/
|
|
1291
|
-
async deleteRecord(table, sysId) {
|
|
1292
|
-
try {
|
|
1293
|
-
await this.ensureAuthenticated();
|
|
1294
|
-
const response = await this.client.delete(`${this.getBaseUrl()}/api/now/table/${table}/${sysId}`);
|
|
1295
|
-
return {
|
|
1296
|
-
success: true,
|
|
1297
|
-
data: response.data || {}
|
|
1298
|
-
};
|
|
1299
|
-
}
|
|
1300
|
-
catch (error) {
|
|
1301
|
-
console.error(`Failed to delete record from ${table}:`, error);
|
|
1302
|
-
return {
|
|
1303
|
-
success: false,
|
|
1304
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1305
|
-
};
|
|
1306
|
-
}
|
|
1307
|
-
}
|
|
1308
|
-
/**
|
|
1309
|
-
* Search for available flow actions in ServiceNow
|
|
1310
|
-
*/
|
|
1311
|
-
async searchFlowActions(searchTerm) {
|
|
1312
|
-
try {
|
|
1313
|
-
this.logger.info(`🔍 Searching for flow actions: ${searchTerm}`);
|
|
1314
|
-
// Search in sys_hub_action_type_base for available action types
|
|
1315
|
-
const results = await this.searchRecords('sys_hub_action_type_base', `nameLIKE${searchTerm}^ORlabelLIKE${searchTerm}^ORdescriptionLIKE${searchTerm}`, 20);
|
|
1316
|
-
// Also search in sys_hub_action_instance for existing actions
|
|
1317
|
-
const instanceResults = await this.searchRecords('sys_hub_action_instance', `action_nameLIKE${searchTerm}^ORdescriptionLIKE${searchTerm}`, 10);
|
|
1318
|
-
const actionTypes = results.success ? results.data.result : [];
|
|
1319
|
-
const actionInstances = instanceResults.success ? instanceResults.data.result : [];
|
|
1320
|
-
this.logger.info(`✅ Found ${actionTypes.length} action types and ${actionInstances.length} action instances`);
|
|
1321
|
-
return {
|
|
1322
|
-
actionTypes,
|
|
1323
|
-
actionInstances
|
|
1324
|
-
};
|
|
1325
|
-
}
|
|
1326
|
-
catch (error) {
|
|
1327
|
-
console.error('Failed to search flow actions:', error);
|
|
1328
|
-
return { actionTypes: [], actionInstances: [] };
|
|
1329
|
-
}
|
|
1330
|
-
}
|
|
1331
|
-
/**
|
|
1332
|
-
* Get flow action details
|
|
1333
|
-
*/
|
|
1334
|
-
async getFlowActionDetails(actionTypeId) {
|
|
1335
|
-
try {
|
|
1336
|
-
const actionType = await this.getRecord('sys_hub_action_type_base', actionTypeId);
|
|
1337
|
-
// Get input/output variables for this action type
|
|
1338
|
-
const inputs = await this.searchRecords('sys_hub_action_input', `action_type=${actionTypeId}`, 50);
|
|
1339
|
-
const outputs = await this.searchRecords('sys_hub_action_output', `action_type=${actionTypeId}`, 50);
|
|
1340
|
-
return {
|
|
1341
|
-
actionType,
|
|
1342
|
-
inputs: inputs.success ? inputs.data.result : [],
|
|
1343
|
-
outputs: outputs.success ? outputs.data.result : []
|
|
1344
|
-
};
|
|
1345
|
-
}
|
|
1346
|
-
catch (error) {
|
|
1347
|
-
console.error('Failed to get flow action details:', error);
|
|
1348
|
-
return null;
|
|
1349
|
-
}
|
|
1350
|
-
}
|
|
1351
|
-
/**
|
|
1352
|
-
* Validate flow definition before deployment
|
|
1353
|
-
*/
|
|
1354
|
-
validateFlowBeforeDeployment(flow) {
|
|
1355
|
-
const errors = [];
|
|
1356
|
-
if (!flow.name || flow.name.trim() === '') {
|
|
1357
|
-
errors.push('Flow name is required');
|
|
1358
|
-
}
|
|
1359
|
-
if (!flow.description || flow.description.trim() === '') {
|
|
1360
|
-
errors.push('Flow description is required');
|
|
1361
|
-
}
|
|
1362
|
-
// Validate activities/actions
|
|
1363
|
-
const activities = flow.activities || flow.actions || flow.steps || [];
|
|
1364
|
-
if (activities.length === 0) {
|
|
1365
|
-
errors.push(`
|
|
1366
|
-
No activities found in flow definition.
|
|
1367
|
-
|
|
1368
|
-
💡 Common fixes:
|
|
1369
|
-
• Use natural language: snow_create_flow({ instruction: "..." })
|
|
1370
|
-
• Check flow_definition format
|
|
1371
|
-
• Ensure activities array is properly populated
|
|
1372
|
-
`);
|
|
1373
|
-
}
|
|
1374
|
-
// Validate activity structure
|
|
1375
|
-
activities.forEach((activity, index) => {
|
|
1376
|
-
if (!activity.name) {
|
|
1377
|
-
errors.push(`Activity ${index + 1} missing name`);
|
|
1378
|
-
}
|
|
1379
|
-
if (!activity.type && !activity.operation) {
|
|
1380
|
-
errors.push(`Activity ${index + 1} missing type or operation`);
|
|
1381
|
-
}
|
|
1382
|
-
});
|
|
1383
|
-
if (errors.length > 0) {
|
|
1384
|
-
throw new Error(`
|
|
1385
|
-
🚨 Flow Validation Failed:
|
|
1386
|
-
|
|
1387
|
-
${errors.map(error => `• ${error}`).join('\n')}
|
|
1388
|
-
|
|
1389
|
-
🔧 Recommended approach:
|
|
1390
|
-
Use snow_create_flow with natural language instead of manual JSON.
|
|
1391
|
-
`);
|
|
1392
|
-
}
|
|
1393
|
-
}
|
|
1394
|
-
/**
|
|
1395
|
-
* Verify deployment was successful and artifact has content
|
|
1396
|
-
*/
|
|
1397
|
-
async verifyDeployment(sysId, expectedType) {
|
|
1398
|
-
try {
|
|
1399
|
-
let endpoint = '';
|
|
1400
|
-
// Determine the correct endpoint based on artifact type
|
|
1401
|
-
switch (expectedType) {
|
|
1402
|
-
case 'flow':
|
|
1403
|
-
case 'subflow':
|
|
1404
|
-
endpoint = `/api/now/table/sys_hub_flow/${sysId}`;
|
|
1405
|
-
break;
|
|
1406
|
-
case 'widget':
|
|
1407
|
-
endpoint = `/api/now/table/sp_widget/${sysId}`;
|
|
1408
|
-
break;
|
|
1409
|
-
case 'action':
|
|
1410
|
-
endpoint = `/api/now/table/sys_hub_action_type_definition/${sysId}`;
|
|
1411
|
-
break;
|
|
1412
|
-
default:
|
|
1413
|
-
endpoint = `/api/now/table/sys_hub_flow/${sysId}`;
|
|
1414
|
-
}
|
|
1415
|
-
// Get the deployed artifact
|
|
1416
|
-
const response = await this.client.get(`${this.getBaseUrl()}${endpoint}`);
|
|
1417
|
-
if (!response.data?.result) {
|
|
1418
|
-
throw new Error(`Deployed ${expectedType} not found: ${sysId}`);
|
|
1419
|
-
}
|
|
1420
|
-
const artifact = response.data.result;
|
|
1421
|
-
// Type-specific content validation
|
|
1422
|
-
if (expectedType === 'flow' || expectedType === 'subflow') {
|
|
1423
|
-
const flowDef = artifact.flow_definition ? JSON.parse(artifact.flow_definition || '{}') : {};
|
|
1424
|
-
const activities = flowDef.activities || flowDef.actions || flowDef.steps || [];
|
|
1425
|
-
if (activities.length === 0) {
|
|
1426
|
-
console.warn(`
|
|
1427
|
-
⚠️ ${expectedType} deployed but appears empty: ${artifact.name}
|
|
1428
|
-
|
|
1429
|
-
🔍 This usually means:
|
|
1430
|
-
• Flow definition format was incorrect
|
|
1431
|
-
• Activities were not properly mapped
|
|
1432
|
-
• ServiceNow rejected the flow structure
|
|
1433
|
-
|
|
1434
|
-
💡 Try recreating with:
|
|
1435
|
-
snow_create_flow({
|
|
1436
|
-
instruction: "recreate ${artifact.name} with proper activities",
|
|
1437
|
-
deploy_immediately: true
|
|
1438
|
-
})
|
|
1439
|
-
`);
|
|
1440
|
-
}
|
|
1441
|
-
else {
|
|
1442
|
-
this.logger.info(`✅ ${expectedType} has ${activities.length} activities`);
|
|
1443
|
-
}
|
|
1444
|
-
}
|
|
1445
|
-
else if (expectedType === 'widget') {
|
|
1446
|
-
const hasContent = artifact.template || artifact.client_script || artifact.script;
|
|
1447
|
-
if (!hasContent) {
|
|
1448
|
-
console.warn(`⚠️ Widget deployed but appears to have no content: ${artifact.name}`);
|
|
1449
|
-
}
|
|
1450
|
-
}
|
|
1451
|
-
this.logger.info(`✅ Deployment verified: ${artifact.name} (${sysId})`);
|
|
1452
|
-
}
|
|
1453
|
-
catch (error) {
|
|
1454
|
-
console.error(`❌ Deployment verification failed for ${sysId}:`, error);
|
|
1455
|
-
}
|
|
1456
|
-
}
|
|
1457
|
-
/**
|
|
1458
|
-
* Check if a flow has actual content (not empty)
|
|
1459
|
-
*/
|
|
1460
|
-
async checkFlowContent(sysId) {
|
|
1461
|
-
try {
|
|
1462
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_hub_flow/${sysId}`);
|
|
1463
|
-
const flow = response.data?.result;
|
|
1464
|
-
if (!flow) {
|
|
1465
|
-
return { hasContent: false, details: 'Flow not found' };
|
|
1466
|
-
}
|
|
1467
|
-
const flowDef = JSON.parse(flow.flow_definition || '{}');
|
|
1468
|
-
const activities = flowDef.activities || flowDef.actions || flowDef.steps || [];
|
|
1469
|
-
return {
|
|
1470
|
-
hasContent: activities.length > 0,
|
|
1471
|
-
details: {
|
|
1472
|
-
name: flow.name,
|
|
1473
|
-
activities_count: activities.length,
|
|
1474
|
-
has_trigger: !!flowDef.trigger,
|
|
1475
|
-
status: flow.status || 'unknown',
|
|
1476
|
-
active: flow.active
|
|
1477
|
-
}
|
|
1478
|
-
};
|
|
1479
|
-
}
|
|
1480
|
-
catch (error) {
|
|
1481
|
-
return { hasContent: false, details: `Error: ${error.message}` };
|
|
1482
|
-
}
|
|
1483
|
-
}
|
|
1484
|
-
/**
|
|
1485
|
-
* Create a ServiceNow flow using the enhanced flow structure builder
|
|
1486
|
-
* Generates proper sys_ids, logic chains, and all required records
|
|
1487
|
-
*/
|
|
1488
|
-
async createFlowWithStructureBuilder(flowDefinition) {
|
|
1489
|
-
try {
|
|
1490
|
-
this.logger.info('🏗️ Creating flow with structure builder...');
|
|
1491
|
-
this.logger.info(`📋 Flow: ${flowDefinition.name}`);
|
|
1492
|
-
await this.ensureAuthenticated();
|
|
1493
|
-
// Generate all flow components with proper structure
|
|
1494
|
-
// const components = generateFlowComponents(flowDefinition); // Deprecated in v1.4.0
|
|
1495
|
-
const components = {
|
|
1496
|
-
logicChain: [],
|
|
1497
|
-
variables: [],
|
|
1498
|
-
flowRecord: { sys_id: 'deprecated' },
|
|
1499
|
-
triggerInstance: { sys_id: 'deprecated' },
|
|
1500
|
-
actionInstances: []
|
|
1501
|
-
};
|
|
1502
|
-
// Validate components before deployment
|
|
1503
|
-
// const validation = validateFlowComponents(components); // Deprecated in v1.4.0
|
|
1504
|
-
const validation = { isValid: true, errors: [], warnings: [] };
|
|
1505
|
-
if (!validation.isValid) {
|
|
1506
|
-
throw new Error(`Flow validation failed: ${validation.errors.join(', ')}`);
|
|
1507
|
-
}
|
|
1508
|
-
if (validation.warnings.length > 0) {
|
|
1509
|
-
console.warn('⚠️ Flow validation warnings:');
|
|
1510
|
-
validation.warnings.forEach(warning => console.warn(` • ${warning}`));
|
|
1511
|
-
}
|
|
1512
|
-
// Deploy all components in correct order
|
|
1513
|
-
this.logger.info('🚀 Deploying flow components...');
|
|
1514
|
-
// 1. Create main flow record
|
|
1515
|
-
const flowResponse = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_flow`, components.flowRecord);
|
|
1516
|
-
if (!flowResponse.data?.result) {
|
|
1517
|
-
throw new Error('Failed to create flow record');
|
|
1518
|
-
}
|
|
1519
|
-
const flowSysId = flowResponse.data.result.sys_id;
|
|
1520
|
-
this.logger.info(`✅ Flow record created: ${flowSysId}`);
|
|
1521
|
-
// 2. Create trigger instance
|
|
1522
|
-
await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_trigger_instance`, components.triggerInstance);
|
|
1523
|
-
this.logger.info(`✅ Trigger created: ${components.triggerInstance.sys_id}`);
|
|
1524
|
-
// 3. Create action instances
|
|
1525
|
-
for (const action of components.actionInstances) {
|
|
1526
|
-
await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_action_instance`, action);
|
|
1527
|
-
}
|
|
1528
|
-
this.logger.info(`✅ Created ${components.actionInstances.length} action instances`);
|
|
1529
|
-
// 4. Create logic chain (connections)
|
|
1530
|
-
for (const logic of components.logicChain) {
|
|
1531
|
-
await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_flow_logic`, logic);
|
|
1532
|
-
}
|
|
1533
|
-
this.logger.info(`✅ Created logic chain with ${components.logicChain.length} connections`);
|
|
1534
|
-
// 5. Create variables
|
|
1535
|
-
for (const variable of components.variables) {
|
|
1536
|
-
await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_flow_variable`, variable);
|
|
1537
|
-
}
|
|
1538
|
-
this.logger.info(`✅ Created ${components.variables.length} flow variables`);
|
|
1539
|
-
// Verify deployment
|
|
1540
|
-
await this.verifyDeployment(flowSysId, 'flow');
|
|
1541
|
-
const credentials = await this.oauth.loadCredentials();
|
|
1542
|
-
const instance = credentials?.instance?.replace(/\/$/, '');
|
|
1543
|
-
return {
|
|
1544
|
-
success: true,
|
|
1545
|
-
data: {
|
|
1546
|
-
...flowResponse.data.result,
|
|
1547
|
-
sys_id: flowSysId,
|
|
1548
|
-
url: `https://${instance}/nav_to.do?uri=sys_hub_flow.do?sys_id=${flowSysId}`,
|
|
1549
|
-
flow_designer_url: `https://${instance}/flow-designer.do?sysparm_nostack=true&sysparm_sys_id=${flowSysId}`,
|
|
1550
|
-
components: {
|
|
1551
|
-
flow_record: components.flowRecord.sys_id,
|
|
1552
|
-
trigger_instance: components.triggerInstance.sys_id,
|
|
1553
|
-
action_instances: components.actionInstances.length,
|
|
1554
|
-
logic_chain_entries: components.logicChain.length,
|
|
1555
|
-
variables: components.variables.length
|
|
1556
|
-
},
|
|
1557
|
-
flow_xml: '<!-- Flow XML generation deprecated in v1.4.0 -->'
|
|
1558
|
-
}
|
|
1559
|
-
};
|
|
1560
|
-
}
|
|
1561
|
-
catch (error) {
|
|
1562
|
-
console.error('❌ Failed to create flow with structure builder:', error);
|
|
1563
|
-
return {
|
|
1564
|
-
success: false,
|
|
1565
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1566
|
-
};
|
|
1567
|
-
}
|
|
1568
|
-
}
|
|
1569
|
-
/**
|
|
1570
|
-
* Create a simple Flow Designer flow (original method)
|
|
1571
|
-
* Focusing on basic flow creation with simple actions
|
|
1572
|
-
*/
|
|
1573
|
-
async createFlow(flow) {
|
|
1574
|
-
try {
|
|
1575
|
-
this.logger.info('🔄 Creating Flow Designer flow...');
|
|
1576
|
-
this.logger.info(`📋 Flow: ${flow.name}`);
|
|
1577
|
-
// 🔧 CRITICAL DEBUG: Check if makeRequest exists on this instance
|
|
1578
|
-
this.logger.debug('🔧 CRITICAL DEBUG - Client methods check:', {
|
|
1579
|
-
hasCreateFlow: typeof this.createFlow === 'function',
|
|
1580
|
-
hasMakeRequest: typeof this.makeRequest === 'function',
|
|
1581
|
-
clientPrototype: Object.getOwnPropertyNames(Object.getPrototypeOf(this)),
|
|
1582
|
-
clientConstructor: this.constructor.name
|
|
1583
|
-
});
|
|
1584
|
-
// Add pre-deployment validation
|
|
1585
|
-
this.validateFlowBeforeDeployment(flow);
|
|
1586
|
-
// First, ensure we have an Update Set
|
|
1587
|
-
const updateSetResult = await this.ensureUpdateSet();
|
|
1588
|
-
// Get dynamic defaults from ServiceNow
|
|
1589
|
-
const flowDefaults = await this.getFlowDefaults();
|
|
1590
|
-
// 🔧 CRITICAL FIX: Build complete flow snapshot BEFORE creating flow record
|
|
1591
|
-
// This prevents the "Your flow cannot be found" error caused by incremental saves
|
|
1592
|
-
// Prepare activities from flow definition
|
|
1593
|
-
let activitiesToProcess = flow.activities || flow.actions || [];
|
|
1594
|
-
if (activitiesToProcess.length === 0 && flow.flow_definition) {
|
|
1595
|
-
try {
|
|
1596
|
-
const flowDef = typeof flow.flow_definition === 'string' ?
|
|
1597
|
-
JSON.parse(flow.flow_definition) : flow.flow_definition;
|
|
1598
|
-
activitiesToProcess = flowDef.activities || flowDef.steps || [];
|
|
1599
|
-
}
|
|
1600
|
-
catch (parseError) {
|
|
1601
|
-
console.warn('Could not parse flow_definition for activities:', parseError);
|
|
1602
|
-
}
|
|
1603
|
-
}
|
|
1604
|
-
// Build complete flow definition in ServiceNow Flow Designer format
|
|
1605
|
-
const flowDefinition = {
|
|
1606
|
-
"name": flow.name,
|
|
1607
|
-
"description": flow.description || flow.name,
|
|
1608
|
-
"trigger": {
|
|
1609
|
-
"type": flow.trigger_type || 'manual',
|
|
1610
|
-
"table": flow.table || 'incident',
|
|
1611
|
-
"condition": flow.trigger_condition || flow.condition || ''
|
|
1612
|
-
},
|
|
1613
|
-
"activities": activitiesToProcess.map((action, index) => ({
|
|
1614
|
-
"name": action.name,
|
|
1615
|
-
"label": action.label || action.name,
|
|
1616
|
-
"type": action.type || "core",
|
|
1617
|
-
"operation": action.operation || "script",
|
|
1618
|
-
"inputs": action.inputs || {},
|
|
1619
|
-
"outputs": action.outputs || {},
|
|
1620
|
-
"order": (index + 1) * 100,
|
|
1621
|
-
"active": true
|
|
1622
|
-
})),
|
|
1623
|
-
"inputs": (flow.inputs || []).map(input => ({
|
|
1624
|
-
"name": input.name || input.id,
|
|
1625
|
-
"label": input.label || input.name || input.id,
|
|
1626
|
-
"type": input.type || "string",
|
|
1627
|
-
"mandatory": input.required || false,
|
|
1628
|
-
"default_value": input.default || ""
|
|
1629
|
-
})),
|
|
1630
|
-
"outputs": (flow.outputs || []).map(output => ({
|
|
1631
|
-
"name": output.name || output.id,
|
|
1632
|
-
"label": output.label || output.name || output.id,
|
|
1633
|
-
"type": output.type || "string"
|
|
1634
|
-
})),
|
|
1635
|
-
"variables": flow.variables || [],
|
|
1636
|
-
"version": "1.0"
|
|
1637
|
-
};
|
|
1638
|
-
// Build flow structure with dynamic defaults AND complete snapshot
|
|
1639
|
-
const flowData = {
|
|
1640
|
-
name: flow.name,
|
|
1641
|
-
description: flow.description || flow.name,
|
|
1642
|
-
active: true, // Always create as active
|
|
1643
|
-
internal_name: this.sanitizeInternalName(flow.name),
|
|
1644
|
-
category: flow.category || 'custom',
|
|
1645
|
-
run_as: flow.run_as || 'user', // 🔒 SEC-001 FIX: Default to 'user' to prevent privilege escalation
|
|
1646
|
-
status: 'published', // 🔧 FIX: Ensure flow is published, not draft
|
|
1647
|
-
validated: true, // 🔧 FIX: Mark as validated to allow activation
|
|
1648
|
-
// Include complete flow definition to prevent corruption
|
|
1649
|
-
flow_definition: JSON.stringify(flowDefinition),
|
|
1650
|
-
// Additional fields for proper flow creation
|
|
1651
|
-
latest_snapshot: JSON.stringify(flowDefinition),
|
|
1652
|
-
model_id: flow.model_id || '',
|
|
1653
|
-
natlang: flow.description || flow.name,
|
|
1654
|
-
copied_from: '',
|
|
1655
|
-
copied_from_name: '',
|
|
1656
|
-
show_draft_actions: false,
|
|
1657
|
-
show_triggered_flows: false,
|
|
1658
|
-
// Merge with dynamic defaults from ServiceNow
|
|
1659
|
-
...flowDefaults,
|
|
1660
|
-
// Override with any specific values from the flow parameter
|
|
1661
|
-
...flow.overrides,
|
|
1662
|
-
// 🔧 CRITICAL FIX: Ensure flow type is respected and not overridden
|
|
1663
|
-
type: flow.type || 'flow'
|
|
1664
|
-
};
|
|
1665
|
-
// Create the main flow record WITH complete snapshot
|
|
1666
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_flow`, flowData);
|
|
1667
|
-
if (!response.data || !response.data.result) {
|
|
1668
|
-
throw new Error('No response data from flow creation');
|
|
1669
|
-
}
|
|
1670
|
-
const flowId = response.data.result.sys_id;
|
|
1671
|
-
this.logger.info('✅ Flow created successfully with complete snapshot!');
|
|
1672
|
-
this.logger.info(`🆔 Flow sys_id: ${flowId}`);
|
|
1673
|
-
// 🔧 CRITICAL FIX: Create action instances after flow creation
|
|
1674
|
-
// While the flow definition contains the structure, ServiceNow also needs
|
|
1675
|
-
// actual sys_hub_action_instance records for proper execution
|
|
1676
|
-
this.logger.info('📋 Flow components included in definition:');
|
|
1677
|
-
this.logger.info(`- Trigger: ${flowDefinition.trigger.type}`);
|
|
1678
|
-
this.logger.info(`- Activities: ${flowDefinition.activities.length}`);
|
|
1679
|
-
this.logger.info(`- Inputs: ${flowDefinition.inputs.length}`);
|
|
1680
|
-
this.logger.info(`- Outputs: ${flowDefinition.outputs.length}`);
|
|
1681
|
-
// Create action instances for each activity
|
|
1682
|
-
if (activitiesToProcess.length > 0) {
|
|
1683
|
-
this.logger.info('🔧 Creating action instances for activities...');
|
|
1684
|
-
for (let i = 0; i < activitiesToProcess.length; i++) {
|
|
1685
|
-
const activity = activitiesToProcess[i];
|
|
1686
|
-
try {
|
|
1687
|
-
await this.createFlowActionInstance(flowId, activity, (i + 1) * 100);
|
|
1688
|
-
this.logger.info(`✅ Action instance created: ${activity.name}`);
|
|
1689
|
-
}
|
|
1690
|
-
catch (activityError) {
|
|
1691
|
-
console.warn(`⚠️ Failed to create action instance ${activity.name}:`, activityError);
|
|
1692
|
-
// Continue with other activities even if one fails
|
|
1693
|
-
}
|
|
1694
|
-
}
|
|
1695
|
-
this.logger.info(`✅ Created ${activitiesToProcess.length} action instances`);
|
|
1696
|
-
}
|
|
1697
|
-
// 🔧 NEW: Only need to activate the flow since it already has complete definition
|
|
1698
|
-
try {
|
|
1699
|
-
this.logger.info('⚡ Activating flow...');
|
|
1700
|
-
await this.activateFlow(flowId);
|
|
1701
|
-
this.logger.info('✅ Flow activated successfully!');
|
|
1702
|
-
}
|
|
1703
|
-
catch (activationError) {
|
|
1704
|
-
console.warn('⚠️ Flow activation failed:', activationError);
|
|
1705
|
-
// Don't fail the entire flow creation if activation fails
|
|
1706
|
-
}
|
|
1707
|
-
// 🔧 CRITICAL FIX: Create actual ServiceNow records after flow creation
|
|
1708
|
-
// The JSON definition alone is not enough - we need component records
|
|
1709
|
-
this.logger.info('🔧 Creating actual ServiceNow flow component records...');
|
|
1710
|
-
try {
|
|
1711
|
-
// 1. Create trigger instance if trigger is specified
|
|
1712
|
-
if (flow.trigger_type && flow.trigger_type !== 'manual') {
|
|
1713
|
-
const triggerData = {
|
|
1714
|
-
type: flow.trigger_type,
|
|
1715
|
-
table: flow.table || 'incident',
|
|
1716
|
-
condition: flow.trigger_condition || flow.condition || ''
|
|
1717
|
-
};
|
|
1718
|
-
const triggerResult = await this.createFlowTrigger(flowId, triggerData);
|
|
1719
|
-
this.logger.info(`✅ Trigger created: ${triggerResult.sys_id}`);
|
|
1720
|
-
}
|
|
1721
|
-
// 2. Create action instances for each activity
|
|
1722
|
-
if (activitiesToProcess && activitiesToProcess.length > 0) {
|
|
1723
|
-
const actionResults = [];
|
|
1724
|
-
for (let i = 0; i < activitiesToProcess.length; i++) {
|
|
1725
|
-
const activity = activitiesToProcess[i];
|
|
1726
|
-
const order = (i + 1) * 100;
|
|
1727
|
-
try {
|
|
1728
|
-
const actionResult = await this.createFlowActionInstance(flowId, activity, order);
|
|
1729
|
-
actionResults.push(actionResult);
|
|
1730
|
-
this.logger.info(`✅ Action created: ${activity.name} (${actionResult.sys_id})`);
|
|
1731
|
-
}
|
|
1732
|
-
catch (actionError) {
|
|
1733
|
-
console.warn(`⚠️ Failed to create action ${activity.name}:`, actionError);
|
|
1734
|
-
}
|
|
1735
|
-
}
|
|
1736
|
-
// 3. Create flow logic entries for visual representation
|
|
1737
|
-
if (actionResults.length > 0) {
|
|
1738
|
-
for (let i = 0; i < actionResults.length; i++) {
|
|
1739
|
-
const action = actionResults[i];
|
|
1740
|
-
const logicData = {
|
|
1741
|
-
name: action.action_name,
|
|
1742
|
-
type: 'action',
|
|
1743
|
-
order: (i + 1) * 100,
|
|
1744
|
-
instance: action.sys_id
|
|
1745
|
-
};
|
|
1746
|
-
try {
|
|
1747
|
-
const logicResult = await this.createFlowLogic(flowId, logicData);
|
|
1748
|
-
this.logger.info(`✅ Flow logic created: ${logicResult.sys_id}`);
|
|
1749
|
-
}
|
|
1750
|
-
catch (logicError) {
|
|
1751
|
-
console.warn(`⚠️ Failed to create flow logic for ${action.action_name}:`, logicError);
|
|
1752
|
-
}
|
|
1753
|
-
}
|
|
1754
|
-
}
|
|
1755
|
-
}
|
|
1756
|
-
this.logger.info('✅ All flow component records created successfully!');
|
|
1757
|
-
}
|
|
1758
|
-
catch (componentError) {
|
|
1759
|
-
console.warn('⚠️ Some flow components may not have been created properly:', componentError);
|
|
1760
|
-
// Don't fail the entire flow creation if component creation fails
|
|
1761
|
-
}
|
|
1762
|
-
// Add post-deployment verification
|
|
1763
|
-
await this.verifyDeployment(flowId, 'flow');
|
|
1764
|
-
// 🔧 CRITICAL FIX: Enhanced response with proper ServiceNow URLs and flow type
|
|
1765
|
-
const flowRecord = response.data.result;
|
|
1766
|
-
const credentials = await this.oauth.loadCredentials();
|
|
1767
|
-
const instance = credentials?.instance || process.env.SNOW_INSTANCE;
|
|
1768
|
-
return {
|
|
1769
|
-
success: true,
|
|
1770
|
-
data: {
|
|
1771
|
-
...flowRecord,
|
|
1772
|
-
// Enhanced response format with proper URLs
|
|
1773
|
-
url: `https://${instance}/nav_to.do?uri=sys_hub_flow.do?sys_id=${flowRecord.sys_id}`,
|
|
1774
|
-
flow_designer_url: `https://${instance}/flow-designer.do?sysparm_nostack=true&sysparm_sys_id=${flowRecord.sys_id}`,
|
|
1775
|
-
type: flowRecord.type || flow.type || 'flow', // Ensure type is included
|
|
1776
|
-
activities_created: flowDefinition.activities.length,
|
|
1777
|
-
variables_created: (flow.inputs?.length || 0) + (flow.outputs?.length || 0),
|
|
1778
|
-
trigger_configured: !!flow.trigger_type,
|
|
1779
|
-
sys_trigger_created: flow.trigger_type === 'record_created' || flow.trigger_type === 'record_updated',
|
|
1780
|
-
component_records_created: true, // New field to indicate component records were created
|
|
1781
|
-
has_actual_flow_instances: activitiesToProcess && activitiesToProcess.length > 0
|
|
1782
|
-
}
|
|
1783
|
-
};
|
|
1784
|
-
}
|
|
1785
|
-
catch (error) {
|
|
1786
|
-
console.error('❌ Failed to create flow:', error);
|
|
1787
|
-
return {
|
|
1788
|
-
success: false,
|
|
1789
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1790
|
-
};
|
|
1791
|
-
}
|
|
1792
|
-
}
|
|
1793
|
-
/**
|
|
1794
|
-
* Activate a flow to ensure it's published and ready
|
|
1795
|
-
*/
|
|
1796
|
-
async activateFlow(flowSysId) {
|
|
1797
|
-
try {
|
|
1798
|
-
await this.ensureAuthenticated();
|
|
1799
|
-
// Update the flow to set it as active and published
|
|
1800
|
-
const response = await this.client.patch(`${this.getBaseUrl()}/api/now/table/sys_hub_flow/${flowSysId}`, {
|
|
1801
|
-
active: true,
|
|
1802
|
-
status: 'published',
|
|
1803
|
-
validated: true
|
|
1804
|
-
});
|
|
1805
|
-
if (!response.data || !response.data.result) {
|
|
1806
|
-
throw new Error('Failed to activate flow - no response');
|
|
1807
|
-
}
|
|
1808
|
-
return response.data.result;
|
|
1809
|
-
}
|
|
1810
|
-
catch (error) {
|
|
1811
|
-
console.error('Failed to activate flow:', error);
|
|
1812
|
-
throw error;
|
|
1813
|
-
}
|
|
1814
|
-
}
|
|
1815
|
-
/**
|
|
1816
|
-
* Generate flow snapshot to prevent "Your flow cannot be found" error
|
|
1817
|
-
* This uses the Flow Designer API to generate a proper snapshot
|
|
1818
|
-
*/
|
|
1819
|
-
async generateFlowSnapshot(flowSysId) {
|
|
1820
|
-
try {
|
|
1821
|
-
await this.ensureAuthenticated();
|
|
1822
|
-
// Call Flow Designer API to generate snapshot
|
|
1823
|
-
// This endpoint triggers ServiceNow to build a proper flow snapshot
|
|
1824
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/sn_flow_designer/flow/snapshot`, {
|
|
1825
|
-
flow_id: flowSysId,
|
|
1826
|
-
generate: true
|
|
1827
|
-
});
|
|
1828
|
-
if (!response.data || !response.data.result) {
|
|
1829
|
-
// Try alternative endpoint if the first one fails
|
|
1830
|
-
const altResponse = await this.client.put(`${this.getBaseUrl()}/api/now/table/sys_hub_flow/${flowSysId}`, {
|
|
1831
|
-
snapshot_ready: true
|
|
1832
|
-
});
|
|
1833
|
-
if (!altResponse.data || !altResponse.data.result) {
|
|
1834
|
-
throw new Error('Failed to generate flow snapshot');
|
|
1835
|
-
}
|
|
1836
|
-
}
|
|
1837
|
-
return response.data?.result || true;
|
|
1838
|
-
}
|
|
1839
|
-
catch (error) {
|
|
1840
|
-
console.error('Failed to generate flow snapshot:', error);
|
|
1841
|
-
// Don't throw - this is a best effort operation
|
|
1842
|
-
}
|
|
1843
|
-
}
|
|
1844
|
-
/**
|
|
1845
|
-
* Create a Subflow in ServiceNow
|
|
1846
|
-
*/
|
|
1847
|
-
async createSubflow(subflow) {
|
|
1848
|
-
try {
|
|
1849
|
-
this.logger.info('🔄 Creating Subflow...');
|
|
1850
|
-
this.logger.info(`📋 Subflow: ${subflow.name}`);
|
|
1851
|
-
// Add pre-deployment validation
|
|
1852
|
-
this.validateFlowBeforeDeployment(subflow);
|
|
1853
|
-
// Ensure Update Set
|
|
1854
|
-
const updateSetResult = await this.ensureUpdateSet();
|
|
1855
|
-
// Create subflow with inputs/outputs
|
|
1856
|
-
const subflowData = {
|
|
1857
|
-
name: subflow.name,
|
|
1858
|
-
description: subflow.description || `Subflow: ${subflow.name}`,
|
|
1859
|
-
active: subflow.active !== false,
|
|
1860
|
-
internal_name: this.sanitizeInternalName(subflow.name),
|
|
1861
|
-
category: subflow.category || 'custom',
|
|
1862
|
-
type: 'subflow',
|
|
1863
|
-
inputs: JSON.stringify(subflow.inputs || []),
|
|
1864
|
-
outputs: JSON.stringify(subflow.outputs || []),
|
|
1865
|
-
run_as: 'user_who_calls'
|
|
1866
|
-
};
|
|
1867
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_flow`, subflowData);
|
|
1868
|
-
const subflowId = response.data.result.sys_id;
|
|
1869
|
-
// Process flow definition if provided
|
|
1870
|
-
if (subflow.flow_definition) {
|
|
1871
|
-
const definition = typeof subflow.flow_definition === 'string'
|
|
1872
|
-
? JSON.parse(subflow.flow_definition)
|
|
1873
|
-
: subflow.flow_definition;
|
|
1874
|
-
// Create activities for the subflow
|
|
1875
|
-
if (definition.activities) {
|
|
1876
|
-
for (let i = 0; i < definition.activities.length; i++) {
|
|
1877
|
-
const activity = definition.activities[i];
|
|
1878
|
-
await this.createFlowActionInstance(subflowId, activity, (i + 1) * 100);
|
|
1879
|
-
}
|
|
1880
|
-
}
|
|
1881
|
-
}
|
|
1882
|
-
// Add post-deployment verification
|
|
1883
|
-
await this.verifyDeployment(subflowId, 'subflow');
|
|
1884
|
-
// 🔧 CRITICAL FIX: Enhanced response with proper ServiceNow URLs and subflow type
|
|
1885
|
-
const subflowRecord = response.data.result;
|
|
1886
|
-
const credentials = await this.oauth.loadCredentials();
|
|
1887
|
-
const instance = credentials?.instance || process.env.SNOW_INSTANCE;
|
|
1888
|
-
return {
|
|
1889
|
-
success: true,
|
|
1890
|
-
data: {
|
|
1891
|
-
...subflowRecord,
|
|
1892
|
-
// Enhanced response format with proper URLs
|
|
1893
|
-
url: `https://${instance}/nav_to.do?uri=sys_hub_flow.do?sys_id=${subflowRecord.sys_id}`,
|
|
1894
|
-
flow_designer_url: `https://${instance}/flow-designer.do?sysparm_nostack=true&sysparm_sys_id=${subflowRecord.sys_id}`,
|
|
1895
|
-
type: 'subflow', // Ensure correct type
|
|
1896
|
-
activities_created: subflow.activities?.length || 0,
|
|
1897
|
-
inputs_defined: subflow.inputs?.length || 0,
|
|
1898
|
-
outputs_defined: subflow.outputs?.length || 0,
|
|
1899
|
-
reusable: true
|
|
1900
|
-
}
|
|
1901
|
-
};
|
|
1902
|
-
}
|
|
1903
|
-
catch (error) {
|
|
1904
|
-
console.error('❌ Failed to create subflow:', error);
|
|
1905
|
-
return {
|
|
1906
|
-
success: false,
|
|
1907
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1908
|
-
};
|
|
1909
|
-
}
|
|
1910
|
-
}
|
|
1911
|
-
/**
|
|
1912
|
-
* Create a Flow Action (reusable component)
|
|
1913
|
-
*/
|
|
1914
|
-
async createFlowAction(action) {
|
|
1915
|
-
try {
|
|
1916
|
-
this.logger.info('⚡ Creating Flow Action...');
|
|
1917
|
-
this.logger.info(`📋 Action: ${action.name}`);
|
|
1918
|
-
// Add pre-deployment validation (adapted for actions)
|
|
1919
|
-
if (!action.name || action.name.trim() === '') {
|
|
1920
|
-
throw new Error('Flow Action name is required');
|
|
1921
|
-
}
|
|
1922
|
-
if (!action.description || action.description.trim() === '') {
|
|
1923
|
-
throw new Error('Flow Action description is required');
|
|
1924
|
-
}
|
|
1925
|
-
// Ensure Update Set
|
|
1926
|
-
const updateSetResult = await this.ensureUpdateSet();
|
|
1927
|
-
// Create action with inputs/outputs
|
|
1928
|
-
const actionData = {
|
|
1929
|
-
name: action.name,
|
|
1930
|
-
description: action.description || `Action: ${action.name}`,
|
|
1931
|
-
active: action.active !== false,
|
|
1932
|
-
internal_name: this.sanitizeInternalName(action.name),
|
|
1933
|
-
category: action.category || 'custom',
|
|
1934
|
-
type: 'action',
|
|
1935
|
-
action_type: action.action_type || 'custom',
|
|
1936
|
-
inputs: JSON.stringify(action.inputs || []),
|
|
1937
|
-
outputs: JSON.stringify(action.outputs || []),
|
|
1938
|
-
script: action.script || '',
|
|
1939
|
-
accessible_from: 'all' // Make available to all flows
|
|
1940
|
-
};
|
|
1941
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_action_type_definition`, actionData);
|
|
1942
|
-
// Add basic verification for action creation
|
|
1943
|
-
if (response.data.result?.sys_id) {
|
|
1944
|
-
this.logger.info(`✅ Flow Action created: ${action.name} (${response.data.result.sys_id})`);
|
|
1945
|
-
}
|
|
1946
|
-
return {
|
|
1947
|
-
success: true,
|
|
1948
|
-
data: response.data.result
|
|
1949
|
-
};
|
|
1950
|
-
}
|
|
1951
|
-
catch (error) {
|
|
1952
|
-
console.error('❌ Failed to create flow action:', error);
|
|
1953
|
-
return {
|
|
1954
|
-
success: false,
|
|
1955
|
-
error: error instanceof Error ? error.message : String(error)
|
|
1956
|
-
};
|
|
1957
|
-
}
|
|
1958
|
-
}
|
|
1959
|
-
/**
|
|
1960
|
-
* Create a flow action using discovered ServiceNow action types (private method)
|
|
1961
|
-
*/
|
|
1962
|
-
async createFlowActionPrivate(flowId, action, order) {
|
|
1963
|
-
try {
|
|
1964
|
-
this.logger.info(`Creating flow action: ${action.type} - ${action.name}`);
|
|
1965
|
-
// If we have a discovered action type, use it
|
|
1966
|
-
let actionTypeId = action.action_type_id;
|
|
1967
|
-
// If no specific action type provided, search for one
|
|
1968
|
-
if (!actionTypeId) {
|
|
1969
|
-
const searchResults = await this.searchFlowActions(action.type);
|
|
1970
|
-
if (searchResults.actionTypes && searchResults.actionTypes.length > 0) {
|
|
1971
|
-
actionTypeId = searchResults.actionTypes[0].sys_id;
|
|
1972
|
-
this.logger.info(`📋 Using discovered action type: ${searchResults.actionTypes[0].name}`);
|
|
1973
|
-
}
|
|
1974
|
-
else {
|
|
1975
|
-
// Fallback to common action types
|
|
1976
|
-
const fallbackMap = {
|
|
1977
|
-
'notification': 'com.glideapp.servicenow_common.send_email',
|
|
1978
|
-
'field_update': 'com.glideapp.servicenow_common.update_record',
|
|
1979
|
-
'create_task': 'com.glideapp.servicenow_common.create_record',
|
|
1980
|
-
'log': 'com.glideapp.servicenow_common.log_message',
|
|
1981
|
-
'wait': 'com.glideapp.servicenow_common.timer',
|
|
1982
|
-
'approval': 'com.glideapp.servicenow_common.approval'
|
|
1983
|
-
};
|
|
1984
|
-
actionTypeId = fallbackMap[action.type] || 'com.glideapp.servicenow_common.script';
|
|
1985
|
-
this.logger.info(`📋 Using fallback action type: ${actionTypeId}`);
|
|
1986
|
-
}
|
|
1987
|
-
}
|
|
1988
|
-
// Get action details to understand inputs/outputs
|
|
1989
|
-
const actionDetails = await this.getFlowActionDetails(actionTypeId);
|
|
1990
|
-
// Build inputs based on action details
|
|
1991
|
-
const inputs = this.buildActionInputs(action, actionDetails);
|
|
1992
|
-
const actionData = {
|
|
1993
|
-
flow: flowId,
|
|
1994
|
-
action_name: action.name,
|
|
1995
|
-
action_type: actionTypeId,
|
|
1996
|
-
order: order * 100,
|
|
1997
|
-
active: true,
|
|
1998
|
-
// Use proper ServiceNow action configuration
|
|
1999
|
-
inputs: JSON.stringify(inputs),
|
|
2000
|
-
configuration: this.buildActionConfiguration(action)
|
|
2001
|
-
};
|
|
2002
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_action_instance`, actionData);
|
|
2003
|
-
this.logger.info(`✅ Flow action created: ${action.name}`);
|
|
2004
|
-
return response.data.result;
|
|
2005
|
-
}
|
|
2006
|
-
catch (error) {
|
|
2007
|
-
console.error('Failed to create flow action:', error);
|
|
2008
|
-
throw error;
|
|
2009
|
-
}
|
|
2010
|
-
}
|
|
2011
|
-
/**
|
|
2012
|
-
* Build action inputs based on action details
|
|
2013
|
-
*/
|
|
2014
|
-
buildActionInputs(action, actionDetails) {
|
|
2015
|
-
const inputs = {};
|
|
2016
|
-
if (!actionDetails || !actionDetails.inputs) {
|
|
2017
|
-
return inputs;
|
|
2018
|
-
}
|
|
2019
|
-
// Map action properties to ServiceNow input variables
|
|
2020
|
-
for (const input of actionDetails.inputs) {
|
|
2021
|
-
const inputName = input.name;
|
|
2022
|
-
switch (action.type) {
|
|
2023
|
-
case 'notification':
|
|
2024
|
-
if (inputName === 'to' || inputName === 'recipient') {
|
|
2025
|
-
inputs[inputName] = action.to || '${trigger.record.assigned_to}';
|
|
2026
|
-
}
|
|
2027
|
-
else if (inputName === 'subject') {
|
|
2028
|
-
inputs[inputName] = action.subject || 'Flow Notification';
|
|
2029
|
-
}
|
|
2030
|
-
else if (inputName === 'message' || inputName === 'body') {
|
|
2031
|
-
inputs[inputName] = action.message || 'Flow action executed';
|
|
2032
|
-
}
|
|
2033
|
-
break;
|
|
2034
|
-
case 'field_update':
|
|
2035
|
-
if (inputName === 'record' || inputName === 'table') {
|
|
2036
|
-
inputs[inputName] = '${trigger.record}';
|
|
2037
|
-
}
|
|
2038
|
-
else if (inputName === 'field') {
|
|
2039
|
-
inputs[inputName] = action.field;
|
|
2040
|
-
}
|
|
2041
|
-
else if (inputName === 'value') {
|
|
2042
|
-
inputs[inputName] = action.value;
|
|
2043
|
-
}
|
|
2044
|
-
break;
|
|
2045
|
-
case 'create_task':
|
|
2046
|
-
if (inputName === 'table') {
|
|
2047
|
-
inputs[inputName] = action.target_table || 'task';
|
|
2048
|
-
}
|
|
2049
|
-
else if (inputName === 'fields') {
|
|
2050
|
-
inputs[inputName] = action.fields || {};
|
|
2051
|
-
}
|
|
2052
|
-
break;
|
|
2053
|
-
case 'log':
|
|
2054
|
-
if (inputName === 'message') {
|
|
2055
|
-
inputs[inputName] = action.message || 'Flow action executed';
|
|
2056
|
-
}
|
|
2057
|
-
else if (inputName === 'level') {
|
|
2058
|
-
inputs[inputName] = action.level || 'info';
|
|
2059
|
-
}
|
|
2060
|
-
break;
|
|
2061
|
-
case 'wait':
|
|
2062
|
-
if (inputName === 'duration') {
|
|
2063
|
-
inputs[inputName] = action.duration || 300;
|
|
2064
|
-
}
|
|
2065
|
-
break;
|
|
2066
|
-
case 'approval':
|
|
2067
|
-
if (inputName === 'approvers') {
|
|
2068
|
-
inputs[inputName] = action.approvers || '${trigger.record.assigned_to.manager}';
|
|
2069
|
-
}
|
|
2070
|
-
break;
|
|
2071
|
-
}
|
|
2072
|
-
}
|
|
2073
|
-
return inputs;
|
|
2074
|
-
}
|
|
2075
|
-
/**
|
|
2076
|
-
* Build simple action configuration
|
|
2077
|
-
*/
|
|
2078
|
-
buildActionConfiguration(action) {
|
|
2079
|
-
const config = {
|
|
2080
|
-
name: action.name,
|
|
2081
|
-
type: action.type
|
|
2082
|
-
};
|
|
2083
|
-
switch (action.type) {
|
|
2084
|
-
case 'notification':
|
|
2085
|
-
config.to = action.to || 'assigned_to';
|
|
2086
|
-
config.subject = action.subject || 'Flow Notification';
|
|
2087
|
-
config.body = action.message || 'A flow action has been triggered.';
|
|
2088
|
-
break;
|
|
2089
|
-
case 'field_update':
|
|
2090
|
-
config.field = action.field;
|
|
2091
|
-
config.value = action.value;
|
|
2092
|
-
break;
|
|
2093
|
-
case 'create_task':
|
|
2094
|
-
config.table = action.target_table || 'task';
|
|
2095
|
-
config.fields = action.fields || {};
|
|
2096
|
-
break;
|
|
2097
|
-
case 'log':
|
|
2098
|
-
config.message = action.message || 'Flow action executed';
|
|
2099
|
-
config.level = action.level || 'info';
|
|
2100
|
-
break;
|
|
2101
|
-
case 'wait':
|
|
2102
|
-
config.duration = action.duration || 300; // 5 minutes default
|
|
2103
|
-
break;
|
|
2104
|
-
case 'approval':
|
|
2105
|
-
config.approvers = action.approvers || 'assigned_to.manager';
|
|
2106
|
-
break;
|
|
2107
|
-
default:
|
|
2108
|
-
config.script = action.script || '// Custom action';
|
|
2109
|
-
}
|
|
2110
|
-
return JSON.stringify(config);
|
|
2111
|
-
}
|
|
2112
|
-
/**
|
|
2113
|
-
* Create a flow trigger instance
|
|
2114
|
-
*/
|
|
2115
|
-
async createFlowTrigger(flowId, trigger) {
|
|
2116
|
-
try {
|
|
2117
|
-
// Get trigger type from cache
|
|
2118
|
-
let triggerType = await this.actionTypeCache.getTriggerType(trigger.type);
|
|
2119
|
-
if (!triggerType) {
|
|
2120
|
-
console.warn(`Trigger type '${trigger.type}' not found in cache, using default`);
|
|
2121
|
-
// Fallback to 'Created' trigger if not found
|
|
2122
|
-
triggerType = await this.actionTypeCache.getTriggerType('Created');
|
|
2123
|
-
if (!triggerType) {
|
|
2124
|
-
throw new Error('Could not find any trigger types');
|
|
2125
|
-
}
|
|
2126
|
-
}
|
|
2127
|
-
const triggerTypeId = triggerType.sys_id;
|
|
2128
|
-
const triggerData = {
|
|
2129
|
-
flow: flowId,
|
|
2130
|
-
trigger_type: triggerTypeId,
|
|
2131
|
-
table_name: trigger.table || 'incident',
|
|
2132
|
-
condition: trigger.condition || '',
|
|
2133
|
-
order: 0,
|
|
2134
|
-
active: true
|
|
2135
|
-
};
|
|
2136
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_trigger_instance`, triggerData);
|
|
2137
|
-
// 🔧 CRITICAL FIX: Create actual sys_trigger record for proper triggered flows
|
|
2138
|
-
// This ensures the flow can actually be triggered by record events
|
|
2139
|
-
// Only create sys_trigger for actual record events, not for manual or scheduled triggers
|
|
2140
|
-
if (trigger.type === 'record_created' || trigger.type === 'record_updated' ||
|
|
2141
|
-
trigger.type === 'Created' || trigger.type === 'Updated') {
|
|
2142
|
-
try {
|
|
2143
|
-
const sysTriggerData = {
|
|
2144
|
-
name: `Flow Trigger: ${trigger.table}`,
|
|
2145
|
-
table: trigger.table || 'incident',
|
|
2146
|
-
when: trigger.type === 'record_created' ? 'after' : 'before',
|
|
2147
|
-
order: 100,
|
|
2148
|
-
active: true,
|
|
2149
|
-
condition: trigger.condition || '',
|
|
2150
|
-
script: `
|
|
2151
|
-
// Auto-generated trigger for Flow Designer flow
|
|
2152
|
-
// Flow ID: ${flowId}
|
|
2153
|
-
try {
|
|
2154
|
-
var flowAPI = new sn_fd.FlowAPI();
|
|
2155
|
-
var inputs = {};
|
|
2156
|
-
inputs.table = '${trigger.table || 'incident'}';
|
|
2157
|
-
inputs.sys_id = current.getUniqueValue();
|
|
2158
|
-
flowAPI.startFlow('${flowId}', inputs);
|
|
2159
|
-
gs.info('Flow ${flowId} triggered successfully for record: ' + current.getUniqueValue());
|
|
2160
|
-
} catch (e) {
|
|
2161
|
-
gs.error('Flow trigger error: ' + e.message);
|
|
2162
|
-
}
|
|
2163
|
-
`.trim(),
|
|
2164
|
-
description: `Auto-generated trigger for Flow Designer flow: ${flowId}`
|
|
2165
|
-
};
|
|
2166
|
-
await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_trigger`, sysTriggerData);
|
|
2167
|
-
this.logger.info('✅ sys_trigger record created for proper flow execution');
|
|
2168
|
-
}
|
|
2169
|
-
catch (sysTriggerError) {
|
|
2170
|
-
console.warn('Could not create sys_trigger record, flow may not trigger properly:', sysTriggerError);
|
|
2171
|
-
}
|
|
2172
|
-
}
|
|
2173
|
-
this.logger.info('✅ Trigger created successfully');
|
|
2174
|
-
return response.data.result;
|
|
2175
|
-
}
|
|
2176
|
-
catch (error) {
|
|
2177
|
-
console.error('Failed to create flow trigger:', error);
|
|
2178
|
-
throw error;
|
|
2179
|
-
}
|
|
2180
|
-
}
|
|
2181
|
-
/**
|
|
2182
|
-
* Create flow variables for inputs and outputs
|
|
2183
|
-
*/
|
|
2184
|
-
async createFlowVariables(flowId, flow) {
|
|
2185
|
-
try {
|
|
2186
|
-
this.logger.info('📋 Creating flow variables...');
|
|
2187
|
-
// Process inputs
|
|
2188
|
-
const inputs = flow.inputs || [];
|
|
2189
|
-
if (inputs.length > 0) {
|
|
2190
|
-
for (const input of inputs) {
|
|
2191
|
-
const variableData = {
|
|
2192
|
-
flow: flowId,
|
|
2193
|
-
name: input.name || input.id,
|
|
2194
|
-
label: input.label || input.name || input.id,
|
|
2195
|
-
type: input.type || 'string',
|
|
2196
|
-
input: true,
|
|
2197
|
-
output: false,
|
|
2198
|
-
required: input.required || false,
|
|
2199
|
-
default_value: input.default || '',
|
|
2200
|
-
description: input.description || `Input variable: ${input.name || input.id}`
|
|
2201
|
-
};
|
|
2202
|
-
await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_flow_variable`, variableData);
|
|
2203
|
-
}
|
|
2204
|
-
this.logger.info(`✅ Created ${inputs.length} input variables`);
|
|
2205
|
-
}
|
|
2206
|
-
// Process outputs
|
|
2207
|
-
const outputs = flow.outputs || [];
|
|
2208
|
-
if (outputs.length > 0) {
|
|
2209
|
-
for (const output of outputs) {
|
|
2210
|
-
const variableData = {
|
|
2211
|
-
flow: flowId,
|
|
2212
|
-
name: output.name || output.id,
|
|
2213
|
-
label: output.label || output.name || output.id,
|
|
2214
|
-
type: output.type || 'string',
|
|
2215
|
-
input: false,
|
|
2216
|
-
output: true,
|
|
2217
|
-
required: false,
|
|
2218
|
-
default_value: '',
|
|
2219
|
-
description: output.description || `Output variable: ${output.name || output.id}`
|
|
2220
|
-
};
|
|
2221
|
-
await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_flow_variable`, variableData);
|
|
2222
|
-
}
|
|
2223
|
-
this.logger.info(`✅ Created ${outputs.length} output variables`);
|
|
2224
|
-
}
|
|
2225
|
-
// Extract variables from flow_definition if available
|
|
2226
|
-
if (flow.flow_definition) {
|
|
2227
|
-
try {
|
|
2228
|
-
const flowDef = typeof flow.flow_definition === 'string' ?
|
|
2229
|
-
JSON.parse(flow.flow_definition) : flow.flow_definition;
|
|
2230
|
-
if (flowDef.variables && Array.isArray(flowDef.variables)) {
|
|
2231
|
-
for (const variable of flowDef.variables) {
|
|
2232
|
-
const variableData = {
|
|
2233
|
-
flow: flowId,
|
|
2234
|
-
name: variable.name || variable.id,
|
|
2235
|
-
label: variable.label || variable.name || variable.id,
|
|
2236
|
-
type: variable.type || 'string',
|
|
2237
|
-
input: variable.input || false,
|
|
2238
|
-
output: variable.output || false,
|
|
2239
|
-
required: variable.required || false,
|
|
2240
|
-
default_value: variable.default || variable.value || '',
|
|
2241
|
-
description: variable.description || `Flow variable: ${variable.name || variable.id}`
|
|
2242
|
-
};
|
|
2243
|
-
await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_flow_variable`, variableData);
|
|
2244
|
-
}
|
|
2245
|
-
this.logger.info(`✅ Created ${flowDef.variables.length} flow definition variables`);
|
|
2246
|
-
}
|
|
2247
|
-
}
|
|
2248
|
-
catch (parseError) {
|
|
2249
|
-
console.warn('Could not parse flow_definition for variables:', parseError);
|
|
2250
|
-
}
|
|
2251
|
-
}
|
|
2252
|
-
}
|
|
2253
|
-
catch (error) {
|
|
2254
|
-
console.error('Failed to create flow variables:', error);
|
|
2255
|
-
throw error;
|
|
2256
|
-
}
|
|
2257
|
-
}
|
|
2258
|
-
/**
|
|
2259
|
-
* Create a flow action instance using simplified approach
|
|
2260
|
-
*/
|
|
2261
|
-
async createFlowActionInstance(flowId, action, order) {
|
|
2262
|
-
try {
|
|
2263
|
-
this.logger.info(`Creating action instance: ${action.name}`);
|
|
2264
|
-
// Map action types to search terms
|
|
2265
|
-
const actionSearchMap = {
|
|
2266
|
-
'notification': 'Send Email',
|
|
2267
|
-
'email': 'Send Email',
|
|
2268
|
-
'field_update': 'Update Record',
|
|
2269
|
-
'create_task': 'Create Record',
|
|
2270
|
-
'create_record': 'Create Record',
|
|
2271
|
-
'wait': 'Wait',
|
|
2272
|
-
'approval': 'Approval',
|
|
2273
|
-
'log': 'Log'
|
|
2274
|
-
};
|
|
2275
|
-
const searchTerm = actionSearchMap[action.type] || action.type;
|
|
2276
|
-
let actionType = await this.actionTypeCache.getActionType(searchTerm);
|
|
2277
|
-
if (!actionType) {
|
|
2278
|
-
console.warn(`Action type '${searchTerm}' not found in cache, using Script action`);
|
|
2279
|
-
// Fallback to Script action if not found
|
|
2280
|
-
actionType = await this.actionTypeCache.getActionType('Script');
|
|
2281
|
-
if (!actionType) {
|
|
2282
|
-
throw new Error('Could not find any action types');
|
|
2283
|
-
}
|
|
2284
|
-
}
|
|
2285
|
-
const actionTypeId = actionType.sys_id;
|
|
2286
|
-
// Build inputs based on action type
|
|
2287
|
-
let inputs = {};
|
|
2288
|
-
switch (action.type) {
|
|
2289
|
-
case 'notification':
|
|
2290
|
-
case 'email':
|
|
2291
|
-
inputs = {
|
|
2292
|
-
email_to: action.to || '${trigger.assigned_to.email}',
|
|
2293
|
-
email_subject: action.subject || 'Notification',
|
|
2294
|
-
email_body: action.message || 'Notification from flow'
|
|
2295
|
-
};
|
|
2296
|
-
break;
|
|
2297
|
-
case 'field_update':
|
|
2298
|
-
inputs = {
|
|
2299
|
-
table: action.table || 'current',
|
|
2300
|
-
field: action.field || 'state',
|
|
2301
|
-
value: action.value || ''
|
|
2302
|
-
};
|
|
2303
|
-
break;
|
|
2304
|
-
case 'create_task':
|
|
2305
|
-
case 'create_record':
|
|
2306
|
-
inputs = {
|
|
2307
|
-
table: action.target_table || 'task',
|
|
2308
|
-
field_values: JSON.stringify({
|
|
2309
|
-
short_description: action.short_description || 'Task from flow',
|
|
2310
|
-
assigned_to: action.assigned_to || '${trigger.assigned_to}'
|
|
2311
|
-
})
|
|
2312
|
-
};
|
|
2313
|
-
break;
|
|
2314
|
-
case 'wait':
|
|
2315
|
-
inputs = {
|
|
2316
|
-
duration: action.duration || 300,
|
|
2317
|
-
unit: 'seconds'
|
|
2318
|
-
};
|
|
2319
|
-
break;
|
|
2320
|
-
case 'approval':
|
|
2321
|
-
inputs = {
|
|
2322
|
-
approvers: action.approvers || '${trigger.assigned_to.manager}',
|
|
2323
|
-
approval_field: 'approval'
|
|
2324
|
-
};
|
|
2325
|
-
break;
|
|
2326
|
-
default:
|
|
2327
|
-
inputs = action.inputs || {};
|
|
2328
|
-
}
|
|
2329
|
-
const actionData = {
|
|
2330
|
-
flow: flowId,
|
|
2331
|
-
action_name: action.name,
|
|
2332
|
-
action_type: actionTypeId,
|
|
2333
|
-
order: order,
|
|
2334
|
-
active: true,
|
|
2335
|
-
inputs: JSON.stringify(inputs)
|
|
2336
|
-
};
|
|
2337
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_action_instance`, actionData);
|
|
2338
|
-
this.logger.info(`✅ Action created: ${action.name}`);
|
|
2339
|
-
return response.data.result;
|
|
2340
|
-
}
|
|
2341
|
-
catch (error) {
|
|
2342
|
-
console.error(`Failed to create action instance ${action.name}:`, error);
|
|
2343
|
-
throw error;
|
|
2344
|
-
}
|
|
2345
|
-
}
|
|
2346
|
-
/**
|
|
2347
|
-
* Create a flow operation (activity) for a Flow Designer flow
|
|
2348
|
-
*/
|
|
2349
|
-
async createFlowOperation(flowId, operation) {
|
|
2350
|
-
try {
|
|
2351
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_flow_operation`, {
|
|
2352
|
-
flow: flowId,
|
|
2353
|
-
name: operation.name,
|
|
2354
|
-
type: operation.type || 'core',
|
|
2355
|
-
action_type: operation.action_type || 'script',
|
|
2356
|
-
order: operation.order || 100,
|
|
2357
|
-
// Operation-specific configuration
|
|
2358
|
-
configuration: JSON.stringify({
|
|
2359
|
-
script: operation.script,
|
|
2360
|
-
inputs: operation.inputs || {},
|
|
2361
|
-
outputs: operation.outputs || {},
|
|
2362
|
-
artifact_reference: operation.artifact_reference
|
|
2363
|
-
})
|
|
2364
|
-
});
|
|
2365
|
-
return response.data.result;
|
|
2366
|
-
}
|
|
2367
|
-
catch (error) {
|
|
2368
|
-
console.error('Failed to create flow operation:', error);
|
|
2369
|
-
throw error;
|
|
2370
|
-
}
|
|
2371
|
-
}
|
|
2372
|
-
/**
|
|
2373
|
-
* Create a Script Include
|
|
2374
|
-
*/
|
|
2375
|
-
async createScriptInclude(scriptInclude) {
|
|
2376
|
-
try {
|
|
2377
|
-
this.logger.info('📝 Creating Script Include...');
|
|
2378
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_script_include`, {
|
|
2379
|
-
name: scriptInclude.name,
|
|
2380
|
-
api_name: scriptInclude.api_name,
|
|
2381
|
-
description: scriptInclude.description,
|
|
2382
|
-
script: scriptInclude.script,
|
|
2383
|
-
active: scriptInclude.active,
|
|
2384
|
-
access: scriptInclude.access || 'public'
|
|
2385
|
-
});
|
|
2386
|
-
this.logger.info('✅ Script Include created successfully!');
|
|
2387
|
-
return {
|
|
2388
|
-
success: true,
|
|
2389
|
-
data: response.data.result
|
|
2390
|
-
};
|
|
2391
|
-
}
|
|
2392
|
-
catch (error) {
|
|
2393
|
-
console.error('❌ Failed to create script include:', error);
|
|
2394
|
-
return {
|
|
2395
|
-
success: false,
|
|
2396
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2397
|
-
};
|
|
2398
|
-
}
|
|
2399
|
-
}
|
|
2400
|
-
/**
|
|
2401
|
-
* Create a Business Rule
|
|
2402
|
-
*/
|
|
2403
|
-
async createBusinessRule(businessRule) {
|
|
2404
|
-
try {
|
|
2405
|
-
this.logger.info('📋 Creating Business Rule...');
|
|
2406
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_script`, {
|
|
2407
|
-
name: businessRule.name,
|
|
2408
|
-
collection: businessRule.table,
|
|
2409
|
-
when: businessRule.when,
|
|
2410
|
-
condition: businessRule.condition,
|
|
2411
|
-
script: businessRule.script,
|
|
2412
|
-
description: businessRule.description,
|
|
2413
|
-
active: businessRule.active,
|
|
2414
|
-
order: businessRule.order || 100
|
|
2415
|
-
});
|
|
2416
|
-
this.logger.info('✅ Business Rule created successfully!');
|
|
2417
|
-
return {
|
|
2418
|
-
success: true,
|
|
2419
|
-
data: response.data.result
|
|
2420
|
-
};
|
|
2421
|
-
}
|
|
2422
|
-
catch (error) {
|
|
2423
|
-
console.error('❌ Failed to create business rule:', error);
|
|
2424
|
-
return {
|
|
2425
|
-
success: false,
|
|
2426
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2427
|
-
};
|
|
2428
|
-
}
|
|
2429
|
-
}
|
|
2430
|
-
/**
|
|
2431
|
-
* Create a Table
|
|
2432
|
-
*/
|
|
2433
|
-
async createTable(table) {
|
|
2434
|
-
try {
|
|
2435
|
-
this.logger.info('🗄️ Creating Table...');
|
|
2436
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_db_object`, {
|
|
2437
|
-
name: table.name,
|
|
2438
|
-
label: table.label,
|
|
2439
|
-
extends_table: table.extends_table || 'sys_metadata',
|
|
2440
|
-
is_extendable: table.is_extendable !== false,
|
|
2441
|
-
access: table.access || 'public',
|
|
2442
|
-
create_access_controls: table.create_access_controls !== false
|
|
2443
|
-
});
|
|
2444
|
-
this.logger.info('✅ Table created successfully!');
|
|
2445
|
-
return {
|
|
2446
|
-
success: true,
|
|
2447
|
-
data: response.data.result
|
|
2448
|
-
};
|
|
2449
|
-
}
|
|
2450
|
-
catch (error) {
|
|
2451
|
-
console.error('❌ Failed to create table:', error);
|
|
2452
|
-
return {
|
|
2453
|
-
success: false,
|
|
2454
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2455
|
-
};
|
|
2456
|
-
}
|
|
2457
|
-
}
|
|
2458
|
-
/**
|
|
2459
|
-
* Create a Table Field
|
|
2460
|
-
*/
|
|
2461
|
-
async createTableField(field) {
|
|
2462
|
-
try {
|
|
2463
|
-
this.logger.info('📊 Creating Table Field...');
|
|
2464
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_dictionary`, {
|
|
2465
|
-
name: `${field.table}.${field.element}`,
|
|
2466
|
-
element: field.element,
|
|
2467
|
-
column_label: field.column_label,
|
|
2468
|
-
internal_type: field.internal_type || 'string',
|
|
2469
|
-
max_length: field.max_length || 255,
|
|
2470
|
-
active: true
|
|
2471
|
-
});
|
|
2472
|
-
this.logger.info('✅ Table Field created successfully!');
|
|
2473
|
-
return {
|
|
2474
|
-
success: true,
|
|
2475
|
-
data: response.data.result
|
|
2476
|
-
};
|
|
2477
|
-
}
|
|
2478
|
-
catch (error) {
|
|
2479
|
-
console.error('❌ Failed to create table field:', error);
|
|
2480
|
-
return {
|
|
2481
|
-
success: false,
|
|
2482
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2483
|
-
};
|
|
2484
|
-
}
|
|
2485
|
-
}
|
|
2486
|
-
/**
|
|
2487
|
-
* Create a new Update Set
|
|
2488
|
-
*/
|
|
2489
|
-
async createUpdateSet(updateSet) {
|
|
2490
|
-
try {
|
|
2491
|
-
this.logger.info('📦 Creating Update Set...');
|
|
2492
|
-
// Ensure we have credentials before making the API call
|
|
2493
|
-
await this.ensureAuthenticated();
|
|
2494
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_update_set`, {
|
|
2495
|
-
name: updateSet.name,
|
|
2496
|
-
description: updateSet.description,
|
|
2497
|
-
release_date: updateSet.release_date,
|
|
2498
|
-
state: updateSet.state || 'in_progress',
|
|
2499
|
-
application: updateSet.application || 'global'
|
|
2500
|
-
});
|
|
2501
|
-
this.logger.info('✅ Update Set created successfully!');
|
|
2502
|
-
return {
|
|
2503
|
-
success: true,
|
|
2504
|
-
data: response.data.result
|
|
2505
|
-
};
|
|
2506
|
-
}
|
|
2507
|
-
catch (error) {
|
|
2508
|
-
console.error('❌ Failed to create Update Set:', error);
|
|
2509
|
-
return {
|
|
2510
|
-
success: false,
|
|
2511
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2512
|
-
};
|
|
2513
|
-
}
|
|
2514
|
-
}
|
|
2515
|
-
/**
|
|
2516
|
-
* Set current Update Set for the session
|
|
2517
|
-
*/
|
|
2518
|
-
async setCurrentUpdateSet(updateSetId) {
|
|
2519
|
-
try {
|
|
2520
|
-
this.logger.info('🔄 Setting current Update Set...');
|
|
2521
|
-
// Ensure we have credentials before making the API call
|
|
2522
|
-
await this.ensureAuthenticated();
|
|
2523
|
-
// Use the sys_user_preference table to set the current update set
|
|
2524
|
-
// First, check if a preference already exists
|
|
2525
|
-
const existingPref = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_user_preference`, {
|
|
2526
|
-
params: {
|
|
2527
|
-
sysparm_query: 'name=sys_update_set^user=javascript:gs.getUserID()',
|
|
2528
|
-
sysparm_limit: 1
|
|
2529
|
-
}
|
|
2530
|
-
});
|
|
2531
|
-
let response;
|
|
2532
|
-
if (existingPref.data.result && existingPref.data.result.length > 0) {
|
|
2533
|
-
// Update existing preference
|
|
2534
|
-
response = await this.client.patch(`${this.getBaseUrl()}/api/now/table/sys_user_preference/${existingPref.data.result[0].sys_id}`, {
|
|
2535
|
-
value: updateSetId
|
|
2536
|
-
});
|
|
2537
|
-
}
|
|
2538
|
-
else {
|
|
2539
|
-
// Create new preference
|
|
2540
|
-
response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_user_preference`, {
|
|
2541
|
-
name: 'sys_update_set',
|
|
2542
|
-
value: updateSetId,
|
|
2543
|
-
user: 'javascript:gs.getUserID()'
|
|
2544
|
-
});
|
|
2545
|
-
}
|
|
2546
|
-
this.logger.info('✅ Current Update Set changed successfully!');
|
|
2547
|
-
return {
|
|
2548
|
-
success: true,
|
|
2549
|
-
data: response.data.result
|
|
2550
|
-
};
|
|
2551
|
-
}
|
|
2552
|
-
catch (error) {
|
|
2553
|
-
console.error('❌ Failed to set current Update Set:', error);
|
|
2554
|
-
return {
|
|
2555
|
-
success: false,
|
|
2556
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2557
|
-
};
|
|
2558
|
-
}
|
|
2559
|
-
}
|
|
2560
|
-
/**
|
|
2561
|
-
* Get current Update Set
|
|
2562
|
-
*/
|
|
2563
|
-
async getCurrentUpdateSet() {
|
|
2564
|
-
try {
|
|
2565
|
-
this.logger.info('📋 Getting current Update Set...');
|
|
2566
|
-
// Ensure we have credentials before making the API call
|
|
2567
|
-
await this.ensureAuthenticated();
|
|
2568
|
-
// Try to get the current update set using sys_user_preference table
|
|
2569
|
-
// This is more reliable than the UI API
|
|
2570
|
-
try {
|
|
2571
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_user_preference`, {
|
|
2572
|
-
params: {
|
|
2573
|
-
sysparm_query: 'name=sys_update_set^user=javascript:gs.getUserID()',
|
|
2574
|
-
sysparm_limit: 1
|
|
2575
|
-
}
|
|
2576
|
-
});
|
|
2577
|
-
if (response.data.result && response.data.result.length > 0) {
|
|
2578
|
-
const updateSetId = response.data.result[0].value;
|
|
2579
|
-
// Get Update Set details
|
|
2580
|
-
const updateSetResponse = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_update_set/${updateSetId}`);
|
|
2581
|
-
return {
|
|
2582
|
-
success: true,
|
|
2583
|
-
data: updateSetResponse.data.result
|
|
2584
|
-
};
|
|
2585
|
-
}
|
|
2586
|
-
}
|
|
2587
|
-
catch (prefError) {
|
|
2588
|
-
this.logger.info('⚠️ User preference lookup failed, trying fallback...');
|
|
2589
|
-
}
|
|
2590
|
-
// Fallback: Get the most recent in-progress update set for the current user
|
|
2591
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_update_set`, {
|
|
2592
|
-
params: {
|
|
2593
|
-
sysparm_query: 'state=in_progress^sys_created_by=javascript:gs.getUserName()',
|
|
2594
|
-
sysparm_orderby: 'sys_created_on',
|
|
2595
|
-
sysparm_limit: 1
|
|
2596
|
-
}
|
|
2597
|
-
});
|
|
2598
|
-
if (response.data.result && response.data.result.length > 0) {
|
|
2599
|
-
return {
|
|
2600
|
-
success: true,
|
|
2601
|
-
data: response.data.result[0]
|
|
2602
|
-
};
|
|
2603
|
-
}
|
|
2604
|
-
return {
|
|
2605
|
-
success: false,
|
|
2606
|
-
error: 'No current Update Set found'
|
|
2607
|
-
};
|
|
2608
|
-
}
|
|
2609
|
-
catch (error) {
|
|
2610
|
-
console.error('❌ Failed to get current Update Set:', error);
|
|
2611
|
-
return {
|
|
2612
|
-
success: false,
|
|
2613
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2614
|
-
};
|
|
2615
|
-
}
|
|
2616
|
-
}
|
|
2617
|
-
/**
|
|
2618
|
-
* Get Update Set by ID
|
|
2619
|
-
*/
|
|
2620
|
-
async getUpdateSet(updateSetId) {
|
|
2621
|
-
try {
|
|
2622
|
-
this.logger.info(`📋 Getting Update Set ${updateSetId}...`);
|
|
2623
|
-
// Ensure we have credentials before making the API call
|
|
2624
|
-
await this.ensureAuthenticated();
|
|
2625
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_update_set/${updateSetId}`);
|
|
2626
|
-
return {
|
|
2627
|
-
success: true,
|
|
2628
|
-
data: response.data.result
|
|
2629
|
-
};
|
|
2630
|
-
}
|
|
2631
|
-
catch (error) {
|
|
2632
|
-
console.error('❌ Failed to get Update Set:', error);
|
|
2633
|
-
return {
|
|
2634
|
-
success: false,
|
|
2635
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2636
|
-
};
|
|
2637
|
-
}
|
|
2638
|
-
}
|
|
2639
|
-
/**
|
|
2640
|
-
* List Update Sets
|
|
2641
|
-
*/
|
|
2642
|
-
async listUpdateSets(options) {
|
|
2643
|
-
try {
|
|
2644
|
-
this.logger.info('📋 Listing Update Sets...');
|
|
2645
|
-
// Ensure we have credentials before making the API call
|
|
2646
|
-
await this.ensureAuthenticated();
|
|
2647
|
-
let query = 'sys_created_by=javascript:gs.getUserName()';
|
|
2648
|
-
if (options.state) {
|
|
2649
|
-
query += `^state=${options.state}`;
|
|
2650
|
-
}
|
|
2651
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_update_set`, {
|
|
2652
|
-
params: {
|
|
2653
|
-
sysparm_query: query,
|
|
2654
|
-
sysparm_limit: options.limit || 10,
|
|
2655
|
-
sysparm_orderby: 'sys_created_on^DESC'
|
|
2656
|
-
}
|
|
2657
|
-
});
|
|
2658
|
-
return {
|
|
2659
|
-
success: true,
|
|
2660
|
-
data: response.data.result
|
|
2661
|
-
};
|
|
2662
|
-
}
|
|
2663
|
-
catch (error) {
|
|
2664
|
-
console.error('❌ Failed to list Update Sets:', error);
|
|
2665
|
-
return {
|
|
2666
|
-
success: false,
|
|
2667
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2668
|
-
};
|
|
2669
|
-
}
|
|
2670
|
-
}
|
|
2671
|
-
/**
|
|
2672
|
-
* Complete an Update Set
|
|
2673
|
-
*/
|
|
2674
|
-
async completeUpdateSet(updateSetId, notes) {
|
|
2675
|
-
try {
|
|
2676
|
-
this.logger.info('✅ Completing Update Set...');
|
|
2677
|
-
// Ensure we have credentials before making the API call
|
|
2678
|
-
await this.ensureAuthenticated();
|
|
2679
|
-
const response = await this.client.patch(`${this.getBaseUrl()}/api/now/table/sys_update_set/${updateSetId}`, {
|
|
2680
|
-
state: 'complete',
|
|
2681
|
-
description: notes ? `${notes}\n\nCompleted: ${new Date().toISOString()}` : undefined
|
|
2682
|
-
});
|
|
2683
|
-
this.logger.info('✅ Update Set completed successfully!');
|
|
2684
|
-
return {
|
|
2685
|
-
success: true,
|
|
2686
|
-
data: response.data.result
|
|
2687
|
-
};
|
|
2688
|
-
}
|
|
2689
|
-
catch (error) {
|
|
2690
|
-
console.error('❌ Failed to complete Update Set:', error);
|
|
2691
|
-
return {
|
|
2692
|
-
success: false,
|
|
2693
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2694
|
-
};
|
|
2695
|
-
}
|
|
2696
|
-
}
|
|
2697
|
-
/**
|
|
2698
|
-
* Activate an Update Set by setting it as current
|
|
2699
|
-
*/
|
|
2700
|
-
async activateUpdateSet(updateSetId) {
|
|
2701
|
-
try {
|
|
2702
|
-
this.logger.info('🔄 Activating Update Set...');
|
|
2703
|
-
// Set the update set as current
|
|
2704
|
-
const result = await this.setCurrentUpdateSet(updateSetId);
|
|
2705
|
-
if (result.success) {
|
|
2706
|
-
// Also ensure the update set is in progress state
|
|
2707
|
-
const updateResponse = await this.client.patch(`${this.getBaseUrl()}/api/now/table/sys_update_set/${updateSetId}`, {
|
|
2708
|
-
state: 'in_progress'
|
|
2709
|
-
});
|
|
2710
|
-
this.logger.info('✅ Update Set activated successfully!');
|
|
2711
|
-
return {
|
|
2712
|
-
success: true,
|
|
2713
|
-
data: updateResponse.data.result
|
|
2714
|
-
};
|
|
2715
|
-
}
|
|
2716
|
-
return result;
|
|
2717
|
-
}
|
|
2718
|
-
catch (error) {
|
|
2719
|
-
console.error('❌ Failed to activate Update Set:', error);
|
|
2720
|
-
return {
|
|
2721
|
-
success: false,
|
|
2722
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2723
|
-
};
|
|
2724
|
-
}
|
|
2725
|
-
}
|
|
2726
|
-
/**
|
|
2727
|
-
* Preview Update Set changes
|
|
2728
|
-
*/
|
|
2729
|
-
async previewUpdateSet(updateSetId) {
|
|
2730
|
-
try {
|
|
2731
|
-
this.logger.info('🔍 Previewing Update Set changes...');
|
|
2732
|
-
// Get Update Set details
|
|
2733
|
-
const updateSetResponse = await this.getUpdateSet(updateSetId);
|
|
2734
|
-
if (!updateSetResponse.success) {
|
|
2735
|
-
return updateSetResponse;
|
|
2736
|
-
}
|
|
2737
|
-
// Get Update Set changes
|
|
2738
|
-
const response = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_update_xml`, {
|
|
2739
|
-
params: {
|
|
2740
|
-
sysparm_query: `update_set=${updateSetId}`,
|
|
2741
|
-
sysparm_limit: 1000
|
|
2742
|
-
}
|
|
2743
|
-
});
|
|
2744
|
-
return {
|
|
2745
|
-
success: true,
|
|
2746
|
-
data: {
|
|
2747
|
-
...updateSetResponse.data,
|
|
2748
|
-
changes: response.data.result
|
|
2749
|
-
}
|
|
2750
|
-
};
|
|
2751
|
-
}
|
|
2752
|
-
catch (error) {
|
|
2753
|
-
console.error('❌ Failed to preview Update Set:', error);
|
|
2754
|
-
return {
|
|
2755
|
-
success: false,
|
|
2756
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2757
|
-
};
|
|
2758
|
-
}
|
|
2759
|
-
}
|
|
2760
|
-
/**
|
|
2761
|
-
* Export Update Set as XML
|
|
2762
|
-
*/
|
|
2763
|
-
/**
|
|
2764
|
-
* Ensure we have an active Update Set for tracking changes
|
|
2765
|
-
*/
|
|
2766
|
-
async ensureUpdateSet() {
|
|
2767
|
-
try {
|
|
2768
|
-
// Check if we have a current Update Set
|
|
2769
|
-
const currentUpdateSet = await this.getCurrentUpdateSet();
|
|
2770
|
-
if (currentUpdateSet.success && currentUpdateSet.data) {
|
|
2771
|
-
this.logger.info(`📦 Using existing Update Set: ${currentUpdateSet.data.name}`);
|
|
2772
|
-
return currentUpdateSet;
|
|
2773
|
-
}
|
|
2774
|
-
// Create a new Update Set if none exists
|
|
2775
|
-
const updateSetName = `Snow-Flow Changes ${new Date().toISOString().split('T')[0]}`;
|
|
2776
|
-
this.logger.info(`📦 Creating new Update Set: ${updateSetName}`);
|
|
2777
|
-
const newUpdateSet = await this.createUpdateSet({
|
|
2778
|
-
name: updateSetName,
|
|
2779
|
-
description: 'Automated changes from Snow-Flow MCP',
|
|
2780
|
-
state: 'in_progress'
|
|
2781
|
-
});
|
|
2782
|
-
if (newUpdateSet.success && newUpdateSet.data) {
|
|
2783
|
-
// Set it as current
|
|
2784
|
-
await this.setCurrentUpdateSet(newUpdateSet.data.sys_id);
|
|
2785
|
-
return newUpdateSet;
|
|
2786
|
-
}
|
|
2787
|
-
// If Update Set creation fails, continue without it
|
|
2788
|
-
console.warn('⚠️ Could not create Update Set, changes will not be tracked');
|
|
2789
|
-
return { success: false, error: 'Update Set creation failed' };
|
|
2790
|
-
}
|
|
2791
|
-
catch (error) {
|
|
2792
|
-
console.warn('⚠️ Update Set management failed:', error);
|
|
2793
|
-
return { success: false, error: error instanceof Error ? error.message : String(error) };
|
|
2794
|
-
}
|
|
2795
|
-
}
|
|
2796
|
-
async exportUpdateSet(updateSetId) {
|
|
2797
|
-
try {
|
|
2798
|
-
this.logger.info('📤 Exporting Update Set...');
|
|
2799
|
-
// Get Update Set details first
|
|
2800
|
-
const updateSetResponse = await this.getUpdateSet(updateSetId);
|
|
2801
|
-
if (!updateSetResponse.success) {
|
|
2802
|
-
return updateSetResponse;
|
|
2803
|
-
}
|
|
2804
|
-
// Use the unload processor to export
|
|
2805
|
-
const response = await this.client.get(`${this.getBaseUrl()}/unload.do`, {
|
|
2806
|
-
params: {
|
|
2807
|
-
sysparm_sys_id: updateSetId,
|
|
2808
|
-
sysparm_table: 'sys_update_set',
|
|
2809
|
-
sysparm_unload_format: 'xml'
|
|
2810
|
-
},
|
|
2811
|
-
responseType: 'text'
|
|
2812
|
-
});
|
|
2813
|
-
return {
|
|
2814
|
-
success: true,
|
|
2815
|
-
data: {
|
|
2816
|
-
name: updateSetResponse.data.name,
|
|
2817
|
-
xml: response.data,
|
|
2818
|
-
change_count: updateSetResponse.data.update_count || 0
|
|
2819
|
-
}
|
|
2820
|
-
};
|
|
2821
|
-
}
|
|
2822
|
-
catch (error) {
|
|
2823
|
-
console.error('❌ Failed to export Update Set:', error);
|
|
2824
|
-
return {
|
|
2825
|
-
success: false,
|
|
2826
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2827
|
-
};
|
|
2828
|
-
}
|
|
2829
|
-
}
|
|
2830
|
-
/**
|
|
2831
|
-
* Debug flow structure - check what's missing for Flow Designer
|
|
2832
|
-
*/
|
|
2833
|
-
async debugFlow(flowId) {
|
|
2834
|
-
try {
|
|
2835
|
-
this.logger.info('🔍 Debugging flow structure...');
|
|
2836
|
-
// Get the flow record
|
|
2837
|
-
const flowResponse = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_hub_flow/${flowId}`);
|
|
2838
|
-
if (!flowResponse.data.result) {
|
|
2839
|
-
return { success: false, error: 'Flow not found' };
|
|
2840
|
-
}
|
|
2841
|
-
const flow = flowResponse.data.result;
|
|
2842
|
-
// Check for sys_hub_flow_logic entries
|
|
2843
|
-
const logicResponse = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_hub_flow_logic?sysparm_query=flow=${flowId}`);
|
|
2844
|
-
// Check for trigger instances
|
|
2845
|
-
const triggerResponse = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_hub_trigger_instance?sysparm_query=flow=${flowId}`);
|
|
2846
|
-
// Check for action instances
|
|
2847
|
-
const actionResponse = await this.client.get(`${this.getBaseUrl()}/api/now/table/sys_hub_action_instance?sysparm_query=flow=${flowId}`);
|
|
2848
|
-
return {
|
|
2849
|
-
success: true,
|
|
2850
|
-
data: {
|
|
2851
|
-
flow: {
|
|
2852
|
-
sys_id: flow.sys_id,
|
|
2853
|
-
name: flow.name,
|
|
2854
|
-
internal_name: flow.internal_name,
|
|
2855
|
-
status: flow.status,
|
|
2856
|
-
type: flow.type,
|
|
2857
|
-
sys_class_name: flow.sys_class_name,
|
|
2858
|
-
missing_fields: []
|
|
2859
|
-
},
|
|
2860
|
-
logic_count: logicResponse.data.result.length,
|
|
2861
|
-
trigger_count: triggerResponse.data.result.length,
|
|
2862
|
-
action_count: actionResponse.data.result.length,
|
|
2863
|
-
logic_entries: logicResponse.data.result,
|
|
2864
|
-
triggers: triggerResponse.data.result,
|
|
2865
|
-
actions: actionResponse.data.result
|
|
2866
|
-
}
|
|
2867
|
-
};
|
|
2868
|
-
}
|
|
2869
|
-
catch (error) {
|
|
2870
|
-
return {
|
|
2871
|
-
success: false,
|
|
2872
|
-
error: error instanceof Error ? error.message : String(error)
|
|
2873
|
-
};
|
|
2874
|
-
}
|
|
2875
|
-
}
|
|
2876
|
-
/**
|
|
2877
|
-
* Create a flow logic entry (visual representation in Flow Designer)
|
|
2878
|
-
*/
|
|
2879
|
-
async createFlowLogic(flowId, logic) {
|
|
2880
|
-
try {
|
|
2881
|
-
const logicData = {
|
|
2882
|
-
flow: flowId,
|
|
2883
|
-
name: logic.name,
|
|
2884
|
-
type: logic.type,
|
|
2885
|
-
order: logic.order,
|
|
2886
|
-
active: true,
|
|
2887
|
-
instance: logic.instance
|
|
2888
|
-
};
|
|
2889
|
-
const response = await this.client.post(`${this.getBaseUrl()}/api/now/table/sys_hub_flow_logic`, logicData);
|
|
2890
|
-
return response.data.result;
|
|
2891
|
-
}
|
|
2892
|
-
catch (error) {
|
|
2893
|
-
console.error('Failed to create flow logic:', error);
|
|
2894
|
-
throw error;
|
|
2895
|
-
}
|
|
2896
|
-
}
|
|
2897
|
-
/**
|
|
2898
|
-
* Create a connection between flow logic elements
|
|
2899
|
-
*/
|
|
2900
|
-
async createFlowConnection(flowId, fromId, toId) {
|
|
2901
|
-
try {
|
|
2902
|
-
// In ServiceNow, connections are stored as part of the flow logic
|
|
2903
|
-
// We need to update the 'from' element to point to the 'to' element
|
|
2904
|
-
const connectionData = {
|
|
2905
|
-
next: toId
|
|
2906
|
-
};
|
|
2907
|
-
const response = await this.client.patch(`${this.getBaseUrl()}/api/now/table/sys_hub_flow_logic/${fromId}`, connectionData);
|
|
2908
|
-
return response.data.result;
|
|
2909
|
-
}
|
|
2910
|
-
catch (error) {
|
|
2911
|
-
console.error('Failed to create flow connection:', error);
|
|
2912
|
-
// Don't throw - connections might work differently in some versions
|
|
2913
|
-
return null;
|
|
2914
|
-
}
|
|
2915
|
-
}
|
|
2916
|
-
/**
|
|
2917
|
-
* Generic GET method for ServiceNow API calls
|
|
2918
|
-
*/
|
|
2919
|
-
async get(endpoint, params) {
|
|
2920
|
-
try {
|
|
2921
|
-
await this.ensureAuthenticated();
|
|
2922
|
-
const url = endpoint.startsWith('http') ? endpoint : `${this.getBaseUrl()}${endpoint}`;
|
|
2923
|
-
const response = await this.client.get(url, { params });
|
|
2924
|
-
return response.data;
|
|
2925
|
-
}
|
|
2926
|
-
catch (error) {
|
|
2927
|
-
throw error;
|
|
2928
|
-
}
|
|
2929
|
-
}
|
|
2930
|
-
/**
|
|
2931
|
-
* Generic POST method for ServiceNow API calls
|
|
2932
|
-
*/
|
|
2933
|
-
async post(endpoint, data) {
|
|
2934
|
-
try {
|
|
2935
|
-
await this.ensureAuthenticated();
|
|
2936
|
-
const url = endpoint.startsWith('http') ? endpoint : `${this.getBaseUrl()}${endpoint}`;
|
|
2937
|
-
const response = await this.client.post(url, data);
|
|
2938
|
-
return response.data;
|
|
2939
|
-
}
|
|
2940
|
-
catch (error) {
|
|
2941
|
-
throw error;
|
|
2942
|
-
}
|
|
2943
|
-
}
|
|
2944
|
-
/**
|
|
2945
|
-
* Generic PUT method for ServiceNow API calls
|
|
2946
|
-
*/
|
|
2947
|
-
async put(endpoint, data) {
|
|
2948
|
-
try {
|
|
2949
|
-
await this.ensureAuthenticated();
|
|
2950
|
-
const url = endpoint.startsWith('http') ? endpoint : `${this.getBaseUrl()}${endpoint}`;
|
|
2951
|
-
const response = await this.client.put(url, data);
|
|
2952
|
-
return response.data;
|
|
2953
|
-
}
|
|
2954
|
-
catch (error) {
|
|
2955
|
-
throw error;
|
|
2956
|
-
}
|
|
2957
|
-
}
|
|
2958
|
-
/**
|
|
2959
|
-
* Generic PATCH method for ServiceNow API calls
|
|
2960
|
-
*/
|
|
2961
|
-
async patch(endpoint, data) {
|
|
2962
|
-
try {
|
|
2963
|
-
await this.ensureAuthenticated();
|
|
2964
|
-
const url = endpoint.startsWith('http') ? endpoint : `${this.getBaseUrl()}${endpoint}`;
|
|
2965
|
-
const response = await this.client.patch(url, data);
|
|
2966
|
-
return response.data;
|
|
2967
|
-
}
|
|
2968
|
-
catch (error) {
|
|
2969
|
-
throw error;
|
|
2970
|
-
}
|
|
2971
|
-
}
|
|
2972
|
-
/**
|
|
2973
|
-
* Generic DELETE method for ServiceNow API calls
|
|
2974
|
-
*/
|
|
2975
|
-
async delete(endpoint) {
|
|
2976
|
-
try {
|
|
2977
|
-
await this.ensureAuthenticated();
|
|
2978
|
-
const url = endpoint.startsWith('http') ? endpoint : `${this.getBaseUrl()}${endpoint}`;
|
|
2979
|
-
const response = await this.client.delete(url);
|
|
2980
|
-
return response.data;
|
|
2981
|
-
}
|
|
2982
|
-
catch (error) {
|
|
2983
|
-
throw error;
|
|
2984
|
-
}
|
|
2985
|
-
}
|
|
2986
|
-
/**
|
|
2987
|
-
* TEMPORARY FIX: makeRequest method to handle phantom calls
|
|
2988
|
-
* This method provides compatibility for code that expects makeRequest
|
|
2989
|
-
*/
|
|
2990
|
-
async makeRequest(config) {
|
|
2991
|
-
// Debug logging removed - was causing noise in production
|
|
2992
|
-
try {
|
|
2993
|
-
await this.ensureAuthenticated();
|
|
2994
|
-
// Route the request to the appropriate HTTP method
|
|
2995
|
-
const method = (config.method || 'GET').toLowerCase();
|
|
2996
|
-
const url = config.url || config.endpoint;
|
|
2997
|
-
const data = config.data || config.body;
|
|
2998
|
-
switch (method) {
|
|
2999
|
-
case 'get':
|
|
3000
|
-
return await this.get(url, config.params);
|
|
3001
|
-
case 'post':
|
|
3002
|
-
return await this.post(url, data);
|
|
3003
|
-
case 'put':
|
|
3004
|
-
return await this.put(url, data);
|
|
3005
|
-
case 'patch':
|
|
3006
|
-
return await this.patch(url, data);
|
|
3007
|
-
case 'delete':
|
|
3008
|
-
return await this.delete(url);
|
|
3009
|
-
default:
|
|
3010
|
-
throw new Error(`Unsupported HTTP method: ${method}`);
|
|
3011
|
-
}
|
|
3012
|
-
}
|
|
3013
|
-
catch (error) {
|
|
3014
|
-
console.error('🔧 makeRequest error:', error);
|
|
3015
|
-
throw error;
|
|
3016
|
-
}
|
|
3017
|
-
}
|
|
3018
|
-
}
|
|
3019
|
-
exports.ServiceNowClient = ServiceNowClient;
|
|
3020
|
-
//# sourceMappingURL=servicenow-client.js.map
|