@superblocksteam/mcp-server 2.0.156-next.1 → 2.0.156-next.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +1 -2
- package/dist/tools/create-integration.d.ts +0 -7
- package/dist/tools/create-integration.d.ts.map +1 -1
- package/dist/tools/create-integration.js +3 -47
- package/dist/tools/create-integration.js.map +1 -1
- package/dist/tools/index.d.ts.map +1 -1
- package/dist/tools/index.js +0 -24
- package/dist/tools/index.js.map +1 -1
- package/dist/tools/schemas.d.ts +0 -12
- package/dist/tools/schemas.d.ts.map +1 -1
- package/dist/tools/schemas.js +2 -307
- package/dist/tools/schemas.js.map +1 -1
- package/dist/tools/server-api.d.ts +1 -1
- package/dist/tools/server-api.d.ts.map +1 -1
- package/dist/tools/server-api.js +1 -8
- package/dist/tools/server-api.js.map +1 -1
- package/package.json +5 -6
- package/dist/tools/datasource-configuration-by-type.schema.json +0 -2619
- package/dist/tools/get-application-policy-run-findings.d.ts +0 -3
- package/dist/tools/get-application-policy-run-findings.d.ts.map +0 -1
- package/dist/tools/get-application-policy-run-findings.js +0 -62
- package/dist/tools/get-application-policy-run-findings.js.map +0 -1
- package/dist/tools/get-application-publish-pipeline.d.ts +0 -3
- package/dist/tools/get-application-publish-pipeline.d.ts.map +0 -1
- package/dist/tools/get-application-publish-pipeline.js +0 -47
- package/dist/tools/get-application-publish-pipeline.js.map +0 -1
- package/dist/tools/get-application-publish-readiness.d.ts +0 -3
- package/dist/tools/get-application-publish-readiness.d.ts.map +0 -1
- package/dist/tools/get-application-publish-readiness.js +0 -47
- package/dist/tools/get-application-publish-readiness.js.map +0 -1
- package/dist/tools/get-dependency-scan-summary.d.ts +0 -3
- package/dist/tools/get-dependency-scan-summary.d.ts.map +0 -1
- package/dist/tools/get-dependency-scan-summary.js +0 -42
- package/dist/tools/get-dependency-scan-summary.js.map +0 -1
- package/dist/tools/get-integration-config-schema.d.ts +0 -3
- package/dist/tools/get-integration-config-schema.d.ts.map +0 -1
- package/dist/tools/get-integration-config-schema.js +0 -34
- package/dist/tools/get-integration-config-schema.js.map +0 -1
- package/dist/tools/get-review-policy-run-report.d.ts +0 -3
- package/dist/tools/get-review-policy-run-report.d.ts.map +0 -1
- package/dist/tools/get-review-policy-run-report.js +0 -60
- package/dist/tools/get-review-policy-run-report.js.map +0 -1
- package/dist/tools/get-review-policy-summary.d.ts +0 -3
- package/dist/tools/get-review-policy-summary.d.ts.map +0 -1
- package/dist/tools/get-review-policy-summary.js +0 -47
- package/dist/tools/get-review-policy-summary.js.map +0 -1
- package/dist/tools/get-review-policy.d.ts +0 -3
- package/dist/tools/get-review-policy.d.ts.map +0 -1
- package/dist/tools/get-review-policy.js +0 -43
- package/dist/tools/get-review-policy.js.map +0 -1
- package/dist/tools/list-dependency-scan-findings.d.ts +0 -3
- package/dist/tools/list-dependency-scan-findings.d.ts.map +0 -1
- package/dist/tools/list-dependency-scan-findings.js +0 -69
- package/dist/tools/list-dependency-scan-findings.js.map +0 -1
- package/dist/tools/list-review-policies.d.ts +0 -3
- package/dist/tools/list-review-policies.d.ts.map +0 -1
- package/dist/tools/list-review-policies.js +0 -42
- package/dist/tools/list-review-policies.js.map +0 -1
- package/dist/tools/list-review-policy-runs.d.ts +0 -3
- package/dist/tools/list-review-policy-runs.d.ts.map +0 -1
- package/dist/tools/list-review-policy-runs.js +0 -80
- package/dist/tools/list-review-policy-runs.js.map +0 -1
- package/dist/tools/lookup-package-vulnerabilities.d.ts +0 -3
- package/dist/tools/lookup-package-vulnerabilities.d.ts.map +0 -1
- package/dist/tools/lookup-package-vulnerabilities.js +0 -57
- package/dist/tools/lookup-package-vulnerabilities.js.map +0 -1
- package/dist/tools/plugin-configuration-schema.d.ts +0 -3
- package/dist/tools/plugin-configuration-schema.d.ts.map +0 -1
- package/dist/tools/plugin-configuration-schema.js +0 -95
- package/dist/tools/plugin-configuration-schema.js.map +0 -1
package/README.md
CHANGED
|
@@ -156,8 +156,7 @@ Materialize an application to disk. Supports historical snapshots via `commit_id
|
|
|
156
156
|
### Integration Management
|
|
157
157
|
|
|
158
158
|
- `get_integration` - fetch an integration by ID
|
|
159
|
-
- `
|
|
160
|
-
- `create_integration` - create an integration from name, plugin_id, and configuration; returns `integration_url` when the dashboard shares the API origin
|
|
159
|
+
- `create_integration` - create an integration from API payload
|
|
161
160
|
- `update_integration` - update an integration by ID
|
|
162
161
|
- `delete_integration` - delete an integration by ID
|
|
163
162
|
- `get_integration_access` - list users/groups with integration access
|
|
@@ -1,10 +1,3 @@
|
|
|
1
1
|
import type { ToolDefinition } from "./registry.js";
|
|
2
|
-
export declare function buildCreateIntegrationPayload(input: {
|
|
3
|
-
configuration: Record<string, unknown>;
|
|
4
|
-
kind?: "PLUGIN" | "SECRET";
|
|
5
|
-
name: string;
|
|
6
|
-
plugin_id: string;
|
|
7
|
-
slug?: string;
|
|
8
|
-
}): Record<string, unknown>;
|
|
9
2
|
export declare const createIntegration: ToolDefinition;
|
|
10
3
|
//# sourceMappingURL=create-integration.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-integration.d.ts","sourceRoot":"","sources":["../../src/tools/create-integration.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"create-integration.d.ts","sourceRoot":"","sources":["../../src/tools/create-integration.ts"],"names":[],"mappings":"AAKA,OAAO,KAAK,EAAE,cAAc,EAAE,MAAM,eAAe,CAAC;AAWpD,eAAO,MAAM,iBAAiB,EAAE,cA2B/B,CAAC"}
|
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import { randomUUID } from "node:crypto";
|
|
2
1
|
import { z } from "zod";
|
|
3
|
-
import { IntegrationKind } from "@superblocksteam/shared";
|
|
4
2
|
import { resolveAuthForOrigin } from "../auth/resolve-auth.js";
|
|
5
3
|
import { createSdk } from "../sdk/create-sdk.js";
|
|
6
4
|
import { detectEnvironment, normalizeBaseUrl } from "../urls.js";
|
|
@@ -9,53 +7,13 @@ import { parseToolInput } from "./validation.js";
|
|
|
9
7
|
const createIntegrationInputSchema = z
|
|
10
8
|
.object({
|
|
11
9
|
base_url: z.string().url(),
|
|
12
|
-
|
|
13
|
-
kind: z.enum(["PLUGIN", "SECRET"]).optional(),
|
|
14
|
-
name: z.string().trim().min(1),
|
|
15
|
-
plugin_id: z.string().trim().min(1),
|
|
16
|
-
slug: z.string().trim().min(1).optional(),
|
|
10
|
+
payload: z.record(z.string(), z.unknown()),
|
|
17
11
|
})
|
|
18
12
|
.strict();
|
|
19
|
-
export function buildCreateIntegrationPayload(input) {
|
|
20
|
-
const id = randomUUID();
|
|
21
|
-
const configurationId = randomUUID();
|
|
22
|
-
return {
|
|
23
|
-
configurations: [
|
|
24
|
-
{
|
|
25
|
-
configuration: input.configuration,
|
|
26
|
-
created: new Date().toISOString(),
|
|
27
|
-
id: configurationId,
|
|
28
|
-
integrationId: id,
|
|
29
|
-
isDefault: true,
|
|
30
|
-
},
|
|
31
|
-
],
|
|
32
|
-
id,
|
|
33
|
-
kind: input.kind ?? IntegrationKind.PLUGIN,
|
|
34
|
-
name: input.name,
|
|
35
|
-
pluginId: input.plugin_id,
|
|
36
|
-
...(input.slug ? { slug: input.slug } : {}),
|
|
37
|
-
};
|
|
38
|
-
}
|
|
39
|
-
// Hosted deployments serve the dashboard from the same origin as the API, so
|
|
40
|
-
// base_url is a usable link. Local dev splits them across ports, and we have no
|
|
41
|
-
// way to learn the UI port here, so we link nothing rather than link wrong.
|
|
42
|
-
function integrationPageUrl(baseUrl, integration) {
|
|
43
|
-
if (detectEnvironment(baseUrl) === "local") {
|
|
44
|
-
return undefined;
|
|
45
|
-
}
|
|
46
|
-
if (typeof integration !== "object" || integration === null) {
|
|
47
|
-
return undefined;
|
|
48
|
-
}
|
|
49
|
-
const { id, pluginId } = integration;
|
|
50
|
-
if (typeof id !== "string" || typeof pluginId !== "string") {
|
|
51
|
-
return undefined;
|
|
52
|
-
}
|
|
53
|
-
return `${baseUrl}/integrations/${pluginId}/${id}`;
|
|
54
|
-
}
|
|
55
13
|
export const createIntegration = {
|
|
56
14
|
name: "create_integration",
|
|
57
15
|
title: "Create Integration",
|
|
58
|
-
description: "Create a new integration.
|
|
16
|
+
description: "Create a new integration. Pass the integration payload expected by the integrations API.",
|
|
59
17
|
inputSchema: schemas.createIntegrationToolInputSchema,
|
|
60
18
|
annotations: {
|
|
61
19
|
readOnlyHint: false,
|
|
@@ -69,11 +27,9 @@ export const createIntegration = {
|
|
|
69
27
|
const baseUrl = normalizeBaseUrl(input.base_url);
|
|
70
28
|
const auth = await resolveAuthForOrigin(baseUrl);
|
|
71
29
|
const sdk = createSdk(auth.token, baseUrl);
|
|
72
|
-
const integration = await sdk.createIntegration(
|
|
73
|
-
const integrationUrl = integrationPageUrl(baseUrl, integration);
|
|
30
|
+
const integration = await sdk.createIntegration(input.payload);
|
|
74
31
|
return {
|
|
75
32
|
integration,
|
|
76
|
-
...(integrationUrl ? { integration_url: integrationUrl } : {}),
|
|
77
33
|
auth_source: auth.source,
|
|
78
34
|
base_url: baseUrl,
|
|
79
35
|
environment: detectEnvironment(baseUrl),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"create-integration.js","sourceRoot":"","sources":["../../src/tools/create-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,
|
|
1
|
+
{"version":3,"file":"create-integration.js","sourceRoot":"","sources":["../../src/tools/create-integration.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,OAAO,EAAE,oBAAoB,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,EAAE,SAAS,EAAE,MAAM,sBAAsB,CAAC;AACjD,OAAO,EAAE,iBAAiB,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAEjE,OAAO,KAAK,OAAO,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,cAAc,EAAE,MAAM,iBAAiB,CAAC;AAEjD,MAAM,4BAA4B,GAAG,CAAC;KACn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sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAqDA,OAAO,KAAK,EAAE,cAAc,EAAE,YAAY,EAAE,MAAM,eAAe,CAAC;AAUlE,eAAO,MAAM,eAAe,EAAE,cAAc,EA0D3C,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAClD,YAAY,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AAE7C,wBAAsB,cAAc,CAClC,IAAI,EAAE,MAAM,EACZ,IAAI,EAAE,OAAO,EACb,QAAQ,EAAE,YAAY,oBAOvB"}
|
package/dist/tools/index.js
CHANGED
|
@@ -16,9 +16,6 @@ import { getAppSbom } from "./get-app-sbom.js";
|
|
|
16
16
|
import { getApplicationAccess } from "./get-application-access.js";
|
|
17
17
|
import { getApplicationCommitHistory } from "./get-application-commit-history.js";
|
|
18
18
|
import { getApplicationDeploymentHistory } from "./get-application-deployment-history.js";
|
|
19
|
-
import { getApplicationPolicyRunFindings } from "./get-application-policy-run-findings.js";
|
|
20
|
-
import { getApplicationPublishPipeline } from "./get-application-publish-pipeline.js";
|
|
21
|
-
import { getApplicationPublishReadiness } from "./get-application-publish-readiness.js";
|
|
22
19
|
import { getApplicationStructure } from "./get-application-structure.js";
|
|
23
20
|
import { getApplicationSummary } from "./get-application-summary.js";
|
|
24
21
|
import { getAuditEvents } from "./get-audit-events.js";
|
|
@@ -28,23 +25,17 @@ import { getBillingUsageDaily } from "./get-billing-usage-daily.js";
|
|
|
28
25
|
import { getBillingUsageRecords } from "./get-billing-usage-records.js";
|
|
29
26
|
import { getChatMessages } from "./get-chat-messages.js";
|
|
30
27
|
import { getCurrentUser } from "./get-current-user.js";
|
|
31
|
-
import { getDependencyScanSummary } from "./get-dependency-scan-summary.js";
|
|
32
28
|
import { getIntegrationAccess } from "./get-integration-access.js";
|
|
33
|
-
import { getIntegrationConfigSchema } from "./get-integration-config-schema.js";
|
|
34
29
|
import { getIntegration } from "./get-integration.js";
|
|
35
30
|
import { getJobAccess } from "./get-job-access.js";
|
|
36
31
|
import { getKnowledge } from "./get-knowledge.js";
|
|
37
32
|
import { getOrganizationSummary } from "./get-organization-summary.js";
|
|
38
|
-
import { getReviewPolicyRunReport } from "./get-review-policy-run-report.js";
|
|
39
|
-
import { getReviewPolicySummary } from "./get-review-policy-summary.js";
|
|
40
|
-
import { getReviewPolicy } from "./get-review-policy.js";
|
|
41
33
|
import { getUserPermissions } from "./get-user-permissions.js";
|
|
42
34
|
import { getWorkflowAccess } from "./get-workflow-access.js";
|
|
43
35
|
import { grantResourceAccess } from "./grant-resource-access.js";
|
|
44
36
|
import { listApplications } from "./list-applications.js";
|
|
45
37
|
import { listAuditEventTypes } from "./list-audit-event-types.js";
|
|
46
38
|
import { listBuilderSeats } from "./list-builder-seats.js";
|
|
47
|
-
import { listDependencyScanFindings } from "./list-dependency-scan-findings.js";
|
|
48
39
|
import { listDistinctPackagesInOrg } from "./list-distinct-packages-in-org.js";
|
|
49
40
|
import { listFolders } from "./list-folders.js";
|
|
50
41
|
import { listIntegrations } from "./list-integrations.js";
|
|
@@ -52,12 +43,9 @@ import { listKnowledge } from "./list-knowledge.js";
|
|
|
52
43
|
import { listOrganizationAgents } from "./list-organization-agents.js";
|
|
53
44
|
import { listPackagesByApp } from "./list-packages-by-app.js";
|
|
54
45
|
import { listRbacAssignments } from "./list-rbac-assignments.js";
|
|
55
|
-
import { listReviewPolicies } from "./list-review-policies.js";
|
|
56
|
-
import { listReviewPolicyRuns } from "./list-review-policy-runs.js";
|
|
57
46
|
import { listRoles } from "./list-roles.js";
|
|
58
47
|
import { listUsersByRole } from "./list-users-by-role.js";
|
|
59
48
|
import { listUsers } from "./list-users.js";
|
|
60
|
-
import { lookupPackageVulnerabilities } from "./lookup-package-vulnerabilities.js";
|
|
61
49
|
import { revokeResourceAccess } from "./revoke-resource-access.js";
|
|
62
50
|
import { unassignBuilderSeat } from "./unassign-builder-seat.js";
|
|
63
51
|
import { undeployApplication } from "./undeploy-application.js";
|
|
@@ -82,9 +70,6 @@ export const toolDefinitions = [
|
|
|
82
70
|
getApplicationAccess,
|
|
83
71
|
getApplicationCommitHistory,
|
|
84
72
|
getApplicationDeploymentHistory,
|
|
85
|
-
getApplicationPolicyRunFindings,
|
|
86
|
-
getApplicationPublishPipeline,
|
|
87
|
-
getApplicationPublishReadiness,
|
|
88
73
|
getApplicationStructure,
|
|
89
74
|
getApplicationSummary,
|
|
90
75
|
getAppSbom,
|
|
@@ -95,16 +80,11 @@ export const toolDefinitions = [
|
|
|
95
80
|
getBillingUsageRecords,
|
|
96
81
|
getChatMessages,
|
|
97
82
|
getCurrentUser,
|
|
98
|
-
getDependencyScanSummary,
|
|
99
83
|
getIntegration,
|
|
100
84
|
getIntegrationAccess,
|
|
101
|
-
getIntegrationConfigSchema,
|
|
102
85
|
getJobAccess,
|
|
103
86
|
getKnowledge,
|
|
104
87
|
getOrganizationSummary,
|
|
105
|
-
getReviewPolicy,
|
|
106
|
-
getReviewPolicyRunReport,
|
|
107
|
-
getReviewPolicySummary,
|
|
108
88
|
getUserPermissions,
|
|
109
89
|
getWorkflowAccess,
|
|
110
90
|
grantResourceAccess,
|
|
@@ -112,7 +92,6 @@ export const toolDefinitions = [
|
|
|
112
92
|
listAuditEventTypes,
|
|
113
93
|
listBillingUsageLimits,
|
|
114
94
|
listBuilderSeats,
|
|
115
|
-
listDependencyScanFindings,
|
|
116
95
|
listDistinctPackagesInOrg,
|
|
117
96
|
listFolders,
|
|
118
97
|
listIntegrations,
|
|
@@ -120,12 +99,9 @@ export const toolDefinitions = [
|
|
|
120
99
|
listOrganizationAgents,
|
|
121
100
|
listPackagesByApp,
|
|
122
101
|
listRbacAssignments,
|
|
123
|
-
listReviewPolicies,
|
|
124
|
-
listReviewPolicyRuns,
|
|
125
102
|
listRoles,
|
|
126
103
|
listUsers,
|
|
127
104
|
listUsersByRole,
|
|
128
|
-
lookupPackageVulnerabilities,
|
|
129
105
|
revokeResourceAccess,
|
|
130
106
|
unassignBuilderSeat,
|
|
131
107
|
undeployApplication,
|
package/dist/tools/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,SAAS,EAAE,QAAQ,EAAE,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,iBAAiB,EAAE,MAAM,0BAA0B,CAAC;AAC7D,OAAO,EACL,sBAAsB,EACtB,0BAA0B,EAC1B,2BAA2B,GAC5B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAChE,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAC;AAClD,OAAO,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAChE,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,yBAAyB,CAAC;AAC5D,OAAO,EAAE,qBAAqB,EAAE,MAAM,+BAA+B,CAAC;AACtE,OAAO,EAAE,iBAAiB,EAAE,MAAM,2BAA2B,CAAC;AAC9D,OAAO,EAAE,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC/C,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAClF,OAAO,EAAE,+BAA+B,EAAE,MAAM,yCAAyC,CAAC;AAC1F,OAAO,EAAE
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/tools/index.ts"],"names":[],"mappings":"AAAA,OAA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AAY;IACZ,kBAAkB;IAClB,iBAAiB;IACjB,0BAA0B;IAC1B,oBAAoB;IACpB,2BAA2B;IAC3B,iBAAiB;CAClB,CAAC;AAEF,OAAO,EAAE,iBAAiB,EAAE,MAAM,eAAe,CAAC;AAGlD,MAAM,CAAC,KAAK,UAAU,cAAc,CAClC,IAAY,EACZ,IAAa,EACb,QAAsB;IAEtB,MAAM,OAAO,GAAG,QAAQ,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;IAC1C,IAAI,CAAC,OAAO,EAAE,CAAC;QACb,MAAM,IAAI,QAAQ,CAAC,SAAS,CAAC,cAAc,EAAE,iBAAiB,IAAI,EAAE,CAAC,CAAC;IACxE,CAAC;IACD,OAAO,OAAO,CAAC,IAAI,CAAC,CAAC;AACvB,CAAC"}
|
package/dist/tools/schemas.d.ts
CHANGED
|
@@ -97,7 +97,6 @@ export declare const aggregateAuditEventsToolInputSchema: Tool["inputSchema"];
|
|
|
97
97
|
export declare const listIntegrationsToolInputSchema: Tool["inputSchema"];
|
|
98
98
|
export declare const getIntegrationToolInputSchema: Tool["inputSchema"];
|
|
99
99
|
export declare const findAppsByIntegrationToolInputSchema: Tool["inputSchema"];
|
|
100
|
-
export declare const getIntegrationConfigSchemaToolInputSchema: Tool["inputSchema"];
|
|
101
100
|
export declare const createIntegrationToolInputSchema: Tool["inputSchema"];
|
|
102
101
|
export declare const updateIntegrationToolInputSchema: Tool["inputSchema"];
|
|
103
102
|
export declare const deleteIntegrationToolInputSchema: Tool["inputSchema"];
|
|
@@ -133,15 +132,4 @@ export declare const updateUserOrgRoleToolInputSchema: Tool["inputSchema"];
|
|
|
133
132
|
export declare const updateGroupOrgRoleToolInputSchema: Tool["inputSchema"];
|
|
134
133
|
export declare const deleteGroupOrgRoleToolInputSchema: Tool["inputSchema"];
|
|
135
134
|
export declare const deactivateUserToolInputSchema: Tool["inputSchema"];
|
|
136
|
-
export declare const listDependencyScanFindingsToolInputSchema: Tool["inputSchema"];
|
|
137
|
-
export declare const getDependencyScanSummaryToolInputSchema: Tool["inputSchema"];
|
|
138
|
-
export declare const lookupPackageVulnerabilitiesToolInputSchema: Tool["inputSchema"];
|
|
139
|
-
export declare const listReviewPoliciesToolInputSchema: Tool["inputSchema"];
|
|
140
|
-
export declare const getReviewPolicySummaryToolInputSchema: Tool["inputSchema"];
|
|
141
|
-
export declare const getReviewPolicyToolInputSchema: Tool["inputSchema"];
|
|
142
|
-
export declare const listReviewPolicyRunsToolInputSchema: Tool["inputSchema"];
|
|
143
|
-
export declare const getReviewPolicyRunReportToolInputSchema: Tool["inputSchema"];
|
|
144
|
-
export declare const getApplicationPolicyRunFindingsToolInputSchema: Tool["inputSchema"];
|
|
145
|
-
export declare const getApplicationPublishReadinessToolInputSchema: Tool["inputSchema"];
|
|
146
|
-
export declare const getApplicationPublishPipelineToolInputSchema: Tool["inputSchema"];
|
|
147
135
|
//# sourceMappingURL=schemas.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/tools/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;
|
|
1
|
+
{"version":3,"file":"schemas.d.ts","sourceRoot":"","sources":["../../src/tools/schemas.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,oCAAoC,CAAC;AA+H/D,eAAO,MAAM,yBAAyB;;;;;;;CAGpC,CAAC;AASH,eAAO,MAAM,wBAAwB;;;;;;;CACY,CAAC;AAElD,eAAO,MAAM,iCAAiC;;;;;;;CAI5C,CAAC;AAEH,eAAO,MAAM,sCAAsC;;;;;;;CAI/C,CAAC;AAEL,eAAO,MAAM,0CAA0C;;;;;;;CAKnD,CAAC;AAEL,eAAO,MAAM,8CAA8C;;;;;;;CAKvD,CAAC;AAEL,eAAO,MAAM,uBAAuB;;;;;;;CAIlC,CAAC;AAEH,eAAO,MAAM,gCAAgC;;;;;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C,EA8CxC,IAAI,CAAC,aAAa,CAAC,CAAC;AAEzB,eAAO,MAAM,gCAAgC,EAsDxC,IAAI,CAAC,aAAa,CAAC,CAAC;AAEzB,eAAO,MAAM,yBAAyB,EAcjC,IAAI,CAAC,aAAa,CAAC,CAAC;AAEzB,eAAO,MAAM,wCAAwC,EAsChD,IAAI,CAAC,aAAa,CAAC,CAAC;AAgDzB,eAAO,MAAM,4BAA4B,EAmBpC,IAAI,CAAC,aAAa,CAAC,CAAC;AAEzB,eAAO,MAAM,2BAA2B,EAQnC,IAAI,CAAC,aAAa,CAAC,CAAC;AAwBzB,eAAO,MAAM,gCAAgC,EAUxC,IAAI,CAAC,aAAa,CAAC,CAAC;AAEzB,eAAO,MAAM,iCAAiC,EAUzC,IAAI,CAAC,aAAa,CAAC,CAAC;AAEzB,eAAO,MAAM,iCAAiC,EAUzC,IAAI,CAAC,aAAa,CAAC,CAAC;AAazB,eAAO,MAAM,6BAA6B,EASrC,IAAI,CAAC,aAAa,CAAC,CAAC"}
|
package/dist/tools/schemas.js
CHANGED
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { DEFAULT_REVIEW_POLICY_RUN_FINDINGS_LIMIT, DEFAULT_REVIEW_POLICY_RUNS_LIMIT, DEFAULT_REVIEW_POLICY_SUMMARY_WINDOW, MAX_REVIEW_POLICY_RUNS_LIMIT, MAX_REVIEW_POLICY_RUN_FINDINGS_LIMIT, REVIEW_POLICY_NAME_MAX_LENGTH, } from "@superblocksteam/shared";
|
|
2
|
-
import { listPluginIds } from "./plugin-configuration-schema.js";
|
|
3
1
|
// ---------------------------------------------------------------------------
|
|
4
2
|
// Shared property fragments
|
|
5
3
|
// ---------------------------------------------------------------------------
|
|
@@ -75,18 +73,6 @@ const LIMIT_PROPERTY = {
|
|
|
75
73
|
maximum: 200,
|
|
76
74
|
type: "integer",
|
|
77
75
|
};
|
|
78
|
-
const REVIEW_POLICY_RUNS_LIMIT_PROPERTY = {
|
|
79
|
-
description: `Maximum number of items to return per page. Defaults to ${DEFAULT_REVIEW_POLICY_RUNS_LIMIT}. Maximum ${MAX_REVIEW_POLICY_RUNS_LIMIT}.`,
|
|
80
|
-
exclusiveMinimum: 0,
|
|
81
|
-
maximum: MAX_REVIEW_POLICY_RUNS_LIMIT,
|
|
82
|
-
type: "integer",
|
|
83
|
-
};
|
|
84
|
-
const REVIEW_POLICY_RUN_FINDINGS_LIMIT_PROPERTY = {
|
|
85
|
-
description: `Maximum number of items to return per page. Defaults to ${DEFAULT_REVIEW_POLICY_RUN_FINDINGS_LIMIT}. Maximum ${MAX_REVIEW_POLICY_RUN_FINDINGS_LIMIT}.`,
|
|
86
|
-
exclusiveMinimum: 0,
|
|
87
|
-
maximum: MAX_REVIEW_POLICY_RUN_FINDINGS_LIMIT,
|
|
88
|
-
type: "integer",
|
|
89
|
-
};
|
|
90
76
|
const OFFSET_PROPERTY = {
|
|
91
77
|
description: "Number of items to skip before returning results. Defaults to 0.",
|
|
92
78
|
minimum: 0,
|
|
@@ -237,11 +223,6 @@ const INTEGRATION_KIND_PROPERTY = {
|
|
|
237
223
|
items: { type: "string" },
|
|
238
224
|
type: "array",
|
|
239
225
|
};
|
|
240
|
-
const PLUGIN_ID_NAME_PROPERTY = {
|
|
241
|
-
description: "Plugin type id (for example restapiintegration, postgres, snowflake).",
|
|
242
|
-
minLength: 1,
|
|
243
|
-
type: "string",
|
|
244
|
-
};
|
|
245
226
|
const ASSIGNMENT_RECORD_ID_PROPERTY = {
|
|
246
227
|
description: "Assignment record ID from RBAC assignments API.",
|
|
247
228
|
format: "uuid",
|
|
@@ -270,16 +251,6 @@ const OBJECT_PAYLOAD_PROPERTY = {
|
|
|
270
251
|
description: "Integration payload object sent directly to the integrations API. Include fields required by the target integration type.",
|
|
271
252
|
type: "object",
|
|
272
253
|
};
|
|
273
|
-
const INTEGRATION_CONFIGURATION_PROPERTY = {
|
|
274
|
-
additionalProperties: true,
|
|
275
|
-
description: "Plugin configuration fields from get_integration_config_schema. Do not include id, created, integrationId, or bindingFields.",
|
|
276
|
-
type: "object",
|
|
277
|
-
};
|
|
278
|
-
const INTEGRATION_CREATE_KIND_PROPERTY = {
|
|
279
|
-
description: "Integration kind. Defaults to PLUGIN.",
|
|
280
|
-
enum: ["PLUGIN", "SECRET"],
|
|
281
|
-
type: "string",
|
|
282
|
-
};
|
|
283
254
|
const IS_DEPLOYED_PROPERTY = {
|
|
284
255
|
description: "Filter by deploy status (true = deployed, false = not deployed).",
|
|
285
256
|
type: "boolean",
|
|
@@ -450,36 +421,13 @@ export const findAppsByIntegrationToolInputSchema = {
|
|
|
450
421
|
required: ["base_url", "integration_id"],
|
|
451
422
|
type: "object",
|
|
452
423
|
};
|
|
453
|
-
export const getIntegrationConfigSchemaToolInputSchema = {
|
|
454
|
-
additionalProperties: false,
|
|
455
|
-
properties: {
|
|
456
|
-
base_url: BASE_URL_PROPERTY,
|
|
457
|
-
// Enumerated here but not on create_integration: this tool can only answer
|
|
458
|
-
// for plugins the schema models, while creation also accepts secret stores
|
|
459
|
-
// and proto-backed plugins that it omits.
|
|
460
|
-
plugin_id: {
|
|
461
|
-
...PLUGIN_ID_NAME_PROPERTY,
|
|
462
|
-
enum: listPluginIds(),
|
|
463
|
-
},
|
|
464
|
-
},
|
|
465
|
-
required: ["plugin_id"],
|
|
466
|
-
type: "object",
|
|
467
|
-
};
|
|
468
424
|
export const createIntegrationToolInputSchema = {
|
|
469
425
|
additionalProperties: false,
|
|
470
426
|
properties: {
|
|
471
427
|
base_url: BASE_URL_PROPERTY,
|
|
472
|
-
|
|
473
|
-
kind: INTEGRATION_CREATE_KIND_PROPERTY,
|
|
474
|
-
name: NAME_PROPERTY,
|
|
475
|
-
plugin_id: PLUGIN_ID_NAME_PROPERTY,
|
|
476
|
-
slug: {
|
|
477
|
-
description: "Optional integration slug.",
|
|
478
|
-
minLength: 1,
|
|
479
|
-
type: "string",
|
|
480
|
-
},
|
|
428
|
+
payload: OBJECT_PAYLOAD_PROPERTY,
|
|
481
429
|
},
|
|
482
|
-
required: ["base_url", "
|
|
430
|
+
required: ["base_url", "payload"],
|
|
483
431
|
type: "object",
|
|
484
432
|
};
|
|
485
433
|
export const updateIntegrationToolInputSchema = {
|
|
@@ -1064,257 +1012,4 @@ export const deactivateUserToolInputSchema = {
|
|
|
1064
1012
|
required: ["base_url", "user_id"],
|
|
1065
1013
|
type: "object",
|
|
1066
1014
|
};
|
|
1067
|
-
// ---------------------------------------------------------------------------
|
|
1068
|
-
// Security Center / policy agent tool schemas
|
|
1069
|
-
// ---------------------------------------------------------------------------
|
|
1070
|
-
const POLICY_ID_PROPERTY = {
|
|
1071
|
-
format: "uuid",
|
|
1072
|
-
pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
1073
|
-
type: "string",
|
|
1074
|
-
};
|
|
1075
|
-
const RUN_ID_PROPERTY = {
|
|
1076
|
-
format: "uuid",
|
|
1077
|
-
pattern: "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
|
|
1078
|
-
type: "string",
|
|
1079
|
-
};
|
|
1080
|
-
const DEPENDENCY_SCAN_SEVERITY_PROPERTY = {
|
|
1081
|
-
description: "Filter by one or more dependency severity levels.",
|
|
1082
|
-
items: {
|
|
1083
|
-
enum: ["none", "low", "medium", "high", "critical", "unknown"],
|
|
1084
|
-
type: "string",
|
|
1085
|
-
},
|
|
1086
|
-
minItems: 1,
|
|
1087
|
-
type: "array",
|
|
1088
|
-
};
|
|
1089
|
-
const DEPENDENCY_SCAN_DATE_FILTER_PROPERTY = {
|
|
1090
|
-
enum: ["all", "none", "today", "-7d", "-30d", "ytd"],
|
|
1091
|
-
type: "string",
|
|
1092
|
-
};
|
|
1093
|
-
const REVIEW_FINDING_SEVERITY_ARRAY_PROPERTY = {
|
|
1094
|
-
description: "Filter by one or more finding severity levels.",
|
|
1095
|
-
items: {
|
|
1096
|
-
enum: ["critical", "high", "medium", "low", "info"],
|
|
1097
|
-
type: "string",
|
|
1098
|
-
},
|
|
1099
|
-
minItems: 1,
|
|
1100
|
-
type: "array",
|
|
1101
|
-
};
|
|
1102
|
-
const ORDER_PROPERTY = {
|
|
1103
|
-
enum: ["asc", "desc"],
|
|
1104
|
-
type: "string",
|
|
1105
|
-
};
|
|
1106
|
-
export const listDependencyScanFindingsToolInputSchema = {
|
|
1107
|
-
additionalProperties: false,
|
|
1108
|
-
properties: {
|
|
1109
|
-
base_url: BASE_URL_PROPERTY,
|
|
1110
|
-
application_id: APPLICATION_ID_PROPERTY,
|
|
1111
|
-
search: {
|
|
1112
|
-
description: "Free-text search over package/app name.",
|
|
1113
|
-
minLength: 1,
|
|
1114
|
-
type: "string",
|
|
1115
|
-
},
|
|
1116
|
-
severity: DEPENDENCY_SCAN_SEVERITY_PROPERTY,
|
|
1117
|
-
hide_apps_without_vulns: {
|
|
1118
|
-
description: "Defaults to true: only return apps with active vulnerabilities. Set false to include apps with none.",
|
|
1119
|
-
type: "boolean",
|
|
1120
|
-
},
|
|
1121
|
-
published: {
|
|
1122
|
-
description: "Filter by last-published date window.",
|
|
1123
|
-
...DEPENDENCY_SCAN_DATE_FILTER_PROPERTY,
|
|
1124
|
-
},
|
|
1125
|
-
updated: {
|
|
1126
|
-
description: "Filter by last-updated date window.",
|
|
1127
|
-
...DEPENDENCY_SCAN_DATE_FILTER_PROPERTY,
|
|
1128
|
-
},
|
|
1129
|
-
sort: {
|
|
1130
|
-
enum: ["severity", "last_updated", "last_published"],
|
|
1131
|
-
type: "string",
|
|
1132
|
-
},
|
|
1133
|
-
order: ORDER_PROPERTY,
|
|
1134
|
-
limit: {
|
|
1135
|
-
description: "Maximum number of items to return per page. Defaults to 25. Maximum 50.",
|
|
1136
|
-
maximum: 50,
|
|
1137
|
-
minimum: 1,
|
|
1138
|
-
type: "integer",
|
|
1139
|
-
},
|
|
1140
|
-
offset: OFFSET_PROPERTY,
|
|
1141
|
-
},
|
|
1142
|
-
required: ["base_url"],
|
|
1143
|
-
type: "object",
|
|
1144
|
-
};
|
|
1145
|
-
export const getDependencyScanSummaryToolInputSchema = {
|
|
1146
|
-
additionalProperties: false,
|
|
1147
|
-
properties: {
|
|
1148
|
-
base_url: BASE_URL_PROPERTY,
|
|
1149
|
-
},
|
|
1150
|
-
required: ["base_url"],
|
|
1151
|
-
type: "object",
|
|
1152
|
-
};
|
|
1153
|
-
export const lookupPackageVulnerabilitiesToolInputSchema = {
|
|
1154
|
-
additionalProperties: false,
|
|
1155
|
-
properties: {
|
|
1156
|
-
base_url: BASE_URL_PROPERTY,
|
|
1157
|
-
packages: {
|
|
1158
|
-
description: "Batch of npm packages to check, each an object with 'name' and 'version'.",
|
|
1159
|
-
items: {
|
|
1160
|
-
additionalProperties: false,
|
|
1161
|
-
properties: {
|
|
1162
|
-
name: { maxLength: 256, minLength: 1, type: "string" },
|
|
1163
|
-
version: { maxLength: 256, minLength: 1, type: "string" },
|
|
1164
|
-
},
|
|
1165
|
-
required: ["name", "version"],
|
|
1166
|
-
type: "object",
|
|
1167
|
-
},
|
|
1168
|
-
maxItems: 5000,
|
|
1169
|
-
minItems: 1,
|
|
1170
|
-
type: "array",
|
|
1171
|
-
},
|
|
1172
|
-
},
|
|
1173
|
-
required: ["base_url", "packages"],
|
|
1174
|
-
type: "object",
|
|
1175
|
-
};
|
|
1176
|
-
export const listReviewPoliciesToolInputSchema = {
|
|
1177
|
-
additionalProperties: false,
|
|
1178
|
-
properties: {
|
|
1179
|
-
base_url: BASE_URL_PROPERTY,
|
|
1180
|
-
},
|
|
1181
|
-
required: ["base_url"],
|
|
1182
|
-
type: "object",
|
|
1183
|
-
};
|
|
1184
|
-
export const getReviewPolicySummaryToolInputSchema = {
|
|
1185
|
-
additionalProperties: false,
|
|
1186
|
-
properties: {
|
|
1187
|
-
base_url: BASE_URL_PROPERTY,
|
|
1188
|
-
window: {
|
|
1189
|
-
description: `Summary time window. Defaults to ${DEFAULT_REVIEW_POLICY_SUMMARY_WINDOW}.`,
|
|
1190
|
-
enum: ["24h", "7d", "30d"],
|
|
1191
|
-
type: "string",
|
|
1192
|
-
},
|
|
1193
|
-
},
|
|
1194
|
-
required: ["base_url"],
|
|
1195
|
-
type: "object",
|
|
1196
|
-
};
|
|
1197
|
-
export const getReviewPolicyToolInputSchema = {
|
|
1198
|
-
additionalProperties: false,
|
|
1199
|
-
properties: {
|
|
1200
|
-
base_url: BASE_URL_PROPERTY,
|
|
1201
|
-
policy_id: POLICY_ID_PROPERTY,
|
|
1202
|
-
},
|
|
1203
|
-
required: ["base_url", "policy_id"],
|
|
1204
|
-
type: "object",
|
|
1205
|
-
};
|
|
1206
|
-
export const listReviewPolicyRunsToolInputSchema = {
|
|
1207
|
-
additionalProperties: false,
|
|
1208
|
-
properties: {
|
|
1209
|
-
base_url: BASE_URL_PROPERTY,
|
|
1210
|
-
policy_id: {
|
|
1211
|
-
description: "When provided, scopes results to runs of this policy. Omit for org-wide runs across every policy.",
|
|
1212
|
-
...POLICY_ID_PROPERTY,
|
|
1213
|
-
},
|
|
1214
|
-
application_id: APPLICATION_ID_PROPERTY,
|
|
1215
|
-
status: {
|
|
1216
|
-
enum: [
|
|
1217
|
-
"queued",
|
|
1218
|
-
"running",
|
|
1219
|
-
"passed",
|
|
1220
|
-
"findings",
|
|
1221
|
-
"blocked",
|
|
1222
|
-
"errored",
|
|
1223
|
-
"timed_out",
|
|
1224
|
-
"canceled",
|
|
1225
|
-
"stale",
|
|
1226
|
-
],
|
|
1227
|
-
type: "string",
|
|
1228
|
-
},
|
|
1229
|
-
search: { maxLength: REVIEW_POLICY_NAME_MAX_LENGTH, type: "string" },
|
|
1230
|
-
sort: {
|
|
1231
|
-
enum: ["applicationName", "findingsCount", "startedAt", "status"],
|
|
1232
|
-
type: "string",
|
|
1233
|
-
},
|
|
1234
|
-
order: ORDER_PROPERTY,
|
|
1235
|
-
time_start: {
|
|
1236
|
-
description: "Must be provided together with time_end, and no later than it.",
|
|
1237
|
-
format: "date-time",
|
|
1238
|
-
type: "string",
|
|
1239
|
-
},
|
|
1240
|
-
time_end: {
|
|
1241
|
-
description: "Must be provided together with time_start, and no earlier than it.",
|
|
1242
|
-
format: "date-time",
|
|
1243
|
-
type: "string",
|
|
1244
|
-
},
|
|
1245
|
-
triggered_by: {
|
|
1246
|
-
description: "Filter by one or more trigger sources.",
|
|
1247
|
-
items: { enum: ["system", "user"], type: "string" },
|
|
1248
|
-
minItems: 1,
|
|
1249
|
-
type: "array",
|
|
1250
|
-
},
|
|
1251
|
-
triggering_user_ids: {
|
|
1252
|
-
description: "Filter by one or more triggering user IDs.",
|
|
1253
|
-
items: { format: "uuid", type: "string" },
|
|
1254
|
-
minItems: 1,
|
|
1255
|
-
type: "array",
|
|
1256
|
-
},
|
|
1257
|
-
limit: REVIEW_POLICY_RUNS_LIMIT_PROPERTY,
|
|
1258
|
-
offset: OFFSET_PROPERTY,
|
|
1259
|
-
},
|
|
1260
|
-
required: ["base_url"],
|
|
1261
|
-
type: "object",
|
|
1262
|
-
};
|
|
1263
|
-
export const getReviewPolicyRunReportToolInputSchema = {
|
|
1264
|
-
additionalProperties: false,
|
|
1265
|
-
properties: {
|
|
1266
|
-
base_url: BASE_URL_PROPERTY,
|
|
1267
|
-
policy_id: POLICY_ID_PROPERTY,
|
|
1268
|
-
run_id: RUN_ID_PROPERTY,
|
|
1269
|
-
severity: REVIEW_FINDING_SEVERITY_ARRAY_PROPERTY,
|
|
1270
|
-
order: ORDER_PROPERTY,
|
|
1271
|
-
limit: REVIEW_POLICY_RUN_FINDINGS_LIMIT_PROPERTY,
|
|
1272
|
-
offset: OFFSET_PROPERTY,
|
|
1273
|
-
},
|
|
1274
|
-
required: ["base_url", "policy_id", "run_id"],
|
|
1275
|
-
type: "object",
|
|
1276
|
-
};
|
|
1277
|
-
export const getApplicationPolicyRunFindingsToolInputSchema = {
|
|
1278
|
-
additionalProperties: false,
|
|
1279
|
-
properties: {
|
|
1280
|
-
base_url: BASE_URL_PROPERTY,
|
|
1281
|
-
application_id: APPLICATION_ID_PROPERTY,
|
|
1282
|
-
run_id: RUN_ID_PROPERTY,
|
|
1283
|
-
policy_id: POLICY_ID_PROPERTY,
|
|
1284
|
-
severity: REVIEW_FINDING_SEVERITY_ARRAY_PROPERTY,
|
|
1285
|
-
order: ORDER_PROPERTY,
|
|
1286
|
-
limit: REVIEW_POLICY_RUN_FINDINGS_LIMIT_PROPERTY,
|
|
1287
|
-
offset: OFFSET_PROPERTY,
|
|
1288
|
-
},
|
|
1289
|
-
required: ["base_url", "application_id", "run_id", "policy_id"],
|
|
1290
|
-
type: "object",
|
|
1291
|
-
};
|
|
1292
|
-
export const getApplicationPublishReadinessToolInputSchema = {
|
|
1293
|
-
additionalProperties: false,
|
|
1294
|
-
properties: {
|
|
1295
|
-
base_url: BASE_URL_PROPERTY,
|
|
1296
|
-
application_id: APPLICATION_ID_PROPERTY,
|
|
1297
|
-
commit_id: {
|
|
1298
|
-
description: "The application commit ID to check readiness for.",
|
|
1299
|
-
minLength: 1,
|
|
1300
|
-
type: "string",
|
|
1301
|
-
},
|
|
1302
|
-
},
|
|
1303
|
-
required: ["base_url", "application_id", "commit_id"],
|
|
1304
|
-
type: "object",
|
|
1305
|
-
};
|
|
1306
|
-
export const getApplicationPublishPipelineToolInputSchema = {
|
|
1307
|
-
additionalProperties: false,
|
|
1308
|
-
properties: {
|
|
1309
|
-
base_url: BASE_URL_PROPERTY,
|
|
1310
|
-
application_id: APPLICATION_ID_PROPERTY,
|
|
1311
|
-
commit_id: {
|
|
1312
|
-
description: "The application commit ID to compute the publish plan for.",
|
|
1313
|
-
minLength: 1,
|
|
1314
|
-
type: "string",
|
|
1315
|
-
},
|
|
1316
|
-
},
|
|
1317
|
-
required: ["base_url", "application_id", "commit_id"],
|
|
1318
|
-
type: "object",
|
|
1319
|
-
};
|
|
1320
1015
|
//# sourceMappingURL=schemas.js.map
|