@crvouga/mockingbird-service-aws 0.16.0 → 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,21 +1,34 @@
1
1
  # Changelog — @crvouga/mockingbird-service-aws
2
2
 
3
- ## 0.16.0 (2026-11-17)
3
+ ## 0.17.0 (2026-11-21)
4
4
 
5
5
  ### Features
6
6
 
7
- - allow checkpointMutations in a fleet entry's adminControls ([f318660](https://github.com/crvouga/mockingbird/commit/f318660116d4237b520dee31e9c3c730aa66eae2))
8
- - accept checkpointMutations as a boot admin control ([1825da5](https://github.com/crvouga/mockingbird/commit/1825da537184b111df3e7f1081c79cf605fb4d50))
7
+ - add reusable browser preview packages and emulator integration features ([c87e9b4](https://github.com/crvouga-organization/mockingbird/commit/c87e9b466d2d728c69a6ad35b73fa387726a1a61))
9
8
 
10
9
  ### Dependencies
11
10
 
12
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))
19
+
20
+ ## 0.16.0 (2026-11-16)
21
+
22
+ ### Features
23
+
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))
13
26
 
14
27
  ## 0.15.0 (2026-11-16)
15
28
 
16
29
  ### Features
17
30
 
18
- - 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))
19
32
 
20
33
  ## 0.14.1 (2026-11-16)
21
34
 
@@ -25,163 +38,161 @@ Dependency updates only.
25
38
 
26
39
  ### Features
27
40
 
28
- - expand in-process emulation and resolve Plane and streaming gaps ([e6733fd](https://github.com/crvouga/mockingbird/commit/e6733fd00f5dd03259f36cc0f452780a7e0deea4))
29
- - add browser runtime polyfills and edge-snapping app cycle ([815b739](https://github.com/crvouga/mockingbird/commit/815b7399f1e058b89b3fa025f79a5014172b3ab8))
30
- - run lab systems in browser PR previews ([df14882](https://github.com/crvouga/mockingbird/commit/df148828ca66db1e20cf9fa2fdf38b56b5116da4))
31
- - 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))
32
43
 
33
44
  ## 0.13.0 (2026-11-13)
34
45
 
35
46
  ### Features
36
47
 
37
- - 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))
38
49
 
39
50
  ## 0.12.0 (2026-11-12)
40
51
 
41
52
  ### Features
42
53
 
43
- - 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))
44
55
 
45
56
  ## 0.11.1 (2026-11-12)
46
57
 
47
58
  ### Fixes and improvements
48
59
 
49
- - serve vendor brand data from each emulator instead of the docs site ([0c72a69](https://github.com/crvouga/mockingbird/commit/0c72a693fc76e612936150598faef9787ad1c824))
50
- - 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))
51
62
 
52
63
  ## 0.11.0 (2026-11-11)
53
64
 
54
65
  ### Features
55
66
 
56
- - 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))
57
68
 
58
69
  ## 0.10.0 (2026-11-10)
59
70
 
60
71
  ### Features
61
72
 
62
- - 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))
63
74
 
64
75
  ## 0.9.9 (2026-11-02)
65
76
 
66
77
  ### Fixes and improvements
67
78
 
68
- - 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))
69
80
 
70
81
  ## 0.9.8 (2026-11-02)
71
82
 
72
83
  ### Fixes and improvements
73
84
 
