@crvouga/mockingbird-service-flex 3.7.0 → 3.8.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-5EGCGPYQ.js";
7
- import "./chunk-IGAL67SI.js";
6
+ } from "./chunk-52PUYMBF.js";
7
+ import "./chunk-M4IU3NAI.js";
8
8
 
9
9
  // src/cli.ts
10
10
  var code = await runCli(
package/dist/index.js CHANGED
@@ -20,7 +20,7 @@ import {
20
20
  periodEnd,
21
21
  substituteSessionId,
22
22
  supportedOperationIds
23
- } from "./chunk-IGAL67SI.js";
23
+ } from "./chunk-M4IU3NAI.js";
24
24
  export {
25
25
  CARDS,
26
26
  CORPUS_ROWS,
package/dist/server.d.ts CHANGED
@@ -986,6 +986,8 @@ type ServeTarget = {
986
986
  */
987
987
  parseSettings?(settings: Record<string, unknown>): Record<string, unknown>;
988
988
  create(values: CliValues, common: CommonServeOptions): Promise<ServiceRuntime$1<ServiceInstance$1>> | ServiceRuntime$1<ServiceInstance$1>;
989
+ /** Largest request body the HTTP server accepts. Default 16 MiB. */
990
+ maxBodyBytes?: number;
989
991
  /** Startup lines after the listen address, e.g. the loaded corpus version. */
990
992
  banner?(runtime: ServiceRuntime$1<ServiceInstance$1>): string[];
991
993
  /** After the HTTP server is bound. A service that speaks more than HTTP attaches it here. */
package/dist/server.js CHANGED
@@ -2,8 +2,8 @@ import {
2
2
  DEFAULT_PORT,
3
3
  createServer,
4
4
  serveTarget
5
- } from "./chunk-5EGCGPYQ.js";
6
- import "./chunk-IGAL67SI.js";
5
+ } from "./chunk-52PUYMBF.js";
6
+ import "./chunk-M4IU3NAI.js";
7
7
  export {
8
8
  DEFAULT_PORT,
9
9
  createServer,
package/openapi.yaml CHANGED
@@ -575,6 +575,14 @@ components:
575
575
  type: string
576
576
  param:
577
577
  type: string
578
+ CheckoutSessionMetadata:
579
+ type: object
580
+ description: >-
581
+ Flex sets no limit on the number of keys or the length of a key or value. It refuses the
582
+ whole object with a 422 when its compact JSON is more than 4096 bytes of UTF-8, measured
583
+ against test mode; the emulator enforces that limit in code.
584
+ additionalProperties:
585
+ type: string
578
586
  StringMap:
579
587
  type: object
580
588
  maxProperties: 50
@@ -702,7 +710,6 @@ components:
702
710
  quantity:
703
711
  type: integer
704
712
  minimum: 1
705
- maximum: 100
706
713
  Recurring:
707
714
  type: object
708
715
  description: >-
@@ -750,11 +757,10 @@ components:
750
757
  maxLength: 255
751
758
  line_items:
752
759
  type: array
753
- maxItems: 20
754
760
  items:
755
761
  $ref: "#/components/schemas/LineItem"
756
762
  metadata:
757
- $ref: "#/components/schemas/StringMap"
763
+ $ref: "#/components/schemas/CheckoutSessionMetadata"
758
764
  mode:
759
765
  type: string
760
766
  enum: [payment, subscription, off_session, setup]
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@crvouga/mockingbird-service-flex",
3
- "version": "3.7.0",
3
+ "version": "3.8.0",
4
4
  "description": "Stateful emulator of the Flex HSA/FSA payments API: products (recorded catalog corpus), checkout sessions in payment, subscription, off-session and setup modes, subscriptions, customers, setup intents, refunds, the hosted checkout page, and Svix-signed webhooks.",
5
5
  "license": "MIT",
6
6
  "type": "module",