@fanfare-io/fanfare-sdk-contracts 0.20.0 → 0.21.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.
@@ -16,6 +16,21 @@ export declare const DistributionCheckoutMode: {
16
16
  export declare const DistributionCheckoutModes: readonly ["at_end", "pre_auth"];
17
17
  export type DistributionCheckoutMode = (typeof DistributionCheckoutModes)[number];
18
18
  export declare const DistributionCheckoutModeSchema: v.PicklistSchema<readonly ["at_end", "pre_auth"], undefined>;
19
+ /**
20
+ * Who presses Enter for a distribution: `explicit` waits for the consumer, `automatic` lets the
21
+ * SDK enter on their behalf once routing lands on the distribution.
22
+ *
23
+ * This is the merchant's stated intent, not a promise. An entry that needs something from the
24
+ * consumer — a pick captured at entry, an authorization hold — is always made explicitly, so a
25
+ * surface acting on automatic entry reads the server's computed fact rather than this mode.
26
+ */
27
+ export declare const DistributionEntryMode: {
28
+ readonly EXPLICIT: "explicit";
29
+ readonly AUTOMATIC: "automatic";
30
+ };
31
+ export declare const DistributionEntryModes: readonly ["explicit", "automatic"];
32
+ export type DistributionEntryMode = (typeof DistributionEntryModes)[number];
33
+ export declare const DistributionEntryModeSchema: v.PicklistSchema<readonly ["explicit", "automatic"], undefined>;
19
34
  /**
20
35
  * Who executes the payment leg for a distribution. Orthogonal to `DistributionCheckoutMode`,
21
36
  * which says WHEN settlement happens relative to winning; this says WHO moves the money.
package/dist/checkout.js CHANGED
@@ -1,22 +1,25 @@
1
1
  import * as e from "valibot";
2
- const t = e.string(), a = e.pipe(t, e.regex(/^\d{1,12}(\.\d{1,8})?$/, "validation.number")), r = e.pipe(t, e.regex(/^[A-Z]{3}$/, "validation.pattern")), n = {
2
+ const t = e.string(), a = e.pipe(t, e.regex(/^\d{1,12}(\.\d{1,8})?$/, "validation.number")), s = e.pipe(t, e.regex(/^[A-Z]{3}$/, "validation.pattern")), n = {
3
3
  AT_END: "at_end",
4
4
  PRE_AUTH: "pre_auth"
5
- }, s = [n.AT_END, n.PRE_AUTH], d = e.picklist(s), o = {
5
+ }, p = [n.AT_END, n.PRE_AUTH], y = e.picklist(p), i = {
6
+ EXPLICIT: "explicit",
7
+ AUTOMATIC: "automatic"
8
+ }, m = [i.EXPLICIT, i.AUTOMATIC], b = e.picklist(m), o = {
6
9
  INTERNAL: "internal",
7
10
  EXTERNAL: "external"
8
- }, p = [o.INTERNAL, o.EXTERNAL], l = e.picklist(p), i = e.variant("processor", [
11
+ }, h = [o.INTERNAL, o.EXTERNAL], C = e.picklist(h), c = e.variant("processor", [
9
12
  e.object({
10
13
  processor: e.literal(o.INTERNAL),
11
14
  clientSecret: e.pipe(t, e.minLength(1))
12
15
  })
13
- ]), y = e.object({
16
+ ]), A = e.object({
14
17
  publishableKey: e.pipe(t, e.minLength(1)),
15
18
  stripeAccount: e.optional(e.pipe(t, e.minLength(1)))
16
- }), b = e.object({
19
+ }), S = e.object({
17
20
  outcome: e.literal("requires_action"),
18
- nextAction: i
19
- }), C = e.variant("type", [
21
+ nextAction: c
22
+ }), g = e.variant("type", [
20
23
  e.object({
21
24
  type: e.literal("saved"),
22
25
  paymentMethodId: e.pipe(t, e.minLength(1))
@@ -25,53 +28,56 @@ const t = e.string(), a = e.pipe(t, e.regex(/^\d{1,12}(\.\d{1,8})?$/, "validatio
25
28
  type: e.literal("new"),
26
29
  stripePaymentMethodId: e.pipe(t, e.minLength(1))
27
30
  })
28
- ]), c = e.object({
31
+ ]), r = e.object({
29
32
  id: e.pipe(t, e.minLength(1)),
30
33
  brand: e.pipe(t, e.minLength(1)),
31
34
  last4: e.pipe(t, e.length(4)),
32
35
  expiryMonth: e.pipe(e.number(), e.integer(), e.minValue(1), e.maxValue(12)),
33
36
  expiryYear: e.pipe(e.number(), e.integer(), e.minValue(2e3)),
34
37
  isDefault: e.boolean()
35
- }), m = e.object({
38
+ }), u = e.object({
36
39
  orderId: e.pipe(t, e.minLength(1)),
37
40
  amount: a,
38
- currencyCode: r,
41
+ currencyCode: s,
39
42
  paymentMethodLast4: e.optional(e.pipe(t, e.length(4))),
40
43
  paymentMethodBrand: e.optional(e.pipe(t, e.minLength(1)))
41
- }), S = ["completed", "requires_action"], h = e.object({
44
+ }), M = ["completed", "requires_action"], d = e.object({
42
45
  outcome: e.literal("completed"),
43
- checkout: m
44
- }), u = e.object({
46
+ checkout: u
47
+ }), l = e.object({
45
48
  outcome: e.literal("requires_action"),
46
- nextAction: i
47
- }), g = e.variant("outcome", [
48
- h,
49
- u
50
- ]), A = e.object({
51
- paymentMethods: e.array(c)
52
- }), L = e.object({
49
+ nextAction: c
50
+ }), L = e.variant("outcome", [
51
+ d,
52
+ l
53
+ ]), E = e.object({
54
+ paymentMethods: e.array(r)
55
+ }), k = e.object({
53
56
  stripePaymentMethodId: e.pipe(t, e.minLength(1))
54
- }), k = c;
57
+ }), P = r;
55
58
  export {
56
- L as AddPaymentMethodRequestSchema,
57
- k as AddPaymentMethodResponseSchema,
58
- h as CheckoutConfirmCompletedSchema,
59
- S as CheckoutConfirmOutcomes,
60
- u as CheckoutConfirmRequiresActionSchema,
61
- g as CheckoutConfirmResponseSchema,
62
- i as CheckoutNextActionSchema,
59
+ k as AddPaymentMethodRequestSchema,
60
+ P as AddPaymentMethodResponseSchema,
61
+ d as CheckoutConfirmCompletedSchema,
62
+ M as CheckoutConfirmOutcomes,
63
+ l as CheckoutConfirmRequiresActionSchema,
64
+ L as CheckoutConfirmResponseSchema,
65
+ c as CheckoutNextActionSchema,
63
66
  o as CheckoutProcessor,
64
- l as CheckoutProcessorSchema,
65
- p as CheckoutProcessors,
66
- r as CurrencyCodeSchema,
67
+ C as CheckoutProcessorSchema,
68
+ h as CheckoutProcessors,
69
+ s as CurrencyCodeSchema,
67
70
  n as DistributionCheckoutMode,
68
- d as DistributionCheckoutModeSchema,
69
- s as DistributionCheckoutModes,
70
- b as DistributionEntryRequiresActionSchema,
71
- m as FanfareCheckoutResultSchema,
71
+ y as DistributionCheckoutModeSchema,
72
+ p as DistributionCheckoutModes,
73
+ i as DistributionEntryMode,
74
+ b as DistributionEntryModeSchema,
75
+ m as DistributionEntryModes,
76
+ S as DistributionEntryRequiresActionSchema,
77
+ u as FanfareCheckoutResultSchema,
72
78
  a as MoneyStringSchema,
73
- C as PaymentInputSchema,
74
- c as PaymentMethodSummarySchema,
75
- A as PaymentMethodsListResponseSchema,
76
- y as PaymentProviderConfigSchema
79
+ g as PaymentInputSchema,
80
+ r as PaymentMethodSummarySchema,
81
+ E as PaymentMethodsListResponseSchema,
82
+ A as PaymentProviderConfigSchema
77
83
  };
@@ -16,6 +16,9 @@ export declare const SequenceDistributionDetailsSchema: v.SchemaWithPipe<readonl
16
16
  readonly type: v.LiteralSchema<"queue", undefined>;
17
17
  readonly openAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "validation.date">]>, undefined>;
18
18
  readonly closeAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "validation.date">]>, undefined>;
19
+ readonly entry: v.OptionalSchema<v.ObjectSchema<{
20
+ readonly automatic: v.BooleanSchema<undefined>;
21
+ }, undefined>, undefined>;
19
22
  readonly selection: v.OptionalSchema<v.ObjectSchema<{
20
23
  readonly required: v.BooleanSchema<undefined>;
21
24
  }, undefined>, undefined>;
@@ -32,6 +35,9 @@ export declare const SequenceDistributionDetailsSchema: v.SchemaWithPipe<readonl
32
35
  readonly openAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "validation.date">]>, undefined>;
33
36
  readonly drawTime: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "validation.date">]>, undefined>;
34
37
  readonly closeAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "validation.date">]>, undefined>;
38
+ readonly entry: v.OptionalSchema<v.ObjectSchema<{
39
+ readonly automatic: v.BooleanSchema<undefined>;
40
+ }, undefined>, undefined>;
35
41
  readonly selection: v.OptionalSchema<v.ObjectSchema<{
36
42
  readonly required: v.BooleanSchema<undefined>;
37
43
  }, undefined>, undefined>;
@@ -71,6 +77,9 @@ export declare const SequenceDistributionDetailsSchema: v.SchemaWithPipe<readonl
71
77
  readonly type: v.LiteralSchema<"timed_release", undefined>;
72
78
  readonly openAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "validation.date">]>, undefined>;
73
79
  readonly closeAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "validation.date">]>, undefined>;
80
+ readonly entry: v.OptionalSchema<v.ObjectSchema<{
81
+ readonly automatic: v.BooleanSchema<undefined>;
82
+ }, undefined>, undefined>;
74
83
  readonly selection: v.OptionalSchema<v.ObjectSchema<{
75
84
  readonly required: v.BooleanSchema<undefined>;
76
85
  }, undefined>, undefined>;
@@ -86,6 +95,9 @@ export declare const SequenceDistributionDetailsSchema: v.SchemaWithPipe<readonl
86
95
  type: "queue";
87
96
  openAt?: string | undefined;
88
97
  closeAt?: string | undefined;
98
+ entry?: {
99
+ automatic: boolean;
100
+ } | undefined;
89
101
  selection?: {
90
102
  required: boolean;
91
103
  } | undefined;
@@ -102,6 +114,9 @@ export declare const SequenceDistributionDetailsSchema: v.SchemaWithPipe<readonl
102
114
  openAt?: string | undefined;
103
115
  drawTime?: string | undefined;
104
116
  closeAt?: string | undefined;
117
+ entry?: {
118
+ automatic: boolean;
119
+ } | undefined;
105
120
  selection?: {
106
121
  required: boolean;
107
122
  } | undefined;
@@ -141,6 +156,9 @@ export declare const SequenceDistributionDetailsSchema: v.SchemaWithPipe<readonl
141
156
  type: "timed_release";
142
157
  openAt?: string | undefined;
143
158
  closeAt?: string | undefined;
159
+ entry?: {
160
+ automatic: boolean;
161
+ } | undefined;
144
162
  selection?: {
145
163
  required: boolean;
146
164
  } | undefined;
@@ -156,6 +174,9 @@ export declare const SequenceDistributionDetailsSchema: v.SchemaWithPipe<readonl
156
174
  type: "queue";
157
175
  openAt?: string | undefined;
158
176
  closeAt?: string | undefined;
177
+ entry?: {
178
+ automatic: boolean;
179
+ } | undefined;
159
180
  selection?: {
160
181
  required: boolean;
161
182
  } | undefined;
@@ -172,6 +193,9 @@ export declare const SequenceDistributionDetailsSchema: v.SchemaWithPipe<readonl
172
193
  openAt?: string | undefined;
173
194
  drawTime?: string | undefined;
174
195
  closeAt?: string | undefined;
196
+ entry?: {
197
+ automatic: boolean;
198
+ } | undefined;
175
199
  selection?: {
176
200
  required: boolean;
177
201
  } | undefined;
@@ -211,6 +235,9 @@ export declare const SequenceDistributionDetailsSchema: v.SchemaWithPipe<readonl
211
235
  type: "timed_release";
212
236
  openAt?: string | undefined;
213
237
  closeAt?: string | undefined;
238
+ entry?: {
239
+ automatic: boolean;
240
+ } | undefined;
214
241
  selection?: {
215
242
  required: boolean;
216
243
  } | undefined;
@@ -226,6 +253,9 @@ export declare const SequenceDistributionDetailsSchema: v.SchemaWithPipe<readonl
226
253
  type: "queue";
227
254
  openAt?: string | undefined;
228
255
  closeAt?: string | undefined;
256
+ entry?: {
257
+ automatic: boolean;
258
+ } | undefined;
229
259
  selection?: {
230
260
  required: boolean;
231
261
  } | undefined;
@@ -242,6 +272,9 @@ export declare const SequenceDistributionDetailsSchema: v.SchemaWithPipe<readonl
242
272
  openAt?: string | undefined;
243
273
  drawTime?: string | undefined;
244
274
  closeAt?: string | undefined;
275
+ entry?: {
276
+ automatic: boolean;
277
+ } | undefined;
245
278
  selection?: {
246
279
  required: boolean;
247
280
  } | undefined;
@@ -281,6 +314,9 @@ export declare const SequenceDistributionDetailsSchema: v.SchemaWithPipe<readonl
281
314
  type: "timed_release";
282
315
  openAt?: string | undefined;
283
316
  closeAt?: string | undefined;
317
+ entry?: {
318
+ automatic: boolean;
319
+ } | undefined;
284
320
  selection?: {
285
321
  required: boolean;
286
322
  } | undefined;
@@ -309,6 +345,9 @@ export declare const SequenceDistributionContextSchema: v.ObjectSchema<{
309
345
  readonly type: v.LiteralSchema<"queue", undefined>;
310
346
  readonly openAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "validation.date">]>, undefined>;
311
347
  readonly closeAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "validation.date">]>, undefined>;
348
+ readonly entry: v.OptionalSchema<v.ObjectSchema<{
349
+ readonly automatic: v.BooleanSchema<undefined>;
350
+ }, undefined>, undefined>;
312
351
  readonly selection: v.OptionalSchema<v.ObjectSchema<{
313
352
  readonly required: v.BooleanSchema<undefined>;
314
353
  }, undefined>, undefined>;
@@ -325,6 +364,9 @@ export declare const SequenceDistributionContextSchema: v.ObjectSchema<{
325
364
  readonly openAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "validation.date">]>, undefined>;
326
365
  readonly drawTime: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "validation.date">]>, undefined>;
327
366
  readonly closeAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "validation.date">]>, undefined>;
367
+ readonly entry: v.OptionalSchema<v.ObjectSchema<{
368
+ readonly automatic: v.BooleanSchema<undefined>;
369
+ }, undefined>, undefined>;
328
370
  readonly selection: v.OptionalSchema<v.ObjectSchema<{
329
371
  readonly required: v.BooleanSchema<undefined>;
330
372
  }, undefined>, undefined>;
@@ -364,6 +406,9 @@ export declare const SequenceDistributionContextSchema: v.ObjectSchema<{
364
406
  readonly type: v.LiteralSchema<"timed_release", undefined>;
365
407
  readonly openAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "validation.date">]>, undefined>;
366
408
  readonly closeAt: v.OptionalSchema<v.SchemaWithPipe<readonly [v.StringSchema<undefined>, v.IsoTimestampAction<string, "validation.date">]>, undefined>;
409
+ readonly entry: v.OptionalSchema<v.ObjectSchema<{
410
+ readonly automatic: v.BooleanSchema<undefined>;
411
+ }, undefined>, undefined>;
367
412
  readonly selection: v.OptionalSchema<v.ObjectSchema<{
368
413
  readonly required: v.BooleanSchema<undefined>;
369
414
  }, undefined>, undefined>;
@@ -379,6 +424,9 @@ export declare const SequenceDistributionContextSchema: v.ObjectSchema<{
379
424
  type: "queue";
380
425
  openAt?: string | undefined;
381
426
  closeAt?: string | undefined;
427
+ entry?: {
428
+ automatic: boolean;
429
+ } | undefined;
382
430
  selection?: {
383
431
  required: boolean;
384
432
  } | undefined;
@@ -395,6 +443,9 @@ export declare const SequenceDistributionContextSchema: v.ObjectSchema<{
395
443
  openAt?: string | undefined;
396
444
  drawTime?: string | undefined;
397
445
  closeAt?: string | undefined;
446
+ entry?: {
447
+ automatic: boolean;
448
+ } | undefined;
398
449
  selection?: {
399
450
  required: boolean;
400
451
  } | undefined;
@@ -434,6 +485,9 @@ export declare const SequenceDistributionContextSchema: v.ObjectSchema<{
434
485
  type: "timed_release";
435
486
  openAt?: string | undefined;
436
487
  closeAt?: string | undefined;
488
+ entry?: {
489
+ automatic: boolean;
490
+ } | undefined;
437
491
  selection?: {
438
492
  required: boolean;
439
493
  } | undefined;
@@ -449,6 +503,9 @@ export declare const SequenceDistributionContextSchema: v.ObjectSchema<{
449
503
  type: "queue";
450
504
  openAt?: string | undefined;
451
505
  closeAt?: string | undefined;
506
+ entry?: {
507
+ automatic: boolean;
508
+ } | undefined;
452
509
  selection?: {
453
510
  required: boolean;
454
511
  } | undefined;
@@ -465,6 +522,9 @@ export declare const SequenceDistributionContextSchema: v.ObjectSchema<{
465
522
  openAt?: string | undefined;
466
523
  drawTime?: string | undefined;
467
524
  closeAt?: string | undefined;
525
+ entry?: {
526
+ automatic: boolean;
527
+ } | undefined;
468
528
  selection?: {
469
529
  required: boolean;
470
530
  } | undefined;
@@ -504,6 +564,9 @@ export declare const SequenceDistributionContextSchema: v.ObjectSchema<{
504
564
  type: "timed_release";
505
565
  openAt?: string | undefined;
506
566
  closeAt?: string | undefined;
567
+ entry?: {
568
+ automatic: boolean;
569
+ } | undefined;
507
570
  selection?: {
508
571
  required: boolean;
509
572
  } | undefined;
@@ -519,6 +582,9 @@ export declare const SequenceDistributionContextSchema: v.ObjectSchema<{
519
582
  type: "queue";
520
583
  openAt?: string | undefined;
521
584
  closeAt?: string | undefined;
585
+ entry?: {
586
+ automatic: boolean;
587
+ } | undefined;
522
588
  selection?: {
523
589
  required: boolean;
524
590
  } | undefined;
@@ -535,6 +601,9 @@ export declare const SequenceDistributionContextSchema: v.ObjectSchema<{
535
601
  openAt?: string | undefined;
536
602
  drawTime?: string | undefined;
537
603
  closeAt?: string | undefined;
604
+ entry?: {
605
+ automatic: boolean;
606
+ } | undefined;
538
607
  selection?: {
539
608
  required: boolean;
540
609
  } | undefined;
@@ -574,6 +643,9 @@ export declare const SequenceDistributionContextSchema: v.ObjectSchema<{
574
643
  type: "timed_release";
575
644
  openAt?: string | undefined;
576
645
  closeAt?: string | undefined;
646
+ entry?: {
647
+ automatic: boolean;
648
+ } | undefined;
577
649
  selection?: {
578
650
  required: boolean;
579
651
  } | undefined;
@@ -1,8 +1,8 @@
1
1
  import * as t from "valibot";
2
- import { PaymentProviderConfigSchema as r, MoneyStringSchema as e, DistributionCheckoutModeSchema as p, DistributionCheckoutMode as s } from "./checkout.js";
3
- const o = t.pipe(t.string(), t.isoTimestamp("validation.date")), a = t.picklist(["queue", "draw", "auction", "timed_release", "appointment"]), g = {
2
+ import { PaymentProviderConfigSchema as s, MoneyStringSchema as e, DistributionCheckoutModeSchema as p, DistributionCheckoutMode as c } from "./checkout.js";
3
+ const o = t.pipe(t.string(), t.isoTimestamp("validation.date")), a = t.picklist(["queue", "draw", "auction", "timed_release", "appointment"]), D = {
4
4
  FLOOR_UNSOLD: "floor_unsold"
5
- }, l = {
5
+ }, r = {
6
6
  checkoutMode: t.nullish(p),
7
7
  preAuthAmount: t.nullish(e),
8
8
  preAuthCurrencyCode: t.nullish(t.string()),
@@ -14,25 +14,29 @@ const o = t.pipe(t.string(), t.isoTimestamp("validation.date")), a = t.picklist(
14
14
  * distribution means the configuration read failed, and the client renders retryable payment
15
15
  * unavailability rather than inferring a different processor.
16
16
  */
17
- paymentProvider: t.optional(r)
17
+ paymentProvider: t.optional(s)
18
18
  }, n = {
19
19
  selection: t.optional(t.object({ required: t.boolean() }))
20
- }, c = t.object({
20
+ }, l = {
21
+ entry: t.optional(t.object({ automatic: t.boolean() }))
22
+ }, u = t.object({
21
23
  ...n,
24
+ ...l,
22
25
  id: t.string(),
23
26
  type: t.literal("queue"),
24
27
  openAt: t.optional(o),
25
28
  closeAt: t.optional(o),
26
- ...l
27
- }), u = t.object({
29
+ ...r
30
+ }), m = t.object({
28
31
  ...n,
32
+ ...l,
29
33
  id: t.string(),
30
34
  type: t.literal("draw"),
31
35
  openAt: t.optional(o),
32
36
  drawTime: t.optional(o),
33
37
  closeAt: t.optional(o),
34
- ...l
35
- }), m = t.object({
38
+ ...r
39
+ }), d = t.object({
36
40
  ...n,
37
41
  id: t.string(),
38
42
  type: t.literal("auction"),
@@ -58,7 +62,7 @@ const o = t.pipe(t.string(), t.isoTimestamp("validation.date")), a = t.picklist(
58
62
  priceDropAmount: t.optional(e),
59
63
  priceDropIntervalSeconds: t.optional(t.pipe(t.number(), t.integer())),
60
64
  quantity: t.optional(t.pipe(t.number(), t.integer()))
61
- }), d = t.object({
65
+ }), b = t.object({
62
66
  id: t.string(),
63
67
  type: t.literal("appointment"),
64
68
  openAt: t.optional(o),
@@ -70,28 +74,29 @@ const o = t.pipe(t.string(), t.isoTimestamp("validation.date")), a = t.picklist(
70
74
  locationId: t.optional(t.string()),
71
75
  totalSlots: t.optional(t.number()),
72
76
  availableSlots: t.optional(t.number())
73
- }), b = t.object({
77
+ }), A = t.object({
74
78
  ...n,
79
+ ...l,
75
80
  id: t.string(),
76
81
  type: t.literal("timed_release"),
77
82
  openAt: t.optional(o),
78
83
  closeAt: t.optional(o)
79
- }), A = t.pipe(
84
+ }), h = t.pipe(
80
85
  t.variant("type", [
81
- c,
82
86
  u,
83
87
  m,
84
88
  d,
85
- b
89
+ b,
90
+ A
86
91
  ]),
87
92
  t.forward(
88
93
  t.check(
89
- (i) => !("checkoutMode" in i) || i.checkoutMode !== s.PRE_AUTH || i.preAuthAmount != null && i.preAuthCurrencyCode != null,
94
+ (i) => !("checkoutMode" in i) || i.checkoutMode !== c.PRE_AUTH || i.preAuthAmount != null && i.preAuthCurrencyCode != null,
90
95
  "validation.preAuthAmountRequired"
91
96
  ),
92
97
  ["preAuthAmount"]
93
98
  )
94
- ), D = t.object({
99
+ ), y = t.object({
95
100
  recentPast: t.optional(
96
101
  t.object({
97
102
  type: a,
@@ -106,7 +111,7 @@ const o = t.pipe(t.string(), t.isoTimestamp("validation.date")), a = t.picklist(
106
111
  type: a,
107
112
  id: t.string(),
108
113
  status: t.literal("active"),
109
- details: A
114
+ details: h
110
115
  })
111
116
  ),
112
117
  upcoming: t.optional(
@@ -123,7 +128,7 @@ const o = t.pipe(t.string(), t.isoTimestamp("validation.date")), a = t.picklist(
123
128
  )
124
129
  });
125
130
  export {
126
- g as AuctionDistributionResults,
127
- D as SequenceDistributionContextSchema,
128
- A as SequenceDistributionDetailsSchema
131
+ D as AuctionDistributionResults,
132
+ y as SequenceDistributionContextSchema,
133
+ h as SequenceDistributionDetailsSchema
129
134
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fanfare-io/fanfare-sdk-contracts",
3
- "version": "0.20.0",
3
+ "version": "0.21.0",
4
4
  "description": "Public Fanfare schemas, types, and contract helpers shared by SDKs and internal services",
5
5
  "license": "Apache-2.0",
6
6
  "publishConfig": {