@crvouga/mockingbird-service-aws-secrets 1.8.0 → 2.0.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/dist/cli.js CHANGED
@@ -3,8 +3,8 @@ import {
3
3
  runCli,
4
4
  serveCommand,
5
5
  serveTarget
6
- } from "./chunk-X7BC6ZMN.js";
7
- import "./chunk-3XPLOCZB.js";
6
+ } from "./chunk-Q6YFMIYD.js";
7
+ import "./chunk-XQ45L6Q4.js";
8
8
 
9
9
  // src/cli.ts
10
10
  var code = await runCli(
package/dist/index.d.ts CHANGED
@@ -896,6 +896,7 @@ type AwsSecretsRuntimeOptions = {
896
896
  sqlite?: SqliteClient;
897
897
  clock?: Clock;
898
898
  seed?: number | string;
899
+ adminPrefix?: string;
899
900
  adminKey?: string;
900
901
  onLog?: (entry: RequestLog) => void;
901
902
  region?: string;
package/dist/index.js CHANGED
@@ -7,7 +7,7 @@ import {
7
7
  document,
8
8
  operationIds,
9
9
  supportedOperationIds
10
- } from "./chunk-3XPLOCZB.js";
10
+ } from "./chunk-XQ45L6Q4.js";
11
11
  export {
12
12
  AWS_SECRETS_NAMESPACE,
13
13
  AWS_SECRETS_PRESETS,
package/dist/server.d.ts CHANGED
@@ -592,6 +592,7 @@ type CliOption = {
592
592
  };
593
593
  type CliValues = Record<string, string | boolean | undefined>;
594
594
  type CommonServeOptions = {
595
+ adminPrefix?: string;
595
596
  adminKey: string | undefined;
596
597
  seed: string | undefined;
597
598
  onLog: ((entry: RequestLog$1) => void) | undefined;
@@ -1375,6 +1376,7 @@ type AwsSecretsRuntimeOptions = {
1375
1376
  sqlite?: SqliteClient;
1376
1377
  clock?: Clock;
1377
1378
  seed?: number | string;
1379
+ adminPrefix?: string;
1378
1380
  adminKey?: string;
1379
1381
  onLog?: (entry: RequestLog) => void;
1380
1382
  region?: string;
package/dist/server.js CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  DEFAULT_PORT,
3
3
  createServer,
4
4
  serveTarget
5
- } from "./chunk-X7BC6ZMN.js";
6
- import "./chunk-3XPLOCZB.js";
5
+ } from "./chunk-Q6YFMIYD.js";
6
+ import "./chunk-XQ45L6Q4.js";
7
7
  export {
8
8
  DEFAULT_PORT,
9
9
  createServer,
package/openapi.yaml ADDED
@@ -0,0 +1,22 @@
1
+ openapi: 3.1.0
2
+ info:
3
+ title: AWS Secrets Manager and SSM Parameter Store (Mockingbird subset)
4
+ version: "2017-10-17"
5
+ description: AWS JSON contracts used by the pinned Secrets Manager and SSM clients.
6
+ servers:
7
+ - url: https://secretsmanager.us-east-1.amazonaws.com
8
+ paths:
9
+ /:
10
+ post:
11
+ operationId: AwsSecretsRpc
12
+ x-mockingbird: { supported: true, parity: { enabled: true, safe: false } }
13
+ parameters:
14
+ - { name: X-Amz-Target, in: header, required: true, schema: { type: string } }
15
+ requestBody:
16
+ required: true
17
+ content:
18
+ application/x-amz-json-1.1: { schema: { type: object, additionalProperties: true } }
19
+ application/json: { schema: { type: object, additionalProperties: true } }
20
+ responses:
21
+ "200": { description: Operation response, content: { application/x-amz-json-1.1: { schema: { type: object, additionalProperties: true } } } }
22
+ "400": { description: AWS exception, content: { application/x-amz-json-1.1: { schema: { type: object, additionalProperties: true } } } }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/mockingbird-service-aws-secrets",
3
- "version": "1.8.0",
3
+ "version": "2.0.0",
4
4
  "description": "Stateful AWS Secrets Manager and SSM Parameter Store mock with versions, stages, rotation, and redacted controls.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -8,7 +8,10 @@
8
8
  "files": [
9
9
  "dist",
10
10
  "README.md",
11
- "CHANGELOG.md"
11
+ "CHANGELOG.md",
12
+ "DISCOVERY.md",
13
+ "SUPPORT.md",
14
+ "openapi.yaml"
12
15
  ],
13
16
  "main": "./dist/index.js",
14
17
  "types": "./dist/index.d.ts",
@@ -57,7 +60,29 @@
57
60
  "docs": "https://docs.aws.amazon.com/secretsmanager/latest/apireference/"
58
61
  },
59
62
  "parity": "Secrets Manager and Parameter Store",
60
- "parityTier": "cold"
63
+ "parityTier": "cold",
64
+ "discovery": {
65
+ "guide": "DISCOVERY.md",
66
+ "behavior": "README.md",
67
+ "capabilities": "SUPPORT.md",
68
+ "contract": "openapi.yaml",
69
+ "types": "dist/index.d.ts",
70
+ "oracle": {
71
+ "kind": "Live vendor API or sandbox",
72
+ "command": "bun run parity:service -- aws-secrets",
73
+ "note": "Run from a Mockingbird checkout; credentials come only from .env.local or GitHub Actions secrets. Missing credentials exit 2."
74
+ },
75
+ "introspection": [
76
+ "GET /__admin/health",
77
+ "GET /__admin",
78
+ "GET /__admin/state",
79
+ "GET /__admin/requests",
80
+ "GET /__admin/metrics",
81
+ "GET /__admin/faults/presets",
82
+ "GET /__admin/ui"
83
+ ],
84
+ "reporting": "https://github.com/crvouga/mockingbird/blob/main/docs/REPORTING_ISSUES.md"
85
+ }
61
86
  },
62
87
  "scripts": {
63
88
  "generate": "bun ../../openapi/codegen/dist/cli.js",
@@ -72,7 +97,7 @@
72
97
  "pack:check": "bun ../../../scripts/pack-check.ts"
73
98
  },
74
99
  "dependencies": {
75
- "@crvouga/mockingbird-service-sqlite": "1.3.0"
100
+ "@crvouga/mockingbird-service-sqlite": "2.0.0"
76
101
  },
77
102
  "devDependencies": {
78
103
  "@aws-sdk/client-secrets-manager": "3.1132.0",