@emulates/apigateway 0.1.1

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/dist/server.js ADDED
@@ -0,0 +1,12 @@
1
+ import {
2
+ DEFAULT_PORT,
3
+ createServer,
4
+ serveTarget
5
+ } from "./chunk-F5QQWZG3.js";
6
+ import "./chunk-ELOKOD66.js";
7
+ export {
8
+ DEFAULT_PORT,
9
+ createServer,
10
+ serveTarget
11
+ };
12
+ //# sourceMappingURL=server.js.map
@@ -0,0 +1,7 @@
1
+ {
2
+ "version": 3,
3
+ "sources": [],
4
+ "sourcesContent": [],
5
+ "mappings": "",
6
+ "names": []
7
+ }
package/openapi.yaml ADDED
@@ -0,0 +1,40 @@
1
+ openapi: 3.1.0
2
+ info:
3
+ title: Amazon API Gateway REST API (Emulates subset)
4
+ version: "1.0.0"
5
+ description: AWS protocol transport; README lists the implemented AWS operations.
6
+ servers:
7
+ - url: https://apigateway.us-east-1.amazonaws.com
8
+ paths:
9
+ /:
10
+ post:
11
+ operationId: AwsRpc
12
+ x-emulates: { supported: false, reason: Vendor operations are not implemented in this scaffold., parity: { enabled: false, reason: Use the stateful LocalStack scenario runner. } }
13
+ responses: { "200": { description: AWS protocol response }, "400": { description: AWS protocol error } }
14
+ get:
15
+ operationId: AwsQuery
16
+ x-emulates: { supported: false, reason: Vendor operations are not implemented in this scaffold., parity: { enabled: false, reason: Use the stateful LocalStack scenario runner. } }
17
+ responses: { "200": { description: AWS query response } }
18
+ /{path}:
19
+ parameters:
20
+ - { name: path, in: path, required: true, schema: { type: string } }
21
+ get:
22
+ operationId: AwsRestGet
23
+ x-emulates: { supported: false, reason: Vendor operations are not implemented in this scaffold., parity: { enabled: false, reason: Use the stateful LocalStack scenario runner. } }
24
+ responses: { "200": { description: AWS REST response } }
25
+ put:
26
+ operationId: AwsRestPut
27
+ x-emulates: { supported: false, reason: Vendor operations are not implemented in this scaffold., parity: { enabled: false, reason: Use the stateful LocalStack scenario runner. } }
28
+ responses: { "200": { description: AWS REST response } }
29
+ post:
30
+ operationId: AwsRestPost
31
+ x-emulates: { supported: false, reason: Vendor operations are not implemented in this scaffold., parity: { enabled: false, reason: Use the stateful LocalStack scenario runner. } }
32
+ responses: { "200": { description: AWS REST response } }
33
+ patch:
34
+ operationId: AwsRestPatch
35
+ x-emulates: { supported: false, reason: Vendor operations are not implemented in this scaffold., parity: { enabled: false, reason: Use the stateful LocalStack scenario runner. } }
36
+ responses: { "200": { description: AWS REST response } }
37
+ delete:
38
+ operationId: AwsRestDelete
39
+ x-emulates: { supported: false, reason: Vendor operations are not implemented in this scaffold., parity: { enabled: false, reason: Use the stateful LocalStack scenario runner. } }
40
+ responses: { "200": { description: AWS REST response } }
package/package.json ADDED
@@ -0,0 +1,149 @@
1
+ {
2
+ "name": "@emulates/apigateway",
3
+ "version": "0.1.1",
4
+ "description": "Work-in-progress Amazon API Gateway REST API transport scaffold; vendor operations are not implemented.",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "sideEffects": false,
8
+ "files": [
9
+ "dist",
10
+ "README.md",
11
+ "CHANGELOG.md",
12
+ "DISCOVERY.md",
13
+ "SUPPORT.md",
14
+ "openapi.yaml"
15
+ ],
16
+ "main": "./dist/index.js",
17
+ "types": "./dist/index.d.ts",
18
+ "exports": {
19
+ ".": {
20
+ "types": "./dist/index.d.ts",
21
+ "default": "./dist/index.js"
22
+ },
23
+ "./server": {
24
+ "types": "./dist/server.d.ts",
25
+ "default": "./dist/server.js"
26
+ }
27
+ },
28
+ "bin": {
29
+ "emulates-apigateway": "./dist/cli.js"
30
+ },
31
+ "publishConfig": {
32
+ "access": "public",
33
+ "provenance": true
34
+ },
35
+ "repository": {
36
+ "type": "git",
37
+ "url": "git+https://github.com/crvouga/emulators.git",
38
+ "directory": "packages/service/apigateway"
39
+ },
40
+ "homepage": "https://github.com/crvouga/emulators/tree/main/packages/service/apigateway#readme",
41
+ "keywords": [
42
+ "emulates",
43
+ "aws",
44
+ "apigateway",
45
+ "emulator"
46
+ ],
47
+ "emulates": {
48
+ "runtime": "portable",
49
+ "entries": {
50
+ "server": "node",
51
+ "cli": "node"
52
+ },
53
+ "layer": "service",
54
+ "category": "infrastructure",
55
+ "displayName": "Amazon API Gateway REST API",
56
+ "vendor": {
57
+ "website": "https://aws.amazon.com/",
58
+ "docs": "https://docs.aws.amazon.com/",
59
+ "name": "Amazon Web Services",
60
+ "icon": false,
61
+ "description": "API Gateway REST API public AWS API.",
62
+ "color": "#FF9900"
63
+ },
64
+ "parity": "Scaffold only; no vendor operations implemented or verified",
65
+ "parityTier": "cold",
66
+ "aws": {
67
+ "localstackService": "apigateway",
68
+ "plannedOperations": [
69
+ "CreateRestApi",
70
+ "GetRestApi",
71
+ "GetRestApis",
72
+ "UpdateRestApi",
73
+ "DeleteRestApi",
74
+ "GetResources",
75
+ "CreateResource",
76
+ "GetResource",
77
+ "DeleteResource",
78
+ "PutMethod",
79
+ "GetMethod",
80
+ "DeleteMethod",
81
+ "PutIntegration",
82
+ "GetIntegration",
83
+ "DeleteIntegration",
84
+ "CreateDeployment",
85
+ "GetDeployments",
86
+ "CreateStage",
87
+ "GetStage",
88
+ "GetStages",
89
+ "DeleteStage",
90
+ "CreateApiKey",
91
+ "GetApiKeys",
92
+ "DeleteApiKey",
93
+ "CreateUsagePlan",
94
+ "GetUsagePlans",
95
+ "DeleteUsagePlan"
96
+ ],
97
+ "operations": []
98
+ },
99
+ "discovery": {
100
+ "guide": "DISCOVERY.md",
101
+ "behavior": "README.md",
102
+ "capabilities": "SUPPORT.md",
103
+ "contract": "openapi.yaml",
104
+ "types": "dist/index.d.ts",
105
+ "oracle": {
106
+ "kind": "Live vendor API or sandbox",
107
+ "command": "bun run parity:service -- apigateway",
108
+ "note": "Run from an Emulates checkout; credentials come only from .env.local or GitHub Actions secrets. Missing credentials exit 2."
109
+ },
110
+ "introspection": [
111
+ "GET /__admin/health",
112
+ "GET /__admin",
113
+ "GET /__admin/state",
114
+ "GET /__admin/requests",
115
+ "GET /__admin/metrics",
116
+ "GET /__admin/faults/presets",
117
+ "GET /__admin/ui"
118
+ ],
119
+ "reporting": "https://github.com/crvouga/emulators/blob/main/docs/REPORTING_ISSUES.md"
120
+ }
121
+ },
122
+ "scripts": {
123
+ "generate": "bun ../../openapi/codegen/dist/cli.js",
124
+ "generate:check": "bun ../../openapi/codegen/dist/cli.js --check",
125
+ "openapi:check": "bun ../../openapi/codegen/dist/cli.js --validate",
126
+ "build": "bun ../../../scripts/bundle-service.ts",
127
+ "typecheck": "tsc -p tsconfig.json --noEmit",
128
+ "lint": "biome check .",
129
+ "test": "bun test",
130
+ "parity": "bun scripts/parity.ts",
131
+ "portability": "bun ../../../scripts/portability.ts",
132
+ "pack:check": "bun ../../../scripts/pack-check.ts"
133
+ },
134
+ "dependencies": {
135
+ "@emulates/sqlite": "2.1.2"
136
+ },
137
+ "devDependencies": {
138
+ "@emulates/adapter-node": "0.0.0-development",
139
+ "@emulates/core": "0.0.0-development",
140
+ "@emulates/openapi": "0.0.0-development",
141
+ "@emulates/openapi-codegen": "0.1.0",
142
+ "@emulates/openapi-metadata": "0.0.0-development",
143
+ "@emulates/parity": "0.0.0-development",
144
+ "@emulates/service": "0.0.0-development",
145
+ "@emulates/sqlite-client": "0.0.0-development",
146
+ "@emulates/testing": "0.1.0",
147
+ "fast-check": "4.9.0"
148
+ }
149
+ }