74
- - declare openapi-codegen as a devDependency of every service that runs it ([d2d2d0d](https://github.com/crvouga/mockingbird/commit/d2d2d0d23062861e0c5d387fd517bf8c7bc0d870))
75
- - declare openapi-codegen as a devDependency of every service that runs it ([45ac3cd](https://github.com/crvouga/mockingbird/commit/45ac3cdad6e1d60215d11b1d7867bd8fb9211c6a))
76
- - rewrite mounted HTML for any media type case, formaction, srcset and meta refresh ([c70f512](https://github.com/crvouga/mockingbird/commit/c70f5126a340da0217d0217fb9652daf465e1ecb))
77
- - show a placeholder for an audit event without a time ([2b2611b](https://github.com/crvouga/mockingbird/commit/2b2611b1af75fc48ec91e07ba15b96372946695f))
78
- - attach the snapshot download link and revoke its URL later ([a106903](https://github.com/crvouga/mockingbird/commit/a106903abe9d7d5def7f2857e2d7644c4ebcdae2))
79
- - match request media types case-insensitively in parseBody ([9d97f84](https://github.com/crvouga/mockingbird/commit/9d97f843000c479f961cfa5db5c3dcc9903fa1e6))
80
- - parse form fields into a null-prototype object ([53e172f](https://github.com/crvouga/mockingbird/commit/53e172f9d639b0d2e50fcefc63c1fef9c808d398))
81
- - stop the page-hide save inheriting the last write's result as `force` ([551c2dc](https://github.com/crvouga/mockingbird/commit/551c2dcd3615f82e70e0cd0b8a11c82a663d18b6))
82
- - keep the record id in the State table's id column ([2fc9bee](https://github.com/crvouga/mockingbird/commit/2fc9beeba6dd8bfe129993a4ff53fbd2925bf569))
83
- - prune idempotency keys after 24 hours on the mock clock ([094c8b1](https://github.com/crvouga/mockingbird/commit/094c8b124211ae02901c26eb96cca410434b855a))
84
- - drop the previous emulator's manifest when switching emulators ([7ed4666](https://github.com/crvouga/mockingbird/commit/7ed46661288662a3789dbe013f1a195905b217e4))
85
- - reject a migration list that repeats an id, naming it ([47721d9](https://github.com/crvouga/mockingbird/commit/47721d96a29f4b5184322d19c1b10750086e8da4))
86
- - 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))
87
98
 
88
99
  ## 0.9.7 (2026-11-02)
89
100
 
90
101
  ### Fixes and improvements
91
102
 
92
- - 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))
93
104
 
94
105
  ## 0.9.6 (2026-11-02)
95
106
 
96
107
  ### Fixes and improvements
97
108
 
98
- - 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))
99
110
 
100
111
  ## 0.9.5 (2026-11-02)
101
112
 
102
113
  ### Fixes and improvements
103
114
 
104
- - stop walkSchema recursing forever on a self-referential $ref ([69464a9](https://github.com/crvouga/mockingbird/commit/69464a9d9e7f468c5e1095125108d4d3d5515431))
105
- - 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))
106
117
 
107
118
  ## 0.9.4 (2026-11-02)
108
119
 
109
120
  ### Fixes and improvements
110
121
 
111
- - 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))
112
123
 
113
124
  ## 0.9.3 (2026-11-02)
114
125
 
115
126
  ### Fixes and improvements
116
127
 
117
- - 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))
118
129
 
119
130
  ## 0.9.2 (2026-11-02)
120
131
 
121
132
  ### Fixes and improvements
122
133
 
123
- - 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))
124
135
 
125
136
  ## 0.9.1 (2026-11-02)
126
137
 
127
138
  ### Fixes and improvements
128
139
 
129
- - 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))
130
141
 
131
142
  ## 0.9.0 (2026-10-24)
132
143
 
133
144
  ### Features
134
145
 
135
- - add buffered SQL durability ([288bdcc](https://github.com/crvouga/mockingbird/commit/288bdcca84582787a54c4fdf9e803db9aac0b8d7))
136
- - 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))
137
148
 
138
149
  ## 0.8.0 (2026-10-21)
139
150
 
140
151
  ### Features
141
152
 
142
- - 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))
143
154
 
144
155
  ## 0.7.0 (2026-10-20)
145
156
 
146
157
  ### Features
147
158
 
148
- - 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))
149
160
 
150
161
  ## 0.6.0 (2026-10-18)
151
162
 
152
163
  ### Features
153
164
 
154
- - 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))
155
166
 
156
167
  ## 0.5.0 (2026-10-16)
157
168
 
158
169
  ### Features
159
170
 
160
- - 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))
161
172
 
162
173
  ## 0.4.0 (2026-10-15)
163
174
 
164
175
  ### Features
165
176
 
166
- - 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))
167
178
 
168
179
  ## 0.3.0 (2026-10-15)
169
180
 
170
181
  ### Features
171
182
 
172
- - finish durable run lifecycle ([725ea1a](https://github.com/crvouga/mockingbird/commit/725ea1a966dac65434e98f06a9c33aca0d6f32d7))
173
- - 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))
174
185
 
175
186
  ### Fixes and improvements
176
187
 
177
- - correlate cross-namespace operations ([3457a4b](https://github.com/crvouga/mockingbird/commit/3457a4b7dbfd9ad9c8a10671a5744b7c8425d000))
178
- - 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))
179
190
 
180
191
  ## 0.2.0 (2026-10-12)
181
192
 
182
193
  ### Features
183
194
 
184
- - 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))
185
196
 
186
197
  ## 0.1.0 (2026-10-08)
187
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.0" : 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
@@ -164,6 +164,8 @@ declare class Collection$1<T> {
164
164
  namespace: string,
165
165
  /** Table name inside the namespace. Stable across resets of the rows themselves. */
166
166
  collectionName: string);
167
+ /** Note the record's current row in every open rollback journal that has not seen it yet. */
168
+ private journalRecord;
167
169
  private bumpCollectionSeq;
168
170
  nextSequence(): number;
169
171
  get(id: string): T | undefined;
@@ -1780,6 +1782,7 @@ type RuntimeOptions<T extends ServiceInstance> = {
1780
1782
  onForwardResponse?: (instance: T, request: Request, response: Response) => Promise<void>;
1781
1783
  /** Reject unsupported forwarding surfaces before any network request. */
1782
1784
  canForward?: (request: Request) => boolean;
1785
+ upstreamRequest?: (request: Request, baseUrl: string) => Request;
1783
1786
  /** Service name, e.g. `"junction"`. Also the default namespace's storage key. */
1784
1787
  name: string;
1785
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.0",
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.0",
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",