@aqajooon/mcp-server-azure-devops 0.0.0-stage → 0.1.55
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/LICENSE +21 -0
- package/README.md +318 -2
- package/dist/clients/azure-devops.d.ts +105 -0
- package/dist/clients/azure-devops.js +501 -0
- package/dist/clients/azure-devops.js.map +1 -0
- package/dist/features/environments/feature.d.ts +24 -0
- package/dist/features/environments/feature.js +48 -0
- package/dist/features/environments/feature.js.map +1 -0
- package/dist/features/environments/index.d.ts +10 -0
- package/dist/features/environments/index.js +42 -0
- package/dist/features/environments/index.js.map +1 -0
- package/dist/features/environments/schema.d.ts +7 -0
- package/dist/features/environments/schema.js +28 -0
- package/dist/features/environments/schema.js.map +1 -0
- package/dist/features/libraries/feature.d.ts +27 -0
- package/dist/features/libraries/feature.js +47 -0
- package/dist/features/libraries/feature.js.map +1 -0
- package/dist/features/libraries/index.d.ts +10 -0
- package/dist/features/libraries/index.js +42 -0
- package/dist/features/libraries/index.js.map +1 -0
- package/dist/features/libraries/schema.d.ts +7 -0
- package/dist/features/libraries/schema.js +27 -0
- package/dist/features/libraries/schema.js.map +1 -0
- package/dist/features/organizations/__test__/test-helpers.d.ts +13 -0
- package/dist/features/organizations/__test__/test-helpers.js +38 -0
- package/dist/features/organizations/__test__/test-helpers.js.map +1 -0
- package/dist/features/organizations/index.d.ts +13 -0
- package/dist/features/organizations/index.js +63 -0
- package/dist/features/organizations/index.js.map +1 -0
- package/dist/features/organizations/list-organizations/feature.d.ts +13 -0
- package/dist/features/organizations/list-organizations/feature.js +101 -0
- package/dist/features/organizations/list-organizations/feature.js.map +1 -0
- package/dist/features/organizations/list-organizations/index.d.ts +2 -0
- package/dist/features/organizations/list-organizations/index.js +19 -0
- package/dist/features/organizations/list-organizations/index.js.map +1 -0
- package/dist/features/organizations/list-organizations/schema.d.ts +2 -0
- package/dist/features/organizations/list-organizations/schema.js +6 -0
- package/dist/features/organizations/list-organizations/schema.js.map +1 -0
- package/dist/features/organizations/schemas.d.ts +6 -0
- package/dist/features/organizations/schemas.js +10 -0
- package/dist/features/organizations/schemas.js.map +1 -0
- package/dist/features/organizations/tool-definitions.d.ts +5 -0
- package/dist/features/organizations/tool-definitions.js +16 -0
- package/dist/features/organizations/tool-definitions.js.map +1 -0
- package/dist/features/organizations/types.d.ts +21 -0
- package/dist/features/organizations/types.js +8 -0
- package/dist/features/organizations/types.js.map +1 -0
- package/dist/features/pipelines/artifacts.d.ts +11 -0
- package/dist/features/pipelines/artifacts.js +288 -0
- package/dist/features/pipelines/artifacts.js.map +1 -0
- package/dist/features/pipelines/download-pipeline-artifact/feature.d.ts +3 -0
- package/dist/features/pipelines/download-pipeline-artifact/feature.js +222 -0
- package/dist/features/pipelines/download-pipeline-artifact/feature.js.map +1 -0
- package/dist/features/pipelines/download-pipeline-artifact/index.d.ts +2 -0
- package/dist/features/pipelines/download-pipeline-artifact/index.js +19 -0
- package/dist/features/pipelines/download-pipeline-artifact/index.js.map +1 -0
- package/dist/features/pipelines/download-pipeline-artifact/schema.d.ts +7 -0
- package/dist/features/pipelines/download-pipeline-artifact/schema.js +23 -0
- package/dist/features/pipelines/download-pipeline-artifact/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline/feature.d.ts +10 -0
- package/dist/features/pipelines/get-pipeline/feature.js +46 -0
- package/dist/features/pipelines/get-pipeline/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline/index.js +19 -0
- package/dist/features/pipelines/get-pipeline/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline/schema.d.ts +9 -0
- package/dist/features/pipelines/get-pipeline/schema.js +29 -0
- package/dist/features/pipelines/get-pipeline/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-log/feature.d.ts +3 -0
- package/dist/features/pipelines/get-pipeline-log/feature.js +57 -0
- package/dist/features/pipelines/get-pipeline-log/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-log/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-log/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-log/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-log/schema.d.ts +13 -0
- package/dist/features/pipelines/get-pipeline-log/schema.js +40 -0
- package/dist/features/pipelines/get-pipeline-log/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run/feature.d.ts +3 -0
- package/dist/features/pipelines/get-pipeline-run/feature.js +76 -0
- package/dist/features/pipelines/get-pipeline-run/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-run/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-run/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run/schema.d.ts +6 -0
- package/dist/features/pipelines/get-pipeline-run/schema.js +19 -0
- package/dist/features/pipelines/get-pipeline-run/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-sources/feature.d.ts +26 -0
- package/dist/features/pipelines/get-pipeline-run-sources/feature.js +105 -0
- package/dist/features/pipelines/get-pipeline-run-sources/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-sources/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-run-sources/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-sources/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-sources/schema.d.ts +6 -0
- package/dist/features/pipelines/get-pipeline-run-sources/schema.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-sources/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/feature.d.ts +47 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/feature.js +185 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/schema.d.ts +7 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/schema.js +21 -0
- package/dist/features/pipelines/get-pipeline-run-stage-tasks/schema.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/feature.d.ts +41 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/feature.js +450 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/feature.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/index.d.ts +2 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/index.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/index.js.map +1 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/schema.d.ts +6 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/schema.js +19 -0
- package/dist/features/pipelines/get-pipeline-run-yaml/schema.js.map +1 -0
- package/dist/features/pipelines/helpers.d.ts +3 -0
- package/dist/features/pipelines/helpers.js +29 -0
- package/dist/features/pipelines/helpers.js.map +1 -0
- package/dist/features/pipelines/index.d.ts +22 -0
- package/dist/features/pipelines/index.js +216 -0
- package/dist/features/pipelines/index.js.map +1 -0
- package/dist/features/pipelines/list-pipeline-runs/feature.d.ts +3 -0
- package/dist/features/pipelines/list-pipeline-runs/feature.js +98 -0
- package/dist/features/pipelines/list-pipeline-runs/feature.js.map +1 -0
- package/dist/features/pipelines/list-pipeline-runs/index.d.ts +2 -0
- package/dist/features/pipelines/list-pipeline-runs/index.js +19 -0
- package/dist/features/pipelines/list-pipeline-runs/index.js.map +1 -0
- package/dist/features/pipelines/list-pipeline-runs/schema.d.ts +28 -0
- package/dist/features/pipelines/list-pipeline-runs/schema.js +50 -0
- package/dist/features/pipelines/list-pipeline-runs/schema.js.map +1 -0
- package/dist/features/pipelines/list-pipelines/feature.d.ts +10 -0
- package/dist/features/pipelines/list-pipelines/feature.js +42 -0
- package/dist/features/pipelines/list-pipelines/feature.js.map +1 -0
- package/dist/features/pipelines/list-pipelines/index.d.ts +2 -0
- package/dist/features/pipelines/list-pipelines/index.js +19 -0
- package/dist/features/pipelines/list-pipelines/index.js.map +1 -0
- package/dist/features/pipelines/list-pipelines/schema.d.ts +9 -0
- package/dist/features/pipelines/list-pipelines/schema.js +23 -0
- package/dist/features/pipelines/list-pipelines/schema.js.map +1 -0
- package/dist/features/pipelines/pipeline-timeline/feature.d.ts +3 -0
- package/dist/features/pipelines/pipeline-timeline/feature.js +95 -0
- package/dist/features/pipelines/pipeline-timeline/feature.js.map +1 -0
- package/dist/features/pipelines/pipeline-timeline/index.d.ts +2 -0
- package/dist/features/pipelines/pipeline-timeline/index.js +19 -0
- package/dist/features/pipelines/pipeline-timeline/index.js.map +1 -0
- package/dist/features/pipelines/pipeline-timeline/schema.d.ts +31 -0
- package/dist/features/pipelines/pipeline-timeline/schema.js +51 -0
- package/dist/features/pipelines/pipeline-timeline/schema.js.map +1 -0
- package/dist/features/pipelines/tool-definitions.d.ts +5 -0
- package/dist/features/pipelines/tool-definitions.js +87 -0
- package/dist/features/pipelines/tool-definitions.js.map +1 -0
- package/dist/features/pipelines/trigger-pipeline/feature.d.ts +10 -0
- package/dist/features/pipelines/trigger-pipeline/feature.js +65 -0
- package/dist/features/pipelines/trigger-pipeline/feature.js.map +1 -0
- package/dist/features/pipelines/trigger-pipeline/index.d.ts +2 -0
- package/dist/features/pipelines/trigger-pipeline/index.js +8 -0
- package/dist/features/pipelines/trigger-pipeline/index.js.map +1 -0
- package/dist/features/pipelines/trigger-pipeline/schema.d.ts +15 -0
- package/dist/features/pipelines/trigger-pipeline/schema.js +45 -0
- package/dist/features/pipelines/trigger-pipeline/schema.js.map +1 -0
- package/dist/features/pipelines/types.d.ts +122 -0
- package/dist/features/pipelines/types.js +3 -0
- package/dist/features/pipelines/types.js.map +1 -0
- package/dist/features/projects/__test__/test-helpers.d.ts +13 -0
- package/dist/features/projects/__test__/test-helpers.js +35 -0
- package/dist/features/projects/__test__/test-helpers.js.map +1 -0
- package/dist/features/projects/get-project/feature.d.ts +11 -0
- package/dist/features/projects/get-project/feature.js +29 -0
- package/dist/features/projects/get-project/feature.js.map +1 -0
- package/dist/features/projects/get-project/index.d.ts +2 -0
- package/dist/features/projects/get-project/index.js +19 -0
- package/dist/features/projects/get-project/index.js.map +1 -0
- package/dist/features/projects/get-project/schema.d.ts +2 -0
- package/dist/features/projects/get-project/schema.js +6 -0
- package/dist/features/projects/get-project/schema.js.map +1 -0
- package/dist/features/projects/get-project-details/feature.d.ts +78 -0
- package/dist/features/projects/get-project-details/feature.js +185 -0
- package/dist/features/projects/get-project-details/feature.js.map +1 -0
- package/dist/features/projects/get-project-details/index.d.ts +2 -0
- package/dist/features/projects/get-project-details/index.js +8 -0
- package/dist/features/projects/get-project-details/index.js.map +1 -0
- package/dist/features/projects/get-project-details/schema.d.ts +2 -0
- package/dist/features/projects/get-project-details/schema.js +6 -0
- package/dist/features/projects/get-project-details/schema.js.map +1 -0
- package/dist/features/projects/index.d.ts +15 -0
- package/dist/features/projects/index.js +80 -0
- package/dist/features/projects/index.js.map +1 -0
- package/dist/features/projects/list-projects/feature.d.ts +10 -0
- package/dist/features/projects/list-projects/feature.js +25 -0
- package/dist/features/projects/list-projects/feature.js.map +1 -0
- package/dist/features/projects/list-projects/index.d.ts +2 -0
- package/dist/features/projects/list-projects/index.js +19 -0
- package/dist/features/projects/list-projects/index.js.map +1 -0
- package/dist/features/projects/list-projects/schema.d.ts +2 -0
- package/dist/features/projects/list-projects/schema.js +6 -0
- package/dist/features/projects/list-projects/schema.js.map +1 -0
- package/dist/features/projects/schemas.d.ts +30 -0
- package/dist/features/projects/schemas.js +76 -0
- package/dist/features/projects/schemas.js.map +1 -0
- package/dist/features/projects/tool-definitions.d.ts +5 -0
- package/dist/features/projects/tool-definitions.js +26 -0
- package/dist/features/projects/tool-definitions.js.map +1 -0
- package/dist/features/projects/types.d.ts +11 -0
- package/dist/features/projects/types.js +3 -0
- package/dist/features/projects/types.js.map +1 -0
- package/dist/features/pull-requests/add-pull-request-comment/feature.d.ts +13 -0
- package/dist/features/pull-requests/add-pull-request-comment/feature.js +161 -0
- package/dist/features/pull-requests/add-pull-request-comment/feature.js.map +1 -0
- package/dist/features/pull-requests/add-pull-request-comment/index.d.ts +1 -0
- package/dist/features/pull-requests/add-pull-request-comment/index.js +18 -0
- package/dist/features/pull-requests/add-pull-request-comment/index.js.map +1 -0
- package/dist/features/pull-requests/create-pull-request/feature.d.ts +12 -0
- package/dist/features/pull-requests/create-pull-request/feature.js +99 -0
- package/dist/features/pull-requests/create-pull-request/feature.js.map +1 -0
- package/dist/features/pull-requests/create-pull-request/index.d.ts +2 -0
- package/dist/features/pull-requests/create-pull-request/index.js +19 -0
- package/dist/features/pull-requests/create-pull-request/index.js.map +1 -0
- package/dist/features/pull-requests/create-pull-request/schema.d.ts +2 -0
- package/dist/features/pull-requests/create-pull-request/schema.js +6 -0
- package/dist/features/pull-requests/create-pull-request/schema.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request/feature.d.ts +6 -0
- package/dist/features/pull-requests/get-pull-request/feature.js +22 -0
- package/dist/features/pull-requests/get-pull-request/feature.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request/index.d.ts +2 -0
- package/dist/features/pull-requests/get-pull-request/index.js +19 -0
- package/dist/features/pull-requests/get-pull-request/index.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request/schema.d.ts +1 -0
- package/dist/features/pull-requests/get-pull-request/schema.js +6 -0
- package/dist/features/pull-requests/get-pull-request/schema.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-changes/feature.d.ts +22 -0
- package/dist/features/pull-requests/get-pull-request-changes/feature.js +60 -0
- package/dist/features/pull-requests/get-pull-request-changes/feature.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-changes/index.d.ts +1 -0
- package/dist/features/pull-requests/get-pull-request-changes/index.js +18 -0
- package/dist/features/pull-requests/get-pull-request-changes/index.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-checks/feature.d.ts +51 -0
- package/dist/features/pull-requests/get-pull-request-checks/feature.js +259 -0
- package/dist/features/pull-requests/get-pull-request-checks/feature.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-checks/index.d.ts +1 -0
- package/dist/features/pull-requests/get-pull-request-checks/index.js +18 -0
- package/dist/features/pull-requests/get-pull-request-checks/index.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-comments/feature.d.ts +13 -0
- package/dist/features/pull-requests/get-pull-request-comments/feature.js +88 -0
- package/dist/features/pull-requests/get-pull-request-comments/feature.js.map +1 -0
- package/dist/features/pull-requests/get-pull-request-comments/index.d.ts +1 -0
- package/dist/features/pull-requests/get-pull-request-comments/index.js +18 -0
- package/dist/features/pull-requests/get-pull-request-comments/index.js.map +1 -0
- package/dist/features/pull-requests/index.d.ts +21 -0
- package/dist/features/pull-requests/index.js +167 -0
- package/dist/features/pull-requests/index.js.map +1 -0
- package/dist/features/pull-requests/list-pull-requests/feature.d.ts +17 -0
- package/dist/features/pull-requests/list-pull-requests/feature.js +81 -0
- package/dist/features/pull-requests/list-pull-requests/feature.js.map +1 -0
- package/dist/features/pull-requests/list-pull-requests/index.d.ts +2 -0
- package/dist/features/pull-requests/list-pull-requests/index.js +19 -0
- package/dist/features/pull-requests/list-pull-requests/index.js.map +1 -0
- package/dist/features/pull-requests/list-pull-requests/schema.d.ts +1 -0
- package/dist/features/pull-requests/list-pull-requests/schema.js +6 -0
- package/dist/features/pull-requests/list-pull-requests/schema.js.map +1 -0
- package/dist/features/pull-requests/schemas.d.ts +157 -0
- package/dist/features/pull-requests/schemas.js +337 -0
- package/dist/features/pull-requests/schemas.js.map +1 -0
- package/dist/features/pull-requests/tool-definitions.d.ts +5 -0
- package/dist/features/pull-requests/tool-definitions.js +60 -0
- package/dist/features/pull-requests/tool-definitions.js.map +1 -0
- package/dist/features/pull-requests/types.d.ts +118 -0
- package/dist/features/pull-requests/types.js +3 -0
- package/dist/features/pull-requests/types.js.map +1 -0
- package/dist/features/pull-requests/update-pull-request/feature.d.ts +9 -0
- package/dist/features/pull-requests/update-pull-request/feature.js +250 -0
- package/dist/features/pull-requests/update-pull-request/feature.js.map +1 -0
- package/dist/features/pull-requests/update-pull-request/index.d.ts +1 -0
- package/dist/features/pull-requests/update-pull-request/index.js +18 -0
- package/dist/features/pull-requests/update-pull-request/index.js.map +1 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/feature.d.ts +14 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/feature.js +87 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/feature.js.map +1 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/index.d.ts +1 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/index.js +18 -0
- package/dist/features/pull-requests/update-pull-request-thread-status/index.js.map +1 -0
- package/dist/features/repositories/__test__/test-helpers.d.ts +13 -0
- package/dist/features/repositories/__test__/test-helpers.js +35 -0
- package/dist/features/repositories/__test__/test-helpers.js.map +1 -0
- package/dist/features/repositories/create-branch/feature.d.ts +6 -0
- package/dist/features/repositories/create-branch/feature.js +33 -0
- package/dist/features/repositories/create-branch/feature.js.map +1 -0
- package/dist/features/repositories/create-branch/index.d.ts +1 -0
- package/dist/features/repositories/create-branch/index.js +18 -0
- package/dist/features/repositories/create-branch/index.js.map +1 -0
- package/dist/features/repositories/create-commit/feature.d.ts +6 -0
- package/dist/features/repositories/create-commit/feature.js +122 -0
- package/dist/features/repositories/create-commit/feature.js.map +1 -0
- package/dist/features/repositories/create-commit/index.d.ts +1 -0
- package/dist/features/repositories/create-commit/index.js +18 -0
- package/dist/features/repositories/create-commit/index.js.map +1 -0
- package/dist/features/repositories/get-all-repositories-tree/feature.d.ts +22 -0
- package/dist/features/repositories/get-all-repositories-tree/feature.js +303 -0
- package/dist/features/repositories/get-all-repositories-tree/feature.js.map +1 -0
- package/dist/features/repositories/get-all-repositories-tree/index.d.ts +2 -0
- package/dist/features/repositories/get-all-repositories-tree/index.js +19 -0
- package/dist/features/repositories/get-all-repositories-tree/index.js.map +1 -0
- package/dist/features/repositories/get-all-repositories-tree/schema.d.ts +2 -0
- package/dist/features/repositories/get-all-repositories-tree/schema.js +6 -0
- package/dist/features/repositories/get-all-repositories-tree/schema.js.map +1 -0
- package/dist/features/repositories/get-file-content/feature.d.ts +23 -0
- package/dist/features/repositories/get-file-content/feature.js +96 -0
- package/dist/features/repositories/get-file-content/feature.js.map +1 -0
- package/dist/features/repositories/get-file-content/index.d.ts +2 -0
- package/dist/features/repositories/get-file-content/index.js +19 -0
- package/dist/features/repositories/get-file-content/index.js.map +1 -0
- package/dist/features/repositories/get-file-content/schema.d.ts +2 -0
- package/dist/features/repositories/get-file-content/schema.js +6 -0
- package/dist/features/repositories/get-file-content/schema.js.map +1 -0
- package/dist/features/repositories/get-repository/feature.d.ts +12 -0
- package/dist/features/repositories/get-repository/feature.js +30 -0
- package/dist/features/repositories/get-repository/feature.js.map +1 -0
- package/dist/features/repositories/get-repository/index.d.ts +2 -0
- package/dist/features/repositories/get-repository/index.js +19 -0
- package/dist/features/repositories/get-repository/index.js.map +1 -0
- package/dist/features/repositories/get-repository/schema.d.ts +2 -0
- package/dist/features/repositories/get-repository/schema.js +6 -0
- package/dist/features/repositories/get-repository/schema.js.map +1 -0
- package/dist/features/repositories/get-repository-details/feature.d.ts +11 -0
- package/dist/features/repositories/get-repository-details/feature.js +67 -0
- package/dist/features/repositories/get-repository-details/feature.js.map +1 -0
- package/dist/features/repositories/get-repository-details/index.d.ts +2 -0
- package/dist/features/repositories/get-repository-details/index.js +19 -0
- package/dist/features/repositories/get-repository-details/index.js.map +1 -0
- package/dist/features/repositories/get-repository-details/schema.d.ts +2 -0
- package/dist/features/repositories/get-repository-details/schema.js +6 -0
- package/dist/features/repositories/get-repository-details/schema.js.map +1 -0
- package/dist/features/repositories/get-repository-tree/feature.d.ts +6 -0
- package/dist/features/repositories/get-repository-tree/feature.js +65 -0
- package/dist/features/repositories/get-repository-tree/feature.js.map +1 -0
- package/dist/features/repositories/get-repository-tree/index.d.ts +1 -0
- package/dist/features/repositories/get-repository-tree/index.js +18 -0
- package/dist/features/repositories/get-repository-tree/index.js.map +1 -0
- package/dist/features/repositories/index.d.ts +23 -0
- package/dist/features/repositories/index.js +207 -0
- package/dist/features/repositories/index.js.map +1 -0
- package/dist/features/repositories/list-branches/feature.d.ts +14 -0
- package/dist/features/repositories/list-branches/feature.js +56 -0
- package/dist/features/repositories/list-branches/feature.js.map +1 -0
- package/dist/features/repositories/list-branches/index.d.ts +2 -0
- package/dist/features/repositories/list-branches/index.js +19 -0
- package/dist/features/repositories/list-branches/index.js.map +1 -0
- package/dist/features/repositories/list-branches/schema.d.ts +8 -0
- package/dist/features/repositories/list-branches/schema.js +28 -0
- package/dist/features/repositories/list-branches/schema.js.map +1 -0
- package/dist/features/repositories/list-commits/feature.d.ts +6 -0
- package/dist/features/repositories/list-commits/feature.js +75 -0
- package/dist/features/repositories/list-commits/feature.js.map +1 -0
- package/dist/features/repositories/list-commits/index.d.ts +1 -0
- package/dist/features/repositories/list-commits/index.js +18 -0
- package/dist/features/repositories/list-commits/index.js.map +1 -0
- package/dist/features/repositories/list-repositories/feature.d.ts +10 -0
- package/dist/features/repositories/list-repositories/feature.js +25 -0
- package/dist/features/repositories/list-repositories/feature.js.map +1 -0
- package/dist/features/repositories/list-repositories/index.d.ts +2 -0
- package/dist/features/repositories/list-repositories/index.js +19 -0
- package/dist/features/repositories/list-repositories/index.js.map +1 -0
- package/dist/features/repositories/list-repositories/schema.d.ts +2 -0
- package/dist/features/repositories/list-repositories/schema.js +6 -0
- package/dist/features/repositories/list-repositories/schema.js.map +1 -0
- package/dist/features/repositories/list-tags/feature.d.ts +13 -0
- package/dist/features/repositories/list-tags/feature.js +52 -0
- package/dist/features/repositories/list-tags/feature.js.map +1 -0
- package/dist/features/repositories/list-tags/index.d.ts +2 -0
- package/dist/features/repositories/list-tags/index.js +19 -0
- package/dist/features/repositories/list-tags/index.js.map +1 -0
- package/dist/features/repositories/list-tags/schema.d.ts +8 -0
- package/dist/features/repositories/list-tags/schema.js +28 -0
- package/dist/features/repositories/list-tags/schema.js.map +1 -0
- package/dist/features/repositories/schemas.d.ts +101 -0
- package/dist/features/repositories/schemas.js +306 -0
- package/dist/features/repositories/schemas.js.map +1 -0
- package/dist/features/repositories/tool-definitions.d.ts +5 -0
- package/dist/features/repositories/tool-definitions.js +106 -0
- package/dist/features/repositories/tool-definitions.js.map +1 -0
- package/dist/features/repositories/types.d.ts +167 -0
- package/dist/features/repositories/types.js +3 -0
- package/dist/features/repositories/types.js.map +1 -0
- package/dist/features/search/index.d.ts +15 -0
- package/dist/features/search/index.js +65 -0
- package/dist/features/search/index.js.map +1 -0
- package/dist/features/search/schemas.d.ts +58 -0
- package/dist/features/search/schemas.js +159 -0
- package/dist/features/search/schemas.js.map +1 -0
- package/dist/features/search/search-code/feature.d.ts +10 -0
- package/dist/features/search/search-code/feature.js +178 -0
- package/dist/features/search/search-code/feature.js.map +1 -0
- package/dist/features/search/search-code/index.d.ts +2 -0
- package/dist/features/search/search-code/index.js +19 -0
- package/dist/features/search/search-code/index.js.map +1 -0
- package/dist/features/search/search-wiki/feature.d.ts +10 -0
- package/dist/features/search/search-wiki/feature.js +133 -0
- package/dist/features/search/search-wiki/feature.js.map +1 -0
- package/dist/features/search/search-wiki/index.d.ts +1 -0
- package/dist/features/search/search-wiki/index.js +18 -0
- package/dist/features/search/search-wiki/index.js.map +1 -0
- package/dist/features/search/search-work-items/feature.d.ts +10 -0
- package/dist/features/search/search-work-items/feature.js +119 -0
- package/dist/features/search/search-work-items/feature.js.map +1 -0
- package/dist/features/search/search-work-items/index.d.ts +1 -0
- package/dist/features/search/search-work-items/index.js +18 -0
- package/dist/features/search/search-work-items/index.js.map +1 -0
- package/dist/features/search/tool-definitions.d.ts +5 -0
- package/dist/features/search/tool-definitions.js +26 -0
- package/dist/features/search/tool-definitions.js.map +1 -0
- package/dist/features/search/types.d.ts +537 -0
- package/dist/features/search/types.js +3 -0
- package/dist/features/search/types.js.map +1 -0
- package/dist/features/service-connections/feature.d.ts +21 -0
- package/dist/features/service-connections/feature.js +51 -0
- package/dist/features/service-connections/feature.js.map +1 -0
- package/dist/features/service-connections/index.d.ts +10 -0
- package/dist/features/service-connections/index.js +42 -0
- package/dist/features/service-connections/index.js.map +1 -0
- package/dist/features/service-connections/schema.d.ts +8 -0
- package/dist/features/service-connections/schema.js +28 -0
- package/dist/features/service-connections/schema.js.map +1 -0
- package/dist/features/users/get-me/feature.d.ts +12 -0
- package/dist/features/users/get-me/feature.js +96 -0
- package/dist/features/users/get-me/feature.js.map +1 -0
- package/dist/features/users/get-me/index.d.ts +2 -0
- package/dist/features/users/get-me/index.js +19 -0
- package/dist/features/users/get-me/index.js.map +1 -0
- package/dist/features/users/get-me/schema.d.ts +2 -0
- package/dist/features/users/get-me/schema.js +6 -0
- package/dist/features/users/get-me/schema.js.map +1 -0
- package/dist/features/users/index.d.ts +17 -0
- package/dist/features/users/index.js +52 -0
- package/dist/features/users/index.js.map +1 -0
- package/dist/features/users/schemas.d.ts +5 -0
- package/dist/features/users/schemas.js +9 -0
- package/dist/features/users/schemas.js.map +1 -0
- package/dist/features/users/tool-definitions.d.ts +5 -0
- package/dist/features/users/tool-definitions.js +16 -0
- package/dist/features/users/tool-definitions.js.map +1 -0
- package/dist/features/users/types.d.ts +17 -0
- package/dist/features/users/types.js +3 -0
- package/dist/features/users/types.js.map +1 -0
- package/dist/features/wikis/create-wiki/feature.d.ts +49 -0
- package/dist/features/wikis/create-wiki/feature.js +56 -0
- package/dist/features/wikis/create-wiki/feature.js.map +1 -0
- package/dist/features/wikis/create-wiki/index.d.ts +2 -0
- package/dist/features/wikis/create-wiki/index.js +9 -0
- package/dist/features/wikis/create-wiki/index.js.map +1 -0
- package/dist/features/wikis/create-wiki/schema.d.ts +25 -0
- package/dist/features/wikis/create-wiki/schema.js +60 -0
- package/dist/features/wikis/create-wiki/schema.js.map +1 -0
- package/dist/features/wikis/create-wiki-page/feature.d.ts +18 -0
- package/dist/features/wikis/create-wiki-page/feature.js +95 -0
- package/dist/features/wikis/create-wiki-page/feature.js.map +1 -0
- package/dist/features/wikis/create-wiki-page/index.d.ts +2 -0
- package/dist/features/wikis/create-wiki-page/index.js +8 -0
- package/dist/features/wikis/create-wiki-page/index.js.map +1 -0
- package/dist/features/wikis/create-wiki-page/schema.d.ts +12 -0
- package/dist/features/wikis/create-wiki-page/schema.js +36 -0
- package/dist/features/wikis/create-wiki-page/schema.js.map +1 -0
- package/dist/features/wikis/get-wiki-page/feature.d.ts +33 -0
- package/dist/features/wikis/get-wiki-page/feature.js +68 -0
- package/dist/features/wikis/get-wiki-page/feature.js.map +1 -0
- package/dist/features/wikis/get-wiki-page/index.d.ts +2 -0
- package/dist/features/wikis/get-wiki-page/index.js +8 -0
- package/dist/features/wikis/get-wiki-page/index.js.map +1 -0
- package/dist/features/wikis/get-wiki-page/schema.d.ts +10 -0
- package/dist/features/wikis/get-wiki-page/schema.js +23 -0
- package/dist/features/wikis/get-wiki-page/schema.js.map +1 -0
- package/dist/features/wikis/get-wikis/feature.d.ts +25 -0
- package/dist/features/wikis/get-wikis/feature.js +37 -0
- package/dist/features/wikis/get-wikis/feature.js.map +1 -0
- package/dist/features/wikis/get-wikis/index.d.ts +2 -0
- package/dist/features/wikis/get-wikis/index.js +8 -0
- package/dist/features/wikis/get-wikis/index.js.map +1 -0
- package/dist/features/wikis/get-wikis/schema.d.ts +8 -0
- package/dist/features/wikis/get-wikis/schema.js +21 -0
- package/dist/features/wikis/get-wikis/schema.js.map +1 -0
- package/dist/features/wikis/index.d.ts +16 -0
- package/dist/features/wikis/index.js +141 -0
- package/dist/features/wikis/index.js.map +1 -0
- package/dist/features/wikis/list-wiki-pages/feature.d.ts +20 -0
- package/dist/features/wikis/list-wiki-pages/feature.js +79 -0
- package/dist/features/wikis/list-wiki-pages/feature.js.map +1 -0
- package/dist/features/wikis/list-wiki-pages/index.d.ts +2 -0
- package/dist/features/wikis/list-wiki-pages/index.js +8 -0
- package/dist/features/wikis/list-wiki-pages/index.js.map +1 -0
- package/dist/features/wikis/list-wiki-pages/schema.d.ts +10 -0
- package/dist/features/wikis/list-wiki-pages/schema.js +22 -0
- package/dist/features/wikis/list-wiki-pages/schema.js.map +1 -0
- package/dist/features/wikis/tool-definitions.d.ts +5 -0
- package/dist/features/wikis/tool-definitions.js +46 -0
- package/dist/features/wikis/tool-definitions.js.map +1 -0
- package/dist/features/wikis/update-wiki-page/feature.d.ts +12 -0
- package/dist/features/wikis/update-wiki-page/feature.js +63 -0
- package/dist/features/wikis/update-wiki-page/feature.js.map +1 -0
- package/dist/features/wikis/update-wiki-page/index.d.ts +2 -0
- package/dist/features/wikis/update-wiki-page/index.js +8 -0
- package/dist/features/wikis/update-wiki-page/index.js.map +1 -0
- package/dist/features/wikis/update-wiki-page/schema.d.ts +12 -0
- package/dist/features/wikis/update-wiki-page/schema.js +32 -0
- package/dist/features/wikis/update-wiki-page/schema.js.map +1 -0
- package/dist/features/work-items/__test__/fixtures.d.ts +9 -0
- package/dist/features/work-items/__test__/fixtures.js +28 -0
- package/dist/features/work-items/__test__/fixtures.js.map +1 -0
- package/dist/features/work-items/__test__/test-helpers.d.ts +13 -0
- package/dist/features/work-items/__test__/test-helpers.js +35 -0
- package/dist/features/work-items/__test__/test-helpers.js.map +1 -0
- package/dist/features/work-items/__test__/test-utils.d.ts +17 -0
- package/dist/features/work-items/__test__/test-utils.js +39 -0
- package/dist/features/work-items/__test__/test-utils.js.map +1 -0
- package/dist/features/work-items/attachment-schemas.d.ts +24 -0
- package/dist/features/work-items/attachment-schemas.js +46 -0
- package/dist/features/work-items/attachment-schemas.js.map +1 -0
- package/dist/features/work-items/create-work-item/feature.d.ts +12 -0
- package/dist/features/work-items/create-work-item/feature.js +107 -0
- package/dist/features/work-items/create-work-item/feature.js.map +1 -0
- package/dist/features/work-items/create-work-item/index.d.ts +2 -0
- package/dist/features/work-items/create-work-item/index.js +19 -0
- package/dist/features/work-items/create-work-item/index.js.map +1 -0
- package/dist/features/work-items/create-work-item/schema.d.ts +2 -0
- package/dist/features/work-items/create-work-item/schema.js +6 -0
- package/dist/features/work-items/create-work-item/schema.js.map +1 -0
- package/dist/features/work-items/create-work-item-attachment/feature.d.ts +11 -0
- package/dist/features/work-items/create-work-item-attachment/feature.js +107 -0
- package/dist/features/work-items/create-work-item-attachment/feature.js.map +1 -0
- package/dist/features/work-items/create-work-item-attachment/index.d.ts +2 -0
- package/dist/features/work-items/create-work-item-attachment/index.js +19 -0
- package/dist/features/work-items/create-work-item-attachment/index.js.map +1 -0
- package/dist/features/work-items/create-work-item-attachment/schema.d.ts +2 -0
- package/dist/features/work-items/create-work-item-attachment/schema.js +6 -0
- package/dist/features/work-items/create-work-item-attachment/schema.js.map +1 -0
- package/dist/features/work-items/delete-work-item-attachment/feature.d.ts +10 -0
- package/dist/features/work-items/delete-work-item-attachment/feature.js +51 -0
- package/dist/features/work-items/delete-work-item-attachment/feature.js.map +1 -0
- package/dist/features/work-items/delete-work-item-attachment/index.d.ts +2 -0
- package/dist/features/work-items/delete-work-item-attachment/index.js +19 -0
- package/dist/features/work-items/delete-work-item-attachment/index.js.map +1 -0
- package/dist/features/work-items/delete-work-item-attachment/schema.d.ts +2 -0
- package/dist/features/work-items/delete-work-item-attachment/schema.js +6 -0
- package/dist/features/work-items/delete-work-item-attachment/schema.js.map +1 -0
- package/dist/features/work-items/get-work-item/feature.d.ts +12 -0
- package/dist/features/work-items/get-work-item/feature.js +69 -0
- package/dist/features/work-items/get-work-item/feature.js.map +1 -0
- package/dist/features/work-items/get-work-item/index.d.ts +2 -0
- package/dist/features/work-items/get-work-item/index.js +19 -0
- package/dist/features/work-items/get-work-item/index.js.map +1 -0
- package/dist/features/work-items/get-work-item/schema.d.ts +2 -0
- package/dist/features/work-items/get-work-item/schema.js +6 -0
- package/dist/features/work-items/get-work-item/schema.js.map +1 -0
- package/dist/features/work-items/get-work-item-attachment/feature.d.ts +10 -0
- package/dist/features/work-items/get-work-item-attachment/feature.js +108 -0
- package/dist/features/work-items/get-work-item-attachment/feature.js.map +1 -0
- package/dist/features/work-items/get-work-item-attachment/index.d.ts +2 -0
- package/dist/features/work-items/get-work-item-attachment/index.js +19 -0
- package/dist/features/work-items/get-work-item-attachment/index.js.map +1 -0
- package/dist/features/work-items/get-work-item-attachment/schema.d.ts +2 -0
- package/dist/features/work-items/get-work-item-attachment/schema.js +6 -0
- package/dist/features/work-items/get-work-item-attachment/schema.js.map +1 -0
- package/dist/features/work-items/get-work-item-comments/feature.d.ts +10 -0
- package/dist/features/work-items/get-work-item-comments/feature.js +78 -0
- package/dist/features/work-items/get-work-item-comments/feature.js.map +1 -0
- package/dist/features/work-items/get-work-item-comments/index.d.ts +2 -0
- package/dist/features/work-items/get-work-item-comments/index.js +19 -0
- package/dist/features/work-items/get-work-item-comments/index.js.map +1 -0
- package/dist/features/work-items/get-work-item-comments/schema.d.ts +2 -0
- package/dist/features/work-items/get-work-item-comments/schema.js +6 -0
- package/dist/features/work-items/get-work-item-comments/schema.js.map +1 -0
- package/dist/features/work-items/index.d.ts +21 -0
- package/dist/features/work-items/index.js +181 -0
- package/dist/features/work-items/index.js.map +1 -0
- package/dist/features/work-items/list-work-items/feature.d.ts +10 -0
- package/dist/features/work-items/list-work-items/feature.js +92 -0
- package/dist/features/work-items/list-work-items/feature.js.map +1 -0
- package/dist/features/work-items/list-work-items/index.d.ts +2 -0
- package/dist/features/work-items/list-work-items/index.js +19 -0
- package/dist/features/work-items/list-work-items/index.js.map +1 -0
- package/dist/features/work-items/list-work-items/schema.d.ts +2 -0
- package/dist/features/work-items/list-work-items/schema.js +6 -0
- package/dist/features/work-items/list-work-items/schema.js.map +1 -0
- package/dist/features/work-items/manage-work-item-link/feature.d.ts +24 -0
- package/dist/features/work-items/manage-work-item-link/feature.js +91 -0
- package/dist/features/work-items/manage-work-item-link/feature.js.map +1 -0
- package/dist/features/work-items/manage-work-item-link/index.d.ts +2 -0
- package/dist/features/work-items/manage-work-item-link/index.js +8 -0
- package/dist/features/work-items/manage-work-item-link/index.js.map +1 -0
- package/dist/features/work-items/manage-work-item-link/schema.d.ts +2 -0
- package/dist/features/work-items/manage-work-item-link/schema.js +6 -0
- package/dist/features/work-items/manage-work-item-link/schema.js.map +1 -0
- package/dist/features/work-items/schemas.d.ts +99 -0
- package/dist/features/work-items/schemas.js +181 -0
- package/dist/features/work-items/schemas.js.map +1 -0
- package/dist/features/work-items/tool-definitions.d.ts +5 -0
- package/dist/features/work-items/tool-definitions.js +56 -0
- package/dist/features/work-items/tool-definitions.js.map +1 -0
- package/dist/features/work-items/types.d.ts +87 -0
- package/dist/features/work-items/types.js +3 -0
- package/dist/features/work-items/types.js.map +1 -0
- package/dist/features/work-items/update-work-item/feature.d.ts +12 -0
- package/dist/features/work-items/update-work-item/feature.js +155 -0
- package/dist/features/work-items/update-work-item/feature.js.map +1 -0
- package/dist/features/work-items/update-work-item/index.d.ts +2 -0
- package/dist/features/work-items/update-work-item/index.js +19 -0
- package/dist/features/work-items/update-work-item/index.js.map +1 -0
- package/dist/features/work-items/update-work-item/schema.d.ts +2 -0
- package/dist/features/work-items/update-work-item/schema.js +6 -0
- package/dist/features/work-items/update-work-item/schema.js.map +1 -0
- package/dist/http-server.d.ts +22 -0
- package/dist/http-server.js +137 -0
- package/dist/http-server.js.map +1 -0
- package/dist/index.d.ts +14 -0
- package/dist/index.js +138 -0
- package/dist/index.js.map +1 -0
- package/dist/server.d.ts +21 -0
- package/dist/server.js +379 -0
- package/dist/server.js.map +1 -0
- package/dist/shared/api/client.d.ts +91 -0
- package/dist/shared/api/client.js +242 -0
- package/dist/shared/api/client.js.map +1 -0
- package/dist/shared/api/index.d.ts +1 -0
- package/dist/shared/api/index.js +18 -0
- package/dist/shared/api/index.js.map +1 -0
- package/dist/shared/auth/auth-factory.d.ts +53 -0
- package/dist/shared/auth/auth-factory.js +194 -0
- package/dist/shared/auth/auth-factory.js.map +1 -0
- package/dist/shared/auth/client-factory.d.ts +109 -0
- package/dist/shared/auth/client-factory.js +272 -0
- package/dist/shared/auth/client-factory.js.map +1 -0
- package/dist/shared/auth/index.d.ts +11 -0
- package/dist/shared/auth/index.js +18 -0
- package/dist/shared/auth/index.js.map +1 -0
- package/dist/shared/azure-devops-url.d.ts +17 -0
- package/dist/shared/azure-devops-url.js +120 -0
- package/dist/shared/azure-devops-url.js.map +1 -0
- package/dist/shared/config/index.d.ts +1 -0
- package/dist/shared/config/index.js +18 -0
- package/dist/shared/config/index.js.map +1 -0
- package/dist/shared/config/version.d.ts +4 -0
- package/dist/shared/config/version.js +8 -0
- package/dist/shared/config/version.js.map +1 -0
- package/dist/shared/enums/index.d.ts +40 -0
- package/dist/shared/enums/index.js +87 -0
- package/dist/shared/enums/index.js.map +1 -0
- package/dist/shared/errors/azure-devops-errors.d.ts +107 -0
- package/dist/shared/errors/azure-devops-errors.js +161 -0
- package/dist/shared/errors/azure-devops-errors.js.map +1 -0
- package/dist/shared/errors/handle-request-error.d.ts +32 -0
- package/dist/shared/errors/handle-request-error.js +121 -0
- package/dist/shared/errors/handle-request-error.js.map +1 -0
- package/dist/shared/errors/index.d.ts +1 -0
- package/dist/shared/errors/index.js +18 -0
- package/dist/shared/errors/index.js.map +1 -0
- package/dist/shared/test/test-helpers.d.ts +20 -0
- package/dist/shared/test/test-helpers.js +57 -0
- package/dist/shared/test/test-helpers.js.map +1 -0
- package/dist/shared/test/text-content.d.ts +10 -0
- package/dist/shared/test/text-content.js +20 -0
- package/dist/shared/test/text-content.js.map +1 -0
- package/dist/shared/types/config.d.ts +27 -0
- package/dist/shared/types/config.js +3 -0
- package/dist/shared/types/config.js.map +1 -0
- package/dist/shared/types/index.d.ts +1 -0
- package/dist/shared/types/index.js +18 -0
- package/dist/shared/types/index.js.map +1 -0
- package/dist/shared/types/request-handler.d.ts +21 -0
- package/dist/shared/types/request-handler.js +3 -0
- package/dist/shared/types/request-handler.js.map +1 -0
- package/dist/shared/types/tool-definition.d.ts +9 -0
- package/dist/shared/types/tool-definition.js +3 -0
- package/dist/shared/types/tool-definition.js.map +1 -0
- package/dist/shared/utils/to-json-schema.d.ts +6 -0
- package/dist/shared/utils/to-json-schema.js +12 -0
- package/dist/shared/utils/to-json-schema.js.map +1 -0
- package/dist/utils/environment.d.ts +21 -0
- package/dist/utils/environment.js +58 -0
- package/dist/utils/environment.js.map +1 -0
- package/docs/SOLUTION_SUMMARY.md +145 -0
- package/docs/authentication.md +293 -0
- package/docs/azure-identity-authentication.md +187 -0
- package/docs/ci-setup.md +61 -0
- package/docs/docker.md +135 -0
- package/docs/examples/README.md +33 -0
- package/docs/examples/azure-cli-authentication.env +25 -0
- package/docs/examples/azure-identity-authentication.env +33 -0
- package/docs/examples/pat-authentication.env +24 -0
- package/docs/important-knowledge/azure-devops-rest-api-research.md +88 -0
- package/docs/important-knowledge/llm-tldr-cli.md +37 -0
- package/docs/npm-trusted-publishers-migration.md +142 -0
- package/docs/release-troubleshooting.md +153 -0
- package/docs/testing/README.md +140 -0
- package/docs/testing/setup.md +72 -0
- package/docs/tools/README.md +76 -0
- package/docs/tools/core-navigation.md +114 -0
- package/docs/tools/organizations.md +73 -0
- package/docs/tools/pipelines.md +532 -0
- package/docs/tools/projects.md +114 -0
- package/docs/tools/pull-requests.md +1110 -0
- package/docs/tools/repositories.md +610 -0
- package/docs/tools/resources.md +133 -0
- package/docs/tools/search.md +165 -0
- package/docs/tools/user-tools.md +39 -0
- package/docs/tools/wiki.md +192 -0
- package/docs/tools/work-items.md +244 -0
- package/package.json +125 -4
|
@@ -0,0 +1,537 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Options for searching code in Azure DevOps repositories
|
|
3
|
+
*/
|
|
4
|
+
export interface SearchCodeOptions {
|
|
5
|
+
searchText: string;
|
|
6
|
+
organizationId?: string;
|
|
7
|
+
projectId?: string;
|
|
8
|
+
filters?: {
|
|
9
|
+
Repository?: string[];
|
|
10
|
+
Path?: string[];
|
|
11
|
+
Branch?: string[];
|
|
12
|
+
CodeElement?: string[];
|
|
13
|
+
};
|
|
14
|
+
top?: number;
|
|
15
|
+
skip?: number;
|
|
16
|
+
includeSnippet?: boolean;
|
|
17
|
+
includeContent?: boolean;
|
|
18
|
+
}
|
|
19
|
+
/**
|
|
20
|
+
* Request body for the Azure DevOps Search API
|
|
21
|
+
*/
|
|
22
|
+
export interface CodeSearchRequest {
|
|
23
|
+
searchText: string;
|
|
24
|
+
$skip?: number;
|
|
25
|
+
$top?: number;
|
|
26
|
+
filters?: {
|
|
27
|
+
Project?: string[];
|
|
28
|
+
Repository?: string[];
|
|
29
|
+
Path?: string[];
|
|
30
|
+
Branch?: string[];
|
|
31
|
+
CodeElement?: string[];
|
|
32
|
+
};
|
|
33
|
+
includeFacets?: boolean;
|
|
34
|
+
includeSnippet?: boolean;
|
|
35
|
+
}
|
|
36
|
+
/**
|
|
37
|
+
* Match information for search results
|
|
38
|
+
*/
|
|
39
|
+
export interface CodeSearchMatch {
|
|
40
|
+
charOffset: number;
|
|
41
|
+
length: number;
|
|
42
|
+
}
|
|
43
|
+
/**
|
|
44
|
+
* Collection information for search results
|
|
45
|
+
*/
|
|
46
|
+
export interface CodeSearchCollection {
|
|
47
|
+
name: string;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* Project information for search results
|
|
51
|
+
*/
|
|
52
|
+
export interface CodeSearchProject {
|
|
53
|
+
name: string;
|
|
54
|
+
id: string;
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* Repository information for search results
|
|
58
|
+
*/
|
|
59
|
+
export interface CodeSearchRepository {
|
|
60
|
+
name: string;
|
|
61
|
+
id: string;
|
|
62
|
+
type: string;
|
|
63
|
+
}
|
|
64
|
+
/**
|
|
65
|
+
* Version information for search results
|
|
66
|
+
*/
|
|
67
|
+
export interface CodeSearchVersion {
|
|
68
|
+
branchName: string;
|
|
69
|
+
changeId: string;
|
|
70
|
+
}
|
|
71
|
+
/**
|
|
72
|
+
* Individual code search result
|
|
73
|
+
*/
|
|
74
|
+
export interface CodeSearchResult {
|
|
75
|
+
fileName: string;
|
|
76
|
+
path: string;
|
|
77
|
+
content?: string;
|
|
78
|
+
matches: {
|
|
79
|
+
content?: CodeSearchMatch[];
|
|
80
|
+
fileName?: CodeSearchMatch[];
|
|
81
|
+
};
|
|
82
|
+
collection: CodeSearchCollection;
|
|
83
|
+
project: CodeSearchProject;
|
|
84
|
+
repository: CodeSearchRepository;
|
|
85
|
+
versions: CodeSearchVersion[];
|
|
86
|
+
contentId: string;
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* Facet information for search results
|
|
90
|
+
*/
|
|
91
|
+
export interface CodeSearchFacet {
|
|
92
|
+
name: string;
|
|
93
|
+
id: string;
|
|
94
|
+
resultCount: number;
|
|
95
|
+
}
|
|
96
|
+
/**
|
|
97
|
+
* Response from the Azure DevOps Search API
|
|
98
|
+
*/
|
|
99
|
+
export interface CodeSearchResponse {
|
|
100
|
+
count: number;
|
|
101
|
+
results: CodeSearchResult[];
|
|
102
|
+
infoCode?: number;
|
|
103
|
+
facets?: {
|
|
104
|
+
Project?: CodeSearchFacet[];
|
|
105
|
+
Repository?: CodeSearchFacet[];
|
|
106
|
+
Path?: CodeSearchFacet[];
|
|
107
|
+
Branch?: CodeSearchFacet[];
|
|
108
|
+
CodeElement?: CodeSearchFacet[];
|
|
109
|
+
};
|
|
110
|
+
}
|
|
111
|
+
/**
|
|
112
|
+
* Options for searching wiki pages in Azure DevOps projects
|
|
113
|
+
*/
|
|
114
|
+
export interface SearchWikiOptions {
|
|
115
|
+
/**
|
|
116
|
+
* The text to search for within wiki pages
|
|
117
|
+
*/
|
|
118
|
+
searchText: string;
|
|
119
|
+
/**
|
|
120
|
+
* The ID or name of the organization
|
|
121
|
+
*/
|
|
122
|
+
organizationId?: string;
|
|
123
|
+
/**
|
|
124
|
+
* The ID or name of the project to search in
|
|
125
|
+
* If not provided, search will be performed across the entire organization
|
|
126
|
+
*/
|
|
127
|
+
projectId?: string;
|
|
128
|
+
/**
|
|
129
|
+
* Optional filters to narrow search results
|
|
130
|
+
*/
|
|
131
|
+
filters?: {
|
|
132
|
+
/**
|
|
133
|
+
* Filter by project names. Useful for cross-project searches.
|
|
134
|
+
*/
|
|
135
|
+
Project?: string[];
|
|
136
|
+
};
|
|
137
|
+
/**
|
|
138
|
+
* Number of results to return
|
|
139
|
+
* @default 100
|
|
140
|
+
* @minimum 1
|
|
141
|
+
* @maximum 1000
|
|
142
|
+
*/
|
|
143
|
+
top?: number;
|
|
144
|
+
/**
|
|
145
|
+
* Number of results to skip for pagination
|
|
146
|
+
* @default 0
|
|
147
|
+
* @minimum 0
|
|
148
|
+
*/
|
|
149
|
+
skip?: number;
|
|
150
|
+
/**
|
|
151
|
+
* Whether to include faceting in results
|
|
152
|
+
* @default true
|
|
153
|
+
*/
|
|
154
|
+
includeFacets?: boolean;
|
|
155
|
+
}
|
|
156
|
+
/**
|
|
157
|
+
* Request body for the Azure DevOps Wiki Search API
|
|
158
|
+
*/
|
|
159
|
+
export interface WikiSearchRequest {
|
|
160
|
+
/**
|
|
161
|
+
* The search text to find in wiki pages
|
|
162
|
+
*/
|
|
163
|
+
searchText: string;
|
|
164
|
+
/**
|
|
165
|
+
* Number of results to skip for pagination
|
|
166
|
+
*/
|
|
167
|
+
$skip?: number;
|
|
168
|
+
/**
|
|
169
|
+
* Number of results to return
|
|
170
|
+
*/
|
|
171
|
+
$top?: number;
|
|
172
|
+
/**
|
|
173
|
+
* Filters to be applied. Set to null if no filters are needed.
|
|
174
|
+
*/
|
|
175
|
+
filters?: {
|
|
176
|
+
/**
|
|
177
|
+
* Filter by project names
|
|
178
|
+
*/
|
|
179
|
+
Project?: string[];
|
|
180
|
+
};
|
|
181
|
+
/**
|
|
182
|
+
* Options for sorting search results
|
|
183
|
+
* If null, results are sorted by relevance
|
|
184
|
+
*/
|
|
185
|
+
$orderBy?: SortOption[];
|
|
186
|
+
/**
|
|
187
|
+
* Whether to include faceting in the result
|
|
188
|
+
* @default false
|
|
189
|
+
*/
|
|
190
|
+
includeFacets?: boolean;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Sort option for search results
|
|
194
|
+
*/
|
|
195
|
+
export interface SortOption {
|
|
196
|
+
/**
|
|
197
|
+
* Field to sort by
|
|
198
|
+
*/
|
|
199
|
+
field: string;
|
|
200
|
+
/**
|
|
201
|
+
* Sort direction
|
|
202
|
+
*/
|
|
203
|
+
sortOrder: 'asc' | 'desc' | 'ASC' | 'DESC';
|
|
204
|
+
}
|
|
205
|
+
/**
|
|
206
|
+
* Defines the matched terms in the field of the wiki result
|
|
207
|
+
*/
|
|
208
|
+
export interface WikiHit {
|
|
209
|
+
/**
|
|
210
|
+
* Reference name of the highlighted field
|
|
211
|
+
*/
|
|
212
|
+
fieldReferenceName: string;
|
|
213
|
+
/**
|
|
214
|
+
* Matched/highlighted snippets of the field
|
|
215
|
+
*/
|
|
216
|
+
highlights: string[];
|
|
217
|
+
}
|
|
218
|
+
/**
|
|
219
|
+
* Defines the wiki result that matched a wiki search request
|
|
220
|
+
*/
|
|
221
|
+
export interface WikiResult {
|
|
222
|
+
/**
|
|
223
|
+
* Name of the result file
|
|
224
|
+
*/
|
|
225
|
+
fileName: string;
|
|
226
|
+
/**
|
|
227
|
+
* Path at which result file is present
|
|
228
|
+
*/
|
|
229
|
+
path: string;
|
|
230
|
+
/**
|
|
231
|
+
* Collection of the result file
|
|
232
|
+
*/
|
|
233
|
+
collection: {
|
|
234
|
+
/**
|
|
235
|
+
* Name of the collection
|
|
236
|
+
*/
|
|
237
|
+
name: string;
|
|
238
|
+
};
|
|
239
|
+
/**
|
|
240
|
+
* Project details of the wiki document
|
|
241
|
+
*/
|
|
242
|
+
project: {
|
|
243
|
+
/**
|
|
244
|
+
* ID of the project
|
|
245
|
+
*/
|
|
246
|
+
id: string;
|
|
247
|
+
/**
|
|
248
|
+
* Name of the project
|
|
249
|
+
*/
|
|
250
|
+
name: string;
|
|
251
|
+
/**
|
|
252
|
+
* Visibility of the project
|
|
253
|
+
*/
|
|
254
|
+
visibility?: string;
|
|
255
|
+
};
|
|
256
|
+
/**
|
|
257
|
+
* Wiki information for the result
|
|
258
|
+
*/
|
|
259
|
+
wiki: {
|
|
260
|
+
/**
|
|
261
|
+
* ID of the wiki
|
|
262
|
+
*/
|
|
263
|
+
id: string;
|
|
264
|
+
/**
|
|
265
|
+
* Mapped path for the wiki
|
|
266
|
+
*/
|
|
267
|
+
mappedPath: string;
|
|
268
|
+
/**
|
|
269
|
+
* Name of the wiki
|
|
270
|
+
*/
|
|
271
|
+
name: string;
|
|
272
|
+
/**
|
|
273
|
+
* Version for wiki
|
|
274
|
+
*/
|
|
275
|
+
version: string;
|
|
276
|
+
};
|
|
277
|
+
/**
|
|
278
|
+
* Content ID of the result file
|
|
279
|
+
*/
|
|
280
|
+
contentId: string;
|
|
281
|
+
/**
|
|
282
|
+
* Highlighted snippets of fields that match the search request
|
|
283
|
+
* The list is sorted by relevance of the snippets
|
|
284
|
+
*/
|
|
285
|
+
hits: WikiHit[];
|
|
286
|
+
}
|
|
287
|
+
/**
|
|
288
|
+
* Defines a wiki search response item
|
|
289
|
+
*/
|
|
290
|
+
export interface WikiSearchResponse {
|
|
291
|
+
/**
|
|
292
|
+
* Total number of matched wiki documents
|
|
293
|
+
*/
|
|
294
|
+
count: number;
|
|
295
|
+
/**
|
|
296
|
+
* List of top matched wiki documents
|
|
297
|
+
*/
|
|
298
|
+
results: WikiResult[];
|
|
299
|
+
/**
|
|
300
|
+
* Numeric code indicating additional information:
|
|
301
|
+
* 0 - Ok
|
|
302
|
+
* 1 - Account is being reindexed
|
|
303
|
+
* 2 - Account indexing has not started
|
|
304
|
+
* 3 - Invalid Request
|
|
305
|
+
* ... and others as defined in the API
|
|
306
|
+
*/
|
|
307
|
+
infoCode?: number;
|
|
308
|
+
/**
|
|
309
|
+
* A dictionary storing an array of Filter objects against each facet
|
|
310
|
+
*/
|
|
311
|
+
facets?: {
|
|
312
|
+
/**
|
|
313
|
+
* Project facets for filtering
|
|
314
|
+
*/
|
|
315
|
+
Project?: CodeSearchFacet[];
|
|
316
|
+
};
|
|
317
|
+
}
|
|
318
|
+
/**
|
|
319
|
+
* Options for searching work items in Azure DevOps projects
|
|
320
|
+
*/
|
|
321
|
+
export interface SearchWorkItemsOptions {
|
|
322
|
+
/**
|
|
323
|
+
* The text to search for within work items
|
|
324
|
+
*/
|
|
325
|
+
searchText: string;
|
|
326
|
+
/**
|
|
327
|
+
* The ID or name of the organization
|
|
328
|
+
*/
|
|
329
|
+
organizationId?: string;
|
|
330
|
+
/**
|
|
331
|
+
* The ID or name of the project to search in
|
|
332
|
+
* If not provided, search will be performed across the entire organization
|
|
333
|
+
*/
|
|
334
|
+
projectId?: string;
|
|
335
|
+
/**
|
|
336
|
+
* Optional filters to narrow search results
|
|
337
|
+
*/
|
|
338
|
+
filters?: {
|
|
339
|
+
/**
|
|
340
|
+
* Filter by project names. Useful for cross-project searches.
|
|
341
|
+
*/
|
|
342
|
+
'System.TeamProject'?: string[];
|
|
343
|
+
/**
|
|
344
|
+
* Filter by work item types (Bug, Task, User Story, etc.)
|
|
345
|
+
*/
|
|
346
|
+
'System.WorkItemType'?: string[];
|
|
347
|
+
/**
|
|
348
|
+
* Filter by work item states (New, Active, Closed, etc.)
|
|
349
|
+
*/
|
|
350
|
+
'System.State'?: string[];
|
|
351
|
+
/**
|
|
352
|
+
* Filter by assigned users
|
|
353
|
+
*/
|
|
354
|
+
'System.AssignedTo'?: string[];
|
|
355
|
+
/**
|
|
356
|
+
* Filter by area paths
|
|
357
|
+
*/
|
|
358
|
+
'System.AreaPath'?: string[];
|
|
359
|
+
};
|
|
360
|
+
/**
|
|
361
|
+
* Number of results to return
|
|
362
|
+
* @default 100
|
|
363
|
+
* @minimum 1
|
|
364
|
+
* @maximum 1000
|
|
365
|
+
*/
|
|
366
|
+
top?: number;
|
|
367
|
+
/**
|
|
368
|
+
* Number of results to skip for pagination
|
|
369
|
+
* @default 0
|
|
370
|
+
* @minimum 0
|
|
371
|
+
*/
|
|
372
|
+
skip?: number;
|
|
373
|
+
/**
|
|
374
|
+
* Whether to include faceting in results
|
|
375
|
+
* @default true
|
|
376
|
+
*/
|
|
377
|
+
includeFacets?: boolean;
|
|
378
|
+
/**
|
|
379
|
+
* Options for sorting search results
|
|
380
|
+
* If null, results are sorted by relevance
|
|
381
|
+
*/
|
|
382
|
+
orderBy?: SortOption[];
|
|
383
|
+
}
|
|
384
|
+
/**
|
|
385
|
+
* Request body for the Azure DevOps Work Item Search API
|
|
386
|
+
*/
|
|
387
|
+
export interface WorkItemSearchRequest {
|
|
388
|
+
/**
|
|
389
|
+
* The search text to find in work items
|
|
390
|
+
*/
|
|
391
|
+
searchText: string;
|
|
392
|
+
/**
|
|
393
|
+
* Number of results to skip for pagination
|
|
394
|
+
*/
|
|
395
|
+
$skip?: number;
|
|
396
|
+
/**
|
|
397
|
+
* Number of results to return
|
|
398
|
+
*/
|
|
399
|
+
$top?: number;
|
|
400
|
+
/**
|
|
401
|
+
* Filters to be applied. Set to null if no filters are needed.
|
|
402
|
+
*/
|
|
403
|
+
filters?: {
|
|
404
|
+
'System.TeamProject'?: string[];
|
|
405
|
+
'System.WorkItemType'?: string[];
|
|
406
|
+
'System.State'?: string[];
|
|
407
|
+
'System.AssignedTo'?: string[];
|
|
408
|
+
'System.AreaPath'?: string[];
|
|
409
|
+
};
|
|
410
|
+
/**
|
|
411
|
+
* Options for sorting search results
|
|
412
|
+
* If null, results are sorted by relevance
|
|
413
|
+
*/
|
|
414
|
+
$orderBy?: SortOption[];
|
|
415
|
+
/**
|
|
416
|
+
* Whether to include faceting in the result
|
|
417
|
+
* @default false
|
|
418
|
+
*/
|
|
419
|
+
includeFacets?: boolean;
|
|
420
|
+
}
|
|
421
|
+
/**
|
|
422
|
+
* Defines the matched terms in the field of the work item result
|
|
423
|
+
*/
|
|
424
|
+
export interface WorkItemHit {
|
|
425
|
+
/**
|
|
426
|
+
* Reference name of the highlighted field
|
|
427
|
+
*/
|
|
428
|
+
fieldReferenceName: string;
|
|
429
|
+
/**
|
|
430
|
+
* Matched/highlighted snippets of the field
|
|
431
|
+
*/
|
|
432
|
+
highlights: string[];
|
|
433
|
+
}
|
|
434
|
+
/**
|
|
435
|
+
* Defines the work item result that matched a work item search request
|
|
436
|
+
*/
|
|
437
|
+
export interface WorkItemResult {
|
|
438
|
+
/**
|
|
439
|
+
* Project details of the work item
|
|
440
|
+
*/
|
|
441
|
+
project: {
|
|
442
|
+
/**
|
|
443
|
+
* ID of the project
|
|
444
|
+
*/
|
|
445
|
+
id: string;
|
|
446
|
+
/**
|
|
447
|
+
* Name of the project
|
|
448
|
+
*/
|
|
449
|
+
name: string;
|
|
450
|
+
};
|
|
451
|
+
/**
|
|
452
|
+
* A standard set of work item fields and their values
|
|
453
|
+
*/
|
|
454
|
+
fields: {
|
|
455
|
+
/**
|
|
456
|
+
* ID of the work item
|
|
457
|
+
*/
|
|
458
|
+
'system.id': string;
|
|
459
|
+
/**
|
|
460
|
+
* Type of the work item (Bug, Task, User Story, etc.)
|
|
461
|
+
*/
|
|
462
|
+
'system.workitemtype': string;
|
|
463
|
+
/**
|
|
464
|
+
* Title of the work item
|
|
465
|
+
*/
|
|
466
|
+
'system.title': string;
|
|
467
|
+
/**
|
|
468
|
+
* User assigned to the work item
|
|
469
|
+
*/
|
|
470
|
+
'system.assignedto'?: string;
|
|
471
|
+
/**
|
|
472
|
+
* Current state of the work item
|
|
473
|
+
*/
|
|
474
|
+
'system.state'?: string;
|
|
475
|
+
/**
|
|
476
|
+
* Tags associated with the work item
|
|
477
|
+
*/
|
|
478
|
+
'system.tags'?: string;
|
|
479
|
+
/**
|
|
480
|
+
* Revision number of the work item
|
|
481
|
+
*/
|
|
482
|
+
'system.rev'?: string;
|
|
483
|
+
/**
|
|
484
|
+
* Creation date of the work item
|
|
485
|
+
*/
|
|
486
|
+
'system.createddate'?: string;
|
|
487
|
+
/**
|
|
488
|
+
* Last modified date of the work item
|
|
489
|
+
*/
|
|
490
|
+
'system.changeddate'?: string;
|
|
491
|
+
/**
|
|
492
|
+
* Other fields may be included based on the work item type
|
|
493
|
+
*/
|
|
494
|
+
[key: string]: string | number | boolean | null | undefined;
|
|
495
|
+
};
|
|
496
|
+
/**
|
|
497
|
+
* Highlighted snippets of fields that match the search request
|
|
498
|
+
* The list is sorted by relevance of the snippets
|
|
499
|
+
*/
|
|
500
|
+
hits: WorkItemHit[];
|
|
501
|
+
/**
|
|
502
|
+
* URL to the work item
|
|
503
|
+
*/
|
|
504
|
+
url: string;
|
|
505
|
+
}
|
|
506
|
+
/**
|
|
507
|
+
* Defines a work item search response item
|
|
508
|
+
*/
|
|
509
|
+
export interface WorkItemSearchResponse {
|
|
510
|
+
/**
|
|
511
|
+
* Total number of matched work items
|
|
512
|
+
*/
|
|
513
|
+
count: number;
|
|
514
|
+
/**
|
|
515
|
+
* List of top matched work items
|
|
516
|
+
*/
|
|
517
|
+
results: WorkItemResult[];
|
|
518
|
+
/**
|
|
519
|
+
* Numeric code indicating additional information:
|
|
520
|
+
* 0 - Ok
|
|
521
|
+
* 1 - Account is being reindexed
|
|
522
|
+
* 2 - Account indexing has not started
|
|
523
|
+
* 3 - Invalid Request
|
|
524
|
+
* ... and others as defined in the API
|
|
525
|
+
*/
|
|
526
|
+
infoCode?: number;
|
|
527
|
+
/**
|
|
528
|
+
* A dictionary storing an array of Filter objects against each facet
|
|
529
|
+
*/
|
|
530
|
+
facets?: {
|
|
531
|
+
'System.TeamProject'?: CodeSearchFacet[];
|
|
532
|
+
'System.WorkItemType'?: CodeSearchFacet[];
|
|
533
|
+
'System.State'?: CodeSearchFacet[];
|
|
534
|
+
'System.AssignedTo'?: CodeSearchFacet[];
|
|
535
|
+
'System.AreaPath'?: CodeSearchFacet[];
|
|
536
|
+
};
|
|
537
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"types.js","sourceRoot":"","sources":["../../../src/features/search/types.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { WebApi } from 'azure-devops-node-api';
|
|
2
|
+
import { z } from 'zod';
|
|
3
|
+
import { ListServiceConnectionsSchema } from './schema';
|
|
4
|
+
export type ListServiceConnectionsOptions = z.infer<typeof ListServiceConnectionsSchema>;
|
|
5
|
+
export interface ServiceConnectionInfo {
|
|
6
|
+
id: string;
|
|
7
|
+
name: string;
|
|
8
|
+
type?: string;
|
|
9
|
+
description?: string;
|
|
10
|
+
isShared?: boolean;
|
|
11
|
+
isReady?: boolean;
|
|
12
|
+
createdBy?: {
|
|
13
|
+
displayName?: string;
|
|
14
|
+
uniqueName?: string;
|
|
15
|
+
};
|
|
16
|
+
authorization?: {
|
|
17
|
+
scheme?: string;
|
|
18
|
+
parameters?: Record<string, string>;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export declare function listServiceConnections(connection: WebApi, options: ListServiceConnectionsOptions): Promise<ServiceConnectionInfo[]>;
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.listServiceConnections = listServiceConnections;
|
|
4
|
+
const errors_1 = require("../../shared/errors");
|
|
5
|
+
const environment_1 = require("../../utils/environment");
|
|
6
|
+
async function listServiceConnections(connection, options) {
|
|
7
|
+
try {
|
|
8
|
+
const projectId = options.projectId ?? environment_1.defaultProject;
|
|
9
|
+
const baseUrl = connection.serverUrl.replace(/\/+$/, '');
|
|
10
|
+
const encodedProject = encodeURIComponent(projectId);
|
|
11
|
+
const url = new URL(`${encodedProject}/_apis/serviceendpoint/endpoints`, `${baseUrl}/`);
|
|
12
|
+
url.searchParams.set('api-version', environment_1.apiVersion);
|
|
13
|
+
if (options.type) {
|
|
14
|
+
url.searchParams.set('type', options.type);
|
|
15
|
+
}
|
|
16
|
+
if (options.authSchemes && options.authSchemes.length > 0) {
|
|
17
|
+
url.searchParams.set('authSchemes', options.authSchemes.join(','));
|
|
18
|
+
}
|
|
19
|
+
if (options.includeDetails) {
|
|
20
|
+
url.searchParams.set('includeDetails', 'true');
|
|
21
|
+
}
|
|
22
|
+
// Use the core/build API client for the HTTP transport
|
|
23
|
+
const buildApi = await connection.getBuildApi();
|
|
24
|
+
const requestOptions = buildApi.createRequestOptions('application/json', environment_1.apiVersion);
|
|
25
|
+
const response = await buildApi.rest.get(url.toString(), requestOptions);
|
|
26
|
+
if (response.statusCode === 404 || !response.result) {
|
|
27
|
+
throw new errors_1.AzureDevOpsResourceNotFoundError(`Service connections not found in project ${projectId}`);
|
|
28
|
+
}
|
|
29
|
+
return response.result.value ?? [];
|
|
30
|
+
}
|
|
31
|
+
catch (error) {
|
|
32
|
+
if (error instanceof errors_1.AzureDevOpsError) {
|
|
33
|
+
throw error;
|
|
34
|
+
}
|
|
35
|
+
if (error instanceof Error) {
|
|
36
|
+
const message = error.message.toLowerCase();
|
|
37
|
+
if (message.includes('authentication') ||
|
|
38
|
+
message.includes('unauthorized') ||
|
|
39
|
+
message.includes('401')) {
|
|
40
|
+
throw new errors_1.AzureDevOpsAuthenticationError(`Failed to authenticate: ${error.message}`);
|
|
41
|
+
}
|
|
42
|
+
if (message.includes('not found') ||
|
|
43
|
+
message.includes('does not exist') ||
|
|
44
|
+
message.includes('404')) {
|
|
45
|
+
throw new errors_1.AzureDevOpsResourceNotFoundError(`Service connections not found in project ${options.projectId}: ${error.message}`);
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
throw new errors_1.AzureDevOpsError(`Failed to list service connections: ${error instanceof Error ? error.message : String(error)}`);
|
|
49
|
+
}
|
|
50
|
+
}
|
|
51
|
+
//# sourceMappingURL=feature.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"feature.js","sourceRoot":"","sources":["../../../src/features/service-connections/feature.ts"],"names":[],"mappings":";;;AACA,gDAI6B;AAC7B,yDAAqE;AAsB9D,KAAK,iCACV,UAAkB,EAClB,OAAsC;IAEtC,IAAI,CAAC;QACH,MAAM,SAAS,GAAG,OAAO,CAAC,SAAS,IAAI,4BAAc,CAAC;QACtD,MAAM,OAAO,GAAG,UAAU,CAAC,SAAS,CAAC,OAAO,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QACzD,MAAM,cAAc,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;QAErD,MAAM,GAAG,GAAG,IAAI,GAAG,CACjB,GAAG,cAAc,kCAAkC,EACnD,GAAG,OAAO,GAAG,CACd,CAAC;QACF,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,EAAE,wBAAU,CAAC,CAAC;QAChD,IAAI,OAAO,CAAC,IAAI,EAAE,CAAC;YACjB,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,MAAM,EAAE,OAAO,CAAC,IAAI,CAAC,CAAC;QAC7C,CAAC;QACD,IAAI,OAAO,CAAC,WAAW,IAAI,OAAO,CAAC,WAAW,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YAC1D,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,aAAa,EAAE,OAAO,CAAC,WAAW,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC;QACrE,CAAC;QACD,IAAI,OAAO,CAAC,cAAc,EAAE,CAAC;YAC3B,GAAG,CAAC,YAAY,CAAC,GAAG,CAAC,gBAAgB,EAAE,MAAM,CAAC,CAAC;QACjD,CAAC;QAED,uDAAuD;QACvD,MAAM,QAAQ,GAAG,MAAM,UAAU,CAAC,WAAW,EAAE,CAAC;QAChD,MAAM,cAAc,GAAG,QAAQ,CAAC,oBAAoB,CAClD,kBAAkB,EAClB,wBAAU,CACX,CAAC;QAEF,MAAM,QAAQ,GAAG,MAAM,QAAQ,CAAC,IAAI,CAAC,GAAG,CAG9B,GAAG,CAAC,QAAQ,EAAE,EAAE,cAAc,CAAC,CAAC;QAE1C,IAAI,QAAQ,CAAC,UAAU,KAAK,GAAG,IAAI,CAAC,QAAQ,CAAC,MAAM,EAAE,CAAC;YACpD,MAAM,IAAI,yCAAgC,CACxC,4CAA4C,SAAS,EAAE,CACxD,CAAC;QACJ,CAAC;QAED,OAAO,QAAQ,CAAC,MAAM,CAAC,KAAK,IAAI,EAAE,CAAC;IACrC,CAAC;IAAC,OAAO,KAAK,EAAE,CAAC;QACf,IAAI,KAAK,YAAY,yBAAgB,EAAE,CAAC;YACtC,MAAM,KAAK,CAAC;QACd,CAAC;QAED,IAAI,KAAK,YAAY,KAAK,EAAE,CAAC;YAC3B,MAAM,OAAO,GAAG,KAAK,CAAC,OAAO,CAAC,WAAW,EAAE,CAAC;YAC5C,IACE,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC;gBAClC,OAAO,CAAC,QAAQ,CAAC,cAAc,CAAC;gBAChC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EACvB,CAAC;gBACD,MAAM,IAAI,uCAA8B,CACtC,2BAA2B,KAAK,CAAC,OAAO,EAAE,CAC3C,CAAC;YACJ,CAAC;YACD,IACE,OAAO,CAAC,QAAQ,CAAC,WAAW,CAAC;gBAC7B,OAAO,CAAC,QAAQ,CAAC,gBAAgB,CAAC;gBAClC,OAAO,CAAC,QAAQ,CAAC,KAAK,CAAC,EACvB,CAAC;gBACD,MAAM,IAAI,yCAAgC,CACxC,4CAA4C,OAAO,CAAC,SAAS,KAAK,KAAK,CAAC,OAAO,EAAE,CAClF,CAAC;YACJ,CAAC;QACH,CAAC;QAED,MAAM,IAAI,yBAAgB,CACxB,uCAAuC,KAAK,YAAY,KAAK,CAAC,CAAC,CAAC,KAAK,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,CAAC,KAAK,CAAC,EAAE,CAChG,CAAC;IACJ,CAAC;AACH,CAAC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
export * from './feature';
|
|
2
|
+
export * from './schema';
|
|
3
|
+
import { RequestIdentifier, RequestHandler } from '../../shared/types/request-handler';
|
|
4
|
+
export declare const serviceConnectionsTools: {
|
|
5
|
+
name: string;
|
|
6
|
+
description: string;
|
|
7
|
+
inputSchema: Record<string, unknown>;
|
|
8
|
+
}[];
|
|
9
|
+
export declare const isServiceConnectionsRequest: RequestIdentifier;
|
|
10
|
+
export declare const handleServiceConnectionsRequest: RequestHandler;
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
exports.handleServiceConnectionsRequest = exports.isServiceConnectionsRequest = exports.serviceConnectionsTools = void 0;
|
|
18
|
+
__exportStar(require("./feature"), exports);
|
|
19
|
+
__exportStar(require("./schema"), exports);
|
|
20
|
+
const to_json_schema_1 = require("../../shared/utils/to-json-schema");
|
|
21
|
+
const schema_1 = require("./schema");
|
|
22
|
+
const feature_1 = require("./feature");
|
|
23
|
+
const environment_1 = require("../../utils/environment");
|
|
24
|
+
exports.serviceConnectionsTools = [
|
|
25
|
+
{
|
|
26
|
+
name: 'list_service_connections',
|
|
27
|
+
description: 'List service connections (service endpoints) in a project. These are connections to external services used by pipelines.',
|
|
28
|
+
inputSchema: (0, to_json_schema_1.toJsonSchema)(schema_1.ListServiceConnectionsSchema),
|
|
29
|
+
},
|
|
30
|
+
];
|
|
31
|
+
const isServiceConnectionsRequest = (request) => request.params.name === 'list_service_connections';
|
|
32
|
+
exports.isServiceConnectionsRequest = isServiceConnectionsRequest;
|
|
33
|
+
const handleServiceConnectionsRequest = async (connection, request) => {
|
|
34
|
+
const args = schema_1.ListServiceConnectionsSchema.parse(request.params.arguments);
|
|
35
|
+
const result = await (0, feature_1.listServiceConnections)(connection, {
|
|
36
|
+
...args,
|
|
37
|
+
projectId: args.projectId ?? environment_1.defaultProject,
|
|
38
|
+
});
|
|
39
|
+
return { content: [{ type: 'text', text: JSON.stringify(result, null, 2) }] };
|
|
40
|
+
};
|
|
41
|
+
exports.handleServiceConnectionsRequest = handleServiceConnectionsRequest;
|
|
42
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/features/service-connections/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAAA,4CAA0B;AAC1B,2CAAyB;AAQzB,sEAAiE;AACjE,qCAAwD;AACxD,uCAAmD;AACnD,yDAAyD;AAE5C,QAAA,uBAAuB,GAAG;IACrC;QACE,IAAI,EAAE,0BAA0B;QAChC,WAAW,EACT,0HAA0H;QAC5H,WAAW,EAAE,IAAA,6BAAY,EAAC,qCAA4B,CAAC;KACxD;CACF,CAAC;AAEK,MAAM,2BAA2B,GAAsB,CAC5D,OAAwB,EACf,EAAE,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,KAAK,0BAA0B,CAAC;AAFpD,QAAA,2BAA2B,GAA3B,2BAA2B,CAEyB;AAE1D,MAAM,+BAA+B,GAAmB,KAAK,EAClE,UAAkB,EAClB,OAAwB,EACxB,EAAE;IACF,MAAM,IAAI,GAAG,qCAA4B,CAAC,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IAC1E,MAAM,MAAM,GAAG,MAAM,IAAA,gCAAsB,EAAC,UAAU,EAAE;QACtD,GAAG,IAAI;QACP,SAAS,EAAE,IAAI,CAAC,SAAS,IAAI,4BAAc;KAC5C,CAAC,CAAC;IACH,OAAO,EAAE,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,IAAI,CAAC,SAAS,CAAC,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC;AAChF,CAAC,CAAC;AAVW,QAAA,+BAA+B,GAA/B,+BAA+B,CAU1C"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ListServiceConnectionsSchema: z.ZodObject<{
|
|
3
|
+
projectId: z.ZodOptional<z.ZodString>;
|
|
4
|
+
organizationId: z.ZodOptional<z.ZodString>;
|
|
5
|
+
type: z.ZodOptional<z.ZodString>;
|
|
6
|
+
authSchemes: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
7
|
+
includeDetails: z.ZodOptional<z.ZodBoolean>;
|
|
8
|
+
}, z.core.$strip>;
|