@crvouga/mockingbird-service-aws 0.16.1 → 0.17.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/CHANGELOG.md CHANGED
@@ -1,27 +1,34 @@
1
1
  # Changelog — @crvouga/mockingbird-service-aws
2
2
 
3
- ## 0.16.1 (2026-11-18)
3
+ ## 0.17.0 (2026-11-21)
4
4
 
5
- ### Fixes and improvements
5
+ ### Features
6
6
 
7
- - roll back only the rows a scope wrote instead of copying the namespace ([4b5bf7c](https://github.com/crvouga/mockingbird/commit/4b5bf7ca9902946df6164f0a247ddc8708198b5e))
7
+ - add reusable browser preview packages and emulator integration features ([c87e9b4](https://github.com/crvouga-organization/mockingbird/commit/c87e9b466d2d728c69a6ad35b73fa387726a1a61))
8
8
 
9
9
  ### Dependencies
10
10
 
11
11
  - `@crvouga/mockingbird-runtime`
12
+ - `@crvouga/mockingbird-service-sqlite`
13
+
14
+ ## 0.16.1 (2026-11-18)
15
+
16
+ ### Fixes and improvements
17
+
18
+ - roll back only the rows a scope wrote instead of copying the namespace ([4b5bf7c](https://github.com/crvouga-organization/mockingbird/commit/4b5bf7ca9902946df6164f0a247ddc8708198b5e))
12
19
 
13
20
  ## 0.16.0 (2026-11-16)
14
21
 
15
22
  ### Features
16
23
 
17
- - allow checkpointMutations in a fleet entry's adminControls ([f318660](https://github.com/crvouga/mockingbird/commit/f318660116d4237b520dee31e9c3c730aa66eae2))
18
- - accept checkpointMutations as a boot admin control ([1825da5](https://github.com/crvouga/mockingbird/commit/1825da537184b111df3e7f1081c79cf605fb4d50))
24
+ - allow checkpointMutations in a fleet entry's adminControls ([f318660](https://github.com/crvouga-organization/mockingbird/commit/f318660116d4237b520dee31e9c3c730aa66eae2))
25
+ - accept checkpointMutations as a boot admin control ([1825da5](https://github.com/crvouga-organization/mockingbird/commit/1825da537184b111df3e7f1081c79cf605fb4d50))
19
26
 
20
27
  ## 0.15.0 (2026-11-16)
21
28
 
22
29
  ### Features
23
30
 
24
- - let a runtime skip the checkpoint it records after every write ([40a7387](https://github.com/crvouga/mockingbird/commit/40a7387208ec5f1fc0108859eded818efc3e3b5e))
31
+ - let a runtime skip the checkpoint it records after every write ([40a7387](https://github.com/crvouga-organization/mockingbird/commit/40a7387208ec5f1fc0108859eded818efc3e3b5e))
25
32
 
26
33
  ## 0.14.1 (2026-11-16)
27
34
 
@@ -31,163 +38,161 @@ Dependency updates only.
31
38
 
32
39
  ### Features
33
40
 
34
- - expand in-process emulation and resolve Plane and streaming gaps ([e6733fd](https://github.com/crvouga/mockingbird/commit/e6733fd00f5dd03259f36cc0f452780a7e0deea4))
35
- - add browser runtime polyfills and edge-snapping app cycle ([815b739](https://github.com/crvouga/mockingbird/commit/815b7399f1e058b89b3fa025f79a5014172b3ab8))
36
- - run lab systems in browser PR previews ([df14882](https://github.com/crvouga/mockingbird/commit/df148828ca66db1e20cf9fa2fdf38b56b5116da4))
37
- - publish the shared runtime once; services depend on it instead of inlining it ([4903c4a](https://github.com/crvouga/mockingbird/commit/4903c4a748fd801001ad3fd34b6016b55e0f9953))
41
+ - expand in-process emulation and resolve Plane and streaming gaps ([e6733fd](https://github.com/crvouga-organization/mockingbird/commit/e6733fd00f5dd03259f36cc0f452780a7e0deea4))
42
+ - publish the shared runtime once; services depend on it instead of inlining it ([4903c4a](https://github.com/crvouga-organization/mockingbird/commit/4903c4a748fd801001ad3fd34b6016b55e0f9953))
38
43
 
39
44
  ## 0.13.0 (2026-11-13)
40
45
 
41
46
  ### Features
42
47
 
43
- - add transcript storage, signature and meetings; tags, teams, messages, macros and calls ([ee21e12](https://github.com/crvouga/mockingbird/commit/ee21e12024768bd52c6902b1722fb35a94d2444b))
48
+ - add transcript storage, signature and meetings; tags, teams, messages, macros and calls ([ee21e12](https://github.com/crvouga-organization/mockingbird/commit/ee21e12024768bd52c6902b1722fb35a94d2444b))
44
49
 
45
50
  ## 0.12.0 (2026-11-12)
46
51
 
47
52
  ### Features
48
53
 
49
- - record delivered messages and show them in notifications ([b280c32](https://github.com/crvouga/mockingbird/commit/b280c32ec3e7f22f2c354747ab5193067290c26b))
54
+ - record delivered messages and show them in notifications ([b280c32](https://github.com/crvouga-organization/mockingbird/commit/b280c32ec3e7f22f2c354747ab5193067290c26b))
50
55
 
51
56
  ## 0.11.1 (2026-11-12)
52
57
 
53
58
  ### Fixes and improvements
54
59
 
55
- - serve vendor brand data from each emulator instead of the docs site ([0c72a69](https://github.com/crvouga/mockingbird/commit/0c72a693fc76e612936150598faef9787ad1c824))
56
- - take SIGINT/SIGTERM before readiness is published ([d5a98a0](https://github.com/crvouga/mockingbird/commit/d5a98a09a344e12818c5c94cbea03621b528f841))
60
+ - serve vendor brand data from each emulator instead of the docs site ([0c72a69](https://github.com/crvouga-organization/mockingbird/commit/0c72a693fc76e612936150598faef9787ad1c824))
61
+ - take SIGINT/SIGTERM before readiness is published ([d5a98a0](https://github.com/crvouga-organization/mockingbird/commit/d5a98a09a344e12818c5c94cbea03621b528f841))
57
62
 
58
63
  ## 0.11.0 (2026-11-11)
59
64
 
60
65
  ### Features
61
66
 
62
- - one dashboard for every admin UI and notification view ([d9fdf4d](https://github.com/crvouga/mockingbird/commit/d9fdf4dc1faeaa5c385f34bd5516323e49284b4d))
67
+ - one dashboard for every admin UI and notification view ([d9fdf4d](https://github.com/crvouga-organization/mockingbird/commit/d9fdf4dc1faeaa5c385f34bd5516323e49284b4d))
63
68
 
64
69
  ## 0.10.0 (2026-11-10)
65
70
 
66
71
  ### Features
67
72
 
68
- - mockingbird.yaml as the one way to configure cloud and local fleets ([f7df8a1](https://github.com/crvouga/mockingbird/commit/f7df8a1bb6d17ca1c211832ff895d3014c015fab))
73
+ - mockingbird.yaml as the one way to configure cloud and local fleets ([f7df8a1](https://github.com/crvouga-organization/mockingbird/commit/f7df8a1bb6d17ca1c211832ff895d3014c015fab))
69
74
 
70
75
  ## 0.9.9 (2026-11-02)
71
76
 
72
77
  ### Fixes and improvements
73
78
 
74
- - list migrations applied in the same second in run order ([f8c0591](https://github.com/crvouga/mockingbird/commit/f8c059146a65bfaf7fe99b4d3b6e812e82602bb9))
79
+ - list migrations applied in the same second in run order ([f8c0591](https://github.com/crvouga-organization/mockingbird/commit/f8c059146a65bfaf7fe99b4d3b6e812e82602bb9))
75
80
 
76
81
  ## 0.9.8 (2026-11-02)
77
82
 
78
83
  ### Fixes and improvements
79
84
 
80
- - declare openapi-codegen as a devDependency of every service that runs it ([d2d2d0d](https://github.com/crvouga/mockingbird/commit/d2d2d0d23062861e0c5d387fd517bf8c7bc0d870))
81
- - declare openapi-codegen as a devDependency of every service that runs it ([45ac3cd](https://github.com/crvouga/mockingbird/commit/45ac3cdad6e1d60215d11b1d7867bd8fb9211c6a))
82
- - rewrite mounted HTML for any media type case, formaction, srcset and meta refresh ([c70f512](https://github.com/crvouga/mockingbird/commit/c70f5126a340da0217d0217fb9652daf465e1ecb))
83
- - show a placeholder for an audit event without a time ([2b2611b](https://github.com/crvouga/mockingbird/commit/2b2611b1af75fc48ec91e07ba15b96372946695f))
84
- - attach the snapshot download link and revoke its URL later ([a106903](https://github.com/crvouga/mockingbird/commit/a106903abe9d7d5def7f2857e2d7644c4ebcdae2))
85
- - match request media types case-insensitively in parseBody ([9d97f84](https://github.com/crvouga/mockingbird/commit/9d97f843000c479f961cfa5db5c3dcc9903fa1e6))
86
- - parse form fields into a null-prototype object ([53e172f](https://github.com/crvouga/mockingbird/commit/53e172f9d639b0d2e50fcefc63c1fef9c808d398))
87
- - stop the page-hide save inheriting the last write's result as `force` ([551c2dc](https://github.com/crvouga/mockingbird/commit/551c2dcd3615f82e70e0cd0b8a11c82a663d18b6))
88
- - keep the record id in the State table's id column ([2fc9bee](https://github.com/crvouga/mockingbird/commit/2fc9beeba6dd8bfe129993a4ff53fbd2925bf569))
89
- - prune idempotency keys after 24 hours on the mock clock ([094c8b1](https://github.com/crvouga/mockingbird/commit/094c8b124211ae02901c26eb96cca410434b855a))
90
- - drop the previous emulator's manifest when switching emulators ([7ed4666](https://github.com/crvouga/mockingbird/commit/7ed46661288662a3789dbe013f1a195905b217e4))
91
- - reject a migration list that repeats an id, naming it ([47721d9](https://github.com/crvouga/mockingbird/commit/47721d96a29f4b5184322d19c1b10750086e8da4))
92
- - reserve the manual admin view id ([3d4da92](https://github.com/crvouga/mockingbird/commit/3d4da926182ce609fba44e0fd58abcbb253eee2c))
85
+ - declare openapi-codegen as a devDependency of every service that runs it ([d2d2d0d](https://github.com/crvouga-organization/mockingbird/commit/d2d2d0d23062861e0c5d387fd517bf8c7bc0d870))
86
+ - declare openapi-codegen as a devDependency of every service that runs it ([45ac3cd](https://github.com/crvouga-organization/mockingbird/commit/45ac3cdad6e1d60215d11b1d7867bd8fb9211c6a))
87
+ - rewrite mounted HTML for any media type case, formaction, srcset and meta refresh ([c70f512](https://github.com/crvouga-organization/mockingbird/commit/c70f5126a340da0217d0217fb9652daf465e1ecb))
88
+ - show a placeholder for an audit event without a time ([2b2611b](https://github.com/crvouga-organization/mockingbird/commit/2b2611b1af75fc48ec91e07ba15b96372946695f))
89
+ - attach the snapshot download link and revoke its URL later ([a106903](https://github.com/crvouga-organization/mockingbird/commit/a106903abe9d7d5def7f2857e2d7644c4ebcdae2))
90
+ - match request media types case-insensitively in parseBody ([9d97f84](https://github.com/crvouga-organization/mockingbird/commit/9d97f843000c479f961cfa5db5c3dcc9903fa1e6))
91
+ - parse form fields into a null-prototype object ([53e172f](https://github.com/crvouga-organization/mockingbird/commit/53e172f9d639b0d2e50fcefc63c1fef9c808d398))
92
+ - stop the page-hide save inheriting the last write's result as `force` ([551c2dc](https://github.com/crvouga-organization/mockingbird/commit/551c2dcd3615f82e70e0cd0b8a11c82a663d18b6))
93
+ - keep the record id in the State table's id column ([2fc9bee](https://github.com/crvouga-organization/mockingbird/commit/2fc9beeba6dd8bfe129993a4ff53fbd2925bf569))
94
+ - prune idempotency keys after 24 hours on the mock clock ([094c8b1](https://github.com/crvouga-organization/mockingbird/commit/094c8b124211ae02901c26eb96cca410434b855a))
95
+ - drop the previous emulator's manifest when switching emulators ([7ed4666](https://github.com/crvouga-organization/mockingbird/commit/7ed46661288662a3789dbe013f1a195905b217e4))
96
+ - reject a migration list that repeats an id, naming it ([47721d9](https://github.com/crvouga-organization/mockingbird/commit/47721d96a29f4b5184322d19c1b10750086e8da4))
97
+ - reserve the manual admin view id ([3d4da92](https://github.com/crvouga-organization/mockingbird/commit/3d4da926182ce609fba44e0fd58abcbb253eee2c))
93
98
 
94
99
  ## 0.9.7 (2026-11-02)
95
100
 
96
101
  ### Fixes and improvements
97
102
 
98
- - save and replay a 500 the endpoint produced under an Idempotency-Key ([789bbcc](https://github.com/crvouga/mockingbird/commit/789bbcccb792cddaf27f4f6db6d2fcf2da1d07fe))
103
+ - save and replay a 500 the endpoint produced under an Idempotency-Key ([789bbcc](https://github.com/crvouga-organization/mockingbird/commit/789bbcccb792cddaf27f4f6db6d2fcf2da1d07fe))
99
104
 
100
105
  ## 0.9.6 (2026-11-02)
101
106
 
102
107
  ### Fixes and improvements
103
108
 
104
- - compare the admin key in constant time ([2a43141](https://github.com/crvouga/mockingbird/commit/2a43141f50dab41e698c3bbce0c69bf65b40e24e))
109
+ - compare the admin key in constant time ([2a43141](https://github.com/crvouga-organization/mockingbird/commit/2a43141f50dab41e698c3bbce0c69bf65b40e24e))
105
110
 
106
111
  ## 0.9.5 (2026-11-02)
107
112
 
108
113
  ### Fixes and improvements
109
114
 
110
- - stop walkSchema recursing forever on a self-referential $ref ([69464a9](https://github.com/crvouga/mockingbird/commit/69464a9d9e7f468c5e1095125108d4d3d5515431))
111
- - densify sparse bracket arrays by their written indices ([84a28cb](https://github.com/crvouga/mockingbird/commit/84a28cb182e3d7df91102897f0fc11fca714ba5f))
115
+ - stop walkSchema recursing forever on a self-referential $ref ([69464a9](https://github.com/crvouga-organization/mockingbird/commit/69464a9d9e7f468c5e1095125108d4d3d5515431))
116
+ - densify sparse bracket arrays by their written indices ([84a28cb](https://github.com/crvouga-organization/mockingbird/commit/84a28cb182e3d7df91102897f0fc11fca714ba5f))
112
117
 
113
118
  ## 0.9.4 (2026-11-02)
114
119
 
115
120
  ### Fixes and improvements
116
121
 
117
- - do not save idempotent results for requests that fail validation ([f2161aa](https://github.com/crvouga/mockingbird/commit/f2161aadeae30bcc586e26131da12a7030bdeb11))
122
+ - do not save idempotent results for requests that fail validation ([f2161aa](https://github.com/crvouga-organization/mockingbird/commit/f2161aadeae30bcc586e26131da12a7030bdeb11))
118
123
 
119
124
  ## 0.9.3 (2026-11-02)
120
125
 
121
126
  ### Fixes and improvements
122
127
 
123
- - keep the command palette's highlighted option in view and announced ([24b8a92](https://github.com/crvouga/mockingbird/commit/24b8a923f65d9deecb2c298169cdc9b7af90e609))
128
+ - keep the command palette's highlighted option in view and announced ([24b8a92](https://github.com/crvouga-organization/mockingbird/commit/24b8a923f65d9deecb2c298169cdc9b7af90e609))
124
129
 
125
130
  ## 0.9.2 (2026-11-02)
126
131
 
127
132
  ### Fixes and improvements
128
133
 
129
- - reopen IndexedDB durability connection after the browser force-closes it ([d0b45aa](https://github.com/crvouga/mockingbird/commit/d0b45aa1d12a55967e72b8ddc6573f5998c377ce))
134
+ - reopen IndexedDB durability connection after the browser force-closes it ([d0b45aa](https://github.com/crvouga-organization/mockingbird/commit/d0b45aa1d12a55967e72b8ddc6573f5998c377ce))
130
135
 
131
136
  ## 0.9.1 (2026-11-02)
132
137
 
133
138
  ### Fixes and improvements
134
139
 
135
- - schedule packages whose tasks read another package's files ([7df459d](https://github.com/crvouga/mockingbird/commit/7df459d96132b4f84fa3553b1f907871c7e4f739))
140
+ - schedule packages whose tasks read another package's files ([7df459d](https://github.com/crvouga-organization/mockingbird/commit/7df459d96132b4f84fa3553b1f907871c7e4f739))
136
141
 
137
142
  ## 0.9.0 (2026-10-24)
138
143
 
139
144
  ### Features
140
145
 
141
- - add buffered SQL durability ([288bdcc](https://github.com/crvouga/mockingbird/commit/288bdcca84582787a54c4fdf9e803db9aac0b8d7))
142
- - add efficient browser durability ([a8be579](https://github.com/crvouga/mockingbird/commit/a8be5799a883ddf6f731208e06f399410de4661a))
146
+ - add buffered SQL durability ([288bdcc](https://github.com/crvouga-organization/mockingbird/commit/288bdcca84582787a54c4fdf9e803db9aac0b8d7))
147
+ - add efficient browser durability ([a8be579](https://github.com/crvouga-organization/mockingbird/commit/a8be5799a883ddf6f731208e06f399410de4661a))
143
148
 
144
149
  ## 0.8.0 (2026-10-21)
145
150
 
146
151
  ### Features
147
152
 
148
- - add manual response controls ([4599960](https://github.com/crvouga/mockingbird/commit/45999603e8b860c633181367afc7baa906ba486b))
153
+ - add manual response controls ([4599960](https://github.com/crvouga-organization/mockingbird/commit/45999603e8b860c633181367afc7baa906ba486b))
149
154
 
150
155
  ## 0.7.0 (2026-10-20)
151
156
 
152
157
  ### Features
153
158
 
154
- - raise the serve and fleet body limit to the S3 maximum ([86b9e2b](https://github.com/crvouga/mockingbird/commit/86b9e2b80bcaaaef57f52edbac50b27da0b42f33))
159
+ - raise the serve and fleet body limit to the S3 maximum ([86b9e2b](https://github.com/crvouga-organization/mockingbird/commit/86b9e2b80bcaaaef57f52edbac50b27da0b42f33))
155
160
 
156
161
  ## 0.6.0 (2026-10-18)
157
162
 
158
163
  ### Features
159
164
 
160
- - resolve the agent-reported issue queue in one batch ([25c52b6](https://github.com/crvouga/mockingbird/commit/25c52b668a53ddb80b968419601a20abf33f956b))
165
+ - resolve the agent-reported issue queue in one batch ([25c52b6](https://github.com/crvouga-organization/mockingbird/commit/25c52b668a53ddb80b968419601a20abf33f956b))
161
166
 
162
167
  ## 0.5.0 (2026-10-16)
163
168
 
164
169
  ### Features
165
170
 
166
- - resolve fleet and emulator issue batch ([26d2f8c](https://github.com/crvouga/mockingbird/commit/26d2f8cee99fefed93192204bac44fb1be35c1da))
171
+ - resolve fleet and emulator issue batch ([26d2f8c](https://github.com/crvouga-organization/mockingbird/commit/26d2f8cee99fefed93192204bac44fb1be35c1da))
167
172
 
168
173
  ## 0.4.0 (2026-10-15)
169
174
 
170
175
  ### Features
171
176
 
172
- - resolve SQL, routing and writer gaps ([73f97d0](https://github.com/crvouga/mockingbird/commit/73f97d0d2379f44b9131180498f4fab76648fed9))
177
+ - resolve SQL, routing and writer gaps ([73f97d0](https://github.com/crvouga-organization/mockingbird/commit/73f97d0d2379f44b9131180498f4fab76648fed9))
173
178
 
174
179
  ## 0.3.0 (2026-10-15)
175
180
 
176
181
  ### Features
177
182
 
178
- - finish durable run lifecycle ([725ea1a](https://github.com/crvouga/mockingbird/commit/725ea1a966dac65434e98f06a9c33aca0d6f32d7))
179
- - add management and portable archives ([0d2a6dd](https://github.com/crvouga/mockingbird/commit/0d2a6dd0f9fecb3a1ea7c1638f6639787395c2f4))
183
+ - finish durable run lifecycle ([725ea1a](https://github.com/crvouga-organization/mockingbird/commit/725ea1a966dac65434e98f06a9c33aca0d6f32d7))
184
+ - add management and portable archives ([0d2a6dd](https://github.com/crvouga-organization/mockingbird/commit/0d2a6dd0f9fecb3a1ea7c1638f6639787395c2f4))
180
185
 
181
186
  ### Fixes and improvements
182
187
 
183
- - correlate cross-namespace operations ([3457a4b](https://github.com/crvouga/mockingbird/commit/3457a4b7dbfd9ad9c8a10671a5744b7c8425d000))
184
- - harden HTTP stream handling ([674307a](https://github.com/crvouga/mockingbird/commit/674307a869f57907567d462c4f506c3b0a237e13))
188
+ - correlate cross-namespace operations ([3457a4b](https://github.com/crvouga-organization/mockingbird/commit/3457a4b7dbfd9ad9c8a10671a5744b7c8425d000))
189
+ - harden HTTP stream handling ([674307a](https://github.com/crvouga-organization/mockingbird/commit/674307a869f57907567d462c4f506c3b0a237e13))
185
190
 
186
191
  ## 0.2.0 (2026-10-12)
187
192
 
188
193
  ### Features
189
194
 
190
- - unify the emulator control plane ([2068547](https://github.com/crvouga/mockingbird/commit/2068547bedde4e2e2331c1657c1a78120e84428b))
195
+ - unify the emulator control plane ([2068547](https://github.com/crvouga-organization/mockingbird/commit/2068547bedde4e2e2331c1657c1a78120e84428b))
191
196
 
192
197
  ## 0.1.0 (2026-10-08)
193
198
 
package/DISCOVERY.md CHANGED
@@ -98,7 +98,7 @@ the [Reference](https://mockingbird.chrisvouga.dev/docs/admin-controls/reference
98
98
 
99
99
  ## Report a mismatch or missing capability
100
100
 
101
- Follow the [agent reporting contract](https://github.com/crvouga/mockingbird/blob/main/docs/REPORTING_ISSUES.md). Include package version,
101
+ Follow the [agent reporting contract](https://github.com/crvouga-organization/mockingbird/blob/main/docs/REPORTING_ISSUES.md). Include package version,
102
102
  operation/command, a minimal redacted request, actual emulator result, expected oracle result or vendor
103
103
  documentation, and whether the mismatch appears in the matrix. Never include keys, tokens,
104
104
  customer data, prompts, PHI, card data, or unredacted recordings.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @crvouga/mockingbird-service-aws
2
2
 
3
- > Local emulators. Real API contracts. Part of [Mockingbird](https://github.com/crvouga/mockingbird).
3
+ > Local emulators. Real API contracts. Part of [Mockingbird](https://github.com/crvouga-organization/mockingbird).
4
4
 
5
5
  Combined S3 object storage, SQS queues, IAM identities and STS credentials. Runs through Mockingbird's portable Fetch runtime with SQLite persistence, namespaces, checkpoints, faults and admin controls.
6
6
 
@@ -40,7 +40,7 @@ __export(service_exports, {
40
40
  __reExport(service_exports, service_star);
41
41
  import * as service_star from "@crvouga/mockingbird-runtime/service";
42
42
  import { PACKAGE_VERSION as SHARED_VERSION, createRuntime as sharedRuntime } from "@crvouga/mockingbird-runtime/service";
43
- var PACKAGE_VERSION = true ? "0.16.1" : SHARED_VERSION;
43
+ var PACKAGE_VERSION = true ? "0.17.0" : SHARED_VERSION;
44
44
  var ADMIN_BRAND = typeof define_MOCKINGBIRD_ADMIN_BRAND_default === "object" ? define_MOCKINGBIRD_ADMIN_BRAND_default : void 0;
45
45
  var createRuntime = (options) => sharedRuntime({
46
46
  ...options,
package/dist/index.d.ts CHANGED
@@ -1782,6 +1782,7 @@ type RuntimeOptions<T extends ServiceInstance> = {
1782
1782
  onForwardResponse?: (instance: T, request: Request, response: Response) => Promise<void>;
1783
1783
  /** Reject unsupported forwarding surfaces before any network request. */
1784
1784
  canForward?: (request: Request) => boolean;
1785
+ upstreamRequest?: (request: Request, baseUrl: string) => Request;
1785
1786
  /** Service name, e.g. `"junction"`. Also the default namespace's storage key. */
1786
1787
  name: string;
1787
1788
  /** Build the instance backing one namespace. Called once per namespace, on first use. */
package/dist/server.d.ts CHANGED
@@ -138,6 +138,12 @@ type UpstreamState = {
138
138
  mode: "emulated" | "forward";
139
139
  baseUrl: string;
140
140
  };
141
+ type UpstreamOptions = {
142
+ fetch: (request: Request) => Response | Promise<Response>;
143
+ baseUrl: string;
144
+ mode?: "emulated" | "forward";
145
+ rewriteAuth?: (request: Request) => Request | Promise<Request>;
146
+ };
141
147
 
142
148
  /**
143
149
  * Seeded pseudo-random numbers, so anything a mock invents — ids, jitter, which
@@ -964,6 +970,7 @@ type CliOption = {
964
970
  };
965
971
  type CliValues = Record<string, string | boolean | undefined>;
966
972
  type CommonServeOptions = {
973
+ upstream?: UpstreamOptions;
967
974
  adminPrefix?: string;
968
975
  adminKey: string | undefined;
969
976
  seed: string | undefined;
@@ -986,6 +993,7 @@ type CommonServeOptions = {
986
993
  * `serveTarget`, which is also how `serve --config` finds services by name.
987
994
  */
988
995
  type ServeTarget = {
996
+ supportsUpstream?: boolean;
989
997
  packageVersion?: string;
990
998
  name: string;
991
999
  defaultPort: number;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/mockingbird-service-aws",
3
- "version": "0.16.1",
3
+ "version": "0.17.0",
4
4
  "description": "Combined S3, SQS, IAM and STS provider endpoint emulator with native controls.",
5
5
  "license": "MIT",
6
6
  "type": "module",
@@ -38,10 +38,10 @@
38
38
  },
39
39
  "repository": {
40
40
  "type": "git",
41
- "url": "git+https://github.com/crvouga/mockingbird.git",
41
+ "url": "git+https://github.com/crvouga-organization/mockingbird.git",
42
42
  "directory": "packages/service/aws"
43
43
  },
44
- "homepage": "https://github.com/crvouga/mockingbird/tree/main/packages/service/aws#readme",
44
+ "homepage": "https://github.com/crvouga-organization/mockingbird/tree/main/packages/service/aws#readme",
45
45
  "keywords": [
46
46
  "mockingbird",
47
47
  "service",
@@ -84,7 +84,7 @@
84
84
  "GET /__admin/faults/presets",
85
85
  "GET /__admin/ui"
86
86
  ],
87
- "reporting": "https://github.com/crvouga/mockingbird/blob/main/docs/REPORTING_ISSUES.md"
87
+ "reporting": "https://github.com/crvouga-organization/mockingbird/blob/main/docs/REPORTING_ISSUES.md"
88
88
  }
89
89
  },
90
90
  "scripts": {
@@ -99,8 +99,8 @@
99
99
  "openapi:check": "bun ../../openapi/codegen/dist/cli.js --validate"
100
100
  },
101
101
  "dependencies": {
102
- "@crvouga/mockingbird-runtime": "0.2.1",
103
- "@crvouga/mockingbird-service-sqlite": "3.5.1",
102
+ "@crvouga/mockingbird-runtime": "0.3.0",
103
+ "@crvouga/mockingbird-service-sqlite": "3.6.0",
104
104
  "buffer": "6.0.3",
105
105
  "@noble/hashes": "2.4.0",
106
106
  "jose": "6.2.2",