@ffschrattenecker/tm1-mcp-server 6.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +1211 -0
- package/LICENSE +21 -0
- package/NOTICE +34 -0
- package/README.md +276 -0
- package/dist/config.d.ts +35 -0
- package/dist/config.js +238 -0
- package/dist/http-transport.d.ts +8 -0
- package/dist/http-transport.js +132 -0
- package/dist/index.d.ts +18 -0
- package/dist/index.js +164 -0
- package/dist/lib/callgraph/callGraph.d.ts +124 -0
- package/dist/lib/callgraph/callGraph.js +334 -0
- package/dist/lib/callgraph/choreGraph.d.ts +23 -0
- package/dist/lib/callgraph/choreGraph.js +102 -0
- package/dist/lib/callgraph/dataFlow.d.ts +74 -0
- package/dist/lib/callgraph/dataFlow.js +271 -0
- package/dist/lib/callgraph/datasourceMembership.d.ts +31 -0
- package/dist/lib/callgraph/datasourceMembership.js +142 -0
- package/dist/lib/callgraph/lintTypes.d.ts +28 -0
- package/dist/lib/callgraph/lintTypes.js +2 -0
- package/dist/lib/callgraph/mdxMembers.d.ts +29 -0
- package/dist/lib/callgraph/mdxMembers.js +97 -0
- package/dist/lib/callgraph/referenceIndex.d.ts +179 -0
- package/dist/lib/callgraph/referenceIndex.js +584 -0
- package/dist/lib/callgraph/rulesLinter.d.ts +55 -0
- package/dist/lib/callgraph/rulesLinter.js +776 -0
- package/dist/lib/callgraph/rulesParser.d.ts +26 -0
- package/dist/lib/callgraph/rulesParser.js +71 -0
- package/dist/lib/callgraph/subsetUsage.d.ts +16 -0
- package/dist/lib/callgraph/subsetUsage.js +134 -0
- package/dist/lib/callgraph/tiParser.d.ts +21 -0
- package/dist/lib/callgraph/tiParser.js +672 -0
- package/dist/lib/callgraph/tiSignatures.d.ts +32 -0
- package/dist/lib/callgraph/tiSignatures.js +6185 -0
- package/dist/lib/callgraph/tm1-adapter.d.ts +32 -0
- package/dist/lib/callgraph/tm1-adapter.js +159 -0
- package/dist/lib/callgraph/types.d.ts +53 -0
- package/dist/lib/callgraph/types.js +2 -0
- package/dist/lib/callgraph/variableEnv.d.ts +86 -0
- package/dist/lib/callgraph/variableEnv.js +214 -0
- package/dist/lib/cell-address.d.ts +12 -0
- package/dist/lib/cell-address.js +71 -0
- package/dist/lib/complexity/antipatterns.d.ts +22 -0
- package/dist/lib/complexity/antipatterns.js +302 -0
- package/dist/lib/complexity/comment-classifier.d.ts +24 -0
- package/dist/lib/complexity/comment-classifier.js +43 -0
- package/dist/lib/complexity/cross-process.d.ts +78 -0
- package/dist/lib/complexity/cross-process.js +114 -0
- package/dist/lib/complexity/process-metrics.d.ts +78 -0
- package/dist/lib/complexity/process-metrics.js +278 -0
- package/dist/lib/complexity/rules-metrics.d.ts +31 -0
- package/dist/lib/complexity/rules-metrics.js +99 -0
- package/dist/lib/concurrency.d.ts +11 -0
- package/dist/lib/concurrency.js +27 -0
- package/dist/lib/control-name.d.ts +10 -0
- package/dist/lib/control-name.js +10 -0
- package/dist/lib/coordinate-error.d.ts +3 -0
- package/dist/lib/coordinate-error.js +29 -0
- package/dist/lib/credential-format.d.ts +23 -0
- package/dist/lib/credential-format.js +25 -0
- package/dist/lib/cube-stats/fetcher.d.ts +106 -0
- package/dist/lib/cube-stats/fetcher.js +194 -0
- package/dist/lib/feeders/brackets.d.ts +47 -0
- package/dist/lib/feeders/brackets.js +195 -0
- package/dist/lib/feeders/element-type-cache.d.ts +42 -0
- package/dist/lib/feeders/element-type-cache.js +86 -0
- package/dist/lib/feeders/static-heuristics.d.ts +101 -0
- package/dist/lib/feeders/static-heuristics.js +202 -0
- package/dist/lib/git-process.d.ts +67 -0
- package/dist/lib/git-process.js +243 -0
- package/dist/lib/mask-secrets.d.ts +10 -0
- package/dist/lib/mask-secrets.js +99 -0
- package/dist/lib/mdx.d.ts +3 -0
- package/dist/lib/mdx.js +13 -0
- package/dist/lib/naming/odata-filter.d.ts +15 -0
- package/dist/lib/naming/odata-filter.js +81 -0
- package/dist/lib/naming/rules.d.ts +34 -0
- package/dist/lib/naming/rules.js +215 -0
- package/dist/lib/pro-parser.d.ts +19 -0
- package/dist/lib/pro-parser.js +260 -0
- package/dist/lib/pro-serializer.d.ts +19 -0
- package/dist/lib/pro-serializer.js +170 -0
- package/dist/lib/process-parts-schema.d.ts +45 -0
- package/dist/lib/process-parts-schema.js +46 -0
- package/dist/lib/process-refs.d.ts +88 -0
- package/dist/lib/process-refs.js +441 -0
- package/dist/lib/rules-outline.d.ts +29 -0
- package/dist/lib/rules-outline.js +68 -0
- package/dist/lib/rules-patch.d.ts +6 -0
- package/dist/lib/rules-patch.js +59 -0
- package/dist/lib/safe-regex.d.ts +15 -0
- package/dist/lib/safe-regex.js +37 -0
- package/dist/lib/sample-cells.d.ts +48 -0
- package/dist/lib/sample-cells.js +146 -0
- package/dist/lib/slim-json-schema.d.ts +20 -0
- package/dist/lib/slim-json-schema.js +68 -0
- package/dist/lib/strip-comments.d.ts +23 -0
- package/dist/lib/strip-comments.js +61 -0
- package/dist/lib/tm1-events.d.ts +16 -0
- package/dist/lib/tm1-events.js +29 -0
- package/dist/lib/v12-compat/deprecated-ti.d.ts +17 -0
- package/dist/lib/v12-compat/deprecated-ti.js +257 -0
- package/dist/lib/v12-compat/scanner.d.ts +10 -0
- package/dist/lib/v12-compat/scanner.js +43 -0
- package/dist/lib/variables-ui-data.d.ts +26 -0
- package/dist/lib/variables-ui-data.js +77 -0
- package/dist/load-env.d.ts +2 -0
- package/dist/load-env.js +29 -0
- package/dist/logger.d.ts +4 -0
- package/dist/logger.js +60 -0
- package/dist/prompts/index.d.ts +3 -0
- package/dist/prompts/index.js +141 -0
- package/dist/resources/index.d.ts +5 -0
- package/dist/resources/index.js +237 -0
- package/dist/resources/list-handler.d.ts +40 -0
- package/dist/resources/list-handler.js +86 -0
- package/dist/resources/subscriptions.d.ts +19 -0
- package/dist/resources/subscriptions.js +80 -0
- package/dist/schemas/cells.d.ts +17 -0
- package/dist/schemas/cells.js +13 -0
- package/dist/schemas/common.d.ts +16 -0
- package/dist/schemas/common.js +14 -0
- package/dist/schemas/index.d.ts +10 -0
- package/dist/schemas/index.js +23 -0
- package/dist/schemas/metadata.d.ts +70 -0
- package/dist/schemas/metadata.js +47 -0
- package/dist/schemas/monitoring.d.ts +95 -0
- package/dist/schemas/monitoring.js +69 -0
- package/dist/schemas/processes.d.ts +74 -0
- package/dist/schemas/processes.js +66 -0
- package/dist/schemas/scheduling.d.ts +13 -0
- package/dist/schemas/scheduling.js +13 -0
- package/dist/schemas/security.d.ts +19 -0
- package/dist/schemas/security.js +16 -0
- package/dist/schemas/subsets.d.ts +12 -0
- package/dist/schemas/subsets.js +12 -0
- package/dist/schemas/views.d.ts +9 -0
- package/dist/schemas/views.js +9 -0
- package/dist/session-manager.d.ts +79 -0
- package/dist/session-manager.js +281 -0
- package/dist/tm1-client/connection/profile.d.ts +13 -0
- package/dist/tm1-client/connection/profile.js +99 -0
- package/dist/tm1-client/dispatcher.d.ts +5 -0
- package/dist/tm1-client/dispatcher.js +31 -0
- package/dist/tm1-client/http.d.ts +81 -0
- package/dist/tm1-client/http.js +547 -0
- package/dist/tm1-client/services/batch-service.d.ts +123 -0
- package/dist/tm1-client/services/batch-service.js +455 -0
- package/dist/tm1-client/services/cell-service.d.ts +71 -0
- package/dist/tm1-client/services/cell-service.js +333 -0
- package/dist/tm1-client/services/cellset-transform.d.ts +26 -0
- package/dist/tm1-client/services/cellset-transform.js +80 -0
- package/dist/tm1-client/services/chore-service.d.ts +68 -0
- package/dist/tm1-client/services/chore-service.js +179 -0
- package/dist/tm1-client/services/chore-status.d.ts +11 -0
- package/dist/tm1-client/services/chore-status.js +127 -0
- package/dist/tm1-client/services/cube-service.d.ts +134 -0
- package/dist/tm1-client/services/cube-service.js +294 -0
- package/dist/tm1-client/services/dimension-service.d.ts +118 -0
- package/dist/tm1-client/services/dimension-service.js +249 -0
- package/dist/tm1-client/services/element-service.d.ts +245 -0
- package/dist/tm1-client/services/element-service.js +809 -0
- package/dist/tm1-client/services/fallback.d.ts +44 -0
- package/dist/tm1-client/services/fallback.js +72 -0
- package/dist/tm1-client/services/file-service.d.ts +53 -0
- package/dist/tm1-client/services/file-service.js +218 -0
- package/dist/tm1-client/services/hierarchy-service.d.ts +129 -0
- package/dist/tm1-client/services/hierarchy-service.js +332 -0
- package/dist/tm1-client/services/monitoring-service.d.ts +34 -0
- package/dist/tm1-client/services/monitoring-service.js +123 -0
- package/dist/tm1-client/services/odata-page.d.ts +71 -0
- package/dist/tm1-client/services/odata-page.js +87 -0
- package/dist/tm1-client/services/process-service.d.ts +278 -0
- package/dist/tm1-client/services/process-service.js +874 -0
- package/dist/tm1-client/services/process-status.d.ts +21 -0
- package/dist/tm1-client/services/process-status.js +89 -0
- package/dist/tm1-client/services/security-service.d.ts +50 -0
- package/dist/tm1-client/services/security-service.js +93 -0
- package/dist/tm1-client/services/server-service.d.ts +116 -0
- package/dist/tm1-client/services/server-service.js +504 -0
- package/dist/tm1-client/services/subset-service.d.ts +37 -0
- package/dist/tm1-client/services/subset-service.js +122 -0
- package/dist/tm1-client/services/view-service.d.ts +46 -0
- package/dist/tm1-client/services/view-service.js +287 -0
- package/dist/tm1-client.d.ts +56 -0
- package/dist/tm1-client.js +126 -0
- package/dist/tools/analysis/analyze-callgraph.d.ts +28 -0
- package/dist/tools/analysis/analyze-callgraph.js +350 -0
- package/dist/tools/analysis/analyze-chore-graph.d.ts +2 -0
- package/dist/tools/analysis/analyze-chore-graph.js +148 -0
- package/dist/tools/analysis/analyze-object-usage.d.ts +2 -0
- package/dist/tools/analysis/analyze-object-usage.js +143 -0
- package/dist/tools/analysis/audit-complexity.d.ts +2 -0
- package/dist/tools/analysis/audit-complexity.js +255 -0
- package/dist/tools/analysis/audit-feeders.d.ts +2 -0
- package/dist/tools/analysis/audit-feeders.js +417 -0
- package/dist/tools/analysis/audit-naming.d.ts +2 -0
- package/dist/tools/analysis/audit-naming.js +379 -0
- package/dist/tools/analysis/check-v12-readiness.d.ts +2 -0
- package/dist/tools/analysis/check-v12-readiness.js +136 -0
- package/dist/tools/analysis/find-orphan-dimensions.d.ts +2 -0
- package/dist/tools/analysis/find-orphan-dimensions.js +55 -0
- package/dist/tools/analysis/invalidate-callgraph-cache.d.ts +2 -0
- package/dist/tools/analysis/invalidate-callgraph-cache.js +40 -0
- package/dist/tools/analysis/trace-data-flow.d.ts +2 -0
- package/dist/tools/analysis/trace-data-flow.js +138 -0
- package/dist/tools/annotations.d.ts +12 -0
- package/dist/tools/annotations.js +61 -0
- package/dist/tools/celldata/check-feeders.d.ts +2 -0
- package/dist/tools/celldata/check-feeders.js +48 -0
- package/dist/tools/celldata/check-writable-coords.d.ts +2 -0
- package/dist/tools/celldata/check-writable-coords.js +126 -0
- package/dist/tools/celldata/execute-mdx.d.ts +17 -0
- package/dist/tools/celldata/execute-mdx.js +126 -0
- package/dist/tools/celldata/get-cell-value.d.ts +2 -0
- package/dist/tools/celldata/get-cell-value.js +30 -0
- package/dist/tools/celldata/get-view-definition.d.ts +2 -0
- package/dist/tools/celldata/get-view-definition.js +29 -0
- package/dist/tools/celldata/get-view.d.ts +2 -0
- package/dist/tools/celldata/get-view.js +55 -0
- package/dist/tools/celldata/sample-cells.d.ts +2 -0
- package/dist/tools/celldata/sample-cells.js +101 -0
- package/dist/tools/celldata/trace-cell-calculation.d.ts +2 -0
- package/dist/tools/celldata/trace-cell-calculation.js +53 -0
- package/dist/tools/celldata/trace-feeders.d.ts +2 -0
- package/dist/tools/celldata/trace-feeders.js +44 -0
- package/dist/tools/celldata/write-cells.d.ts +2 -0
- package/dist/tools/celldata/write-cells.js +65 -0
- package/dist/tools/confirm.d.ts +10 -0
- package/dist/tools/confirm.js +64 -0
- package/dist/tools/define-tool.d.ts +51 -0
- package/dist/tools/define-tool.js +49 -0
- package/dist/tools/dimension-management/bulk-upsert-elements.d.ts +2 -0
- package/dist/tools/dimension-management/bulk-upsert-elements.js +103 -0
- package/dist/tools/dimension-management/create-dimension.d.ts +2 -0
- package/dist/tools/dimension-management/create-dimension.js +22 -0
- package/dist/tools/dimension-management/create-element-attribute.d.ts +2 -0
- package/dist/tools/dimension-management/create-element-attribute.js +26 -0
- package/dist/tools/dimension-management/create-element.d.ts +2 -0
- package/dist/tools/dimension-management/create-element.js +31 -0
- package/dist/tools/dimension-management/create-hierarchy.d.ts +2 -0
- package/dist/tools/dimension-management/create-hierarchy.js +22 -0
- package/dist/tools/dimension-management/delete-dimension.d.ts +2 -0
- package/dist/tools/dimension-management/delete-dimension.js +25 -0
- package/dist/tools/dimension-management/delete-element.d.ts +2 -0
- package/dist/tools/dimension-management/delete-element.js +26 -0
- package/dist/tools/dimension-management/delete-elements.d.ts +2 -0
- package/dist/tools/dimension-management/delete-elements.js +44 -0
- package/dist/tools/dimension-management/delete-hierarchy.d.ts +2 -0
- package/dist/tools/dimension-management/delete-hierarchy.js +35 -0
- package/dist/tools/dimension-management/get-element-attribute-values.d.ts +2 -0
- package/dist/tools/dimension-management/get-element-attribute-values.js +77 -0
- package/dist/tools/dimension-management/list-element-attributes.d.ts +2 -0
- package/dist/tools/dimension-management/list-element-attributes.js +31 -0
- package/dist/tools/dimension-management/move-element.d.ts +2 -0
- package/dist/tools/dimension-management/move-element.js +28 -0
- package/dist/tools/dimension-management/update-element-attribute-value.d.ts +2 -0
- package/dist/tools/dimension-management/update-element-attribute-value.js +80 -0
- package/dist/tools/dimension-management/update-element.d.ts +2 -0
- package/dist/tools/dimension-management/update-element.js +35 -0
- package/dist/tools/error-format.d.ts +22 -0
- package/dist/tools/error-format.js +130 -0
- package/dist/tools/fileops/delete-file.d.ts +2 -0
- package/dist/tools/fileops/delete-file.js +32 -0
- package/dist/tools/fileops/get-file-content.d.ts +2 -0
- package/dist/tools/fileops/get-file-content.js +76 -0
- package/dist/tools/fileops/list-files.d.ts +2 -0
- package/dist/tools/fileops/list-files.js +43 -0
- package/dist/tools/fileops/search-files.d.ts +2 -0
- package/dist/tools/fileops/search-files.js +76 -0
- package/dist/tools/fileops/upload-file.d.ts +2 -0
- package/dist/tools/fileops/upload-file.js +69 -0
- package/dist/tools/format.d.ts +57 -0
- package/dist/tools/format.js +157 -0
- package/dist/tools/hierarchy.d.ts +6 -0
- package/dist/tools/hierarchy.js +27 -0
- package/dist/tools/index.d.ts +4 -0
- package/dist/tools/index.js +263 -0
- package/dist/tools/local-file.d.ts +16 -0
- package/dist/tools/local-file.js +88 -0
- package/dist/tools/metadata/get-ancestors.d.ts +2 -0
- package/dist/tools/metadata/get-ancestors.js +36 -0
- package/dist/tools/metadata/get-descendants.d.ts +2 -0
- package/dist/tools/metadata/get-descendants.js +64 -0
- package/dist/tools/metadata/get-hierarchy.d.ts +2 -0
- package/dist/tools/metadata/get-hierarchy.js +130 -0
- package/dist/tools/metadata/list-chores.d.ts +2 -0
- package/dist/tools/metadata/list-chores.js +62 -0
- package/dist/tools/metadata/list-cubes.d.ts +2 -0
- package/dist/tools/metadata/list-cubes.js +128 -0
- package/dist/tools/metadata/list-dimensions.d.ts +2 -0
- package/dist/tools/metadata/list-dimensions.js +131 -0
- package/dist/tools/metadata/list-processes-grouped.d.ts +2 -0
- package/dist/tools/metadata/list-processes-grouped.js +96 -0
- package/dist/tools/metadata/list-processes.d.ts +2 -0
- package/dist/tools/metadata/list-processes.js +108 -0
- package/dist/tools/metadata/resolve-default-members.d.ts +2 -0
- package/dist/tools/metadata/resolve-default-members.js +46 -0
- package/dist/tools/model-building/check-cube-rule.d.ts +2 -0
- package/dist/tools/model-building/check-cube-rule.js +51 -0
- package/dist/tools/model-building/clear-cube.d.ts +2 -0
- package/dist/tools/model-building/clear-cube.js +46 -0
- package/dist/tools/model-building/create-cube.d.ts +2 -0
- package/dist/tools/model-building/create-cube.js +34 -0
- package/dist/tools/model-building/delete-cube.d.ts +2 -0
- package/dist/tools/model-building/delete-cube.js +27 -0
- package/dist/tools/model-building/get-all-cube-rules.d.ts +2 -0
- package/dist/tools/model-building/get-all-cube-rules.js +149 -0
- package/dist/tools/model-building/get-cube-rules.d.ts +2 -0
- package/dist/tools/model-building/get-cube-rules.js +69 -0
- package/dist/tools/model-building/rules-source.d.ts +21 -0
- package/dist/tools/model-building/rules-source.js +49 -0
- package/dist/tools/model-building/search-rules.d.ts +2 -0
- package/dist/tools/model-building/search-rules.js +132 -0
- package/dist/tools/model-building/set-cube-rules.d.ts +2 -0
- package/dist/tools/model-building/set-cube-rules.js +81 -0
- package/dist/tools/model-building/unload-cube.d.ts +2 -0
- package/dist/tools/model-building/unload-cube.js +23 -0
- package/dist/tools/operations/diagnose-process-error.d.ts +2 -0
- package/dist/tools/operations/diagnose-process-error.js +178 -0
- package/dist/tools/operations/error-log-helpers.d.ts +25 -0
- package/dist/tools/operations/error-log-helpers.js +57 -0
- package/dist/tools/operations/get-audit-log.d.ts +2 -0
- package/dist/tools/operations/get-audit-log.js +70 -0
- package/dist/tools/operations/get-cube-stats.d.ts +2 -0
- package/dist/tools/operations/get-cube-stats.js +107 -0
- package/dist/tools/operations/get-error-log-content.d.ts +2 -0
- package/dist/tools/operations/get-error-log-content.js +164 -0
- package/dist/tools/operations/get-jobs.d.ts +3 -0
- package/dist/tools/operations/get-jobs.js +51 -0
- package/dist/tools/operations/get-message-log.d.ts +2 -0
- package/dist/tools/operations/get-message-log.js +63 -0
- package/dist/tools/operations/get-server-info.d.ts +2 -0
- package/dist/tools/operations/get-server-info.js +180 -0
- package/dist/tools/operations/get-server-state.d.ts +2 -0
- package/dist/tools/operations/get-server-state.js +129 -0
- package/dist/tools/operations/get-sessions.d.ts +2 -0
- package/dist/tools/operations/get-sessions.js +76 -0
- package/dist/tools/operations/get-threads.d.ts +3 -0
- package/dist/tools/operations/get-threads.js +50 -0
- package/dist/tools/operations/get-transaction-log.d.ts +2 -0
- package/dist/tools/operations/get-transaction-log.js +63 -0
- package/dist/tools/operations/list-error-logs.d.ts +8 -0
- package/dist/tools/operations/list-error-logs.js +157 -0
- package/dist/tools/operations/save-data.d.ts +2 -0
- package/dist/tools/operations/save-data.js +50 -0
- package/dist/tools/pagination.d.ts +32 -0
- package/dist/tools/pagination.js +116 -0
- package/dist/tools/scheduling/create-chore.d.ts +2 -0
- package/dist/tools/scheduling/create-chore.js +93 -0
- package/dist/tools/scheduling/delete-chore.d.ts +2 -0
- package/dist/tools/scheduling/delete-chore.js +22 -0
- package/dist/tools/scheduling/execute-chore.d.ts +2 -0
- package/dist/tools/scheduling/execute-chore.js +52 -0
- package/dist/tools/scheduling/toggle-chore.d.ts +2 -0
- package/dist/tools/scheduling/toggle-chore.js +22 -0
- package/dist/tools/scheduling/update-chore.d.ts +2 -0
- package/dist/tools/scheduling/update-chore.js +71 -0
- package/dist/tools/schemas/common.d.ts +10 -0
- package/dist/tools/schemas/common.js +23 -0
- package/dist/tools/schemas/items-analysis.d.ts +394 -0
- package/dist/tools/schemas/items-analysis.js +419 -0
- package/dist/tools/schemas/items-cells.d.ts +70 -0
- package/dist/tools/schemas/items-cells.js +65 -0
- package/dist/tools/schemas/items-common.d.ts +18 -0
- package/dist/tools/schemas/items-common.js +39 -0
- package/dist/tools/schemas/items-fileops.d.ts +11 -0
- package/dist/tools/schemas/items-fileops.js +13 -0
- package/dist/tools/schemas/items-metadata.d.ts +262 -0
- package/dist/tools/schemas/items-metadata.js +184 -0
- package/dist/tools/schemas/items-monitoring.d.ts +79 -0
- package/dist/tools/schemas/items-monitoring.js +78 -0
- package/dist/tools/schemas/items-processes.d.ts +279 -0
- package/dist/tools/schemas/items-processes.js +235 -0
- package/dist/tools/schemas/items-scheduling.d.ts +25 -0
- package/dist/tools/schemas/items-scheduling.js +26 -0
- package/dist/tools/schemas/items-security.d.ts +19 -0
- package/dist/tools/schemas/items-security.js +12 -0
- package/dist/tools/schemas/items-subsets.d.ts +2 -0
- package/dist/tools/schemas/items-subsets.js +4 -0
- package/dist/tools/schemas/items-views.d.ts +38 -0
- package/dist/tools/schemas/items-views.js +26 -0
- package/dist/tools/schemas/items.d.ts +12 -0
- package/dist/tools/schemas/items.js +23 -0
- package/dist/tools/schemas/markdown-capable.d.ts +21 -0
- package/dist/tools/schemas/markdown-capable.js +58 -0
- package/dist/tools/schemas/output-schema.d.ts +24 -0
- package/dist/tools/schemas/output-schema.js +25 -0
- package/dist/tools/security/assign-client-group.d.ts +2 -0
- package/dist/tools/security/assign-client-group.js +20 -0
- package/dist/tools/security/create-client.d.ts +2 -0
- package/dist/tools/security/create-client.js +28 -0
- package/dist/tools/security/delete-client.d.ts +2 -0
- package/dist/tools/security/delete-client.js +22 -0
- package/dist/tools/security/get-client.d.ts +2 -0
- package/dist/tools/security/get-client.js +20 -0
- package/dist/tools/security/list-clients.d.ts +2 -0
- package/dist/tools/security/list-clients.js +86 -0
- package/dist/tools/security/list-groups.d.ts +2 -0
- package/dist/tools/security/list-groups.js +43 -0
- package/dist/tools/security/remove-client-group.d.ts +2 -0
- package/dist/tools/security/remove-client-group.js +27 -0
- package/dist/tools/security/update-client.d.ts +2 -0
- package/dist/tools/security/update-client.js +22 -0
- package/dist/tools/subsets/create-subset.d.ts +2 -0
- package/dist/tools/subsets/create-subset.js +44 -0
- package/dist/tools/subsets/delete-subset.d.ts +2 -0
- package/dist/tools/subsets/delete-subset.js +26 -0
- package/dist/tools/subsets/get-subset.d.ts +2 -0
- package/dist/tools/subsets/get-subset.js +29 -0
- package/dist/tools/subsets/list-subsets.d.ts +2 -0
- package/dist/tools/subsets/list-subsets.js +36 -0
- package/dist/tools/subsets/update-subset.d.ts +2 -0
- package/dist/tools/subsets/update-subset.js +33 -0
- package/dist/tools/ti-development/check-process-code.d.ts +2 -0
- package/dist/tools/ti-development/check-process-code.js +96 -0
- package/dist/tools/ti-development/compile-process.d.ts +2 -0
- package/dist/tools/ti-development/compile-process.js +32 -0
- package/dist/tools/ti-development/copy-process.d.ts +2 -0
- package/dist/tools/ti-development/copy-process.js +32 -0
- package/dist/tools/ti-development/delete-process.d.ts +2 -0
- package/dist/tools/ti-development/delete-process.js +26 -0
- package/dist/tools/ti-development/diff-process-with-file.d.ts +2 -0
- package/dist/tools/ti-development/diff-process-with-file.js +208 -0
- package/dist/tools/ti-development/diff-processes.d.ts +2 -0
- package/dist/tools/ti-development/diff-processes.js +312 -0
- package/dist/tools/ti-development/execute-process.d.ts +8 -0
- package/dist/tools/ti-development/execute-process.js +109 -0
- package/dist/tools/ti-development/export-process-to-git.d.ts +2 -0
- package/dist/tools/ti-development/export-process-to-git.js +113 -0
- package/dist/tools/ti-development/export-process-to-pro.d.ts +2 -0
- package/dist/tools/ti-development/export-process-to-pro.js +117 -0
- package/dist/tools/ti-development/get-all-processes-code.d.ts +2 -0
- package/dist/tools/ti-development/get-all-processes-code.js +131 -0
- package/dist/tools/ti-development/get-process-code.d.ts +2 -0
- package/dist/tools/ti-development/get-process-code.js +100 -0
- package/dist/tools/ti-development/get-process-datasource.d.ts +2 -0
- package/dist/tools/ti-development/get-process-datasource.js +20 -0
- package/dist/tools/ti-development/get-process-parameters.d.ts +2 -0
- package/dist/tools/ti-development/get-process-parameters.js +25 -0
- package/dist/tools/ti-development/get-process-variables.d.ts +2 -0
- package/dist/tools/ti-development/get-process-variables.js +38 -0
- package/dist/tools/ti-development/get-process.d.ts +2 -0
- package/dist/tools/ti-development/get-process.js +163 -0
- package/dist/tools/ti-development/import-pro-file.d.ts +2 -0
- package/dist/tools/ti-development/import-pro-file.js +153 -0
- package/dist/tools/ti-development/import-process-from-git.d.ts +2 -0
- package/dist/tools/ti-development/import-process-from-git.js +198 -0
- package/dist/tools/ti-development/install-pro-bundle.d.ts +2 -0
- package/dist/tools/ti-development/install-pro-bundle.js +288 -0
- package/dist/tools/ti-development/preflight.d.ts +39 -0
- package/dist/tools/ti-development/preflight.js +56 -0
- package/dist/tools/ti-development/process-backup.d.ts +29 -0
- package/dist/tools/ti-development/process-backup.js +118 -0
- package/dist/tools/ti-development/search-code.d.ts +2 -0
- package/dist/tools/ti-development/search-code.js +208 -0
- package/dist/tools/ti-development/upsert-process.d.ts +2 -0
- package/dist/tools/ti-development/upsert-process.js +167 -0
- package/dist/tools/ti-development/validate-process-refs.d.ts +2 -0
- package/dist/tools/ti-development/validate-process-refs.js +73 -0
- package/dist/tools/views/create-mdx-view.d.ts +2 -0
- package/dist/tools/views/create-mdx-view.js +21 -0
- package/dist/tools/views/create-native-view.d.ts +2 -0
- package/dist/tools/views/create-native-view.js +81 -0
- package/dist/tools/views/delete-view.d.ts +2 -0
- package/dist/tools/views/delete-view.js +23 -0
- package/dist/tools/views/list-views.d.ts +2 -0
- package/dist/tools/views/list-views.js +32 -0
- package/dist/tools/with-annotations.d.ts +6 -0
- package/dist/tools/with-annotations.js +339 -0
- package/dist/types.d.ts +409 -0
- package/dist/types.js +91 -0
- package/dist/version.d.ts +4 -0
- package/dist/version.js +18 -0
- package/package.json +107 -0
|
@@ -0,0 +1,262 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export { ElementAttributeValueSchema, ElementStatsSchema, } from "../../schemas/metadata.js";
|
|
3
|
+
export declare const CubeItemSchema: z.ZodObject<{
|
|
4
|
+
name: z.ZodString;
|
|
5
|
+
dimensions: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
6
|
+
hasRules: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const DimensionItemSchema: z.ZodObject<{
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
hierarchies: z.ZodArray<z.ZodString>;
|
|
11
|
+
elementCounts: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodNumber>>;
|
|
12
|
+
elementStats: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
13
|
+
total: z.ZodNumber;
|
|
14
|
+
numeric: z.ZodNumber;
|
|
15
|
+
consolidated: z.ZodNumber;
|
|
16
|
+
string: z.ZodNumber;
|
|
17
|
+
maxLevel: z.ZodNumber;
|
|
18
|
+
}, z.core.$strip>>>;
|
|
19
|
+
lastUpdated: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export declare const HierarchyElementSchema: z.ZodObject<{
|
|
22
|
+
name: z.ZodString;
|
|
23
|
+
type: z.ZodEnum<{
|
|
24
|
+
Numeric: "Numeric";
|
|
25
|
+
String: "String";
|
|
26
|
+
Consolidated: "Consolidated";
|
|
27
|
+
}>;
|
|
28
|
+
level: z.ZodNumber;
|
|
29
|
+
parents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
30
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
31
|
+
name: z.ZodString;
|
|
32
|
+
weight: z.ZodNumber;
|
|
33
|
+
}, z.core.$strip>>>;
|
|
34
|
+
}, z.core.$strip>;
|
|
35
|
+
export declare const HierarchySchema: z.ZodObject<{
|
|
36
|
+
name: z.ZodString;
|
|
37
|
+
dimensionName: z.ZodString;
|
|
38
|
+
elements: z.ZodArray<z.ZodObject<{
|
|
39
|
+
name: z.ZodString;
|
|
40
|
+
type: z.ZodEnum<{
|
|
41
|
+
Numeric: "Numeric";
|
|
42
|
+
String: "String";
|
|
43
|
+
Consolidated: "Consolidated";
|
|
44
|
+
}>;
|
|
45
|
+
level: z.ZodNumber;
|
|
46
|
+
parents: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
47
|
+
children: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
48
|
+
name: z.ZodString;
|
|
49
|
+
weight: z.ZodNumber;
|
|
50
|
+
}, z.core.$strip>>>;
|
|
51
|
+
}, z.core.$strip>>;
|
|
52
|
+
total: z.ZodNumber;
|
|
53
|
+
offset: z.ZodNumber;
|
|
54
|
+
has_more: z.ZodBoolean;
|
|
55
|
+
truncated: z.ZodBoolean;
|
|
56
|
+
counts: z.ZodOptional<z.ZodObject<{
|
|
57
|
+
byType: z.ZodObject<{
|
|
58
|
+
Numeric: z.ZodNumber;
|
|
59
|
+
String: z.ZodNumber;
|
|
60
|
+
Consolidated: z.ZodNumber;
|
|
61
|
+
}, z.core.$strip>;
|
|
62
|
+
byLevel: z.ZodRecord<z.ZodString, z.ZodNumber>;
|
|
63
|
+
maxLevel: z.ZodNumber;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
}, z.core.$strip>;
|
|
66
|
+
export declare const BulkUpsertElementsResultSchema: z.ZodObject<{
|
|
67
|
+
success: z.ZodBoolean;
|
|
68
|
+
dimension: z.ZodString;
|
|
69
|
+
hierarchy: z.ZodString;
|
|
70
|
+
totalElements: z.ZodNumber;
|
|
71
|
+
counts: z.ZodObject<{
|
|
72
|
+
N: z.ZodNumber;
|
|
73
|
+
C: z.ZodNumber;
|
|
74
|
+
S: z.ZodNumber;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
}, z.core.$strip>;
|
|
77
|
+
export declare const ElementAttributeDefinitionSchema: z.ZodObject<{
|
|
78
|
+
name: z.ZodString;
|
|
79
|
+
type: z.ZodEnum<{
|
|
80
|
+
Numeric: "Numeric";
|
|
81
|
+
String: "String";
|
|
82
|
+
Alias: "Alias";
|
|
83
|
+
}>;
|
|
84
|
+
}, z.core.$strip>;
|
|
85
|
+
export declare const CubeRulesSchema: z.ZodObject<{
|
|
86
|
+
cubeName: z.ZodString;
|
|
87
|
+
skipCheck: z.ZodBoolean;
|
|
88
|
+
rulesText: z.ZodOptional<z.ZodString>;
|
|
89
|
+
lineCount: z.ZodOptional<z.ZodNumber>;
|
|
90
|
+
ruleCount: z.ZodOptional<z.ZodNumber>;
|
|
91
|
+
feederCount: z.ZodOptional<z.ZodNumber>;
|
|
92
|
+
commentLineCount: z.ZodOptional<z.ZodNumber>;
|
|
93
|
+
referencedCubes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
94
|
+
outline: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
95
|
+
line: z.ZodNumber;
|
|
96
|
+
text: z.ZodString;
|
|
97
|
+
}, z.core.$strip>>>;
|
|
98
|
+
outlineTruncated: z.ZodOptional<z.ZodBoolean>;
|
|
99
|
+
lineRange: z.ZodOptional<z.ZodArray<z.ZodNumber>>;
|
|
100
|
+
}, z.core.$strip>;
|
|
101
|
+
export declare const CubeStatsItemSchema: z.ZodObject<{
|
|
102
|
+
cubeName: z.ZodString;
|
|
103
|
+
populatedNumeric: z.ZodOptional<z.ZodNumber>;
|
|
104
|
+
populatedString: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
storedCalculated: z.ZodOptional<z.ZodNumber>;
|
|
106
|
+
storedViews: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
fedCells: z.ZodOptional<z.ZodNumber>;
|
|
108
|
+
memoryViews: z.ZodOptional<z.ZodNumber>;
|
|
109
|
+
memoryInput: z.ZodOptional<z.ZodNumber>;
|
|
110
|
+
memoryFeeders: z.ZodOptional<z.ZodNumber>;
|
|
111
|
+
memoryCalculations: z.ZodOptional<z.ZodNumber>;
|
|
112
|
+
memoryTotal: z.ZodOptional<z.ZodNumber>;
|
|
113
|
+
avgCalculationSteps: z.ZodOptional<z.ZodNumber>;
|
|
114
|
+
cacheMissRate: z.ZodOptional<z.ZodNumber>;
|
|
115
|
+
feederEfficiency: z.ZodOptional<z.ZodNumber>;
|
|
116
|
+
raw: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
117
|
+
error: z.ZodOptional<z.ZodString>;
|
|
118
|
+
}, z.core.$loose>;
|
|
119
|
+
export declare const StatsUnavailableSchema: z.ZodObject<{
|
|
120
|
+
reason: z.ZodEnum<{
|
|
121
|
+
absent: "absent";
|
|
122
|
+
denied: "denied";
|
|
123
|
+
}>;
|
|
124
|
+
message: z.ZodString;
|
|
125
|
+
}, z.core.$strip>;
|
|
126
|
+
export declare const CubeStatsResultSchema: z.ZodObject<{
|
|
127
|
+
count: z.ZodNumber;
|
|
128
|
+
items: z.ZodArray<z.ZodObject<{
|
|
129
|
+
cubeName: z.ZodString;
|
|
130
|
+
populatedNumeric: z.ZodOptional<z.ZodNumber>;
|
|
131
|
+
populatedString: z.ZodOptional<z.ZodNumber>;
|
|
132
|
+
storedCalculated: z.ZodOptional<z.ZodNumber>;
|
|
133
|
+
storedViews: z.ZodOptional<z.ZodNumber>;
|
|
134
|
+
fedCells: z.ZodOptional<z.ZodNumber>;
|
|
135
|
+
memoryViews: z.ZodOptional<z.ZodNumber>;
|
|
136
|
+
memoryInput: z.ZodOptional<z.ZodNumber>;
|
|
137
|
+
memoryFeeders: z.ZodOptional<z.ZodNumber>;
|
|
138
|
+
memoryCalculations: z.ZodOptional<z.ZodNumber>;
|
|
139
|
+
memoryTotal: z.ZodOptional<z.ZodNumber>;
|
|
140
|
+
avgCalculationSteps: z.ZodOptional<z.ZodNumber>;
|
|
141
|
+
cacheMissRate: z.ZodOptional<z.ZodNumber>;
|
|
142
|
+
feederEfficiency: z.ZodOptional<z.ZodNumber>;
|
|
143
|
+
raw: z.ZodRecord<z.ZodString, z.ZodUnion<readonly [z.ZodNumber, z.ZodNull]>>;
|
|
144
|
+
error: z.ZodOptional<z.ZodString>;
|
|
145
|
+
}, z.core.$loose>>;
|
|
146
|
+
statsUnavailable: z.ZodOptional<z.ZodObject<{
|
|
147
|
+
reason: z.ZodEnum<{
|
|
148
|
+
absent: "absent";
|
|
149
|
+
denied: "denied";
|
|
150
|
+
}>;
|
|
151
|
+
message: z.ZodString;
|
|
152
|
+
}, z.core.$strip>>;
|
|
153
|
+
}, z.core.$loose>;
|
|
154
|
+
export declare const AncestorsResultSchema: z.ZodObject<{
|
|
155
|
+
element: z.ZodString;
|
|
156
|
+
ancestors: z.ZodArray<z.ZodObject<{
|
|
157
|
+
name: z.ZodString;
|
|
158
|
+
level: z.ZodNumber;
|
|
159
|
+
}, z.core.$strip>>;
|
|
160
|
+
paths: z.ZodArray<z.ZodArray<z.ZodString>>;
|
|
161
|
+
}, z.core.$strip>;
|
|
162
|
+
export declare const DescendantsResultSchema: z.ZodObject<{
|
|
163
|
+
element: z.ZodString;
|
|
164
|
+
descendants: z.ZodArray<z.ZodObject<{
|
|
165
|
+
name: z.ZodString;
|
|
166
|
+
type: z.ZodString;
|
|
167
|
+
level: z.ZodNumber;
|
|
168
|
+
depth: z.ZodNumber;
|
|
169
|
+
}, z.core.$strip>>;
|
|
170
|
+
truncated: z.ZodBoolean;
|
|
171
|
+
}, z.core.$strip>;
|
|
172
|
+
export declare const DefaultMemberResolutionSchema: z.ZodObject<{
|
|
173
|
+
dimension: z.ZodString;
|
|
174
|
+
hierarchy: z.ZodString;
|
|
175
|
+
resolved: z.ZodObject<{
|
|
176
|
+
name: z.ZodString;
|
|
177
|
+
level: z.ZodNumber;
|
|
178
|
+
}, z.core.$strip>;
|
|
179
|
+
source: z.ZodEnum<{
|
|
180
|
+
defined: "defined";
|
|
181
|
+
single_root: "single_root";
|
|
182
|
+
first_root: "first_root";
|
|
183
|
+
index_1: "index_1";
|
|
184
|
+
}>;
|
|
185
|
+
confidence: z.ZodEnum<{
|
|
186
|
+
high: "high";
|
|
187
|
+
medium: "medium";
|
|
188
|
+
low: "low";
|
|
189
|
+
}>;
|
|
190
|
+
alternatives: z.ZodOptional<z.ZodObject<{
|
|
191
|
+
roots: z.ZodArray<z.ZodObject<{
|
|
192
|
+
name: z.ZodString;
|
|
193
|
+
level: z.ZodNumber;
|
|
194
|
+
}, z.core.$strip>>;
|
|
195
|
+
indexOne: z.ZodOptional<z.ZodString>;
|
|
196
|
+
}, z.core.$strip>>;
|
|
197
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
198
|
+
}, z.core.$strip>;
|
|
199
|
+
export declare const DefaultMemberErrorSchema: z.ZodObject<{
|
|
200
|
+
dimension: z.ZodString;
|
|
201
|
+
hierarchy: z.ZodString;
|
|
202
|
+
error: z.ZodObject<{
|
|
203
|
+
code: z.ZodString;
|
|
204
|
+
message: z.ZodString;
|
|
205
|
+
}, z.core.$strip>;
|
|
206
|
+
}, z.core.$strip>;
|
|
207
|
+
export declare const DefaultMembersBulkResultSchema: z.ZodObject<{
|
|
208
|
+
results: z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
|
|
209
|
+
dimension: z.ZodString;
|
|
210
|
+
hierarchy: z.ZodString;
|
|
211
|
+
resolved: z.ZodObject<{
|
|
212
|
+
name: z.ZodString;
|
|
213
|
+
level: z.ZodNumber;
|
|
214
|
+
}, z.core.$strip>;
|
|
215
|
+
source: z.ZodEnum<{
|
|
216
|
+
defined: "defined";
|
|
217
|
+
single_root: "single_root";
|
|
218
|
+
first_root: "first_root";
|
|
219
|
+
index_1: "index_1";
|
|
220
|
+
}>;
|
|
221
|
+
confidence: z.ZodEnum<{
|
|
222
|
+
high: "high";
|
|
223
|
+
medium: "medium";
|
|
224
|
+
low: "low";
|
|
225
|
+
}>;
|
|
226
|
+
alternatives: z.ZodOptional<z.ZodObject<{
|
|
227
|
+
roots: z.ZodArray<z.ZodObject<{
|
|
228
|
+
name: z.ZodString;
|
|
229
|
+
level: z.ZodNumber;
|
|
230
|
+
}, z.core.$strip>>;
|
|
231
|
+
indexOne: z.ZodOptional<z.ZodString>;
|
|
232
|
+
}, z.core.$strip>>;
|
|
233
|
+
warning: z.ZodOptional<z.ZodString>;
|
|
234
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
235
|
+
dimension: z.ZodString;
|
|
236
|
+
hierarchy: z.ZodString;
|
|
237
|
+
error: z.ZodObject<{
|
|
238
|
+
code: z.ZodString;
|
|
239
|
+
message: z.ZodString;
|
|
240
|
+
}, z.core.$strip>;
|
|
241
|
+
}, z.core.$strip>]>>;
|
|
242
|
+
}, z.core.$strip>;
|
|
243
|
+
export declare const OrphanDimensionSchema: z.ZodObject<{
|
|
244
|
+
name: z.ZodString;
|
|
245
|
+
hierarchies: z.ZodArray<z.ZodString>;
|
|
246
|
+
}, z.core.$strip>;
|
|
247
|
+
export declare const FindOrphanDimensionsResultSchema: z.ZodObject<{
|
|
248
|
+
totalDimensions: z.ZodNumber;
|
|
249
|
+
totalCubes: z.ZodNumber;
|
|
250
|
+
orphanCount: z.ZodNumber;
|
|
251
|
+
includeControl: z.ZodBoolean;
|
|
252
|
+
total: z.ZodNumber;
|
|
253
|
+
count: z.ZodNumber;
|
|
254
|
+
offset: z.ZodNumber;
|
|
255
|
+
has_more: z.ZodBoolean;
|
|
256
|
+
next_offset: z.ZodNullable<z.ZodNumber>;
|
|
257
|
+
items: z.ZodArray<z.ZodObject<{
|
|
258
|
+
name: z.ZodString;
|
|
259
|
+
hierarchies: z.ZodArray<z.ZodString>;
|
|
260
|
+
}, z.core.$strip>>;
|
|
261
|
+
}, z.core.$strip>;
|
|
262
|
+
//# sourceMappingURL=items-metadata.d.ts.map
|
|
@@ -0,0 +1,184 @@
|
|
|
1
|
+
// Metadata-domain item/result schemas: cubes, dimensions, hierarchies,
|
|
2
|
+
// elements, attributes, rules, cube stats and hierarchy navigation.
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
export { ElementAttributeValueSchema, ElementStatsSchema, } from "../../schemas/metadata.js";
|
|
5
|
+
import { CubeSchema, DimensionSchema, HierarchyElementSchema as HierarchyElementBase, HierarchySchema as HierarchyBase, } from "../../schemas/metadata.js";
|
|
6
|
+
// Published list item = the canonical shape with the projections tm1_list_cubes
|
|
7
|
+
// offers made optional. Derived, so a new cube field cannot reach the client
|
|
8
|
+
// without appearing here.
|
|
9
|
+
export const CubeItemSchema = CubeSchema.partial({
|
|
10
|
+
// Omitted when caller sets includeDimensions=false on tm1_list_cubes.
|
|
11
|
+
dimensions: true,
|
|
12
|
+
});
|
|
13
|
+
// `lastUpdated` is only attached when the caller asks for it — but it IS part
|
|
14
|
+
// of the payload then, so the published schema has to carry it (a strict
|
|
15
|
+
// schema that omits it makes the client reject the whole response).
|
|
16
|
+
export const DimensionItemSchema = DimensionSchema;
|
|
17
|
+
// parents/children are omitted when the caller passes compact=true to
|
|
18
|
+
// tm1_get_hierarchy.
|
|
19
|
+
export const HierarchyElementSchema = HierarchyElementBase.partial({
|
|
20
|
+
parents: true,
|
|
21
|
+
children: true,
|
|
22
|
+
});
|
|
23
|
+
// The tool wraps the canonical hierarchy in a page envelope.
|
|
24
|
+
export const HierarchySchema = HierarchyBase.extend({
|
|
25
|
+
elements: z.array(HierarchyElementSchema),
|
|
26
|
+
total: z.number().int(),
|
|
27
|
+
offset: z.number().int(),
|
|
28
|
+
has_more: z.boolean(),
|
|
29
|
+
// true when the topN cap clipped the (post-filter) element set — raise topN.
|
|
30
|
+
truncated: z.boolean(),
|
|
31
|
+
// countOnly=true: totals of the filtered set; elements is then empty.
|
|
32
|
+
counts: z
|
|
33
|
+
.object({
|
|
34
|
+
byType: z.object({
|
|
35
|
+
Numeric: z.number().int(),
|
|
36
|
+
String: z.number().int(),
|
|
37
|
+
Consolidated: z.number().int(),
|
|
38
|
+
}),
|
|
39
|
+
byLevel: z.record(z.string(), z.number().int()),
|
|
40
|
+
maxLevel: z.number().int(),
|
|
41
|
+
})
|
|
42
|
+
.optional(),
|
|
43
|
+
});
|
|
44
|
+
export const BulkUpsertElementsResultSchema = z.object({
|
|
45
|
+
success: z.boolean(),
|
|
46
|
+
dimension: z.string(),
|
|
47
|
+
hierarchy: z.string(),
|
|
48
|
+
totalElements: z.number().int(),
|
|
49
|
+
counts: z.object({
|
|
50
|
+
N: z.number().int(),
|
|
51
|
+
C: z.number().int(),
|
|
52
|
+
S: z.number().int(),
|
|
53
|
+
}),
|
|
54
|
+
});
|
|
55
|
+
// Attribute *definition* (as returned by listAttributes) — distinct from a
|
|
56
|
+
// per-element attribute *value* above. Used by tm1_list_element_attributes.
|
|
57
|
+
export const ElementAttributeDefinitionSchema = z.object({
|
|
58
|
+
name: z.string().describe("Attribute name"),
|
|
59
|
+
type: z
|
|
60
|
+
.enum(["Numeric", "String", "Alias"])
|
|
61
|
+
.describe("Attribute storage type"),
|
|
62
|
+
});
|
|
63
|
+
export const CubeRulesSchema = z.object({
|
|
64
|
+
cubeName: z.string(),
|
|
65
|
+
skipCheck: z.boolean(),
|
|
66
|
+
// Full mode (default): rulesText carries the verbatim TM1 rule body.
|
|
67
|
+
// Summary mode (tm1_get_all_cube_rules summary=true): rulesText is replaced
|
|
68
|
+
// by aggregate metrics so analysis agents can survey rule landscapes
|
|
69
|
+
// without paying full token cost.
|
|
70
|
+
rulesText: z.string().optional(),
|
|
71
|
+
lineCount: z.number().int().optional(),
|
|
72
|
+
ruleCount: z.number().int().optional(),
|
|
73
|
+
feederCount: z.number().int().optional(),
|
|
74
|
+
commentLineCount: z.number().int().optional(),
|
|
75
|
+
referencedCubes: z.array(z.string()).optional(),
|
|
76
|
+
// tm1_get_cube_rules outline=true: section markers instead of the text.
|
|
77
|
+
outline: z
|
|
78
|
+
.array(z.object({ line: z.number().int(), text: z.string() }))
|
|
79
|
+
.optional(),
|
|
80
|
+
outlineTruncated: z.boolean().optional(),
|
|
81
|
+
// tm1_get_cube_rules lineRange: the [from, to] actually returned (clamped).
|
|
82
|
+
lineRange: z.array(z.number().int()).optional(),
|
|
83
|
+
});
|
|
84
|
+
// ── tm1_get_cube_stats result schemas ────────────────────────────────────────
|
|
85
|
+
// Stats elements differ between TM1 v11 and v12. We expose well-known names
|
|
86
|
+
// as typed fields (best-effort match) and the entire raw element-name → value
|
|
87
|
+
// map under `raw` so callers can read whatever the server actually returned
|
|
88
|
+
// — no version drift breaks the tool, only renames new well-known fields.
|
|
89
|
+
export const CubeStatsItemSchema = z
|
|
90
|
+
.object({
|
|
91
|
+
cubeName: z.string(),
|
|
92
|
+
// Cell counts
|
|
93
|
+
populatedNumeric: z.number().optional(),
|
|
94
|
+
populatedString: z.number().optional(),
|
|
95
|
+
storedCalculated: z.number().optional(),
|
|
96
|
+
storedViews: z.number().optional(),
|
|
97
|
+
fedCells: z.number().optional(),
|
|
98
|
+
// Memory (bytes)
|
|
99
|
+
memoryViews: z.number().optional(),
|
|
100
|
+
memoryInput: z.number().optional(),
|
|
101
|
+
memoryFeeders: z.number().optional(),
|
|
102
|
+
memoryCalculations: z.number().optional(),
|
|
103
|
+
memoryTotal: z.number().optional(),
|
|
104
|
+
// Performance
|
|
105
|
+
avgCalculationSteps: z.number().optional(),
|
|
106
|
+
cacheMissRate: z.number().optional(),
|
|
107
|
+
// Derived
|
|
108
|
+
feederEfficiency: z.number().optional(),
|
|
109
|
+
// Always present: full element-name → value map (carries everything,
|
|
110
|
+
// including v12-only or new-build metrics that aren't in KNOWN_METRICS).
|
|
111
|
+
raw: z.record(z.string(), z.union([z.number(), z.null()])),
|
|
112
|
+
error: z.string().optional(),
|
|
113
|
+
})
|
|
114
|
+
.passthrough();
|
|
115
|
+
// Set only when EVERY requested cube failed the same server- or account-wide
|
|
116
|
+
// way: `absent` = no }Stats* control cubes here (TM1 v12 ships none),
|
|
117
|
+
// `denied` = they exist but this account may not read them.
|
|
118
|
+
export const StatsUnavailableSchema = z.object({
|
|
119
|
+
reason: z.enum(["absent", "denied"]),
|
|
120
|
+
message: z.string(),
|
|
121
|
+
});
|
|
122
|
+
export const CubeStatsResultSchema = z
|
|
123
|
+
.object({
|
|
124
|
+
count: z.number().int(),
|
|
125
|
+
items: z.array(CubeStatsItemSchema),
|
|
126
|
+
statsUnavailable: StatsUnavailableSchema.optional(),
|
|
127
|
+
})
|
|
128
|
+
.passthrough();
|
|
129
|
+
// ── Phase 2i: hierarchy navigation, server snapshots, diagnostics ────────────
|
|
130
|
+
export const AncestorsResultSchema = z.object({
|
|
131
|
+
element: z.string(),
|
|
132
|
+
ancestors: z.array(z.object({ name: z.string(), level: z.number().int() })),
|
|
133
|
+
paths: z.array(z.array(z.string())),
|
|
134
|
+
});
|
|
135
|
+
export const DescendantsResultSchema = z.object({
|
|
136
|
+
element: z.string(),
|
|
137
|
+
descendants: z.array(z.object({
|
|
138
|
+
name: z.string(),
|
|
139
|
+
type: z.string(),
|
|
140
|
+
level: z.number().int(),
|
|
141
|
+
depth: z.number().int(),
|
|
142
|
+
})),
|
|
143
|
+
// true when the topN cap clipped the descendant set — raise topN.
|
|
144
|
+
truncated: z.boolean(),
|
|
145
|
+
});
|
|
146
|
+
export const DefaultMemberResolutionSchema = z.object({
|
|
147
|
+
dimension: z.string(),
|
|
148
|
+
hierarchy: z.string(),
|
|
149
|
+
resolved: z.object({ name: z.string(), level: z.number().int() }),
|
|
150
|
+
source: z.enum(["defined", "single_root", "first_root", "index_1"]),
|
|
151
|
+
confidence: z.enum(["high", "medium", "low"]),
|
|
152
|
+
alternatives: z
|
|
153
|
+
.object({
|
|
154
|
+
roots: z.array(z.object({ name: z.string(), level: z.number().int() })),
|
|
155
|
+
indexOne: z.string().optional(),
|
|
156
|
+
})
|
|
157
|
+
.optional(),
|
|
158
|
+
warning: z.string().optional(),
|
|
159
|
+
});
|
|
160
|
+
export const DefaultMemberErrorSchema = z.object({
|
|
161
|
+
dimension: z.string(),
|
|
162
|
+
hierarchy: z.string(),
|
|
163
|
+
error: z.object({ code: z.string(), message: z.string() }),
|
|
164
|
+
});
|
|
165
|
+
export const DefaultMembersBulkResultSchema = z.object({
|
|
166
|
+
results: z.array(z.union([DefaultMemberResolutionSchema, DefaultMemberErrorSchema])),
|
|
167
|
+
});
|
|
168
|
+
export const OrphanDimensionSchema = z.object({
|
|
169
|
+
name: z.string(),
|
|
170
|
+
hierarchies: z.array(z.string()),
|
|
171
|
+
});
|
|
172
|
+
export const FindOrphanDimensionsResultSchema = z.object({
|
|
173
|
+
totalDimensions: z.number().int(),
|
|
174
|
+
totalCubes: z.number().int(),
|
|
175
|
+
orphanCount: z.number().int(),
|
|
176
|
+
includeControl: z.boolean(),
|
|
177
|
+
total: z.number().int(),
|
|
178
|
+
count: z.number().int(),
|
|
179
|
+
offset: z.number().int(),
|
|
180
|
+
has_more: z.boolean(),
|
|
181
|
+
next_offset: z.number().int().nullable(),
|
|
182
|
+
items: z.array(OrphanDimensionSchema),
|
|
183
|
+
});
|
|
184
|
+
//# sourceMappingURL=items-metadata.js.map
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export { AuditLogDetailSchema, ErrorLogFileSchema, JobSchema, MessageLogEntrySchema, SessionSchema, ThreadSchema, TransactionLogEntrySchema, } from "../../schemas/monitoring.js";
|
|
3
|
+
export declare const ServerInfoSchema: z.ZodObject<{
|
|
4
|
+
mcpServer: z.ZodOptional<z.ZodObject<{
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
version: z.ZodString;
|
|
7
|
+
}, z.core.$strip>>;
|
|
8
|
+
serverName: z.ZodString;
|
|
9
|
+
productVersion: z.ZodString;
|
|
10
|
+
productEdition: z.ZodOptional<z.ZodString>;
|
|
11
|
+
adminHost: z.ZodOptional<z.ZodString>;
|
|
12
|
+
dataDirectory: z.ZodOptional<z.ZodString>;
|
|
13
|
+
timeZoneId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
integratedSecurityMode: z.ZodOptional<z.ZodString>;
|
|
15
|
+
modelling: z.ZodOptional<z.ZodUnknown>;
|
|
16
|
+
ti: z.ZodOptional<z.ZodUnknown>;
|
|
17
|
+
rules: z.ZodOptional<z.ZodUnknown>;
|
|
18
|
+
mtq: z.ZodOptional<z.ZodUnknown>;
|
|
19
|
+
jobQueuing: z.ZodOptional<z.ZodUnknown>;
|
|
20
|
+
memory: z.ZodOptional<z.ZodUnknown>;
|
|
21
|
+
logging: z.ZodOptional<z.ZodUnknown>;
|
|
22
|
+
http: z.ZodOptional<z.ZodUnknown>;
|
|
23
|
+
security: z.ZodOptional<z.ZodUnknown>;
|
|
24
|
+
_raw: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
25
|
+
}, z.core.$loose>;
|
|
26
|
+
export declare const AuditLogEntrySchema: z.ZodObject<{
|
|
27
|
+
id: z.ZodNumber;
|
|
28
|
+
timestamp: z.ZodString;
|
|
29
|
+
user: z.ZodString;
|
|
30
|
+
description: z.ZodString;
|
|
31
|
+
objectType: z.ZodString;
|
|
32
|
+
objectName: z.ZodString;
|
|
33
|
+
details: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
34
|
+
id: z.ZodNumber;
|
|
35
|
+
timestamp: z.ZodString;
|
|
36
|
+
user: z.ZodString;
|
|
37
|
+
description: z.ZodString;
|
|
38
|
+
objectType: z.ZodString;
|
|
39
|
+
objectName: z.ZodString;
|
|
40
|
+
}, z.core.$strip>>>;
|
|
41
|
+
}, z.core.$strip>;
|
|
42
|
+
export declare const ErrorLogGroupSchema: z.ZodObject<{
|
|
43
|
+
process: z.ZodString;
|
|
44
|
+
count: z.ZodNumber;
|
|
45
|
+
firstSeen: z.ZodNullable<z.ZodString>;
|
|
46
|
+
lastSeen: z.ZodNullable<z.ZodString>;
|
|
47
|
+
spanDays: z.ZodNumber;
|
|
48
|
+
perDay: z.ZodNumber;
|
|
49
|
+
}, z.core.$strip>;
|
|
50
|
+
export declare const ErrorLogContentResultSchema: z.ZodObject<{
|
|
51
|
+
filename: z.ZodString;
|
|
52
|
+
totalBytes: z.ZodNumber;
|
|
53
|
+
returnedBytes: z.ZodNumber;
|
|
54
|
+
truncated: z.ZodBoolean;
|
|
55
|
+
truncationReason: z.ZodOptional<z.ZodString>;
|
|
56
|
+
content: z.ZodString;
|
|
57
|
+
related: z.ZodOptional<z.ZodObject<{
|
|
58
|
+
windowSec: z.ZodOptional<z.ZodNumber>;
|
|
59
|
+
found: z.ZodOptional<z.ZodNumber>;
|
|
60
|
+
maxFiles: z.ZodOptional<z.ZodNumber>;
|
|
61
|
+
note: z.ZodOptional<z.ZodString>;
|
|
62
|
+
files: z.ZodArray<z.ZodObject<{
|
|
63
|
+
filename: z.ZodString;
|
|
64
|
+
deltaSec: z.ZodNumber;
|
|
65
|
+
totalBytes: z.ZodOptional<z.ZodNumber>;
|
|
66
|
+
returnedBytes: z.ZodOptional<z.ZodNumber>;
|
|
67
|
+
truncated: z.ZodOptional<z.ZodBoolean>;
|
|
68
|
+
content: z.ZodOptional<z.ZodString>;
|
|
69
|
+
error: z.ZodOptional<z.ZodString>;
|
|
70
|
+
}, z.core.$strip>>;
|
|
71
|
+
}, z.core.$strip>>;
|
|
72
|
+
}, z.core.$strip>;
|
|
73
|
+
export declare const ServerStateResultSchema: z.ZodObject<{
|
|
74
|
+
connected: z.ZodBoolean;
|
|
75
|
+
server: z.ZodUnknown;
|
|
76
|
+
capabilities: z.ZodUnknown;
|
|
77
|
+
counts: z.ZodUnknown;
|
|
78
|
+
}, z.core.$loose>;
|
|
79
|
+
//# sourceMappingURL=items-monitoring.d.ts.map
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
// Monitoring/server-domain schemas: server info & state, message/transaction/
|
|
2
|
+
// audit/error logs, threads, jobs and sessions.
|
|
3
|
+
import { z } from "zod";
|
|
4
|
+
// Canonical shapes — defined once in src/schemas/monitoring.ts, re-exported so
|
|
5
|
+
// the output-schema side and the TM1 client cannot drift apart.
|
|
6
|
+
export { AuditLogDetailSchema, ErrorLogFileSchema, JobSchema, MessageLogEntrySchema, SessionSchema, ThreadSchema, TransactionLogEntrySchema, } from "../../schemas/monitoring.js";
|
|
7
|
+
import { AuditLogDetailSchema } from "../../schemas/monitoring.js";
|
|
8
|
+
export const ServerInfoSchema = z
|
|
9
|
+
.object({
|
|
10
|
+
mcpServer: z.object({ name: z.string(), version: z.string() }).optional(),
|
|
11
|
+
serverName: z.string(),
|
|
12
|
+
productVersion: z.string(),
|
|
13
|
+
productEdition: z.string().optional(),
|
|
14
|
+
adminHost: z.string().optional(),
|
|
15
|
+
dataDirectory: z.string().optional(),
|
|
16
|
+
timeZoneId: z.string().optional(),
|
|
17
|
+
integratedSecurityMode: z.string().optional(),
|
|
18
|
+
modelling: z.unknown().optional(),
|
|
19
|
+
ti: z.unknown().optional(),
|
|
20
|
+
rules: z.unknown().optional(),
|
|
21
|
+
mtq: z.unknown().optional(),
|
|
22
|
+
jobQueuing: z.unknown().optional(),
|
|
23
|
+
memory: z.unknown().optional(),
|
|
24
|
+
logging: z.unknown().optional(),
|
|
25
|
+
http: z.unknown().optional(),
|
|
26
|
+
security: z.unknown().optional(),
|
|
27
|
+
_raw: z.record(z.string(), z.unknown()).optional(),
|
|
28
|
+
})
|
|
29
|
+
.passthrough();
|
|
30
|
+
export const AuditLogEntrySchema = AuditLogDetailSchema.extend({
|
|
31
|
+
details: z.array(AuditLogDetailSchema).optional(),
|
|
32
|
+
});
|
|
33
|
+
// groupBy='process' audit-summary item: per-process failure aggregation.
|
|
34
|
+
export const ErrorLogGroupSchema = z.object({
|
|
35
|
+
process: z.string(),
|
|
36
|
+
count: z.number().int(),
|
|
37
|
+
firstSeen: z.string().nullable(),
|
|
38
|
+
lastSeen: z.string().nullable(),
|
|
39
|
+
spanDays: z.number().int(),
|
|
40
|
+
perDay: z.number(),
|
|
41
|
+
});
|
|
42
|
+
const RelatedErrorLogFileSchema = z.object({
|
|
43
|
+
filename: z.string(),
|
|
44
|
+
deltaSec: z.number().int(),
|
|
45
|
+
totalBytes: z.number().int().optional(),
|
|
46
|
+
returnedBytes: z.number().int().optional(),
|
|
47
|
+
truncated: z.boolean().optional(),
|
|
48
|
+
content: z.string().optional(),
|
|
49
|
+
error: z.string().optional(),
|
|
50
|
+
});
|
|
51
|
+
export const ErrorLogContentResultSchema = z.object({
|
|
52
|
+
filename: z.string(),
|
|
53
|
+
totalBytes: z.number().int(),
|
|
54
|
+
returnedBytes: z.number().int(),
|
|
55
|
+
truncated: z.boolean(),
|
|
56
|
+
truncationReason: z.string().optional(),
|
|
57
|
+
content: z.string(),
|
|
58
|
+
related: z
|
|
59
|
+
.object({
|
|
60
|
+
windowSec: z.number().int().optional(),
|
|
61
|
+
found: z.number().int().optional(),
|
|
62
|
+
maxFiles: z.number().int().optional(),
|
|
63
|
+
note: z.string().optional(),
|
|
64
|
+
files: z.array(RelatedErrorLogFileSchema),
|
|
65
|
+
})
|
|
66
|
+
.optional(),
|
|
67
|
+
});
|
|
68
|
+
// Server state snapshot curates a few config flags whose surface differs
|
|
69
|
+
// per TM1 build — every section is permissive (.passthrough()).
|
|
70
|
+
export const ServerStateResultSchema = z
|
|
71
|
+
.object({
|
|
72
|
+
connected: z.boolean(),
|
|
73
|
+
server: z.unknown(),
|
|
74
|
+
capabilities: z.unknown(),
|
|
75
|
+
counts: z.unknown(),
|
|
76
|
+
})
|
|
77
|
+
.passthrough();
|
|
78
|
+
//# sourceMappingURL=items-monitoring.js.map
|