@aifabrix/builder 2.49.1 → 2.50.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/.cursor/process/README.md +9 -0
- package/.cursor/rules/deploy-rules/docker-image-ip-policy.mdc +49 -0
- package/.cursor/rules/plan-rules/application-lifecycle.mdc +30 -0
- package/.cursor/rules/plan-rules/plan-frontmatter.mdc +35 -0
- package/.cursor/rules/plan-rules/plan-lifecycle.mdc +31 -0
- package/.cursor/rules/plan-rules/plan-validation-gate.mdc +34 -0
- package/.cursor/skills/README.md +1 -0
- package/.dockerignore +52 -0
- package/.eslintignore +22 -0
- package/README.md +2 -0
- package/bin/builder-api-cleanup.js +26 -0
- package/bin/builder-api-nest.js +10 -0
- package/bin/builder-api-spike.js +19 -0
- package/enterprise-knowledge/README.md +50 -0
- package/enterprise-knowledge/enterprise-integration-lifecycle/README.md +22 -0
- package/enterprise-knowledge/enterprise-integration-lifecycle/application.json +15 -0
- package/enterprise-knowledge/enterprise-integration-lifecycle/deploy.js +69 -0
- package/enterprise-knowledge/enterprise-integration-lifecycle/enterprise-integration-lifecycle-deploy.json +52 -0
- package/enterprise-knowledge/enterprise-integration-lifecycle/enterprise-integration-lifecycle-system.json +29 -0
- package/enterprise-knowledge/enterprise-integration-lifecycle/env.template +2 -0
- package/integration/README.md +81 -0
- package/integration/github/README.md +53 -0
- package/integration/github/application.json +21 -0
- package/integration/github/deploy.js +72 -0
- package/integration/github/env.template +11 -0
- package/integration/github/github-datasource-issue-comments.json +239 -0
- package/integration/github/github-datasource-issues.json +399 -0
- package/integration/github/github-datasource-repository.json +354 -0
- package/integration/github/github-deploy.json +1202 -0
- package/integration/github/github-system.json +82 -0
- package/integration/hubspot-test/README.md +1 -1
- package/jest.isolated-projects.js +31 -1
- package/jest.projects.js +87 -1
- package/lib/api/dev-server-https.js +1 -1
- package/lib/api/dev.api.js +1 -0
- package/lib/api/enterprise-knowledge.api.js +63 -0
- package/lib/api/evidence.api.js +172 -0
- package/lib/api/external-systems.api.js +8 -2
- package/lib/api/host-ops.api.js +69 -0
- package/lib/api/resource-types.api.js +1 -0
- package/lib/api/types/enterprise-knowledge.types.js +46 -0
- package/lib/api/types/evidence.types.js +67 -0
- package/lib/api/types/resource-types.types.js +2 -0
- package/lib/app/controller-application-filter.js +36 -0
- package/lib/app/deploy.js +1 -1
- package/lib/app/list-external-systems.js +130 -0
- package/lib/app/list.js +20 -8
- package/lib/app/run.js +3 -1
- package/lib/app/show-display.js +8 -3
- package/lib/app/show-online.js +178 -0
- package/lib/app/show.js +37 -88
- package/lib/build/builder-api-docker-staging.js +47 -0
- package/lib/build/miso-controller-npm-sdk-guard.js +2 -2
- package/lib/build/standard-docker-build.js +2 -0
- package/lib/certification/post-unified-cert-sync.js +4 -31
- package/lib/certification/sync-after-external-command.js +0 -1
- package/lib/certification/sync-system-certification.js +0 -3
- package/lib/channels/add-channel.js +40 -34
- package/lib/channels/approval-guides/chatgpt.js +33 -0
- package/lib/channels/approval-guides/credential-portal.js +38 -0
- package/lib/channels/approval-guides/index.js +110 -0
- package/lib/channels/approval-guides/microsoft-copilot.js +34 -0
- package/lib/channels/approval-guides/slack.js +34 -0
- package/lib/channels/approval-guides/teams-bot.js +35 -0
- package/lib/channels/approval-guides/web-embed.js +32 -0
- package/lib/channels/channel-approval-guide.js +11 -0
- package/lib/channels/channel-artifact-generator.js +16 -4
- package/lib/channels/channel-audit.js +3 -0
- package/lib/channels/channel-auth-context.js +1 -1
- package/lib/channels/channel-description.js +59 -0
- package/lib/channels/channel-integration-generator.js +13 -230
- package/lib/channels/channel-integration-template.js +94 -0
- package/lib/channels/channel-runtime-resolver.js +43 -3
- package/lib/channels/channel-status-display.js +66 -26
- package/lib/channels/channel-targets.js +3 -3
- package/lib/cli/index.js +27 -3
- package/lib/cli/infra-guided.js +5 -1
- package/lib/cli/setup-app-external-create.js +111 -0
- package/lib/cli/setup-app.help.js +1 -1
- package/lib/cli/setup-app.js +38 -125
- package/lib/cli/setup-app.test-commands.js +26 -52
- package/lib/cli/setup-certification-commands.js +4 -4
- package/lib/cli/setup-certification.help.js +9 -9
- package/lib/cli/setup-dev-path-commands.js +24 -0
- package/lib/cli/setup-dev.js +115 -16
- package/lib/cli/setup-external-system-help.js +4 -6
- package/lib/cli/setup-external-system.js +58 -52
- package/lib/cli/setup-infra-up-builder-api-action.js +64 -0
- package/lib/cli/setup-infra-up-platform-action.js +3 -1
- package/lib/cli/setup-infra.js +15 -0
- package/lib/cli/setup-list.js +43 -0
- package/lib/cli/setup-utility-repair.js +26 -7
- package/lib/cli/setup-utility.js +5 -3
- package/lib/commands/app.js +15 -43
- package/lib/commands/channel-add-setup.js +110 -0
- package/lib/commands/channel.js +42 -8
- package/lib/commands/datasource-sync-display.js +96 -0
- package/lib/commands/datasource-sync-policy.js +210 -0
- package/lib/commands/datasource-test-trust-cli.js +6 -6
- package/lib/commands/datasource-unified-test-cli.js +2 -1
- package/lib/commands/datasource-unified-test-cli.options.js +33 -23
- package/lib/commands/deploy-gate-failure-details.js +163 -0
- package/lib/commands/deploy-gate-orchestrator.js +322 -0
- package/lib/commands/dev-cli-handlers.js +64 -61
- package/lib/commands/dev-host-ops-params.js +91 -0
- package/lib/commands/dev-host-ops-poll.js +111 -0
- package/lib/commands/dev-host-ops.js +252 -0
- package/lib/commands/dev-init.js +3 -1
- package/lib/commands/enterprise-knowledge.js +284 -0
- package/lib/commands/evidence-cli-leaves.js +250 -0
- package/lib/commands/evidence.js +51 -0
- package/lib/commands/governance-cli-shared.js +2 -2
- package/lib/commands/governance-command-action.js +2 -2
- package/lib/commands/governance-fixture-subjects.js +85 -0
- package/lib/commands/governance.js +1 -1
- package/lib/commands/lifecycle-command-action.js +2 -2
- package/lib/commands/lifecycle-external.js +3 -3
- package/lib/commands/manifest-cli-auth.js +29 -0
- package/lib/commands/manifest-cli-commands.js +170 -0
- package/lib/commands/manifest-cli-integration-path.js +63 -0
- package/lib/commands/manifest.js +21 -0
- package/lib/commands/protection-cli-leaves.js +3 -3
- package/lib/commands/repair-auth-apply.js +15 -1
- package/lib/commands/repair-authentications-454.js +169 -0
- package/lib/commands/repair-capability-openapi-warnings.js +126 -0
- package/lib/commands/repair-datasource-apply.js +135 -0
- package/lib/commands/repair-datasource-auto-rbac.js +62 -1
- package/lib/commands/repair-datasource-http-service-contract.js +239 -0
- package/lib/commands/repair-datasource-operation-security.js +180 -0
- package/lib/commands/repair-datasource-run.js +7 -2
- package/lib/commands/repair-datasource-sync-operations.js +177 -0
- package/lib/commands/repair-datasource-webhooks-sync-bridge.js +133 -0
- package/lib/commands/repair-datasource.js +12 -68
- package/lib/commands/repair-env-template.js +11 -1
- package/lib/commands/repair-external-run.js +121 -31
- package/lib/commands/repair-internal.js +1 -1
- package/lib/commands/repair-openapi-export.js +156 -0
- package/lib/commands/repair-openapi-sync.js +19 -2
- package/lib/commands/repair-orchestration-datasource-split.js +259 -0
- package/lib/commands/repair-persist.js +22 -1
- package/lib/commands/repair-rbac-platform-preset.js +204 -0
- package/lib/commands/repair-rbac-reader-roles.js +191 -0
- package/lib/commands/repair-rbac.js +163 -86
- package/lib/commands/repair-steps.js +83 -18
- package/lib/commands/repair-system-permissions.js +1 -0
- package/lib/commands/repair.js +1 -1
- package/lib/commands/resource-type.js +65 -26
- package/lib/commands/run-post-publish-data-sync.js +68 -0
- package/lib/commands/setup-modes.js +1 -1
- package/lib/commands/test-e2e-external.js +21 -8
- package/lib/commands/test-governance-cli-options.js +2 -2
- package/lib/commands/test-trust-cli-options.js +2 -2
- package/lib/commands/up-builder-api-bootstrap.js +71 -0
- package/lib/commands/up-builder-api-provision.js +241 -0
- package/lib/commands/up-builder-api.js +88 -0
- package/lib/commands/up-common.js +25 -1
- package/lib/commands/upload-credential-push-log.js +117 -0
- package/lib/commands/upload-data-sync-finalize.js +60 -0
- package/lib/commands/upload-probe.js +66 -0
- package/lib/commands/upload-publish-context.js +4 -1
- package/lib/commands/upload-sidecar-followups.js +55 -27
- package/lib/commands/upload.js +116 -157
- package/lib/commands/verify-governance-combined-external.js +1 -1
- package/lib/commands/verify-governance-db.js +2 -2
- package/lib/commands/verify-operations-command-action.js +2 -2
- package/lib/commands/verify-operations-step-plan.js +2 -2
- package/lib/commands/verify-operations-steps.js +2 -2
- package/lib/commands/verify-trust-command-action.js +1 -1
- package/lib/commands/wizard-core.js +1 -1
- package/lib/commands/wizard-headless.js +2 -1
- package/lib/core/admin-secrets.js +2 -6
- package/lib/core/secrets-env-content.js +10 -4
- package/lib/core/secrets-env-write.js +2 -13
- package/lib/datasource/agent-trust-run.js +3 -3
- package/lib/datasource/deploy.js +3 -1
- package/lib/datasource/test-e2e.js +6 -1
- package/lib/datasource/unified-validation-run-body.js +4 -1
- package/lib/datasource/unified-validation-run.js +1 -1
- package/lib/deployment/deploy-poll-ui.js +73 -12
- package/lib/deployment/deployer-poll-run.js +113 -0
- package/lib/deployment/deployer.js +17 -87
- package/lib/evidence/dataplane-context.js +21 -0
- package/lib/evidence/evidence-display.js +78 -0
- package/lib/evidence/evidence-service.js +392 -0
- package/lib/external-system/deploy.js +290 -112
- package/lib/external-system/download.js +7 -3
- package/lib/external-system/test-execution.js +1 -1
- package/lib/external-system/test-system-level.js +8 -10
- package/lib/external-system/test.js +12 -6
- package/lib/generator/deploy-script.js +73 -0
- package/lib/generator/external.js +2 -1
- package/lib/generator/index.js +17 -2
- package/lib/generator/wizard.js +3 -36
- package/lib/internal/fs-real-sync.js +22 -1
- package/lib/internal/node-fs.js +2 -0
- package/lib/lifecycle/lifecycle-governance-options.js +1 -1
- package/lib/lifecycle/verify-step-progress.js +1 -1
- package/lib/programmatic/access-log.js +26 -0
- package/lib/programmatic/auth-config.js +44 -0
- package/lib/programmatic/bearer-auth.js +176 -0
- package/lib/programmatic/builder-api-request.js +175 -0
- package/lib/programmatic/builder-api-route-dispatch.js +82 -0
- package/lib/programmatic/builder-api-runtime-config.js +42 -0
- package/lib/programmatic/builder-api-server.js +230 -0
- package/lib/programmatic/builder-help-authentication-catalog.js +282 -0
- package/lib/programmatic/builder-help-connected-system-ui.js +266 -0
- package/lib/programmatic/builder-help-enterprise-sync-fabrix.js +60 -0
- package/lib/programmatic/builder-help-envelope.js +36 -0
- package/lib/programmatic/builder-help-fixtures.js +200 -0
- package/lib/programmatic/builder-help-governance.js +172 -0
- package/lib/programmatic/builder-help-schema-catalog.js +92 -0
- package/lib/programmatic/builder-help.js +361 -0
- package/lib/programmatic/capability-registry.js +77 -0
- package/lib/programmatic/command-options.js +32 -0
- package/lib/programmatic/enterprise-mcp-client.js +98 -0
- package/lib/programmatic/http-problem-details.js +99 -0
- package/lib/programmatic/http-route-match.js +40 -0
- package/lib/programmatic/idempotency-cache.js +69 -0
- package/lib/programmatic/index.js +53 -0
- package/lib/programmatic/integration-path-scope.js +39 -0
- package/lib/programmatic/log-redaction.js +66 -0
- package/lib/programmatic/manifest-get-section.js +146 -0
- package/lib/programmatic/manifest-patch-section.js +252 -0
- package/lib/programmatic/manifest-repair.js +122 -0
- package/lib/programmatic/manifest-section-dependency-graph.js +160 -0
- package/lib/programmatic/manifest-section-io.js +225 -0
- package/lib/programmatic/manifest-section-quality.js +171 -0
- package/lib/programmatic/manifest-section-registry-data.js +269 -0
- package/lib/programmatic/manifest-section-registry.js +205 -0
- package/lib/programmatic/nest-http-bridge.js +34 -0
- package/lib/programmatic/openapi-component-schemas.js +68 -0
- package/lib/programmatic/openapi-description-enricher.js +117 -0
- package/lib/programmatic/openapi-descriptions.js +190 -0
- package/lib/programmatic/openapi-docs-serving.js +123 -0
- package/lib/programmatic/openapi-help-schemas.js +63 -0
- package/lib/programmatic/openapi-manifest-schemas.js +141 -0
- package/lib/programmatic/openapi-operation-bindings.js +274 -0
- package/lib/programmatic/openapi-request-schemas.js +155 -0
- package/lib/programmatic/openapi-result-schemas.js +476 -0
- package/lib/programmatic/openapi-schema-descriptions-certify.js +139 -0
- package/lib/programmatic/openapi-schema-descriptions-core.js +159 -0
- package/lib/programmatic/openapi-schema-descriptions-help.js +40 -0
- package/lib/programmatic/openapi-schema-descriptions-manifest.js +143 -0
- package/lib/programmatic/openapi-schema-descriptions-mcp.js +118 -0
- package/lib/programmatic/openapi-schema-descriptions-operations.js +281 -0
- package/lib/programmatic/openapi-schema-helpers.js +93 -0
- package/lib/programmatic/openapi-spec.js +203 -0
- package/lib/programmatic/orchestration-openapi-meta.js +159 -0
- package/lib/programmatic/platform-rbac-catalog.js +90 -0
- package/lib/programmatic/request-timeout.js +53 -0
- package/lib/programmatic/route-handler-map.js +143 -0
- package/lib/programmatic/route-handlers-context.js +29 -0
- package/lib/programmatic/route-handlers.js +33 -0
- package/lib/programmatic/run-certify.js +57 -0
- package/lib/programmatic/run-enterprise-mcp.js +32 -0
- package/lib/programmatic/run-lifecycle.js +29 -0
- package/lib/programmatic/run-repair.js +41 -0
- package/lib/programmatic/run-repository-emcp.js +54 -0
- package/lib/programmatic/run-template-workspace.js +61 -0
- package/lib/programmatic/run-test.js +49 -0
- package/lib/programmatic/run-upload.js +63 -0
- package/lib/programmatic/run-validate.js +53 -0
- package/lib/programmatic/run-wizard.js +40 -0
- package/lib/programmatic/system-key.js +48 -0
- package/lib/programmatic/wizard-config-normalize.js +118 -0
- package/lib/programmatic/workspace-cleanup.js +128 -0
- package/lib/programmatic/workspace-context.js +145 -0
- package/lib/programmatic/workspace-lock.js +75 -0
- package/lib/programmatic/workspace-meta.js +64 -0
- package/lib/programmatic/workspace-ops.js +149 -0
- package/lib/protection/run-commands-upload-sync.js +35 -0
- package/lib/protection/run-commands.js +2 -20
- package/lib/protection/upload-batch.js +11 -7
- package/lib/resolvers/resource-type-file.js +22 -0
- package/lib/schema/external-datasource.schema.json +161 -1
- package/lib/schema/external-system.schema.json +242 -4
- package/lib/schema/flag-map-validation-run.json +3 -0
- package/lib/schema/type/credential-field-registry.json +2 -2
- package/lib/schema/type/document-storage.json +9 -0
- package/lib/utils/agent-trust-run-display.js +1 -1
- package/lib/utils/app-path-resolve.js +168 -0
- package/lib/utils/authentication-env-template.js +222 -0
- package/lib/utils/cli-sync-options.js +7 -11
- package/lib/utils/cli-utils.js +4 -0
- package/lib/utils/cli-workspace-options.js +29 -0
- package/lib/utils/compose-generate-docker-compose.js +102 -0
- package/lib/utils/configuration-env-resolver.js +203 -27
- package/lib/utils/datasource-test-run-certificate-tty.js +28 -2
- package/lib/utils/datasource-test-run-certification-debug.js +130 -0
- package/lib/utils/datasource-test-run-debug-display.js +2 -0
- package/lib/utils/datasource-test-run-debug-slice.js +7 -0
- package/lib/utils/datasource-test-run-display.js +2 -1
- package/lib/utils/dev-init-ssh-merge.js +165 -23
- package/lib/utils/dev-pin-share-instructions.js +110 -0
- package/lib/utils/dev-ssh-config-helper.js +177 -33
- package/lib/utils/enterprise-knowledge-paths.js +142 -0
- package/lib/utils/env-copy.js +2 -1
- package/lib/utils/env-dotenv-format.js +103 -0
- package/lib/utils/external-env-template.js +4 -1
- package/lib/utils/external-system-display.js +5 -1
- package/lib/utils/external-system-readiness-compact-blocks.js +221 -0
- package/lib/utils/external-system-readiness-compact-display.js +324 -0
- package/lib/utils/external-system-readiness-core.js +16 -0
- package/lib/utils/external-system-readiness-deploy-display.js +29 -11
- package/lib/utils/external-system-readiness-display-internals.js +3 -1
- package/lib/utils/external-system-readiness-display.js +20 -30
- package/lib/utils/external-system-system-test-tty-certification.js +135 -0
- package/lib/utils/external-system-system-test-tty.js +5 -41
- package/lib/utils/help-builder.js +6 -1
- package/lib/utils/host-ops-job-labels.js +236 -0
- package/lib/utils/host-ops-job-result.js +61 -0
- package/lib/utils/host-ops-poll-ui.js +163 -0
- package/lib/utils/integration-path-resolve.js +112 -0
- package/lib/utils/paths-reload-source.js +148 -0
- package/lib/utils/paths-system-builder-keys.js +25 -0
- package/lib/utils/paths.js +151 -26
- package/lib/utils/runtime-configuration-values.js +64 -2
- package/lib/utils/secrets-helpers.js +5 -1
- package/lib/utils/ssh-known-hosts.js +130 -0
- package/lib/utils/test-target-cli-options.js +75 -0
- package/lib/utils/upload-sync-options.js +4 -0
- package/lib/utils/validation-run-request.js +11 -2
- package/lib/validation/external-manifest-validator.js +11 -1
- package/lib/validation/openapi-contract-surface-validator.js +426 -0
- package/lib/validation/openapi-contract-vendor-validation.js +238 -0
- package/lib/validation/validate-external-file.js +160 -0
- package/lib/validation/validate.js +6 -117
- package/package.json +46 -29
- package/packages/builder-api/README.md +120 -0
- package/packages/builder-api/package.json +30 -0
- package/packages/builder-api/src/app.module.ts +7 -0
- package/packages/builder-api/src/auth/auth.module.ts +5 -0
- package/packages/builder-api/src/external-system/external-system.module.ts +5 -0
- package/packages/builder-api/src/main.ts +16 -0
- package/packages/builder-api/tsconfig.json +15 -0
- package/scripts/check-builder-api-architecture-grep.js +79 -0
- package/scripts/docker_image_content_gate.js +47 -0
- package/scripts/docker_image_content_gate.sh +5 -0
- package/scripts/export-builder-api-evidence.js +262 -0
- package/scripts/lib/builder-api-docker-staging-copy.js +60 -0
- package/scripts/lib/builder-api-docker-staging-core.js +183 -0
- package/scripts/lib/docker-image-content-gate-core.js +166 -0
- package/scripts/lib/plan-actor.js +109 -0
- package/scripts/lib/plan-config.js +20 -0
- package/scripts/lib/plan-gates.js +154 -0
- package/scripts/lib/plan-meta.js +104 -0
- package/scripts/lib/plan-parse.js +162 -0
- package/scripts/lib/plan-prevalidate-gates.js +326 -0
- package/scripts/lib/plan-run-core.js +125 -0
- package/scripts/lib/plan-run-report.js +108 -0
- package/scripts/plan-approve.js +24 -0
- package/scripts/plan-archive.js +49 -0
- package/scripts/plan-run.js +13 -0
- package/scripts/plan-set-actor.js +21 -0
- package/scripts/plan-validate.js +80 -0
- package/scripts/pnpm/af.mjs +110 -0
- package/scripts/pnpm/check-quiet.mjs +32 -0
- package/scripts/pnpm/dev-install.mjs +29 -0
- package/scripts/pnpm/dev-reload.mjs +18 -0
- package/scripts/pnpm/help.mjs +55 -0
- package/scripts/pnpm/lib/dev-reload-core.mjs +189 -0
- package/scripts/pnpm/lib/dev-reload-log-capture.mjs +67 -0
- package/scripts/pnpm/lib/dev-reload-log-utils.mjs +32 -0
- package/scripts/pnpm/lib/resolve-aifabrix-bin.mjs +124 -0
- package/scripts/pnpm/lib/resolve-app-url.mjs +183 -0
- package/scripts/pnpm/lib/spinner.mjs +42 -0
- package/scripts/stage_builder_api_for_docker.js +65 -0
- package/scripts/sync-builder-api-template.js +44 -0
- package/templates/README.md +3 -0
- package/templates/applications/builder-api/Dockerfile +38 -0
- package/templates/applications/builder-api/application.yaml +75 -0
- package/templates/applications/builder-api/env.template +48 -0
- package/templates/applications/dataplane/application.yaml +1 -1
- package/templates/applications/dataplane/env.template +10 -6
- package/templates/applications/dataplane/rbac.yaml +21 -1
- package/templates/applications/miso-controller/application.yaml +1 -1
- package/templates/applications/miso-controller/env.template +1 -3
- package/templates/channels/README.md +18 -0
- package/templates/channels/ai-fabrix-icon.jpg +0 -0
- package/templates/channels/chatgpt/install.template.md.hbs +21 -24
- package/templates/channels/chatgpt/integration/README.md +11 -0
- package/templates/channels/chatgpt/integration/application.json +15 -0
- package/templates/channels/chatgpt/integration/chatgpt-system.json +29 -0
- package/templates/channels/chatgpt/integration/env.template +4 -0
- package/templates/channels/microsoft-copilot/install.template.md.hbs +20 -25
- package/templates/channels/microsoft-copilot/integration/README.md +11 -0
- package/templates/channels/microsoft-copilot/integration/application.json +15 -0
- package/templates/channels/microsoft-copilot/integration/env.template +6 -0
- package/templates/channels/microsoft-copilot/integration/microsoft-copilot-system.json +34 -0
- package/templates/channels/slack/install.template.md.hbs +48 -18
- package/templates/channels/slack/integration/README.md +38 -0
- package/templates/channels/slack/integration/application.json +18 -0
- package/templates/channels/slack/integration/env.template +29 -0
- package/templates/channels/slack/integration/slack-datasource-conversations.json +226 -0
- package/templates/channels/slack/integration/slack-datasource-messages.json +269 -0
- package/templates/channels/slack/integration/slack-system.json +86 -0
- package/templates/channels/slack/manifest.template.json.hbs +20 -10
- package/templates/channels/teams-bot/install.template.md.hbs +31 -17
- package/templates/channels/teams-bot/integration/README.md +18 -0
- package/templates/channels/teams-bot/integration/application.json +17 -0
- package/templates/channels/teams-bot/integration/env.template +5 -0
- package/templates/channels/teams-bot/integration/teams-bot-system.json +55 -0
- package/templates/channels/teams-bot/manifest.template.json.hbs +27 -0
- package/templates/channels/web-embed/install.template.md.hbs +16 -26
- package/templates/channels/web-embed/integration/README.md +11 -0
- package/templates/channels/web-embed/integration/application.json +15 -0
- package/templates/channels/web-embed/integration/env.template +4 -0
- package/templates/channels/web-embed/integration/web-embed-system.json +29 -0
- package/templates/openapi/redoc_page.html +86 -0
- package/templates/python/docker-compose.hbs +11 -0
- package/templates/python/requirements.txt +1 -1
- package/templates/typescript/docker-compose.hbs +11 -0
- package/lib/certification/cli-cert-sync-skip.js +0 -21
|
@@ -0,0 +1,1202 @@
|
|
|
1
|
+
{
|
|
2
|
+
"key": "github",
|
|
3
|
+
"displayName": "GitHub",
|
|
4
|
+
"description": "Production GitHub repository provider: delegated OAuth via Miso apiProvider, issues, comments, and repository lifecycle CIP.",
|
|
5
|
+
"type": "external",
|
|
6
|
+
"version": "1.0.0",
|
|
7
|
+
"externalIntegration": {
|
|
8
|
+
"schemaBasePath": "./",
|
|
9
|
+
"systems": [
|
|
10
|
+
"github-system.json"
|
|
11
|
+
],
|
|
12
|
+
"dataSources": [
|
|
13
|
+
"github-datasource-issues.json",
|
|
14
|
+
"github-datasource-issue-comments.json",
|
|
15
|
+
"github-datasource-repository.json"
|
|
16
|
+
],
|
|
17
|
+
"autopublish": true,
|
|
18
|
+
"version": "1.0.0"
|
|
19
|
+
},
|
|
20
|
+
"system": {
|
|
21
|
+
"key": "github",
|
|
22
|
+
"displayName": "GitHub",
|
|
23
|
+
"description": "Production GitHub REST integration: repository issues (list/create/update/close), issue comments, and repository lifecycle operations. Uses Miso apiProvider github with GitHub App expiring user tokens.",
|
|
24
|
+
"type": "custom",
|
|
25
|
+
"enabled": true,
|
|
26
|
+
"authentication": {
|
|
27
|
+
"authType": "apiProvider",
|
|
28
|
+
"apiProvider": {
|
|
29
|
+
"apiProviderKey": "github"
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
"configuration": [
|
|
33
|
+
{
|
|
34
|
+
"name": "BASE_URL",
|
|
35
|
+
"value": "https://api.github.com",
|
|
36
|
+
"location": "variable",
|
|
37
|
+
"required": true
|
|
38
|
+
},
|
|
39
|
+
{
|
|
40
|
+
"name": "GITHUB_OWNER",
|
|
41
|
+
"value": "{{GITHUB_OWNER}}",
|
|
42
|
+
"location": "variable",
|
|
43
|
+
"required": true,
|
|
44
|
+
"portalInput": {
|
|
45
|
+
"field": "text",
|
|
46
|
+
"label": "GitHub repository owner",
|
|
47
|
+
"placeholder": "Organization or user login (e.g. octocat)",
|
|
48
|
+
"validation": {
|
|
49
|
+
"required": true,
|
|
50
|
+
"minLength": 1
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"name": "GITHUB_REPO",
|
|
56
|
+
"value": "{{GITHUB_REPO}}",
|
|
57
|
+
"location": "variable",
|
|
58
|
+
"required": true,
|
|
59
|
+
"portalInput": {
|
|
60
|
+
"field": "text",
|
|
61
|
+
"label": "GitHub repository name",
|
|
62
|
+
"placeholder": "Repository name without owner (e.g. Hello-World)",
|
|
63
|
+
"validation": {
|
|
64
|
+
"required": true,
|
|
65
|
+
"minLength": 1
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
],
|
|
70
|
+
"endpoints": [
|
|
71
|
+
{
|
|
72
|
+
"type": "issues",
|
|
73
|
+
"path": "/issues",
|
|
74
|
+
"description": "GitHub repository issues",
|
|
75
|
+
"active": true
|
|
76
|
+
},
|
|
77
|
+
{
|
|
78
|
+
"type": "comments",
|
|
79
|
+
"path": "/comments",
|
|
80
|
+
"description": "GitHub issue comments",
|
|
81
|
+
"active": true
|
|
82
|
+
}
|
|
83
|
+
],
|
|
84
|
+
"endpointsActive": true,
|
|
85
|
+
"dataSources": [
|
|
86
|
+
"github-issues",
|
|
87
|
+
"github-issue-comments",
|
|
88
|
+
"github-repository"
|
|
89
|
+
],
|
|
90
|
+
"certification": {
|
|
91
|
+
"enabled": true,
|
|
92
|
+
"publicKey": "-----BEGIN PUBLIC KEY-----\nMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAtwvWqPVKNUCLAmBIrK0u\nrsxzgtvIiyIFQVc+T5FeBYevUDOoS2VBF0aOCJGGV8P+ARzU7PtaTCZYvRvsmqou\namy+c1+b0kGCObh/gxGGVCFmbH4VCfQ2xkwML8vvAHXBW1v9Abu9EuTv3YpIZUSh\nq+0xuivs3xYwq5Lm/K10WaWzfwbjCND0K7aQmNhQq+n45EjgmkEWV2gQUDyALzsW\nfTikMtbBJEQ8BSCN8uOsZsa8MH2bBFgThIUXX/gxeUIEBfEavi8F3eR2ZC+Q/if2\nJkIwUCcH5nN2jTCDZgt5CLTIhYs51A+1kLTjtCmJ2fMmeV7Wr3DgnzdbM1cHRnT+\nlwIDAQAB\n-----END PUBLIC KEY-----",
|
|
93
|
+
"algorithm": "RS256",
|
|
94
|
+
"issuer": "Dataplane - community edition",
|
|
95
|
+
"version": "1.0.0",
|
|
96
|
+
"status": "passed",
|
|
97
|
+
"level": "SILVER",
|
|
98
|
+
"publicKeyFingerprint": "sha256:e14a67b980051e46d6b15e2c42c57aea6328d8c96622d10f01e4f9c2f22af3c5",
|
|
99
|
+
"contractHash": "sha256:70531b5131122bd8b93c948dc93506b9d3cce5fe28efa4a28d136022f834ccc5"
|
|
100
|
+
}
|
|
101
|
+
},
|
|
102
|
+
"dataSources": [
|
|
103
|
+
{
|
|
104
|
+
"key": "github-issues",
|
|
105
|
+
"displayName": "GitHub Issues",
|
|
106
|
+
"description": "Repository issues via GitHub REST API: list, get, create, update, and close (GitHub does not support hard delete).",
|
|
107
|
+
"enabled": true,
|
|
108
|
+
"systemKey": "github",
|
|
109
|
+
"resourceType": "ticket",
|
|
110
|
+
"entityType": "recordStorage",
|
|
111
|
+
"version": "1.0.0",
|
|
112
|
+
"businessOrder": 1,
|
|
113
|
+
"metadataSchema": {
|
|
114
|
+
"type": "object",
|
|
115
|
+
"properties": {
|
|
116
|
+
"externalId": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"index": true,
|
|
119
|
+
"description": "Stable external record identifier (issue number as string)"
|
|
120
|
+
},
|
|
121
|
+
"number": {
|
|
122
|
+
"type": "integer",
|
|
123
|
+
"index": true,
|
|
124
|
+
"description": "Issue number within the repository"
|
|
125
|
+
},
|
|
126
|
+
"id": {
|
|
127
|
+
"type": "integer",
|
|
128
|
+
"description": "GitHub internal issue id"
|
|
129
|
+
},
|
|
130
|
+
"title": {
|
|
131
|
+
"type": "string",
|
|
132
|
+
"index": true,
|
|
133
|
+
"filter": true,
|
|
134
|
+
"description": "Issue title"
|
|
135
|
+
},
|
|
136
|
+
"body": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"description": "Issue body (markdown)"
|
|
139
|
+
},
|
|
140
|
+
"state": {
|
|
141
|
+
"type": "string",
|
|
142
|
+
"index": true,
|
|
143
|
+
"filter": true,
|
|
144
|
+
"description": "Issue state: open or closed"
|
|
145
|
+
},
|
|
146
|
+
"htmlUrl": {
|
|
147
|
+
"type": "string",
|
|
148
|
+
"format": "uri",
|
|
149
|
+
"description": "Web URL for the issue"
|
|
150
|
+
},
|
|
151
|
+
"createdAt": {
|
|
152
|
+
"type": "string",
|
|
153
|
+
"format": "date-time",
|
|
154
|
+
"description": "Issue creation timestamp"
|
|
155
|
+
},
|
|
156
|
+
"updatedAt": {
|
|
157
|
+
"type": "string",
|
|
158
|
+
"format": "date-time",
|
|
159
|
+
"description": "Issue last update timestamp"
|
|
160
|
+
}
|
|
161
|
+
},
|
|
162
|
+
"required": [
|
|
163
|
+
"number",
|
|
164
|
+
"title"
|
|
165
|
+
]
|
|
166
|
+
},
|
|
167
|
+
"fieldMappings": {
|
|
168
|
+
"attributes": {
|
|
169
|
+
"externalId": {
|
|
170
|
+
"expression": "{{raw.number}}"
|
|
171
|
+
},
|
|
172
|
+
"number": {
|
|
173
|
+
"expression": "{{raw.number}}"
|
|
174
|
+
},
|
|
175
|
+
"id": {
|
|
176
|
+
"expression": "{{raw.id}}"
|
|
177
|
+
},
|
|
178
|
+
"title": {
|
|
179
|
+
"expression": "{{raw.title}}"
|
|
180
|
+
},
|
|
181
|
+
"body": {
|
|
182
|
+
"expression": "{{raw.body}}"
|
|
183
|
+
},
|
|
184
|
+
"state": {
|
|
185
|
+
"expression": "{{raw.state}}"
|
|
186
|
+
},
|
|
187
|
+
"htmlUrl": {
|
|
188
|
+
"expression": "{{raw.html_url}}"
|
|
189
|
+
},
|
|
190
|
+
"createdAt": {
|
|
191
|
+
"expression": "{{raw.created_at}}"
|
|
192
|
+
},
|
|
193
|
+
"updatedAt": {
|
|
194
|
+
"expression": "{{raw.updated_at}}"
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
},
|
|
198
|
+
"primaryKey": [
|
|
199
|
+
"number"
|
|
200
|
+
],
|
|
201
|
+
"labelKey": [
|
|
202
|
+
"title"
|
|
203
|
+
],
|
|
204
|
+
"exposed": {
|
|
205
|
+
"filterable": [
|
|
206
|
+
"title",
|
|
207
|
+
"state"
|
|
208
|
+
],
|
|
209
|
+
"readonly": [
|
|
210
|
+
"number",
|
|
211
|
+
"id",
|
|
212
|
+
"htmlUrl",
|
|
213
|
+
"createdAt",
|
|
214
|
+
"updatedAt"
|
|
215
|
+
],
|
|
216
|
+
"schema": {
|
|
217
|
+
"externalId": "metadata.externalId",
|
|
218
|
+
"number": "metadata.number",
|
|
219
|
+
"id": "metadata.id",
|
|
220
|
+
"title": "metadata.title",
|
|
221
|
+
"body": "metadata.body",
|
|
222
|
+
"state": "metadata.state",
|
|
223
|
+
"htmlUrl": "metadata.htmlUrl",
|
|
224
|
+
"createdAt": "metadata.createdAt",
|
|
225
|
+
"updatedAt": "metadata.updatedAt"
|
|
226
|
+
},
|
|
227
|
+
"profiles": {
|
|
228
|
+
"default": [
|
|
229
|
+
"number",
|
|
230
|
+
"title",
|
|
231
|
+
"body",
|
|
232
|
+
"state",
|
|
233
|
+
"htmlUrl",
|
|
234
|
+
"createdAt",
|
|
235
|
+
"updatedAt"
|
|
236
|
+
],
|
|
237
|
+
"create": [
|
|
238
|
+
"title",
|
|
239
|
+
"body"
|
|
240
|
+
],
|
|
241
|
+
"update": [
|
|
242
|
+
"title",
|
|
243
|
+
"body",
|
|
244
|
+
"state"
|
|
245
|
+
]
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
"openapi": {
|
|
249
|
+
"enabled": true,
|
|
250
|
+
"autoRbac": false,
|
|
251
|
+
"operations": {
|
|
252
|
+
"list": {
|
|
253
|
+
"operationId": "list-repos-owner-repo-issues",
|
|
254
|
+
"method": "GET",
|
|
255
|
+
"path": "/repos/{GITHUB_OWNER}/{GITHUB_REPO}/issues",
|
|
256
|
+
"permissions": [
|
|
257
|
+
"external-system:read"
|
|
258
|
+
]
|
|
259
|
+
},
|
|
260
|
+
"get": {
|
|
261
|
+
"operationId": "get-repos-owner-repo-issues-issue-number",
|
|
262
|
+
"method": "GET",
|
|
263
|
+
"path": "/repos/{GITHUB_OWNER}/{GITHUB_REPO}/issues/{recordId}",
|
|
264
|
+
"permissions": [
|
|
265
|
+
"external-system:read"
|
|
266
|
+
]
|
|
267
|
+
}
|
|
268
|
+
},
|
|
269
|
+
"documentKey": "github-issues"
|
|
270
|
+
},
|
|
271
|
+
"quality": {
|
|
272
|
+
"rejectIf": [
|
|
273
|
+
{
|
|
274
|
+
"field": "number",
|
|
275
|
+
"operator": "empty",
|
|
276
|
+
"message": "Issue number cannot be empty"
|
|
277
|
+
},
|
|
278
|
+
{
|
|
279
|
+
"field": "title",
|
|
280
|
+
"operator": "empty",
|
|
281
|
+
"message": "Issue title cannot be empty"
|
|
282
|
+
}
|
|
283
|
+
]
|
|
284
|
+
},
|
|
285
|
+
"testPayload": {
|
|
286
|
+
"payloadTemplate": {
|
|
287
|
+
"id": 100001,
|
|
288
|
+
"number": 42,
|
|
289
|
+
"title": "E2E test issue",
|
|
290
|
+
"body": "Created by AI Fabrix github integration.",
|
|
291
|
+
"state": "open",
|
|
292
|
+
"html_url": "https://github.com/octocat/Hello-World/issues/42",
|
|
293
|
+
"created_at": "2025-01-15T10:30:00Z",
|
|
294
|
+
"updated_at": "2025-01-15T10:30:00Z"
|
|
295
|
+
},
|
|
296
|
+
"expectedResult": {
|
|
297
|
+
"number": 42,
|
|
298
|
+
"title": "E2E test issue",
|
|
299
|
+
"body": "Created by AI Fabrix github integration.",
|
|
300
|
+
"state": "open",
|
|
301
|
+
"htmlUrl": "https://github.com/octocat/Hello-World/issues/42"
|
|
302
|
+
}
|
|
303
|
+
},
|
|
304
|
+
"execution": {
|
|
305
|
+
"engine": "cip",
|
|
306
|
+
"cip": {
|
|
307
|
+
"version": "1.0",
|
|
308
|
+
"inputType": "void",
|
|
309
|
+
"outputType": "records",
|
|
310
|
+
"operations": {
|
|
311
|
+
"list": {
|
|
312
|
+
"enabled": true,
|
|
313
|
+
"description": "List open issues for the configured repository (pull requests excluded)",
|
|
314
|
+
"steps": [
|
|
315
|
+
{
|
|
316
|
+
"fetch": {
|
|
317
|
+
"source": "openapi",
|
|
318
|
+
"openapiRef": "list",
|
|
319
|
+
"query": {
|
|
320
|
+
"state": "open",
|
|
321
|
+
"per_page": "100"
|
|
322
|
+
}
|
|
323
|
+
}
|
|
324
|
+
},
|
|
325
|
+
{
|
|
326
|
+
"filter": {
|
|
327
|
+
"abac": {
|
|
328
|
+
"mode": "disabled"
|
|
329
|
+
},
|
|
330
|
+
"expression": "[?pull_request==`null`][]",
|
|
331
|
+
"expressionLanguage": "jmespath",
|
|
332
|
+
"maxComplexity": 50
|
|
333
|
+
}
|
|
334
|
+
},
|
|
335
|
+
{
|
|
336
|
+
"map": {
|
|
337
|
+
"useFieldMappings": true,
|
|
338
|
+
"inputPath": "$"
|
|
339
|
+
}
|
|
340
|
+
},
|
|
341
|
+
{
|
|
342
|
+
"output": {
|
|
343
|
+
"mode": "records"
|
|
344
|
+
}
|
|
345
|
+
}
|
|
346
|
+
]
|
|
347
|
+
},
|
|
348
|
+
"get": {
|
|
349
|
+
"enabled": true,
|
|
350
|
+
"description": "Get issue by issue number",
|
|
351
|
+
"steps": [
|
|
352
|
+
{
|
|
353
|
+
"fetch": {
|
|
354
|
+
"source": "openapi",
|
|
355
|
+
"openapiRef": "get"
|
|
356
|
+
}
|
|
357
|
+
},
|
|
358
|
+
{
|
|
359
|
+
"map": {
|
|
360
|
+
"useFieldMappings": true,
|
|
361
|
+
"inputPath": "$"
|
|
362
|
+
}
|
|
363
|
+
},
|
|
364
|
+
{
|
|
365
|
+
"output": {
|
|
366
|
+
"mode": "records"
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
]
|
|
370
|
+
},
|
|
371
|
+
"create": {
|
|
372
|
+
"enabled": true,
|
|
373
|
+
"description": "Create a new issue in the configured repository",
|
|
374
|
+
"steps": [
|
|
375
|
+
{
|
|
376
|
+
"fetch": {
|
|
377
|
+
"source": "http",
|
|
378
|
+
"method": "POST",
|
|
379
|
+
"path": "/repos/{{GITHUB_OWNER}}/{{GITHUB_REPO}}/issues",
|
|
380
|
+
"headers": {
|
|
381
|
+
"Accept": "application/vnd.github+json",
|
|
382
|
+
"X-GitHub-Api-Version": "2022-11-28",
|
|
383
|
+
"Content-Type": "application/json"
|
|
384
|
+
},
|
|
385
|
+
"bodyTemplate": {
|
|
386
|
+
"title": "{{parameters.title}}",
|
|
387
|
+
"body": "{{parameters.body}}"
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
},
|
|
391
|
+
{
|
|
392
|
+
"map": {
|
|
393
|
+
"useFieldMappings": true,
|
|
394
|
+
"inputPath": "$"
|
|
395
|
+
}
|
|
396
|
+
},
|
|
397
|
+
{
|
|
398
|
+
"output": {
|
|
399
|
+
"mode": "records"
|
|
400
|
+
}
|
|
401
|
+
}
|
|
402
|
+
]
|
|
403
|
+
},
|
|
404
|
+
"update": {
|
|
405
|
+
"enabled": true,
|
|
406
|
+
"description": "Update issue title, body, or state",
|
|
407
|
+
"steps": [
|
|
408
|
+
{
|
|
409
|
+
"fetch": {
|
|
410
|
+
"source": "http",
|
|
411
|
+
"method": "PATCH",
|
|
412
|
+
"path": "/repos/{{GITHUB_OWNER}}/{{GITHUB_REPO}}/issues/{{recordId}}",
|
|
413
|
+
"headers": {
|
|
414
|
+
"Accept": "application/vnd.github+json",
|
|
415
|
+
"X-GitHub-Api-Version": "2022-11-28",
|
|
416
|
+
"Content-Type": "application/json"
|
|
417
|
+
},
|
|
418
|
+
"bodyTemplate": {
|
|
419
|
+
"title": "{{parameters.title}}",
|
|
420
|
+
"body": "{{parameters.body}}",
|
|
421
|
+
"state": "{{parameters.state}}"
|
|
422
|
+
}
|
|
423
|
+
}
|
|
424
|
+
},
|
|
425
|
+
{
|
|
426
|
+
"map": {
|
|
427
|
+
"useFieldMappings": true,
|
|
428
|
+
"inputPath": "$"
|
|
429
|
+
}
|
|
430
|
+
},
|
|
431
|
+
{
|
|
432
|
+
"output": {
|
|
433
|
+
"mode": "records"
|
|
434
|
+
}
|
|
435
|
+
}
|
|
436
|
+
]
|
|
437
|
+
},
|
|
438
|
+
"delete": {
|
|
439
|
+
"enabled": true,
|
|
440
|
+
"description": "Close issue (GitHub REST API does not support hard delete; maps delete to state=closed)",
|
|
441
|
+
"steps": [
|
|
442
|
+
{
|
|
443
|
+
"fetch": {
|
|
444
|
+
"source": "http",
|
|
445
|
+
"method": "PATCH",
|
|
446
|
+
"path": "/repos/{{GITHUB_OWNER}}/{{GITHUB_REPO}}/issues/{{recordId}}",
|
|
447
|
+
"headers": {
|
|
448
|
+
"Accept": "application/vnd.github+json",
|
|
449
|
+
"X-GitHub-Api-Version": "2022-11-28",
|
|
450
|
+
"Content-Type": "application/json"
|
|
451
|
+
},
|
|
452
|
+
"bodyTemplate": {
|
|
453
|
+
"state": "closed"
|
|
454
|
+
}
|
|
455
|
+
}
|
|
456
|
+
},
|
|
457
|
+
{
|
|
458
|
+
"map": {
|
|
459
|
+
"useFieldMappings": true,
|
|
460
|
+
"inputPath": "$"
|
|
461
|
+
}
|
|
462
|
+
},
|
|
463
|
+
{
|
|
464
|
+
"output": {
|
|
465
|
+
"mode": "records"
|
|
466
|
+
}
|
|
467
|
+
}
|
|
468
|
+
]
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
},
|
|
473
|
+
"capabilities": [
|
|
474
|
+
{
|
|
475
|
+
"key": "list",
|
|
476
|
+
"description": "List open repository issues",
|
|
477
|
+
"riskLevel": "low",
|
|
478
|
+
"approvalRequired": false
|
|
479
|
+
},
|
|
480
|
+
{
|
|
481
|
+
"key": "get",
|
|
482
|
+
"description": "Get issue by number",
|
|
483
|
+
"riskLevel": "low",
|
|
484
|
+
"approvalRequired": false
|
|
485
|
+
},
|
|
486
|
+
{
|
|
487
|
+
"key": "create",
|
|
488
|
+
"description": "Create a repository issue",
|
|
489
|
+
"riskLevel": "medium",
|
|
490
|
+
"approvalRequired": false
|
|
491
|
+
},
|
|
492
|
+
{
|
|
493
|
+
"key": "update",
|
|
494
|
+
"description": "Update issue title, body, or state",
|
|
495
|
+
"riskLevel": "medium",
|
|
496
|
+
"approvalRequired": false
|
|
497
|
+
},
|
|
498
|
+
{
|
|
499
|
+
"key": "delete",
|
|
500
|
+
"description": "Close issue (GitHub has no hard delete)",
|
|
501
|
+
"riskLevel": "medium",
|
|
502
|
+
"approvalRequired": false
|
|
503
|
+
}
|
|
504
|
+
]
|
|
505
|
+
},
|
|
506
|
+
{
|
|
507
|
+
"key": "github-issue-comments",
|
|
508
|
+
"displayName": "GitHub Issue Comments",
|
|
509
|
+
"description": "Comments on repository issues via GitHub REST API: list and create.",
|
|
510
|
+
"enabled": true,
|
|
511
|
+
"systemKey": "github",
|
|
512
|
+
"resourceType": "message",
|
|
513
|
+
"entityType": "recordStorage",
|
|
514
|
+
"version": "1.0.0",
|
|
515
|
+
"businessOrder": 2,
|
|
516
|
+
"metadataSchema": {
|
|
517
|
+
"type": "object",
|
|
518
|
+
"properties": {
|
|
519
|
+
"externalId": {
|
|
520
|
+
"type": "string",
|
|
521
|
+
"index": true,
|
|
522
|
+
"description": "Stable external record identifier (comment id as string)"
|
|
523
|
+
},
|
|
524
|
+
"id": {
|
|
525
|
+
"type": "integer",
|
|
526
|
+
"index": true,
|
|
527
|
+
"description": "GitHub comment id"
|
|
528
|
+
},
|
|
529
|
+
"issueNumber": {
|
|
530
|
+
"type": "integer",
|
|
531
|
+
"index": true,
|
|
532
|
+
"description": "Parent issue number"
|
|
533
|
+
},
|
|
534
|
+
"body": {
|
|
535
|
+
"type": "string",
|
|
536
|
+
"description": "Comment body (markdown)"
|
|
537
|
+
},
|
|
538
|
+
"htmlUrl": {
|
|
539
|
+
"type": "string",
|
|
540
|
+
"format": "uri",
|
|
541
|
+
"description": "Web URL for the comment"
|
|
542
|
+
},
|
|
543
|
+
"createdAt": {
|
|
544
|
+
"type": "string",
|
|
545
|
+
"format": "date-time",
|
|
546
|
+
"description": "Comment creation timestamp"
|
|
547
|
+
},
|
|
548
|
+
"updatedAt": {
|
|
549
|
+
"type": "string",
|
|
550
|
+
"format": "date-time",
|
|
551
|
+
"description": "Comment last update timestamp"
|
|
552
|
+
}
|
|
553
|
+
},
|
|
554
|
+
"required": [
|
|
555
|
+
"id"
|
|
556
|
+
]
|
|
557
|
+
},
|
|
558
|
+
"fieldMappings": {
|
|
559
|
+
"attributes": {
|
|
560
|
+
"externalId": {
|
|
561
|
+
"expression": "{{raw.id}}"
|
|
562
|
+
},
|
|
563
|
+
"id": {
|
|
564
|
+
"expression": "{{raw.id}}"
|
|
565
|
+
},
|
|
566
|
+
"body": {
|
|
567
|
+
"expression": "{{raw.body}}"
|
|
568
|
+
},
|
|
569
|
+
"htmlUrl": {
|
|
570
|
+
"expression": "{{raw.html_url}}"
|
|
571
|
+
},
|
|
572
|
+
"createdAt": {
|
|
573
|
+
"expression": "{{raw.created_at}}"
|
|
574
|
+
},
|
|
575
|
+
"updatedAt": {
|
|
576
|
+
"expression": "{{raw.updated_at}}"
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
},
|
|
580
|
+
"primaryKey": [
|
|
581
|
+
"id"
|
|
582
|
+
],
|
|
583
|
+
"labelKey": [
|
|
584
|
+
"id"
|
|
585
|
+
],
|
|
586
|
+
"exposed": {
|
|
587
|
+
"readonly": [
|
|
588
|
+
"id",
|
|
589
|
+
"htmlUrl",
|
|
590
|
+
"createdAt",
|
|
591
|
+
"updatedAt"
|
|
592
|
+
],
|
|
593
|
+
"schema": {
|
|
594
|
+
"externalId": "metadata.externalId",
|
|
595
|
+
"id": "metadata.id",
|
|
596
|
+
"body": "metadata.body",
|
|
597
|
+
"htmlUrl": "metadata.htmlUrl",
|
|
598
|
+
"createdAt": "metadata.createdAt",
|
|
599
|
+
"updatedAt": "metadata.updatedAt"
|
|
600
|
+
},
|
|
601
|
+
"profiles": {
|
|
602
|
+
"default": [
|
|
603
|
+
"id",
|
|
604
|
+
"body",
|
|
605
|
+
"htmlUrl",
|
|
606
|
+
"createdAt",
|
|
607
|
+
"updatedAt"
|
|
608
|
+
],
|
|
609
|
+
"create": [
|
|
610
|
+
"body"
|
|
611
|
+
]
|
|
612
|
+
}
|
|
613
|
+
},
|
|
614
|
+
"openapi": {
|
|
615
|
+
"enabled": true,
|
|
616
|
+
"autoRbac": false,
|
|
617
|
+
"operations": {
|
|
618
|
+
"list": {
|
|
619
|
+
"operationId": "list-repos-owner-repo-issues-issue-number-comments",
|
|
620
|
+
"method": "GET",
|
|
621
|
+
"path": "/repos/{GITHUB_OWNER}/{GITHUB_REPO}/issues/{issueNumber}/comments",
|
|
622
|
+
"permissions": [
|
|
623
|
+
"external-system:read"
|
|
624
|
+
]
|
|
625
|
+
}
|
|
626
|
+
},
|
|
627
|
+
"documentKey": "github-issue-comments"
|
|
628
|
+
},
|
|
629
|
+
"quality": {
|
|
630
|
+
"rejectIf": [
|
|
631
|
+
{
|
|
632
|
+
"field": "id",
|
|
633
|
+
"operator": "empty",
|
|
634
|
+
"message": "Comment id cannot be empty"
|
|
635
|
+
},
|
|
636
|
+
{
|
|
637
|
+
"field": "body",
|
|
638
|
+
"operator": "empty",
|
|
639
|
+
"message": "Comment body cannot be empty"
|
|
640
|
+
}
|
|
641
|
+
]
|
|
642
|
+
},
|
|
643
|
+
"testPayload": {
|
|
644
|
+
"payloadTemplate": {
|
|
645
|
+
"id": 900001,
|
|
646
|
+
"body": "E2E test comment from AI Fabrix.",
|
|
647
|
+
"html_url": "https://github.com/octocat/Hello-World/issues/42#issuecomment-900001",
|
|
648
|
+
"created_at": "2025-01-15T11:00:00Z",
|
|
649
|
+
"updated_at": "2025-01-15T11:00:00Z"
|
|
650
|
+
},
|
|
651
|
+
"expectedResult": {
|
|
652
|
+
"id": 900001,
|
|
653
|
+
"issueNumber": 42,
|
|
654
|
+
"body": "E2E test comment from AI Fabrix.",
|
|
655
|
+
"htmlUrl": "https://github.com/octocat/Hello-World/issues/42#issuecomment-900001"
|
|
656
|
+
}
|
|
657
|
+
},
|
|
658
|
+
"execution": {
|
|
659
|
+
"engine": "cip",
|
|
660
|
+
"cip": {
|
|
661
|
+
"version": "1.0",
|
|
662
|
+
"inputType": "void",
|
|
663
|
+
"outputType": "records",
|
|
664
|
+
"operations": {
|
|
665
|
+
"list": {
|
|
666
|
+
"enabled": true,
|
|
667
|
+
"description": "List comments on an issue (requires parameters.issueNumber)",
|
|
668
|
+
"steps": [
|
|
669
|
+
{
|
|
670
|
+
"fetch": {
|
|
671
|
+
"source": "openapi",
|
|
672
|
+
"openapiRef": "list",
|
|
673
|
+
"query": {
|
|
674
|
+
"per_page": "100"
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
},
|
|
678
|
+
{
|
|
679
|
+
"map": {
|
|
680
|
+
"useFieldMappings": true,
|
|
681
|
+
"inputPath": "$",
|
|
682
|
+
"inline": {
|
|
683
|
+
"issueNumber": "{{parameters.issueNumber}}"
|
|
684
|
+
}
|
|
685
|
+
}
|
|
686
|
+
},
|
|
687
|
+
{
|
|
688
|
+
"output": {
|
|
689
|
+
"mode": "records"
|
|
690
|
+
}
|
|
691
|
+
}
|
|
692
|
+
]
|
|
693
|
+
},
|
|
694
|
+
"create": {
|
|
695
|
+
"enabled": true,
|
|
696
|
+
"description": "Create a comment on an issue",
|
|
697
|
+
"steps": [
|
|
698
|
+
{
|
|
699
|
+
"fetch": {
|
|
700
|
+
"source": "http",
|
|
701
|
+
"method": "POST",
|
|
702
|
+
"path": "/repos/{{GITHUB_OWNER}}/{{GITHUB_REPO}}/issues/{{parameters.issueNumber}}/comments",
|
|
703
|
+
"headers": {
|
|
704
|
+
"Accept": "application/vnd.github+json",
|
|
705
|
+
"X-GitHub-Api-Version": "2022-11-28",
|
|
706
|
+
"Content-Type": "application/json"
|
|
707
|
+
},
|
|
708
|
+
"bodyTemplate": {
|
|
709
|
+
"body": "{{parameters.body}}"
|
|
710
|
+
}
|
|
711
|
+
}
|
|
712
|
+
},
|
|
713
|
+
{
|
|
714
|
+
"map": {
|
|
715
|
+
"useFieldMappings": true,
|
|
716
|
+
"inputPath": "$",
|
|
717
|
+
"inline": {
|
|
718
|
+
"issueNumber": "{{parameters.issueNumber}}"
|
|
719
|
+
}
|
|
720
|
+
}
|
|
721
|
+
},
|
|
722
|
+
{
|
|
723
|
+
"output": {
|
|
724
|
+
"mode": "records"
|
|
725
|
+
}
|
|
726
|
+
}
|
|
727
|
+
]
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
}
|
|
731
|
+
},
|
|
732
|
+
"capabilities": [
|
|
733
|
+
{
|
|
734
|
+
"key": "list",
|
|
735
|
+
"description": "List comments on an issue",
|
|
736
|
+
"riskLevel": "low",
|
|
737
|
+
"approvalRequired": false
|
|
738
|
+
},
|
|
739
|
+
{
|
|
740
|
+
"key": "create",
|
|
741
|
+
"description": "Create a comment on an issue",
|
|
742
|
+
"riskLevel": "medium",
|
|
743
|
+
"approvalRequired": false
|
|
744
|
+
}
|
|
745
|
+
]
|
|
746
|
+
},
|
|
747
|
+
{
|
|
748
|
+
"key": "github-repository",
|
|
749
|
+
"displayName": "GitHub Repository",
|
|
750
|
+
"description": "Repository lifecycle operations for GitHub REST API: status, content sync (pull), branches, pull requests, and workflow dispatch. Reference provider for Enterprise MCP repository.* capabilities (154.1 lab fixture).",
|
|
751
|
+
"enabled": true,
|
|
752
|
+
"systemKey": "github",
|
|
753
|
+
"resourceType": "repository",
|
|
754
|
+
"entityType": "serviceContract",
|
|
755
|
+
"version": "1.0.0",
|
|
756
|
+
"_comManifestRoleCatalog": {
|
|
757
|
+
"roleKeys": [
|
|
758
|
+
"aifabrix-developer",
|
|
759
|
+
"aifabrix-security-admin",
|
|
760
|
+
"aifabrix-deployment-admin"
|
|
761
|
+
],
|
|
762
|
+
"roleDisplayNames": {
|
|
763
|
+
"aifabrix-developer": "Integration Developer",
|
|
764
|
+
"aifabrix-security-admin": "Integration Security Admin",
|
|
765
|
+
"aifabrix-deployment-admin": "Integration Deployment Admin"
|
|
766
|
+
}
|
|
767
|
+
},
|
|
768
|
+
"businessOrder": 3,
|
|
769
|
+
"metadataSchema": {
|
|
770
|
+
"type": "object",
|
|
771
|
+
"properties": {
|
|
772
|
+
"successName": {
|
|
773
|
+
"type": "string",
|
|
774
|
+
"nullable": true,
|
|
775
|
+
"description": "Repository short name (without owner)"
|
|
776
|
+
},
|
|
777
|
+
"successFullName": {
|
|
778
|
+
"type": "string",
|
|
779
|
+
"nullable": true,
|
|
780
|
+
"description": "Fully qualified repository name (owner/repo)"
|
|
781
|
+
},
|
|
782
|
+
"successDefaultBranch": {
|
|
783
|
+
"type": "string",
|
|
784
|
+
"nullable": true,
|
|
785
|
+
"description": "Default branch name for the repository"
|
|
786
|
+
},
|
|
787
|
+
"successPrivate": {
|
|
788
|
+
"type": "boolean",
|
|
789
|
+
"nullable": true,
|
|
790
|
+
"description": "Whether the repository is private"
|
|
791
|
+
},
|
|
792
|
+
"successHtmlUrl": {
|
|
793
|
+
"type": "string",
|
|
794
|
+
"nullable": true,
|
|
795
|
+
"description": "Web URL for the repository or resource"
|
|
796
|
+
},
|
|
797
|
+
"successPath": {
|
|
798
|
+
"type": "string",
|
|
799
|
+
"nullable": true,
|
|
800
|
+
"description": "File or directory path within the repository"
|
|
801
|
+
},
|
|
802
|
+
"successSha": {
|
|
803
|
+
"type": "string",
|
|
804
|
+
"nullable": true,
|
|
805
|
+
"description": "Git object SHA for content or branch ref"
|
|
806
|
+
},
|
|
807
|
+
"successContent": {
|
|
808
|
+
"type": "string",
|
|
809
|
+
"nullable": true,
|
|
810
|
+
"description": "Base64-encoded file content from contents API"
|
|
811
|
+
},
|
|
812
|
+
"successEncoding": {
|
|
813
|
+
"type": "string",
|
|
814
|
+
"nullable": true,
|
|
815
|
+
"description": "Content encoding reported by GitHub (typically base64)"
|
|
816
|
+
},
|
|
817
|
+
"successNumber": {
|
|
818
|
+
"type": "integer",
|
|
819
|
+
"nullable": true,
|
|
820
|
+
"description": "Pull request number"
|
|
821
|
+
},
|
|
822
|
+
"successTitle": {
|
|
823
|
+
"type": "string",
|
|
824
|
+
"nullable": true,
|
|
825
|
+
"description": "Pull request title"
|
|
826
|
+
},
|
|
827
|
+
"successHead": {
|
|
828
|
+
"type": "string",
|
|
829
|
+
"nullable": true,
|
|
830
|
+
"description": "Head branch ref for a pull request"
|
|
831
|
+
},
|
|
832
|
+
"successBase": {
|
|
833
|
+
"type": "string",
|
|
834
|
+
"nullable": true,
|
|
835
|
+
"description": "Base branch ref for a pull request"
|
|
836
|
+
},
|
|
837
|
+
"successRef": {
|
|
838
|
+
"type": "string",
|
|
839
|
+
"nullable": true,
|
|
840
|
+
"description": "Git ref name (e.g. refs/heads/feature)"
|
|
841
|
+
},
|
|
842
|
+
"successWorkflowId": {
|
|
843
|
+
"type": "string",
|
|
844
|
+
"nullable": true,
|
|
845
|
+
"description": "GitHub Actions workflow identifier used for dispatch"
|
|
846
|
+
},
|
|
847
|
+
"errorCode": {
|
|
848
|
+
"type": "string",
|
|
849
|
+
"nullable": true,
|
|
850
|
+
"description": "Provider error code when the operation fails"
|
|
851
|
+
},
|
|
852
|
+
"errorMessage": {
|
|
853
|
+
"type": "string",
|
|
854
|
+
"nullable": true,
|
|
855
|
+
"description": "Human-readable provider error message"
|
|
856
|
+
}
|
|
857
|
+
}
|
|
858
|
+
},
|
|
859
|
+
"fieldMappings": {
|
|
860
|
+
"attributes": {
|
|
861
|
+
"successName": {
|
|
862
|
+
"expression": "{{raw.name}}"
|
|
863
|
+
},
|
|
864
|
+
"successFullName": {
|
|
865
|
+
"expression": "{{raw.full_name}}"
|
|
866
|
+
},
|
|
867
|
+
"successDefaultBranch": {
|
|
868
|
+
"expression": "{{raw.default_branch}}"
|
|
869
|
+
},
|
|
870
|
+
"successPrivate": {
|
|
871
|
+
"expression": "{{raw.private}}"
|
|
872
|
+
},
|
|
873
|
+
"successHtmlUrl": {
|
|
874
|
+
"expression": "{{raw.html_url}}"
|
|
875
|
+
},
|
|
876
|
+
"successPath": {
|
|
877
|
+
"expression": "{{raw.path}}"
|
|
878
|
+
},
|
|
879
|
+
"successSha": {
|
|
880
|
+
"expression": "{{raw.sha}}"
|
|
881
|
+
},
|
|
882
|
+
"successContent": {
|
|
883
|
+
"expression": "{{raw.content}}"
|
|
884
|
+
},
|
|
885
|
+
"successEncoding": {
|
|
886
|
+
"expression": "{{raw.encoding}}"
|
|
887
|
+
},
|
|
888
|
+
"successNumber": {
|
|
889
|
+
"expression": "{{raw.number}}"
|
|
890
|
+
},
|
|
891
|
+
"successTitle": {
|
|
892
|
+
"expression": "{{raw.title}}"
|
|
893
|
+
},
|
|
894
|
+
"successHead": {
|
|
895
|
+
"expression": "{{raw.head.ref}}"
|
|
896
|
+
},
|
|
897
|
+
"successBase": {
|
|
898
|
+
"expression": "{{raw.base.ref}}"
|
|
899
|
+
},
|
|
900
|
+
"successRef": {
|
|
901
|
+
"expression": "{{raw.ref}}"
|
|
902
|
+
},
|
|
903
|
+
"successWorkflowId": {
|
|
904
|
+
"expression": "{{raw.workflow_id}}"
|
|
905
|
+
},
|
|
906
|
+
"errorCode": {
|
|
907
|
+
"expression": "{{raw.code}}"
|
|
908
|
+
},
|
|
909
|
+
"errorMessage": {
|
|
910
|
+
"expression": "{{raw.message}}"
|
|
911
|
+
}
|
|
912
|
+
}
|
|
913
|
+
},
|
|
914
|
+
"exposed": {
|
|
915
|
+
"schema": {
|
|
916
|
+
"success": {
|
|
917
|
+
"name": "metadata.successName",
|
|
918
|
+
"fullName": "metadata.successFullName",
|
|
919
|
+
"defaultBranch": "metadata.successDefaultBranch",
|
|
920
|
+
"private": "metadata.successPrivate",
|
|
921
|
+
"htmlUrl": "metadata.successHtmlUrl",
|
|
922
|
+
"path": "metadata.successPath",
|
|
923
|
+
"sha": "metadata.successSha",
|
|
924
|
+
"content": "metadata.successContent",
|
|
925
|
+
"encoding": "metadata.successEncoding",
|
|
926
|
+
"number": "metadata.successNumber",
|
|
927
|
+
"title": "metadata.successTitle",
|
|
928
|
+
"head": "metadata.successHead",
|
|
929
|
+
"base": "metadata.successBase",
|
|
930
|
+
"ref": "metadata.successRef",
|
|
931
|
+
"workflowId": "metadata.successWorkflowId"
|
|
932
|
+
},
|
|
933
|
+
"error": {
|
|
934
|
+
"code": "metadata.errorCode",
|
|
935
|
+
"message": "metadata.errorMessage"
|
|
936
|
+
}
|
|
937
|
+
},
|
|
938
|
+
"profiles": {
|
|
939
|
+
"default": [
|
|
940
|
+
"success",
|
|
941
|
+
"error"
|
|
942
|
+
]
|
|
943
|
+
}
|
|
944
|
+
},
|
|
945
|
+
"openapi": {
|
|
946
|
+
"enabled": true,
|
|
947
|
+
"autoRbac": false,
|
|
948
|
+
"operations": {
|
|
949
|
+
"status": {
|
|
950
|
+
"operationId": "get-repos-owner-repo-status",
|
|
951
|
+
"method": "GET",
|
|
952
|
+
"path": "/repos/{GITHUB_OWNER}/{GITHUB_REPO}",
|
|
953
|
+
"permissions": [
|
|
954
|
+
"external-system:read"
|
|
955
|
+
]
|
|
956
|
+
},
|
|
957
|
+
"sync": {
|
|
958
|
+
"operationId": "get-repos-owner-repo-contents-path",
|
|
959
|
+
"method": "GET",
|
|
960
|
+
"path": "/repos/{GITHUB_OWNER}/{GITHUB_REPO}/contents/{path}",
|
|
961
|
+
"permissions": [
|
|
962
|
+
"external-system:read"
|
|
963
|
+
]
|
|
964
|
+
},
|
|
965
|
+
"branchList": {
|
|
966
|
+
"operationId": "get-repos-owner-repo-branches",
|
|
967
|
+
"method": "GET",
|
|
968
|
+
"path": "/repos/{GITHUB_OWNER}/{GITHUB_REPO}/branches",
|
|
969
|
+
"permissions": [
|
|
970
|
+
"external-system:read"
|
|
971
|
+
]
|
|
972
|
+
}
|
|
973
|
+
},
|
|
974
|
+
"documentKey": "github-repository"
|
|
975
|
+
},
|
|
976
|
+
"execution": {
|
|
977
|
+
"engine": "cip",
|
|
978
|
+
"cip": {
|
|
979
|
+
"version": "1.0",
|
|
980
|
+
"inputType": "void",
|
|
981
|
+
"outputType": "records",
|
|
982
|
+
"operations": {
|
|
983
|
+
"status": {
|
|
984
|
+
"enabled": true,
|
|
985
|
+
"description": "Repository metadata for configured owner/repo",
|
|
986
|
+
"steps": [
|
|
987
|
+
{
|
|
988
|
+
"fetch": {
|
|
989
|
+
"source": "openapi",
|
|
990
|
+
"openapiRef": "status"
|
|
991
|
+
}
|
|
992
|
+
},
|
|
993
|
+
{
|
|
994
|
+
"map": {
|
|
995
|
+
"useFieldMappings": true,
|
|
996
|
+
"inputPath": "$"
|
|
997
|
+
}
|
|
998
|
+
},
|
|
999
|
+
{
|
|
1000
|
+
"output": {
|
|
1001
|
+
"mode": "records"
|
|
1002
|
+
}
|
|
1003
|
+
}
|
|
1004
|
+
]
|
|
1005
|
+
},
|
|
1006
|
+
"sync": {
|
|
1007
|
+
"enabled": true,
|
|
1008
|
+
"description": "Pull repository content at path (GET contents). Use direction=pull; push uses createReview workflow in lab.",
|
|
1009
|
+
"steps": [
|
|
1010
|
+
{
|
|
1011
|
+
"fetch": {
|
|
1012
|
+
"source": "openapi",
|
|
1013
|
+
"openapiRef": "sync",
|
|
1014
|
+
"query": {
|
|
1015
|
+
"ref": "{{parameters.ref}}"
|
|
1016
|
+
}
|
|
1017
|
+
}
|
|
1018
|
+
},
|
|
1019
|
+
{
|
|
1020
|
+
"map": {
|
|
1021
|
+
"useFieldMappings": true,
|
|
1022
|
+
"inputPath": "$"
|
|
1023
|
+
}
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
"output": {
|
|
1027
|
+
"mode": "records"
|
|
1028
|
+
}
|
|
1029
|
+
}
|
|
1030
|
+
]
|
|
1031
|
+
},
|
|
1032
|
+
"branchList": {
|
|
1033
|
+
"enabled": true,
|
|
1034
|
+
"description": "List repository branches",
|
|
1035
|
+
"steps": [
|
|
1036
|
+
{
|
|
1037
|
+
"fetch": {
|
|
1038
|
+
"source": "openapi",
|
|
1039
|
+
"openapiRef": "branchList"
|
|
1040
|
+
}
|
|
1041
|
+
},
|
|
1042
|
+
{
|
|
1043
|
+
"map": {
|
|
1044
|
+
"useFieldMappings": true,
|
|
1045
|
+
"inputPath": "$"
|
|
1046
|
+
}
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
"output": {
|
|
1050
|
+
"mode": "records"
|
|
1051
|
+
}
|
|
1052
|
+
}
|
|
1053
|
+
]
|
|
1054
|
+
},
|
|
1055
|
+
"branchCreate": {
|
|
1056
|
+
"enabled": true,
|
|
1057
|
+
"description": "Create branch ref from sha",
|
|
1058
|
+
"steps": [
|
|
1059
|
+
{
|
|
1060
|
+
"fetch": {
|
|
1061
|
+
"source": "http",
|
|
1062
|
+
"method": "POST",
|
|
1063
|
+
"path": "/repos/{{GITHUB_OWNER}}/{{GITHUB_REPO}}/git/refs",
|
|
1064
|
+
"headers": {
|
|
1065
|
+
"Accept": "application/vnd.github+json",
|
|
1066
|
+
"X-GitHub-Api-Version": "2022-11-28",
|
|
1067
|
+
"Content-Type": "application/json"
|
|
1068
|
+
},
|
|
1069
|
+
"bodyTemplate": {
|
|
1070
|
+
"ref": "{{parameters.ref}}",
|
|
1071
|
+
"sha": "{{parameters.sha}}"
|
|
1072
|
+
}
|
|
1073
|
+
}
|
|
1074
|
+
},
|
|
1075
|
+
{
|
|
1076
|
+
"map": {
|
|
1077
|
+
"useFieldMappings": true,
|
|
1078
|
+
"inputPath": "$"
|
|
1079
|
+
}
|
|
1080
|
+
},
|
|
1081
|
+
{
|
|
1082
|
+
"output": {
|
|
1083
|
+
"mode": "records"
|
|
1084
|
+
}
|
|
1085
|
+
}
|
|
1086
|
+
]
|
|
1087
|
+
},
|
|
1088
|
+
"createReview": {
|
|
1089
|
+
"enabled": true,
|
|
1090
|
+
"description": "Open a pull request (provider-neutral createReview capability)",
|
|
1091
|
+
"steps": [
|
|
1092
|
+
{
|
|
1093
|
+
"fetch": {
|
|
1094
|
+
"source": "http",
|
|
1095
|
+
"method": "POST",
|
|
1096
|
+
"path": "/repos/{{GITHUB_OWNER}}/{{GITHUB_REPO}}/pulls",
|
|
1097
|
+
"headers": {
|
|
1098
|
+
"Accept": "application/vnd.github+json",
|
|
1099
|
+
"X-GitHub-Api-Version": "2022-11-28",
|
|
1100
|
+
"Content-Type": "application/json"
|
|
1101
|
+
},
|
|
1102
|
+
"bodyTemplate": {
|
|
1103
|
+
"title": "{{parameters.title}}",
|
|
1104
|
+
"body": "{{parameters.body}}",
|
|
1105
|
+
"head": "{{parameters.head}}",
|
|
1106
|
+
"base": "{{parameters.base}}"
|
|
1107
|
+
}
|
|
1108
|
+
}
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
"map": {
|
|
1112
|
+
"useFieldMappings": true,
|
|
1113
|
+
"inputPath": "$"
|
|
1114
|
+
}
|
|
1115
|
+
},
|
|
1116
|
+
{
|
|
1117
|
+
"output": {
|
|
1118
|
+
"mode": "records"
|
|
1119
|
+
}
|
|
1120
|
+
}
|
|
1121
|
+
]
|
|
1122
|
+
},
|
|
1123
|
+
"dispatchPipeline": {
|
|
1124
|
+
"enabled": true,
|
|
1125
|
+
"description": "Dispatch GitHub Actions workflow",
|
|
1126
|
+
"steps": [
|
|
1127
|
+
{
|
|
1128
|
+
"fetch": {
|
|
1129
|
+
"source": "http",
|
|
1130
|
+
"method": "POST",
|
|
1131
|
+
"path": "/repos/{{GITHUB_OWNER}}/{{GITHUB_REPO}}/actions/workflows/{{parameters.workflowId}}/dispatches",
|
|
1132
|
+
"headers": {
|
|
1133
|
+
"Accept": "application/vnd.github+json",
|
|
1134
|
+
"X-GitHub-Api-Version": "2022-11-28",
|
|
1135
|
+
"Content-Type": "application/json"
|
|
1136
|
+
},
|
|
1137
|
+
"bodyTemplate": {
|
|
1138
|
+
"ref": "{{parameters.ref}}",
|
|
1139
|
+
"inputs": "{{parameters.inputs}}"
|
|
1140
|
+
}
|
|
1141
|
+
}
|
|
1142
|
+
},
|
|
1143
|
+
{
|
|
1144
|
+
"map": {
|
|
1145
|
+
"useFieldMappings": true,
|
|
1146
|
+
"inputPath": "$"
|
|
1147
|
+
}
|
|
1148
|
+
},
|
|
1149
|
+
{
|
|
1150
|
+
"output": {
|
|
1151
|
+
"mode": "records"
|
|
1152
|
+
}
|
|
1153
|
+
}
|
|
1154
|
+
]
|
|
1155
|
+
}
|
|
1156
|
+
}
|
|
1157
|
+
}
|
|
1158
|
+
},
|
|
1159
|
+
"capabilities": [
|
|
1160
|
+
{
|
|
1161
|
+
"key": "status",
|
|
1162
|
+
"description": "Repository metadata and default branch",
|
|
1163
|
+
"riskLevel": "low",
|
|
1164
|
+
"approvalRequired": false
|
|
1165
|
+
},
|
|
1166
|
+
{
|
|
1167
|
+
"key": "sync",
|
|
1168
|
+
"description": "Pull repository file or directory contents",
|
|
1169
|
+
"riskLevel": "medium",
|
|
1170
|
+
"approvalRequired": false
|
|
1171
|
+
},
|
|
1172
|
+
{
|
|
1173
|
+
"key": "branchList",
|
|
1174
|
+
"description": "List repository branches",
|
|
1175
|
+
"riskLevel": "low",
|
|
1176
|
+
"approvalRequired": false
|
|
1177
|
+
},
|
|
1178
|
+
{
|
|
1179
|
+
"key": "branchCreate",
|
|
1180
|
+
"description": "Create a branch ref",
|
|
1181
|
+
"riskLevel": "medium",
|
|
1182
|
+
"approvalRequired": false
|
|
1183
|
+
},
|
|
1184
|
+
{
|
|
1185
|
+
"key": "createReview",
|
|
1186
|
+
"description": "Open a pull request",
|
|
1187
|
+
"riskLevel": "medium",
|
|
1188
|
+
"approvalRequired": false
|
|
1189
|
+
},
|
|
1190
|
+
{
|
|
1191
|
+
"key": "dispatchPipeline",
|
|
1192
|
+
"description": "Dispatch CI workflow",
|
|
1193
|
+
"riskLevel": "high",
|
|
1194
|
+
"approvalRequired": true
|
|
1195
|
+
}
|
|
1196
|
+
]
|
|
1197
|
+
}
|
|
1198
|
+
],
|
|
1199
|
+
"requiresDatabase": false,
|
|
1200
|
+
"requiresRedis": false,
|
|
1201
|
+
"requiresStorage": false
|
|
1202
|
+
}
|