@aws/nx-plugin-mcp 0.96.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/LICENSE +175 -0
- package/README.md +22 -0
- package/bin/aws-nx-mcp.cjs +20437 -0
- package/generators.json +246 -0
- package/package.json +18 -0
- package/src/connection/schema.json +33 -0
- package/src/infra/app/schema.json +38 -0
- package/src/license/schema.json +23 -0
- package/src/license/sync/schema.json +9 -0
- package/src/open-api/ts-client/schema.json +20 -0
- package/src/open-api/ts-hooks/schema.json +20 -0
- package/src/open-api/ts-metadata/schema.json +20 -0
- package/src/preset/schema.json +22 -0
- package/src/py/fast-api/react/schema.json +26 -0
- package/src/py/fast-api/schema.json +82 -0
- package/src/py/lambda-function/schema.json +88 -0
- package/src/py/mcp-server/schema.json +49 -0
- package/src/py/project/schema.json +42 -0
- package/src/py/strands-agent/mcp-connection/schema.json +26 -0
- package/src/py/strands-agent/react-connection/schema.json +26 -0
- package/src/py/strands-agent/schema.json +49 -0
- package/src/smithy/project/schema.json +42 -0
- package/src/smithy/react-connection/schema.json +26 -0
- package/src/smithy/ts/api/schema.json +83 -0
- package/src/terraform/project/schema.json +40 -0
- package/src/trpc/backend/schema.json +77 -0
- package/src/trpc/react/schema.json +25 -0
- package/src/ts/lambda-function/schema.json +90 -0
- package/src/ts/lib/schema.json +32 -0
- package/src/ts/mcp-server/schema.json +49 -0
- package/src/ts/nx-generator/schema.json +38 -0
- package/src/ts/nx-plugin/schema.json +32 -0
- package/src/ts/react-website/app/schema.json +89 -0
- package/src/ts/react-website/cognito-auth/schema.json +50 -0
- package/src/ts/react-website/runtime-config/schema.json +19 -0
- package/src/ts/strands-agent/mcp-connection/schema.json +26 -0
- package/src/ts/strands-agent/react-connection/schema.json +26 -0
- package/src/ts/strands-agent/schema.json +49 -0
- package/src/ts/sync/schema.json +8 -0
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "py#mcp-server",
|
|
4
|
+
"title": "py#mcp-server",
|
|
5
|
+
"description": "Generate a Python Model Context Protocol (MCP) server for providing context to Large Language Models",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"project": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The project to add an MCP server to",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "argv",
|
|
13
|
+
"index": 0
|
|
14
|
+
},
|
|
15
|
+
"x-prompt": "Select the Python project to add the MCP server to",
|
|
16
|
+
"x-dropdown": "projects"
|
|
17
|
+
},
|
|
18
|
+
"computeType": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The type of compute to host your MCP server. Select None for no hosting.",
|
|
21
|
+
"x-prompt": "How would you like to host your MCP server?",
|
|
22
|
+
"enum": ["BedrockAgentCoreRuntime", "None"],
|
|
23
|
+
"default": "BedrockAgentCoreRuntime",
|
|
24
|
+
"x-priority": "important"
|
|
25
|
+
},
|
|
26
|
+
"name": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "The name of your MCP server (default: mcp-server)",
|
|
29
|
+
"x-prompt": "What would you like to call your MCP server? (default: mcp-server)"
|
|
30
|
+
},
|
|
31
|
+
"auth": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "The method used to authenticate with your MCP server. Choose between IAM (default) or Cognito.",
|
|
34
|
+
"default": "IAM",
|
|
35
|
+
"enum": ["IAM", "Cognito"],
|
|
36
|
+
"x-prompt": "How would you like to authenticate with your MCP server?",
|
|
37
|
+
"x-priority": "important"
|
|
38
|
+
},
|
|
39
|
+
"iacProvider": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
42
|
+
"enum": ["Inherit", "CDK", "Terraform"],
|
|
43
|
+
"x-priority": "important",
|
|
44
|
+
"default": "Inherit",
|
|
45
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: Inherit)"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": ["project"]
|
|
49
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "PyLib",
|
|
4
|
+
"title": "Create a Python project",
|
|
5
|
+
"description": "Create a Python project.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"name": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The name of the Python project",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "argv",
|
|
13
|
+
"index": 0
|
|
14
|
+
},
|
|
15
|
+
"x-prompt": "What would you like to call your Python project?",
|
|
16
|
+
"x-priority": "important"
|
|
17
|
+
},
|
|
18
|
+
"directory": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Parent directory where the project is placed.",
|
|
21
|
+
"default": "packages",
|
|
22
|
+
"x-prompt": "Which directory do you want to create the project in?",
|
|
23
|
+
"x-priority": "important"
|
|
24
|
+
},
|
|
25
|
+
"subDirectory": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "The sub directory the project is placed in. By default this is the project name.",
|
|
28
|
+
"x-prompt": "Which sub directory do you want to create the project in? (By default this is the project name)"
|
|
29
|
+
},
|
|
30
|
+
"projectType": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Whether the project is an application or library",
|
|
33
|
+
"default": "application",
|
|
34
|
+
"enum": ["application", "library"]
|
|
35
|
+
},
|
|
36
|
+
"moduleName": {
|
|
37
|
+
"type": "string",
|
|
38
|
+
"description": "Python module name"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": ["name", "projectType"]
|
|
42
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "py#strands-agent#mcp-connection",
|
|
4
|
+
"title": "py#strands-agent#mcp-connection",
|
|
5
|
+
"description": "Connect a Python Strands Agent to an MCP server",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"sourceProject": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The project containing the Strands Agent"
|
|
11
|
+
},
|
|
12
|
+
"targetProject": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "The project containing the MCP server"
|
|
15
|
+
},
|
|
16
|
+
"sourceComponent": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The agent component name"
|
|
19
|
+
},
|
|
20
|
+
"targetComponent": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "The MCP server component name"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": ["sourceProject", "targetProject"]
|
|
26
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "py#strands-agent#react-connection",
|
|
4
|
+
"title": "py#strands-agent#react-connection",
|
|
5
|
+
"description": "Connect a React website to a Python Strands Agent",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"sourceProject": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The React website project"
|
|
11
|
+
},
|
|
12
|
+
"targetProject": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"description": "The project containing the Python Strands Agent"
|
|
15
|
+
},
|
|
16
|
+
"sourceComponent": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The website component name"
|
|
19
|
+
},
|
|
20
|
+
"targetComponent": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "The agent component name"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": ["sourceProject", "targetProject"]
|
|
26
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "py#strands-agent",
|
|
4
|
+
"title": "py#strands-agent",
|
|
5
|
+
"description": "Add a Strands Agent to a Python project",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"project": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The project to add the Strands Agent to",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "argv",
|
|
13
|
+
"index": 0
|
|
14
|
+
},
|
|
15
|
+
"x-prompt": "Select the Python project to add the Strands Agent to",
|
|
16
|
+
"x-dropdown": "projects"
|
|
17
|
+
},
|
|
18
|
+
"computeType": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The type of compute to host your Strands Agent.",
|
|
21
|
+
"x-prompt": "How would you like to host your Strands Agent server?",
|
|
22
|
+
"enum": ["BedrockAgentCoreRuntime", "None"],
|
|
23
|
+
"default": "BedrockAgentCoreRuntime",
|
|
24
|
+
"x-priority": "important"
|
|
25
|
+
},
|
|
26
|
+
"name": {
|
|
27
|
+
"type": "string",
|
|
28
|
+
"description": "The name of your Strands Agent (default: agent)",
|
|
29
|
+
"x-prompt": "What would you like to call your Strands Agent? (default: agent)"
|
|
30
|
+
},
|
|
31
|
+
"auth": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "The method used to authenticate with your Strands Agent. Choose between IAM (default) or Cognito.",
|
|
34
|
+
"default": "IAM",
|
|
35
|
+
"enum": ["IAM", "Cognito"],
|
|
36
|
+
"x-prompt": "How would you like to authenticate with your Strands Agent?",
|
|
37
|
+
"x-priority": "important"
|
|
38
|
+
},
|
|
39
|
+
"iacProvider": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
42
|
+
"enum": ["Inherit", "CDK", "Terraform"],
|
|
43
|
+
"x-priority": "important",
|
|
44
|
+
"default": "Inherit",
|
|
45
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: Inherit)"
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
"required": ["project"]
|
|
49
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "smithy#project",
|
|
4
|
+
"title": "smithy#project",
|
|
5
|
+
"description": "Generate a Smithy model project",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"name": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "Smithy project name",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "argv",
|
|
13
|
+
"index": 0
|
|
14
|
+
},
|
|
15
|
+
"x-priority": "important",
|
|
16
|
+
"x-prompt": "What would you like to call your Smithy project?"
|
|
17
|
+
},
|
|
18
|
+
"serviceName": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "The name of your Smithy service. Uses the supplied name by default.",
|
|
21
|
+
"x-prompt": "What name would you like your Smithy Service to have? i.e: MyService"
|
|
22
|
+
},
|
|
23
|
+
"namespace": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "The namespace for the Smithy API. Defaults to your monorepo scope",
|
|
26
|
+
"x-prompt": "What namespace would you like your API to have? i.e: com.example"
|
|
27
|
+
},
|
|
28
|
+
"directory": {
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "Parent directory where the Smithy project is placed.",
|
|
31
|
+
"default": "packages",
|
|
32
|
+
"x-prompt": "Which directory do you want to create the Smithy project in?",
|
|
33
|
+
"x-priority": "important"
|
|
34
|
+
},
|
|
35
|
+
"subDirectory": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "The sub directory the Smithy project is placed in. By default this is the project name.",
|
|
38
|
+
"x-prompt": "Which sub directory do you want to create the Smithy project in? (By default this is the project name)"
|
|
39
|
+
}
|
|
40
|
+
},
|
|
41
|
+
"required": ["name"]
|
|
42
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "smithy#react-connection",
|
|
4
|
+
"title": "smithy#react-connection",
|
|
5
|
+
"description": "Connects a react website to a Smithy API",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"frontendProjectName": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "argv",
|
|
13
|
+
"index": 0
|
|
14
|
+
},
|
|
15
|
+
"x-prompt": "React application's project name.",
|
|
16
|
+
"x-dropdown": "projects"
|
|
17
|
+
},
|
|
18
|
+
"smithyModelOrBackendProjectName": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "",
|
|
21
|
+
"x-prompt": "Project containing your Smithy API (either model or backend)",
|
|
22
|
+
"x-dropdown": "projects"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": ["frontendProjectName", "smithyModelOrBackendProjectName"]
|
|
26
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "ts#smithy-api",
|
|
4
|
+
"title": "ts#smithy-api",
|
|
5
|
+
"description": "Create an API using Smithy and the Smithy TypeScript Server SDK",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"name": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The name of the API (required). Used to generate class names and file paths.",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "argv",
|
|
13
|
+
"index": 0
|
|
14
|
+
},
|
|
15
|
+
"x-prompt": "What name would you like your API to have? i.e: MyApi"
|
|
16
|
+
},
|
|
17
|
+
"namespace": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "The namespace for the Smithy API. Defaults to your monorepo scope",
|
|
20
|
+
"x-prompt": "What namespace would you like your API to have? i.e: com.example"
|
|
21
|
+
},
|
|
22
|
+
"computeType": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"description": "The type of compute to use to deploy this API.",
|
|
25
|
+
"default": "ServerlessApiGatewayRestApi",
|
|
26
|
+
"enum": ["ServerlessApiGatewayRestApi"],
|
|
27
|
+
"x-prompt": "What compute type would you like to deploy your API with?",
|
|
28
|
+
"x-priority": "internal"
|
|
29
|
+
},
|
|
30
|
+
"integrationPattern": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "How API Gateway integrations are generated for the API. Choose between isolated (default) and shared.",
|
|
33
|
+
"default": "isolated",
|
|
34
|
+
"enum": ["isolated", "shared"],
|
|
35
|
+
"x-priority": "important",
|
|
36
|
+
"x-prompt": {
|
|
37
|
+
"message": "How would you like to map integrations to your Smithy operations?",
|
|
38
|
+
"type": "list",
|
|
39
|
+
"items": [
|
|
40
|
+
{
|
|
41
|
+
"value": "isolated",
|
|
42
|
+
"label": "isolated (one integration per operation)"
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
"value": "shared",
|
|
46
|
+
"label": "shared (single default integration with optional overrides)"
|
|
47
|
+
}
|
|
48
|
+
],
|
|
49
|
+
"default": "isolated"
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"auth": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "The method used to authenticate with your API. Choose between IAM (default), Cognito or None.",
|
|
55
|
+
"default": "IAM",
|
|
56
|
+
"enum": ["IAM", "Cognito", "None"],
|
|
57
|
+
"x-prompt": "How would you like users to authenticate with your API?",
|
|
58
|
+
"x-priority": "important"
|
|
59
|
+
},
|
|
60
|
+
"directory": {
|
|
61
|
+
"description": "The directory to store the application in.",
|
|
62
|
+
"type": "string",
|
|
63
|
+
"alias": "dir",
|
|
64
|
+
"x-priority": "important",
|
|
65
|
+
"default": "packages",
|
|
66
|
+
"x-prompt": "What directory would you like to store your application in?"
|
|
67
|
+
},
|
|
68
|
+
"subDirectory": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"description": "The sub directory the project is placed in. By default this is the project name.",
|
|
71
|
+
"x-prompt": "Which sub directory do you want to create the project in? (By default this is the project name)"
|
|
72
|
+
},
|
|
73
|
+
"iacProvider": {
|
|
74
|
+
"type": "string",
|
|
75
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
76
|
+
"enum": ["Inherit", "CDK", "Terraform"],
|
|
77
|
+
"x-priority": "important",
|
|
78
|
+
"default": "Inherit",
|
|
79
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: Inherit)"
|
|
80
|
+
}
|
|
81
|
+
},
|
|
82
|
+
"required": ["name"]
|
|
83
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "Terraform",
|
|
4
|
+
"title": "",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"description": "The name of the project.",
|
|
9
|
+
"type": "string",
|
|
10
|
+
"$default": {
|
|
11
|
+
"$source": "argv",
|
|
12
|
+
"index": 0
|
|
13
|
+
},
|
|
14
|
+
"x-prompt": "What name would you like to use for the project?",
|
|
15
|
+
"pattern": "^[a-zA-Z][^:]*$"
|
|
16
|
+
},
|
|
17
|
+
"type": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"enum": ["application", "library"],
|
|
20
|
+
"x-priority": "important",
|
|
21
|
+
"x-prompt": "What type of Terraform project is this?",
|
|
22
|
+
"description": "Whether this is a terraform lib (re-usable modules) or app (deployable).",
|
|
23
|
+
"default": "application"
|
|
24
|
+
},
|
|
25
|
+
"directory": {
|
|
26
|
+
"description": "The directory of the new project.",
|
|
27
|
+
"type": "string",
|
|
28
|
+
"alias": "dir",
|
|
29
|
+
"x-priority": "important",
|
|
30
|
+
"default": "packages",
|
|
31
|
+
"x-prompt": "What directory would you like to store your project in?"
|
|
32
|
+
},
|
|
33
|
+
"subDirectory": {
|
|
34
|
+
"type": "string",
|
|
35
|
+
"description": "The sub directory the project is placed in. By default this is the project name.",
|
|
36
|
+
"x-prompt": "Which sub directory do you want to create the project in? (By default this is the project name)"
|
|
37
|
+
}
|
|
38
|
+
},
|
|
39
|
+
"required": ["name"]
|
|
40
|
+
}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "TrpcBackend",
|
|
4
|
+
"title": "",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The name of the API (required). Used to generate class names and file paths.",
|
|
10
|
+
"$default": {
|
|
11
|
+
"$source": "argv",
|
|
12
|
+
"index": 0
|
|
13
|
+
},
|
|
14
|
+
"x-prompt": "What name would you like your API to have? i.e: MyApi"
|
|
15
|
+
},
|
|
16
|
+
"computeType": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "The type of compute to use to deploy this API. Choose between ServerlessApiGatewayRestApi (default) or ServerlessApiGatewayHttpApi.",
|
|
19
|
+
"default": "ServerlessApiGatewayRestApi",
|
|
20
|
+
"enum": ["ServerlessApiGatewayRestApi", "ServerlessApiGatewayHttpApi"],
|
|
21
|
+
"x-prompt": "What compute type would you like to deploy your API with?",
|
|
22
|
+
"x-priority": "important"
|
|
23
|
+
},
|
|
24
|
+
"integrationPattern": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "How API Gateway integrations are generated for the API. Choose between isolated (default) and shared.",
|
|
27
|
+
"default": "isolated",
|
|
28
|
+
"enum": ["isolated", "shared"],
|
|
29
|
+
"x-priority": "important",
|
|
30
|
+
"x-prompt": {
|
|
31
|
+
"message": "How would you like to map integrations to your tRPC procedures?",
|
|
32
|
+
"type": "list",
|
|
33
|
+
"items": [
|
|
34
|
+
{
|
|
35
|
+
"value": "isolated",
|
|
36
|
+
"label": "isolated (one integration per procedure)"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"value": "shared",
|
|
40
|
+
"label": "shared (single default integration with optional overrides)"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"default": "isolated"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"auth": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "The method used to authenticate with your API. Choose between IAM (default), Cognito or None.",
|
|
49
|
+
"default": "IAM",
|
|
50
|
+
"enum": ["IAM", "Cognito", "None"],
|
|
51
|
+
"x-prompt": "How would you like users to authenticate with your API?",
|
|
52
|
+
"x-priority": "important"
|
|
53
|
+
},
|
|
54
|
+
"directory": {
|
|
55
|
+
"description": "The directory to store the application in.",
|
|
56
|
+
"type": "string",
|
|
57
|
+
"alias": "dir",
|
|
58
|
+
"x-priority": "important",
|
|
59
|
+
"default": "packages",
|
|
60
|
+
"x-prompt": "What directory would you like to store your application in?"
|
|
61
|
+
},
|
|
62
|
+
"subDirectory": {
|
|
63
|
+
"type": "string",
|
|
64
|
+
"description": "The sub directory the project is placed in. By default this is the project name.",
|
|
65
|
+
"x-prompt": "Which sub directory do you want to create the project in? (By default this is the project name)"
|
|
66
|
+
},
|
|
67
|
+
"iacProvider": {
|
|
68
|
+
"type": "string",
|
|
69
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
70
|
+
"enum": ["Inherit", "CDK", "Terraform"],
|
|
71
|
+
"x-priority": "important",
|
|
72
|
+
"default": "Inherit",
|
|
73
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: Inherit)"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"required": ["name"]
|
|
77
|
+
}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "React",
|
|
4
|
+
"title": "",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"frontendProjectName": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "",
|
|
10
|
+
"$default": {
|
|
11
|
+
"$source": "argv",
|
|
12
|
+
"index": 0
|
|
13
|
+
},
|
|
14
|
+
"x-prompt": "React application's project name.",
|
|
15
|
+
"x-dropdown": "projects"
|
|
16
|
+
},
|
|
17
|
+
"backendProjectName": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "",
|
|
20
|
+
"x-prompt": "Package containing your Api Backend.",
|
|
21
|
+
"x-dropdown": "projects"
|
|
22
|
+
}
|
|
23
|
+
},
|
|
24
|
+
"required": ["frontendProjectName", "backendProjectName"]
|
|
25
|
+
}
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "ts#lambda-function",
|
|
4
|
+
"title": "Add a TypeScript Lambda Function to a project",
|
|
5
|
+
"description": "Add a TypeScript Lambda Function to a project",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"project": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "The project to add the lambda function to",
|
|
11
|
+
"x-prompt": "Select the project to add the lambda function to",
|
|
12
|
+
"x-dropdown": "projects"
|
|
13
|
+
},
|
|
14
|
+
"functionName": {
|
|
15
|
+
"type": "string",
|
|
16
|
+
"description": "The name of the function to add",
|
|
17
|
+
"$default": {
|
|
18
|
+
"$source": "argv",
|
|
19
|
+
"index": 0
|
|
20
|
+
},
|
|
21
|
+
"x-priority": "important",
|
|
22
|
+
"x-prompt": "What name would you like your Lambda Function to have? i.e: MyFunction"
|
|
23
|
+
},
|
|
24
|
+
"functionPath": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Optional subdirectory within the project source directory to add the function to",
|
|
27
|
+
"x-prompt": "Enter the path within the project source directory to add the function to (e.g. 'lambda-functions/')"
|
|
28
|
+
},
|
|
29
|
+
"eventSource": {
|
|
30
|
+
"type": "string",
|
|
31
|
+
"description": "Optional event source schema to use for the lambda function",
|
|
32
|
+
"x-priority": "important",
|
|
33
|
+
"enum": [
|
|
34
|
+
"Any",
|
|
35
|
+
"AlbSchema",
|
|
36
|
+
"APIGatewayProxyEventSchema",
|
|
37
|
+
"APIGatewayRequestAuthorizerEventSchema",
|
|
38
|
+
"APIGatewayTokenAuthorizerEventSchema",
|
|
39
|
+
"APIGatewayProxyEventV2Schema",
|
|
40
|
+
"APIGatewayProxyWebsocketEventSchema",
|
|
41
|
+
"APIGatewayRequestAuthorizerEventV2Schema",
|
|
42
|
+
"CloudFormationCustomResourceCreateSchema",
|
|
43
|
+
"CloudFormationCustomResourceUpdateSchema",
|
|
44
|
+
"CloudFormationCustomResourceDeleteSchema",
|
|
45
|
+
"CloudWatchLogsSchema",
|
|
46
|
+
"PreSignupTriggerSchema",
|
|
47
|
+
"PostConfirmationTriggerSchema",
|
|
48
|
+
"CustomMessageTriggerSchema",
|
|
49
|
+
"MigrateUserTriggerSchema",
|
|
50
|
+
"CustomSMSSenderTriggerSchema",
|
|
51
|
+
"CustomEmailSenderTriggerSchema",
|
|
52
|
+
"DefineAuthChallengeTriggerSchema",
|
|
53
|
+
"CreateAuthChallengeTriggerSchema",
|
|
54
|
+
"VerifyAuthChallengeTriggerSchema",
|
|
55
|
+
"PreTokenGenerationTriggerSchemaV1",
|
|
56
|
+
"PreTokenGenerationTriggerSchemaV2AndV3",
|
|
57
|
+
"DynamoDBStreamSchema",
|
|
58
|
+
"EventBridgeSchema",
|
|
59
|
+
"KafkaMskEventSchema",
|
|
60
|
+
"KafkaSelfManagedEventSchema",
|
|
61
|
+
"KinesisDataStreamSchema",
|
|
62
|
+
"KinesisFirehoseSchema",
|
|
63
|
+
"KinesisDynamoDBStreamSchema",
|
|
64
|
+
"KinesisFirehoseSqsSchema",
|
|
65
|
+
"LambdaFunctionUrlSchema",
|
|
66
|
+
"S3EventNotificationEventBridgeSchema",
|
|
67
|
+
"S3Schema",
|
|
68
|
+
"S3ObjectLambdaEventSchema",
|
|
69
|
+
"S3SqsEventNotificationSchema",
|
|
70
|
+
"SesSchema",
|
|
71
|
+
"SnsSchema",
|
|
72
|
+
"SqsSchema",
|
|
73
|
+
"TransferFamilySchema",
|
|
74
|
+
"VpcLatticeSchema",
|
|
75
|
+
"VpcLatticeV2Schema"
|
|
76
|
+
],
|
|
77
|
+
"default": "Any",
|
|
78
|
+
"x-prompt": "Enter the event source schema to use for the lambda function"
|
|
79
|
+
},
|
|
80
|
+
"iacProvider": {
|
|
81
|
+
"type": "string",
|
|
82
|
+
"description": "The preferred IaC provider. By default this is inherited from your initial selection.",
|
|
83
|
+
"enum": ["Inherit", "CDK", "Terraform"],
|
|
84
|
+
"x-priority": "important",
|
|
85
|
+
"default": "Inherit",
|
|
86
|
+
"x-prompt": "Which provider would you like to manage your infrastructure? (default: Inherit)"
|
|
87
|
+
}
|
|
88
|
+
},
|
|
89
|
+
"required": ["project", "functionName"]
|
|
90
|
+
}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/schema",
|
|
3
|
+
"$id": "TsLib",
|
|
4
|
+
"title": "Create a TypeScript Library",
|
|
5
|
+
"description": "Create a TypeScript Library.",
|
|
6
|
+
"type": "object",
|
|
7
|
+
"properties": {
|
|
8
|
+
"name": {
|
|
9
|
+
"type": "string",
|
|
10
|
+
"description": "TypeScript project name",
|
|
11
|
+
"$default": {
|
|
12
|
+
"$source": "argv",
|
|
13
|
+
"index": 0
|
|
14
|
+
},
|
|
15
|
+
"x-priority": "important",
|
|
16
|
+
"x-prompt": "What would you like to call your TypeScript project?"
|
|
17
|
+
},
|
|
18
|
+
"directory": {
|
|
19
|
+
"type": "string",
|
|
20
|
+
"description": "Parent directory where the library is placed.",
|
|
21
|
+
"default": "packages",
|
|
22
|
+
"x-prompt": "Which directory do you want to create the library in?",
|
|
23
|
+
"x-priority": "important"
|
|
24
|
+
},
|
|
25
|
+
"subDirectory": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "The sub directory the lib is placed in. By default this is the library name.",
|
|
28
|
+
"x-prompt": "Which sub directory do you want to create the library in? (By default this is the library name)"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": ["name"]
|
|
32
|
+
}
|