@fun-xyz/fiat-contract 0.51.0 → 0.52.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.
@@ -1,5 +1,5 @@
1
1
  // package.json
2
- var version = "0.51.0";
2
+ var version = "0.52.0";
3
3
 
4
4
  // src/table.ts
5
5
  var TABLE_VERSION = version;
package/dist/index.js CHANGED
@@ -214,6 +214,7 @@ __export(index_exports, {
214
214
  StripeErrorBodySchema: () => StripeErrorBodySchema,
215
215
  StripeFaultSchema: () => StripeFaultSchema,
216
216
  StripeIdentifiersNextActionSchema: () => StripeIdentifiersNextActionSchema,
217
+ StripeIdentityReaskSchema: () => StripeIdentityReaskSchema,
217
218
  StripeKycNextActionSchema: () => StripeKycNextActionSchema,
218
219
  StripeKycRequestSchema: () => StripeKycRequestSchema,
219
220
  StripeLinkAuthTokenSchema: () => StripeLinkAuthTokenSchema,
@@ -1490,7 +1491,7 @@ var $stepResponse = import_zod.z.union([$providerBoundStepResponse, $funAuthStep
1490
1491
  var FiatStepResponseSchema = $stepResponse;
1491
1492
 
1492
1493
  // package.json
1493
- var version = "0.51.0";
1494
+ var version = "0.52.0";
1494
1495
 
1495
1496
  // src/table.ts
1496
1497
  var TABLE_VERSION = version;
@@ -4039,7 +4040,13 @@ var kycShape = obj4({
4039
4040
  });
4040
4041
  var identifiersNextAction = obj4({ next: import_zod4.z.literal("identifiers"), linkAuthToken: linkAuthToken.nullable() });
4041
4042
  var attestationNextAction = obj4({ next: import_zod4.z.literal("attestation"), linkAuthToken: linkAuthToken.nullable() });
4042
- var verifyIdentityNextAction = obj4({ next: import_zod4.z.literal("verifyIdentity"), linkAuthToken: linkAuthToken.nullable() });
4043
+ var identityReask = obj4({ reason: import_zod4.z.enum(["REJECTED"]).nullable() });
4044
+ var StripeIdentityReaskSchema = identityReask;
4045
+ var verifyIdentityNextAction = obj4({
4046
+ next: import_zod4.z.literal("verifyIdentity"),
4047
+ linkAuthToken: linkAuthToken.nullable(),
4048
+ reask: identityReask.nullable().optional()
4049
+ });
4043
4050
  var waitNextAction = obj4({ next: import_zod4.z.literal("wait"), retryAfterMs });
4044
4051
  var placeOrderNextAction = obj4({
4045
4052
  next: import_zod4.z.literal("placeOrder"),
package/dist/index.mjs CHANGED
@@ -16,7 +16,7 @@ import {
16
16
  tableEntry,
17
17
  unofferedEndpoints,
18
18
  unreachableStates
19
- } from "./chunk-ICIHTCZN.mjs";
19
+ } from "./chunk-JDI4TWPZ.mjs";
20
20
  import {
21
21
  MOONPAY_ENDPOINTS
22
22
  } from "./chunk-TIEGTTFY.mjs";
@@ -3110,7 +3110,13 @@ var kycShape = obj4({
3110
3110
  });
3111
3111
  var identifiersNextAction = obj4({ next: z4.literal("identifiers"), linkAuthToken: linkAuthToken.nullable() });
3112
3112
  var attestationNextAction = obj4({ next: z4.literal("attestation"), linkAuthToken: linkAuthToken.nullable() });
3113
- var verifyIdentityNextAction = obj4({ next: z4.literal("verifyIdentity"), linkAuthToken: linkAuthToken.nullable() });
3113
+ var identityReask = obj4({ reason: z4.enum(["REJECTED"]).nullable() });
3114
+ var StripeIdentityReaskSchema = identityReask;
3115
+ var verifyIdentityNextAction = obj4({
3116
+ next: z4.literal("verifyIdentity"),
3117
+ linkAuthToken: linkAuthToken.nullable(),
3118
+ reask: identityReask.nullable().optional()
3119
+ });
3114
3120
  var waitNextAction = obj4({ next: z4.literal("wait"), retryAfterMs });
3115
3121
  var placeOrderNextAction = obj4({
3116
3122
  next: z4.literal("placeOrder"),
@@ -3487,6 +3493,7 @@ export {
3487
3493
  StripeErrorBodySchema,
3488
3494
  StripeFaultSchema,
3489
3495
  StripeIdentifiersNextActionSchema,
3496
+ StripeIdentityReaskSchema,
3490
3497
  StripeKycNextActionSchema,
3491
3498
  StripeKycRequestSchema,
3492
3499
  StripeLinkAuthTokenSchema,
@@ -145,10 +145,19 @@ export type StripeAttestationNextAction = {
145
145
  next: 'attestation';
146
146
  linkAuthToken: StripeLinkAuthToken | null;
147
147
  };
148
- /** Sign in with `linkAuthToken`, run the SDK's `verifyIdentity`, then send `observe`. */
148
+ /** Why Stripe's ID check is asked again. `REJECTED`: Stripe did not accept the ID the buyer gave. */
149
+ export type StripeIdentityReask = {
150
+ reason: StripeReaskReason | null;
151
+ };
152
+ /**
153
+ * Sign in with `linkAuthToken`, run the SDK's `verifyIdentity`, then send `observe`. `reask` is set when the buyer
154
+ * already gave an ID that Stripe did not accept; an older backend leaves it out. Without it, a `verifyIdentity` right
155
+ * after the buyer finished the check means Stripe is still reviewing that ID: Stripe shows no document until it decides.
156
+ */
149
157
  export type StripeVerifyIdentityNextAction = {
150
158
  next: 'verifyIdentity';
151
159
  linkAuthToken: StripeLinkAuthToken | null;
160
+ reask?: StripeIdentityReask | null;
152
161
  };
153
162
  /** Stripe is reviewing, or a sign-in is settling. No request of its own: send `observe` after the delay. */
154
163
  export type StripeWaitNextAction = {
@@ -3,7 +3,7 @@
3
3
  * exported from the package root, never from `./stripe`, so the production entry stays free of zod.
4
4
  */
5
5
  import { z } from 'zod';
6
- import type { StripeAttestationNextAction, StripeAuthorizeNextAction, StripeAuthorizeRequest, StripeCheckout, StripeCheckoutRequest, StripeCheckoutResponse, StripeCheckoutSecretNextAction, StripeConsentNextAction, StripeConsentRequest, StripeDone, StripeErrorBody, StripeFault, StripeIdentifiersNextAction, StripeKycNextAction, StripeKycRequest, StripeLinkAuthToken, StripeNextAction, StripeNextRequest, StripeObserveRequest, StripeOrderPendingNextAction, StripeOrderRequest, StripeOrderResponse, StripePayNextAction, StripePaySheet, StripePlaceOrderNextAction, StripePlaceOrderRequest, StripePrice, StripeReask, StripeRefused, StripeRequest, StripeRequestContext, StripeResponseFor, StripeSessionNextAction, StripeSessionRequest, StripeStepResponse, StripeVerifyIdentityNextAction, StripeWaitNextAction } from './stripe';
6
+ import type { StripeAttestationNextAction, StripeAuthorizeNextAction, StripeAuthorizeRequest, StripeCheckout, StripeCheckoutRequest, StripeCheckoutResponse, StripeCheckoutSecretNextAction, StripeConsentNextAction, StripeConsentRequest, StripeDone, StripeErrorBody, StripeFault, StripeIdentifiersNextAction, StripeKycNextAction, StripeKycRequest, StripeLinkAuthToken, StripeNextAction, StripeNextRequest, StripeObserveRequest, StripeOrderPendingNextAction, StripeOrderRequest, StripeOrderResponse, StripePayNextAction, StripePaySheet, StripePlaceOrderNextAction, StripePlaceOrderRequest, StripePrice, StripeReask, StripeIdentityReask, StripeRefused, StripeRequest, StripeRequestContext, StripeResponseFor, StripeSessionNextAction, StripeSessionRequest, StripeStepResponse, StripeVerifyIdentityNextAction, StripeWaitNextAction } from './stripe';
7
7
  export declare const StripeCheckoutSchema: z.ZodType<StripeCheckout>;
8
8
  export declare const StripeRequestContextSchema: z.ZodType<StripeRequestContext>;
9
9
  export declare const StripeObserveRequestSchema: z.ZodType<StripeRequestContext & StripeObserveRequest>;
@@ -20,6 +20,7 @@ export declare const StripePriceSchema: z.ZodType<StripePrice>;
20
20
  export declare const StripePaySheetSchema: z.ZodType<StripePaySheet>;
21
21
  export declare const StripeLinkAuthTokenSchema: z.ZodType<StripeLinkAuthToken>;
22
22
  export declare const StripeReaskSchema: z.ZodType<StripeReask>;
23
+ export declare const StripeIdentityReaskSchema: z.ZodType<StripeIdentityReask>;
23
24
  export declare const StripeConsentNextActionSchema: z.ZodType<StripeConsentNextAction>;
24
25
  export declare const StripeSessionNextActionSchema: z.ZodType<StripeSessionNextAction>;
25
26
  export declare const StripeAuthorizeNextActionSchema: z.ZodType<StripeAuthorizeNextAction>;
package/dist/table.js CHANGED
@@ -37,7 +37,7 @@ __export(table_exports, {
37
37
  module.exports = __toCommonJS(table_exports);
38
38
 
39
39
  // package.json
40
- var version = "0.51.0";
40
+ var version = "0.52.0";
41
41
 
42
42
  // src/table.ts
43
43
  var TABLE_VERSION = version;
package/dist/table.mjs CHANGED
@@ -12,7 +12,7 @@ import {
12
12
  tableEntry,
13
13
  unofferedEndpoints,
14
14
  unreachableStates
15
- } from "./chunk-ICIHTCZN.mjs";
15
+ } from "./chunk-JDI4TWPZ.mjs";
16
16
  export {
17
17
  DOCUMENTED_ENDPOINTS,
18
18
  FUN_AUTH_ERROR_CODES,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fun-xyz/fiat-contract",
3
- "version": "0.51.0",
3
+ "version": "0.52.0",
4
4
  "description": "Published conformance contract for Fun's headless fiat onramp: FlowState/Transition types, zod schemas, the transition table as data, recorded fixtures, assertion helpers.",
5
5
  "license": "MIT",
6
6
  "repository": {